1 #!/bin/bash
   2 #
   3 # ##########################################################
   4 # ### THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. ###
   5 # ##########################################################
   6 #
   7 #! /bin/sh
   8 # Guess values for system-dependent variables and create Makefiles.
   9 # Generated by GNU Autoconf 2.69 for OpenJDK jdk9.
  10 #
  11 # Report bugs to <build-dev@openjdk.java.net>.
  12 #
  13 #
  14 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  15 #
  16 #
  17 # This configure script is free software; the Free Software Foundation
  18 # gives unlimited permission to copy, distribute and modify it.
  19 ## -------------------- ##
  20 ## M4sh Initialization. ##
  21 ## -------------------- ##
  22 
  23 # Be more Bourne compatible
  24 DUALCASE=1; export DUALCASE # for MKS sh
  25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  26   emulate sh
  27   NULLCMD=:
  28   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  29   # is contrary to our usage.  Disable this feature.
  30   alias -g '${1+"$@"}'='"$@"'
  31   setopt NO_GLOB_SUBST
  32 else
  33   case `(set -o) 2>/dev/null` in #(
  34   *posix*) :
  35     set -o posix ;; #(
  36   *) :
  37      ;;
  38 esac
  39 fi
  40 
  41 
  42 as_nl='
  43 '
  44 export as_nl
  45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
  46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  49 # Prefer a ksh shell builtin over an external printf program on Solaris,
  50 # but without wasting forks for bash or zsh.
  51 if test -z "$BASH_VERSION$ZSH_VERSION" \
  52     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  53   as_echo='print -r --'
  54   as_echo_n='print -rn --'
  55 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  56   as_echo='printf %s\n'
  57   as_echo_n='printf %s'
  58 else
  59   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  60     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  61     as_echo_n='/usr/ucb/echo -n'
  62   else
  63     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  64     as_echo_n_body='eval
  65       arg=$1;
  66       case $arg in #(
  67       *"$as_nl"*)
  68         expr "X$arg" : "X\\(.*\\)$as_nl";
  69         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  70       esac;
  71       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  72     '
  73     export as_echo_n_body
  74     as_echo_n='sh -c $as_echo_n_body as_echo'
  75   fi
  76   export as_echo_body
  77   as_echo='sh -c $as_echo_body as_echo'
  78 fi
  79 
  80 # The user is always right.
  81 if test "${PATH_SEPARATOR+set}" != set; then
  82   PATH_SEPARATOR=:
  83   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  84     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  85       PATH_SEPARATOR=';'
  86   }
  87 fi
  88 
  89 
  90 # IFS
  91 # We need space, tab and new line, in precisely that order.  Quoting is
  92 # there to prevent editors from complaining about space-tab.
  93 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  94 # splitting by setting IFS to empty value.)
  95 IFS=" ""        $as_nl"
  96 
  97 # Find who we are.  Look in the path if we contain no directory separator.
  98 as_myself=
  99 case $0 in #((
 100   *[\\/]* ) as_myself=$0 ;;
 101   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 102 for as_dir in $PATH
 103 do
 104   IFS=$as_save_IFS
 105   test -z "$as_dir" && as_dir=.
 106     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 107   done
 108 IFS=$as_save_IFS
 109 
 110      ;;
 111 esac
 112 # We did not find ourselves, most probably we were run as `sh COMMAND'
 113 # in which case we are not to be found in the path.
 114 if test "x$as_myself" = x; then
 115   as_myself=$0
 116 fi
 117 if test ! -f "$as_myself"; then
 118   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 119   exit 1
 120 fi
 121 
 122 # Unset variables that we do not need and which cause bugs (e.g. in
 123 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 124 # suppresses any "Segmentation fault" message there.  '((' could
 125 # trigger a bug in pdksh 5.2.14.
 126 for as_var in BASH_ENV ENV MAIL MAILPATH
 127 do eval test x\${$as_var+set} = xset \
 128   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 129 done
 130 PS1='$ '
 131 PS2='> '
 132 PS4='+ '
 133 
 134 # NLS nuisances.
 135 LC_ALL=C
 136 export LC_ALL
 137 LANGUAGE=C
 138 export LANGUAGE
 139 
 140 # CDPATH.
 141 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 142 
 143 # Use a proper internal environment variable to ensure we don't fall
 144   # into an infinite loop, continuously re-executing ourselves.
 145   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
 146     _as_can_reexec=no; export _as_can_reexec;
 147     # We cannot yet assume a decent shell, so we have to provide a
 148 # neutralization value for shells without unset; and this also
 149 # works around shells that cannot unset nonexistent variables.
 150 # Preserve -v and -x to the replacement shell.
 151 BASH_ENV=/dev/null
 152 ENV=/dev/null
 153 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 154 case $- in # ((((
 155   *v*x* | *x*v* ) as_opts=-vx ;;
 156   *v* ) as_opts=-v ;;
 157   *x* ) as_opts=-x ;;
 158   * ) as_opts= ;;
 159 esac
 160 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
 161 # Admittedly, this is quite paranoid, since all the known shells bail
 162 # out after a failed `exec'.
 163 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
 164 as_fn_exit 255
 165   fi
 166   # We don't want this to propagate to other subprocesses.
 167           { _as_can_reexec=; unset _as_can_reexec;}
 168 if test "x$CONFIG_SHELL" = x; then
 169   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
 170   emulate sh
 171   NULLCMD=:
 172   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
 173   # is contrary to our usage.  Disable this feature.
 174   alias -g '\${1+\"\$@\"}'='\"\$@\"'
 175   setopt NO_GLOB_SUBST
 176 else
 177   case \`(set -o) 2>/dev/null\` in #(
 178   *posix*) :
 179     set -o posix ;; #(
 180   *) :
 181      ;;
 182 esac
 183 fi
 184 "
 185   as_required="as_fn_return () { (exit \$1); }
 186 as_fn_success () { as_fn_return 0; }
 187 as_fn_failure () { as_fn_return 1; }
 188 as_fn_ret_success () { return 0; }
 189 as_fn_ret_failure () { return 1; }
 190 
 191 exitcode=0
 192 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
 193 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
 194 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
 195 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
 196 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
 197 
 198 else
 199   exitcode=1; echo positional parameters were not saved.
 200 fi
 201 test x\$exitcode = x0 || exit 1
 202 test -x / || exit 1"
 203   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
 204   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
 205   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
 206   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
 207 test \$(( 1 + 1 )) = 2 || exit 1"
 208   if (eval "$as_required") 2>/dev/null; then :
 209   as_have_required=yes
 210 else
 211   as_have_required=no
 212 fi
 213   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
 214 
 215 else
 216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 217 as_found=false
 218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 219 do
 220   IFS=$as_save_IFS
 221   test -z "$as_dir" && as_dir=.
 222   as_found=:
 223   case $as_dir in #(
 224          /*)
 225            for as_base in sh bash ksh sh5; do
 226              # Try only shells that exist, to save several forks.
 227              as_shell=$as_dir/$as_base
 228              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 229                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
 230   CONFIG_SHELL=$as_shell as_have_required=yes
 231                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
 232   break 2
 233 fi
 234 fi
 235            done;;
 236        esac
 237   as_found=false
 238 done
 239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
 240               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
 241   CONFIG_SHELL=$SHELL as_have_required=yes
 242 fi; }
 243 IFS=$as_save_IFS
 244 
 245 
 246       if test "x$CONFIG_SHELL" != x; then :
 247   export CONFIG_SHELL
 248              # We cannot yet assume a decent shell, so we have to provide a
 249 # neutralization value for shells without unset; and this also
 250 # works around shells that cannot unset nonexistent variables.
 251 # Preserve -v and -x to the replacement shell.
 252 BASH_ENV=/dev/null
 253 ENV=/dev/null
 254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 255 case $- in # ((((
 256   *v*x* | *x*v* ) as_opts=-vx ;;
 257   *v* ) as_opts=-v ;;
 258   *x* ) as_opts=-x ;;
 259   * ) as_opts= ;;
 260 esac
 261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
 262 # Admittedly, this is quite paranoid, since all the known shells bail
 263 # out after a failed `exec'.
 264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
 265 exit 255
 266 fi
 267 
 268     if test x$as_have_required = xno; then :
 269   $as_echo "$0: This script requires a shell more modern than all"
 270   $as_echo "$0: the shells that I found on your system."
 271   if test x${ZSH_VERSION+set} = xset ; then
 272     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
 273     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
 274   else
 275     $as_echo "$0: Please tell bug-autoconf@gnu.org and
 276 $0: build-dev@openjdk.java.net about your system, including
 277 $0: any error possibly output before this message. Then
 278 $0: install a modern shell, or manually run the script
 279 $0: under such a shell if you do have one."
 280   fi
 281   exit 1
 282 fi
 283 fi
 284 fi
 285 SHELL=${CONFIG_SHELL-/bin/sh}
 286 export SHELL
 287 # Unset more variables known to interfere with behavior of common tools.
 288 CLICOLOR_FORCE= GREP_OPTIONS=
 289 unset CLICOLOR_FORCE GREP_OPTIONS
 290 
 291 ## --------------------- ##
 292 ## M4sh Shell Functions. ##
 293 ## --------------------- ##
 294 # as_fn_unset VAR
 295 # ---------------
 296 # Portably unset VAR.
 297 as_fn_unset ()
 298 {
 299   { eval $1=; unset $1;}
 300 }
 301 as_unset=as_fn_unset
 302 
 303 # as_fn_set_status STATUS
 304 # -----------------------
 305 # Set $? to STATUS, without forking.
 306 as_fn_set_status ()
 307 {
 308   return $1
 309 } # as_fn_set_status
 310 
 311 # as_fn_exit STATUS
 312 # -----------------
 313 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 314 as_fn_exit ()
 315 {
 316   set +e
 317   as_fn_set_status $1
 318   exit $1
 319 } # as_fn_exit
 320 
 321 # as_fn_mkdir_p
 322 # -------------
 323 # Create "$as_dir" as a directory, including parents if necessary.
 324 as_fn_mkdir_p ()
 325 {
 326 
 327   case $as_dir in #(
 328   -*) as_dir=./$as_dir;;
 329   esac
 330   test -d "$as_dir" || eval $as_mkdir_p || {
 331     as_dirs=
 332     while :; do
 333       case $as_dir in #(
 334       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 335       *) as_qdir=$as_dir;;
 336       esac
 337       as_dirs="'$as_qdir' $as_dirs"
 338       as_dir=`$as_dirname -- "$as_dir" ||
 339 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 340          X"$as_dir" : 'X\(//\)[^/]' \| \
 341          X"$as_dir" : 'X\(//\)$' \| \
 342          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 343 $as_echo X"$as_dir" |
 344     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 345             s//\1/
 346             q
 347           }
 348           /^X\(\/\/\)[^/].*/{
 349             s//\1/
 350             q
 351           }
 352           /^X\(\/\/\)$/{
 353             s//\1/
 354             q
 355           }
 356           /^X\(\/\).*/{
 357             s//\1/
 358             q
 359           }
 360           s/.*/./; q'`
 361       test -d "$as_dir" && break
 362     done
 363     test -z "$as_dirs" || eval "mkdir $as_dirs"
 364   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 365 
 366 
 367 } # as_fn_mkdir_p
 368 
 369 # as_fn_executable_p FILE
 370 # -----------------------
 371 # Test if FILE is an executable regular file.
 372 as_fn_executable_p ()
 373 {
 374   test -f "$1" && test -x "$1"
 375 } # as_fn_executable_p
 376 # as_fn_append VAR VALUE
 377 # ----------------------
 378 # Append the text in VALUE to the end of the definition contained in VAR. Take
 379 # advantage of any shell optimizations that allow amortized linear growth over
 380 # repeated appends, instead of the typical quadratic growth present in naive
 381 # implementations.
 382 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 383   eval 'as_fn_append ()
 384   {
 385     eval $1+=\$2
 386   }'
 387 else
 388   as_fn_append ()
 389   {
 390     eval $1=\$$1\$2
 391   }
 392 fi # as_fn_append
 393 
 394 # as_fn_arith ARG...
 395 # ------------------
 396 # Perform arithmetic evaluation on the ARGs, and store the result in the
 397 # global $as_val. Take advantage of shells that can avoid forks. The arguments
 398 # must be portable across $(()) and expr.
 399 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 400   eval 'as_fn_arith ()
 401   {
 402     as_val=$(( $* ))
 403   }'
 404 else
 405   as_fn_arith ()
 406   {
 407     as_val=`expr "$@" || test $? -eq 1`
 408   }
 409 fi # as_fn_arith
 410 
 411 
 412 # as_fn_error STATUS ERROR [LINENO LOG_FD]
 413 # ----------------------------------------
 414 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 415 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 416 # script with STATUS, using 1 if that was 0.
 417 as_fn_error ()
 418 {
 419   as_status=$1; test $as_status -eq 0 && as_status=1
 420   if test "$4"; then
 421     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 422     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 423   fi
 424   $as_echo "$as_me: error: $2" >&2
 425   as_fn_exit $as_status
 426 } # as_fn_error
 427 
 428 if expr a : '\(a\)' >/dev/null 2>&1 &&
 429    test "X`expr 00001 : '.*\(...\)'`" = X001; then
 430   as_expr=expr
 431 else
 432   as_expr=false
 433 fi
 434 
 435 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 436   as_basename=basename
 437 else
 438   as_basename=false
 439 fi
 440 
 441 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 442   as_dirname=dirname
 443 else
 444   as_dirname=false
 445 fi
 446 
 447 as_me=`$as_basename -- "$0" ||
 448 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 449          X"$0" : 'X\(//\)$' \| \
 450          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 451 $as_echo X/"$0" |
 452     sed '/^.*\/\([^/][^/]*\)\/*$/{
 453             s//\1/
 454             q
 455           }
 456           /^X\/\(\/\/\)$/{
 457             s//\1/
 458             q
 459           }
 460           /^X\/\(\/\).*/{
 461             s//\1/
 462             q
 463           }
 464           s/.*/./; q'`
 465 
 466 # Avoid depending upon Character Ranges.
 467 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 468 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 469 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 470 as_cr_digits='0123456789'
 471 as_cr_alnum=$as_cr_Letters$as_cr_digits
 472 
 473 
 474   as_lineno_1=$LINENO as_lineno_1a=$LINENO
 475   as_lineno_2=$LINENO as_lineno_2a=$LINENO
 476   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
 477   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
 478   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
 479   sed -n '
 480     p
 481     /[$]LINENO/=
 482   ' <$as_myself |
 483     sed '
 484       s/[$]LINENO.*/&-/
 485       t lineno
 486       b
 487       :lineno
 488       N
 489       :loop
 490       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 491       t loop
 492       s/-\n.*//
 493     ' >$as_me.lineno &&
 494   chmod +x "$as_me.lineno" ||
 495     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
 496 
 497   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
 498   # already done that, so ensure we don't try to do so again and fall
 499   # in an infinite loop.  This has already happened in practice.
 500   _as_can_reexec=no; export _as_can_reexec
 501   # Don't try to exec as it changes $[0], causing all sort of problems
 502   # (the dirname of $[0] is not the place where we might find the
 503   # original and so on.  Autoconf is especially sensitive to this).
 504   . "./$as_me.lineno"
 505   # Exit status is that of the last command.
 506   exit
 507 }
 508 
 509 ECHO_C= ECHO_N= ECHO_T=
 510 case `echo -n x` in #(((((
 511 -n*)
 512   case `echo 'xy\c'` in
 513   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 514   xy)  ECHO_C='\c';;
 515   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 516        ECHO_T=' ';;
 517   esac;;
 518 *)
 519   ECHO_N='-n';;
 520 esac
 521 
 522 rm -f conf$$ conf$$.exe conf$$.file
 523 if test -d conf$$.dir; then
 524   rm -f conf$$.dir/conf$$.file
 525 else
 526   rm -f conf$$.dir
 527   mkdir conf$$.dir 2>/dev/null
 528 fi
 529 if (echo >conf$$.file) 2>/dev/null; then
 530   if ln -s conf$$.file conf$$ 2>/dev/null; then
 531     as_ln_s='ln -s'
 532     # ... but there are two gotchas:
 533     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 534     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 535     # In both cases, we have to default to `cp -pR'.
 536     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 537       as_ln_s='cp -pR'
 538   elif ln conf$$.file conf$$ 2>/dev/null; then
 539     as_ln_s=ln
 540   else
 541     as_ln_s='cp -pR'
 542   fi
 543 else
 544   as_ln_s='cp -pR'
 545 fi
 546 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 547 rmdir conf$$.dir 2>/dev/null
 548 
 549 if mkdir -p . 2>/dev/null; then
 550   as_mkdir_p='mkdir -p "$as_dir"'
 551 else
 552   test -d ./-p && rmdir ./-p
 553   as_mkdir_p=false
 554 fi
 555 
 556 as_test_x='test -x'
 557 as_executable_p=as_fn_executable_p
 558 
 559 # Sed expression to map a string onto a valid CPP name.
 560 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 561 
 562 # Sed expression to map a string onto a valid variable name.
 563 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 564 
 565 
 566 test -n "$DJDIR" || exec 7<&0 </dev/null
 567 exec 6>&1
 568 
 569 # Name of the host.
 570 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
 571 # so uname gets run too.
 572 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 573 
 574 #
 575 # Initializations.
 576 #
 577 ac_default_prefix=/usr/local
 578 ac_clean_files=
 579 ac_config_libobj_dir=.
 580 LIBOBJS=
 581 cross_compiling=no
 582 subdirs=
 583 MFLAGS=
 584 MAKEFLAGS=
 585 
 586 # Identity of this package.
 587 PACKAGE_NAME='OpenJDK'
 588 PACKAGE_TARNAME='openjdk'
 589 PACKAGE_VERSION='jdk9'
 590 PACKAGE_STRING='OpenJDK jdk9'
 591 PACKAGE_BUGREPORT='build-dev@openjdk.java.net'
 592 PACKAGE_URL='http://openjdk.java.net'
 593 
 594 # Factoring default headers for most tests.
 595 ac_includes_default="\
 596 #include <stdio.h>
 597 #ifdef HAVE_SYS_TYPES_H
 598 # include <sys/types.h>
 599 #endif
 600 #ifdef HAVE_SYS_STAT_H
 601 # include <sys/stat.h>
 602 #endif
 603 #ifdef STDC_HEADERS
 604 # include <stdlib.h>
 605 # include <stddef.h>
 606 #else
 607 # ifdef HAVE_STDLIB_H
 608 #  include <stdlib.h>
 609 # endif
 610 #endif
 611 #ifdef HAVE_STRING_H
 612 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 613 #  include <memory.h>
 614 # endif
 615 # include <string.h>
 616 #endif
 617 #ifdef HAVE_STRINGS_H
 618 # include <strings.h>
 619 #endif
 620 #ifdef HAVE_INTTYPES_H
 621 # include <inttypes.h>
 622 #endif
 623 #ifdef HAVE_STDINT_H
 624 # include <stdint.h>
 625 #endif
 626 #ifdef HAVE_UNISTD_H
 627 # include <unistd.h>
 628 #endif"
 629 
 630 ac_subst_vars='LTLIBOBJS
 631 LIBOBJS
 632 CFLAGS_CCACHE
 633 CCACHE
 634 USE_PRECOMPILED_HEADER
 635 BUILD_ICECC
 636 ICECC
 637 ICECC_WRAPPER
 638 ICECC_CREATE_ENV
 639 ICECC_CMD
 640 ENABLE_JAVAC_SERVER
 641 ENABLE_SJAVAC
 642 SJAVAC_SERVER_JAVA_FLAGS
 643 SJAVAC_SERVER_JAVA
 644 JAVA_TOOL_FLAGS_SMALL
 645 JAVA_FLAGS_SMALL
 646 JAVA_FLAGS_JAVAC
 647 BOOTCYCLE_JVM_ARGS_BIG
 648 JAVA_FLAGS_BIG
 649 JAVA_FLAGS
 650 TEST_JOBS
 651 JOBS
 652 MEMORY_SIZE
 653 NUM_CORES
 654 ENABLE_GENERATE_CLASSLIST
 655 BUILD_FAILURE_HANDLER
 656 ENABLE_INTREE_EC
 657 VALID_JVM_FEATURES
 658 JVM_FEATURES_custom
 659 JVM_FEATURES_zeroshark
 660 JVM_FEATURES_zero
 661 JVM_FEATURES_minimal
 662 JVM_FEATURES_core
 663 JVM_FEATURES_client
 664 JVM_FEATURES_server
 665 INCLUDE_GRAAL
 666 STLPORT_LIB
 667 LIBZIP_CAN_USE_MMAP
 668 LIBDL
 669 LIBM
 670 USE_EXTERNAL_LCMS
 671 LCMS_LIBS
 672 LCMS_CFLAGS
 673 USE_EXTERNAL_LIBZ
 674 USE_EXTERNAL_LIBPNG
 675 PNG_LIBS
 676 PNG_CFLAGS
 677 USE_EXTERNAL_LIBGIF
 678 USE_EXTERNAL_LIBJPEG
 679 LLVM_LIBS
 680 LLVM_LDFLAGS
 681 LLVM_CFLAGS
 682 LLVM_CONFIG
 683 LIBFFI_LIB_FILE
 684 ENABLE_LIBFFI_BUNDLING
 685 LIBFFI_LIBS
 686 LIBFFI_CFLAGS
 687 ALSA_LIBS
 688 ALSA_CFLAGS
 689 FREETYPE_BUNDLE_LIB_PATH
 690 FREETYPE_LIBS
 691 FREETYPE_CFLAGS
 692 CUPS_CFLAGS
 693 X_EXTRA_LIBS
 694 X_LIBS
 695 X_PRE_LIBS
 696 X_CFLAGS
 697 XMKMF
 698 MSVCP_DLL
 699 MSVCR_DLL
 700 LIBCXX
 701 FIXPATH_DETACH_FLAG
 702 FIXPATH
 703 BUILD_GTEST
 704 ENABLE_AOT
 705 INCLUDE_DTRACE
 706 GCOV_ENABLED
 707 ZIP_EXTERNAL_DEBUG_SYMBOLS
 708 COPY_DEBUG_SYMBOLS
 709 COMPILE_WITH_DEBUG_SYMBOLS
 710 CFLAGS_WARNINGS_ARE_ERRORS
 711 BUILD_CC_DISABLE_WARNING_PREFIX
 712 DISABLE_WARNING_PREFIX
 713 HOTSPOT_SET_WARNINGS_AS_ERRORS
 714 WARNINGS_AS_ERRORS
 715 COMPILER_SUPPORTS_TARGET_BITS_FLAG
 716 ZERO_ARCHFLAG
 717 LDFLAGS_TESTEXE
 718 LDFLAGS_TESTLIB
 719 CXXFLAGS_TESTEXE
 720 CXXFLAGS_TESTLIB
 721 CFLAGS_TESTEXE
 722 CFLAGS_TESTLIB
 723 OPENJDK_BUILD_JVM_LIBS
 724 OPENJDK_BUILD_JVM_ASFLAGS
 725 OPENJDK_BUILD_JVM_LDFLAGS
 726 OPENJDK_BUILD_JVM_CFLAGS
 727 OPENJDK_BUILD_LDFLAGS_HASH_STYLE
 728 OPENJDK_BUILD_LDFLAGS_CXX_JDK
 729 OPENJDK_BUILD_JDKEXE_LIBS
 730 OPENJDK_BUILD_JDKLIB_LIBS
 731 OPENJDK_BUILD_LDFLAGS_JDKEXE
 732 OPENJDK_BUILD_LDFLAGS_JDKLIB
 733 OPENJDK_BUILD_CXXFLAGS_JDKEXE
 734 OPENJDK_BUILD_CXXFLAGS_JDKLIB
 735 OPENJDK_BUILD_CFLAGS_JDKEXE
 736 OPENJDK_BUILD_CFLAGS_JDKLIB
 737 OPENJDK_BUILD_CXXSTD_CXXFLAG
 738 JVM_LIBS
 739 JVM_ASFLAGS
 740 JVM_LDFLAGS
 741 JVM_CFLAGS
 742 LDFLAGS_HASH_STYLE
 743 LDFLAGS_CXX_JDK
 744 JDKEXE_LIBS
 745 JDKLIB_LIBS
 746 LDFLAGS_JDKEXE
 747 LDFLAGS_JDKLIB
 748 CXXFLAGS_JDKEXE
 749 CXXFLAGS_JDKLIB
 750 CFLAGS_JDKEXE
 751 CFLAGS_JDKLIB
 752 MACOSX_VERSION_MIN
 753 CXXSTD_CXXFLAG
 754 JDK_ARCH_ABI_PROP_NAME
 755 CXX_O_FLAG_SIZE
 756 CXX_O_FLAG_NONE
 757 CXX_O_FLAG_DEBUG
 758 CXX_O_FLAG_NORM
 759 CXX_O_FLAG_HI
 760 CXX_O_FLAG_HIGHEST
 761 CXX_O_FLAG_HIGHEST_JVM
 762 C_O_FLAG_SIZE
 763 C_O_FLAG_NONE
 764 C_O_FLAG_DEBUG
 765 C_O_FLAG_NORM
 766 C_O_FLAG_HI
 767 C_O_FLAG_HIGHEST
 768 C_O_FLAG_HIGHEST_JVM
 769 JVM_CFLAGS_SYMBOLS
 770 CXXFLAGS_DEBUG_SYMBOLS
 771 CFLAGS_DEBUG_SYMBOLS
 772 CXX_FLAG_DEPS
 773 C_FLAG_DEPS
 774 SHARED_LIBRARY_FLAGS
 775 SET_SHARED_LIBRARY_MAPFILE
 776 SET_SHARED_LIBRARY_NAME
 777 SET_SHARED_LIBRARY_ORIGIN
 778 SET_EXECUTABLE_ORIGIN
 779 CXX_FLAG_REORDER
 780 C_FLAG_REORDER
 781 JVM_RCFLAGS
 782 RC_FLAGS
 783 AR_OUT_OPTION
 784 LD_OUT_OPTION
 785 EXE_OUT_OPTION
 786 CC_OUT_OPTION
 787 STRIPFLAGS
 788 ARFLAGS
 789 COMPILER_BINDCMD_FILE_FLAG
 790 COMPILER_COMMAND_FILE_FLAG
 791 COMPILER_TARGET_BITS_FLAG
 792 JT_HOME
 793 JTREGEXE
 794 HOTSPOT_TOOLCHAIN_TYPE
 795 USING_BROKEN_SUSE_LD
 796 PACKAGE_PATH
 797 BUILD_AS
 798 BUILD_LDCXX
 799 BUILD_LD
 800 BUILD_STRIP
 801 BUILD_OBJCOPY
 802 BUILD_AR
 803 BUILD_NM
 804 BUILD_CXX
 805 BUILD_CC
 806 BUILD_SYSROOT_LDFLAGS
 807 BUILD_SYSROOT_CFLAGS
 808 ac_ct_OBJDUMP
 809 OBJDUMP
 810 ac_ct_OBJCOPY
 811 OBJCOPY
 812 ac_ct_NM
 813 ac_ct_STRIP
 814 GNM
 815 NM
 816 STRIP
 817 MSBUILD
 818 DUMPBIN
 819 RC
 820 MT
 821 LIPO
 822 ac_ct_AR
 823 AR
 824 AS
 825 LDCXX
 826 LD
 827 CXXCPP
 828 CPP
 829 CXX_VERSION_NUMBER
 830 CC_VERSION_NUMBER
 831 ac_ct_CXX
 832 CXXFLAGS
 833 CXX
 834 TOOLCHAIN_PATH_CXX
 835 POTENTIAL_CXX
 836 OBJEXT
 837 EXEEXT
 838 ac_ct_CC
 839 CPPFLAGS
 840 LDFLAGS
 841 CFLAGS
 842 CC
 843 TOOLCHAIN_PATH_CC
 844 POTENTIAL_CC
 845 TOOLCHAIN_VERSION
 846 VS_LIB
 847 VS_INCLUDE
 848 VS_PATH
 849 CYGWIN_LINK
 850 SYSROOT_LDFLAGS
 851 SYSROOT_CFLAGS
 852 EXTRA_LDFLAGS
 853 EXTRA_CXXFLAGS
 854 EXTRA_CFLAGS
 855 EXE_SUFFIX
 856 OBJ_SUFFIX
 857 STATIC_LIBRARY
 858 SHARED_LIBRARY
 859 STATIC_LIBRARY_SUFFIX
 860 SHARED_LIBRARY_SUFFIX
 861 LIBRARY_PREFIX
 862 TOOLCHAIN_TYPE
 863 STATIC_BUILD
 864 IMPORT_MODULES_MAKE
 865 IMPORT_MODULES_SRC
 866 IMPORT_MODULES_MAN
 867 IMPORT_MODULES_LEGAL
 868 IMPORT_MODULES_CONF
 869 IMPORT_MODULES_LIBS
 870 IMPORT_MODULES_CMDS
 871 IMPORT_MODULES_CLASSES
 872 BUILD_OUTPUT
 873 JDK_TOPDIR
 874 NASHORN_TOPDIR
 875 HOTSPOT_TOPDIR
 876 JAXWS_TOPDIR
 877 JAXP_TOPDIR
 878 CORBA_TOPDIR
 879 LANGTOOLS_TOPDIR
 880 EXTERNAL_BUILDJDK
 881 BUILD_JDK
 882 CREATE_BUILDJDK
 883 JLINK
 884 JMOD
 885 BOOT_JDK_BITS
 886 JAVAC_FLAGS
 887 BOOT_JDK_MODULAR
 888 BOOT_JDK_SOURCETARGET
 889 JARSIGNER
 890 JAR
 891 JAVAH
 892 JAVAC
 893 JAVA
 894 BOOT_JDK
 895 JAVA_CHECK
 896 JAVAC_CHECK
 897 VERSION_IS_GA
 898 VERSION_SHORT
 899 VERSION_STRING
 900 VERSION_NUMBER_FOUR_POSITIONS
 901 VERSION_NUMBER
 902 VERSION_OPT
 903 VERSION_BUILD
 904 VERSION_PRE
 905 VERSION_PATCH
 906 VERSION_SECURITY
 907 VERSION_MINOR
 908 VERSION_MAJOR
 909 MACOSX_BUNDLE_ID_BASE
 910 MACOSX_BUNDLE_NAME_BASE
 911 HOTSPOT_VM_DISTRO
 912 COMPANY_NAME
 913 JDK_RC_PLATFORM_NAME
 914 PRODUCT_SUFFIX
 915 PRODUCT_NAME
 916 LAUNCHER_NAME
 917 JLINK_KEEP_PACKAGED_MODULES
 918 COPYRIGHT_YEAR
 919 COMPRESS_JARS
 920 INCLUDE_SA
 921 UNLIMITED_CRYPTO
 922 CACERTS_FILE
 923 ENABLE_HEADLESS_ONLY
 924 DEFAULT_MAKE_TARGET
 925 OS_VERSION_MICRO
 926 OS_VERSION_MINOR
 927 OS_VERSION_MAJOR
 928 PKG_CONFIG
 929 BASH_ARGS
 930 SETFILE
 931 CODESIGN
 932 XATTR
 933 DSYMUTIL
 934 IS_GNU_TIME
 935 PATCH
 936 DTRACE
 937 TIME
 938 STAT
 939 HG
 940 READELF
 941 OTOOL
 942 LDD
 943 ZIPEXE
 944 UNZIP
 945 TAR_SUPPORTS_TRANSFORM
 946 TAR_INCLUDE_PARAM
 947 TAR_CREATE_EXTRA_PARAM
 948 TAR_TYPE
 949 FIND_DELETE
 950 OUTPUT_SYNC
 951 OUTPUT_SYNC_SUPPORTED
 952 CHECK_TOOLSDIR_MAKE
 953 CHECK_TOOLSDIR_GMAKE
 954 CHECK_MAKE
 955 CHECK_GMAKE
 956 MAKE
 957 PKGHANDLER
 958 CONFIGURESUPPORT_OUTPUTDIR
 959 OUTPUT_ROOT
 960 CONF_NAME
 961 SPEC
 962 SDKROOT
 963 XCODEBUILD
 964 JVM_VARIANT_MAIN
 965 VALID_JVM_VARIANTS
 966 JVM_VARIANTS
 967 DEBUG_LEVEL
 968 HOTSPOT_DEBUG_LEVEL
 969 JDK_VARIANT
 970 USERNAME
 971 CANONICAL_TOPDIR
 972 ORIGINAL_TOPDIR
 973 TOPDIR
 974 PATH_SEP
 975 ZERO_ARCHDEF
 976 HOTSPOT_BUILD_CPU_DEFINE
 977 HOTSPOT_BUILD_CPU_ARCH
 978 HOTSPOT_BUILD_CPU
 979 HOTSPOT_BUILD_OS_TYPE
 980 HOTSPOT_BUILD_OS
 981 OPENJDK_BUILD_BUNDLE_PLATFORM
 982 OPENJDK_BUILD_CPU_BUNDLE
 983 OPENJDK_BUILD_OS_BUNDLE
 984 OPENJDK_BUILD_OS_EXPORT_DIR
 985 OPENJDK_BUILD_CPU_OSARCH
 986 OPENJDK_BUILD_CPU_ISADIR
 987 OPENJDK_BUILD_CPU_LEGACY_LIB
 988 OPENJDK_BUILD_CPU_LEGACY
 989 HOTSPOT_TARGET_CPU_DEFINE
 990 HOTSPOT_TARGET_CPU_ARCH
 991 HOTSPOT_TARGET_CPU
 992 HOTSPOT_TARGET_OS_TYPE
 993 HOTSPOT_TARGET_OS
 994 DEFINE_CROSS_COMPILE_ARCH
 995 LP64
 996 OPENJDK_TARGET_BUNDLE_PLATFORM
 997 OPENJDK_TARGET_CPU_BUNDLE
 998 OPENJDK_TARGET_OS_BUNDLE
 999 OPENJDK_TARGET_OS_EXPORT_DIR
1000 OPENJDK_TARGET_CPU_OSARCH
1001 OPENJDK_TARGET_CPU_ISADIR
1002 OPENJDK_TARGET_CPU_LEGACY_LIB
1003 OPENJDK_TARGET_CPU_LEGACY
1004 REQUIRED_OS_VERSION
1005 REQUIRED_OS_NAME
1006 COMPILE_TYPE
1007 OPENJDK_TARGET_CPU_ENDIAN
1008 OPENJDK_TARGET_CPU_BITS
1009 OPENJDK_TARGET_CPU_ARCH
1010 OPENJDK_TARGET_CPU
1011 OPENJDK_TARGET_OS_ENV
1012 OPENJDK_TARGET_OS_TYPE
1013 OPENJDK_TARGET_OS
1014 OPENJDK_BUILD_CPU_ENDIAN
1015 OPENJDK_BUILD_CPU_BITS
1016 OPENJDK_BUILD_CPU_ARCH
1017 OPENJDK_BUILD_CPU
1018 OPENJDK_BUILD_OS_ENV
1019 OPENJDK_BUILD_OS_TYPE
1020 OPENJDK_BUILD_OS
1021 OPENJDK_BUILD_AUTOCONF_NAME
1022 OPENJDK_TARGET_AUTOCONF_NAME
1023 target_os
1024 target_vendor
1025 target_cpu
1026 target
1027 host_os
1028 host_vendor
1029 host_cpu
1030 host
1031 build_os
1032 build_vendor
1033 build_cpu
1034 build
1035 NICE
1036 CPIO
1037 DF
1038 READLINK
1039 CYGPATH
1040 SED
1041 FGREP
1042 EGREP
1043 GREP
1044 AWK
1045 XARGS
1046 WHICH
1047 WC
1048 UNIQ
1049 UNAME
1050 TR
1051 TOUCH
1052 TEE
1053 TAR
1054 TAIL
1055 SORT
1056 SH
1057 RMDIR
1058 RM
1059 PRINTF
1060 NAWK
1061 MV
1062 MKTEMP
1063 MKDIR
1064 LS
1065 LN
1066 GZIP
1067 GUNZIP
1068 HEAD
1069 FIND
1070 FILE
1071 EXPR
1072 ECHO
1073 DIRNAME
1074 DIFF
1075 DATE
1076 CUT
1077 CP
1078 COMM
1079 CMP
1080 CHMOD
1081 CAT
1082 BASH
1083 BASENAME
1084 DATE_WHEN_CONFIGURED
1085 ORIGINAL_PATH
1086 CONFIGURE_COMMAND_LINE
1087 target_alias
1088 host_alias
1089 build_alias
1090 LIBS
1091 ECHO_T
1092 ECHO_N
1093 ECHO_C
1094 DEFS
1095 mandir
1096 localedir
1097 libdir
1098 psdir
1099 pdfdir
1100 dvidir
1101 htmldir
1102 infodir
1103 docdir
1104 oldincludedir
1105 includedir
1106 localstatedir
1107 sharedstatedir
1108 sysconfdir
1109 datadir
1110 datarootdir
1111 libexecdir
1112 sbindir
1113 bindir
1114 program_transform_name
1115 prefix
1116 exec_prefix
1117 PACKAGE_URL
1118 PACKAGE_BUGREPORT
1119 PACKAGE_STRING
1120 PACKAGE_VERSION
1121 PACKAGE_TARNAME
1122 PACKAGE_NAME
1123 PATH_SEPARATOR
1124 SHELL'
1125 ac_subst_files=''
1126 ac_user_opts='
1127 enable_option_checking
1128 with_target_bits
1129 enable_openjdk_only
1130 with_custom_make_dir
1131 with_jdk_variant
1132 enable_debug
1133 with_debug_level
1134 with_jvm_variants
1135 with_cpu_port
1136 with_devkit
1137 with_sys_root
1138 with_sysroot
1139 with_tools_dir
1140 with_toolchain_path
1141 with_extra_path
1142 with_sdk_name
1143 with_conf_name
1144 with_output_sync
1145 with_default_make_target
1146 enable_headless_only
1147 with_cacerts_file
1148 enable_unlimited_crypto
1149 with_copyright_year
1150 enable_keep_packaged_modules
1151 with_milestone
1152 with_update_version
1153 with_user_release_suffix
1154 with_build_number
1155 with_version_string
1156 with_version_pre
1157 with_version_opt
1158 with_version_build
1159 with_version_major
1160 with_version_minor
1161 with_version_security
1162 with_version_patch
1163 with_boot_jdk
1164 with_build_jdk
1165 with_add_source_root
1166 with_override_source_root
1167 with_adds_and_overrides
1168 with_override_langtools
1169 with_override_corba
1170 with_override_jaxp
1171 with_override_jaxws
1172 with_override_hotspot
1173 with_override_nashorn
1174 with_override_jdk
1175 with_import_hotspot
1176 with_import_modules
1177 enable_static_build
1178 with_toolchain_type
1179 with_extra_cflags
1180 with_extra_cxxflags
1181 with_extra_ldflags
1182 with_toolchain_version
1183 with_build_devkit
1184 with_jtreg
1185 with_abi_profile
1186 enable_warnings_as_errors
1187 with_native_debug_symbols
1188 enable_debug_symbols
1189 enable_zip_debug_info
1190 enable_native_coverage
1191 enable_dtrace
1192 enable_aot
1193 enable_hotspot_gtest
1194 with_stdc__lib
1195 with_msvcr_dll
1196 with_msvcp_dll
1197 with_x
1198 with_cups
1199 with_cups_include
1200 with_freetype
1201 with_freetype_include
1202 with_freetype_lib
1203 with_freetype_src
1204 enable_freetype_bundling
1205 with_alsa
1206 with_alsa_include
1207 with_alsa_lib
1208 with_libffi
1209 with_libffi_include
1210 with_libffi_lib
1211 enable_libffi_bundling
1212 with_libjpeg
1213 with_giflib
1214 with_libpng
1215 with_zlib
1216 with_lcms
1217 with_dxsdk
1218 with_dxsdk_lib
1219 with_dxsdk_include
1220 with_jvm_features
1221 with_jvm_interpreter
1222 enable_jtreg_failure_handler
1223 enable_generate_classlist
1224 with_num_cores
1225 with_memory_size
1226 with_jobs
1227 with_test_jobs
1228 with_boot_jdk_jvmargs
1229 with_sjavac_server_java
1230 enable_sjavac
1231 enable_javac_server
1232 enable_icecc
1233 enable_precompiled_headers
1234 enable_ccache
1235 with_ccache_dir
1236 '
1237       ac_precious_vars='build_alias
1238 host_alias
1239 target_alias
1240 BASENAME
1241 BASH
1242 CAT
1243 CHMOD
1244 CMP
1245 COMM
1246 CP
1247 CUT
1248 DATE
1249 DIFF
1250 DIRNAME
1251 ECHO
1252 EXPR
1253 FILE
1254 FIND
1255 HEAD
1256 GUNZIP
1257 GZIP
1258 LN
1259 LS
1260 MKDIR
1261 MKTEMP
1262 MV
1263 NAWK
1264 PRINTF
1265 RM
1266 RMDIR
1267 SH
1268 SORT
1269 TAIL
1270 TAR
1271 TEE
1272 TOUCH
1273 TR
1274 UNAME
1275 UNIQ
1276 WC
1277 WHICH
1278 XARGS
1279 AWK
1280 GREP
1281 EGREP
1282 FGREP
1283 SED
1284 CYGPATH
1285 READLINK
1286 DF
1287 CPIO
1288 NICE
1289 MAKE
1290 UNZIP
1291 ZIPEXE
1292 LDD
1293 OTOOL
1294 READELF
1295 HG
1296 STAT
1297 TIME
1298 DTRACE
1299 PATCH
1300 DSYMUTIL
1301 XATTR
1302 CODESIGN
1303 SETFILE
1304 PKG_CONFIG
1305 JAVA
1306 JAVAC
1307 JAVAH
1308 JAR
1309 JARSIGNER
1310 CC
1311 CFLAGS
1312 LDFLAGS
1313 LIBS
1314 CPPFLAGS
1315 CXX
1316 CXXFLAGS
1317 CCC
1318 CPP
1319 CXXCPP
1320 AS
1321 AR
1322 LIPO
1323 STRIP
1324 NM
1325 GNM
1326 OBJCOPY
1327 OBJDUMP
1328 BUILD_CC
1329 BUILD_CXX
1330 BUILD_NM
1331 BUILD_AR
1332 BUILD_OBJCOPY
1333 BUILD_STRIP
1334 JTREGEXE
1335 XMKMF
1336 FREETYPE_CFLAGS
1337 FREETYPE_LIBS
1338 ALSA_CFLAGS
1339 ALSA_LIBS
1340 LIBFFI_CFLAGS
1341 LIBFFI_LIBS
1342 PNG_CFLAGS
1343 PNG_LIBS
1344 LCMS_CFLAGS
1345 LCMS_LIBS
1346 ICECC_CMD
1347 ICECC_CREATE_ENV
1348 ICECC_WRAPPER
1349 CCACHE'
1350 
1351 
1352 # Initialize some variables set by options.
1353 ac_init_help=
1354 ac_init_version=false
1355 ac_unrecognized_opts=
1356 ac_unrecognized_sep=
1357 # The variables have the same names as the options, with
1358 # dashes changed to underlines.
1359 cache_file=/dev/null
1360 exec_prefix=NONE
1361 no_create=
1362 no_recursion=
1363 prefix=NONE
1364 program_prefix=NONE
1365 program_suffix=NONE
1366 program_transform_name=s,x,x,
1367 silent=
1368 site=
1369 srcdir=
1370 verbose=
1371 x_includes=NONE
1372 x_libraries=NONE
1373 
1374 # Installation directory options.
1375 # These are left unexpanded so users can "make install exec_prefix=/foo"
1376 # and all the variables that are supposed to be based on exec_prefix
1377 # by default will actually change.
1378 # Use braces instead of parens because sh, perl, etc. also accept them.
1379 # (The list follows the same order as the GNU Coding Standards.)
1380 bindir='${exec_prefix}/bin'
1381 sbindir='${exec_prefix}/sbin'
1382 libexecdir='${exec_prefix}/libexec'
1383 datarootdir='${prefix}/share'
1384 datadir='${datarootdir}'
1385 sysconfdir='${prefix}/etc'
1386 sharedstatedir='${prefix}/com'
1387 localstatedir='${prefix}/var'
1388 includedir='${prefix}/include'
1389 oldincludedir='/usr/include'
1390 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1391 infodir='${datarootdir}/info'
1392 htmldir='${docdir}'
1393 dvidir='${docdir}'
1394 pdfdir='${docdir}'
1395 psdir='${docdir}'
1396 libdir='${exec_prefix}/lib'
1397 localedir='${datarootdir}/locale'
1398 mandir='${datarootdir}/man'
1399 
1400 ac_prev=
1401 ac_dashdash=
1402 for ac_option
1403 do
1404   # If the previous option needs an argument, assign it.
1405   if test -n "$ac_prev"; then
1406     eval $ac_prev=\$ac_option
1407     ac_prev=
1408     continue
1409   fi
1410 
1411   case $ac_option in
1412   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1413   *=)   ac_optarg= ;;
1414   *)    ac_optarg=yes ;;
1415   esac
1416 
1417   # Accept the important Cygnus configure options, so we can diagnose typos.
1418 
1419   case $ac_dashdash$ac_option in
1420   --)
1421     ac_dashdash=yes ;;
1422 
1423   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1424     ac_prev=bindir ;;
1425   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1426     bindir=$ac_optarg ;;
1427 
1428   -build | --build | --buil | --bui | --bu)
1429     ac_prev=build_alias ;;
1430   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1431     build_alias=$ac_optarg ;;
1432 
1433   -cache-file | --cache-file | --cache-fil | --cache-fi \
1434   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1435     ac_prev=cache_file ;;
1436   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1437   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1438     cache_file=$ac_optarg ;;
1439 
1440   --config-cache | -C)
1441     cache_file=config.cache ;;
1442 
1443   -datadir | --datadir | --datadi | --datad)
1444     ac_prev=datadir ;;
1445   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1446     datadir=$ac_optarg ;;
1447 
1448   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1449   | --dataroo | --dataro | --datar)
1450     ac_prev=datarootdir ;;
1451   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1452   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1453     datarootdir=$ac_optarg ;;
1454 
1455   -disable-* | --disable-*)
1456     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1457     # Reject names that are not valid shell variable names.
1458     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1459       as_fn_error $? "invalid feature name: $ac_useropt"
1460     ac_useropt_orig=$ac_useropt
1461     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1462     case $ac_user_opts in
1463       *"
1464 "enable_$ac_useropt"
1465 "*) ;;
1466       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1467          ac_unrecognized_sep=', ';;
1468     esac
1469     eval enable_$ac_useropt=no ;;
1470 
1471   -docdir | --docdir | --docdi | --doc | --do)
1472     ac_prev=docdir ;;
1473   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1474     docdir=$ac_optarg ;;
1475 
1476   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1477     ac_prev=dvidir ;;
1478   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1479     dvidir=$ac_optarg ;;
1480 
1481   -enable-* | --enable-*)
1482     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1483     # Reject names that are not valid shell variable names.
1484     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1485       as_fn_error $? "invalid feature name: $ac_useropt"
1486     ac_useropt_orig=$ac_useropt
1487     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1488     case $ac_user_opts in
1489       *"
1490 "enable_$ac_useropt"
1491 "*) ;;
1492       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1493          ac_unrecognized_sep=', ';;
1494     esac
1495     eval enable_$ac_useropt=\$ac_optarg ;;
1496 
1497   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1498   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1499   | --exec | --exe | --ex)
1500     ac_prev=exec_prefix ;;
1501   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1502   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1503   | --exec=* | --exe=* | --ex=*)
1504     exec_prefix=$ac_optarg ;;
1505 
1506   -gas | --gas | --ga | --g)
1507     # Obsolete; use --with-gas.
1508     with_gas=yes ;;
1509 
1510   -help | --help | --hel | --he | -h)
1511     ac_init_help=long ;;
1512   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1513     ac_init_help=recursive ;;
1514   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1515     ac_init_help=short ;;
1516 
1517   -host | --host | --hos | --ho)
1518     ac_prev=host_alias ;;
1519   -host=* | --host=* | --hos=* | --ho=*)
1520     host_alias=$ac_optarg ;;
1521 
1522   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1523     ac_prev=htmldir ;;
1524   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1525   | --ht=*)
1526     htmldir=$ac_optarg ;;
1527 
1528   -includedir | --includedir | --includedi | --included | --include \
1529   | --includ | --inclu | --incl | --inc)
1530     ac_prev=includedir ;;
1531   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1532   | --includ=* | --inclu=* | --incl=* | --inc=*)
1533     includedir=$ac_optarg ;;
1534 
1535   -infodir | --infodir | --infodi | --infod | --info | --inf)
1536     ac_prev=infodir ;;
1537   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1538     infodir=$ac_optarg ;;
1539 
1540   -libdir | --libdir | --libdi | --libd)
1541     ac_prev=libdir ;;
1542   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1543     libdir=$ac_optarg ;;
1544 
1545   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1546   | --libexe | --libex | --libe)
1547     ac_prev=libexecdir ;;
1548   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1549   | --libexe=* | --libex=* | --libe=*)
1550     libexecdir=$ac_optarg ;;
1551 
1552   -localedir | --localedir | --localedi | --localed | --locale)
1553     ac_prev=localedir ;;
1554   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1555     localedir=$ac_optarg ;;
1556 
1557   -localstatedir | --localstatedir | --localstatedi | --localstated \
1558   | --localstate | --localstat | --localsta | --localst | --locals)
1559     ac_prev=localstatedir ;;
1560   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1561   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1562     localstatedir=$ac_optarg ;;
1563 
1564   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1565     ac_prev=mandir ;;
1566   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1567     mandir=$ac_optarg ;;
1568 
1569   -nfp | --nfp | --nf)
1570     # Obsolete; use --without-fp.
1571     with_fp=no ;;
1572 
1573   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1574   | --no-cr | --no-c | -n)
1575     no_create=yes ;;
1576 
1577   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1578   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1579     no_recursion=yes ;;
1580 
1581   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1582   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1583   | --oldin | --oldi | --old | --ol | --o)
1584     ac_prev=oldincludedir ;;
1585   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1586   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1587   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1588     oldincludedir=$ac_optarg ;;
1589 
1590   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1591     ac_prev=prefix ;;
1592   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1593     prefix=$ac_optarg ;;
1594 
1595   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1596   | --program-pre | --program-pr | --program-p)
1597     ac_prev=program_prefix ;;
1598   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1599   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1600     program_prefix=$ac_optarg ;;
1601 
1602   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1603   | --program-suf | --program-su | --program-s)
1604     ac_prev=program_suffix ;;
1605   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1606   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1607     program_suffix=$ac_optarg ;;
1608 
1609   -program-transform-name | --program-transform-name \
1610   | --program-transform-nam | --program-transform-na \
1611   | --program-transform-n | --program-transform- \
1612   | --program-transform | --program-transfor \
1613   | --program-transfo | --program-transf \
1614   | --program-trans | --program-tran \
1615   | --progr-tra | --program-tr | --program-t)
1616     ac_prev=program_transform_name ;;
1617   -program-transform-name=* | --program-transform-name=* \
1618   | --program-transform-nam=* | --program-transform-na=* \
1619   | --program-transform-n=* | --program-transform-=* \
1620   | --program-transform=* | --program-transfor=* \
1621   | --program-transfo=* | --program-transf=* \
1622   | --program-trans=* | --program-tran=* \
1623   | --progr-tra=* | --program-tr=* | --program-t=*)
1624     program_transform_name=$ac_optarg ;;
1625 
1626   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1627     ac_prev=pdfdir ;;
1628   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1629     pdfdir=$ac_optarg ;;
1630 
1631   -psdir | --psdir | --psdi | --psd | --ps)
1632     ac_prev=psdir ;;
1633   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1634     psdir=$ac_optarg ;;
1635 
1636   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1637   | -silent | --silent | --silen | --sile | --sil)
1638     silent=yes ;;
1639 
1640   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1641     ac_prev=sbindir ;;
1642   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1643   | --sbi=* | --sb=*)
1644     sbindir=$ac_optarg ;;
1645 
1646   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1647   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1648   | --sharedst | --shareds | --shared | --share | --shar \
1649   | --sha | --sh)
1650     ac_prev=sharedstatedir ;;
1651   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1652   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1653   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1654   | --sha=* | --sh=*)
1655     sharedstatedir=$ac_optarg ;;
1656 
1657   -site | --site | --sit)
1658     ac_prev=site ;;
1659   -site=* | --site=* | --sit=*)
1660     site=$ac_optarg ;;
1661 
1662   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1663     ac_prev=srcdir ;;
1664   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1665     srcdir=$ac_optarg ;;
1666 
1667   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1668   | --syscon | --sysco | --sysc | --sys | --sy)
1669     ac_prev=sysconfdir ;;
1670   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1671   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1672     sysconfdir=$ac_optarg ;;
1673 
1674   -target | --target | --targe | --targ | --tar | --ta | --t)
1675     ac_prev=target_alias ;;
1676   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1677     target_alias=$ac_optarg ;;
1678 
1679   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1680     verbose=yes ;;
1681 
1682   -version | --version | --versio | --versi | --vers | -V)
1683     ac_init_version=: ;;
1684 
1685   -with-* | --with-*)
1686     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1687     # Reject names that are not valid shell variable names.
1688     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1689       as_fn_error $? "invalid package name: $ac_useropt"
1690     ac_useropt_orig=$ac_useropt
1691     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1692     case $ac_user_opts in
1693       *"
1694 "with_$ac_useropt"
1695 "*) ;;
1696       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1697          ac_unrecognized_sep=', ';;
1698     esac
1699     eval with_$ac_useropt=\$ac_optarg ;;
1700 
1701   -without-* | --without-*)
1702     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1703     # Reject names that are not valid shell variable names.
1704     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1705       as_fn_error $? "invalid package name: $ac_useropt"
1706     ac_useropt_orig=$ac_useropt
1707     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1708     case $ac_user_opts in
1709       *"
1710 "with_$ac_useropt"
1711 "*) ;;
1712       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1713          ac_unrecognized_sep=', ';;
1714     esac
1715     eval with_$ac_useropt=no ;;
1716 
1717   --x)
1718     # Obsolete; use --with-x.
1719     with_x=yes ;;
1720 
1721   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1722   | --x-incl | --x-inc | --x-in | --x-i)
1723     ac_prev=x_includes ;;
1724   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1725   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1726     x_includes=$ac_optarg ;;
1727 
1728   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1729   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1730     ac_prev=x_libraries ;;
1731   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1732   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1733     x_libraries=$ac_optarg ;;
1734 
1735   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1736 Try \`$0 --help' for more information"
1737     ;;
1738 
1739   *=*)
1740     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1741     # Reject names that are not valid shell variable names.
1742     case $ac_envvar in #(
1743       '' | [0-9]* | *[!_$as_cr_alnum]* )
1744       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1745     esac
1746     eval $ac_envvar=\$ac_optarg
1747     export $ac_envvar ;;
1748 
1749   *)
1750     # FIXME: should be removed in autoconf 3.0.
1751     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1752     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1753       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1754     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1755     ;;
1756 
1757   esac
1758 done
1759 
1760 if test -n "$ac_prev"; then
1761   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1762   as_fn_error $? "missing argument to $ac_option"
1763 fi
1764 
1765 if test -n "$ac_unrecognized_opts"; then
1766   case $enable_option_checking in
1767     no) ;;
1768     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1769     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1770   esac
1771 fi
1772 
1773 # Check all directory arguments for consistency.
1774 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1775                 datadir sysconfdir sharedstatedir localstatedir includedir \
1776                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1777                 libdir localedir mandir
1778 do
1779   eval ac_val=\$$ac_var
1780   # Remove trailing slashes.
1781   case $ac_val in
1782     */ )
1783       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1784       eval $ac_var=\$ac_val;;
1785   esac
1786   # Be sure to have absolute directory names.
1787   case $ac_val in
1788     [\\/$]* | ?:[\\/]* )  continue;;
1789     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1790   esac
1791   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1792 done
1793 
1794 # There might be people who depend on the old broken behavior: `$host'
1795 # used to hold the argument of --host etc.
1796 # FIXME: To remove some day.
1797 build=$build_alias
1798 host=$host_alias
1799 target=$target_alias
1800 
1801 # FIXME: To remove some day.
1802 if test "x$host_alias" != x; then
1803   if test "x$build_alias" = x; then
1804     cross_compiling=maybe
1805   elif test "x$build_alias" != "x$host_alias"; then
1806     cross_compiling=yes
1807   fi
1808 fi
1809 
1810 ac_tool_prefix=
1811 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1812 
1813 test "$silent" = yes && exec 6>/dev/null
1814 
1815 
1816 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1817 ac_ls_di=`ls -di .` &&
1818 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1819   as_fn_error $? "working directory cannot be determined"
1820 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1821   as_fn_error $? "pwd does not report name of working directory"
1822 
1823 
1824 # Find the source files, if location was not specified.
1825 if test -z "$srcdir"; then
1826   ac_srcdir_defaulted=yes
1827   # Try the directory containing this script, then the parent directory.
1828   ac_confdir=`$as_dirname -- "$as_myself" ||
1829 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1830          X"$as_myself" : 'X\(//\)[^/]' \| \
1831          X"$as_myself" : 'X\(//\)$' \| \
1832          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1833 $as_echo X"$as_myself" |
1834     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1835             s//\1/
1836             q
1837           }
1838           /^X\(\/\/\)[^/].*/{
1839             s//\1/
1840             q
1841           }
1842           /^X\(\/\/\)$/{
1843             s//\1/
1844             q
1845           }
1846           /^X\(\/\).*/{
1847             s//\1/
1848             q
1849           }
1850           s/.*/./; q'`
1851   srcdir=$ac_confdir
1852   if test ! -r "$srcdir/$ac_unique_file"; then
1853     srcdir=..
1854   fi
1855 else
1856   ac_srcdir_defaulted=no
1857 fi
1858 if test ! -r "$srcdir/$ac_unique_file"; then
1859   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1860   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1861 fi
1862 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1863 ac_abs_confdir=`(
1864         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1865         pwd)`
1866 # When building in place, set srcdir=.
1867 if test "$ac_abs_confdir" = "$ac_pwd"; then
1868   srcdir=.
1869 fi
1870 # Remove unnecessary trailing slashes from srcdir.
1871 # Double slashes in file names in object file debugging info
1872 # mess up M-x gdb in Emacs.
1873 case $srcdir in
1874 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1875 esac
1876 for ac_var in $ac_precious_vars; do
1877   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1878   eval ac_env_${ac_var}_value=\$${ac_var}
1879   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1880   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1881 done
1882 
1883 #
1884 # Report the --help message.
1885 #
1886 if test "$ac_init_help" = "long"; then
1887   # Omit some internal or obsolete options to make the list less imposing.
1888   # This message is too long to be a string in the A/UX 3.1 sh.
1889   cat <<_ACEOF
1890 \`configure' configures OpenJDK jdk9 to adapt to many kinds of systems.
1891 
1892 Usage: $0 [OPTION]... [VAR=VALUE]...
1893 
1894 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1895 VAR=VALUE.  See below for descriptions of some of the useful variables.
1896 
1897 Defaults for the options are specified in brackets.
1898 
1899 Configuration:
1900   -h, --help              display this help and exit
1901       --help=short        display options specific to this package
1902       --help=recursive    display the short help of all the included packages
1903   -V, --version           display version information and exit
1904   -q, --quiet, --silent   do not print \`checking ...' messages
1905       --cache-file=FILE   cache test results in FILE [disabled]
1906   -C, --config-cache      alias for \`--cache-file=config.cache'
1907   -n, --no-create         do not create output files
1908       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1909 
1910 Installation directories:
1911   --prefix=PREFIX         install architecture-independent files in PREFIX
1912                           [$ac_default_prefix]
1913   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1914                           [PREFIX]
1915 
1916 By default, \`make install' will install all the files in
1917 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1918 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1919 for instance \`--prefix=\$HOME'.
1920 
1921 For better control, use the options below.
1922 
1923 Fine tuning of the installation directories:
1924   --bindir=DIR            user executables [EPREFIX/bin]
1925   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1926   --libexecdir=DIR        program executables [EPREFIX/libexec]
1927   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1928   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1929   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1930   --libdir=DIR            object code libraries [EPREFIX/lib]
1931   --includedir=DIR        C header files [PREFIX/include]
1932   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1933   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1934   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1935   --infodir=DIR           info documentation [DATAROOTDIR/info]
1936   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1937   --mandir=DIR            man documentation [DATAROOTDIR/man]
1938   --docdir=DIR            documentation root [DATAROOTDIR/doc/openjdk]
1939   --htmldir=DIR           html documentation [DOCDIR]
1940   --dvidir=DIR            dvi documentation [DOCDIR]
1941   --pdfdir=DIR            pdf documentation [DOCDIR]
1942   --psdir=DIR             ps documentation [DOCDIR]
1943 _ACEOF
1944 
1945   cat <<\_ACEOF
1946 
1947 X features:
1948   --x-includes=DIR    X include files are in DIR
1949   --x-libraries=DIR   X library files are in DIR
1950 
1951 System types:
1952   --build=BUILD     configure for building on BUILD [guessed]
1953   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1954   --target=TARGET   configure for building compilers for TARGET [HOST]
1955 _ACEOF
1956 fi
1957 
1958 if test -n "$ac_init_help"; then
1959   case $ac_init_help in
1960      short | recursive ) echo "Configuration of OpenJDK jdk9:";;
1961    esac
1962   cat <<\_ACEOF
1963 
1964 Optional Features:
1965   --disable-option-checking  ignore unrecognized --enable/--with options
1966   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1967   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1968   --enable-openjdk-only   suppress building custom source even if present
1969                           [disabled]
1970   --enable-debug          set the debug level to fastdebug (shorthand for
1971                           --with-debug-level=fastdebug) [disabled]
1972   --enable-headless-only  only build headless (no GUI) support [disabled]
1973   --disable-unlimited-crypto
1974                           Disable unlimited crypto policy [enabled]
1975   --disable-keep-packaged-modules
1976                           Do not keep packaged modules in jdk image [enable]
1977   --enable-static-build   enable static library build [disabled]
1978   --disable-warnings-as-errors
1979                           do not consider native warnings to be an error
1980                           [enabled]
1981   --enable-debug-symbols  Deprecated. Option is kept for backwards
1982                           compatibility and is ignored
1983   --enable-zip-debug-info Deprecated. Option is kept for backwards
1984                           compatibility and is ignored
1985   --enable-native-coverage
1986                           enable native compilation with code coverage
1987                           data[disabled]
1988   --enable-dtrace[=yes/no/auto]
1989                           enable dtrace. Default is auto, where dtrace is
1990                           enabled if all dependencies are present.
1991   --enable-aot[=yes/no/auto]
1992                           enable ahead of time compilation feature. Default is
1993                           auto, where aot is enabled if all dependencies are
1994                           present.
1995   --disable-hotspot-gtest Disables building of the Hotspot unit tests
1996   --disable-freetype-bundling
1997                           disable bundling of the freetype library with the
1998                           build result [enabled on Windows or when using
1999                           --with-freetype, disabled otherwise]
2000   --enable-libffi-bundling
2001                           enable bundling of libffi.so to make the built JDK
2002                           runnable on more systems
2003   --enable-jtreg-failure-handler
2004                           forces build of the jtreg failure handler to be
2005                           enabled, missing dependencies become fatal errors.
2006                           Default is auto, where the failure handler is built
2007                           if all dependencies are present and otherwise just
2008                           disabled.
2009   --disable-generate-classlist
2010                           forces enabling or disabling of the generation of a
2011                           CDS classlist at build time. Default is to generate
2012                           it when either the server or client JVMs are built.
2013   --enable-sjavac         use sjavac to do fast incremental compiles
2014                           [disabled]
2015   --disable-javac-server  disable javac server [enabled]
2016   --enable-icecc          enable distribted compilation of native code using
2017                           icecc/icecream [disabled]
2018   --disable-precompiled-headers
2019                           disable using precompiled headers when compiling C++
2020                           [enabled]
2021   --enable-ccache         enable using ccache to speed up recompilations
2022                           [disabled]
2023 
2024 Optional Packages:
2025   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
2026   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
2027   --with-target-bits      build 32-bit or 64-bit binaries (for platforms that
2028                           support it), e.g. --with-target-bits=32 [guessed]
2029   --with-custom-make-dir  Deprecated. Option is kept for backwards
2030                           compatibility and is ignored
2031   --with-jdk-variant      JDK variant to build (normal) [normal]
2032   --with-debug-level      set the debug level (release, fastdebug, slowdebug,
2033                           optimized) [release]
2034   --with-jvm-variants     JVM variants (separated by commas) to build
2035                           (server,client,minimal,core,zero,zeroshark,custom)
2036                           [server]
2037   --with-cpu-port         specify sources to use for Hotspot 64-bit ARM port
2038                           (arm64,aarch64) [aarch64]
2039   --with-devkit           use this devkit for compilers, tools and resources
2040   --with-sys-root         alias for --with-sysroot for backwards compatability
2041   --with-sysroot          use this directory as sysroot
2042   --with-tools-dir        alias for --with-toolchain-path for backwards
2043                           compatibility
2044   --with-toolchain-path   prepend these directories when searching for
2045                           toolchain binaries (compilers etc)
2046   --with-extra-path       prepend these directories to the default path
2047   --with-sdk-name         use the platform SDK of the given name. [macosx]
2048   --with-conf-name        use this as the name of the configuration [generated
2049                           from important configuration options]
2050   --with-output-sync      set make output sync type if supported by make.
2051                           [recurse]
2052   --with-default-make-target
2053                           set the default make target [exploded-image]
2054   --with-cacerts-file     specify alternative cacerts file
2055   --with-copyright-year   Set copyright year value for build [current year]
2056   --with-milestone        Deprecated. Option is kept for backwards
2057                           compatibility and is ignored
2058   --with-update-version   Deprecated. Option is kept for backwards
2059                           compatibility and is ignored
2060   --with-user-release-suffix
2061                           Deprecated. Option is kept for backwards
2062                           compatibility and is ignored
2063   --with-build-number     Deprecated. Option is kept for backwards
2064                           compatibility and is ignored
2065   --with-version-string   Set version string [calculated]
2066   --with-version-pre      Set the base part of the version 'PRE' field
2067                           (pre-release identifier) ['internal']
2068   --with-version-opt      Set version 'OPT' field (build metadata)
2069                           [<timestamp>.<user>.<dirname>]
2070   --with-version-build    Set version 'BUILD' field (build number) [not
2071                           specified]
2072   --with-version-major    Set version 'MAJOR' field (first number) [current
2073                           source value]
2074   --with-version-minor    Set version 'MINOR' field (second number) [current
2075                           source value]
2076   --with-version-security Set version 'SECURITY' field (third number) [current
2077                           source value]
2078   --with-version-patch    Set version 'PATCH' field (fourth number) [not
2079                           specified]
2080   --with-boot-jdk         path to Boot JDK (used to bootstrap build) [probed]
2081   --with-build-jdk        path to JDK of same version as is being built[the
2082                           newly built JDK]
2083   --with-add-source-root  Deprecated. Option is kept for backwards
2084                           compatibility and is ignored
2085   --with-override-source-root
2086                           Deprecated. Option is kept for backwards
2087                           compatibility and is ignored
2088   --with-adds-and-overrides
2089                           Deprecated. Option is kept for backwards
2090                           compatibility and is ignored
2091   --with-override-langtools
2092                           Deprecated. Option is kept for backwards
2093                           compatibility and is ignored
2094   --with-override-corba   Deprecated. Option is kept for backwards
2095                           compatibility and is ignored
2096   --with-override-jaxp    Deprecated. Option is kept for backwards
2097                           compatibility and is ignored
2098   --with-override-jaxws   Deprecated. Option is kept for backwards
2099                           compatibility and is ignored
2100   --with-override-hotspot Deprecated. Option is kept for backwards
2101                           compatibility and is ignored
2102   --with-override-nashorn Deprecated. Option is kept for backwards
2103                           compatibility and is ignored
2104   --with-override-jdk     Deprecated. Option is kept for backwards
2105                           compatibility and is ignored
2106   --with-import_hotspot   Deprecated. Option is kept for backwards
2107                           compatibility and is ignored
2108   --with-import-modules   import a set of prebuilt modules either as a zip
2109                           file or an exploded directory
2110   --with-toolchain-type   the toolchain type (or family) to use, use '--help'
2111                           to show possible values [platform dependent]
2112   --with-extra-cflags     extra flags to be used when compiling jdk c-files
2113   --with-extra-cxxflags   extra flags to be used when compiling jdk c++-files
2114   --with-extra-ldflags    extra flags to be used when linking jdk
2115   --with-toolchain-version
2116                           the version of the toolchain to look for, use
2117                           '--help' to show possible values [platform
2118                           dependent]
2119   --with-build-devkit     Devkit to use for the build platform toolchain
2120   --with-jtreg            Regression Test Harness [probed]
2121   --with-abi-profile      specify ABI profile for ARM builds
2122                           (arm-vfp-sflt,arm-vfp-hflt,arm-sflt,
2123                           armv5-vfp-sflt,armv6-vfp-hflt,arm64,aarch64)
2124                           [toolchain dependent]
2125   --with-native-debug-symbols
2126                           set the native debug symbol configuration (none,
2127                           internal, external, zipped) [varying]
2128   --with-stdc++lib=<static>,<dynamic>,<default>
2129                           force linking of the C++ runtime on Linux to either
2130                           static or dynamic, default is static with dynamic as
2131                           fallback
2132   --with-msvcr-dll        path to microsoft C runtime dll (msvcr*.dll)
2133                           (Windows only) [probed]
2134   --with-msvcp-dll        path to microsoft C++ runtime dll (msvcp*.dll)
2135                           (Windows only) [probed]
2136   --with-x                use the X Window System
2137   --with-cups             specify prefix directory for the cups package
2138                           (expecting the headers under PATH/include)
2139   --with-cups-include     specify directory for the cups include files
2140   --with-freetype         specify prefix directory for the freetype package
2141                           (expecting the libraries under PATH/lib and the
2142                           headers under PATH/include)
2143   --with-freetype-include specify directory for the freetype include files
2144   --with-freetype-lib     specify directory for the freetype library
2145   --with-freetype-src     specify directory with freetype sources to
2146                           automatically build the library (experimental,
2147                           Windows-only)
2148   --with-alsa             specify prefix directory for the alsa package
2149                           (expecting the libraries under PATH/lib and the
2150                           headers under PATH/include)
2151   --with-alsa-include     specify directory for the alsa include files
2152   --with-alsa-lib         specify directory for the alsa library
2153   --with-libffi           specify prefix directory for the libffi package
2154                           (expecting the libraries under PATH/lib and the
2155                           headers under PATH/include)
2156   --with-libffi-include   specify directory for the libffi include files
2157   --with-libffi-lib       specify directory for the libffi library
2158   --with-libjpeg          use libjpeg from build system or OpenJDK source
2159                           (system, bundled) [bundled]
2160   --with-giflib           use giflib from build system or OpenJDK source
2161                           (system, bundled) [bundled]
2162   --with-libpng           use libpng from build system or OpenJDK source
2163                           (system, bundled) [bundled]
2164   --with-zlib             use zlib from build system or OpenJDK source
2165                           (system, bundled) [bundled]
2166   --with-lcms             use lcms2 from build system or OpenJDK source
2167                           (system, bundled) [bundled]
2168   --with-dxsdk            Deprecated. Option is kept for backwards
2169                           compatibility and is ignored
2170   --with-dxsdk-lib        Deprecated. Option is kept for backwards
2171                           compatibility and is ignored
2172   --with-dxsdk-include    Deprecated. Option is kept for backwards
2173                           compatibility and is ignored
2174   --with-jvm-features     additional JVM features to enable (separated by
2175                           comma), use '--help' to show possible values [none]
2176   --with-jvm-interpreter  Deprecated. Option is kept for backwards
2177                           compatibility and is ignored
2178   --with-num-cores        number of cores in the build system, e.g.
2179                           --with-num-cores=8 [probed]
2180   --with-memory-size      memory (in MB) available in the build system, e.g.
2181                           --with-memory-size=1024 [probed]
2182   --with-jobs             number of parallel jobs to let make run [calculated
2183                           based on cores and memory]
2184   --with-test-jobs        number of parallel tests jobs to run [based on build
2185                           jobs]
2186   --with-boot-jdk-jvmargs specify JVM arguments to be passed to all java
2187                           invocations of boot JDK, overriding the default
2188                           values, e.g --with-boot-jdk-jvmargs="-Xmx8G
2189                           -enableassertions"
2190   --with-sjavac-server-java
2191                           use this java binary for running the sjavac
2192                           background server [Boot JDK java]
2193   --with-ccache-dir       where to store ccache files [~/.ccache]
2194 
2195 Some influential environment variables:
2196   BASENAME    Override default value for BASENAME
2197   BASH        Override default value for BASH
2198   CAT         Override default value for CAT
2199   CHMOD       Override default value for CHMOD
2200   CMP         Override default value for CMP
2201   COMM        Override default value for COMM
2202   CP          Override default value for CP
2203   CUT         Override default value for CUT
2204   DATE        Override default value for DATE
2205   DIFF        Override default value for DIFF
2206   DIRNAME     Override default value for DIRNAME
2207   ECHO        Override default value for ECHO
2208   EXPR        Override default value for EXPR
2209   FILE        Override default value for FILE
2210   FIND        Override default value for FIND
2211   HEAD        Override default value for HEAD
2212   GUNZIP      Override default value for GUNZIP
2213   GZIP        Override default value for GZIP
2214   LN          Override default value for LN
2215   LS          Override default value for LS
2216   MKDIR       Override default value for MKDIR
2217   MKTEMP      Override default value for MKTEMP
2218   MV          Override default value for MV
2219   NAWK        Override default value for NAWK
2220   PRINTF      Override default value for PRINTF
2221   RM          Override default value for RM
2222   RMDIR       Override default value for RMDIR
2223   SH          Override default value for SH
2224   SORT        Override default value for SORT
2225   TAIL        Override default value for TAIL
2226   TAR         Override default value for TAR
2227   TEE         Override default value for TEE
2228   TOUCH       Override default value for TOUCH
2229   TR          Override default value for TR
2230   UNAME       Override default value for UNAME
2231   UNIQ        Override default value for UNIQ
2232   WC          Override default value for WC
2233   WHICH       Override default value for WHICH
2234   XARGS       Override default value for XARGS
2235   AWK         Override default value for AWK
2236   GREP        Override default value for GREP
2237   EGREP       Override default value for EGREP
2238   FGREP       Override default value for FGREP
2239   SED         Override default value for SED
2240   CYGPATH     Override default value for CYGPATH
2241   READLINK    Override default value for READLINK
2242   DF          Override default value for DF
2243   CPIO        Override default value for CPIO
2244   NICE        Override default value for NICE
2245   MAKE        Override default value for MAKE
2246   UNZIP       Override default value for UNZIP
2247   ZIPEXE      Override default value for ZIPEXE
2248   LDD         Override default value for LDD
2249   OTOOL       Override default value for OTOOL
2250   READELF     Override default value for READELF
2251   HG          Override default value for HG
2252   STAT        Override default value for STAT
2253   TIME        Override default value for TIME
2254   DTRACE      Override default value for DTRACE
2255   PATCH       Override default value for PATCH
2256   DSYMUTIL    Override default value for DSYMUTIL
2257   XATTR       Override default value for XATTR
2258   CODESIGN    Override default value for CODESIGN
2259   SETFILE     Override default value for SETFILE
2260   PKG_CONFIG  path to pkg-config utility
2261   JAVA        Override default value for JAVA
2262   JAVAC       Override default value for JAVAC
2263   JAVAH       Override default value for JAVAH
2264   JAR         Override default value for JAR
2265   JARSIGNER   Override default value for JARSIGNER
2266   CC          C compiler command
2267   CFLAGS      C compiler flags
2268   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2269               nonstandard directory <lib dir>
2270   LIBS        libraries to pass to the linker, e.g. -l<library>
2271   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2272               you have headers in a nonstandard directory <include dir>
2273   CXX         C++ compiler command
2274   CXXFLAGS    C++ compiler flags
2275   CPP         C preprocessor
2276   CXXCPP      C++ preprocessor
2277   AS          Override default value for AS
2278   AR          Override default value for AR
2279   LIPO        Override default value for LIPO
2280   STRIP       Override default value for STRIP
2281   NM          Override default value for NM
2282   GNM         Override default value for GNM
2283   OBJCOPY     Override default value for OBJCOPY
2284   OBJDUMP     Override default value for OBJDUMP
2285   BUILD_CC    Override default value for BUILD_CC
2286   BUILD_CXX   Override default value for BUILD_CXX
2287   BUILD_NM    Override default value for BUILD_NM
2288   BUILD_AR    Override default value for BUILD_AR
2289   BUILD_OBJCOPY
2290               Override default value for BUILD_OBJCOPY
2291   BUILD_STRIP Override default value for BUILD_STRIP
2292   JTREGEXE    Override default value for JTREGEXE
2293   XMKMF       Path to xmkmf, Makefile generator for X Window System
2294   FREETYPE_CFLAGS
2295               C compiler flags for FREETYPE, overriding pkg-config
2296   FREETYPE_LIBS
2297               linker flags for FREETYPE, overriding pkg-config
2298   ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
2299   ALSA_LIBS   linker flags for ALSA, overriding pkg-config
2300   LIBFFI_CFLAGS
2301               C compiler flags for LIBFFI, overriding pkg-config
2302   LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
2303   PNG_CFLAGS  C compiler flags for PNG, overriding pkg-config
2304   PNG_LIBS    linker flags for PNG, overriding pkg-config
2305   LCMS_CFLAGS C compiler flags for LCMS, overriding pkg-config
2306   LCMS_LIBS   linker flags for LCMS, overriding pkg-config
2307   ICECC_CMD   Override default value for ICECC_CMD
2308   ICECC_CREATE_ENV
2309               Override default value for ICECC_CREATE_ENV
2310   ICECC_WRAPPER
2311               Override default value for ICECC_WRAPPER
2312   CCACHE      Override default value for CCACHE
2313 
2314 Use these variables to override the choices made by `configure' or to help
2315 it to find libraries and programs with nonstandard names/locations.
2316 
2317 Report bugs to <build-dev@openjdk.java.net>.
2318 OpenJDK home page: <http://openjdk.java.net>.
2319 _ACEOF
2320 ac_status=$?
2321 fi
2322 
2323 if test "$ac_init_help" = "recursive"; then
2324   # If there are subdirs, report their specific --help.
2325   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2326     test -d "$ac_dir" ||
2327       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2328       continue
2329     ac_builddir=.
2330 
2331 case "$ac_dir" in
2332 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2333 *)
2334   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2335   # A ".." for each directory in $ac_dir_suffix.
2336   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2337   case $ac_top_builddir_sub in
2338   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2339   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2340   esac ;;
2341 esac
2342 ac_abs_top_builddir=$ac_pwd
2343 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2344 # for backward compatibility:
2345 ac_top_builddir=$ac_top_build_prefix
2346 
2347 case $srcdir in
2348   .)  # We are building in place.
2349     ac_srcdir=.
2350     ac_top_srcdir=$ac_top_builddir_sub
2351     ac_abs_top_srcdir=$ac_pwd ;;
2352   [\\/]* | ?:[\\/]* )  # Absolute name.
2353     ac_srcdir=$srcdir$ac_dir_suffix;
2354     ac_top_srcdir=$srcdir
2355     ac_abs_top_srcdir=$srcdir ;;
2356   *) # Relative name.
2357     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2358     ac_top_srcdir=$ac_top_build_prefix$srcdir
2359     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2360 esac
2361 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2362 
2363     cd "$ac_dir" || { ac_status=$?; continue; }
2364     # Check for guested configure.
2365     if test -f "$ac_srcdir/configure.gnu"; then
2366       echo &&
2367       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2368     elif test -f "$ac_srcdir/configure"; then
2369       echo &&
2370       $SHELL "$ac_srcdir/configure" --help=recursive
2371     else
2372       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2373     fi || ac_status=$?
2374     cd "$ac_pwd" || { ac_status=$?; break; }
2375   done
2376 fi
2377 
2378 test -n "$ac_init_help" && exit $ac_status
2379 if $ac_init_version; then
2380   cat <<\_ACEOF
2381 OpenJDK configure jdk9
2382 generated by GNU Autoconf 2.69
2383 
2384 Copyright (C) 2012 Free Software Foundation, Inc.
2385 This configure script is free software; the Free Software Foundation
2386 gives unlimited permission to copy, distribute and modify it.
2387 _ACEOF
2388   exit
2389 fi
2390 
2391 ## ------------------------ ##
2392 ## Autoconf initialization. ##
2393 ## ------------------------ ##
2394 
2395 # ac_fn_c_try_compile LINENO
2396 # --------------------------
2397 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2398 ac_fn_c_try_compile ()
2399 {
2400   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2401   rm -f conftest.$ac_objext
2402   if { { ac_try="$ac_compile"
2403 case "(($ac_try" in
2404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2405   *) ac_try_echo=$ac_try;;
2406 esac
2407 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2408 $as_echo "$ac_try_echo"; } >&5
2409   (eval "$ac_compile") 2>conftest.err
2410   ac_status=$?
2411   if test -s conftest.err; then
2412     grep -v '^ *+' conftest.err >conftest.er1
2413     cat conftest.er1 >&5
2414     mv -f conftest.er1 conftest.err
2415   fi
2416   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2417   test $ac_status = 0; } && {
2418          test -z "$ac_c_werror_flag" ||
2419          test ! -s conftest.err
2420        } && test -s conftest.$ac_objext; then :
2421   ac_retval=0
2422 else
2423   $as_echo "$as_me: failed program was:" >&5
2424 sed 's/^/| /' conftest.$ac_ext >&5
2425 
2426         ac_retval=1
2427 fi
2428   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2429   as_fn_set_status $ac_retval
2430 
2431 } # ac_fn_c_try_compile
2432 
2433 # ac_fn_cxx_try_compile LINENO
2434 # ----------------------------
2435 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2436 ac_fn_cxx_try_compile ()
2437 {
2438   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2439   rm -f conftest.$ac_objext
2440   if { { ac_try="$ac_compile"
2441 case "(($ac_try" in
2442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2443   *) ac_try_echo=$ac_try;;
2444 esac
2445 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2446 $as_echo "$ac_try_echo"; } >&5
2447   (eval "$ac_compile") 2>conftest.err
2448   ac_status=$?
2449   if test -s conftest.err; then
2450     grep -v '^ *+' conftest.err >conftest.er1
2451     cat conftest.er1 >&5
2452     mv -f conftest.er1 conftest.err
2453   fi
2454   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2455   test $ac_status = 0; } && {
2456          test -z "$ac_cxx_werror_flag" ||
2457          test ! -s conftest.err
2458        } && test -s conftest.$ac_objext; then :
2459   ac_retval=0
2460 else
2461   $as_echo "$as_me: failed program was:" >&5
2462 sed 's/^/| /' conftest.$ac_ext >&5
2463 
2464         ac_retval=1
2465 fi
2466   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2467   as_fn_set_status $ac_retval
2468 
2469 } # ac_fn_cxx_try_compile
2470 
2471 # ac_fn_c_try_cpp LINENO
2472 # ----------------------
2473 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2474 ac_fn_c_try_cpp ()
2475 {
2476   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2477   if { { ac_try="$ac_cpp conftest.$ac_ext"
2478 case "(($ac_try" in
2479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2480   *) ac_try_echo=$ac_try;;
2481 esac
2482 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2483 $as_echo "$ac_try_echo"; } >&5
2484   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2485   ac_status=$?
2486   if test -s conftest.err; then
2487     grep -v '^ *+' conftest.err >conftest.er1
2488     cat conftest.er1 >&5
2489     mv -f conftest.er1 conftest.err
2490   fi
2491   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2492   test $ac_status = 0; } > conftest.i && {
2493          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2494          test ! -s conftest.err
2495        }; then :
2496   ac_retval=0
2497 else
2498   $as_echo "$as_me: failed program was:" >&5
2499 sed 's/^/| /' conftest.$ac_ext >&5
2500 
2501     ac_retval=1
2502 fi
2503   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2504   as_fn_set_status $ac_retval
2505 
2506 } # ac_fn_c_try_cpp
2507 
2508 # ac_fn_cxx_try_cpp LINENO
2509 # ------------------------
2510 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2511 ac_fn_cxx_try_cpp ()
2512 {
2513   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2514   if { { ac_try="$ac_cpp conftest.$ac_ext"
2515 case "(($ac_try" in
2516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2517   *) ac_try_echo=$ac_try;;
2518 esac
2519 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2520 $as_echo "$ac_try_echo"; } >&5
2521   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2522   ac_status=$?
2523   if test -s conftest.err; then
2524     grep -v '^ *+' conftest.err >conftest.er1
2525     cat conftest.er1 >&5
2526     mv -f conftest.er1 conftest.err
2527   fi
2528   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2529   test $ac_status = 0; } > conftest.i && {
2530          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2531          test ! -s conftest.err
2532        }; then :
2533   ac_retval=0
2534 else
2535   $as_echo "$as_me: failed program was:" >&5
2536 sed 's/^/| /' conftest.$ac_ext >&5
2537 
2538     ac_retval=1
2539 fi
2540   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2541   as_fn_set_status $ac_retval
2542 
2543 } # ac_fn_cxx_try_cpp
2544 
2545 # ac_fn_c_try_link LINENO
2546 # -----------------------
2547 # Try to link conftest.$ac_ext, and return whether this succeeded.
2548 ac_fn_c_try_link ()
2549 {
2550   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2551   rm -f conftest.$ac_objext conftest$ac_exeext
2552   if { { ac_try="$ac_link"
2553 case "(($ac_try" in
2554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2555   *) ac_try_echo=$ac_try;;
2556 esac
2557 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2558 $as_echo "$ac_try_echo"; } >&5
2559   (eval "$ac_link") 2>conftest.err
2560   ac_status=$?
2561   if test -s conftest.err; then
2562     grep -v '^ *+' conftest.err >conftest.er1
2563     cat conftest.er1 >&5
2564     mv -f conftest.er1 conftest.err
2565   fi
2566   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2567   test $ac_status = 0; } && {
2568          test -z "$ac_c_werror_flag" ||
2569          test ! -s conftest.err
2570        } && test -s conftest$ac_exeext && {
2571          test "$cross_compiling" = yes ||
2572          test -x conftest$ac_exeext
2573        }; then :
2574   ac_retval=0
2575 else
2576   $as_echo "$as_me: failed program was:" >&5
2577 sed 's/^/| /' conftest.$ac_ext >&5
2578 
2579         ac_retval=1
2580 fi
2581   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2582   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2583   # interfere with the next link command; also delete a directory that is
2584   # left behind by Apple's compiler.  We do this before executing the actions.
2585   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2586   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2587   as_fn_set_status $ac_retval
2588 
2589 } # ac_fn_c_try_link
2590 
2591 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2592 # ---------------------------------------------------------
2593 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2594 # the include files in INCLUDES and setting the cache variable VAR
2595 # accordingly.
2596 ac_fn_cxx_check_header_mongrel ()
2597 {
2598   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2599   if eval \${$3+:} false; then :
2600   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2601 $as_echo_n "checking for $2... " >&6; }
2602 if eval \${$3+:} false; then :
2603   $as_echo_n "(cached) " >&6
2604 fi
2605 eval ac_res=\$$3
2606                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2607 $as_echo "$ac_res" >&6; }
2608 else
2609   # Is the header compilable?
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2611 $as_echo_n "checking $2 usability... " >&6; }
2612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2613 /* end confdefs.h.  */
2614 $4
2615 #include <$2>
2616 _ACEOF
2617 if ac_fn_cxx_try_compile "$LINENO"; then :
2618   ac_header_compiler=yes
2619 else
2620   ac_header_compiler=no
2621 fi
2622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2624 $as_echo "$ac_header_compiler" >&6; }
2625 
2626 # Is the header present?
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2628 $as_echo_n "checking $2 presence... " >&6; }
2629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2630 /* end confdefs.h.  */
2631 #include <$2>
2632 _ACEOF
2633 if ac_fn_cxx_try_cpp "$LINENO"; then :
2634   ac_header_preproc=yes
2635 else
2636   ac_header_preproc=no
2637 fi
2638 rm -f conftest.err conftest.i conftest.$ac_ext
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2640 $as_echo "$ac_header_preproc" >&6; }
2641 
2642 # So?  What about this header?
2643 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2644   yes:no: )
2645     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2646 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2647     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2648 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2649     ;;
2650   no:yes:* )
2651     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2652 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2653     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2654 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2655     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2656 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2657     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2658 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2659     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2660 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2661 ( $as_echo "## ----------------------------------------- ##
2662 ## Report this to build-dev@openjdk.java.net ##
2663 ## ----------------------------------------- ##"
2664      ) | sed "s/^/$as_me: WARNING:     /" >&2
2665     ;;
2666 esac
2667   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2668 $as_echo_n "checking for $2... " >&6; }
2669 if eval \${$3+:} false; then :
2670   $as_echo_n "(cached) " >&6
2671 else
2672   eval "$3=\$ac_header_compiler"
2673 fi
2674 eval ac_res=\$$3
2675                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2676 $as_echo "$ac_res" >&6; }
2677 fi
2678   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2679 
2680 } # ac_fn_cxx_check_header_mongrel
2681 
2682 # ac_fn_cxx_try_run LINENO
2683 # ------------------------
2684 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2685 # that executables *can* be run.
2686 ac_fn_cxx_try_run ()
2687 {
2688   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2689   if { { ac_try="$ac_link"
2690 case "(($ac_try" in
2691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2692   *) ac_try_echo=$ac_try;;
2693 esac
2694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2695 $as_echo "$ac_try_echo"; } >&5
2696   (eval "$ac_link") 2>&5
2697   ac_status=$?
2698   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2699   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2700   { { case "(($ac_try" in
2701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2702   *) ac_try_echo=$ac_try;;
2703 esac
2704 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2705 $as_echo "$ac_try_echo"; } >&5
2706   (eval "$ac_try") 2>&5
2707   ac_status=$?
2708   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2709   test $ac_status = 0; }; }; then :
2710   ac_retval=0
2711 else
2712   $as_echo "$as_me: program exited with status $ac_status" >&5
2713        $as_echo "$as_me: failed program was:" >&5
2714 sed 's/^/| /' conftest.$ac_ext >&5
2715 
2716        ac_retval=$ac_status
2717 fi
2718   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2719   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2720   as_fn_set_status $ac_retval
2721 
2722 } # ac_fn_cxx_try_run
2723 
2724 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2725 # ---------------------------------------------------------
2726 # Tests whether HEADER exists and can be compiled using the include files in
2727 # INCLUDES, setting the cache variable VAR accordingly.
2728 ac_fn_cxx_check_header_compile ()
2729 {
2730   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2731   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2732 $as_echo_n "checking for $2... " >&6; }
2733 if eval \${$3+:} false; then :
2734   $as_echo_n "(cached) " >&6
2735 else
2736   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2737 /* end confdefs.h.  */
2738 $4
2739 #include <$2>
2740 _ACEOF
2741 if ac_fn_cxx_try_compile "$LINENO"; then :
2742   eval "$3=yes"
2743 else
2744   eval "$3=no"
2745 fi
2746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2747 fi
2748 eval ac_res=\$$3
2749                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2750 $as_echo "$ac_res" >&6; }
2751   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2752 
2753 } # ac_fn_cxx_check_header_compile
2754 
2755 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2756 # ----------------------------------------------
2757 # Tries to find the compile-time value of EXPR in a program that includes
2758 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2759 # computed
2760 ac_fn_cxx_compute_int ()
2761 {
2762   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2763   if test "$cross_compiling" = yes; then
2764     # Depending upon the size, compute the lo and hi bounds.
2765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2766 /* end confdefs.h.  */
2767 $4
2768 int
2769 main ()
2770 {
2771 static int test_array [1 - 2 * !(($2) >= 0)];
2772 test_array [0] = 0;
2773 return test_array [0];
2774 
2775   ;
2776   return 0;
2777 }
2778 _ACEOF
2779 if ac_fn_cxx_try_compile "$LINENO"; then :
2780   ac_lo=0 ac_mid=0
2781   while :; do
2782     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2783 /* end confdefs.h.  */
2784 $4
2785 int
2786 main ()
2787 {
2788 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2789 test_array [0] = 0;
2790 return test_array [0];
2791 
2792   ;
2793   return 0;
2794 }
2795 _ACEOF
2796 if ac_fn_cxx_try_compile "$LINENO"; then :
2797   ac_hi=$ac_mid; break
2798 else
2799   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2800                         if test $ac_lo -le $ac_mid; then
2801                           ac_lo= ac_hi=
2802                           break
2803                         fi
2804                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2805 fi
2806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2807   done
2808 else
2809   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2810 /* end confdefs.h.  */
2811 $4
2812 int
2813 main ()
2814 {
2815 static int test_array [1 - 2 * !(($2) < 0)];
2816 test_array [0] = 0;
2817 return test_array [0];
2818 
2819   ;
2820   return 0;
2821 }
2822 _ACEOF
2823 if ac_fn_cxx_try_compile "$LINENO"; then :
2824   ac_hi=-1 ac_mid=-1
2825   while :; do
2826     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2827 /* end confdefs.h.  */
2828 $4
2829 int
2830 main ()
2831 {
2832 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2833 test_array [0] = 0;
2834 return test_array [0];
2835 
2836   ;
2837   return 0;
2838 }
2839 _ACEOF
2840 if ac_fn_cxx_try_compile "$LINENO"; then :
2841   ac_lo=$ac_mid; break
2842 else
2843   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2844                         if test $ac_mid -le $ac_hi; then
2845                           ac_lo= ac_hi=
2846                           break
2847                         fi
2848                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2849 fi
2850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2851   done
2852 else
2853   ac_lo= ac_hi=
2854 fi
2855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2856 fi
2857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2858 # Binary search between lo and hi bounds.
2859 while test "x$ac_lo" != "x$ac_hi"; do
2860   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2861   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2862 /* end confdefs.h.  */
2863 $4
2864 int
2865 main ()
2866 {
2867 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2868 test_array [0] = 0;
2869 return test_array [0];
2870 
2871   ;
2872   return 0;
2873 }
2874 _ACEOF
2875 if ac_fn_cxx_try_compile "$LINENO"; then :
2876   ac_hi=$ac_mid
2877 else
2878   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2879 fi
2880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2881 done
2882 case $ac_lo in #((
2883 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2884 '') ac_retval=1 ;;
2885 esac
2886   else
2887     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2888 /* end confdefs.h.  */
2889 $4
2890 static long int longval () { return $2; }
2891 static unsigned long int ulongval () { return $2; }
2892 #include <stdio.h>
2893 #include <stdlib.h>
2894 int
2895 main ()
2896 {
2897 
2898   FILE *f = fopen ("conftest.val", "w");
2899   if (! f)
2900     return 1;
2901   if (($2) < 0)
2902     {
2903       long int i = longval ();
2904       if (i != ($2))
2905         return 1;
2906       fprintf (f, "%ld", i);
2907     }
2908   else
2909     {
2910       unsigned long int i = ulongval ();
2911       if (i != ($2))
2912         return 1;
2913       fprintf (f, "%lu", i);
2914     }
2915   /* Do not output a trailing newline, as this causes \r\n confusion
2916      on some platforms.  */
2917   return ferror (f) || fclose (f) != 0;
2918 
2919   ;
2920   return 0;
2921 }
2922 _ACEOF
2923 if ac_fn_cxx_try_run "$LINENO"; then :
2924   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2925 else
2926   ac_retval=1
2927 fi
2928 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2929   conftest.$ac_objext conftest.beam conftest.$ac_ext
2930 rm -f conftest.val
2931 
2932   fi
2933   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2934   as_fn_set_status $ac_retval
2935 
2936 } # ac_fn_cxx_compute_int
2937 
2938 # ac_fn_cxx_try_link LINENO
2939 # -------------------------
2940 # Try to link conftest.$ac_ext, and return whether this succeeded.
2941 ac_fn_cxx_try_link ()
2942 {
2943   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2944   rm -f conftest.$ac_objext conftest$ac_exeext
2945   if { { ac_try="$ac_link"
2946 case "(($ac_try" in
2947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2948   *) ac_try_echo=$ac_try;;
2949 esac
2950 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2951 $as_echo "$ac_try_echo"; } >&5
2952   (eval "$ac_link") 2>conftest.err
2953   ac_status=$?
2954   if test -s conftest.err; then
2955     grep -v '^ *+' conftest.err >conftest.er1
2956     cat conftest.er1 >&5
2957     mv -f conftest.er1 conftest.err
2958   fi
2959   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2960   test $ac_status = 0; } && {
2961          test -z "$ac_cxx_werror_flag" ||
2962          test ! -s conftest.err
2963        } && test -s conftest$ac_exeext && {
2964          test "$cross_compiling" = yes ||
2965          test -x conftest$ac_exeext
2966        }; then :
2967   ac_retval=0
2968 else
2969   $as_echo "$as_me: failed program was:" >&5
2970 sed 's/^/| /' conftest.$ac_ext >&5
2971 
2972         ac_retval=1
2973 fi
2974   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2975   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2976   # interfere with the next link command; also delete a directory that is
2977   # left behind by Apple's compiler.  We do this before executing the actions.
2978   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2979   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2980   as_fn_set_status $ac_retval
2981 
2982 } # ac_fn_cxx_try_link
2983 
2984 # ac_fn_cxx_check_func LINENO FUNC VAR
2985 # ------------------------------------
2986 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2987 ac_fn_cxx_check_func ()
2988 {
2989   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2990   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2991 $as_echo_n "checking for $2... " >&6; }
2992 if eval \${$3+:} false; then :
2993   $as_echo_n "(cached) " >&6
2994 else
2995   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2996 /* end confdefs.h.  */
2997 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2998    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2999 #define $2 innocuous_$2
3000 
3001 /* System header to define __stub macros and hopefully few prototypes,
3002     which can conflict with char $2 (); below.
3003     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3004     <limits.h> exists even on freestanding compilers.  */
3005 
3006 #ifdef __STDC__
3007 # include <limits.h>
3008 #else
3009 # include <assert.h>
3010 #endif
3011 
3012 #undef $2
3013 
3014 /* Override any GCC internal prototype to avoid an error.
3015    Use char because int might match the return type of a GCC
3016    builtin and then its argument prototype would still apply.  */
3017 #ifdef __cplusplus
3018 extern "C"
3019 #endif
3020 char $2 ();
3021 /* The GNU C library defines this for functions which it implements
3022     to always fail with ENOSYS.  Some functions are actually named
3023     something starting with __ and the normal name is an alias.  */
3024 #if defined __stub_$2 || defined __stub___$2
3025 choke me
3026 #endif
3027 
3028 int
3029 main ()
3030 {
3031 return $2 ();
3032   ;
3033   return 0;
3034 }
3035 _ACEOF
3036 if ac_fn_cxx_try_link "$LINENO"; then :
3037   eval "$3=yes"
3038 else
3039   eval "$3=no"
3040 fi
3041 rm -f core conftest.err conftest.$ac_objext \
3042     conftest$ac_exeext conftest.$ac_ext
3043 fi
3044 eval ac_res=\$$3
3045                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3046 $as_echo "$ac_res" >&6; }
3047   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3048 
3049 } # ac_fn_cxx_check_func
3050 
3051 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
3052 # -------------------------------------------------------
3053 # Tests whether HEADER exists and can be compiled using the include files in
3054 # INCLUDES, setting the cache variable VAR accordingly.
3055 ac_fn_c_check_header_compile ()
3056 {
3057   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3058   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3059 $as_echo_n "checking for $2... " >&6; }
3060 if eval \${$3+:} false; then :
3061   $as_echo_n "(cached) " >&6
3062 else
3063   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3064 /* end confdefs.h.  */
3065 $4
3066 #include <$2>
3067 _ACEOF
3068 if ac_fn_c_try_compile "$LINENO"; then :
3069   eval "$3=yes"
3070 else
3071   eval "$3=no"
3072 fi
3073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3074 fi
3075 eval ac_res=\$$3
3076                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3077 $as_echo "$ac_res" >&6; }
3078   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3079 
3080 } # ac_fn_c_check_header_compile
3081 cat >config.log <<_ACEOF
3082 This file contains any messages produced by compilers while
3083 running configure, to aid debugging if configure makes a mistake.
3084 
3085 It was created by OpenJDK $as_me jdk9, which was
3086 generated by GNU Autoconf 2.69.  Invocation command line was
3087 
3088   $ $0 $@
3089 
3090 _ACEOF
3091 exec 5>>config.log
3092 {
3093 cat <<_ASUNAME
3094 ## --------- ##
3095 ## Platform. ##
3096 ## --------- ##
3097 
3098 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3099 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3100 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3101 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3102 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3103 
3104 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3105 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
3106 
3107 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
3108 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
3109 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3110 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
3111 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
3112 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
3113 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
3114 
3115 _ASUNAME
3116 
3117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3118 for as_dir in $PATH
3119 do
3120   IFS=$as_save_IFS
3121   test -z "$as_dir" && as_dir=.
3122     $as_echo "PATH: $as_dir"
3123   done
3124 IFS=$as_save_IFS
3125 
3126 } >&5
3127 
3128 cat >&5 <<_ACEOF
3129 
3130 
3131 ## ----------- ##
3132 ## Core tests. ##
3133 ## ----------- ##
3134 
3135 _ACEOF
3136 
3137 
3138 # Keep a trace of the command line.
3139 # Strip out --no-create and --no-recursion so they do not pile up.
3140 # Strip out --silent because we don't want to record it for future runs.
3141 # Also quote any args containing shell meta-characters.
3142 # Make two passes to allow for proper duplicate-argument suppression.
3143 ac_configure_args=
3144 ac_configure_args0=
3145 ac_configure_args1=
3146 ac_must_keep_next=false
3147 for ac_pass in 1 2
3148 do
3149   for ac_arg
3150   do
3151     case $ac_arg in
3152     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3153     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3154     | -silent | --silent | --silen | --sile | --sil)
3155       continue ;;
3156     *\'*)
3157       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3158     esac
3159     case $ac_pass in
3160     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3161     2)
3162       as_fn_append ac_configure_args1 " '$ac_arg'"
3163       if test $ac_must_keep_next = true; then
3164         ac_must_keep_next=false # Got value, back to normal.
3165       else
3166         case $ac_arg in
3167           *=* | --config-cache | -C | -disable-* | --disable-* \
3168           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3169           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3170           | -with-* | --with-* | -without-* | --without-* | --x)
3171             case "$ac_configure_args0 " in
3172               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3173             esac
3174             ;;
3175           -* ) ac_must_keep_next=true ;;
3176         esac
3177       fi
3178       as_fn_append ac_configure_args " '$ac_arg'"
3179       ;;
3180     esac
3181   done
3182 done
3183 { ac_configure_args0=; unset ac_configure_args0;}
3184 { ac_configure_args1=; unset ac_configure_args1;}
3185 
3186 # When interrupted or exit'd, cleanup temporary files, and complete
3187 # config.log.  We remove comments because anyway the quotes in there
3188 # would cause problems or look ugly.
3189 # WARNING: Use '\'' to represent an apostrophe within the trap.
3190 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3191 trap 'exit_status=$?
3192   # Save into config.log some information that might help in debugging.
3193   {
3194     echo
3195 
3196     $as_echo "## ---------------- ##
3197 ## Cache variables. ##
3198 ## ---------------- ##"
3199     echo
3200     # The following way of writing the cache mishandles newlines in values,
3201 (
3202   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3203     eval ac_val=\$$ac_var
3204     case $ac_val in #(
3205     *${as_nl}*)
3206       case $ac_var in #(
3207       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3208 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3209       esac
3210       case $ac_var in #(
3211       _ | IFS | as_nl) ;; #(
3212       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3213       *) { eval $ac_var=; unset $ac_var;} ;;
3214       esac ;;
3215     esac
3216   done
3217   (set) 2>&1 |
3218     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3219     *${as_nl}ac_space=\ *)
3220       sed -n \
3221         "s/'\''/'\''\\\\'\'''\''/g;
3222           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3223       ;; #(
3224     *)
3225       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3226       ;;
3227     esac |
3228     sort
3229 )
3230     echo
3231 
3232     $as_echo "## ----------------- ##
3233 ## Output variables. ##
3234 ## ----------------- ##"
3235     echo
3236     for ac_var in $ac_subst_vars
3237     do
3238       eval ac_val=\$$ac_var
3239       case $ac_val in
3240       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3241       esac
3242       $as_echo "$ac_var='\''$ac_val'\''"
3243     done | sort
3244     echo
3245 
3246     if test -n "$ac_subst_files"; then
3247       $as_echo "## ------------------- ##
3248 ## File substitutions. ##
3249 ## ------------------- ##"
3250       echo
3251       for ac_var in $ac_subst_files
3252       do
3253         eval ac_val=\$$ac_var
3254         case $ac_val in
3255         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3256         esac
3257         $as_echo "$ac_var='\''$ac_val'\''"
3258       done | sort
3259       echo
3260     fi
3261 
3262     if test -s confdefs.h; then
3263       $as_echo "## ----------- ##
3264 ## confdefs.h. ##
3265 ## ----------- ##"
3266       echo
3267       cat confdefs.h
3268       echo
3269     fi
3270     test "$ac_signal" != 0 &&
3271       $as_echo "$as_me: caught signal $ac_signal"
3272     $as_echo "$as_me: exit $exit_status"
3273   } >&5
3274   rm -f core *.core core.conftest.* &&
3275     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3276     exit $exit_status
3277 ' 0
3278 for ac_signal in 1 2 13 15; do
3279   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3280 done
3281 ac_signal=0
3282 
3283 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3284 rm -f -r conftest* confdefs.h
3285 
3286 $as_echo "/* confdefs.h */" > confdefs.h
3287 
3288 # Predefined preprocessor variables.
3289 
3290 cat >>confdefs.h <<_ACEOF
3291 #define PACKAGE_NAME "$PACKAGE_NAME"
3292 _ACEOF
3293 
3294 cat >>confdefs.h <<_ACEOF
3295 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3296 _ACEOF
3297 
3298 cat >>confdefs.h <<_ACEOF
3299 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3300 _ACEOF
3301 
3302 cat >>confdefs.h <<_ACEOF
3303 #define PACKAGE_STRING "$PACKAGE_STRING"
3304 _ACEOF
3305 
3306 cat >>confdefs.h <<_ACEOF
3307 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3308 _ACEOF
3309 
3310 cat >>confdefs.h <<_ACEOF
3311 #define PACKAGE_URL "$PACKAGE_URL"
3312 _ACEOF
3313 
3314 
3315 # Let the site file select an alternate cache file if it wants to.
3316 # Prefer an explicitly selected file to automatically selected ones.
3317 ac_site_file1=NONE
3318 ac_site_file2=NONE
3319 if test -n "$CONFIG_SITE"; then
3320   # We do not want a PATH search for config.site.
3321   case $CONFIG_SITE in #((
3322     -*)  ac_site_file1=./$CONFIG_SITE;;
3323     */*) ac_site_file1=$CONFIG_SITE;;
3324     *)   ac_site_file1=./$CONFIG_SITE;;
3325   esac
3326 elif test "x$prefix" != xNONE; then
3327   ac_site_file1=$prefix/share/config.site
3328   ac_site_file2=$prefix/etc/config.site
3329 else
3330   ac_site_file1=$ac_default_prefix/share/config.site
3331   ac_site_file2=$ac_default_prefix/etc/config.site
3332 fi
3333 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3334 do
3335   test "x$ac_site_file" = xNONE && continue
3336   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3337     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3338 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3339     sed 's/^/| /' "$ac_site_file" >&5
3340     . "$ac_site_file" \
3341       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3342 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3343 as_fn_error $? "failed to load site script $ac_site_file
3344 See \`config.log' for more details" "$LINENO" 5; }
3345   fi
3346 done
3347 
3348 if test -r "$cache_file"; then
3349   # Some versions of bash will fail to source /dev/null (special files
3350   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3351   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3352     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3353 $as_echo "$as_me: loading cache $cache_file" >&6;}
3354     case $cache_file in
3355       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3356       *)                      . "./$cache_file";;
3357     esac
3358   fi
3359 else
3360   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3361 $as_echo "$as_me: creating cache $cache_file" >&6;}
3362   >$cache_file
3363 fi
3364 
3365 # Check that the precious variables saved in the cache have kept the same
3366 # value.
3367 ac_cache_corrupted=false
3368 for ac_var in $ac_precious_vars; do
3369   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3370   eval ac_new_set=\$ac_env_${ac_var}_set
3371   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3372   eval ac_new_val=\$ac_env_${ac_var}_value
3373   case $ac_old_set,$ac_new_set in
3374     set,)
3375       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3376 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3377       ac_cache_corrupted=: ;;
3378     ,set)
3379       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3380 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3381       ac_cache_corrupted=: ;;
3382     ,);;
3383     *)
3384       if test "x$ac_old_val" != "x$ac_new_val"; then
3385         # differences in whitespace do not lead to failure.
3386         ac_old_val_w=`echo x $ac_old_val`
3387         ac_new_val_w=`echo x $ac_new_val`
3388         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3389           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3390 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3391           ac_cache_corrupted=:
3392         else
3393           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3394 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3395           eval $ac_var=\$ac_old_val
3396         fi
3397         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3398 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3399         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3400 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3401       fi;;
3402   esac
3403   # Pass precious variables to config.status.
3404   if test "$ac_new_set" = set; then
3405     case $ac_new_val in
3406     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3407     *) ac_arg=$ac_var=$ac_new_val ;;
3408     esac
3409     case " $ac_configure_args " in
3410       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3411       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3412     esac
3413   fi
3414 done
3415 if $ac_cache_corrupted; then
3416   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3417 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3418   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3419 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3420   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3421 fi
3422 ## -------------------- ##
3423 ## Main body of script. ##
3424 ## -------------------- ##
3425 
3426 ac_ext=c
3427 ac_cpp='$CPP $CPPFLAGS'
3428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3431 
3432 
3433 
3434 ac_aux_dir=
3435 for ac_dir in $TOPDIR/common/autoconf/build-aux "$srcdir"/$TOPDIR/common/autoconf/build-aux; do
3436   if test -f "$ac_dir/install-sh"; then
3437     ac_aux_dir=$ac_dir
3438     ac_install_sh="$ac_aux_dir/install-sh -c"
3439     break
3440   elif test -f "$ac_dir/install.sh"; then
3441     ac_aux_dir=$ac_dir
3442     ac_install_sh="$ac_aux_dir/install.sh -c"
3443     break
3444   elif test -f "$ac_dir/shtool"; then
3445     ac_aux_dir=$ac_dir
3446     ac_install_sh="$ac_aux_dir/shtool install -c"
3447     break
3448   fi
3449 done
3450 if test -z "$ac_aux_dir"; then
3451   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
3452 fi
3453 
3454 # These three variables are undocumented and unsupported,
3455 # and are intended to be withdrawn in a future Autoconf release.
3456 # They can cause serious problems if a builder's source tree is in a directory
3457 # whose full name contains unusual characters.
3458 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3459 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3460 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3461 
3462 
3463 # pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
3464 
3465 #
3466 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
3467 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3468 #
3469 # This code is free software; you can redistribute it and/or modify it
3470 # under the terms of the GNU General Public License version 2 only, as
3471 # published by the Free Software Foundation.  Oracle designates this
3472 # particular file as subject to the "Classpath" exception as provided
3473 # by Oracle in the LICENSE file that accompanied this code.
3474 #
3475 # This code is distributed in the hope that it will be useful, but WITHOUT
3476 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3477 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3478 # version 2 for more details (a copy is included in the LICENSE file that
3479 # accompanied this code).
3480 #
3481 # You should have received a copy of the GNU General Public License version
3482 # 2 along with this work; if not, write to the Free Software Foundation,
3483 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3484 #
3485 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3486 # or visit www.oracle.com if you need additional information or have any
3487 # questions.
3488 #
3489 
3490 #
3491 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
3492 #
3493 # This program is free software; you can redistribute it and/or modify
3494 # it under the terms of the GNU General Public License as published by
3495 # the Free Software Foundation; either version 2 of the License, or
3496 # (at your option) any later version.
3497 #
3498 # This program is distributed in the hope that it will be useful, but
3499 # WITHOUT ANY WARRANTY; without even the implied warranty of
3500 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
3501 # General Public License for more details.
3502 #
3503 # You should have received a copy of the GNU General Public License
3504 # along with this program; if not, write to the Free Software
3505 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
3506 #
3507 # As a special exception to the GNU General Public License, if you
3508 # distribute this file as part of a program that contains a
3509 # configuration script generated by Autoconf, you may include it under
3510 # the same distribution terms that you use for the rest of that program.
3511 
3512 # PKG_PROG_PKG_CONFIG([MIN-VERSION])
3513 # ----------------------------------
3514 # PKG_PROG_PKG_CONFIG
3515 
3516 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
3517 #
3518 # Check to see whether a particular set of modules exists.  Similar
3519 # to PKG_CHECK_MODULES(), but does not set variables or print errors.
3520 #
3521 #
3522 # Similar to PKG_CHECK_MODULES, make sure that the first instance of
3523 # this or PKG_CHECK_MODULES is called, or make sure to call
3524 # PKG_CHECK_EXISTS manually
3525 # --------------------------------------------------------------
3526 
3527 
3528 
3529 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
3530 # ---------------------------------------------
3531 # _PKG_CONFIG
3532 
3533 # _PKG_SHORT_ERRORS_SUPPORTED
3534 # -----------------------------
3535 # _PKG_SHORT_ERRORS_SUPPORTED
3536 
3537 
3538 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
3539 # [ACTION-IF-NOT-FOUND])
3540 #
3541 #
3542 # Note that if there is a possibility the first call to
3543 # PKG_CHECK_MODULES might not happen, you should be sure to include an
3544 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
3545 #
3546 #
3547 # --------------------------------------------------------------
3548 # PKG_CHECK_MODULES
3549 
3550 
3551 # Include these first...
3552 #
3553 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
3554 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3555 #
3556 # This code is free software; you can redistribute it and/or modify it
3557 # under the terms of the GNU General Public License version 2 only, as
3558 # published by the Free Software Foundation.  Oracle designates this
3559 # particular file as subject to the "Classpath" exception as provided
3560 # by Oracle in the LICENSE file that accompanied this code.
3561 #
3562 # This code is distributed in the hope that it will be useful, but WITHOUT
3563 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3564 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3565 # version 2 for more details (a copy is included in the LICENSE file that
3566 # accompanied this code).
3567 #
3568 # You should have received a copy of the GNU General Public License version
3569 # 2 along with this work; if not, write to the Free Software Foundation,
3570 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3571 #
3572 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3573 # or visit www.oracle.com if you need additional information or have any
3574 # questions.
3575 #
3576 
3577 # Create a function/macro that takes a series of named arguments. The call is
3578 # similar to AC_DEFUN, but the setup of the function looks like this:
3579 # BASIC_DEFUN_NAMED([MYFUNC], [FOO *BAR], [$@], [
3580 # ... do something
3581 #   AC_MSG_NOTICE([Value of BAR is ARG_BAR])
3582 # ])
3583 # A star (*) in front of a named argument means that it is required and it's
3584 # presence will be verified. To pass e.g. the first value as a normal indexed
3585 # argument, use [m4_shift($@)] as the third argument instead of [$@]. These
3586 # arguments are referenced in the function by their name prefixed by ARG_, e.g.
3587 # "ARG_FOO".
3588 #
3589 # The generated function can be called like this:
3590 # MYFUNC(FOO: [foo-val],
3591 #     BAR: [
3592 #         $ECHO hello world
3593 #     ])
3594 # Note that the argument value must start on the same line as the argument name.
3595 #
3596 # Argument 1: Name of the function to define
3597 # Argument 2: List of legal named arguments, with a * prefix for required arguments
3598 # Argument 3: Argument array to treat as named, typically $@
3599 # Argument 4: The main function body
3600 
3601 
3602 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3)
3603 # If so, then append $1 to $2 \
3604 # Also set JVM_ARG_OK to true/false depending on outcome.
3605 
3606 
3607 # Appends a string to a path variable, only adding the : when needed.
3608 
3609 
3610 # Prepends a string to a path variable, only adding the : when needed.
3611 
3612 
3613 # This will make sure the given variable points to a full and proper
3614 # path. This means:
3615 # 1) There will be no spaces in the path. On unix platforms,
3616 #    spaces in the path will result in an error. On Windows,
3617 #    the path will be rewritten using short-style to be space-free.
3618 # 2) The path will be absolute, and it will be in unix-style (on
3619 #     cygwin).
3620 # $1: The name of the variable to fix
3621 
3622 
3623 # This will make sure the given variable points to a executable
3624 # with a full and proper path. This means:
3625 # 1) There will be no spaces in the path. On unix platforms,
3626 #    spaces in the path will result in an error. On Windows,
3627 #    the path will be rewritten using short-style to be space-free.
3628 # 2) The path will be absolute, and it will be in unix-style (on
3629 #     cygwin).
3630 # Any arguments given to the executable is preserved.
3631 # If the input variable does not have a directory specification, then
3632 # it need to be in the PATH.
3633 # $1: The name of the variable to fix
3634 
3635 
3636 
3637 
3638 # Register a --with argument but mark it as deprecated
3639 # $1: The name of the with argument to deprecate, not including --with-
3640 
3641 
3642 # Register a --enable argument but mark it as deprecated
3643 # $1: The name of the with argument to deprecate, not including --enable-
3644 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -)
3645 # $3: Messages to user.
3646 
3647 
3648 
3649 
3650 # Test that variable $1 denoting a program is not empty. If empty, exit with an error.
3651 # $1: variable to check
3652 
3653 
3654 # Check that there are no unprocessed overridden variables left.
3655 # If so, they are an incorrect argument and we will exit with an error.
3656 
3657 
3658 # Setup a tool for the given variable. If correctly specified by the user,
3659 # use that value, otherwise search for the tool using the supplied code snippet.
3660 # $1: variable to set
3661 # $2: code snippet to call to look for the tool
3662 # $3: code snippet to call if variable was used to find tool
3663 
3664 
3665 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool
3666 # $1: variable to set
3667 # $2: executable name (or list of names) to look for
3668 # $3: [path]
3669 
3670 
3671 # Call BASIC_SETUP_TOOL with AC_CHECK_TOOLS to locate the tool
3672 # $1: variable to set
3673 # $2: executable name (or list of names) to look for
3674 
3675 
3676 # Like BASIC_PATH_PROGS but fails if no tool was found.
3677 # $1: variable to set
3678 # $2: executable name (or list of names) to look for
3679 # $3: [path]
3680 
3681 
3682 # Like BASIC_SETUP_TOOL but fails if no tool was found.
3683 # $1: variable to set
3684 # $2: autoconf macro to call to look for the special tool
3685 
3686 
3687 # Setup the most fundamental tools that relies on not much else to set up,
3688 # but is used by much of the early bootstrap code.
3689 
3690 
3691 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3692 
3693 
3694 # Evaluates platform specific overrides for devkit variables.
3695 # $1: Name of variable
3696 
3697 
3698 
3699 
3700 
3701 
3702 #%%% Simple tools %%%
3703 
3704 # Check if we have found a usable version of make
3705 # $1: the path to a potential make binary (or empty)
3706 # $2: the description on how we found this
3707 
3708 
3709 
3710 
3711 # Goes looking for a usable version of GNU make.
3712 
3713 
3714 
3715 
3716 
3717 
3718 
3719 
3720 
3721 
3722 # Check if build directory is on local disk. If not possible to determine,
3723 # we prefer to claim it's local.
3724 # Argument 1: directory to test
3725 # Argument 2: what to do if it is on local disk
3726 # Argument 3: what to do otherwise (remote disk or failure)
3727 
3728 
3729 # Check that source files have basic read permissions set. This might
3730 # not be the case in cygwin in certain conditions.
3731 
3732 
3733 
3734 
3735 # Check for support for specific options in bash
3736 
3737 
3738 ################################################################################
3739 #
3740 # Default make target
3741 #
3742 
3743 
3744 # Code to run after AC_OUTPUT
3745 
3746 
3747 #
3748 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
3749 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3750 #
3751 # This code is free software; you can redistribute it and/or modify it
3752 # under the terms of the GNU General Public License version 2 only, as
3753 # published by the Free Software Foundation.  Oracle designates this
3754 # particular file as subject to the "Classpath" exception as provided
3755 # by Oracle in the LICENSE file that accompanied this code.
3756 #
3757 # This code is distributed in the hope that it will be useful, but WITHOUT
3758 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3759 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3760 # version 2 for more details (a copy is included in the LICENSE file that
3761 # accompanied this code).
3762 #
3763 # You should have received a copy of the GNU General Public License version
3764 # 2 along with this work; if not, write to the Free Software Foundation,
3765 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3766 #
3767 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3768 # or visit www.oracle.com if you need additional information or have any
3769 # questions.
3770 #
3771 
3772 
3773 
3774 
3775 
3776 # Helper function which possibly converts a path using DOS-style short mode.
3777 # If so, the updated path is stored in $new_path.
3778 # $1: The path to check
3779 
3780 
3781 # Helper function which possibly converts a path using DOS-style short mode.
3782 # If so, the updated path is stored in $new_path.
3783 # $1: The path to check
3784 
3785 
3786 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted
3787 # and could probably be heavily simplified. However, all changes in this
3788 # area tend to need lot of testing in different scenarios, and in lack of
3789 # proper unit testing, cleaning this up has not been deemed worth the effort
3790 # at the moment.
3791 
3792 
3793 
3794 
3795 
3796 
3797 
3798 
3799 
3800 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3801 
3802 
3803 
3804 
3805 # ... then the rest
3806 #
3807 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
3808 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3809 #
3810 # This code is free software; you can redistribute it and/or modify it
3811 # under the terms of the GNU General Public License version 2 only, as
3812 # published by the Free Software Foundation.  Oracle designates this
3813 # particular file as subject to the "Classpath" exception as provided
3814 # by Oracle in the LICENSE file that accompanied this code.
3815 #
3816 # This code is distributed in the hope that it will be useful, but WITHOUT
3817 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3818 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3819 # version 2 for more details (a copy is included in the LICENSE file that
3820 # accompanied this code).
3821 #
3822 # You should have received a copy of the GNU General Public License version
3823 # 2 along with this work; if not, write to the Free Software Foundation,
3824 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3825 #
3826 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3827 # or visit www.oracle.com if you need additional information or have any
3828 # questions.
3829 #
3830 
3831 ########################################################################
3832 # This file handles detection of the Boot JDK. The Boot JDK detection
3833 # process has been developed as a response to solve a complex real-world
3834 # problem. Initially, it was simple, but it has grown as platform after
3835 # platform, idiosyncracy after idiosyncracy has been supported.
3836 #
3837 # The basic idea is this:
3838 # 1) You need an acceptable *) JDK to use as a Boot JDK
3839 # 2) There are several ways to locate a JDK, that are mostly platform
3840 #    dependent **)
3841 # 3) You can have multiple JDKs installed
3842 # 4) If possible, configure should try to dig out an acceptable JDK
3843 #    automatically, without having to resort to command-line options
3844 #
3845 # *)  acceptable means e.g. JDK7 for building JDK8, a complete JDK (with
3846 #     javac) and not a JRE, etc.
3847 #
3848 # **) On Windows we typically use a well-known path.
3849 #     On MacOSX we typically use the tool java_home.
3850 #     On Linux we typically find javac in the $PATH, and then follow a
3851 #     chain of symlinks that often ends up in a real JDK.
3852 #
3853 # This leads to the code where we check in different ways to locate a
3854 # JDK, and if one is found, check if it is acceptable. If not, we print
3855 # our reasons for rejecting it (useful when debugging non-working
3856 # configure situations) and continue checking the next one.
3857 ########################################################################
3858 
3859 # Execute the check given as argument, and verify the result
3860 # If the Boot JDK was previously found, do nothing
3861 # $1 A command line (typically autoconf macro) to execute
3862 
3863 
3864 # Test: Is bootjdk explicitly set by command line arguments?
3865 
3866 
3867 # Test: Is $JAVA_HOME set?
3868 
3869 
3870 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
3871 
3872 
3873 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX)
3874 # $1: Argument to the java_home binary (optional)
3875 
3876 
3877 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home?
3878 
3879 
3880 # Look for a jdk in the given path. If there are multiple, try to select the newest.
3881 # If found, set BOOT_JDK and BOOT_JDK_FOUND.
3882 # $1 = Path to directory containing jdk installations.
3883 # $2 = String to append to the found JDK directory to get the proper JDK home
3884 
3885 
3886 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given
3887 # environmental variable as base for where to look.
3888 # $1 Name of an environmal variable, assumed to point to the Program Files directory.
3889 
3890 
3891 # Test: Is there a JDK installed in default, well-known locations?
3892 
3893 
3894 # Check that a command-line tool in the Boot JDK is correct
3895 # $1 = name of variable to assign
3896 # $2 = name of binary
3897 
3898 
3899 ###############################################################################
3900 #
3901 # We need a Boot JDK to bootstrap the build.
3902 #
3903 
3904 
3905 
3906 
3907 
3908 # BUILD_JDK: the location of the latest JDK that can run
3909 #   on the host system and supports the target class file version
3910 #   generated in this JDK build.  This variable should only be
3911 #   used after the launchers are built.
3912 #
3913 
3914 # Execute the check given as argument, and verify the result.
3915 # If the JDK was previously found, do nothing.
3916 # $1 A command line (typically autoconf macro) to execute
3917 
3918 
3919 # By default the BUILD_JDK is the JDK_OUTPUTDIR.  If the target architecture
3920 # is different than the host system doing the build (e.g. cross-compilation),
3921 # a special BUILD_JDK is built as part of the build process.  An external
3922 # prebuilt BUILD_JDK can also be supplied.
3923 
3924 
3925 #
3926 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
3927 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3928 #
3929 # This code is free software; you can redistribute it and/or modify it
3930 # under the terms of the GNU General Public License version 2 only, as
3931 # published by the Free Software Foundation.  Oracle designates this
3932 # particular file as subject to the "Classpath" exception as provided
3933 # by Oracle in the LICENSE file that accompanied this code.
3934 #
3935 # This code is distributed in the hope that it will be useful, but WITHOUT
3936 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3937 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3938 # version 2 for more details (a copy is included in the LICENSE file that
3939 # accompanied this code).
3940 #
3941 # You should have received a copy of the GNU General Public License version
3942 # 2 along with this work; if not, write to the Free Software Foundation,
3943 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3944 #
3945 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3946 # or visit www.oracle.com if you need additional information or have any
3947 # questions.
3948 #
3949 
3950 
3951 
3952 
3953 
3954 
3955 
3956 
3957 
3958 
3959 
3960 
3961 
3962 
3963 
3964 
3965 
3966 ################################################################################
3967 #
3968 # Runs icecc-create-env once and prints the error if it fails
3969 #
3970 # $1: arguments to icecc-create-env
3971 # $2: log file
3972 #
3973 
3974 
3975 ################################################################################
3976 #
3977 # Optionally enable distributed compilation of native code using icecc/icecream
3978 #
3979 
3980 
3981 
3982 
3983 
3984 
3985 
3986 #
3987 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
3988 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3989 #
3990 # This code is free software; you can redistribute it and/or modify it
3991 # under the terms of the GNU General Public License version 2 only, as
3992 # published by the Free Software Foundation.  Oracle designates this
3993 # particular file as subject to the "Classpath" exception as provided
3994 # by Oracle in the LICENSE file that accompanied this code.
3995 #
3996 # This code is distributed in the hope that it will be useful, but WITHOUT
3997 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3998 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3999 # version 2 for more details (a copy is included in the LICENSE file that
4000 # accompanied this code).
4001 #
4002 # You should have received a copy of the GNU General Public License version
4003 # 2 along with this work; if not, write to the Free Software Foundation,
4004 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4005 #
4006 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4007 # or visit www.oracle.com if you need additional information or have any
4008 # questions.
4009 #
4010 
4011 ################################################################################
4012 #
4013 # Setup ABI profile (for arm)
4014 #
4015 
4016 
4017 # Reset the global CFLAGS/LDFLAGS variables and initialize them with the
4018 # corresponding configure arguments instead
4019 
4020 
4021 # Setup the sysroot flags and add them to global CFLAGS and LDFLAGS so
4022 # that configure can use them while detecting compilers.
4023 # TOOLCHAIN_TYPE is available here.
4024 # Param 1 - Optional prefix to all variables. (e.g BUILD_)
4025 
4026 
4027 
4028 
4029 
4030 
4031 # Documentation on common flags used for solstudio in HIGHEST.
4032 #
4033 # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be
4034 #          done with care, there are some assumptions below that need to
4035 #          be understood about the use of pointers, and IEEE behavior.
4036 #
4037 # -fns: Use non-standard floating point mode (not IEEE 754)
4038 # -fsimple: Do some simplification of floating point arithmetic (not IEEE 754)
4039 # -fsingle: Use single precision floating point with 'float'
4040 # -xalias_level=basic: Assume memory references via basic pointer types do not alias
4041 #   (Source with excessing pointer casting and data access with mixed
4042 #    pointer types are not recommended)
4043 # -xbuiltin=%all: Use intrinsic or inline versions for math/std functions
4044 #   (If you expect perfect errno behavior, do not use this)
4045 # -xdepend: Loop data dependency optimizations (need -xO3 or higher)
4046 # -xrestrict: Pointer parameters to functions do not overlap
4047 #   (Similar to -xalias_level=basic usage, but less obvious sometimes.
4048 #    If you pass in multiple pointers to the same data, do not use this)
4049 # -xlibmil: Inline some library routines
4050 #   (If you expect perfect errno behavior, do not use this)
4051 # -xlibmopt: Use optimized math routines (CURRENTLY DISABLED)
4052 #   (If you expect perfect errno behavior, do not use this)
4053 #  Can cause undefined external on Solaris 8 X86 on __sincos, removing for now
4054 
4055     # FIXME: this will never happen since sparc != sparcv9, ie 32 bit, which we don't build anymore.
4056     # Bug?
4057     #if test "x$OPENJDK_TARGET_CPU" = xsparc; then
4058     #  CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s"
4059     #  CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s"
4060     #fi
4061 
4062 
4063 
4064 
4065 
4066 
4067 ################################################################################
4068 # $1 - Either BUILD or TARGET to pick the correct OS/CPU variables to check
4069 #      conditionals against.
4070 # $2 - Optional prefix for each variable defined.
4071 
4072 
4073 # FLAGS_C_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE],
4074 #                                  IF_FALSE: [RUN-IF-FALSE])
4075 # ------------------------------------------------------------
4076 # Check that the C compiler supports an argument
4077 
4078 
4079 
4080 
4081 # FLAGS_CXX_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE],
4082 #                                    IF_FALSE: [RUN-IF-FALSE])
4083 # ------------------------------------------------------------
4084 # Check that the C++ compiler supports an argument
4085 
4086 
4087 
4088 
4089 # FLAGS_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE],
4090 #                                IF_FALSE: [RUN-IF-FALSE])
4091 # ------------------------------------------------------------
4092 # Check that the C and C++ compilers support an argument
4093 
4094 
4095 
4096 
4097 # FLAGS_LINKER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE],
4098 #                                   IF_FALSE: [RUN-IF-FALSE])
4099 # ------------------------------------------------------------
4100 # Check that the linker support an argument
4101 
4102 
4103 
4104 
4105 
4106 
4107 # FLAGS_SETUP_GCC6_COMPILER_FLAGS([PREFIX])
4108 # Arguments:
4109 # $1 - Optional prefix for each variable defined.
4110 
4111 
4112 #
4113 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
4114 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4115 #
4116 # This code is free software; you can redistribute it and/or modify it
4117 # under the terms of the GNU General Public License version 2 only, as
4118 # published by the Free Software Foundation.  Oracle designates this
4119 # particular file as subject to the "Classpath" exception as provided
4120 # by Oracle in the LICENSE file that accompanied this code.
4121 #
4122 # This code is distributed in the hope that it will be useful, but WITHOUT
4123 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4124 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4125 # version 2 for more details (a copy is included in the LICENSE file that
4126 # accompanied this code).
4127 #
4128 # You should have received a copy of the GNU General Public License version
4129 # 2 along with this work; if not, write to the Free Software Foundation,
4130 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4131 #
4132 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4133 # or visit www.oracle.com if you need additional information or have any
4134 # questions.
4135 #
4136 
4137 
4138 
4139 
4140 
4141 cygwin_help() {
4142   case $1 in
4143     unzip)
4144       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )"
4145       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
4146       ;;
4147     zip)
4148       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )"
4149       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
4150       ;;
4151     make)
4152       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )"
4153       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
4154       ;;
4155     freetype)
4156       HELP_MSG="
4157 The freetype library can now be build during the configure process.
4158 Download the freetype sources and unpack them into an arbitrary directory:
4159 
4160 wget http://download.savannah.gnu.org/releases/freetype/freetype-2.5.3.tar.gz
4161 tar -xzf freetype-2.5.3.tar.gz
4162 
4163 Then run configure with '--with-freetype-src=<freetype_src>'. This will
4164 automatically build the freetype library into '<freetype_src>/lib64' for 64-bit
4165 builds or into '<freetype_src>/lib32' for 32-bit builds.
4166 Afterwards you can always use '--with-freetype-include=<freetype_src>/include'
4167 and '--with-freetype-lib=<freetype_src>/lib32|64' for other builds.
4168 
4169 Alternatively you can unpack the sources like this to use the default directory:
4170 
4171 tar --one-top-level=$HOME/freetype --strip-components=1 -xzf freetype-2.5.3.tar.gz"
4172       ;;
4173   esac
4174 }
4175 
4176 msys_help() {
4177   PKGHANDLER_COMMAND=""
4178 }
4179 
4180 apt_help() {
4181   case $1 in
4182     reduced)
4183       PKGHANDLER_COMMAND="sudo apt-get install gcc-multilib g++-multilib" ;;
4184     devkit)
4185       PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;;
4186     openjdk)
4187       PKGHANDLER_COMMAND="sudo apt-get install openjdk-8-jdk" ;;
4188     alsa)
4189       PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;;
4190     cups)
4191       PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;;
4192     freetype)
4193       PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;;
4194     ffi)
4195       PKGHANDLER_COMMAND="sudo apt-get install libffi-dev" ;;
4196     x11)
4197       PKGHANDLER_COMMAND="sudo apt-get install libx11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;;
4198     ccache)
4199       PKGHANDLER_COMMAND="sudo apt-get install ccache" ;;
4200     dtrace)
4201       PKGHANDLER_COMMAND="sudo apt-get install systemtap-sdt-dev" ;;
4202     elf)
4203       PKGHANDLER_COMMAND="sudo apt-get install libelf-dev" ;;
4204   esac
4205 }
4206 
4207 yum_help() {
4208   case $1 in
4209     devkit)
4210       PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;;
4211     openjdk)
4212       PKGHANDLER_COMMAND="sudo yum install java-1.8.0-openjdk-devel" ;;
4213     alsa)
4214       PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;;
4215     cups)
4216       PKGHANDLER_COMMAND="sudo yum install cups-devel" ;;
4217     freetype)
4218       PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;;
4219     x11)
4220       PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel libXi-devel" ;;
4221     ccache)
4222       PKGHANDLER_COMMAND="sudo yum install ccache" ;;
4223     elf)
4224       PKGHANDLER_COMMAND="sudo yum install elfutils-libelf-devel" ;;
4225   esac
4226 }
4227 
4228 brew_help() {
4229   case $1 in
4230     openjdk)
4231       PKGHANDLER_COMMAND="brew cask install java" ;;
4232     freetype)
4233       PKGHANDLER_COMMAND="brew install freetype" ;;
4234     ccache)
4235       PKGHANDLER_COMMAND="brew install ccache" ;;
4236   esac
4237 }
4238 
4239 port_help() {
4240   PKGHANDLER_COMMAND=""
4241 }
4242 
4243 pkgutil_help() {
4244   PKGHANDLER_COMMAND=""
4245 }
4246 
4247 pkgadd_help() {
4248   PKGHANDLER_COMMAND=""
4249 }
4250 
4251 # This function will check if we're called from the "configure" wrapper while
4252 # printing --help. If so, we will print out additional information that can
4253 # only be extracted within the autoconf script, and then exit. This must be
4254 # called at the very beginning in configure.ac.
4255 
4256 
4257 
4258 
4259 
4260 
4261 #
4262 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
4263 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4264 #
4265 # This code is free software; you can redistribute it and/or modify it
4266 # under the terms of the GNU General Public License version 2 only, as
4267 # published by the Free Software Foundation.  Oracle designates this
4268 # particular file as subject to the "Classpath" exception as provided
4269 # by Oracle in the LICENSE file that accompanied this code.
4270 #
4271 # This code is distributed in the hope that it will be useful, but WITHOUT
4272 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4273 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4274 # version 2 for more details (a copy is included in the LICENSE file that
4275 # accompanied this code).
4276 #
4277 # You should have received a copy of the GNU General Public License version
4278 # 2 along with this work; if not, write to the Free Software Foundation,
4279 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4280 #
4281 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4282 # or visit www.oracle.com if you need additional information or have any
4283 # questions.
4284 #
4285 
4286 # All valid JVM features, regardless of platform
4287 VALID_JVM_FEATURES="compiler1 compiler2 zero shark minimal dtrace jvmti jvmci \
4288     graal fprof vm-structs jni-check services management all-gcs nmt cds \
4289     static-build link-time-opt aot"
4290 
4291 # All valid JVM variants
4292 VALID_JVM_VARIANTS="server client minimal core zero zeroshark custom"
4293 
4294 ###############################################################################
4295 # Check if the specified JVM variant should be built. To be used in shell if
4296 # constructs, like this:
4297 # if HOTSPOT_CHECK_JVM_VARIANT(server); then
4298 #
4299 # Only valid to use after HOTSPOT_SETUP_JVM_VARIANTS has setup variants.
4300 
4301 # Definition kept in one line to allow inlining in if statements.
4302 # Additional [] needed to keep m4 from mangling shell constructs.
4303 
4304 
4305 ###############################################################################
4306 # Check if the specified JVM features are explicitly enabled. To be used in
4307 # shell if constructs, like this:
4308 # if HOTSPOT_CHECK_JVM_FEATURE(jvmti); then
4309 #
4310 # Only valid to use after HOTSPOT_SETUP_JVM_FEATURES has setup features.
4311 
4312 # Definition kept in one line to allow inlining in if statements.
4313 # Additional [] needed to keep m4 from mangling shell constructs.
4314 
4315 
4316 ###############################################################################
4317 # Check which variants of the JVM that we want to build. Available variants are:
4318 #   server: normal interpreter, and a tiered C1/C2 compiler
4319 #   client: normal interpreter, and C1 (no C2 compiler)
4320 #   minimal: reduced form of client with optional features stripped out
4321 #   core: normal interpreter only, no compiler
4322 #   zero: C++ based interpreter only, no compiler
4323 #   zeroshark: C++ based interpreter, and a llvm-based compiler
4324 #   custom: baseline JVM with no default features
4325 #
4326 
4327 
4328 ###############################################################################
4329 # Check if dtrace should be enabled and has all prerequisites present.
4330 #
4331 
4332 
4333 ################################################################################
4334 # Check if AOT should be enabled
4335 #
4336 
4337 
4338 ###############################################################################
4339 # Set up all JVM features for each JVM variant.
4340 #
4341 
4342 
4343 ###############################################################################
4344 # Validate JVM features once all setup is complete, including custom setup.
4345 #
4346 
4347 
4348 ################################################################################
4349 #
4350 # Specify which sources will be used to build the 64-bit ARM port
4351 #
4352 # --with-cpu-port=arm64   will use hotspot/src/cpu/arm
4353 # --with-cpu-port=aarch64 will use hotspot/src/cpu/aarch64
4354 #
4355 
4356 
4357 
4358 ################################################################################
4359 # Check if gtest should be built
4360 #
4361 
4362 
4363 #
4364 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
4365 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4366 #
4367 # This code is free software; you can redistribute it and/or modify it
4368 # under the terms of the GNU General Public License version 2 only, as
4369 # published by the Free Software Foundation.  Oracle designates this
4370 # particular file as subject to the "Classpath" exception as provided
4371 # by Oracle in the LICENSE file that accompanied this code.
4372 #
4373 # This code is distributed in the hope that it will be useful, but WITHOUT
4374 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4375 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4376 # version 2 for more details (a copy is included in the LICENSE file that
4377 # accompanied this code).
4378 #
4379 # You should have received a copy of the GNU General Public License version
4380 # 2 along with this work; if not, write to the Free Software Foundation,
4381 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4382 #
4383 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4384 # or visit www.oracle.com if you need additional information or have any
4385 # questions.
4386 #
4387 
4388 ###############################################################################
4389 # Check which variant of the JDK that we want to build.
4390 # Currently we have:
4391 #    normal:   standard edition
4392 # but the custom make system may add other variants
4393 #
4394 # Effectively the JDK variant gives a name to a specific set of
4395 # modules to compile into the JDK.
4396 
4397 
4398 ###############################################################################
4399 # Set the debug level
4400 #    release: no debug information, all optimizations, no asserts.
4401 #    optimized: no debug information, all optimizations, no asserts, HotSpot target is 'optimized'.
4402 #    fastdebug: debug information (-g), all optimizations, all asserts
4403 #    slowdebug: debug information (-g), no optimizations, all asserts
4404 
4405 
4406 ###############################################################################
4407 #
4408 # Should we build only OpenJDK even if closed sources are present?
4409 #
4410 
4411 
4412 
4413 
4414 ###############################################################################
4415 #
4416 # Enable or disable the elliptic curve crypto implementation
4417 #
4418 
4419 
4420 
4421 
4422 ################################################################################
4423 #
4424 # Gcov coverage data for hotspot
4425 #
4426 
4427 
4428 ################################################################################
4429 #
4430 # Static build support.  When enabled will generate static
4431 # libraries instead of shared libraries for all JDK libs.
4432 #
4433 
4434 
4435 ################################################################################
4436 #
4437 # jlink options.
4438 # We always keep packaged modules in JDK image.
4439 #
4440 
4441 
4442 ################################################################################
4443 #
4444 # Check if building of the jtreg failure handler should be enabled.
4445 #
4446 
4447 
4448 ################################################################################
4449 #
4450 # Enable or disable generation of the classlist at build time
4451 #
4452 
4453 
4454 #
4455 # Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
4456 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4457 #
4458 # This code is free software; you can redistribute it and/or modify it
4459 # under the terms of the GNU General Public License version 2 only, as
4460 # published by the Free Software Foundation.  Oracle designates this
4461 # particular file as subject to the "Classpath" exception as provided
4462 # by Oracle in the LICENSE file that accompanied this code.
4463 #
4464 # This code is distributed in the hope that it will be useful, but WITHOUT
4465 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4466 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4467 # version 2 for more details (a copy is included in the LICENSE file that
4468 # accompanied this code).
4469 #
4470 # You should have received a copy of the GNU General Public License version
4471 # 2 along with this work; if not, write to the Free Software Foundation,
4472 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4473 #
4474 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4475 # or visit www.oracle.com if you need additional information or have any
4476 # questions.
4477 #
4478 
4479 ###############################################################################
4480 #
4481 # Setup version numbers
4482 #
4483 
4484 # Verify that a given string represents a valid version number, and assign it
4485 # to a variable.
4486 
4487 # Argument 1: the variable to assign to
4488 # Argument 2: the value given by the user
4489 
4490 
4491 
4492 
4493 #
4494 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
4495 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4496 #
4497 # This code is free software; you can redistribute it and/or modify it
4498 # under the terms of the GNU General Public License version 2 only, as
4499 # published by the Free Software Foundation.  Oracle designates this
4500 # particular file as subject to the "Classpath" exception as provided
4501 # by Oracle in the LICENSE file that accompanied this code.
4502 #
4503 # This code is distributed in the hope that it will be useful, but WITHOUT
4504 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4505 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4506 # version 2 for more details (a copy is included in the LICENSE file that
4507 # accompanied this code).
4508 #
4509 # You should have received a copy of the GNU General Public License version
4510 # 2 along with this work; if not, write to the Free Software Foundation,
4511 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4512 #
4513 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4514 # or visit www.oracle.com if you need additional information or have any
4515 # questions.
4516 #
4517 
4518 # Major library component reside in separate files.
4519 #
4520 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4521 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4522 #
4523 # This code is free software; you can redistribute it and/or modify it
4524 # under the terms of the GNU General Public License version 2 only, as
4525 # published by the Free Software Foundation.  Oracle designates this
4526 # particular file as subject to the "Classpath" exception as provided
4527 # by Oracle in the LICENSE file that accompanied this code.
4528 #
4529 # This code is distributed in the hope that it will be useful, but WITHOUT
4530 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4531 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4532 # version 2 for more details (a copy is included in the LICENSE file that
4533 # accompanied this code).
4534 #
4535 # You should have received a copy of the GNU General Public License version
4536 # 2 along with this work; if not, write to the Free Software Foundation,
4537 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4538 #
4539 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4540 # or visit www.oracle.com if you need additional information or have any
4541 # questions.
4542 #
4543 
4544 ################################################################################
4545 # Setup alsa (Advanced Linux Sound Architecture)
4546 ################################################################################
4547 
4548 
4549 #
4550 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4551 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4552 #
4553 # This code is free software; you can redistribute it and/or modify it
4554 # under the terms of the GNU General Public License version 2 only, as
4555 # published by the Free Software Foundation.  Oracle designates this
4556 # particular file as subject to the "Classpath" exception as provided
4557 # by Oracle in the LICENSE file that accompanied this code.
4558 #
4559 # This code is distributed in the hope that it will be useful, but WITHOUT
4560 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4561 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4562 # version 2 for more details (a copy is included in the LICENSE file that
4563 # accompanied this code).
4564 #
4565 # You should have received a copy of the GNU General Public License version
4566 # 2 along with this work; if not, write to the Free Software Foundation,
4567 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4568 #
4569 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4570 # or visit www.oracle.com if you need additional information or have any
4571 # questions.
4572 #
4573 
4574 ################################################################################
4575 # Setup bundled libraries.
4576 #
4577 # For libjpeg, giflib, libpng, lcms2 and zlib, the source is present in the
4578 # OpenJDK repository. Default is to use these libraries as bundled, but they
4579 # might be replaced by en external version by the user.
4580 ################################################################################
4581 
4582 
4583 ################################################################################
4584 # Setup libjpeg
4585 ################################################################################
4586 
4587 
4588 ################################################################################
4589 # Setup giflib
4590 ################################################################################
4591 
4592 
4593 ################################################################################
4594 # Setup libpng
4595 ################################################################################
4596 
4597 
4598 ################################################################################
4599 # Setup zlib
4600 ################################################################################
4601 
4602 
4603 ################################################################################
4604 # Setup lcms (Little CMS)
4605 ################################################################################
4606 
4607 
4608 #
4609 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4610 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4611 #
4612 # This code is free software; you can redistribute it and/or modify it
4613 # under the terms of the GNU General Public License version 2 only, as
4614 # published by the Free Software Foundation.  Oracle designates this
4615 # particular file as subject to the "Classpath" exception as provided
4616 # by Oracle in the LICENSE file that accompanied this code.
4617 #
4618 # This code is distributed in the hope that it will be useful, but WITHOUT
4619 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4620 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4621 # version 2 for more details (a copy is included in the LICENSE file that
4622 # accompanied this code).
4623 #
4624 # You should have received a copy of the GNU General Public License version
4625 # 2 along with this work; if not, write to the Free Software Foundation,
4626 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4627 #
4628 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4629 # or visit www.oracle.com if you need additional information or have any
4630 # questions.
4631 #
4632 
4633 ################################################################################
4634 # Setup cups (Common Unix Printing System)
4635 ################################################################################
4636 
4637 
4638 #
4639 # Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
4640 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4641 #
4642 # This code is free software; you can redistribute it and/or modify it
4643 # under the terms of the GNU General Public License version 2 only, as
4644 # published by the Free Software Foundation.  Oracle designates this
4645 # particular file as subject to the "Classpath" exception as provided
4646 # by Oracle in the LICENSE file that accompanied this code.
4647 #
4648 # This code is distributed in the hope that it will be useful, but WITHOUT
4649 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4650 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4651 # version 2 for more details (a copy is included in the LICENSE file that
4652 # accompanied this code).
4653 #
4654 # You should have received a copy of the GNU General Public License version
4655 # 2 along with this work; if not, write to the Free Software Foundation,
4656 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4657 #
4658 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4659 # or visit www.oracle.com if you need additional information or have any
4660 # questions.
4661 #
4662 
4663 ################################################################################
4664 # Setup libffi (Foreign Function Interface)
4665 ################################################################################
4666 
4667 
4668 #
4669 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
4670 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4671 #
4672 # This code is free software; you can redistribute it and/or modify it
4673 # under the terms of the GNU General Public License version 2 only, as
4674 # published by the Free Software Foundation.  Oracle designates this
4675 # particular file as subject to the "Classpath" exception as provided
4676 # by Oracle in the LICENSE file that accompanied this code.
4677 #
4678 # This code is distributed in the hope that it will be useful, but WITHOUT
4679 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4680 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4681 # version 2 for more details (a copy is included in the LICENSE file that
4682 # accompanied this code).
4683 #
4684 # You should have received a copy of the GNU General Public License version
4685 # 2 along with this work; if not, write to the Free Software Foundation,
4686 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4687 #
4688 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4689 # or visit www.oracle.com if you need additional information or have any
4690 # questions.
4691 #
4692 
4693 ################################################################################
4694 # Build the freetype lib from source
4695 ################################################################################
4696 
4697 
4698 ################################################################################
4699 # Check if a potential freeype library match is correct and usable
4700 ################################################################################
4701 
4702 
4703 ################################################################################
4704 # Setup freetype (The FreeType2 font rendering library)
4705 ################################################################################
4706 
4707 
4708 #
4709 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4710 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4711 #
4712 # This code is free software; you can redistribute it and/or modify it
4713 # under the terms of the GNU General Public License version 2 only, as
4714 # published by the Free Software Foundation.  Oracle designates this
4715 # particular file as subject to the "Classpath" exception as provided
4716 # by Oracle in the LICENSE file that accompanied this code.
4717 #
4718 # This code is distributed in the hope that it will be useful, but WITHOUT
4719 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4720 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4721 # version 2 for more details (a copy is included in the LICENSE file that
4722 # accompanied this code).
4723 #
4724 # You should have received a copy of the GNU General Public License version
4725 # 2 along with this work; if not, write to the Free Software Foundation,
4726 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4727 #
4728 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4729 # or visit www.oracle.com if you need additional information or have any
4730 # questions.
4731 #
4732 
4733 ################################################################################
4734 # Setup the standard C/C++ runtime libraries.
4735 #
4736 # Most importantly, determine if stdc++ should be linked statically or
4737 # dynamically.
4738 ################################################################################
4739 
4740 
4741 #
4742 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4743 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4744 #
4745 # This code is free software; you can redistribute it and/or modify it
4746 # under the terms of the GNU General Public License version 2 only, as
4747 # published by the Free Software Foundation.  Oracle designates this
4748 # particular file as subject to the "Classpath" exception as provided
4749 # by Oracle in the LICENSE file that accompanied this code.
4750 #
4751 # This code is distributed in the hope that it will be useful, but WITHOUT
4752 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4753 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4754 # version 2 for more details (a copy is included in the LICENSE file that
4755 # accompanied this code).
4756 #
4757 # You should have received a copy of the GNU General Public License version
4758 # 2 along with this work; if not, write to the Free Software Foundation,
4759 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4760 #
4761 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4762 # or visit www.oracle.com if you need additional information or have any
4763 # questions.
4764 #
4765 
4766 ################################################################################
4767 # Setup X11 Windows system
4768 ################################################################################
4769 
4770 
4771 
4772 ################################################################################
4773 # Determine which libraries are needed for this configuration
4774 ################################################################################
4775 
4776 
4777 ################################################################################
4778 # Parse library options, and setup needed libraries
4779 ################################################################################
4780 
4781 
4782 ################################################################################
4783 # Setup llvm (Low-Level VM)
4784 ################################################################################
4785 
4786 
4787 ################################################################################
4788 # Setup various libraries, typically small system libraries
4789 ################################################################################
4790 
4791 
4792 ################################################################################
4793 # libstlport.so.1 is needed for running gtest on Solaris. Find it to
4794 # redistribute it in the test image.
4795 ################################################################################
4796 
4797 
4798 
4799 #
4800 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4801 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4802 #
4803 # This code is free software; you can redistribute it and/or modify it
4804 # under the terms of the GNU General Public License version 2 only, as
4805 # published by the Free Software Foundation.  Oracle designates this
4806 # particular file as subject to the "Classpath" exception as provided
4807 # by Oracle in the LICENSE file that accompanied this code.
4808 #
4809 # This code is distributed in the hope that it will be useful, but WITHOUT
4810 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4811 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4812 # version 2 for more details (a copy is included in the LICENSE file that
4813 # accompanied this code).
4814 #
4815 # You should have received a copy of the GNU General Public License version
4816 # 2 along with this work; if not, write to the Free Software Foundation,
4817 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4818 #
4819 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4820 # or visit www.oracle.com if you need additional information or have any
4821 # questions.
4822 #
4823 
4824 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4825 # Converts autoconf style CPU name to OpenJDK style, into
4826 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN.
4827 
4828 
4829 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4830 # Converts autoconf style OS name to OpenJDK style, into
4831 # VAR_OS, VAR_OS_TYPE and VAR_OS_ENV.
4832 
4833 
4834 # Expects $host_os $host_cpu $build_os and $build_cpu
4835 # and $with_target_bits to have been setup!
4836 #
4837 # Translate the standard triplet(quadruplet) definition
4838 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU,
4839 # OPENJDK_BUILD_OS, etc.
4840 
4841 
4842 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour
4843 # accordingly. Must be done after setting up build and target system, but before
4844 # doing anything else with these values.
4845 
4846 
4847 # Setup the legacy variables, for controlling the old makefiles.
4848 #
4849 
4850 
4851 # $1 - Either TARGET or BUILD to setup the variables for.
4852 
4853 
4854 
4855 
4856 #%%% Build and target systems %%%
4857 
4858 
4859 
4860 
4861 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS.
4862 # Add -mX to various FLAGS variables.
4863 
4864 
4865 
4866 
4867 
4868 
4869 #
4870 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4871 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4872 #
4873 # This code is free software; you can redistribute it and/or modify it
4874 # under the terms of the GNU General Public License version 2 only, as
4875 # published by the Free Software Foundation.  Oracle designates this
4876 # particular file as subject to the "Classpath" exception as provided
4877 # by Oracle in the LICENSE file that accompanied this code.
4878 #
4879 # This code is distributed in the hope that it will be useful, but WITHOUT
4880 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4881 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4882 # version 2 for more details (a copy is included in the LICENSE file that
4883 # accompanied this code).
4884 #
4885 # You should have received a copy of the GNU General Public License version
4886 # 2 along with this work; if not, write to the Free Software Foundation,
4887 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4888 #
4889 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4890 # or visit www.oracle.com if you need additional information or have any
4891 # questions.
4892 #
4893 
4894 
4895 
4896 
4897 
4898 
4899 
4900 ################################################################################
4901 # Define a mechanism for importing extra prebuilt modules
4902 #
4903 
4904 
4905 
4906 #
4907 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4908 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4909 #
4910 # This code is free software; you can redistribute it and/or modify it
4911 # under the terms of the GNU General Public License version 2 only, as
4912 # published by the Free Software Foundation.  Oracle designates this
4913 # particular file as subject to the "Classpath" exception as provided
4914 # by Oracle in the LICENSE file that accompanied this code.
4915 #
4916 # This code is distributed in the hope that it will be useful, but WITHOUT
4917 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4918 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4919 # version 2 for more details (a copy is included in the LICENSE file that
4920 # accompanied this code).
4921 #
4922 # You should have received a copy of the GNU General Public License version
4923 # 2 along with this work; if not, write to the Free Software Foundation,
4924 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4925 #
4926 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4927 # or visit www.oracle.com if you need additional information or have any
4928 # questions.
4929 #
4930 
4931 ########################################################################
4932 # This file is responsible for detecting, verifying and setting up the
4933 # toolchain, i.e. the compiler, linker and related utilities. It will setup
4934 # proper paths to the binaries, but it will not setup any flags.
4935 #
4936 # The binaries used is determined by the toolchain type, which is the family of
4937 # compilers and related tools that are used.
4938 ########################################################################
4939 
4940 
4941 # All valid toolchains, regardless of platform (used by help.m4)
4942 VALID_TOOLCHAINS_all="gcc clang solstudio xlc microsoft"
4943 
4944 # These toolchains are valid on different platforms
4945 VALID_TOOLCHAINS_linux="gcc clang"
4946 VALID_TOOLCHAINS_solaris="solstudio"
4947 VALID_TOOLCHAINS_macosx="gcc clang"
4948 VALID_TOOLCHAINS_aix="xlc"
4949 VALID_TOOLCHAINS_windows="microsoft"
4950 
4951 # Toolchain descriptions
4952 TOOLCHAIN_DESCRIPTION_clang="clang/LLVM"
4953 TOOLCHAIN_DESCRIPTION_gcc="GNU Compiler Collection"
4954 TOOLCHAIN_DESCRIPTION_microsoft="Microsoft Visual Studio"
4955 TOOLCHAIN_DESCRIPTION_solstudio="Oracle Solaris Studio"
4956 TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++"
4957 
4958 # Minimum supported versions, empty means unspecified
4959 TOOLCHAIN_MINIMUM_VERSION_clang="3.2"
4960 TOOLCHAIN_MINIMUM_VERSION_gcc="4.3"
4961 TOOLCHAIN_MINIMUM_VERSION_microsoft="16.00.30319.01" # VS2010
4962 TOOLCHAIN_MINIMUM_VERSION_solstudio="5.13"
4963 TOOLCHAIN_MINIMUM_VERSION_xlc=""
4964 
4965 # Prepare the system so that TOOLCHAIN_CHECK_COMPILER_VERSION can be called.
4966 # Must have CC_VERSION_NUMBER and CXX_VERSION_NUMBER.
4967 # $1 - optional variable prefix for compiler and version variables (BUILD_)
4968 # $2 - optional variable prefix for comparable variable (OPENJDK_BUILD_)
4969 
4970 
4971 # Check if the configured compiler (C and C++) is of a specific version or
4972 # newer. TOOLCHAIN_PREPARE_FOR_VERSION_COMPARISONS must have been called before.
4973 #
4974 # Arguments:
4975 #   VERSION:   The version string to check against the found version
4976 #   IF_AT_LEAST:   block to run if the compiler is at least this version (>=)
4977 #   IF_OLDER_THAN:   block to run if the compiler is older than this version (<)
4978 #   PREFIX:   Optional variable prefix for compiler to compare version for (OPENJDK_BUILD_)
4979 
4980 
4981 
4982 
4983 # Setup a number of variables describing how native output files are
4984 # named on this platform/toolchain.
4985 
4986 
4987 # Determine which toolchain type to use, and make sure it is valid for this
4988 # platform. Setup various information about the selected toolchain.
4989 
4990 
4991 # Before we start detecting the toolchain executables, we might need some
4992 # special setup, e.g. additional paths etc.
4993 
4994 
4995 # Restore path, etc
4996 
4997 
4998 # Check if a compiler is of the toolchain type we expect, and save the version
4999 # information from it. If the compiler does not match the expected type,
5000 # this function will abort using AC_MSG_ERROR. If it matches, the version will
5001 # be stored in CC_VERSION_NUMBER/CXX_VERSION_NUMBER (as a dotted number), and
5002 # the full version string in CC_VERSION_STRING/CXX_VERSION_STRING.
5003 #
5004 # $1 = compiler to test (CC or CXX)
5005 # $2 = human readable name of compiler (C or C++)
5006 
5007 
5008 # Try to locate the given C or C++ compiler in the path, or otherwise.
5009 #
5010 # $1 = compiler to test (CC or CXX)
5011 # $2 = human readable name of compiler (C or C++)
5012 # $3 = list of compiler names to search for
5013 
5014 
5015 # Detect the core components of the toolchain, i.e. the compilers (CC and CXX),
5016 # preprocessor (CPP and CXXCPP), the linker (LD), the assembler (AS) and the
5017 # archiver (AR). Verify that the compilers are correct according to the
5018 # toolchain type.
5019 
5020 
5021 # Setup additional tools that is considered a part of the toolchain, but not the
5022 # core part. Many of these are highly platform-specific and do not exist,
5023 # and/or are not needed on all platforms.
5024 
5025 
5026 # Setup the build tools (i.e, the compiler and linker used to build programs
5027 # that should be run on the build platform, not the target platform, as a build
5028 # helper). Since the non-cross-compile case uses the normal, target compilers
5029 # for this, we can only do this after these have been setup.
5030 
5031 
5032 # Do some additional checks on the detected tools.
5033 
5034 
5035 # Setup the JTReg Regression Test Harness.
5036 
5037 
5038 #
5039 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
5040 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5041 #
5042 # This code is free software; you can redistribute it and/or modify it
5043 # under the terms of the GNU General Public License version 2 only, as
5044 # published by the Free Software Foundation.  Oracle designates this
5045 # particular file as subject to the "Classpath" exception as provided
5046 # by Oracle in the LICENSE file that accompanied this code.
5047 #
5048 # This code is distributed in the hope that it will be useful, but WITHOUT
5049 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
5050 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
5051 # version 2 for more details (a copy is included in the LICENSE file that
5052 # accompanied this code).
5053 #
5054 # You should have received a copy of the GNU General Public License version
5055 # 2 along with this work; if not, write to the Free Software Foundation,
5056 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
5057 #
5058 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
5059 # or visit www.oracle.com if you need additional information or have any
5060 # questions.
5061 #
5062 
5063 ################################################################################
5064 # The order of these defines the priority by which we try to find them.
5065 VALID_VS_VERSIONS="2013 2012 2010"
5066 
5067 VS_DESCRIPTION_2010="Microsoft Visual Studio 2010"
5068 VS_VERSION_INTERNAL_2010=100
5069 VS_MSVCR_2010=msvcr100.dll
5070 # We don't use msvcp on Visual Studio 2010
5071 #VS_MSVCP_2010=msvcp100.dll
5072 VS_ENVVAR_2010="VS100COMNTOOLS"
5073 VS_VS_INSTALLDIR_2010="Microsoft Visual Studio 10.0"
5074 VS_SDK_INSTALLDIR_2010="Microsoft SDKs/Windows/v7.1"
5075 VS_VS_PLATFORM_NAME_2010="v100"
5076 VS_SDK_PLATFORM_NAME_2010="Windows7.1SDK"
5077 
5078 VS_DESCRIPTION_2012="Microsoft Visual Studio 2012"
5079 VS_VERSION_INTERNAL_2012=110
5080 VS_MSVCR_2012=msvcr110.dll
5081 VS_MSVCP_2012=msvcp110.dll
5082 VS_ENVVAR_2012="VS110COMNTOOLS"
5083 VS_VS_INSTALLDIR_2012="Microsoft Visual Studio 11.0"
5084 VS_SDK_INSTALLDIR_2012=
5085 VS_VS_PLATFORM_NAME_2012="v110"
5086 VS_SDK_PLATFORM_NAME_2012=
5087 
5088 VS_DESCRIPTION_2013="Microsoft Visual Studio 2013"
5089 VS_VERSION_INTERNAL_2013=120
5090 VS_MSVCR_2013=msvcr120.dll
5091 VS_MSVCP_2013=msvcp120.dll
5092 VS_ENVVAR_2013="VS120COMNTOOLS"
5093 VS_VS_INSTALLDIR_2013="Microsoft Visual Studio 12.0"
5094 VS_SDK_INSTALLDIR_2013=
5095 VS_VS_PLATFORM_NAME_2013="v120"
5096 VS_SDK_PLATFORM_NAME_2013=
5097 
5098 ################################################################################
5099 
5100 
5101 
5102 ################################################################################
5103 
5104 
5105 
5106 ################################################################################
5107 # Finds the bat or cmd file in Visual Studio or the SDK that sets up a proper
5108 # build environment and assigns it to VS_ENV_CMD
5109 
5110 
5111 ################################################################################
5112 
5113 
5114 
5115 ################################################################################
5116 # Check if the VS env variables were setup prior to running configure.
5117 # If not, then find vcvarsall.bat and run it automatically, and integrate
5118 # the set env variables into the spec file.
5119 
5120 
5121 
5122 
5123 
5124 
5125 
5126 
5127 
5128 
5129 
5130 
5131 
5132 
5133 # This line needs to be here, verbatim, after all includes and the dummy hook
5134 # definitions. It is replaced with custom functionality when building
5135 # custom sources.
5136 #CUSTOM_AUTOCONF_INCLUDE
5137 
5138 # Do not change or remove the following line, it is needed for consistency checks:
5139 DATE_WHEN_GENERATED=1486486357
5140 
5141 ###############################################################################
5142 #
5143 # Initialization / Boot-strapping
5144 #
5145 # The bootstrapping process needs to solve the "chicken or the egg" problem,
5146 # thus it jumps back and forth, each time gaining something needed later on.
5147 #
5148 ###############################################################################
5149 
5150 # If we are requested to print additional help, do that and then exit.
5151 # This must be the very first call.
5152 
5153   if test "x$CONFIGURE_PRINT_ADDITIONAL_HELP" != x; then
5154 
5155     # Print available toolchains
5156     $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
5157     $PRINTF "Which are valid to use depends on the build platform.\n"
5158     for toolchain in $VALID_TOOLCHAINS_all; do
5159       # Use indirect variable referencing
5160       toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain
5161       TOOLCHAIN_DESCRIPTION=${!toolchain_var_name}
5162       $PRINTF "  %-10s  %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION"
5163     done
5164     $PRINTF "\n"
5165 
5166     # Print available jvm features
5167     $PRINTF "The following JVM features are available as arguments to --with-jvm-features.\n"
5168     $PRINTF "Which are valid to use depends on the target platform.\n  "
5169     $PRINTF "%s " $VALID_JVM_FEATURES
5170     $PRINTF "\n"
5171 
5172     # And now exit directly
5173     exit 0
5174   fi
5175 
5176 
5177 # Basic initialization that must happen first of all in the normal process.
5178 
5179   # Save the original command line. This is passed to us by the wrapper configure script.
5180 
5181   # Save the path variable before it gets changed
5182   ORIGINAL_PATH="$PATH"
5183 
5184   DATE_WHEN_CONFIGURED=`LANG=C date`
5185 
5186   { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5
5187 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;}
5188   { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5
5189 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;}
5190 
5191 
5192   # Start with tools that do not need have cross compilation support
5193   # and can be expected to be found in the default PATH. These tools are
5194   # used by configure.
5195 
5196   # First are all the simple required tools.
5197 
5198 
5199 
5200   # Publish this variable in the help.
5201 
5202 
5203   if [ -z "${BASENAME+x}" ]; then
5204     # The variable is not set by user, try to locate tool using the code snippet
5205     for ac_prog in basename
5206 do
5207   # Extract the first word of "$ac_prog", so it can be a program name with args.
5208 set dummy $ac_prog; ac_word=$2
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5210 $as_echo_n "checking for $ac_word... " >&6; }
5211 if ${ac_cv_path_BASENAME+:} false; then :
5212   $as_echo_n "(cached) " >&6
5213 else
5214   case $BASENAME in
5215   [\\/]* | ?:[\\/]*)
5216   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
5217   ;;
5218   *)
5219   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5220 for as_dir in $PATH
5221 do
5222   IFS=$as_save_IFS
5223   test -z "$as_dir" && as_dir=.
5224     for ac_exec_ext in '' $ac_executable_extensions; do
5225   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5226     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
5227     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5228     break 2
5229   fi
5230 done
5231   done
5232 IFS=$as_save_IFS
5233 
5234   ;;
5235 esac
5236 fi
5237 BASENAME=$ac_cv_path_BASENAME
5238 if test -n "$BASENAME"; then
5239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
5240 $as_echo "$BASENAME" >&6; }
5241 else
5242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5243 $as_echo "no" >&6; }
5244 fi
5245 
5246 
5247   test -n "$BASENAME" && break
5248 done
5249 
5250   else
5251     # The variable is set, but is it from the command line or the environment?
5252 
5253     # Try to remove the string !BASENAME! from our list.
5254     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/}
5255     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5256       # If it failed, the variable was not from the command line. Ignore it,
5257       # but warn the user (except for BASH, which is always set by the calling BASH).
5258       if test "xBASENAME" != xBASH; then
5259         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5
5260 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;}
5261       fi
5262       # Try to locate tool using the code snippet
5263       for ac_prog in basename
5264 do
5265   # Extract the first word of "$ac_prog", so it can be a program name with args.
5266 set dummy $ac_prog; ac_word=$2
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5268 $as_echo_n "checking for $ac_word... " >&6; }
5269 if ${ac_cv_path_BASENAME+:} false; then :
5270   $as_echo_n "(cached) " >&6
5271 else
5272   case $BASENAME in
5273   [\\/]* | ?:[\\/]*)
5274   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
5275   ;;
5276   *)
5277   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5278 for as_dir in $PATH
5279 do
5280   IFS=$as_save_IFS
5281   test -z "$as_dir" && as_dir=.
5282     for ac_exec_ext in '' $ac_executable_extensions; do
5283   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5284     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
5285     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5286     break 2
5287   fi
5288 done
5289   done
5290 IFS=$as_save_IFS
5291 
5292   ;;
5293 esac
5294 fi
5295 BASENAME=$ac_cv_path_BASENAME
5296 if test -n "$BASENAME"; then
5297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
5298 $as_echo "$BASENAME" >&6; }
5299 else
5300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5301 $as_echo "no" >&6; }
5302 fi
5303 
5304 
5305   test -n "$BASENAME" && break
5306 done
5307 
5308     else
5309       # If it succeeded, then it was overridden by the user. We will use it
5310       # for the tool.
5311 
5312       # First remove it from the list of overridden variables, so we can test
5313       # for unknown variables in the end.
5314       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5315 
5316       # Check if we try to supply an empty value
5317       if test "x$BASENAME" = x; then
5318         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BASENAME= (no value)" >&5
5319 $as_echo "$as_me: Setting user supplied tool BASENAME= (no value)" >&6;}
5320         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5
5321 $as_echo_n "checking for BASENAME... " >&6; }
5322         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5323 $as_echo "disabled" >&6; }
5324       else
5325         # Check if the provided tool contains a complete path.
5326         tool_specified="$BASENAME"
5327         tool_basename="${tool_specified##*/}"
5328         if test "x$tool_basename" = "x$tool_specified"; then
5329           # A command without a complete path is provided, search $PATH.
5330           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5
5331 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;}
5332           # Extract the first word of "$tool_basename", so it can be a program name with args.
5333 set dummy $tool_basename; ac_word=$2
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5335 $as_echo_n "checking for $ac_word... " >&6; }
5336 if ${ac_cv_path_BASENAME+:} false; then :
5337   $as_echo_n "(cached) " >&6
5338 else
5339   case $BASENAME in
5340   [\\/]* | ?:[\\/]*)
5341   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
5342   ;;
5343   *)
5344   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5345 for as_dir in $PATH
5346 do
5347   IFS=$as_save_IFS
5348   test -z "$as_dir" && as_dir=.
5349     for ac_exec_ext in '' $ac_executable_extensions; do
5350   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5351     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
5352     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5353     break 2
5354   fi
5355 done
5356   done
5357 IFS=$as_save_IFS
5358 
5359   ;;
5360 esac
5361 fi
5362 BASENAME=$ac_cv_path_BASENAME
5363 if test -n "$BASENAME"; then
5364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
5365 $as_echo "$BASENAME" >&6; }
5366 else
5367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5368 $as_echo "no" >&6; }
5369 fi
5370 
5371 
5372           if test "x$BASENAME" = x; then
5373             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5374           fi
5375         else
5376           # Otherwise we believe it is a complete path. Use it as it is.
5377           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5
5378 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;}
5379           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5
5380 $as_echo_n "checking for BASENAME... " >&6; }
5381           if test ! -x "$tool_specified"; then
5382             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5383 $as_echo "not found" >&6; }
5384             as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5
5385           fi
5386           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5387 $as_echo "$tool_specified" >&6; }
5388         fi
5389       fi
5390     fi
5391 
5392   fi
5393 
5394 
5395 
5396   if test "x$BASENAME" = x; then
5397     as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5
5398   fi
5399 
5400 
5401 
5402 
5403 
5404   # Publish this variable in the help.
5405 
5406 
5407   if [ -z "${BASH+x}" ]; then
5408     # The variable is not set by user, try to locate tool using the code snippet
5409     for ac_prog in bash
5410 do
5411   # Extract the first word of "$ac_prog", so it can be a program name with args.
5412 set dummy $ac_prog; ac_word=$2
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5414 $as_echo_n "checking for $ac_word... " >&6; }
5415 if ${ac_cv_path_BASH+:} false; then :
5416   $as_echo_n "(cached) " >&6
5417 else
5418   case $BASH in
5419   [\\/]* | ?:[\\/]*)
5420   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
5421   ;;
5422   *)
5423   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5424 for as_dir in $PATH
5425 do
5426   IFS=$as_save_IFS
5427   test -z "$as_dir" && as_dir=.
5428     for ac_exec_ext in '' $ac_executable_extensions; do
5429   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5430     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
5431     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5432     break 2
5433   fi
5434 done
5435   done
5436 IFS=$as_save_IFS
5437 
5438   ;;
5439 esac
5440 fi
5441 BASH=$ac_cv_path_BASH
5442 if test -n "$BASH"; then
5443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
5444 $as_echo "$BASH" >&6; }
5445 else
5446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5447 $as_echo "no" >&6; }
5448 fi
5449 
5450 
5451   test -n "$BASH" && break
5452 done
5453 
5454   else
5455     # The variable is set, but is it from the command line or the environment?
5456 
5457     # Try to remove the string !BASH! from our list.
5458     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/}
5459     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5460       # If it failed, the variable was not from the command line. Ignore it,
5461       # but warn the user (except for BASH, which is always set by the calling BASH).
5462       if test "xBASH" != xBASH; then
5463         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5
5464 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;}
5465       fi
5466       # Try to locate tool using the code snippet
5467       for ac_prog in bash
5468 do
5469   # Extract the first word of "$ac_prog", so it can be a program name with args.
5470 set dummy $ac_prog; ac_word=$2
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5472 $as_echo_n "checking for $ac_word... " >&6; }
5473 if ${ac_cv_path_BASH+:} false; then :
5474   $as_echo_n "(cached) " >&6
5475 else
5476   case $BASH in
5477   [\\/]* | ?:[\\/]*)
5478   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
5479   ;;
5480   *)
5481   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5482 for as_dir in $PATH
5483 do
5484   IFS=$as_save_IFS
5485   test -z "$as_dir" && as_dir=.
5486     for ac_exec_ext in '' $ac_executable_extensions; do
5487   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5488     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
5489     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5490     break 2
5491   fi
5492 done
5493   done
5494 IFS=$as_save_IFS
5495 
5496   ;;
5497 esac
5498 fi
5499 BASH=$ac_cv_path_BASH
5500 if test -n "$BASH"; then
5501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
5502 $as_echo "$BASH" >&6; }
5503 else
5504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5505 $as_echo "no" >&6; }
5506 fi
5507 
5508 
5509   test -n "$BASH" && break
5510 done
5511 
5512     else
5513       # If it succeeded, then it was overridden by the user. We will use it
5514       # for the tool.
5515 
5516       # First remove it from the list of overridden variables, so we can test
5517       # for unknown variables in the end.
5518       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5519 
5520       # Check if we try to supply an empty value
5521       if test "x$BASH" = x; then
5522         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BASH= (no value)" >&5
5523 $as_echo "$as_me: Setting user supplied tool BASH= (no value)" >&6;}
5524         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5
5525 $as_echo_n "checking for BASH... " >&6; }
5526         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5527 $as_echo "disabled" >&6; }
5528       else
5529         # Check if the provided tool contains a complete path.
5530         tool_specified="$BASH"
5531         tool_basename="${tool_specified##*/}"
5532         if test "x$tool_basename" = "x$tool_specified"; then
5533           # A command without a complete path is provided, search $PATH.
5534           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5
5535 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;}
5536           # Extract the first word of "$tool_basename", so it can be a program name with args.
5537 set dummy $tool_basename; ac_word=$2
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5539 $as_echo_n "checking for $ac_word... " >&6; }
5540 if ${ac_cv_path_BASH+:} false; then :
5541   $as_echo_n "(cached) " >&6
5542 else
5543   case $BASH in
5544   [\\/]* | ?:[\\/]*)
5545   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
5546   ;;
5547   *)
5548   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5549 for as_dir in $PATH
5550 do
5551   IFS=$as_save_IFS
5552   test -z "$as_dir" && as_dir=.
5553     for ac_exec_ext in '' $ac_executable_extensions; do
5554   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5555     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
5556     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5557     break 2
5558   fi
5559 done
5560   done
5561 IFS=$as_save_IFS
5562 
5563   ;;
5564 esac
5565 fi
5566 BASH=$ac_cv_path_BASH
5567 if test -n "$BASH"; then
5568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
5569 $as_echo "$BASH" >&6; }
5570 else
5571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5572 $as_echo "no" >&6; }
5573 fi
5574 
5575 
5576           if test "x$BASH" = x; then
5577             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5578           fi
5579         else
5580           # Otherwise we believe it is a complete path. Use it as it is.
5581           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5
5582 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;}
5583           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5
5584 $as_echo_n "checking for BASH... " >&6; }
5585           if test ! -x "$tool_specified"; then
5586             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5587 $as_echo "not found" >&6; }
5588             as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5
5589           fi
5590           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5591 $as_echo "$tool_specified" >&6; }
5592         fi
5593       fi
5594     fi
5595 
5596   fi
5597 
5598 
5599 
5600   if test "x$BASH" = x; then
5601     as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5
5602   fi
5603 
5604 
5605 
5606 
5607 
5608   # Publish this variable in the help.
5609 
5610 
5611   if [ -z "${CAT+x}" ]; then
5612     # The variable is not set by user, try to locate tool using the code snippet
5613     for ac_prog in cat
5614 do
5615   # Extract the first word of "$ac_prog", so it can be a program name with args.
5616 set dummy $ac_prog; ac_word=$2
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5618 $as_echo_n "checking for $ac_word... " >&6; }
5619 if ${ac_cv_path_CAT+:} false; then :
5620   $as_echo_n "(cached) " >&6
5621 else
5622   case $CAT in
5623   [\\/]* | ?:[\\/]*)
5624   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
5625   ;;
5626   *)
5627   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5628 for as_dir in $PATH
5629 do
5630   IFS=$as_save_IFS
5631   test -z "$as_dir" && as_dir=.
5632     for ac_exec_ext in '' $ac_executable_extensions; do
5633   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5634     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
5635     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5636     break 2
5637   fi
5638 done
5639   done
5640 IFS=$as_save_IFS
5641 
5642   ;;
5643 esac
5644 fi
5645 CAT=$ac_cv_path_CAT
5646 if test -n "$CAT"; then
5647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5648 $as_echo "$CAT" >&6; }
5649 else
5650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5651 $as_echo "no" >&6; }
5652 fi
5653 
5654 
5655   test -n "$CAT" && break
5656 done
5657 
5658   else
5659     # The variable is set, but is it from the command line or the environment?
5660 
5661     # Try to remove the string !CAT! from our list.
5662     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/}
5663     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5664       # If it failed, the variable was not from the command line. Ignore it,
5665       # but warn the user (except for BASH, which is always set by the calling BASH).
5666       if test "xCAT" != xBASH; then
5667         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5
5668 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;}
5669       fi
5670       # Try to locate tool using the code snippet
5671       for ac_prog in cat
5672 do
5673   # Extract the first word of "$ac_prog", so it can be a program name with args.
5674 set dummy $ac_prog; ac_word=$2
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5676 $as_echo_n "checking for $ac_word... " >&6; }
5677 if ${ac_cv_path_CAT+:} false; then :
5678   $as_echo_n "(cached) " >&6
5679 else
5680   case $CAT in
5681   [\\/]* | ?:[\\/]*)
5682   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
5683   ;;
5684   *)
5685   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5686 for as_dir in $PATH
5687 do
5688   IFS=$as_save_IFS
5689   test -z "$as_dir" && as_dir=.
5690     for ac_exec_ext in '' $ac_executable_extensions; do
5691   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5692     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
5693     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5694     break 2
5695   fi
5696 done
5697   done
5698 IFS=$as_save_IFS
5699 
5700   ;;
5701 esac
5702 fi
5703 CAT=$ac_cv_path_CAT
5704 if test -n "$CAT"; then
5705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5706 $as_echo "$CAT" >&6; }
5707 else
5708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5709 $as_echo "no" >&6; }
5710 fi
5711 
5712 
5713   test -n "$CAT" && break
5714 done
5715 
5716     else
5717       # If it succeeded, then it was overridden by the user. We will use it
5718       # for the tool.
5719 
5720       # First remove it from the list of overridden variables, so we can test
5721       # for unknown variables in the end.
5722       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5723 
5724       # Check if we try to supply an empty value
5725       if test "x$CAT" = x; then
5726         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CAT= (no value)" >&5
5727 $as_echo "$as_me: Setting user supplied tool CAT= (no value)" >&6;}
5728         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5
5729 $as_echo_n "checking for CAT... " >&6; }
5730         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5731 $as_echo "disabled" >&6; }
5732       else
5733         # Check if the provided tool contains a complete path.
5734         tool_specified="$CAT"
5735         tool_basename="${tool_specified##*/}"
5736         if test "x$tool_basename" = "x$tool_specified"; then
5737           # A command without a complete path is provided, search $PATH.
5738           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5
5739 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;}
5740           # Extract the first word of "$tool_basename", so it can be a program name with args.
5741 set dummy $tool_basename; ac_word=$2
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5743 $as_echo_n "checking for $ac_word... " >&6; }
5744 if ${ac_cv_path_CAT+:} false; then :
5745   $as_echo_n "(cached) " >&6
5746 else
5747   case $CAT in
5748   [\\/]* | ?:[\\/]*)
5749   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
5750   ;;
5751   *)
5752   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5753 for as_dir in $PATH
5754 do
5755   IFS=$as_save_IFS
5756   test -z "$as_dir" && as_dir=.
5757     for ac_exec_ext in '' $ac_executable_extensions; do
5758   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5759     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
5760     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5761     break 2
5762   fi
5763 done
5764   done
5765 IFS=$as_save_IFS
5766 
5767   ;;
5768 esac
5769 fi
5770 CAT=$ac_cv_path_CAT
5771 if test -n "$CAT"; then
5772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5773 $as_echo "$CAT" >&6; }
5774 else
5775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5776 $as_echo "no" >&6; }
5777 fi
5778 
5779 
5780           if test "x$CAT" = x; then
5781             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5782           fi
5783         else
5784           # Otherwise we believe it is a complete path. Use it as it is.
5785           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5
5786 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;}
5787           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5
5788 $as_echo_n "checking for CAT... " >&6; }
5789           if test ! -x "$tool_specified"; then
5790             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5791 $as_echo "not found" >&6; }
5792             as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5
5793           fi
5794           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5795 $as_echo "$tool_specified" >&6; }
5796         fi
5797       fi
5798     fi
5799 
5800   fi
5801 
5802 
5803 
5804   if test "x$CAT" = x; then
5805     as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5
5806   fi
5807 
5808 
5809 
5810 
5811 
5812   # Publish this variable in the help.
5813 
5814 
5815   if [ -z "${CHMOD+x}" ]; then
5816     # The variable is not set by user, try to locate tool using the code snippet
5817     for ac_prog in chmod
5818 do
5819   # Extract the first word of "$ac_prog", so it can be a program name with args.
5820 set dummy $ac_prog; ac_word=$2
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5822 $as_echo_n "checking for $ac_word... " >&6; }
5823 if ${ac_cv_path_CHMOD+:} false; then :
5824   $as_echo_n "(cached) " >&6
5825 else
5826   case $CHMOD in
5827   [\\/]* | ?:[\\/]*)
5828   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5829   ;;
5830   *)
5831   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5832 for as_dir in $PATH
5833 do
5834   IFS=$as_save_IFS
5835   test -z "$as_dir" && as_dir=.
5836     for ac_exec_ext in '' $ac_executable_extensions; do
5837   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5838     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5839     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5840     break 2
5841   fi
5842 done
5843   done
5844 IFS=$as_save_IFS
5845 
5846   ;;
5847 esac
5848 fi
5849 CHMOD=$ac_cv_path_CHMOD
5850 if test -n "$CHMOD"; then
5851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5852 $as_echo "$CHMOD" >&6; }
5853 else
5854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5855 $as_echo "no" >&6; }
5856 fi
5857 
5858 
5859   test -n "$CHMOD" && break
5860 done
5861 
5862   else
5863     # The variable is set, but is it from the command line or the environment?
5864 
5865     # Try to remove the string !CHMOD! from our list.
5866     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/}
5867     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5868       # If it failed, the variable was not from the command line. Ignore it,
5869       # but warn the user (except for BASH, which is always set by the calling BASH).
5870       if test "xCHMOD" != xBASH; then
5871         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5
5872 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;}
5873       fi
5874       # Try to locate tool using the code snippet
5875       for ac_prog in chmod
5876 do
5877   # Extract the first word of "$ac_prog", so it can be a program name with args.
5878 set dummy $ac_prog; ac_word=$2
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5880 $as_echo_n "checking for $ac_word... " >&6; }
5881 if ${ac_cv_path_CHMOD+:} false; then :
5882   $as_echo_n "(cached) " >&6
5883 else
5884   case $CHMOD in
5885   [\\/]* | ?:[\\/]*)
5886   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5887   ;;
5888   *)
5889   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5890 for as_dir in $PATH
5891 do
5892   IFS=$as_save_IFS
5893   test -z "$as_dir" && as_dir=.
5894     for ac_exec_ext in '' $ac_executable_extensions; do
5895   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5896     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5897     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5898     break 2
5899   fi
5900 done
5901   done
5902 IFS=$as_save_IFS
5903 
5904   ;;
5905 esac
5906 fi
5907 CHMOD=$ac_cv_path_CHMOD
5908 if test -n "$CHMOD"; then
5909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5910 $as_echo "$CHMOD" >&6; }
5911 else
5912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5913 $as_echo "no" >&6; }
5914 fi
5915 
5916 
5917   test -n "$CHMOD" && break
5918 done
5919 
5920     else
5921       # If it succeeded, then it was overridden by the user. We will use it
5922       # for the tool.
5923 
5924       # First remove it from the list of overridden variables, so we can test
5925       # for unknown variables in the end.
5926       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5927 
5928       # Check if we try to supply an empty value
5929       if test "x$CHMOD" = x; then
5930         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CHMOD= (no value)" >&5
5931 $as_echo "$as_me: Setting user supplied tool CHMOD= (no value)" >&6;}
5932         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5
5933 $as_echo_n "checking for CHMOD... " >&6; }
5934         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5935 $as_echo "disabled" >&6; }
5936       else
5937         # Check if the provided tool contains a complete path.
5938         tool_specified="$CHMOD"
5939         tool_basename="${tool_specified##*/}"
5940         if test "x$tool_basename" = "x$tool_specified"; then
5941           # A command without a complete path is provided, search $PATH.
5942           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5
5943 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;}
5944           # Extract the first word of "$tool_basename", so it can be a program name with args.
5945 set dummy $tool_basename; ac_word=$2
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5947 $as_echo_n "checking for $ac_word... " >&6; }
5948 if ${ac_cv_path_CHMOD+:} false; then :
5949   $as_echo_n "(cached) " >&6
5950 else
5951   case $CHMOD in
5952   [\\/]* | ?:[\\/]*)
5953   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5954   ;;
5955   *)
5956   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5957 for as_dir in $PATH
5958 do
5959   IFS=$as_save_IFS
5960   test -z "$as_dir" && as_dir=.
5961     for ac_exec_ext in '' $ac_executable_extensions; do
5962   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5963     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5964     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5965     break 2
5966   fi
5967 done
5968   done
5969 IFS=$as_save_IFS
5970 
5971   ;;
5972 esac
5973 fi
5974 CHMOD=$ac_cv_path_CHMOD
5975 if test -n "$CHMOD"; then
5976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5977 $as_echo "$CHMOD" >&6; }
5978 else
5979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5980 $as_echo "no" >&6; }
5981 fi
5982 
5983 
5984           if test "x$CHMOD" = x; then
5985             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5986           fi
5987         else
5988           # Otherwise we believe it is a complete path. Use it as it is.
5989           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5
5990 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;}
5991           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5
5992 $as_echo_n "checking for CHMOD... " >&6; }
5993           if test ! -x "$tool_specified"; then
5994             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5995 $as_echo "not found" >&6; }
5996             as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5
5997           fi
5998           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5999 $as_echo "$tool_specified" >&6; }
6000         fi
6001       fi
6002     fi
6003 
6004   fi
6005 
6006 
6007 
6008   if test "x$CHMOD" = x; then
6009     as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5
6010   fi
6011 
6012 
6013 
6014 
6015 
6016   # Publish this variable in the help.
6017 
6018 
6019   if [ -z "${CMP+x}" ]; then
6020     # The variable is not set by user, try to locate tool using the code snippet
6021     for ac_prog in cmp
6022 do
6023   # Extract the first word of "$ac_prog", so it can be a program name with args.
6024 set dummy $ac_prog; ac_word=$2
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6026 $as_echo_n "checking for $ac_word... " >&6; }
6027 if ${ac_cv_path_CMP+:} false; then :
6028   $as_echo_n "(cached) " >&6
6029 else
6030   case $CMP in
6031   [\\/]* | ?:[\\/]*)
6032   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6033   ;;
6034   *)
6035   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6036 for as_dir in $PATH
6037 do
6038   IFS=$as_save_IFS
6039   test -z "$as_dir" && as_dir=.
6040     for ac_exec_ext in '' $ac_executable_extensions; do
6041   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6042     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6043     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6044     break 2
6045   fi
6046 done
6047   done
6048 IFS=$as_save_IFS
6049 
6050   ;;
6051 esac
6052 fi
6053 CMP=$ac_cv_path_CMP
6054 if test -n "$CMP"; then
6055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
6056 $as_echo "$CMP" >&6; }
6057 else
6058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6059 $as_echo "no" >&6; }
6060 fi
6061 
6062 
6063   test -n "$CMP" && break
6064 done
6065 
6066   else
6067     # The variable is set, but is it from the command line or the environment?
6068 
6069     # Try to remove the string !CMP! from our list.
6070     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/}
6071     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6072       # If it failed, the variable was not from the command line. Ignore it,
6073       # but warn the user (except for BASH, which is always set by the calling BASH).
6074       if test "xCMP" != xBASH; then
6075         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5
6076 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;}
6077       fi
6078       # Try to locate tool using the code snippet
6079       for ac_prog in cmp
6080 do
6081   # Extract the first word of "$ac_prog", so it can be a program name with args.
6082 set dummy $ac_prog; ac_word=$2
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6084 $as_echo_n "checking for $ac_word... " >&6; }
6085 if ${ac_cv_path_CMP+:} false; then :
6086   $as_echo_n "(cached) " >&6
6087 else
6088   case $CMP in
6089   [\\/]* | ?:[\\/]*)
6090   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6091   ;;
6092   *)
6093   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6094 for as_dir in $PATH
6095 do
6096   IFS=$as_save_IFS
6097   test -z "$as_dir" && as_dir=.
6098     for ac_exec_ext in '' $ac_executable_extensions; do
6099   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6100     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6101     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6102     break 2
6103   fi
6104 done
6105   done
6106 IFS=$as_save_IFS
6107 
6108   ;;
6109 esac
6110 fi
6111 CMP=$ac_cv_path_CMP
6112 if test -n "$CMP"; then
6113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
6114 $as_echo "$CMP" >&6; }
6115 else
6116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6117 $as_echo "no" >&6; }
6118 fi
6119 
6120 
6121   test -n "$CMP" && break
6122 done
6123 
6124     else
6125       # If it succeeded, then it was overridden by the user. We will use it
6126       # for the tool.
6127 
6128       # First remove it from the list of overridden variables, so we can test
6129       # for unknown variables in the end.
6130       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6131 
6132       # Check if we try to supply an empty value
6133       if test "x$CMP" = x; then
6134         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CMP= (no value)" >&5
6135 $as_echo "$as_me: Setting user supplied tool CMP= (no value)" >&6;}
6136         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5
6137 $as_echo_n "checking for CMP... " >&6; }
6138         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6139 $as_echo "disabled" >&6; }
6140       else
6141         # Check if the provided tool contains a complete path.
6142         tool_specified="$CMP"
6143         tool_basename="${tool_specified##*/}"
6144         if test "x$tool_basename" = "x$tool_specified"; then
6145           # A command without a complete path is provided, search $PATH.
6146           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5
6147 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;}
6148           # Extract the first word of "$tool_basename", so it can be a program name with args.
6149 set dummy $tool_basename; ac_word=$2
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6151 $as_echo_n "checking for $ac_word... " >&6; }
6152 if ${ac_cv_path_CMP+:} false; then :
6153   $as_echo_n "(cached) " >&6
6154 else
6155   case $CMP in
6156   [\\/]* | ?:[\\/]*)
6157   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6158   ;;
6159   *)
6160   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6161 for as_dir in $PATH
6162 do
6163   IFS=$as_save_IFS
6164   test -z "$as_dir" && as_dir=.
6165     for ac_exec_ext in '' $ac_executable_extensions; do
6166   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6167     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6168     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6169     break 2
6170   fi
6171 done
6172   done
6173 IFS=$as_save_IFS
6174 
6175   ;;
6176 esac
6177 fi
6178 CMP=$ac_cv_path_CMP
6179 if test -n "$CMP"; then
6180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
6181 $as_echo "$CMP" >&6; }
6182 else
6183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6184 $as_echo "no" >&6; }
6185 fi
6186 
6187 
6188           if test "x$CMP" = x; then
6189             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6190           fi
6191         else
6192           # Otherwise we believe it is a complete path. Use it as it is.
6193           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5
6194 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;}
6195           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5
6196 $as_echo_n "checking for CMP... " >&6; }
6197           if test ! -x "$tool_specified"; then
6198             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6199 $as_echo "not found" >&6; }
6200             as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5
6201           fi
6202           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6203 $as_echo "$tool_specified" >&6; }
6204         fi
6205       fi
6206     fi
6207 
6208   fi
6209 
6210 
6211 
6212   if test "x$CMP" = x; then
6213     as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5
6214   fi
6215 
6216 
6217 
6218 
6219 
6220   # Publish this variable in the help.
6221 
6222 
6223   if [ -z "${COMM+x}" ]; then
6224     # The variable is not set by user, try to locate tool using the code snippet
6225     for ac_prog in comm
6226 do
6227   # Extract the first word of "$ac_prog", so it can be a program name with args.
6228 set dummy $ac_prog; ac_word=$2
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6230 $as_echo_n "checking for $ac_word... " >&6; }
6231 if ${ac_cv_path_COMM+:} false; then :
6232   $as_echo_n "(cached) " >&6
6233 else
6234   case $COMM in
6235   [\\/]* | ?:[\\/]*)
6236   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
6237   ;;
6238   *)
6239   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6240 for as_dir in $PATH
6241 do
6242   IFS=$as_save_IFS
6243   test -z "$as_dir" && as_dir=.
6244     for ac_exec_ext in '' $ac_executable_extensions; do
6245   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6246     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
6247     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6248     break 2
6249   fi
6250 done
6251   done
6252 IFS=$as_save_IFS
6253 
6254   ;;
6255 esac
6256 fi
6257 COMM=$ac_cv_path_COMM
6258 if test -n "$COMM"; then
6259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
6260 $as_echo "$COMM" >&6; }
6261 else
6262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6263 $as_echo "no" >&6; }
6264 fi
6265 
6266 
6267   test -n "$COMM" && break
6268 done
6269 
6270   else
6271     # The variable is set, but is it from the command line or the environment?
6272 
6273     # Try to remove the string !COMM! from our list.
6274     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/}
6275     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6276       # If it failed, the variable was not from the command line. Ignore it,
6277       # but warn the user (except for BASH, which is always set by the calling BASH).
6278       if test "xCOMM" != xBASH; then
6279         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5
6280 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;}
6281       fi
6282       # Try to locate tool using the code snippet
6283       for ac_prog in comm
6284 do
6285   # Extract the first word of "$ac_prog", so it can be a program name with args.
6286 set dummy $ac_prog; ac_word=$2
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6288 $as_echo_n "checking for $ac_word... " >&6; }
6289 if ${ac_cv_path_COMM+:} false; then :
6290   $as_echo_n "(cached) " >&6
6291 else
6292   case $COMM in
6293   [\\/]* | ?:[\\/]*)
6294   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
6295   ;;
6296   *)
6297   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6298 for as_dir in $PATH
6299 do
6300   IFS=$as_save_IFS
6301   test -z "$as_dir" && as_dir=.
6302     for ac_exec_ext in '' $ac_executable_extensions; do
6303   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6304     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
6305     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6306     break 2
6307   fi
6308 done
6309   done
6310 IFS=$as_save_IFS
6311 
6312   ;;
6313 esac
6314 fi
6315 COMM=$ac_cv_path_COMM
6316 if test -n "$COMM"; then
6317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
6318 $as_echo "$COMM" >&6; }
6319 else
6320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6321 $as_echo "no" >&6; }
6322 fi
6323 
6324 
6325   test -n "$COMM" && break
6326 done
6327 
6328     else
6329       # If it succeeded, then it was overridden by the user. We will use it
6330       # for the tool.
6331 
6332       # First remove it from the list of overridden variables, so we can test
6333       # for unknown variables in the end.
6334       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6335 
6336       # Check if we try to supply an empty value
6337       if test "x$COMM" = x; then
6338         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool COMM= (no value)" >&5
6339 $as_echo "$as_me: Setting user supplied tool COMM= (no value)" >&6;}
6340         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
6341 $as_echo_n "checking for COMM... " >&6; }
6342         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6343 $as_echo "disabled" >&6; }
6344       else
6345         # Check if the provided tool contains a complete path.
6346         tool_specified="$COMM"
6347         tool_basename="${tool_specified##*/}"
6348         if test "x$tool_basename" = "x$tool_specified"; then
6349           # A command without a complete path is provided, search $PATH.
6350           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5
6351 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;}
6352           # Extract the first word of "$tool_basename", so it can be a program name with args.
6353 set dummy $tool_basename; ac_word=$2
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6355 $as_echo_n "checking for $ac_word... " >&6; }
6356 if ${ac_cv_path_COMM+:} false; then :
6357   $as_echo_n "(cached) " >&6
6358 else
6359   case $COMM in
6360   [\\/]* | ?:[\\/]*)
6361   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
6362   ;;
6363   *)
6364   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6365 for as_dir in $PATH
6366 do
6367   IFS=$as_save_IFS
6368   test -z "$as_dir" && as_dir=.
6369     for ac_exec_ext in '' $ac_executable_extensions; do
6370   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6371     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
6372     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6373     break 2
6374   fi
6375 done
6376   done
6377 IFS=$as_save_IFS
6378 
6379   ;;
6380 esac
6381 fi
6382 COMM=$ac_cv_path_COMM
6383 if test -n "$COMM"; then
6384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
6385 $as_echo "$COMM" >&6; }
6386 else
6387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6388 $as_echo "no" >&6; }
6389 fi
6390 
6391 
6392           if test "x$COMM" = x; then
6393             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6394           fi
6395         else
6396           # Otherwise we believe it is a complete path. Use it as it is.
6397           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5
6398 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;}
6399           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
6400 $as_echo_n "checking for COMM... " >&6; }
6401           if test ! -x "$tool_specified"; then
6402             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6403 $as_echo "not found" >&6; }
6404             as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5
6405           fi
6406           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6407 $as_echo "$tool_specified" >&6; }
6408         fi
6409       fi
6410     fi
6411 
6412   fi
6413 
6414 
6415 
6416   if test "x$COMM" = x; then
6417     as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5
6418   fi
6419 
6420 
6421 
6422 
6423 
6424   # Publish this variable in the help.
6425 
6426 
6427   if [ -z "${CP+x}" ]; then
6428     # The variable is not set by user, try to locate tool using the code snippet
6429     for ac_prog in cp
6430 do
6431   # Extract the first word of "$ac_prog", so it can be a program name with args.
6432 set dummy $ac_prog; ac_word=$2
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6434 $as_echo_n "checking for $ac_word... " >&6; }
6435 if ${ac_cv_path_CP+:} false; then :
6436   $as_echo_n "(cached) " >&6
6437 else
6438   case $CP in
6439   [\\/]* | ?:[\\/]*)
6440   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6441   ;;
6442   *)
6443   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6444 for as_dir in $PATH
6445 do
6446   IFS=$as_save_IFS
6447   test -z "$as_dir" && as_dir=.
6448     for ac_exec_ext in '' $ac_executable_extensions; do
6449   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6450     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6451     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6452     break 2
6453   fi
6454 done
6455   done
6456 IFS=$as_save_IFS
6457 
6458   ;;
6459 esac
6460 fi
6461 CP=$ac_cv_path_CP
6462 if test -n "$CP"; then
6463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
6464 $as_echo "$CP" >&6; }
6465 else
6466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6467 $as_echo "no" >&6; }
6468 fi
6469 
6470 
6471   test -n "$CP" && break
6472 done
6473 
6474   else
6475     # The variable is set, but is it from the command line or the environment?
6476 
6477     # Try to remove the string !CP! from our list.
6478     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/}
6479     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6480       # If it failed, the variable was not from the command line. Ignore it,
6481       # but warn the user (except for BASH, which is always set by the calling BASH).
6482       if test "xCP" != xBASH; then
6483         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5
6484 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;}
6485       fi
6486       # Try to locate tool using the code snippet
6487       for ac_prog in cp
6488 do
6489   # Extract the first word of "$ac_prog", so it can be a program name with args.
6490 set dummy $ac_prog; ac_word=$2
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6492 $as_echo_n "checking for $ac_word... " >&6; }
6493 if ${ac_cv_path_CP+:} false; then :
6494   $as_echo_n "(cached) " >&6
6495 else
6496   case $CP in
6497   [\\/]* | ?:[\\/]*)
6498   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6499   ;;
6500   *)
6501   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6502 for as_dir in $PATH
6503 do
6504   IFS=$as_save_IFS
6505   test -z "$as_dir" && as_dir=.
6506     for ac_exec_ext in '' $ac_executable_extensions; do
6507   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6508     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6509     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6510     break 2
6511   fi
6512 done
6513   done
6514 IFS=$as_save_IFS
6515 
6516   ;;
6517 esac
6518 fi
6519 CP=$ac_cv_path_CP
6520 if test -n "$CP"; then
6521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
6522 $as_echo "$CP" >&6; }
6523 else
6524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6525 $as_echo "no" >&6; }
6526 fi
6527 
6528 
6529   test -n "$CP" && break
6530 done
6531 
6532     else
6533       # If it succeeded, then it was overridden by the user. We will use it
6534       # for the tool.
6535 
6536       # First remove it from the list of overridden variables, so we can test
6537       # for unknown variables in the end.
6538       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6539 
6540       # Check if we try to supply an empty value
6541       if test "x$CP" = x; then
6542         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CP= (no value)" >&5
6543 $as_echo "$as_me: Setting user supplied tool CP= (no value)" >&6;}
6544         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5
6545 $as_echo_n "checking for CP... " >&6; }
6546         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6547 $as_echo "disabled" >&6; }
6548       else
6549         # Check if the provided tool contains a complete path.
6550         tool_specified="$CP"
6551         tool_basename="${tool_specified##*/}"
6552         if test "x$tool_basename" = "x$tool_specified"; then
6553           # A command without a complete path is provided, search $PATH.
6554           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5
6555 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;}
6556           # Extract the first word of "$tool_basename", so it can be a program name with args.
6557 set dummy $tool_basename; ac_word=$2
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6559 $as_echo_n "checking for $ac_word... " >&6; }
6560 if ${ac_cv_path_CP+:} false; then :
6561   $as_echo_n "(cached) " >&6
6562 else
6563   case $CP in
6564   [\\/]* | ?:[\\/]*)
6565   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6566   ;;
6567   *)
6568   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6569 for as_dir in $PATH
6570 do
6571   IFS=$as_save_IFS
6572   test -z "$as_dir" && as_dir=.
6573     for ac_exec_ext in '' $ac_executable_extensions; do
6574   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6575     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6576     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6577     break 2
6578   fi
6579 done
6580   done
6581 IFS=$as_save_IFS
6582 
6583   ;;
6584 esac
6585 fi
6586 CP=$ac_cv_path_CP
6587 if test -n "$CP"; then
6588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
6589 $as_echo "$CP" >&6; }
6590 else
6591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6592 $as_echo "no" >&6; }
6593 fi
6594 
6595 
6596           if test "x$CP" = x; then
6597             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6598           fi
6599         else
6600           # Otherwise we believe it is a complete path. Use it as it is.
6601           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5
6602 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;}
6603           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5
6604 $as_echo_n "checking for CP... " >&6; }
6605           if test ! -x "$tool_specified"; then
6606             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6607 $as_echo "not found" >&6; }
6608             as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5
6609           fi
6610           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6611 $as_echo "$tool_specified" >&6; }
6612         fi
6613       fi
6614     fi
6615 
6616   fi
6617 
6618 
6619 
6620   if test "x$CP" = x; then
6621     as_fn_error $? "Could not find required tool for CP" "$LINENO" 5
6622   fi
6623 
6624 
6625 
6626 
6627 
6628   # Publish this variable in the help.
6629 
6630 
6631   if [ -z "${CUT+x}" ]; then
6632     # The variable is not set by user, try to locate tool using the code snippet
6633     for ac_prog in cut
6634 do
6635   # Extract the first word of "$ac_prog", so it can be a program name with args.
6636 set dummy $ac_prog; ac_word=$2
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6638 $as_echo_n "checking for $ac_word... " >&6; }
6639 if ${ac_cv_path_CUT+:} false; then :
6640   $as_echo_n "(cached) " >&6
6641 else
6642   case $CUT in
6643   [\\/]* | ?:[\\/]*)
6644   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
6645   ;;
6646   *)
6647   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6648 for as_dir in $PATH
6649 do
6650   IFS=$as_save_IFS
6651   test -z "$as_dir" && as_dir=.
6652     for ac_exec_ext in '' $ac_executable_extensions; do
6653   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6654     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
6655     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6656     break 2
6657   fi
6658 done
6659   done
6660 IFS=$as_save_IFS
6661 
6662   ;;
6663 esac
6664 fi
6665 CUT=$ac_cv_path_CUT
6666 if test -n "$CUT"; then
6667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
6668 $as_echo "$CUT" >&6; }
6669 else
6670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6671 $as_echo "no" >&6; }
6672 fi
6673 
6674 
6675   test -n "$CUT" && break
6676 done
6677 
6678   else
6679     # The variable is set, but is it from the command line or the environment?
6680 
6681     # Try to remove the string !CUT! from our list.
6682     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/}
6683     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6684       # If it failed, the variable was not from the command line. Ignore it,
6685       # but warn the user (except for BASH, which is always set by the calling BASH).
6686       if test "xCUT" != xBASH; then
6687         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5
6688 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;}
6689       fi
6690       # Try to locate tool using the code snippet
6691       for ac_prog in cut
6692 do
6693   # Extract the first word of "$ac_prog", so it can be a program name with args.
6694 set dummy $ac_prog; ac_word=$2
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6696 $as_echo_n "checking for $ac_word... " >&6; }
6697 if ${ac_cv_path_CUT+:} false; then :
6698   $as_echo_n "(cached) " >&6
6699 else
6700   case $CUT in
6701   [\\/]* | ?:[\\/]*)
6702   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
6703   ;;
6704   *)
6705   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6706 for as_dir in $PATH
6707 do
6708   IFS=$as_save_IFS
6709   test -z "$as_dir" && as_dir=.
6710     for ac_exec_ext in '' $ac_executable_extensions; do
6711   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6712     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
6713     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6714     break 2
6715   fi
6716 done
6717   done
6718 IFS=$as_save_IFS
6719 
6720   ;;
6721 esac
6722 fi
6723 CUT=$ac_cv_path_CUT
6724 if test -n "$CUT"; then
6725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
6726 $as_echo "$CUT" >&6; }
6727 else
6728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6729 $as_echo "no" >&6; }
6730 fi
6731 
6732 
6733   test -n "$CUT" && break
6734 done
6735 
6736     else
6737       # If it succeeded, then it was overridden by the user. We will use it
6738       # for the tool.
6739 
6740       # First remove it from the list of overridden variables, so we can test
6741       # for unknown variables in the end.
6742       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6743 
6744       # Check if we try to supply an empty value
6745       if test "x$CUT" = x; then
6746         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CUT= (no value)" >&5
6747 $as_echo "$as_me: Setting user supplied tool CUT= (no value)" >&6;}
6748         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5
6749 $as_echo_n "checking for CUT... " >&6; }
6750         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6751 $as_echo "disabled" >&6; }
6752       else
6753         # Check if the provided tool contains a complete path.
6754         tool_specified="$CUT"
6755         tool_basename="${tool_specified##*/}"
6756         if test "x$tool_basename" = "x$tool_specified"; then
6757           # A command without a complete path is provided, search $PATH.
6758           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5
6759 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;}
6760           # Extract the first word of "$tool_basename", so it can be a program name with args.
6761 set dummy $tool_basename; ac_word=$2
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6763 $as_echo_n "checking for $ac_word... " >&6; }
6764 if ${ac_cv_path_CUT+:} false; then :
6765   $as_echo_n "(cached) " >&6
6766 else
6767   case $CUT in
6768   [\\/]* | ?:[\\/]*)
6769   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
6770   ;;
6771   *)
6772   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6773 for as_dir in $PATH
6774 do
6775   IFS=$as_save_IFS
6776   test -z "$as_dir" && as_dir=.
6777     for ac_exec_ext in '' $ac_executable_extensions; do
6778   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6779     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
6780     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6781     break 2
6782   fi
6783 done
6784   done
6785 IFS=$as_save_IFS
6786 
6787   ;;
6788 esac
6789 fi
6790 CUT=$ac_cv_path_CUT
6791 if test -n "$CUT"; then
6792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
6793 $as_echo "$CUT" >&6; }
6794 else
6795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6796 $as_echo "no" >&6; }
6797 fi
6798 
6799 
6800           if test "x$CUT" = x; then
6801             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6802           fi
6803         else
6804           # Otherwise we believe it is a complete path. Use it as it is.
6805           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5
6806 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;}
6807           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5
6808 $as_echo_n "checking for CUT... " >&6; }
6809           if test ! -x "$tool_specified"; then
6810             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6811 $as_echo "not found" >&6; }
6812             as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5
6813           fi
6814           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6815 $as_echo "$tool_specified" >&6; }
6816         fi
6817       fi
6818     fi
6819 
6820   fi
6821 
6822 
6823 
6824   if test "x$CUT" = x; then
6825     as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5
6826   fi
6827 
6828 
6829 
6830 
6831 
6832   # Publish this variable in the help.
6833 
6834 
6835   if [ -z "${DATE+x}" ]; then
6836     # The variable is not set by user, try to locate tool using the code snippet
6837     for ac_prog in date
6838 do
6839   # Extract the first word of "$ac_prog", so it can be a program name with args.
6840 set dummy $ac_prog; ac_word=$2
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6842 $as_echo_n "checking for $ac_word... " >&6; }
6843 if ${ac_cv_path_DATE+:} false; then :
6844   $as_echo_n "(cached) " >&6
6845 else
6846   case $DATE in
6847   [\\/]* | ?:[\\/]*)
6848   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6849   ;;
6850   *)
6851   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6852 for as_dir in $PATH
6853 do
6854   IFS=$as_save_IFS
6855   test -z "$as_dir" && as_dir=.
6856     for ac_exec_ext in '' $ac_executable_extensions; do
6857   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6858     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6859     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6860     break 2
6861   fi
6862 done
6863   done
6864 IFS=$as_save_IFS
6865 
6866   ;;
6867 esac
6868 fi
6869 DATE=$ac_cv_path_DATE
6870 if test -n "$DATE"; then
6871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6872 $as_echo "$DATE" >&6; }
6873 else
6874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6875 $as_echo "no" >&6; }
6876 fi
6877 
6878 
6879   test -n "$DATE" && break
6880 done
6881 
6882   else
6883     # The variable is set, but is it from the command line or the environment?
6884 
6885     # Try to remove the string !DATE! from our list.
6886     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/}
6887     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6888       # If it failed, the variable was not from the command line. Ignore it,
6889       # but warn the user (except for BASH, which is always set by the calling BASH).
6890       if test "xDATE" != xBASH; then
6891         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5
6892 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;}
6893       fi
6894       # Try to locate tool using the code snippet
6895       for ac_prog in date
6896 do
6897   # Extract the first word of "$ac_prog", so it can be a program name with args.
6898 set dummy $ac_prog; ac_word=$2
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6900 $as_echo_n "checking for $ac_word... " >&6; }
6901 if ${ac_cv_path_DATE+:} false; then :
6902   $as_echo_n "(cached) " >&6
6903 else
6904   case $DATE in
6905   [\\/]* | ?:[\\/]*)
6906   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6907   ;;
6908   *)
6909   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6910 for as_dir in $PATH
6911 do
6912   IFS=$as_save_IFS
6913   test -z "$as_dir" && as_dir=.
6914     for ac_exec_ext in '' $ac_executable_extensions; do
6915   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6916     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6917     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6918     break 2
6919   fi
6920 done
6921   done
6922 IFS=$as_save_IFS
6923 
6924   ;;
6925 esac
6926 fi
6927 DATE=$ac_cv_path_DATE
6928 if test -n "$DATE"; then
6929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6930 $as_echo "$DATE" >&6; }
6931 else
6932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6933 $as_echo "no" >&6; }
6934 fi
6935 
6936 
6937   test -n "$DATE" && break
6938 done
6939 
6940     else
6941       # If it succeeded, then it was overridden by the user. We will use it
6942       # for the tool.
6943 
6944       # First remove it from the list of overridden variables, so we can test
6945       # for unknown variables in the end.
6946       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6947 
6948       # Check if we try to supply an empty value
6949       if test "x$DATE" = x; then
6950         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DATE= (no value)" >&5
6951 $as_echo "$as_me: Setting user supplied tool DATE= (no value)" >&6;}
6952         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5
6953 $as_echo_n "checking for DATE... " >&6; }
6954         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6955 $as_echo "disabled" >&6; }
6956       else
6957         # Check if the provided tool contains a complete path.
6958         tool_specified="$DATE"
6959         tool_basename="${tool_specified##*/}"
6960         if test "x$tool_basename" = "x$tool_specified"; then
6961           # A command without a complete path is provided, search $PATH.
6962           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5
6963 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;}
6964           # Extract the first word of "$tool_basename", so it can be a program name with args.
6965 set dummy $tool_basename; ac_word=$2
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6967 $as_echo_n "checking for $ac_word... " >&6; }
6968 if ${ac_cv_path_DATE+:} false; then :
6969   $as_echo_n "(cached) " >&6
6970 else
6971   case $DATE in
6972   [\\/]* | ?:[\\/]*)
6973   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6974   ;;
6975   *)
6976   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6977 for as_dir in $PATH
6978 do
6979   IFS=$as_save_IFS
6980   test -z "$as_dir" && as_dir=.
6981     for ac_exec_ext in '' $ac_executable_extensions; do
6982   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6983     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6984     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6985     break 2
6986   fi
6987 done
6988   done
6989 IFS=$as_save_IFS
6990 
6991   ;;
6992 esac
6993 fi
6994 DATE=$ac_cv_path_DATE
6995 if test -n "$DATE"; then
6996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6997 $as_echo "$DATE" >&6; }
6998 else
6999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7000 $as_echo "no" >&6; }
7001 fi
7002 
7003 
7004           if test "x$DATE" = x; then
7005             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7006           fi
7007         else
7008           # Otherwise we believe it is a complete path. Use it as it is.
7009           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5
7010 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;}
7011           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5
7012 $as_echo_n "checking for DATE... " >&6; }
7013           if test ! -x "$tool_specified"; then
7014             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7015 $as_echo "not found" >&6; }
7016             as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5
7017           fi
7018           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7019 $as_echo "$tool_specified" >&6; }
7020         fi
7021       fi
7022     fi
7023 
7024   fi
7025 
7026 
7027 
7028   if test "x$DATE" = x; then
7029     as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5
7030   fi
7031 
7032 
7033 
7034 
7035 
7036   # Publish this variable in the help.
7037 
7038 
7039   if [ -z "${DIFF+x}" ]; then
7040     # The variable is not set by user, try to locate tool using the code snippet
7041     for ac_prog in gdiff diff
7042 do
7043   # Extract the first word of "$ac_prog", so it can be a program name with args.
7044 set dummy $ac_prog; ac_word=$2
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7046 $as_echo_n "checking for $ac_word... " >&6; }
7047 if ${ac_cv_path_DIFF+:} false; then :
7048   $as_echo_n "(cached) " >&6
7049 else
7050   case $DIFF in
7051   [\\/]* | ?:[\\/]*)
7052   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
7053   ;;
7054   *)
7055   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7056 for as_dir in $PATH
7057 do
7058   IFS=$as_save_IFS
7059   test -z "$as_dir" && as_dir=.
7060     for ac_exec_ext in '' $ac_executable_extensions; do
7061   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7062     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
7063     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7064     break 2
7065   fi
7066 done
7067   done
7068 IFS=$as_save_IFS
7069 
7070   ;;
7071 esac
7072 fi
7073 DIFF=$ac_cv_path_DIFF
7074 if test -n "$DIFF"; then
7075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
7076 $as_echo "$DIFF" >&6; }
7077 else
7078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7079 $as_echo "no" >&6; }
7080 fi
7081 
7082 
7083   test -n "$DIFF" && break
7084 done
7085 
7086   else
7087     # The variable is set, but is it from the command line or the environment?
7088 
7089     # Try to remove the string !DIFF! from our list.
7090     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/}
7091     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7092       # If it failed, the variable was not from the command line. Ignore it,
7093       # but warn the user (except for BASH, which is always set by the calling BASH).
7094       if test "xDIFF" != xBASH; then
7095         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5
7096 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;}
7097       fi
7098       # Try to locate tool using the code snippet
7099       for ac_prog in gdiff diff
7100 do
7101   # Extract the first word of "$ac_prog", so it can be a program name with args.
7102 set dummy $ac_prog; ac_word=$2
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7104 $as_echo_n "checking for $ac_word... " >&6; }
7105 if ${ac_cv_path_DIFF+:} false; then :
7106   $as_echo_n "(cached) " >&6
7107 else
7108   case $DIFF in
7109   [\\/]* | ?:[\\/]*)
7110   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
7111   ;;
7112   *)
7113   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7114 for as_dir in $PATH
7115 do
7116   IFS=$as_save_IFS
7117   test -z "$as_dir" && as_dir=.
7118     for ac_exec_ext in '' $ac_executable_extensions; do
7119   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7120     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
7121     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7122     break 2
7123   fi
7124 done
7125   done
7126 IFS=$as_save_IFS
7127 
7128   ;;
7129 esac
7130 fi
7131 DIFF=$ac_cv_path_DIFF
7132 if test -n "$DIFF"; then
7133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
7134 $as_echo "$DIFF" >&6; }
7135 else
7136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7137 $as_echo "no" >&6; }
7138 fi
7139 
7140 
7141   test -n "$DIFF" && break
7142 done
7143 
7144     else
7145       # If it succeeded, then it was overridden by the user. We will use it
7146       # for the tool.
7147 
7148       # First remove it from the list of overridden variables, so we can test
7149       # for unknown variables in the end.
7150       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7151 
7152       # Check if we try to supply an empty value
7153       if test "x$DIFF" = x; then
7154         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DIFF= (no value)" >&5
7155 $as_echo "$as_me: Setting user supplied tool DIFF= (no value)" >&6;}
7156         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5
7157 $as_echo_n "checking for DIFF... " >&6; }
7158         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7159 $as_echo "disabled" >&6; }
7160       else
7161         # Check if the provided tool contains a complete path.
7162         tool_specified="$DIFF"
7163         tool_basename="${tool_specified##*/}"
7164         if test "x$tool_basename" = "x$tool_specified"; then
7165           # A command without a complete path is provided, search $PATH.
7166           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5
7167 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;}
7168           # Extract the first word of "$tool_basename", so it can be a program name with args.
7169 set dummy $tool_basename; ac_word=$2
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7171 $as_echo_n "checking for $ac_word... " >&6; }
7172 if ${ac_cv_path_DIFF+:} false; then :
7173   $as_echo_n "(cached) " >&6
7174 else
7175   case $DIFF in
7176   [\\/]* | ?:[\\/]*)
7177   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
7178   ;;
7179   *)
7180   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7181 for as_dir in $PATH
7182 do
7183   IFS=$as_save_IFS
7184   test -z "$as_dir" && as_dir=.
7185     for ac_exec_ext in '' $ac_executable_extensions; do
7186   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7187     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
7188     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7189     break 2
7190   fi
7191 done
7192   done
7193 IFS=$as_save_IFS
7194 
7195   ;;
7196 esac
7197 fi
7198 DIFF=$ac_cv_path_DIFF
7199 if test -n "$DIFF"; then
7200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
7201 $as_echo "$DIFF" >&6; }
7202 else
7203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7204 $as_echo "no" >&6; }
7205 fi
7206 
7207 
7208           if test "x$DIFF" = x; then
7209             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7210           fi
7211         else
7212           # Otherwise we believe it is a complete path. Use it as it is.
7213           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5
7214 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;}
7215           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5
7216 $as_echo_n "checking for DIFF... " >&6; }
7217           if test ! -x "$tool_specified"; then
7218             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7219 $as_echo "not found" >&6; }
7220             as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5
7221           fi
7222           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7223 $as_echo "$tool_specified" >&6; }
7224         fi
7225       fi
7226     fi
7227 
7228   fi
7229 
7230 
7231 
7232   if test "x$DIFF" = x; then
7233     as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5
7234   fi
7235 
7236 
7237 
7238 
7239 
7240   # Publish this variable in the help.
7241 
7242 
7243   if [ -z "${DIRNAME+x}" ]; then
7244     # The variable is not set by user, try to locate tool using the code snippet
7245     for ac_prog in dirname
7246 do
7247   # Extract the first word of "$ac_prog", so it can be a program name with args.
7248 set dummy $ac_prog; ac_word=$2
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7250 $as_echo_n "checking for $ac_word... " >&6; }
7251 if ${ac_cv_path_DIRNAME+:} false; then :
7252   $as_echo_n "(cached) " >&6
7253 else
7254   case $DIRNAME in
7255   [\\/]* | ?:[\\/]*)
7256   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
7257   ;;
7258   *)
7259   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7260 for as_dir in $PATH
7261 do
7262   IFS=$as_save_IFS
7263   test -z "$as_dir" && as_dir=.
7264     for ac_exec_ext in '' $ac_executable_extensions; do
7265   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7266     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
7267     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7268     break 2
7269   fi
7270 done
7271   done
7272 IFS=$as_save_IFS
7273 
7274   ;;
7275 esac
7276 fi
7277 DIRNAME=$ac_cv_path_DIRNAME
7278 if test -n "$DIRNAME"; then
7279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
7280 $as_echo "$DIRNAME" >&6; }
7281 else
7282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7283 $as_echo "no" >&6; }
7284 fi
7285 
7286 
7287   test -n "$DIRNAME" && break
7288 done
7289 
7290   else
7291     # The variable is set, but is it from the command line or the environment?
7292 
7293     # Try to remove the string !DIRNAME! from our list.
7294     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/}
7295     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7296       # If it failed, the variable was not from the command line. Ignore it,
7297       # but warn the user (except for BASH, which is always set by the calling BASH).
7298       if test "xDIRNAME" != xBASH; then
7299         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5
7300 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;}
7301       fi
7302       # Try to locate tool using the code snippet
7303       for ac_prog in dirname
7304 do
7305   # Extract the first word of "$ac_prog", so it can be a program name with args.
7306 set dummy $ac_prog; ac_word=$2
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7308 $as_echo_n "checking for $ac_word... " >&6; }
7309 if ${ac_cv_path_DIRNAME+:} false; then :
7310   $as_echo_n "(cached) " >&6
7311 else
7312   case $DIRNAME in
7313   [\\/]* | ?:[\\/]*)
7314   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
7315   ;;
7316   *)
7317   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7318 for as_dir in $PATH
7319 do
7320   IFS=$as_save_IFS
7321   test -z "$as_dir" && as_dir=.
7322     for ac_exec_ext in '' $ac_executable_extensions; do
7323   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7324     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
7325     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7326     break 2
7327   fi
7328 done
7329   done
7330 IFS=$as_save_IFS
7331 
7332   ;;
7333 esac
7334 fi
7335 DIRNAME=$ac_cv_path_DIRNAME
7336 if test -n "$DIRNAME"; then
7337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
7338 $as_echo "$DIRNAME" >&6; }
7339 else
7340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7341 $as_echo "no" >&6; }
7342 fi
7343 
7344 
7345   test -n "$DIRNAME" && break
7346 done
7347 
7348     else
7349       # If it succeeded, then it was overridden by the user. We will use it
7350       # for the tool.
7351 
7352       # First remove it from the list of overridden variables, so we can test
7353       # for unknown variables in the end.
7354       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7355 
7356       # Check if we try to supply an empty value
7357       if test "x$DIRNAME" = x; then
7358         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DIRNAME= (no value)" >&5
7359 $as_echo "$as_me: Setting user supplied tool DIRNAME= (no value)" >&6;}
7360         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5
7361 $as_echo_n "checking for DIRNAME... " >&6; }
7362         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7363 $as_echo "disabled" >&6; }
7364       else
7365         # Check if the provided tool contains a complete path.
7366         tool_specified="$DIRNAME"
7367         tool_basename="${tool_specified##*/}"
7368         if test "x$tool_basename" = "x$tool_specified"; then
7369           # A command without a complete path is provided, search $PATH.
7370           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5
7371 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;}
7372           # Extract the first word of "$tool_basename", so it can be a program name with args.
7373 set dummy $tool_basename; ac_word=$2
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7375 $as_echo_n "checking for $ac_word... " >&6; }
7376 if ${ac_cv_path_DIRNAME+:} false; then :
7377   $as_echo_n "(cached) " >&6
7378 else
7379   case $DIRNAME in
7380   [\\/]* | ?:[\\/]*)
7381   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
7382   ;;
7383   *)
7384   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7385 for as_dir in $PATH
7386 do
7387   IFS=$as_save_IFS
7388   test -z "$as_dir" && as_dir=.
7389     for ac_exec_ext in '' $ac_executable_extensions; do
7390   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7391     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
7392     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7393     break 2
7394   fi
7395 done
7396   done
7397 IFS=$as_save_IFS
7398 
7399   ;;
7400 esac
7401 fi
7402 DIRNAME=$ac_cv_path_DIRNAME
7403 if test -n "$DIRNAME"; then
7404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
7405 $as_echo "$DIRNAME" >&6; }
7406 else
7407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7408 $as_echo "no" >&6; }
7409 fi
7410 
7411 
7412           if test "x$DIRNAME" = x; then
7413             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7414           fi
7415         else
7416           # Otherwise we believe it is a complete path. Use it as it is.
7417           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5
7418 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;}
7419           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5
7420 $as_echo_n "checking for DIRNAME... " >&6; }
7421           if test ! -x "$tool_specified"; then
7422             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7423 $as_echo "not found" >&6; }
7424             as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
7425           fi
7426           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7427 $as_echo "$tool_specified" >&6; }
7428         fi
7429       fi
7430     fi
7431 
7432   fi
7433 
7434 
7435 
7436   if test "x$DIRNAME" = x; then
7437     as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5
7438   fi
7439 
7440 
7441 
7442 
7443 
7444   # Publish this variable in the help.
7445 
7446 
7447   if [ -z "${ECHO+x}" ]; then
7448     # The variable is not set by user, try to locate tool using the code snippet
7449     for ac_prog in echo
7450 do
7451   # Extract the first word of "$ac_prog", so it can be a program name with args.
7452 set dummy $ac_prog; ac_word=$2
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7454 $as_echo_n "checking for $ac_word... " >&6; }
7455 if ${ac_cv_path_ECHO+:} false; then :
7456   $as_echo_n "(cached) " >&6
7457 else
7458   case $ECHO in
7459   [\\/]* | ?:[\\/]*)
7460   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
7461   ;;
7462   *)
7463   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7464 for as_dir in $PATH
7465 do
7466   IFS=$as_save_IFS
7467   test -z "$as_dir" && as_dir=.
7468     for ac_exec_ext in '' $ac_executable_extensions; do
7469   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7470     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
7471     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7472     break 2
7473   fi
7474 done
7475   done
7476 IFS=$as_save_IFS
7477 
7478   ;;
7479 esac
7480 fi
7481 ECHO=$ac_cv_path_ECHO
7482 if test -n "$ECHO"; then
7483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
7484 $as_echo "$ECHO" >&6; }
7485 else
7486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7487 $as_echo "no" >&6; }
7488 fi
7489 
7490 
7491   test -n "$ECHO" && break
7492 done
7493 
7494   else
7495     # The variable is set, but is it from the command line or the environment?
7496 
7497     # Try to remove the string !ECHO! from our list.
7498     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/}
7499     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7500       # If it failed, the variable was not from the command line. Ignore it,
7501       # but warn the user (except for BASH, which is always set by the calling BASH).
7502       if test "xECHO" != xBASH; then
7503         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5
7504 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;}
7505       fi
7506       # Try to locate tool using the code snippet
7507       for ac_prog in echo
7508 do
7509   # Extract the first word of "$ac_prog", so it can be a program name with args.
7510 set dummy $ac_prog; ac_word=$2
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7512 $as_echo_n "checking for $ac_word... " >&6; }
7513 if ${ac_cv_path_ECHO+:} false; then :
7514   $as_echo_n "(cached) " >&6
7515 else
7516   case $ECHO in
7517   [\\/]* | ?:[\\/]*)
7518   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
7519   ;;
7520   *)
7521   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7522 for as_dir in $PATH
7523 do
7524   IFS=$as_save_IFS
7525   test -z "$as_dir" && as_dir=.
7526     for ac_exec_ext in '' $ac_executable_extensions; do
7527   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7528     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
7529     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7530     break 2
7531   fi
7532 done
7533   done
7534 IFS=$as_save_IFS
7535 
7536   ;;
7537 esac
7538 fi
7539 ECHO=$ac_cv_path_ECHO
7540 if test -n "$ECHO"; then
7541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
7542 $as_echo "$ECHO" >&6; }
7543 else
7544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7545 $as_echo "no" >&6; }
7546 fi
7547 
7548 
7549   test -n "$ECHO" && break
7550 done
7551 
7552     else
7553       # If it succeeded, then it was overridden by the user. We will use it
7554       # for the tool.
7555 
7556       # First remove it from the list of overridden variables, so we can test
7557       # for unknown variables in the end.
7558       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7559 
7560       # Check if we try to supply an empty value
7561       if test "x$ECHO" = x; then
7562         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ECHO= (no value)" >&5
7563 $as_echo "$as_me: Setting user supplied tool ECHO= (no value)" >&6;}
7564         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5
7565 $as_echo_n "checking for ECHO... " >&6; }
7566         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7567 $as_echo "disabled" >&6; }
7568       else
7569         # Check if the provided tool contains a complete path.
7570         tool_specified="$ECHO"
7571         tool_basename="${tool_specified##*/}"
7572         if test "x$tool_basename" = "x$tool_specified"; then
7573           # A command without a complete path is provided, search $PATH.
7574           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5
7575 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;}
7576           # Extract the first word of "$tool_basename", so it can be a program name with args.
7577 set dummy $tool_basename; ac_word=$2
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7579 $as_echo_n "checking for $ac_word... " >&6; }
7580 if ${ac_cv_path_ECHO+:} false; then :
7581   $as_echo_n "(cached) " >&6
7582 else
7583   case $ECHO in
7584   [\\/]* | ?:[\\/]*)
7585   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
7586   ;;
7587   *)
7588   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7589 for as_dir in $PATH
7590 do
7591   IFS=$as_save_IFS
7592   test -z "$as_dir" && as_dir=.
7593     for ac_exec_ext in '' $ac_executable_extensions; do
7594   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7595     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
7596     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7597     break 2
7598   fi
7599 done
7600   done
7601 IFS=$as_save_IFS
7602 
7603   ;;
7604 esac
7605 fi
7606 ECHO=$ac_cv_path_ECHO
7607 if test -n "$ECHO"; then
7608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
7609 $as_echo "$ECHO" >&6; }
7610 else
7611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7612 $as_echo "no" >&6; }
7613 fi
7614 
7615 
7616           if test "x$ECHO" = x; then
7617             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7618           fi
7619         else
7620           # Otherwise we believe it is a complete path. Use it as it is.
7621           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5
7622 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;}
7623           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5
7624 $as_echo_n "checking for ECHO... " >&6; }
7625           if test ! -x "$tool_specified"; then
7626             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7627 $as_echo "not found" >&6; }
7628             as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5
7629           fi
7630           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7631 $as_echo "$tool_specified" >&6; }
7632         fi
7633       fi
7634     fi
7635 
7636   fi
7637 
7638 
7639 
7640   if test "x$ECHO" = x; then
7641     as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5
7642   fi
7643 
7644 
7645 
7646 
7647 
7648   # Publish this variable in the help.
7649 
7650 
7651   if [ -z "${EXPR+x}" ]; then
7652     # The variable is not set by user, try to locate tool using the code snippet
7653     for ac_prog in expr
7654 do
7655   # Extract the first word of "$ac_prog", so it can be a program name with args.
7656 set dummy $ac_prog; ac_word=$2
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7658 $as_echo_n "checking for $ac_word... " >&6; }
7659 if ${ac_cv_path_EXPR+:} false; then :
7660   $as_echo_n "(cached) " >&6
7661 else
7662   case $EXPR in
7663   [\\/]* | ?:[\\/]*)
7664   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
7665   ;;
7666   *)
7667   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7668 for as_dir in $PATH
7669 do
7670   IFS=$as_save_IFS
7671   test -z "$as_dir" && as_dir=.
7672     for ac_exec_ext in '' $ac_executable_extensions; do
7673   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7674     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
7675     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7676     break 2
7677   fi
7678 done
7679   done
7680 IFS=$as_save_IFS
7681 
7682   ;;
7683 esac
7684 fi
7685 EXPR=$ac_cv_path_EXPR
7686 if test -n "$EXPR"; then
7687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
7688 $as_echo "$EXPR" >&6; }
7689 else
7690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7691 $as_echo "no" >&6; }
7692 fi
7693 
7694 
7695   test -n "$EXPR" && break
7696 done
7697 
7698   else
7699     # The variable is set, but is it from the command line or the environment?
7700 
7701     # Try to remove the string !EXPR! from our list.
7702     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/}
7703     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7704       # If it failed, the variable was not from the command line. Ignore it,
7705       # but warn the user (except for BASH, which is always set by the calling BASH).
7706       if test "xEXPR" != xBASH; then
7707         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5
7708 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;}
7709       fi
7710       # Try to locate tool using the code snippet
7711       for ac_prog in expr
7712 do
7713   # Extract the first word of "$ac_prog", so it can be a program name with args.
7714 set dummy $ac_prog; ac_word=$2
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7716 $as_echo_n "checking for $ac_word... " >&6; }
7717 if ${ac_cv_path_EXPR+:} false; then :
7718   $as_echo_n "(cached) " >&6
7719 else
7720   case $EXPR in
7721   [\\/]* | ?:[\\/]*)
7722   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
7723   ;;
7724   *)
7725   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7726 for as_dir in $PATH
7727 do
7728   IFS=$as_save_IFS
7729   test -z "$as_dir" && as_dir=.
7730     for ac_exec_ext in '' $ac_executable_extensions; do
7731   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7732     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
7733     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7734     break 2
7735   fi
7736 done
7737   done
7738 IFS=$as_save_IFS
7739 
7740   ;;
7741 esac
7742 fi
7743 EXPR=$ac_cv_path_EXPR
7744 if test -n "$EXPR"; then
7745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
7746 $as_echo "$EXPR" >&6; }
7747 else
7748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7749 $as_echo "no" >&6; }
7750 fi
7751 
7752 
7753   test -n "$EXPR" && break
7754 done
7755 
7756     else
7757       # If it succeeded, then it was overridden by the user. We will use it
7758       # for the tool.
7759 
7760       # First remove it from the list of overridden variables, so we can test
7761       # for unknown variables in the end.
7762       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7763 
7764       # Check if we try to supply an empty value
7765       if test "x$EXPR" = x; then
7766         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool EXPR= (no value)" >&5
7767 $as_echo "$as_me: Setting user supplied tool EXPR= (no value)" >&6;}
7768         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5
7769 $as_echo_n "checking for EXPR... " >&6; }
7770         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7771 $as_echo "disabled" >&6; }
7772       else
7773         # Check if the provided tool contains a complete path.
7774         tool_specified="$EXPR"
7775         tool_basename="${tool_specified##*/}"
7776         if test "x$tool_basename" = "x$tool_specified"; then
7777           # A command without a complete path is provided, search $PATH.
7778           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5
7779 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;}
7780           # Extract the first word of "$tool_basename", so it can be a program name with args.
7781 set dummy $tool_basename; ac_word=$2
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7783 $as_echo_n "checking for $ac_word... " >&6; }
7784 if ${ac_cv_path_EXPR+:} false; then :
7785   $as_echo_n "(cached) " >&6
7786 else
7787   case $EXPR in
7788   [\\/]* | ?:[\\/]*)
7789   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
7790   ;;
7791   *)
7792   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7793 for as_dir in $PATH
7794 do
7795   IFS=$as_save_IFS
7796   test -z "$as_dir" && as_dir=.
7797     for ac_exec_ext in '' $ac_executable_extensions; do
7798   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7799     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
7800     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7801     break 2
7802   fi
7803 done
7804   done
7805 IFS=$as_save_IFS
7806 
7807   ;;
7808 esac
7809 fi
7810 EXPR=$ac_cv_path_EXPR
7811 if test -n "$EXPR"; then
7812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
7813 $as_echo "$EXPR" >&6; }
7814 else
7815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7816 $as_echo "no" >&6; }
7817 fi
7818 
7819 
7820           if test "x$EXPR" = x; then
7821             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7822           fi
7823         else
7824           # Otherwise we believe it is a complete path. Use it as it is.
7825           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5
7826 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;}
7827           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5
7828 $as_echo_n "checking for EXPR... " >&6; }
7829           if test ! -x "$tool_specified"; then
7830             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7831 $as_echo "not found" >&6; }
7832             as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5
7833           fi
7834           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7835 $as_echo "$tool_specified" >&6; }
7836         fi
7837       fi
7838     fi
7839 
7840   fi
7841 
7842 
7843 
7844   if test "x$EXPR" = x; then
7845     as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5
7846   fi
7847 
7848 
7849 
7850 
7851 
7852   # Publish this variable in the help.
7853 
7854 
7855   if [ -z "${FILE+x}" ]; then
7856     # The variable is not set by user, try to locate tool using the code snippet
7857     for ac_prog in file
7858 do
7859   # Extract the first word of "$ac_prog", so it can be a program name with args.
7860 set dummy $ac_prog; ac_word=$2
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7862 $as_echo_n "checking for $ac_word... " >&6; }
7863 if ${ac_cv_path_FILE+:} false; then :
7864   $as_echo_n "(cached) " >&6
7865 else
7866   case $FILE in
7867   [\\/]* | ?:[\\/]*)
7868   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7869   ;;
7870   *)
7871   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7872 for as_dir in $PATH
7873 do
7874   IFS=$as_save_IFS
7875   test -z "$as_dir" && as_dir=.
7876     for ac_exec_ext in '' $ac_executable_extensions; do
7877   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7878     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7879     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7880     break 2
7881   fi
7882 done
7883   done
7884 IFS=$as_save_IFS
7885 
7886   ;;
7887 esac
7888 fi
7889 FILE=$ac_cv_path_FILE
7890 if test -n "$FILE"; then
7891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7892 $as_echo "$FILE" >&6; }
7893 else
7894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7895 $as_echo "no" >&6; }
7896 fi
7897 
7898 
7899   test -n "$FILE" && break
7900 done
7901 
7902   else
7903     # The variable is set, but is it from the command line or the environment?
7904 
7905     # Try to remove the string !FILE! from our list.
7906     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/}
7907     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7908       # If it failed, the variable was not from the command line. Ignore it,
7909       # but warn the user (except for BASH, which is always set by the calling BASH).
7910       if test "xFILE" != xBASH; then
7911         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5
7912 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;}
7913       fi
7914       # Try to locate tool using the code snippet
7915       for ac_prog in file
7916 do
7917   # Extract the first word of "$ac_prog", so it can be a program name with args.
7918 set dummy $ac_prog; ac_word=$2
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7920 $as_echo_n "checking for $ac_word... " >&6; }
7921 if ${ac_cv_path_FILE+:} false; then :
7922   $as_echo_n "(cached) " >&6
7923 else
7924   case $FILE in
7925   [\\/]* | ?:[\\/]*)
7926   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7927   ;;
7928   *)
7929   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7930 for as_dir in $PATH
7931 do
7932   IFS=$as_save_IFS
7933   test -z "$as_dir" && as_dir=.
7934     for ac_exec_ext in '' $ac_executable_extensions; do
7935   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7936     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7937     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7938     break 2
7939   fi
7940 done
7941   done
7942 IFS=$as_save_IFS
7943 
7944   ;;
7945 esac
7946 fi
7947 FILE=$ac_cv_path_FILE
7948 if test -n "$FILE"; then
7949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7950 $as_echo "$FILE" >&6; }
7951 else
7952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7953 $as_echo "no" >&6; }
7954 fi
7955 
7956 
7957   test -n "$FILE" && break
7958 done
7959 
7960     else
7961       # If it succeeded, then it was overridden by the user. We will use it
7962       # for the tool.
7963 
7964       # First remove it from the list of overridden variables, so we can test
7965       # for unknown variables in the end.
7966       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7967 
7968       # Check if we try to supply an empty value
7969       if test "x$FILE" = x; then
7970         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FILE= (no value)" >&5
7971 $as_echo "$as_me: Setting user supplied tool FILE= (no value)" >&6;}
7972         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5
7973 $as_echo_n "checking for FILE... " >&6; }
7974         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7975 $as_echo "disabled" >&6; }
7976       else
7977         # Check if the provided tool contains a complete path.
7978         tool_specified="$FILE"
7979         tool_basename="${tool_specified##*/}"
7980         if test "x$tool_basename" = "x$tool_specified"; then
7981           # A command without a complete path is provided, search $PATH.
7982           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5
7983 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;}
7984           # Extract the first word of "$tool_basename", so it can be a program name with args.
7985 set dummy $tool_basename; ac_word=$2
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7987 $as_echo_n "checking for $ac_word... " >&6; }
7988 if ${ac_cv_path_FILE+:} false; then :
7989   $as_echo_n "(cached) " >&6
7990 else
7991   case $FILE in
7992   [\\/]* | ?:[\\/]*)
7993   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7994   ;;
7995   *)
7996   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7997 for as_dir in $PATH
7998 do
7999   IFS=$as_save_IFS
8000   test -z "$as_dir" && as_dir=.
8001     for ac_exec_ext in '' $ac_executable_extensions; do
8002   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8003     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
8004     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8005     break 2
8006   fi
8007 done
8008   done
8009 IFS=$as_save_IFS
8010 
8011   ;;
8012 esac
8013 fi
8014 FILE=$ac_cv_path_FILE
8015 if test -n "$FILE"; then
8016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
8017 $as_echo "$FILE" >&6; }
8018 else
8019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8020 $as_echo "no" >&6; }
8021 fi
8022 
8023 
8024           if test "x$FILE" = x; then
8025             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8026           fi
8027         else
8028           # Otherwise we believe it is a complete path. Use it as it is.
8029           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5
8030 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;}
8031           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5
8032 $as_echo_n "checking for FILE... " >&6; }
8033           if test ! -x "$tool_specified"; then
8034             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8035 $as_echo "not found" >&6; }
8036             as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5
8037           fi
8038           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8039 $as_echo "$tool_specified" >&6; }
8040         fi
8041       fi
8042     fi
8043 
8044   fi
8045 
8046 
8047 
8048   if test "x$FILE" = x; then
8049     as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5
8050   fi
8051 
8052 
8053 
8054 
8055 
8056   # Publish this variable in the help.
8057 
8058 
8059   if [ -z "${FIND+x}" ]; then
8060     # The variable is not set by user, try to locate tool using the code snippet
8061     for ac_prog in find
8062 do
8063   # Extract the first word of "$ac_prog", so it can be a program name with args.
8064 set dummy $ac_prog; ac_word=$2
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8066 $as_echo_n "checking for $ac_word... " >&6; }
8067 if ${ac_cv_path_FIND+:} false; then :
8068   $as_echo_n "(cached) " >&6
8069 else
8070   case $FIND in
8071   [\\/]* | ?:[\\/]*)
8072   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
8073   ;;
8074   *)
8075   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8076 for as_dir in $PATH
8077 do
8078   IFS=$as_save_IFS
8079   test -z "$as_dir" && as_dir=.
8080     for ac_exec_ext in '' $ac_executable_extensions; do
8081   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8082     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
8083     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8084     break 2
8085   fi
8086 done
8087   done
8088 IFS=$as_save_IFS
8089 
8090   ;;
8091 esac
8092 fi
8093 FIND=$ac_cv_path_FIND
8094 if test -n "$FIND"; then
8095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
8096 $as_echo "$FIND" >&6; }
8097 else
8098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8099 $as_echo "no" >&6; }
8100 fi
8101 
8102 
8103   test -n "$FIND" && break
8104 done
8105 
8106   else
8107     # The variable is set, but is it from the command line or the environment?
8108 
8109     # Try to remove the string !FIND! from our list.
8110     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/}
8111     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8112       # If it failed, the variable was not from the command line. Ignore it,
8113       # but warn the user (except for BASH, which is always set by the calling BASH).
8114       if test "xFIND" != xBASH; then
8115         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5
8116 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;}
8117       fi
8118       # Try to locate tool using the code snippet
8119       for ac_prog in find
8120 do
8121   # Extract the first word of "$ac_prog", so it can be a program name with args.
8122 set dummy $ac_prog; ac_word=$2
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8124 $as_echo_n "checking for $ac_word... " >&6; }
8125 if ${ac_cv_path_FIND+:} false; then :
8126   $as_echo_n "(cached) " >&6
8127 else
8128   case $FIND in
8129   [\\/]* | ?:[\\/]*)
8130   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
8131   ;;
8132   *)
8133   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8134 for as_dir in $PATH
8135 do
8136   IFS=$as_save_IFS
8137   test -z "$as_dir" && as_dir=.
8138     for ac_exec_ext in '' $ac_executable_extensions; do
8139   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8140     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
8141     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8142     break 2
8143   fi
8144 done
8145   done
8146 IFS=$as_save_IFS
8147 
8148   ;;
8149 esac
8150 fi
8151 FIND=$ac_cv_path_FIND
8152 if test -n "$FIND"; then
8153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
8154 $as_echo "$FIND" >&6; }
8155 else
8156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8157 $as_echo "no" >&6; }
8158 fi
8159 
8160 
8161   test -n "$FIND" && break
8162 done
8163 
8164     else
8165       # If it succeeded, then it was overridden by the user. We will use it
8166       # for the tool.
8167 
8168       # First remove it from the list of overridden variables, so we can test
8169       # for unknown variables in the end.
8170       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8171 
8172       # Check if we try to supply an empty value
8173       if test "x$FIND" = x; then
8174         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FIND= (no value)" >&5
8175 $as_echo "$as_me: Setting user supplied tool FIND= (no value)" >&6;}
8176         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5
8177 $as_echo_n "checking for FIND... " >&6; }
8178         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8179 $as_echo "disabled" >&6; }
8180       else
8181         # Check if the provided tool contains a complete path.
8182         tool_specified="$FIND"
8183         tool_basename="${tool_specified##*/}"
8184         if test "x$tool_basename" = "x$tool_specified"; then
8185           # A command without a complete path is provided, search $PATH.
8186           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5
8187 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;}
8188           # Extract the first word of "$tool_basename", so it can be a program name with args.
8189 set dummy $tool_basename; ac_word=$2
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8191 $as_echo_n "checking for $ac_word... " >&6; }
8192 if ${ac_cv_path_FIND+:} false; then :
8193   $as_echo_n "(cached) " >&6
8194 else
8195   case $FIND in
8196   [\\/]* | ?:[\\/]*)
8197   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
8198   ;;
8199   *)
8200   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8201 for as_dir in $PATH
8202 do
8203   IFS=$as_save_IFS
8204   test -z "$as_dir" && as_dir=.
8205     for ac_exec_ext in '' $ac_executable_extensions; do
8206   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8207     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
8208     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8209     break 2
8210   fi
8211 done
8212   done
8213 IFS=$as_save_IFS
8214 
8215   ;;
8216 esac
8217 fi
8218 FIND=$ac_cv_path_FIND
8219 if test -n "$FIND"; then
8220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
8221 $as_echo "$FIND" >&6; }
8222 else
8223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8224 $as_echo "no" >&6; }
8225 fi
8226 
8227 
8228           if test "x$FIND" = x; then
8229             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8230           fi
8231         else
8232           # Otherwise we believe it is a complete path. Use it as it is.
8233           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5
8234 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;}
8235           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5
8236 $as_echo_n "checking for FIND... " >&6; }
8237           if test ! -x "$tool_specified"; then
8238             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8239 $as_echo "not found" >&6; }
8240             as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5
8241           fi
8242           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8243 $as_echo "$tool_specified" >&6; }
8244         fi
8245       fi
8246     fi
8247 
8248   fi
8249 
8250 
8251 
8252   if test "x$FIND" = x; then
8253     as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5
8254   fi
8255 
8256 
8257 
8258 
8259 
8260   # Publish this variable in the help.
8261 
8262 
8263   if [ -z "${HEAD+x}" ]; then
8264     # The variable is not set by user, try to locate tool using the code snippet
8265     for ac_prog in head
8266 do
8267   # Extract the first word of "$ac_prog", so it can be a program name with args.
8268 set dummy $ac_prog; ac_word=$2
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8270 $as_echo_n "checking for $ac_word... " >&6; }
8271 if ${ac_cv_path_HEAD+:} false; then :
8272   $as_echo_n "(cached) " >&6
8273 else
8274   case $HEAD in
8275   [\\/]* | ?:[\\/]*)
8276   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
8277   ;;
8278   *)
8279   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8280 for as_dir in $PATH
8281 do
8282   IFS=$as_save_IFS
8283   test -z "$as_dir" && as_dir=.
8284     for ac_exec_ext in '' $ac_executable_extensions; do
8285   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8286     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
8287     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8288     break 2
8289   fi
8290 done
8291   done
8292 IFS=$as_save_IFS
8293 
8294   ;;
8295 esac
8296 fi
8297 HEAD=$ac_cv_path_HEAD
8298 if test -n "$HEAD"; then
8299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
8300 $as_echo "$HEAD" >&6; }
8301 else
8302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8303 $as_echo "no" >&6; }
8304 fi
8305 
8306 
8307   test -n "$HEAD" && break
8308 done
8309 
8310   else
8311     # The variable is set, but is it from the command line or the environment?
8312 
8313     # Try to remove the string !HEAD! from our list.
8314     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/}
8315     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8316       # If it failed, the variable was not from the command line. Ignore it,
8317       # but warn the user (except for BASH, which is always set by the calling BASH).
8318       if test "xHEAD" != xBASH; then
8319         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5
8320 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;}
8321       fi
8322       # Try to locate tool using the code snippet
8323       for ac_prog in head
8324 do
8325   # Extract the first word of "$ac_prog", so it can be a program name with args.
8326 set dummy $ac_prog; ac_word=$2
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8328 $as_echo_n "checking for $ac_word... " >&6; }
8329 if ${ac_cv_path_HEAD+:} false; then :
8330   $as_echo_n "(cached) " >&6
8331 else
8332   case $HEAD in
8333   [\\/]* | ?:[\\/]*)
8334   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
8335   ;;
8336   *)
8337   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8338 for as_dir in $PATH
8339 do
8340   IFS=$as_save_IFS
8341   test -z "$as_dir" && as_dir=.
8342     for ac_exec_ext in '' $ac_executable_extensions; do
8343   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8344     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
8345     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8346     break 2
8347   fi
8348 done
8349   done
8350 IFS=$as_save_IFS
8351 
8352   ;;
8353 esac
8354 fi
8355 HEAD=$ac_cv_path_HEAD
8356 if test -n "$HEAD"; then
8357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
8358 $as_echo "$HEAD" >&6; }
8359 else
8360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8361 $as_echo "no" >&6; }
8362 fi
8363 
8364 
8365   test -n "$HEAD" && break
8366 done
8367 
8368     else
8369       # If it succeeded, then it was overridden by the user. We will use it
8370       # for the tool.
8371 
8372       # First remove it from the list of overridden variables, so we can test
8373       # for unknown variables in the end.
8374       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8375 
8376       # Check if we try to supply an empty value
8377       if test "x$HEAD" = x; then
8378         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool HEAD= (no value)" >&5
8379 $as_echo "$as_me: Setting user supplied tool HEAD= (no value)" >&6;}
8380         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5
8381 $as_echo_n "checking for HEAD... " >&6; }
8382         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8383 $as_echo "disabled" >&6; }
8384       else
8385         # Check if the provided tool contains a complete path.
8386         tool_specified="$HEAD"
8387         tool_basename="${tool_specified##*/}"
8388         if test "x$tool_basename" = "x$tool_specified"; then
8389           # A command without a complete path is provided, search $PATH.
8390           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5
8391 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;}
8392           # Extract the first word of "$tool_basename", so it can be a program name with args.
8393 set dummy $tool_basename; ac_word=$2
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8395 $as_echo_n "checking for $ac_word... " >&6; }
8396 if ${ac_cv_path_HEAD+:} false; then :
8397   $as_echo_n "(cached) " >&6
8398 else
8399   case $HEAD in
8400   [\\/]* | ?:[\\/]*)
8401   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
8402   ;;
8403   *)
8404   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8405 for as_dir in $PATH
8406 do
8407   IFS=$as_save_IFS
8408   test -z "$as_dir" && as_dir=.
8409     for ac_exec_ext in '' $ac_executable_extensions; do
8410   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8411     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
8412     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8413     break 2
8414   fi
8415 done
8416   done
8417 IFS=$as_save_IFS
8418 
8419   ;;
8420 esac
8421 fi
8422 HEAD=$ac_cv_path_HEAD
8423 if test -n "$HEAD"; then
8424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
8425 $as_echo "$HEAD" >&6; }
8426 else
8427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8428 $as_echo "no" >&6; }
8429 fi
8430 
8431 
8432           if test "x$HEAD" = x; then
8433             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8434           fi
8435         else
8436           # Otherwise we believe it is a complete path. Use it as it is.
8437           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5
8438 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;}
8439           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5
8440 $as_echo_n "checking for HEAD... " >&6; }
8441           if test ! -x "$tool_specified"; then
8442             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8443 $as_echo "not found" >&6; }
8444             as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5
8445           fi
8446           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8447 $as_echo "$tool_specified" >&6; }
8448         fi
8449       fi
8450     fi
8451 
8452   fi
8453 
8454 
8455 
8456   if test "x$HEAD" = x; then
8457     as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5
8458   fi
8459 
8460 
8461 
8462 
8463 
8464   # Publish this variable in the help.
8465 
8466 
8467   if [ -z "${GUNZIP+x}" ]; then
8468     # The variable is not set by user, try to locate tool using the code snippet
8469     for ac_prog in gunzip
8470 do
8471   # Extract the first word of "$ac_prog", so it can be a program name with args.
8472 set dummy $ac_prog; ac_word=$2
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8474 $as_echo_n "checking for $ac_word... " >&6; }
8475 if ${ac_cv_path_GUNZIP+:} false; then :
8476   $as_echo_n "(cached) " >&6
8477 else
8478   case $GUNZIP in
8479   [\\/]* | ?:[\\/]*)
8480   ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path.
8481   ;;
8482   *)
8483   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8484 for as_dir in $PATH
8485 do
8486   IFS=$as_save_IFS
8487   test -z "$as_dir" && as_dir=.
8488     for ac_exec_ext in '' $ac_executable_extensions; do
8489   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8490     ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext"
8491     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8492     break 2
8493   fi
8494 done
8495   done
8496 IFS=$as_save_IFS
8497 
8498   ;;
8499 esac
8500 fi
8501 GUNZIP=$ac_cv_path_GUNZIP
8502 if test -n "$GUNZIP"; then
8503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5
8504 $as_echo "$GUNZIP" >&6; }
8505 else
8506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8507 $as_echo "no" >&6; }
8508 fi
8509 
8510 
8511   test -n "$GUNZIP" && break
8512 done
8513 
8514   else
8515     # The variable is set, but is it from the command line or the environment?
8516 
8517     # Try to remove the string !GUNZIP! from our list.
8518     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GUNZIP!/}
8519     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8520       # If it failed, the variable was not from the command line. Ignore it,
8521       # but warn the user (except for BASH, which is always set by the calling BASH).
8522       if test "xGUNZIP" != xBASH; then
8523         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GUNZIP from the environment. Use command line variables instead." >&5
8524 $as_echo "$as_me: WARNING: Ignoring value of GUNZIP from the environment. Use command line variables instead." >&2;}
8525       fi
8526       # Try to locate tool using the code snippet
8527       for ac_prog in gunzip
8528 do
8529   # Extract the first word of "$ac_prog", so it can be a program name with args.
8530 set dummy $ac_prog; ac_word=$2
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8532 $as_echo_n "checking for $ac_word... " >&6; }
8533 if ${ac_cv_path_GUNZIP+:} false; then :
8534   $as_echo_n "(cached) " >&6
8535 else
8536   case $GUNZIP in
8537   [\\/]* | ?:[\\/]*)
8538   ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path.
8539   ;;
8540   *)
8541   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8542 for as_dir in $PATH
8543 do
8544   IFS=$as_save_IFS
8545   test -z "$as_dir" && as_dir=.
8546     for ac_exec_ext in '' $ac_executable_extensions; do
8547   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8548     ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext"
8549     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8550     break 2
8551   fi
8552 done
8553   done
8554 IFS=$as_save_IFS
8555 
8556   ;;
8557 esac
8558 fi
8559 GUNZIP=$ac_cv_path_GUNZIP
8560 if test -n "$GUNZIP"; then
8561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5
8562 $as_echo "$GUNZIP" >&6; }
8563 else
8564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8565 $as_echo "no" >&6; }
8566 fi
8567 
8568 
8569   test -n "$GUNZIP" && break
8570 done
8571 
8572     else
8573       # If it succeeded, then it was overridden by the user. We will use it
8574       # for the tool.
8575 
8576       # First remove it from the list of overridden variables, so we can test
8577       # for unknown variables in the end.
8578       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8579 
8580       # Check if we try to supply an empty value
8581       if test "x$GUNZIP" = x; then
8582         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GUNZIP= (no value)" >&5
8583 $as_echo "$as_me: Setting user supplied tool GUNZIP= (no value)" >&6;}
8584         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUNZIP" >&5
8585 $as_echo_n "checking for GUNZIP... " >&6; }
8586         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8587 $as_echo "disabled" >&6; }
8588       else
8589         # Check if the provided tool contains a complete path.
8590         tool_specified="$GUNZIP"
8591         tool_basename="${tool_specified##*/}"
8592         if test "x$tool_basename" = "x$tool_specified"; then
8593           # A command without a complete path is provided, search $PATH.
8594           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GUNZIP=$tool_basename" >&5
8595 $as_echo "$as_me: Will search for user supplied tool GUNZIP=$tool_basename" >&6;}
8596           # Extract the first word of "$tool_basename", so it can be a program name with args.
8597 set dummy $tool_basename; ac_word=$2
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8599 $as_echo_n "checking for $ac_word... " >&6; }
8600 if ${ac_cv_path_GUNZIP+:} false; then :
8601   $as_echo_n "(cached) " >&6
8602 else
8603   case $GUNZIP in
8604   [\\/]* | ?:[\\/]*)
8605   ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path.
8606   ;;
8607   *)
8608   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8609 for as_dir in $PATH
8610 do
8611   IFS=$as_save_IFS
8612   test -z "$as_dir" && as_dir=.
8613     for ac_exec_ext in '' $ac_executable_extensions; do
8614   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8615     ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext"
8616     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8617     break 2
8618   fi
8619 done
8620   done
8621 IFS=$as_save_IFS
8622 
8623   ;;
8624 esac
8625 fi
8626 GUNZIP=$ac_cv_path_GUNZIP
8627 if test -n "$GUNZIP"; then
8628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5
8629 $as_echo "$GUNZIP" >&6; }
8630 else
8631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8632 $as_echo "no" >&6; }
8633 fi
8634 
8635 
8636           if test "x$GUNZIP" = x; then
8637             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8638           fi
8639         else
8640           # Otherwise we believe it is a complete path. Use it as it is.
8641           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GUNZIP=$tool_specified" >&5
8642 $as_echo "$as_me: Will use user supplied tool GUNZIP=$tool_specified" >&6;}
8643           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUNZIP" >&5
8644 $as_echo_n "checking for GUNZIP... " >&6; }
8645           if test ! -x "$tool_specified"; then
8646             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8647 $as_echo "not found" >&6; }
8648             as_fn_error $? "User supplied tool GUNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
8649           fi
8650           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8651 $as_echo "$tool_specified" >&6; }
8652         fi
8653       fi
8654     fi
8655 
8656   fi
8657 
8658 
8659 
8660   if test "x$GUNZIP" = x; then
8661     as_fn_error $? "Could not find required tool for GUNZIP" "$LINENO" 5
8662   fi
8663 
8664 
8665 
8666 
8667 
8668   # Publish this variable in the help.
8669 
8670 
8671   if [ -z "${GZIP+x}" ]; then
8672     # The variable is not set by user, try to locate tool using the code snippet
8673     for ac_prog in pigz gzip
8674 do
8675   # Extract the first word of "$ac_prog", so it can be a program name with args.
8676 set dummy $ac_prog; ac_word=$2
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8678 $as_echo_n "checking for $ac_word... " >&6; }
8679 if ${ac_cv_path_GZIP+:} false; then :
8680   $as_echo_n "(cached) " >&6
8681 else
8682   case $GZIP in
8683   [\\/]* | ?:[\\/]*)
8684   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8685   ;;
8686   *)
8687   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8688 for as_dir in $PATH
8689 do
8690   IFS=$as_save_IFS
8691   test -z "$as_dir" && as_dir=.
8692     for ac_exec_ext in '' $ac_executable_extensions; do
8693   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8694     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8695     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8696     break 2
8697   fi
8698 done
8699   done
8700 IFS=$as_save_IFS
8701 
8702   ;;
8703 esac
8704 fi
8705 GZIP=$ac_cv_path_GZIP
8706 if test -n "$GZIP"; then
8707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
8708 $as_echo "$GZIP" >&6; }
8709 else
8710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8711 $as_echo "no" >&6; }
8712 fi
8713 
8714 
8715   test -n "$GZIP" && break
8716 done
8717 
8718   else
8719     # The variable is set, but is it from the command line or the environment?
8720 
8721     # Try to remove the string !GZIP! from our list.
8722     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GZIP!/}
8723     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8724       # If it failed, the variable was not from the command line. Ignore it,
8725       # but warn the user (except for BASH, which is always set by the calling BASH).
8726       if test "xGZIP" != xBASH; then
8727         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GZIP from the environment. Use command line variables instead." >&5
8728 $as_echo "$as_me: WARNING: Ignoring value of GZIP from the environment. Use command line variables instead." >&2;}
8729       fi
8730       # Try to locate tool using the code snippet
8731       for ac_prog in pigz gzip
8732 do
8733   # Extract the first word of "$ac_prog", so it can be a program name with args.
8734 set dummy $ac_prog; ac_word=$2
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8736 $as_echo_n "checking for $ac_word... " >&6; }
8737 if ${ac_cv_path_GZIP+:} false; then :
8738   $as_echo_n "(cached) " >&6
8739 else
8740   case $GZIP in
8741   [\\/]* | ?:[\\/]*)
8742   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8743   ;;
8744   *)
8745   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8746 for as_dir in $PATH
8747 do
8748   IFS=$as_save_IFS
8749   test -z "$as_dir" && as_dir=.
8750     for ac_exec_ext in '' $ac_executable_extensions; do
8751   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8752     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8753     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8754     break 2
8755   fi
8756 done
8757   done
8758 IFS=$as_save_IFS
8759 
8760   ;;
8761 esac
8762 fi
8763 GZIP=$ac_cv_path_GZIP
8764 if test -n "$GZIP"; then
8765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
8766 $as_echo "$GZIP" >&6; }
8767 else
8768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8769 $as_echo "no" >&6; }
8770 fi
8771 
8772 
8773   test -n "$GZIP" && break
8774 done
8775 
8776     else
8777       # If it succeeded, then it was overridden by the user. We will use it
8778       # for the tool.
8779 
8780       # First remove it from the list of overridden variables, so we can test
8781       # for unknown variables in the end.
8782       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8783 
8784       # Check if we try to supply an empty value
8785       if test "x$GZIP" = x; then
8786         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GZIP= (no value)" >&5
8787 $as_echo "$as_me: Setting user supplied tool GZIP= (no value)" >&6;}
8788         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GZIP" >&5
8789 $as_echo_n "checking for GZIP... " >&6; }
8790         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8791 $as_echo "disabled" >&6; }
8792       else
8793         # Check if the provided tool contains a complete path.
8794         tool_specified="$GZIP"
8795         tool_basename="${tool_specified##*/}"
8796         if test "x$tool_basename" = "x$tool_specified"; then
8797           # A command without a complete path is provided, search $PATH.
8798           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GZIP=$tool_basename" >&5
8799 $as_echo "$as_me: Will search for user supplied tool GZIP=$tool_basename" >&6;}
8800           # Extract the first word of "$tool_basename", so it can be a program name with args.
8801 set dummy $tool_basename; ac_word=$2
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8803 $as_echo_n "checking for $ac_word... " >&6; }
8804 if ${ac_cv_path_GZIP+:} false; then :
8805   $as_echo_n "(cached) " >&6
8806 else
8807   case $GZIP in
8808   [\\/]* | ?:[\\/]*)
8809   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8810   ;;
8811   *)
8812   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8813 for as_dir in $PATH
8814 do
8815   IFS=$as_save_IFS
8816   test -z "$as_dir" && as_dir=.
8817     for ac_exec_ext in '' $ac_executable_extensions; do
8818   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8819     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8820     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8821     break 2
8822   fi
8823 done
8824   done
8825 IFS=$as_save_IFS
8826 
8827   ;;
8828 esac
8829 fi
8830 GZIP=$ac_cv_path_GZIP
8831 if test -n "$GZIP"; then
8832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
8833 $as_echo "$GZIP" >&6; }
8834 else
8835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8836 $as_echo "no" >&6; }
8837 fi
8838 
8839 
8840           if test "x$GZIP" = x; then
8841             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8842           fi
8843         else
8844           # Otherwise we believe it is a complete path. Use it as it is.
8845           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GZIP=$tool_specified" >&5
8846 $as_echo "$as_me: Will use user supplied tool GZIP=$tool_specified" >&6;}
8847           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GZIP" >&5
8848 $as_echo_n "checking for GZIP... " >&6; }
8849           if test ! -x "$tool_specified"; then
8850             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8851 $as_echo "not found" >&6; }
8852             as_fn_error $? "User supplied tool GZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
8853           fi
8854           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8855 $as_echo "$tool_specified" >&6; }
8856         fi
8857       fi
8858     fi
8859 
8860   fi
8861 
8862 
8863 
8864   if test "x$GZIP" = x; then
8865     as_fn_error $? "Could not find required tool for GZIP" "$LINENO" 5
8866   fi
8867 
8868 
8869 
8870 
8871 
8872   # Publish this variable in the help.
8873 
8874 
8875   if [ -z "${LN+x}" ]; then
8876     # The variable is not set by user, try to locate tool using the code snippet
8877     for ac_prog in ln
8878 do
8879   # Extract the first word of "$ac_prog", so it can be a program name with args.
8880 set dummy $ac_prog; ac_word=$2
8881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8882 $as_echo_n "checking for $ac_word... " >&6; }
8883 if ${ac_cv_path_LN+:} false; then :
8884   $as_echo_n "(cached) " >&6
8885 else
8886   case $LN in
8887   [\\/]* | ?:[\\/]*)
8888   ac_cv_path_LN="$LN" # Let the user override the test with a path.
8889   ;;
8890   *)
8891   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8892 for as_dir in $PATH
8893 do
8894   IFS=$as_save_IFS
8895   test -z "$as_dir" && as_dir=.
8896     for ac_exec_ext in '' $ac_executable_extensions; do
8897   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8898     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
8899     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8900     break 2
8901   fi
8902 done
8903   done
8904 IFS=$as_save_IFS
8905 
8906   ;;
8907 esac
8908 fi
8909 LN=$ac_cv_path_LN
8910 if test -n "$LN"; then
8911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
8912 $as_echo "$LN" >&6; }
8913 else
8914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8915 $as_echo "no" >&6; }
8916 fi
8917 
8918 
8919   test -n "$LN" && break
8920 done
8921 
8922   else
8923     # The variable is set, but is it from the command line or the environment?
8924 
8925     # Try to remove the string !LN! from our list.
8926     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/}
8927     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8928       # If it failed, the variable was not from the command line. Ignore it,
8929       # but warn the user (except for BASH, which is always set by the calling BASH).
8930       if test "xLN" != xBASH; then
8931         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5
8932 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;}
8933       fi
8934       # Try to locate tool using the code snippet
8935       for ac_prog in ln
8936 do
8937   # Extract the first word of "$ac_prog", so it can be a program name with args.
8938 set dummy $ac_prog; ac_word=$2
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8940 $as_echo_n "checking for $ac_word... " >&6; }
8941 if ${ac_cv_path_LN+:} false; then :
8942   $as_echo_n "(cached) " >&6
8943 else
8944   case $LN in
8945   [\\/]* | ?:[\\/]*)
8946   ac_cv_path_LN="$LN" # Let the user override the test with a path.
8947   ;;
8948   *)
8949   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8950 for as_dir in $PATH
8951 do
8952   IFS=$as_save_IFS
8953   test -z "$as_dir" && as_dir=.
8954     for ac_exec_ext in '' $ac_executable_extensions; do
8955   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8956     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
8957     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8958     break 2
8959   fi
8960 done
8961   done
8962 IFS=$as_save_IFS
8963 
8964   ;;
8965 esac
8966 fi
8967 LN=$ac_cv_path_LN
8968 if test -n "$LN"; then
8969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
8970 $as_echo "$LN" >&6; }
8971 else
8972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8973 $as_echo "no" >&6; }
8974 fi
8975 
8976 
8977   test -n "$LN" && break
8978 done
8979 
8980     else
8981       # If it succeeded, then it was overridden by the user. We will use it
8982       # for the tool.
8983 
8984       # First remove it from the list of overridden variables, so we can test
8985       # for unknown variables in the end.
8986       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8987 
8988       # Check if we try to supply an empty value
8989       if test "x$LN" = x; then
8990         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LN= (no value)" >&5
8991 $as_echo "$as_me: Setting user supplied tool LN= (no value)" >&6;}
8992         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5
8993 $as_echo_n "checking for LN... " >&6; }
8994         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8995 $as_echo "disabled" >&6; }
8996       else
8997         # Check if the provided tool contains a complete path.
8998         tool_specified="$LN"
8999         tool_basename="${tool_specified##*/}"
9000         if test "x$tool_basename" = "x$tool_specified"; then
9001           # A command without a complete path is provided, search $PATH.
9002           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5
9003 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;}
9004           # Extract the first word of "$tool_basename", so it can be a program name with args.
9005 set dummy $tool_basename; ac_word=$2
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9007 $as_echo_n "checking for $ac_word... " >&6; }
9008 if ${ac_cv_path_LN+:} false; then :
9009   $as_echo_n "(cached) " >&6
9010 else
9011   case $LN in
9012   [\\/]* | ?:[\\/]*)
9013   ac_cv_path_LN="$LN" # Let the user override the test with a path.
9014   ;;
9015   *)
9016   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9017 for as_dir in $PATH
9018 do
9019   IFS=$as_save_IFS
9020   test -z "$as_dir" && as_dir=.
9021     for ac_exec_ext in '' $ac_executable_extensions; do
9022   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9023     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
9024     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9025     break 2
9026   fi
9027 done
9028   done
9029 IFS=$as_save_IFS
9030 
9031   ;;
9032 esac
9033 fi
9034 LN=$ac_cv_path_LN
9035 if test -n "$LN"; then
9036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
9037 $as_echo "$LN" >&6; }
9038 else
9039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9040 $as_echo "no" >&6; }
9041 fi
9042 
9043 
9044           if test "x$LN" = x; then
9045             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9046           fi
9047         else
9048           # Otherwise we believe it is a complete path. Use it as it is.
9049           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5
9050 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;}
9051           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5
9052 $as_echo_n "checking for LN... " >&6; }
9053           if test ! -x "$tool_specified"; then
9054             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9055 $as_echo "not found" >&6; }
9056             as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5
9057           fi
9058           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9059 $as_echo "$tool_specified" >&6; }
9060         fi
9061       fi
9062     fi
9063 
9064   fi
9065 
9066 
9067 
9068   if test "x$LN" = x; then
9069     as_fn_error $? "Could not find required tool for LN" "$LINENO" 5
9070   fi
9071 
9072 
9073 
9074 
9075 
9076   # Publish this variable in the help.
9077 
9078 
9079   if [ -z "${LS+x}" ]; then
9080     # The variable is not set by user, try to locate tool using the code snippet
9081     for ac_prog in ls
9082 do
9083   # Extract the first word of "$ac_prog", so it can be a program name with args.
9084 set dummy $ac_prog; ac_word=$2
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9086 $as_echo_n "checking for $ac_word... " >&6; }
9087 if ${ac_cv_path_LS+:} false; then :
9088   $as_echo_n "(cached) " >&6
9089 else
9090   case $LS in
9091   [\\/]* | ?:[\\/]*)
9092   ac_cv_path_LS="$LS" # Let the user override the test with a path.
9093   ;;
9094   *)
9095   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9096 for as_dir in $PATH
9097 do
9098   IFS=$as_save_IFS
9099   test -z "$as_dir" && as_dir=.
9100     for ac_exec_ext in '' $ac_executable_extensions; do
9101   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9102     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
9103     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9104     break 2
9105   fi
9106 done
9107   done
9108 IFS=$as_save_IFS
9109 
9110   ;;
9111 esac
9112 fi
9113 LS=$ac_cv_path_LS
9114 if test -n "$LS"; then
9115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
9116 $as_echo "$LS" >&6; }
9117 else
9118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9119 $as_echo "no" >&6; }
9120 fi
9121 
9122 
9123   test -n "$LS" && break
9124 done
9125 
9126   else
9127     # The variable is set, but is it from the command line or the environment?
9128 
9129     # Try to remove the string !LS! from our list.
9130     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/}
9131     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9132       # If it failed, the variable was not from the command line. Ignore it,
9133       # but warn the user (except for BASH, which is always set by the calling BASH).
9134       if test "xLS" != xBASH; then
9135         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5
9136 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;}
9137       fi
9138       # Try to locate tool using the code snippet
9139       for ac_prog in ls
9140 do
9141   # Extract the first word of "$ac_prog", so it can be a program name with args.
9142 set dummy $ac_prog; ac_word=$2
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9144 $as_echo_n "checking for $ac_word... " >&6; }
9145 if ${ac_cv_path_LS+:} false; then :
9146   $as_echo_n "(cached) " >&6
9147 else
9148   case $LS in
9149   [\\/]* | ?:[\\/]*)
9150   ac_cv_path_LS="$LS" # Let the user override the test with a path.
9151   ;;
9152   *)
9153   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9154 for as_dir in $PATH
9155 do
9156   IFS=$as_save_IFS
9157   test -z "$as_dir" && as_dir=.
9158     for ac_exec_ext in '' $ac_executable_extensions; do
9159   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9160     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
9161     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9162     break 2
9163   fi
9164 done
9165   done
9166 IFS=$as_save_IFS
9167 
9168   ;;
9169 esac
9170 fi
9171 LS=$ac_cv_path_LS
9172 if test -n "$LS"; then
9173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
9174 $as_echo "$LS" >&6; }
9175 else
9176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9177 $as_echo "no" >&6; }
9178 fi
9179 
9180 
9181   test -n "$LS" && break
9182 done
9183 
9184     else
9185       # If it succeeded, then it was overridden by the user. We will use it
9186       # for the tool.
9187 
9188       # First remove it from the list of overridden variables, so we can test
9189       # for unknown variables in the end.
9190       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9191 
9192       # Check if we try to supply an empty value
9193       if test "x$LS" = x; then
9194         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LS= (no value)" >&5
9195 $as_echo "$as_me: Setting user supplied tool LS= (no value)" >&6;}
9196         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5
9197 $as_echo_n "checking for LS... " >&6; }
9198         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9199 $as_echo "disabled" >&6; }
9200       else
9201         # Check if the provided tool contains a complete path.
9202         tool_specified="$LS"
9203         tool_basename="${tool_specified##*/}"
9204         if test "x$tool_basename" = "x$tool_specified"; then
9205           # A command without a complete path is provided, search $PATH.
9206           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5
9207 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;}
9208           # Extract the first word of "$tool_basename", so it can be a program name with args.
9209 set dummy $tool_basename; ac_word=$2
9210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9211 $as_echo_n "checking for $ac_word... " >&6; }
9212 if ${ac_cv_path_LS+:} false; then :
9213   $as_echo_n "(cached) " >&6
9214 else
9215   case $LS in
9216   [\\/]* | ?:[\\/]*)
9217   ac_cv_path_LS="$LS" # Let the user override the test with a path.
9218   ;;
9219   *)
9220   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9221 for as_dir in $PATH
9222 do
9223   IFS=$as_save_IFS
9224   test -z "$as_dir" && as_dir=.
9225     for ac_exec_ext in '' $ac_executable_extensions; do
9226   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9227     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
9228     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9229     break 2
9230   fi
9231 done
9232   done
9233 IFS=$as_save_IFS
9234 
9235   ;;
9236 esac
9237 fi
9238 LS=$ac_cv_path_LS
9239 if test -n "$LS"; then
9240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
9241 $as_echo "$LS" >&6; }
9242 else
9243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9244 $as_echo "no" >&6; }
9245 fi
9246 
9247 
9248           if test "x$LS" = x; then
9249             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9250           fi
9251         else
9252           # Otherwise we believe it is a complete path. Use it as it is.
9253           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5
9254 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;}
9255           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5
9256 $as_echo_n "checking for LS... " >&6; }
9257           if test ! -x "$tool_specified"; then
9258             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9259 $as_echo "not found" >&6; }
9260             as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5
9261           fi
9262           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9263 $as_echo "$tool_specified" >&6; }
9264         fi
9265       fi
9266     fi
9267 
9268   fi
9269 
9270 
9271 
9272   if test "x$LS" = x; then
9273     as_fn_error $? "Could not find required tool for LS" "$LINENO" 5
9274   fi
9275 
9276 
9277 
9278 
9279 
9280   # Publish this variable in the help.
9281 
9282 
9283   if [ -z "${MKDIR+x}" ]; then
9284     # The variable is not set by user, try to locate tool using the code snippet
9285     for ac_prog in mkdir
9286 do
9287   # Extract the first word of "$ac_prog", so it can be a program name with args.
9288 set dummy $ac_prog; ac_word=$2
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9290 $as_echo_n "checking for $ac_word... " >&6; }
9291 if ${ac_cv_path_MKDIR+:} false; then :
9292   $as_echo_n "(cached) " >&6
9293 else
9294   case $MKDIR in
9295   [\\/]* | ?:[\\/]*)
9296   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
9297   ;;
9298   *)
9299   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9300 for as_dir in $PATH
9301 do
9302   IFS=$as_save_IFS
9303   test -z "$as_dir" && as_dir=.
9304     for ac_exec_ext in '' $ac_executable_extensions; do
9305   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9306     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
9307     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9308     break 2
9309   fi
9310 done
9311   done
9312 IFS=$as_save_IFS
9313 
9314   ;;
9315 esac
9316 fi
9317 MKDIR=$ac_cv_path_MKDIR
9318 if test -n "$MKDIR"; then
9319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
9320 $as_echo "$MKDIR" >&6; }
9321 else
9322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9323 $as_echo "no" >&6; }
9324 fi
9325 
9326 
9327   test -n "$MKDIR" && break
9328 done
9329 
9330   else
9331     # The variable is set, but is it from the command line or the environment?
9332 
9333     # Try to remove the string !MKDIR! from our list.
9334     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/}
9335     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9336       # If it failed, the variable was not from the command line. Ignore it,
9337       # but warn the user (except for BASH, which is always set by the calling BASH).
9338       if test "xMKDIR" != xBASH; then
9339         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5
9340 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;}
9341       fi
9342       # Try to locate tool using the code snippet
9343       for ac_prog in mkdir
9344 do
9345   # Extract the first word of "$ac_prog", so it can be a program name with args.
9346 set dummy $ac_prog; ac_word=$2
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9348 $as_echo_n "checking for $ac_word... " >&6; }
9349 if ${ac_cv_path_MKDIR+:} false; then :
9350   $as_echo_n "(cached) " >&6
9351 else
9352   case $MKDIR in
9353   [\\/]* | ?:[\\/]*)
9354   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
9355   ;;
9356   *)
9357   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9358 for as_dir in $PATH
9359 do
9360   IFS=$as_save_IFS
9361   test -z "$as_dir" && as_dir=.
9362     for ac_exec_ext in '' $ac_executable_extensions; do
9363   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9364     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
9365     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9366     break 2
9367   fi
9368 done
9369   done
9370 IFS=$as_save_IFS
9371 
9372   ;;
9373 esac
9374 fi
9375 MKDIR=$ac_cv_path_MKDIR
9376 if test -n "$MKDIR"; then
9377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
9378 $as_echo "$MKDIR" >&6; }
9379 else
9380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9381 $as_echo "no" >&6; }
9382 fi
9383 
9384 
9385   test -n "$MKDIR" && break
9386 done
9387 
9388     else
9389       # If it succeeded, then it was overridden by the user. We will use it
9390       # for the tool.
9391 
9392       # First remove it from the list of overridden variables, so we can test
9393       # for unknown variables in the end.
9394       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9395 
9396       # Check if we try to supply an empty value
9397       if test "x$MKDIR" = x; then
9398         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MKDIR= (no value)" >&5
9399 $as_echo "$as_me: Setting user supplied tool MKDIR= (no value)" >&6;}
9400         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5
9401 $as_echo_n "checking for MKDIR... " >&6; }
9402         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9403 $as_echo "disabled" >&6; }
9404       else
9405         # Check if the provided tool contains a complete path.
9406         tool_specified="$MKDIR"
9407         tool_basename="${tool_specified##*/}"
9408         if test "x$tool_basename" = "x$tool_specified"; then
9409           # A command without a complete path is provided, search $PATH.
9410           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5
9411 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;}
9412           # Extract the first word of "$tool_basename", so it can be a program name with args.
9413 set dummy $tool_basename; ac_word=$2
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9415 $as_echo_n "checking for $ac_word... " >&6; }
9416 if ${ac_cv_path_MKDIR+:} false; then :
9417   $as_echo_n "(cached) " >&6
9418 else
9419   case $MKDIR in
9420   [\\/]* | ?:[\\/]*)
9421   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
9422   ;;
9423   *)
9424   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9425 for as_dir in $PATH
9426 do
9427   IFS=$as_save_IFS
9428   test -z "$as_dir" && as_dir=.
9429     for ac_exec_ext in '' $ac_executable_extensions; do
9430   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9431     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
9432     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9433     break 2
9434   fi
9435 done
9436   done
9437 IFS=$as_save_IFS
9438 
9439   ;;
9440 esac
9441 fi
9442 MKDIR=$ac_cv_path_MKDIR
9443 if test -n "$MKDIR"; then
9444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
9445 $as_echo "$MKDIR" >&6; }
9446 else
9447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9448 $as_echo "no" >&6; }
9449 fi
9450 
9451 
9452           if test "x$MKDIR" = x; then
9453             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9454           fi
9455         else
9456           # Otherwise we believe it is a complete path. Use it as it is.
9457           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5
9458 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;}
9459           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5
9460 $as_echo_n "checking for MKDIR... " >&6; }
9461           if test ! -x "$tool_specified"; then
9462             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9463 $as_echo "not found" >&6; }
9464             as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5
9465           fi
9466           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9467 $as_echo "$tool_specified" >&6; }
9468         fi
9469       fi
9470     fi
9471 
9472   fi
9473 
9474 
9475 
9476   if test "x$MKDIR" = x; then
9477     as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5
9478   fi
9479 
9480 
9481 
9482 
9483 
9484   # Publish this variable in the help.
9485 
9486 
9487   if [ -z "${MKTEMP+x}" ]; then
9488     # The variable is not set by user, try to locate tool using the code snippet
9489     for ac_prog in mktemp
9490 do
9491   # Extract the first word of "$ac_prog", so it can be a program name with args.
9492 set dummy $ac_prog; ac_word=$2
9493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9494 $as_echo_n "checking for $ac_word... " >&6; }
9495 if ${ac_cv_path_MKTEMP+:} false; then :
9496   $as_echo_n "(cached) " >&6
9497 else
9498   case $MKTEMP in
9499   [\\/]* | ?:[\\/]*)
9500   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
9501   ;;
9502   *)
9503   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9504 for as_dir in $PATH
9505 do
9506   IFS=$as_save_IFS
9507   test -z "$as_dir" && as_dir=.
9508     for ac_exec_ext in '' $ac_executable_extensions; do
9509   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9510     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
9511     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9512     break 2
9513   fi
9514 done
9515   done
9516 IFS=$as_save_IFS
9517 
9518   ;;
9519 esac
9520 fi
9521 MKTEMP=$ac_cv_path_MKTEMP
9522 if test -n "$MKTEMP"; then
9523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
9524 $as_echo "$MKTEMP" >&6; }
9525 else
9526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9527 $as_echo "no" >&6; }
9528 fi
9529 
9530 
9531   test -n "$MKTEMP" && break
9532 done
9533 
9534   else
9535     # The variable is set, but is it from the command line or the environment?
9536 
9537     # Try to remove the string !MKTEMP! from our list.
9538     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/}
9539     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9540       # If it failed, the variable was not from the command line. Ignore it,
9541       # but warn the user (except for BASH, which is always set by the calling BASH).
9542       if test "xMKTEMP" != xBASH; then
9543         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5
9544 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;}
9545       fi
9546       # Try to locate tool using the code snippet
9547       for ac_prog in mktemp
9548 do
9549   # Extract the first word of "$ac_prog", so it can be a program name with args.
9550 set dummy $ac_prog; ac_word=$2
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9552 $as_echo_n "checking for $ac_word... " >&6; }
9553 if ${ac_cv_path_MKTEMP+:} false; then :
9554   $as_echo_n "(cached) " >&6
9555 else
9556   case $MKTEMP in
9557   [\\/]* | ?:[\\/]*)
9558   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
9559   ;;
9560   *)
9561   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9562 for as_dir in $PATH
9563 do
9564   IFS=$as_save_IFS
9565   test -z "$as_dir" && as_dir=.
9566     for ac_exec_ext in '' $ac_executable_extensions; do
9567   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9568     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
9569     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9570     break 2
9571   fi
9572 done
9573   done
9574 IFS=$as_save_IFS
9575 
9576   ;;
9577 esac
9578 fi
9579 MKTEMP=$ac_cv_path_MKTEMP
9580 if test -n "$MKTEMP"; then
9581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
9582 $as_echo "$MKTEMP" >&6; }
9583 else
9584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9585 $as_echo "no" >&6; }
9586 fi
9587 
9588 
9589   test -n "$MKTEMP" && break
9590 done
9591 
9592     else
9593       # If it succeeded, then it was overridden by the user. We will use it
9594       # for the tool.
9595 
9596       # First remove it from the list of overridden variables, so we can test
9597       # for unknown variables in the end.
9598       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9599 
9600       # Check if we try to supply an empty value
9601       if test "x$MKTEMP" = x; then
9602         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MKTEMP= (no value)" >&5
9603 $as_echo "$as_me: Setting user supplied tool MKTEMP= (no value)" >&6;}
9604         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5
9605 $as_echo_n "checking for MKTEMP... " >&6; }
9606         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9607 $as_echo "disabled" >&6; }
9608       else
9609         # Check if the provided tool contains a complete path.
9610         tool_specified="$MKTEMP"
9611         tool_basename="${tool_specified##*/}"
9612         if test "x$tool_basename" = "x$tool_specified"; then
9613           # A command without a complete path is provided, search $PATH.
9614           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5
9615 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;}
9616           # Extract the first word of "$tool_basename", so it can be a program name with args.
9617 set dummy $tool_basename; ac_word=$2
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9619 $as_echo_n "checking for $ac_word... " >&6; }
9620 if ${ac_cv_path_MKTEMP+:} false; then :
9621   $as_echo_n "(cached) " >&6
9622 else
9623   case $MKTEMP in
9624   [\\/]* | ?:[\\/]*)
9625   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
9626   ;;
9627   *)
9628   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9629 for as_dir in $PATH
9630 do
9631   IFS=$as_save_IFS
9632   test -z "$as_dir" && as_dir=.
9633     for ac_exec_ext in '' $ac_executable_extensions; do
9634   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9635     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
9636     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9637     break 2
9638   fi
9639 done
9640   done
9641 IFS=$as_save_IFS
9642 
9643   ;;
9644 esac
9645 fi
9646 MKTEMP=$ac_cv_path_MKTEMP
9647 if test -n "$MKTEMP"; then
9648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
9649 $as_echo "$MKTEMP" >&6; }
9650 else
9651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9652 $as_echo "no" >&6; }
9653 fi
9654 
9655 
9656           if test "x$MKTEMP" = x; then
9657             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9658           fi
9659         else
9660           # Otherwise we believe it is a complete path. Use it as it is.
9661           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5
9662 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;}
9663           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5
9664 $as_echo_n "checking for MKTEMP... " >&6; }
9665           if test ! -x "$tool_specified"; then
9666             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9667 $as_echo "not found" >&6; }
9668             as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5
9669           fi
9670           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9671 $as_echo "$tool_specified" >&6; }
9672         fi
9673       fi
9674     fi
9675 
9676   fi
9677 
9678 
9679 
9680   if test "x$MKTEMP" = x; then
9681     as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5
9682   fi
9683 
9684 
9685 
9686 
9687 
9688   # Publish this variable in the help.
9689 
9690 
9691   if [ -z "${MV+x}" ]; then
9692     # The variable is not set by user, try to locate tool using the code snippet
9693     for ac_prog in mv
9694 do
9695   # Extract the first word of "$ac_prog", so it can be a program name with args.
9696 set dummy $ac_prog; ac_word=$2
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9698 $as_echo_n "checking for $ac_word... " >&6; }
9699 if ${ac_cv_path_MV+:} false; then :
9700   $as_echo_n "(cached) " >&6
9701 else
9702   case $MV in
9703   [\\/]* | ?:[\\/]*)
9704   ac_cv_path_MV="$MV" # Let the user override the test with a path.
9705   ;;
9706   *)
9707   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9708 for as_dir in $PATH
9709 do
9710   IFS=$as_save_IFS
9711   test -z "$as_dir" && as_dir=.
9712     for ac_exec_ext in '' $ac_executable_extensions; do
9713   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9714     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9715     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9716     break 2
9717   fi
9718 done
9719   done
9720 IFS=$as_save_IFS
9721 
9722   ;;
9723 esac
9724 fi
9725 MV=$ac_cv_path_MV
9726 if test -n "$MV"; then
9727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9728 $as_echo "$MV" >&6; }
9729 else
9730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9731 $as_echo "no" >&6; }
9732 fi
9733 
9734 
9735   test -n "$MV" && break
9736 done
9737 
9738   else
9739     # The variable is set, but is it from the command line or the environment?
9740 
9741     # Try to remove the string !MV! from our list.
9742     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/}
9743     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9744       # If it failed, the variable was not from the command line. Ignore it,
9745       # but warn the user (except for BASH, which is always set by the calling BASH).
9746       if test "xMV" != xBASH; then
9747         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5
9748 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;}
9749       fi
9750       # Try to locate tool using the code snippet
9751       for ac_prog in mv
9752 do
9753   # Extract the first word of "$ac_prog", so it can be a program name with args.
9754 set dummy $ac_prog; ac_word=$2
9755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9756 $as_echo_n "checking for $ac_word... " >&6; }
9757 if ${ac_cv_path_MV+:} false; then :
9758   $as_echo_n "(cached) " >&6
9759 else
9760   case $MV in
9761   [\\/]* | ?:[\\/]*)
9762   ac_cv_path_MV="$MV" # Let the user override the test with a path.
9763   ;;
9764   *)
9765   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9766 for as_dir in $PATH
9767 do
9768   IFS=$as_save_IFS
9769   test -z "$as_dir" && as_dir=.
9770     for ac_exec_ext in '' $ac_executable_extensions; do
9771   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9772     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9773     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9774     break 2
9775   fi
9776 done
9777   done
9778 IFS=$as_save_IFS
9779 
9780   ;;
9781 esac
9782 fi
9783 MV=$ac_cv_path_MV
9784 if test -n "$MV"; then
9785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9786 $as_echo "$MV" >&6; }
9787 else
9788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9789 $as_echo "no" >&6; }
9790 fi
9791 
9792 
9793   test -n "$MV" && break
9794 done
9795 
9796     else
9797       # If it succeeded, then it was overridden by the user. We will use it
9798       # for the tool.
9799 
9800       # First remove it from the list of overridden variables, so we can test
9801       # for unknown variables in the end.
9802       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9803 
9804       # Check if we try to supply an empty value
9805       if test "x$MV" = x; then
9806         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MV= (no value)" >&5
9807 $as_echo "$as_me: Setting user supplied tool MV= (no value)" >&6;}
9808         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5
9809 $as_echo_n "checking for MV... " >&6; }
9810         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9811 $as_echo "disabled" >&6; }
9812       else
9813         # Check if the provided tool contains a complete path.
9814         tool_specified="$MV"
9815         tool_basename="${tool_specified##*/}"
9816         if test "x$tool_basename" = "x$tool_specified"; then
9817           # A command without a complete path is provided, search $PATH.
9818           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5
9819 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;}
9820           # Extract the first word of "$tool_basename", so it can be a program name with args.
9821 set dummy $tool_basename; ac_word=$2
9822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9823 $as_echo_n "checking for $ac_word... " >&6; }
9824 if ${ac_cv_path_MV+:} false; then :
9825   $as_echo_n "(cached) " >&6
9826 else
9827   case $MV in
9828   [\\/]* | ?:[\\/]*)
9829   ac_cv_path_MV="$MV" # Let the user override the test with a path.
9830   ;;
9831   *)
9832   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9833 for as_dir in $PATH
9834 do
9835   IFS=$as_save_IFS
9836   test -z "$as_dir" && as_dir=.
9837     for ac_exec_ext in '' $ac_executable_extensions; do
9838   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9839     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9840     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9841     break 2
9842   fi
9843 done
9844   done
9845 IFS=$as_save_IFS
9846 
9847   ;;
9848 esac
9849 fi
9850 MV=$ac_cv_path_MV
9851 if test -n "$MV"; then
9852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9853 $as_echo "$MV" >&6; }
9854 else
9855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9856 $as_echo "no" >&6; }
9857 fi
9858 
9859 
9860           if test "x$MV" = x; then
9861             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9862           fi
9863         else
9864           # Otherwise we believe it is a complete path. Use it as it is.
9865           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5
9866 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;}
9867           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5
9868 $as_echo_n "checking for MV... " >&6; }
9869           if test ! -x "$tool_specified"; then
9870             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9871 $as_echo "not found" >&6; }
9872             as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5
9873           fi
9874           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9875 $as_echo "$tool_specified" >&6; }
9876         fi
9877       fi
9878     fi
9879 
9880   fi
9881 
9882 
9883 
9884   if test "x$MV" = x; then
9885     as_fn_error $? "Could not find required tool for MV" "$LINENO" 5
9886   fi
9887 
9888 
9889 
9890 
9891 
9892   # Publish this variable in the help.
9893 
9894 
9895   if [ -z "${NAWK+x}" ]; then
9896     # The variable is not set by user, try to locate tool using the code snippet
9897     for ac_prog in nawk gawk awk
9898 do
9899   # Extract the first word of "$ac_prog", so it can be a program name with args.
9900 set dummy $ac_prog; ac_word=$2
9901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9902 $as_echo_n "checking for $ac_word... " >&6; }
9903 if ${ac_cv_path_NAWK+:} false; then :
9904   $as_echo_n "(cached) " >&6
9905 else
9906   case $NAWK in
9907   [\\/]* | ?:[\\/]*)
9908   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
9909   ;;
9910   *)
9911   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9912 for as_dir in $PATH
9913 do
9914   IFS=$as_save_IFS
9915   test -z "$as_dir" && as_dir=.
9916     for ac_exec_ext in '' $ac_executable_extensions; do
9917   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9918     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
9919     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9920     break 2
9921   fi
9922 done
9923   done
9924 IFS=$as_save_IFS
9925 
9926   ;;
9927 esac
9928 fi
9929 NAWK=$ac_cv_path_NAWK
9930 if test -n "$NAWK"; then
9931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
9932 $as_echo "$NAWK" >&6; }
9933 else
9934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9935 $as_echo "no" >&6; }
9936 fi
9937 
9938 
9939   test -n "$NAWK" && break
9940 done
9941 
9942   else
9943     # The variable is set, but is it from the command line or the environment?
9944 
9945     # Try to remove the string !NAWK! from our list.
9946     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/}
9947     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9948       # If it failed, the variable was not from the command line. Ignore it,
9949       # but warn the user (except for BASH, which is always set by the calling BASH).
9950       if test "xNAWK" != xBASH; then
9951         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5
9952 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;}
9953       fi
9954       # Try to locate tool using the code snippet
9955       for ac_prog in nawk gawk awk
9956 do
9957   # Extract the first word of "$ac_prog", so it can be a program name with args.
9958 set dummy $ac_prog; ac_word=$2
9959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9960 $as_echo_n "checking for $ac_word... " >&6; }
9961 if ${ac_cv_path_NAWK+:} false; then :
9962   $as_echo_n "(cached) " >&6
9963 else
9964   case $NAWK in
9965   [\\/]* | ?:[\\/]*)
9966   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
9967   ;;
9968   *)
9969   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9970 for as_dir in $PATH
9971 do
9972   IFS=$as_save_IFS
9973   test -z "$as_dir" && as_dir=.
9974     for ac_exec_ext in '' $ac_executable_extensions; do
9975   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9976     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
9977     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9978     break 2
9979   fi
9980 done
9981   done
9982 IFS=$as_save_IFS
9983 
9984   ;;
9985 esac
9986 fi
9987 NAWK=$ac_cv_path_NAWK
9988 if test -n "$NAWK"; then
9989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
9990 $as_echo "$NAWK" >&6; }
9991 else
9992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9993 $as_echo "no" >&6; }
9994 fi
9995 
9996 
9997   test -n "$NAWK" && break
9998 done
9999 
10000     else
10001       # If it succeeded, then it was overridden by the user. We will use it
10002       # for the tool.
10003 
10004       # First remove it from the list of overridden variables, so we can test
10005       # for unknown variables in the end.
10006       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10007 
10008       # Check if we try to supply an empty value
10009       if test "x$NAWK" = x; then
10010         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NAWK= (no value)" >&5
10011 $as_echo "$as_me: Setting user supplied tool NAWK= (no value)" >&6;}
10012         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5
10013 $as_echo_n "checking for NAWK... " >&6; }
10014         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10015 $as_echo "disabled" >&6; }
10016       else
10017         # Check if the provided tool contains a complete path.
10018         tool_specified="$NAWK"
10019         tool_basename="${tool_specified##*/}"
10020         if test "x$tool_basename" = "x$tool_specified"; then
10021           # A command without a complete path is provided, search $PATH.
10022           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5
10023 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;}
10024           # Extract the first word of "$tool_basename", so it can be a program name with args.
10025 set dummy $tool_basename; ac_word=$2
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10027 $as_echo_n "checking for $ac_word... " >&6; }
10028 if ${ac_cv_path_NAWK+:} false; then :
10029   $as_echo_n "(cached) " >&6
10030 else
10031   case $NAWK in
10032   [\\/]* | ?:[\\/]*)
10033   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
10034   ;;
10035   *)
10036   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10037 for as_dir in $PATH
10038 do
10039   IFS=$as_save_IFS
10040   test -z "$as_dir" && as_dir=.
10041     for ac_exec_ext in '' $ac_executable_extensions; do
10042   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10043     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
10044     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10045     break 2
10046   fi
10047 done
10048   done
10049 IFS=$as_save_IFS
10050 
10051   ;;
10052 esac
10053 fi
10054 NAWK=$ac_cv_path_NAWK
10055 if test -n "$NAWK"; then
10056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
10057 $as_echo "$NAWK" >&6; }
10058 else
10059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10060 $as_echo "no" >&6; }
10061 fi
10062 
10063 
10064           if test "x$NAWK" = x; then
10065             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10066           fi
10067         else
10068           # Otherwise we believe it is a complete path. Use it as it is.
10069           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5
10070 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;}
10071           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5
10072 $as_echo_n "checking for NAWK... " >&6; }
10073           if test ! -x "$tool_specified"; then
10074             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10075 $as_echo "not found" >&6; }
10076             as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5
10077           fi
10078           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10079 $as_echo "$tool_specified" >&6; }
10080         fi
10081       fi
10082     fi
10083 
10084   fi
10085 
10086 
10087 
10088   if test "x$NAWK" = x; then
10089     as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5
10090   fi
10091 
10092 
10093 
10094 
10095 
10096   # Publish this variable in the help.
10097 
10098 
10099   if [ -z "${PRINTF+x}" ]; then
10100     # The variable is not set by user, try to locate tool using the code snippet
10101     for ac_prog in printf
10102 do
10103   # Extract the first word of "$ac_prog", so it can be a program name with args.
10104 set dummy $ac_prog; ac_word=$2
10105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10106 $as_echo_n "checking for $ac_word... " >&6; }
10107 if ${ac_cv_path_PRINTF+:} false; then :
10108   $as_echo_n "(cached) " >&6
10109 else
10110   case $PRINTF in
10111   [\\/]* | ?:[\\/]*)
10112   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
10113   ;;
10114   *)
10115   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10116 for as_dir in $PATH
10117 do
10118   IFS=$as_save_IFS
10119   test -z "$as_dir" && as_dir=.
10120     for ac_exec_ext in '' $ac_executable_extensions; do
10121   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10122     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
10123     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10124     break 2
10125   fi
10126 done
10127   done
10128 IFS=$as_save_IFS
10129 
10130   ;;
10131 esac
10132 fi
10133 PRINTF=$ac_cv_path_PRINTF
10134 if test -n "$PRINTF"; then
10135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
10136 $as_echo "$PRINTF" >&6; }
10137 else
10138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10139 $as_echo "no" >&6; }
10140 fi
10141 
10142 
10143   test -n "$PRINTF" && break
10144 done
10145 
10146   else
10147     # The variable is set, but is it from the command line or the environment?
10148 
10149     # Try to remove the string !PRINTF! from our list.
10150     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/}
10151     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10152       # If it failed, the variable was not from the command line. Ignore it,
10153       # but warn the user (except for BASH, which is always set by the calling BASH).
10154       if test "xPRINTF" != xBASH; then
10155         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5
10156 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;}
10157       fi
10158       # Try to locate tool using the code snippet
10159       for ac_prog in printf
10160 do
10161   # Extract the first word of "$ac_prog", so it can be a program name with args.
10162 set dummy $ac_prog; ac_word=$2
10163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10164 $as_echo_n "checking for $ac_word... " >&6; }
10165 if ${ac_cv_path_PRINTF+:} false; then :
10166   $as_echo_n "(cached) " >&6
10167 else
10168   case $PRINTF in
10169   [\\/]* | ?:[\\/]*)
10170   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
10171   ;;
10172   *)
10173   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10174 for as_dir in $PATH
10175 do
10176   IFS=$as_save_IFS
10177   test -z "$as_dir" && as_dir=.
10178     for ac_exec_ext in '' $ac_executable_extensions; do
10179   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10180     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
10181     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10182     break 2
10183   fi
10184 done
10185   done
10186 IFS=$as_save_IFS
10187 
10188   ;;
10189 esac
10190 fi
10191 PRINTF=$ac_cv_path_PRINTF
10192 if test -n "$PRINTF"; then
10193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
10194 $as_echo "$PRINTF" >&6; }
10195 else
10196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10197 $as_echo "no" >&6; }
10198 fi
10199 
10200 
10201   test -n "$PRINTF" && break
10202 done
10203 
10204     else
10205       # If it succeeded, then it was overridden by the user. We will use it
10206       # for the tool.
10207 
10208       # First remove it from the list of overridden variables, so we can test
10209       # for unknown variables in the end.
10210       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10211 
10212       # Check if we try to supply an empty value
10213       if test "x$PRINTF" = x; then
10214         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PRINTF= (no value)" >&5
10215 $as_echo "$as_me: Setting user supplied tool PRINTF= (no value)" >&6;}
10216         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5
10217 $as_echo_n "checking for PRINTF... " >&6; }
10218         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10219 $as_echo "disabled" >&6; }
10220       else
10221         # Check if the provided tool contains a complete path.
10222         tool_specified="$PRINTF"
10223         tool_basename="${tool_specified##*/}"
10224         if test "x$tool_basename" = "x$tool_specified"; then
10225           # A command without a complete path is provided, search $PATH.
10226           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5
10227 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;}
10228           # Extract the first word of "$tool_basename", so it can be a program name with args.
10229 set dummy $tool_basename; ac_word=$2
10230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10231 $as_echo_n "checking for $ac_word... " >&6; }
10232 if ${ac_cv_path_PRINTF+:} false; then :
10233   $as_echo_n "(cached) " >&6
10234 else
10235   case $PRINTF in
10236   [\\/]* | ?:[\\/]*)
10237   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
10238   ;;
10239   *)
10240   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10241 for as_dir in $PATH
10242 do
10243   IFS=$as_save_IFS
10244   test -z "$as_dir" && as_dir=.
10245     for ac_exec_ext in '' $ac_executable_extensions; do
10246   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10247     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
10248     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10249     break 2
10250   fi
10251 done
10252   done
10253 IFS=$as_save_IFS
10254 
10255   ;;
10256 esac
10257 fi
10258 PRINTF=$ac_cv_path_PRINTF
10259 if test -n "$PRINTF"; then
10260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
10261 $as_echo "$PRINTF" >&6; }
10262 else
10263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10264 $as_echo "no" >&6; }
10265 fi
10266 
10267 
10268           if test "x$PRINTF" = x; then
10269             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10270           fi
10271         else
10272           # Otherwise we believe it is a complete path. Use it as it is.
10273           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5
10274 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;}
10275           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5
10276 $as_echo_n "checking for PRINTF... " >&6; }
10277           if test ! -x "$tool_specified"; then
10278             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10279 $as_echo "not found" >&6; }
10280             as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5
10281           fi
10282           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10283 $as_echo "$tool_specified" >&6; }
10284         fi
10285       fi
10286     fi
10287 
10288   fi
10289 
10290 
10291 
10292   if test "x$PRINTF" = x; then
10293     as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5
10294   fi
10295 
10296 
10297 
10298 
10299 
10300   # Publish this variable in the help.
10301 
10302 
10303   if [ -z "${RM+x}" ]; then
10304     # The variable is not set by user, try to locate tool using the code snippet
10305     for ac_prog in rm
10306 do
10307   # Extract the first word of "$ac_prog", so it can be a program name with args.
10308 set dummy $ac_prog; ac_word=$2
10309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10310 $as_echo_n "checking for $ac_word... " >&6; }
10311 if ${ac_cv_path_RM+:} false; then :
10312   $as_echo_n "(cached) " >&6
10313 else
10314   case $RM in
10315   [\\/]* | ?:[\\/]*)
10316   ac_cv_path_RM="$RM" # Let the user override the test with a path.
10317   ;;
10318   *)
10319   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10320 for as_dir in $PATH
10321 do
10322   IFS=$as_save_IFS
10323   test -z "$as_dir" && as_dir=.
10324     for ac_exec_ext in '' $ac_executable_extensions; do
10325   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10326     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
10327     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10328     break 2
10329   fi
10330 done
10331   done
10332 IFS=$as_save_IFS
10333 
10334   ;;
10335 esac
10336 fi
10337 RM=$ac_cv_path_RM
10338 if test -n "$RM"; then
10339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
10340 $as_echo "$RM" >&6; }
10341 else
10342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10343 $as_echo "no" >&6; }
10344 fi
10345 
10346 
10347   test -n "$RM" && break
10348 done
10349 
10350   else
10351     # The variable is set, but is it from the command line or the environment?
10352 
10353     # Try to remove the string !RM! from our list.
10354     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/}
10355     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10356       # If it failed, the variable was not from the command line. Ignore it,
10357       # but warn the user (except for BASH, which is always set by the calling BASH).
10358       if test "xRM" != xBASH; then
10359         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5
10360 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;}
10361       fi
10362       # Try to locate tool using the code snippet
10363       for ac_prog in rm
10364 do
10365   # Extract the first word of "$ac_prog", so it can be a program name with args.
10366 set dummy $ac_prog; ac_word=$2
10367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10368 $as_echo_n "checking for $ac_word... " >&6; }
10369 if ${ac_cv_path_RM+:} false; then :
10370   $as_echo_n "(cached) " >&6
10371 else
10372   case $RM in
10373   [\\/]* | ?:[\\/]*)
10374   ac_cv_path_RM="$RM" # Let the user override the test with a path.
10375   ;;
10376   *)
10377   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10378 for as_dir in $PATH
10379 do
10380   IFS=$as_save_IFS
10381   test -z "$as_dir" && as_dir=.
10382     for ac_exec_ext in '' $ac_executable_extensions; do
10383   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10384     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
10385     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10386     break 2
10387   fi
10388 done
10389   done
10390 IFS=$as_save_IFS
10391 
10392   ;;
10393 esac
10394 fi
10395 RM=$ac_cv_path_RM
10396 if test -n "$RM"; then
10397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
10398 $as_echo "$RM" >&6; }
10399 else
10400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10401 $as_echo "no" >&6; }
10402 fi
10403 
10404 
10405   test -n "$RM" && break
10406 done
10407 
10408     else
10409       # If it succeeded, then it was overridden by the user. We will use it
10410       # for the tool.
10411 
10412       # First remove it from the list of overridden variables, so we can test
10413       # for unknown variables in the end.
10414       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10415 
10416       # Check if we try to supply an empty value
10417       if test "x$RM" = x; then
10418         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool RM= (no value)" >&5
10419 $as_echo "$as_me: Setting user supplied tool RM= (no value)" >&6;}
10420         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5
10421 $as_echo_n "checking for RM... " >&6; }
10422         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10423 $as_echo "disabled" >&6; }
10424       else
10425         # Check if the provided tool contains a complete path.
10426         tool_specified="$RM"
10427         tool_basename="${tool_specified##*/}"
10428         if test "x$tool_basename" = "x$tool_specified"; then
10429           # A command without a complete path is provided, search $PATH.
10430           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5
10431 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;}
10432           # Extract the first word of "$tool_basename", so it can be a program name with args.
10433 set dummy $tool_basename; ac_word=$2
10434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10435 $as_echo_n "checking for $ac_word... " >&6; }
10436 if ${ac_cv_path_RM+:} false; then :
10437   $as_echo_n "(cached) " >&6
10438 else
10439   case $RM in
10440   [\\/]* | ?:[\\/]*)
10441   ac_cv_path_RM="$RM" # Let the user override the test with a path.
10442   ;;
10443   *)
10444   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10445 for as_dir in $PATH
10446 do
10447   IFS=$as_save_IFS
10448   test -z "$as_dir" && as_dir=.
10449     for ac_exec_ext in '' $ac_executable_extensions; do
10450   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10451     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
10452     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10453     break 2
10454   fi
10455 done
10456   done
10457 IFS=$as_save_IFS
10458 
10459   ;;
10460 esac
10461 fi
10462 RM=$ac_cv_path_RM
10463 if test -n "$RM"; then
10464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
10465 $as_echo "$RM" >&6; }
10466 else
10467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10468 $as_echo "no" >&6; }
10469 fi
10470 
10471 
10472           if test "x$RM" = x; then
10473             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10474           fi
10475         else
10476           # Otherwise we believe it is a complete path. Use it as it is.
10477           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5
10478 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;}
10479           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5
10480 $as_echo_n "checking for RM... " >&6; }
10481           if test ! -x "$tool_specified"; then
10482             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10483 $as_echo "not found" >&6; }
10484             as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5
10485           fi
10486           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10487 $as_echo "$tool_specified" >&6; }
10488         fi
10489       fi
10490     fi
10491 
10492   fi
10493 
10494 
10495 
10496   if test "x$RM" = x; then
10497     as_fn_error $? "Could not find required tool for RM" "$LINENO" 5
10498   fi
10499 
10500 
10501 
10502 
10503 
10504   # Publish this variable in the help.
10505 
10506 
10507   if [ -z "${RMDIR+x}" ]; then
10508     # The variable is not set by user, try to locate tool using the code snippet
10509     for ac_prog in rmdir
10510 do
10511   # Extract the first word of "$ac_prog", so it can be a program name with args.
10512 set dummy $ac_prog; ac_word=$2
10513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10514 $as_echo_n "checking for $ac_word... " >&6; }
10515 if ${ac_cv_path_RMDIR+:} false; then :
10516   $as_echo_n "(cached) " >&6
10517 else
10518   case $RMDIR in
10519   [\\/]* | ?:[\\/]*)
10520   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
10521   ;;
10522   *)
10523   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10524 for as_dir in $PATH
10525 do
10526   IFS=$as_save_IFS
10527   test -z "$as_dir" && as_dir=.
10528     for ac_exec_ext in '' $ac_executable_extensions; do
10529   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10530     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
10531     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10532     break 2
10533   fi
10534 done
10535   done
10536 IFS=$as_save_IFS
10537 
10538   ;;
10539 esac
10540 fi
10541 RMDIR=$ac_cv_path_RMDIR
10542 if test -n "$RMDIR"; then
10543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
10544 $as_echo "$RMDIR" >&6; }
10545 else
10546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10547 $as_echo "no" >&6; }
10548 fi
10549 
10550 
10551   test -n "$RMDIR" && break
10552 done
10553 
10554   else
10555     # The variable is set, but is it from the command line or the environment?
10556 
10557     # Try to remove the string !RMDIR! from our list.
10558     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RMDIR!/}
10559     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10560       # If it failed, the variable was not from the command line. Ignore it,
10561       # but warn the user (except for BASH, which is always set by the calling BASH).
10562       if test "xRMDIR" != xBASH; then
10563         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RMDIR from the environment. Use command line variables instead." >&5
10564 $as_echo "$as_me: WARNING: Ignoring value of RMDIR from the environment. Use command line variables instead." >&2;}
10565       fi
10566       # Try to locate tool using the code snippet
10567       for ac_prog in rmdir
10568 do
10569   # Extract the first word of "$ac_prog", so it can be a program name with args.
10570 set dummy $ac_prog; ac_word=$2
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10572 $as_echo_n "checking for $ac_word... " >&6; }
10573 if ${ac_cv_path_RMDIR+:} false; then :
10574   $as_echo_n "(cached) " >&6
10575 else
10576   case $RMDIR in
10577   [\\/]* | ?:[\\/]*)
10578   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
10579   ;;
10580   *)
10581   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10582 for as_dir in $PATH
10583 do
10584   IFS=$as_save_IFS
10585   test -z "$as_dir" && as_dir=.
10586     for ac_exec_ext in '' $ac_executable_extensions; do
10587   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10588     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
10589     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10590     break 2
10591   fi
10592 done
10593   done
10594 IFS=$as_save_IFS
10595 
10596   ;;
10597 esac
10598 fi
10599 RMDIR=$ac_cv_path_RMDIR
10600 if test -n "$RMDIR"; then
10601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
10602 $as_echo "$RMDIR" >&6; }
10603 else
10604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10605 $as_echo "no" >&6; }
10606 fi
10607 
10608 
10609   test -n "$RMDIR" && break
10610 done
10611 
10612     else
10613       # If it succeeded, then it was overridden by the user. We will use it
10614       # for the tool.
10615 
10616       # First remove it from the list of overridden variables, so we can test
10617       # for unknown variables in the end.
10618       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10619 
10620       # Check if we try to supply an empty value
10621       if test "x$RMDIR" = x; then
10622         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool RMDIR= (no value)" >&5
10623 $as_echo "$as_me: Setting user supplied tool RMDIR= (no value)" >&6;}
10624         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RMDIR" >&5
10625 $as_echo_n "checking for RMDIR... " >&6; }
10626         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10627 $as_echo "disabled" >&6; }
10628       else
10629         # Check if the provided tool contains a complete path.
10630         tool_specified="$RMDIR"
10631         tool_basename="${tool_specified##*/}"
10632         if test "x$tool_basename" = "x$tool_specified"; then
10633           # A command without a complete path is provided, search $PATH.
10634           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RMDIR=$tool_basename" >&5
10635 $as_echo "$as_me: Will search for user supplied tool RMDIR=$tool_basename" >&6;}
10636           # Extract the first word of "$tool_basename", so it can be a program name with args.
10637 set dummy $tool_basename; ac_word=$2
10638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10639 $as_echo_n "checking for $ac_word... " >&6; }
10640 if ${ac_cv_path_RMDIR+:} false; then :
10641   $as_echo_n "(cached) " >&6
10642 else
10643   case $RMDIR in
10644   [\\/]* | ?:[\\/]*)
10645   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
10646   ;;
10647   *)
10648   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10649 for as_dir in $PATH
10650 do
10651   IFS=$as_save_IFS
10652   test -z "$as_dir" && as_dir=.
10653     for ac_exec_ext in '' $ac_executable_extensions; do
10654   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10655     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
10656     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10657     break 2
10658   fi
10659 done
10660   done
10661 IFS=$as_save_IFS
10662 
10663   ;;
10664 esac
10665 fi
10666 RMDIR=$ac_cv_path_RMDIR
10667 if test -n "$RMDIR"; then
10668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
10669 $as_echo "$RMDIR" >&6; }
10670 else
10671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10672 $as_echo "no" >&6; }
10673 fi
10674 
10675 
10676           if test "x$RMDIR" = x; then
10677             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10678           fi
10679         else
10680           # Otherwise we believe it is a complete path. Use it as it is.
10681           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RMDIR=$tool_specified" >&5
10682 $as_echo "$as_me: Will use user supplied tool RMDIR=$tool_specified" >&6;}
10683           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RMDIR" >&5
10684 $as_echo_n "checking for RMDIR... " >&6; }
10685           if test ! -x "$tool_specified"; then
10686             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10687 $as_echo "not found" >&6; }
10688             as_fn_error $? "User supplied tool RMDIR=$tool_specified does not exist or is not executable" "$LINENO" 5
10689           fi
10690           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10691 $as_echo "$tool_specified" >&6; }
10692         fi
10693       fi
10694     fi
10695 
10696   fi
10697 
10698 
10699 
10700   if test "x$RMDIR" = x; then
10701     as_fn_error $? "Could not find required tool for RMDIR" "$LINENO" 5
10702   fi
10703 
10704 
10705 
10706 
10707 
10708   # Publish this variable in the help.
10709 
10710 
10711   if [ -z "${SH+x}" ]; then
10712     # The variable is not set by user, try to locate tool using the code snippet
10713     for ac_prog in sh
10714 do
10715   # Extract the first word of "$ac_prog", so it can be a program name with args.
10716 set dummy $ac_prog; ac_word=$2
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10718 $as_echo_n "checking for $ac_word... " >&6; }
10719 if ${ac_cv_path_SH+:} false; then :
10720   $as_echo_n "(cached) " >&6
10721 else
10722   case $SH in
10723   [\\/]* | ?:[\\/]*)
10724   ac_cv_path_SH="$SH" # Let the user override the test with a path.
10725   ;;
10726   *)
10727   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10728 for as_dir in $PATH
10729 do
10730   IFS=$as_save_IFS
10731   test -z "$as_dir" && as_dir=.
10732     for ac_exec_ext in '' $ac_executable_extensions; do
10733   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10734     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
10735     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10736     break 2
10737   fi
10738 done
10739   done
10740 IFS=$as_save_IFS
10741 
10742   ;;
10743 esac
10744 fi
10745 SH=$ac_cv_path_SH
10746 if test -n "$SH"; then
10747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
10748 $as_echo "$SH" >&6; }
10749 else
10750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10751 $as_echo "no" >&6; }
10752 fi
10753 
10754 
10755   test -n "$SH" && break
10756 done
10757 
10758   else
10759     # The variable is set, but is it from the command line or the environment?
10760 
10761     # Try to remove the string !SH! from our list.
10762     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/}
10763     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10764       # If it failed, the variable was not from the command line. Ignore it,
10765       # but warn the user (except for BASH, which is always set by the calling BASH).
10766       if test "xSH" != xBASH; then
10767         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5
10768 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;}
10769       fi
10770       # Try to locate tool using the code snippet
10771       for ac_prog in sh
10772 do
10773   # Extract the first word of "$ac_prog", so it can be a program name with args.
10774 set dummy $ac_prog; ac_word=$2
10775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10776 $as_echo_n "checking for $ac_word... " >&6; }
10777 if ${ac_cv_path_SH+:} false; then :
10778   $as_echo_n "(cached) " >&6
10779 else
10780   case $SH in
10781   [\\/]* | ?:[\\/]*)
10782   ac_cv_path_SH="$SH" # Let the user override the test with a path.
10783   ;;
10784   *)
10785   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10786 for as_dir in $PATH
10787 do
10788   IFS=$as_save_IFS
10789   test -z "$as_dir" && as_dir=.
10790     for ac_exec_ext in '' $ac_executable_extensions; do
10791   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10792     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
10793     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10794     break 2
10795   fi
10796 done
10797   done
10798 IFS=$as_save_IFS
10799 
10800   ;;
10801 esac
10802 fi
10803 SH=$ac_cv_path_SH
10804 if test -n "$SH"; then
10805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
10806 $as_echo "$SH" >&6; }
10807 else
10808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10809 $as_echo "no" >&6; }
10810 fi
10811 
10812 
10813   test -n "$SH" && break
10814 done
10815 
10816     else
10817       # If it succeeded, then it was overridden by the user. We will use it
10818       # for the tool.
10819 
10820       # First remove it from the list of overridden variables, so we can test
10821       # for unknown variables in the end.
10822       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10823 
10824       # Check if we try to supply an empty value
10825       if test "x$SH" = x; then
10826         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SH= (no value)" >&5
10827 $as_echo "$as_me: Setting user supplied tool SH= (no value)" >&6;}
10828         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5
10829 $as_echo_n "checking for SH... " >&6; }
10830         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10831 $as_echo "disabled" >&6; }
10832       else
10833         # Check if the provided tool contains a complete path.
10834         tool_specified="$SH"
10835         tool_basename="${tool_specified##*/}"
10836         if test "x$tool_basename" = "x$tool_specified"; then
10837           # A command without a complete path is provided, search $PATH.
10838           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5
10839 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;}
10840           # Extract the first word of "$tool_basename", so it can be a program name with args.
10841 set dummy $tool_basename; ac_word=$2
10842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10843 $as_echo_n "checking for $ac_word... " >&6; }
10844 if ${ac_cv_path_SH+:} false; then :
10845   $as_echo_n "(cached) " >&6
10846 else
10847   case $SH in
10848   [\\/]* | ?:[\\/]*)
10849   ac_cv_path_SH="$SH" # Let the user override the test with a path.
10850   ;;
10851   *)
10852   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10853 for as_dir in $PATH
10854 do
10855   IFS=$as_save_IFS
10856   test -z "$as_dir" && as_dir=.
10857     for ac_exec_ext in '' $ac_executable_extensions; do
10858   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10859     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
10860     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10861     break 2
10862   fi
10863 done
10864   done
10865 IFS=$as_save_IFS
10866 
10867   ;;
10868 esac
10869 fi
10870 SH=$ac_cv_path_SH
10871 if test -n "$SH"; then
10872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
10873 $as_echo "$SH" >&6; }
10874 else
10875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10876 $as_echo "no" >&6; }
10877 fi
10878 
10879 
10880           if test "x$SH" = x; then
10881             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10882           fi
10883         else
10884           # Otherwise we believe it is a complete path. Use it as it is.
10885           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5
10886 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;}
10887           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5
10888 $as_echo_n "checking for SH... " >&6; }
10889           if test ! -x "$tool_specified"; then
10890             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10891 $as_echo "not found" >&6; }
10892             as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5
10893           fi
10894           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10895 $as_echo "$tool_specified" >&6; }
10896         fi
10897       fi
10898     fi
10899 
10900   fi
10901 
10902 
10903 
10904   if test "x$SH" = x; then
10905     as_fn_error $? "Could not find required tool for SH" "$LINENO" 5
10906   fi
10907 
10908 
10909 
10910 
10911 
10912   # Publish this variable in the help.
10913 
10914 
10915   if [ -z "${SORT+x}" ]; then
10916     # The variable is not set by user, try to locate tool using the code snippet
10917     for ac_prog in sort
10918 do
10919   # Extract the first word of "$ac_prog", so it can be a program name with args.
10920 set dummy $ac_prog; ac_word=$2
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10922 $as_echo_n "checking for $ac_word... " >&6; }
10923 if ${ac_cv_path_SORT+:} false; then :
10924   $as_echo_n "(cached) " >&6
10925 else
10926   case $SORT in
10927   [\\/]* | ?:[\\/]*)
10928   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
10929   ;;
10930   *)
10931   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10932 for as_dir in $PATH
10933 do
10934   IFS=$as_save_IFS
10935   test -z "$as_dir" && as_dir=.
10936     for ac_exec_ext in '' $ac_executable_extensions; do
10937   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10938     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
10939     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10940     break 2
10941   fi
10942 done
10943   done
10944 IFS=$as_save_IFS
10945 
10946   ;;
10947 esac
10948 fi
10949 SORT=$ac_cv_path_SORT
10950 if test -n "$SORT"; then
10951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
10952 $as_echo "$SORT" >&6; }
10953 else
10954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10955 $as_echo "no" >&6; }
10956 fi
10957 
10958 
10959   test -n "$SORT" && break
10960 done
10961 
10962   else
10963     # The variable is set, but is it from the command line or the environment?
10964 
10965     # Try to remove the string !SORT! from our list.
10966     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/}
10967     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10968       # If it failed, the variable was not from the command line. Ignore it,
10969       # but warn the user (except for BASH, which is always set by the calling BASH).
10970       if test "xSORT" != xBASH; then
10971         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5
10972 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;}
10973       fi
10974       # Try to locate tool using the code snippet
10975       for ac_prog in sort
10976 do
10977   # Extract the first word of "$ac_prog", so it can be a program name with args.
10978 set dummy $ac_prog; ac_word=$2
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10980 $as_echo_n "checking for $ac_word... " >&6; }
10981 if ${ac_cv_path_SORT+:} false; then :
10982   $as_echo_n "(cached) " >&6
10983 else
10984   case $SORT in
10985   [\\/]* | ?:[\\/]*)
10986   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
10987   ;;
10988   *)
10989   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10990 for as_dir in $PATH
10991 do
10992   IFS=$as_save_IFS
10993   test -z "$as_dir" && as_dir=.
10994     for ac_exec_ext in '' $ac_executable_extensions; do
10995   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10996     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
10997     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10998     break 2
10999   fi
11000 done
11001   done
11002 IFS=$as_save_IFS
11003 
11004   ;;
11005 esac
11006 fi
11007 SORT=$ac_cv_path_SORT
11008 if test -n "$SORT"; then
11009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
11010 $as_echo "$SORT" >&6; }
11011 else
11012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11013 $as_echo "no" >&6; }
11014 fi
11015 
11016 
11017   test -n "$SORT" && break
11018 done
11019 
11020     else
11021       # If it succeeded, then it was overridden by the user. We will use it
11022       # for the tool.
11023 
11024       # First remove it from the list of overridden variables, so we can test
11025       # for unknown variables in the end.
11026       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11027 
11028       # Check if we try to supply an empty value
11029       if test "x$SORT" = x; then
11030         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SORT= (no value)" >&5
11031 $as_echo "$as_me: Setting user supplied tool SORT= (no value)" >&6;}
11032         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5
11033 $as_echo_n "checking for SORT... " >&6; }
11034         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11035 $as_echo "disabled" >&6; }
11036       else
11037         # Check if the provided tool contains a complete path.
11038         tool_specified="$SORT"
11039         tool_basename="${tool_specified##*/}"
11040         if test "x$tool_basename" = "x$tool_specified"; then
11041           # A command without a complete path is provided, search $PATH.
11042           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5
11043 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;}
11044           # Extract the first word of "$tool_basename", so it can be a program name with args.
11045 set dummy $tool_basename; ac_word=$2
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11047 $as_echo_n "checking for $ac_word... " >&6; }
11048 if ${ac_cv_path_SORT+:} false; then :
11049   $as_echo_n "(cached) " >&6
11050 else
11051   case $SORT in
11052   [\\/]* | ?:[\\/]*)
11053   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
11054   ;;
11055   *)
11056   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11057 for as_dir in $PATH
11058 do
11059   IFS=$as_save_IFS
11060   test -z "$as_dir" && as_dir=.
11061     for ac_exec_ext in '' $ac_executable_extensions; do
11062   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11063     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
11064     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11065     break 2
11066   fi
11067 done
11068   done
11069 IFS=$as_save_IFS
11070 
11071   ;;
11072 esac
11073 fi
11074 SORT=$ac_cv_path_SORT
11075 if test -n "$SORT"; then
11076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
11077 $as_echo "$SORT" >&6; }
11078 else
11079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11080 $as_echo "no" >&6; }
11081 fi
11082 
11083 
11084           if test "x$SORT" = x; then
11085             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11086           fi
11087         else
11088           # Otherwise we believe it is a complete path. Use it as it is.
11089           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5
11090 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;}
11091           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5
11092 $as_echo_n "checking for SORT... " >&6; }
11093           if test ! -x "$tool_specified"; then
11094             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11095 $as_echo "not found" >&6; }
11096             as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5
11097           fi
11098           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11099 $as_echo "$tool_specified" >&6; }
11100         fi
11101       fi
11102     fi
11103 
11104   fi
11105 
11106 
11107 
11108   if test "x$SORT" = x; then
11109     as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5
11110   fi
11111 
11112 
11113 
11114 
11115 
11116   # Publish this variable in the help.
11117 
11118 
11119   if [ -z "${TAIL+x}" ]; then
11120     # The variable is not set by user, try to locate tool using the code snippet
11121     for ac_prog in tail
11122 do
11123   # Extract the first word of "$ac_prog", so it can be a program name with args.
11124 set dummy $ac_prog; ac_word=$2
11125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11126 $as_echo_n "checking for $ac_word... " >&6; }
11127 if ${ac_cv_path_TAIL+:} false; then :
11128   $as_echo_n "(cached) " >&6
11129 else
11130   case $TAIL in
11131   [\\/]* | ?:[\\/]*)
11132   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
11133   ;;
11134   *)
11135   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11136 for as_dir in $PATH
11137 do
11138   IFS=$as_save_IFS
11139   test -z "$as_dir" && as_dir=.
11140     for ac_exec_ext in '' $ac_executable_extensions; do
11141   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11142     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
11143     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11144     break 2
11145   fi
11146 done
11147   done
11148 IFS=$as_save_IFS
11149 
11150   ;;
11151 esac
11152 fi
11153 TAIL=$ac_cv_path_TAIL
11154 if test -n "$TAIL"; then
11155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
11156 $as_echo "$TAIL" >&6; }
11157 else
11158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11159 $as_echo "no" >&6; }
11160 fi
11161 
11162 
11163   test -n "$TAIL" && break
11164 done
11165 
11166   else
11167     # The variable is set, but is it from the command line or the environment?
11168 
11169     # Try to remove the string !TAIL! from our list.
11170     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/}
11171     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11172       # If it failed, the variable was not from the command line. Ignore it,
11173       # but warn the user (except for BASH, which is always set by the calling BASH).
11174       if test "xTAIL" != xBASH; then
11175         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5
11176 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;}
11177       fi
11178       # Try to locate tool using the code snippet
11179       for ac_prog in tail
11180 do
11181   # Extract the first word of "$ac_prog", so it can be a program name with args.
11182 set dummy $ac_prog; ac_word=$2
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11184 $as_echo_n "checking for $ac_word... " >&6; }
11185 if ${ac_cv_path_TAIL+:} false; then :
11186   $as_echo_n "(cached) " >&6
11187 else
11188   case $TAIL in
11189   [\\/]* | ?:[\\/]*)
11190   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
11191   ;;
11192   *)
11193   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11194 for as_dir in $PATH
11195 do
11196   IFS=$as_save_IFS
11197   test -z "$as_dir" && as_dir=.
11198     for ac_exec_ext in '' $ac_executable_extensions; do
11199   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11200     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
11201     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11202     break 2
11203   fi
11204 done
11205   done
11206 IFS=$as_save_IFS
11207 
11208   ;;
11209 esac
11210 fi
11211 TAIL=$ac_cv_path_TAIL
11212 if test -n "$TAIL"; then
11213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
11214 $as_echo "$TAIL" >&6; }
11215 else
11216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11217 $as_echo "no" >&6; }
11218 fi
11219 
11220 
11221   test -n "$TAIL" && break
11222 done
11223 
11224     else
11225       # If it succeeded, then it was overridden by the user. We will use it
11226       # for the tool.
11227 
11228       # First remove it from the list of overridden variables, so we can test
11229       # for unknown variables in the end.
11230       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11231 
11232       # Check if we try to supply an empty value
11233       if test "x$TAIL" = x; then
11234         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TAIL= (no value)" >&5
11235 $as_echo "$as_me: Setting user supplied tool TAIL= (no value)" >&6;}
11236         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5
11237 $as_echo_n "checking for TAIL... " >&6; }
11238         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11239 $as_echo "disabled" >&6; }
11240       else
11241         # Check if the provided tool contains a complete path.
11242         tool_specified="$TAIL"
11243         tool_basename="${tool_specified##*/}"
11244         if test "x$tool_basename" = "x$tool_specified"; then
11245           # A command without a complete path is provided, search $PATH.
11246           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5
11247 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;}
11248           # Extract the first word of "$tool_basename", so it can be a program name with args.
11249 set dummy $tool_basename; ac_word=$2
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11251 $as_echo_n "checking for $ac_word... " >&6; }
11252 if ${ac_cv_path_TAIL+:} false; then :
11253   $as_echo_n "(cached) " >&6
11254 else
11255   case $TAIL in
11256   [\\/]* | ?:[\\/]*)
11257   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
11258   ;;
11259   *)
11260   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11261 for as_dir in $PATH
11262 do
11263   IFS=$as_save_IFS
11264   test -z "$as_dir" && as_dir=.
11265     for ac_exec_ext in '' $ac_executable_extensions; do
11266   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11267     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
11268     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11269     break 2
11270   fi
11271 done
11272   done
11273 IFS=$as_save_IFS
11274 
11275   ;;
11276 esac
11277 fi
11278 TAIL=$ac_cv_path_TAIL
11279 if test -n "$TAIL"; then
11280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
11281 $as_echo "$TAIL" >&6; }
11282 else
11283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11284 $as_echo "no" >&6; }
11285 fi
11286 
11287 
11288           if test "x$TAIL" = x; then
11289             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11290           fi
11291         else
11292           # Otherwise we believe it is a complete path. Use it as it is.
11293           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5
11294 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;}
11295           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5
11296 $as_echo_n "checking for TAIL... " >&6; }
11297           if test ! -x "$tool_specified"; then
11298             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11299 $as_echo "not found" >&6; }
11300             as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5
11301           fi
11302           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11303 $as_echo "$tool_specified" >&6; }
11304         fi
11305       fi
11306     fi
11307 
11308   fi
11309 
11310 
11311 
11312   if test "x$TAIL" = x; then
11313     as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5
11314   fi
11315 
11316 
11317 
11318 
11319 
11320   # Publish this variable in the help.
11321 
11322 
11323   if [ -z "${TAR+x}" ]; then
11324     # The variable is not set by user, try to locate tool using the code snippet
11325     for ac_prog in gtar tar
11326 do
11327   # Extract the first word of "$ac_prog", so it can be a program name with args.
11328 set dummy $ac_prog; ac_word=$2
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11330 $as_echo_n "checking for $ac_word... " >&6; }
11331 if ${ac_cv_path_TAR+:} false; then :
11332   $as_echo_n "(cached) " >&6
11333 else
11334   case $TAR in
11335   [\\/]* | ?:[\\/]*)
11336   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
11337   ;;
11338   *)
11339   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11340 for as_dir in $PATH
11341 do
11342   IFS=$as_save_IFS
11343   test -z "$as_dir" && as_dir=.
11344     for ac_exec_ext in '' $ac_executable_extensions; do
11345   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11346     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
11347     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11348     break 2
11349   fi
11350 done
11351   done
11352 IFS=$as_save_IFS
11353 
11354   ;;
11355 esac
11356 fi
11357 TAR=$ac_cv_path_TAR
11358 if test -n "$TAR"; then
11359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
11360 $as_echo "$TAR" >&6; }
11361 else
11362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11363 $as_echo "no" >&6; }
11364 fi
11365 
11366 
11367   test -n "$TAR" && break
11368 done
11369 
11370   else
11371     # The variable is set, but is it from the command line or the environment?
11372 
11373     # Try to remove the string !TAR! from our list.
11374     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/}
11375     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11376       # If it failed, the variable was not from the command line. Ignore it,
11377       # but warn the user (except for BASH, which is always set by the calling BASH).
11378       if test "xTAR" != xBASH; then
11379         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5
11380 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;}
11381       fi
11382       # Try to locate tool using the code snippet
11383       for ac_prog in gtar tar
11384 do
11385   # Extract the first word of "$ac_prog", so it can be a program name with args.
11386 set dummy $ac_prog; ac_word=$2
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11388 $as_echo_n "checking for $ac_word... " >&6; }
11389 if ${ac_cv_path_TAR+:} false; then :
11390   $as_echo_n "(cached) " >&6
11391 else
11392   case $TAR in
11393   [\\/]* | ?:[\\/]*)
11394   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
11395   ;;
11396   *)
11397   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11398 for as_dir in $PATH
11399 do
11400   IFS=$as_save_IFS
11401   test -z "$as_dir" && as_dir=.
11402     for ac_exec_ext in '' $ac_executable_extensions; do
11403   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11404     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
11405     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11406     break 2
11407   fi
11408 done
11409   done
11410 IFS=$as_save_IFS
11411 
11412   ;;
11413 esac
11414 fi
11415 TAR=$ac_cv_path_TAR
11416 if test -n "$TAR"; then
11417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
11418 $as_echo "$TAR" >&6; }
11419 else
11420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11421 $as_echo "no" >&6; }
11422 fi
11423 
11424 
11425   test -n "$TAR" && break
11426 done
11427 
11428     else
11429       # If it succeeded, then it was overridden by the user. We will use it
11430       # for the tool.
11431 
11432       # First remove it from the list of overridden variables, so we can test
11433       # for unknown variables in the end.
11434       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11435 
11436       # Check if we try to supply an empty value
11437       if test "x$TAR" = x; then
11438         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TAR= (no value)" >&5
11439 $as_echo "$as_me: Setting user supplied tool TAR= (no value)" >&6;}
11440         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
11441 $as_echo_n "checking for TAR... " >&6; }
11442         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11443 $as_echo "disabled" >&6; }
11444       else
11445         # Check if the provided tool contains a complete path.
11446         tool_specified="$TAR"
11447         tool_basename="${tool_specified##*/}"
11448         if test "x$tool_basename" = "x$tool_specified"; then
11449           # A command without a complete path is provided, search $PATH.
11450           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5
11451 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;}
11452           # Extract the first word of "$tool_basename", so it can be a program name with args.
11453 set dummy $tool_basename; ac_word=$2
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11455 $as_echo_n "checking for $ac_word... " >&6; }
11456 if ${ac_cv_path_TAR+:} false; then :
11457   $as_echo_n "(cached) " >&6
11458 else
11459   case $TAR in
11460   [\\/]* | ?:[\\/]*)
11461   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
11462   ;;
11463   *)
11464   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11465 for as_dir in $PATH
11466 do
11467   IFS=$as_save_IFS
11468   test -z "$as_dir" && as_dir=.
11469     for ac_exec_ext in '' $ac_executable_extensions; do
11470   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11471     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
11472     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11473     break 2
11474   fi
11475 done
11476   done
11477 IFS=$as_save_IFS
11478 
11479   ;;
11480 esac
11481 fi
11482 TAR=$ac_cv_path_TAR
11483 if test -n "$TAR"; then
11484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
11485 $as_echo "$TAR" >&6; }
11486 else
11487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11488 $as_echo "no" >&6; }
11489 fi
11490 
11491 
11492           if test "x$TAR" = x; then
11493             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11494           fi
11495         else
11496           # Otherwise we believe it is a complete path. Use it as it is.
11497           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5
11498 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;}
11499           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
11500 $as_echo_n "checking for TAR... " >&6; }
11501           if test ! -x "$tool_specified"; then
11502             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11503 $as_echo "not found" >&6; }
11504             as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5
11505           fi
11506           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11507 $as_echo "$tool_specified" >&6; }
11508         fi
11509       fi
11510     fi
11511 
11512   fi
11513 
11514 
11515 
11516   if test "x$TAR" = x; then
11517     as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5
11518   fi
11519 
11520 
11521 
11522 
11523 
11524   # Publish this variable in the help.
11525 
11526 
11527   if [ -z "${TEE+x}" ]; then
11528     # The variable is not set by user, try to locate tool using the code snippet
11529     for ac_prog in tee
11530 do
11531   # Extract the first word of "$ac_prog", so it can be a program name with args.
11532 set dummy $ac_prog; ac_word=$2
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11534 $as_echo_n "checking for $ac_word... " >&6; }
11535 if ${ac_cv_path_TEE+:} false; then :
11536   $as_echo_n "(cached) " >&6
11537 else
11538   case $TEE in
11539   [\\/]* | ?:[\\/]*)
11540   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
11541   ;;
11542   *)
11543   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11544 for as_dir in $PATH
11545 do
11546   IFS=$as_save_IFS
11547   test -z "$as_dir" && as_dir=.
11548     for ac_exec_ext in '' $ac_executable_extensions; do
11549   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11550     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
11551     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11552     break 2
11553   fi
11554 done
11555   done
11556 IFS=$as_save_IFS
11557 
11558   ;;
11559 esac
11560 fi
11561 TEE=$ac_cv_path_TEE
11562 if test -n "$TEE"; then
11563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
11564 $as_echo "$TEE" >&6; }
11565 else
11566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11567 $as_echo "no" >&6; }
11568 fi
11569 
11570 
11571   test -n "$TEE" && break
11572 done
11573 
11574   else
11575     # The variable is set, but is it from the command line or the environment?
11576 
11577     # Try to remove the string !TEE! from our list.
11578     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/}
11579     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11580       # If it failed, the variable was not from the command line. Ignore it,
11581       # but warn the user (except for BASH, which is always set by the calling BASH).
11582       if test "xTEE" != xBASH; then
11583         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5
11584 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;}
11585       fi
11586       # Try to locate tool using the code snippet
11587       for ac_prog in tee
11588 do
11589   # Extract the first word of "$ac_prog", so it can be a program name with args.
11590 set dummy $ac_prog; ac_word=$2
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11592 $as_echo_n "checking for $ac_word... " >&6; }
11593 if ${ac_cv_path_TEE+:} false; then :
11594   $as_echo_n "(cached) " >&6
11595 else
11596   case $TEE in
11597   [\\/]* | ?:[\\/]*)
11598   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
11599   ;;
11600   *)
11601   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11602 for as_dir in $PATH
11603 do
11604   IFS=$as_save_IFS
11605   test -z "$as_dir" && as_dir=.
11606     for ac_exec_ext in '' $ac_executable_extensions; do
11607   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11608     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
11609     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11610     break 2
11611   fi
11612 done
11613   done
11614 IFS=$as_save_IFS
11615 
11616   ;;
11617 esac
11618 fi
11619 TEE=$ac_cv_path_TEE
11620 if test -n "$TEE"; then
11621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
11622 $as_echo "$TEE" >&6; }
11623 else
11624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11625 $as_echo "no" >&6; }
11626 fi
11627 
11628 
11629   test -n "$TEE" && break
11630 done
11631 
11632     else
11633       # If it succeeded, then it was overridden by the user. We will use it
11634       # for the tool.
11635 
11636       # First remove it from the list of overridden variables, so we can test
11637       # for unknown variables in the end.
11638       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11639 
11640       # Check if we try to supply an empty value
11641       if test "x$TEE" = x; then
11642         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TEE= (no value)" >&5
11643 $as_echo "$as_me: Setting user supplied tool TEE= (no value)" >&6;}
11644         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5
11645 $as_echo_n "checking for TEE... " >&6; }
11646         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11647 $as_echo "disabled" >&6; }
11648       else
11649         # Check if the provided tool contains a complete path.
11650         tool_specified="$TEE"
11651         tool_basename="${tool_specified##*/}"
11652         if test "x$tool_basename" = "x$tool_specified"; then
11653           # A command without a complete path is provided, search $PATH.
11654           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5
11655 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;}
11656           # Extract the first word of "$tool_basename", so it can be a program name with args.
11657 set dummy $tool_basename; ac_word=$2
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11659 $as_echo_n "checking for $ac_word... " >&6; }
11660 if ${ac_cv_path_TEE+:} false; then :
11661   $as_echo_n "(cached) " >&6
11662 else
11663   case $TEE in
11664   [\\/]* | ?:[\\/]*)
11665   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
11666   ;;
11667   *)
11668   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11669 for as_dir in $PATH
11670 do
11671   IFS=$as_save_IFS
11672   test -z "$as_dir" && as_dir=.
11673     for ac_exec_ext in '' $ac_executable_extensions; do
11674   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11675     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
11676     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11677     break 2
11678   fi
11679 done
11680   done
11681 IFS=$as_save_IFS
11682 
11683   ;;
11684 esac
11685 fi
11686 TEE=$ac_cv_path_TEE
11687 if test -n "$TEE"; then
11688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
11689 $as_echo "$TEE" >&6; }
11690 else
11691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11692 $as_echo "no" >&6; }
11693 fi
11694 
11695 
11696           if test "x$TEE" = x; then
11697             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11698           fi
11699         else
11700           # Otherwise we believe it is a complete path. Use it as it is.
11701           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5
11702 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;}
11703           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5
11704 $as_echo_n "checking for TEE... " >&6; }
11705           if test ! -x "$tool_specified"; then
11706             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11707 $as_echo "not found" >&6; }
11708             as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5
11709           fi
11710           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11711 $as_echo "$tool_specified" >&6; }
11712         fi
11713       fi
11714     fi
11715 
11716   fi
11717 
11718 
11719 
11720   if test "x$TEE" = x; then
11721     as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5
11722   fi
11723 
11724 
11725 
11726 
11727 
11728   # Publish this variable in the help.
11729 
11730 
11731   if [ -z "${TOUCH+x}" ]; then
11732     # The variable is not set by user, try to locate tool using the code snippet
11733     for ac_prog in touch
11734 do
11735   # Extract the first word of "$ac_prog", so it can be a program name with args.
11736 set dummy $ac_prog; ac_word=$2
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11738 $as_echo_n "checking for $ac_word... " >&6; }
11739 if ${ac_cv_path_TOUCH+:} false; then :
11740   $as_echo_n "(cached) " >&6
11741 else
11742   case $TOUCH in
11743   [\\/]* | ?:[\\/]*)
11744   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
11745   ;;
11746   *)
11747   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11748 for as_dir in $PATH
11749 do
11750   IFS=$as_save_IFS
11751   test -z "$as_dir" && as_dir=.
11752     for ac_exec_ext in '' $ac_executable_extensions; do
11753   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11754     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
11755     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11756     break 2
11757   fi
11758 done
11759   done
11760 IFS=$as_save_IFS
11761 
11762   ;;
11763 esac
11764 fi
11765 TOUCH=$ac_cv_path_TOUCH
11766 if test -n "$TOUCH"; then
11767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
11768 $as_echo "$TOUCH" >&6; }
11769 else
11770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11771 $as_echo "no" >&6; }
11772 fi
11773 
11774 
11775   test -n "$TOUCH" && break
11776 done
11777 
11778   else
11779     # The variable is set, but is it from the command line or the environment?
11780 
11781     # Try to remove the string !TOUCH! from our list.
11782     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/}
11783     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11784       # If it failed, the variable was not from the command line. Ignore it,
11785       # but warn the user (except for BASH, which is always set by the calling BASH).
11786       if test "xTOUCH" != xBASH; then
11787         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5
11788 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;}
11789       fi
11790       # Try to locate tool using the code snippet
11791       for ac_prog in touch
11792 do
11793   # Extract the first word of "$ac_prog", so it can be a program name with args.
11794 set dummy $ac_prog; ac_word=$2
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11796 $as_echo_n "checking for $ac_word... " >&6; }
11797 if ${ac_cv_path_TOUCH+:} false; then :
11798   $as_echo_n "(cached) " >&6
11799 else
11800   case $TOUCH in
11801   [\\/]* | ?:[\\/]*)
11802   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
11803   ;;
11804   *)
11805   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11806 for as_dir in $PATH
11807 do
11808   IFS=$as_save_IFS
11809   test -z "$as_dir" && as_dir=.
11810     for ac_exec_ext in '' $ac_executable_extensions; do
11811   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11812     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
11813     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11814     break 2
11815   fi
11816 done
11817   done
11818 IFS=$as_save_IFS
11819 
11820   ;;
11821 esac
11822 fi
11823 TOUCH=$ac_cv_path_TOUCH
11824 if test -n "$TOUCH"; then
11825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
11826 $as_echo "$TOUCH" >&6; }
11827 else
11828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11829 $as_echo "no" >&6; }
11830 fi
11831 
11832 
11833   test -n "$TOUCH" && break
11834 done
11835 
11836     else
11837       # If it succeeded, then it was overridden by the user. We will use it
11838       # for the tool.
11839 
11840       # First remove it from the list of overridden variables, so we can test
11841       # for unknown variables in the end.
11842       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11843 
11844       # Check if we try to supply an empty value
11845       if test "x$TOUCH" = x; then
11846         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TOUCH= (no value)" >&5
11847 $as_echo "$as_me: Setting user supplied tool TOUCH= (no value)" >&6;}
11848         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5
11849 $as_echo_n "checking for TOUCH... " >&6; }
11850         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11851 $as_echo "disabled" >&6; }
11852       else
11853         # Check if the provided tool contains a complete path.
11854         tool_specified="$TOUCH"
11855         tool_basename="${tool_specified##*/}"
11856         if test "x$tool_basename" = "x$tool_specified"; then
11857           # A command without a complete path is provided, search $PATH.
11858           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5
11859 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;}
11860           # Extract the first word of "$tool_basename", so it can be a program name with args.
11861 set dummy $tool_basename; ac_word=$2
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11863 $as_echo_n "checking for $ac_word... " >&6; }
11864 if ${ac_cv_path_TOUCH+:} false; then :
11865   $as_echo_n "(cached) " >&6
11866 else
11867   case $TOUCH in
11868   [\\/]* | ?:[\\/]*)
11869   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
11870   ;;
11871   *)
11872   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11873 for as_dir in $PATH
11874 do
11875   IFS=$as_save_IFS
11876   test -z "$as_dir" && as_dir=.
11877     for ac_exec_ext in '' $ac_executable_extensions; do
11878   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11879     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
11880     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11881     break 2
11882   fi
11883 done
11884   done
11885 IFS=$as_save_IFS
11886 
11887   ;;
11888 esac
11889 fi
11890 TOUCH=$ac_cv_path_TOUCH
11891 if test -n "$TOUCH"; then
11892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
11893 $as_echo "$TOUCH" >&6; }
11894 else
11895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11896 $as_echo "no" >&6; }
11897 fi
11898 
11899 
11900           if test "x$TOUCH" = x; then
11901             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11902           fi
11903         else
11904           # Otherwise we believe it is a complete path. Use it as it is.
11905           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5
11906 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;}
11907           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5
11908 $as_echo_n "checking for TOUCH... " >&6; }
11909           if test ! -x "$tool_specified"; then
11910             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11911 $as_echo "not found" >&6; }
11912             as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5
11913           fi
11914           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11915 $as_echo "$tool_specified" >&6; }
11916         fi
11917       fi
11918     fi
11919 
11920   fi
11921 
11922 
11923 
11924   if test "x$TOUCH" = x; then
11925     as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5
11926   fi
11927 
11928 
11929 
11930 
11931 
11932   # Publish this variable in the help.
11933 
11934 
11935   if [ -z "${TR+x}" ]; then
11936     # The variable is not set by user, try to locate tool using the code snippet
11937     for ac_prog in tr
11938 do
11939   # Extract the first word of "$ac_prog", so it can be a program name with args.
11940 set dummy $ac_prog; ac_word=$2
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11942 $as_echo_n "checking for $ac_word... " >&6; }
11943 if ${ac_cv_path_TR+:} false; then :
11944   $as_echo_n "(cached) " >&6
11945 else
11946   case $TR in
11947   [\\/]* | ?:[\\/]*)
11948   ac_cv_path_TR="$TR" # Let the user override the test with a path.
11949   ;;
11950   *)
11951   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11952 for as_dir in $PATH
11953 do
11954   IFS=$as_save_IFS
11955   test -z "$as_dir" && as_dir=.
11956     for ac_exec_ext in '' $ac_executable_extensions; do
11957   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11958     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
11959     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11960     break 2
11961   fi
11962 done
11963   done
11964 IFS=$as_save_IFS
11965 
11966   ;;
11967 esac
11968 fi
11969 TR=$ac_cv_path_TR
11970 if test -n "$TR"; then
11971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
11972 $as_echo "$TR" >&6; }
11973 else
11974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11975 $as_echo "no" >&6; }
11976 fi
11977 
11978 
11979   test -n "$TR" && break
11980 done
11981 
11982   else
11983     # The variable is set, but is it from the command line or the environment?
11984 
11985     # Try to remove the string !TR! from our list.
11986     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/}
11987     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11988       # If it failed, the variable was not from the command line. Ignore it,
11989       # but warn the user (except for BASH, which is always set by the calling BASH).
11990       if test "xTR" != xBASH; then
11991         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5
11992 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;}
11993       fi
11994       # Try to locate tool using the code snippet
11995       for ac_prog in tr
11996 do
11997   # Extract the first word of "$ac_prog", so it can be a program name with args.
11998 set dummy $ac_prog; ac_word=$2
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12000 $as_echo_n "checking for $ac_word... " >&6; }
12001 if ${ac_cv_path_TR+:} false; then :
12002   $as_echo_n "(cached) " >&6
12003 else
12004   case $TR in
12005   [\\/]* | ?:[\\/]*)
12006   ac_cv_path_TR="$TR" # Let the user override the test with a path.
12007   ;;
12008   *)
12009   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12010 for as_dir in $PATH
12011 do
12012   IFS=$as_save_IFS
12013   test -z "$as_dir" && as_dir=.
12014     for ac_exec_ext in '' $ac_executable_extensions; do
12015   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12016     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
12017     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12018     break 2
12019   fi
12020 done
12021   done
12022 IFS=$as_save_IFS
12023 
12024   ;;
12025 esac
12026 fi
12027 TR=$ac_cv_path_TR
12028 if test -n "$TR"; then
12029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
12030 $as_echo "$TR" >&6; }
12031 else
12032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12033 $as_echo "no" >&6; }
12034 fi
12035 
12036 
12037   test -n "$TR" && break
12038 done
12039 
12040     else
12041       # If it succeeded, then it was overridden by the user. We will use it
12042       # for the tool.
12043 
12044       # First remove it from the list of overridden variables, so we can test
12045       # for unknown variables in the end.
12046       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12047 
12048       # Check if we try to supply an empty value
12049       if test "x$TR" = x; then
12050         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TR= (no value)" >&5
12051 $as_echo "$as_me: Setting user supplied tool TR= (no value)" >&6;}
12052         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5
12053 $as_echo_n "checking for TR... " >&6; }
12054         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12055 $as_echo "disabled" >&6; }
12056       else
12057         # Check if the provided tool contains a complete path.
12058         tool_specified="$TR"
12059         tool_basename="${tool_specified##*/}"
12060         if test "x$tool_basename" = "x$tool_specified"; then
12061           # A command without a complete path is provided, search $PATH.
12062           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5
12063 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;}
12064           # Extract the first word of "$tool_basename", so it can be a program name with args.
12065 set dummy $tool_basename; ac_word=$2
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12067 $as_echo_n "checking for $ac_word... " >&6; }
12068 if ${ac_cv_path_TR+:} false; then :
12069   $as_echo_n "(cached) " >&6
12070 else
12071   case $TR in
12072   [\\/]* | ?:[\\/]*)
12073   ac_cv_path_TR="$TR" # Let the user override the test with a path.
12074   ;;
12075   *)
12076   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12077 for as_dir in $PATH
12078 do
12079   IFS=$as_save_IFS
12080   test -z "$as_dir" && as_dir=.
12081     for ac_exec_ext in '' $ac_executable_extensions; do
12082   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12083     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
12084     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12085     break 2
12086   fi
12087 done
12088   done
12089 IFS=$as_save_IFS
12090 
12091   ;;
12092 esac
12093 fi
12094 TR=$ac_cv_path_TR
12095 if test -n "$TR"; then
12096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
12097 $as_echo "$TR" >&6; }
12098 else
12099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12100 $as_echo "no" >&6; }
12101 fi
12102 
12103 
12104           if test "x$TR" = x; then
12105             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12106           fi
12107         else
12108           # Otherwise we believe it is a complete path. Use it as it is.
12109           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5
12110 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;}
12111           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5
12112 $as_echo_n "checking for TR... " >&6; }
12113           if test ! -x "$tool_specified"; then
12114             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12115 $as_echo "not found" >&6; }
12116             as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5
12117           fi
12118           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12119 $as_echo "$tool_specified" >&6; }
12120         fi
12121       fi
12122     fi
12123 
12124   fi
12125 
12126 
12127 
12128   if test "x$TR" = x; then
12129     as_fn_error $? "Could not find required tool for TR" "$LINENO" 5
12130   fi
12131 
12132 
12133 
12134 
12135 
12136   # Publish this variable in the help.
12137 
12138 
12139   if [ -z "${UNAME+x}" ]; then
12140     # The variable is not set by user, try to locate tool using the code snippet
12141     for ac_prog in uname
12142 do
12143   # Extract the first word of "$ac_prog", so it can be a program name with args.
12144 set dummy $ac_prog; ac_word=$2
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12146 $as_echo_n "checking for $ac_word... " >&6; }
12147 if ${ac_cv_path_UNAME+:} false; then :
12148   $as_echo_n "(cached) " >&6
12149 else
12150   case $UNAME in
12151   [\\/]* | ?:[\\/]*)
12152   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
12153   ;;
12154   *)
12155   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12156 for as_dir in $PATH
12157 do
12158   IFS=$as_save_IFS
12159   test -z "$as_dir" && as_dir=.
12160     for ac_exec_ext in '' $ac_executable_extensions; do
12161   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12162     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
12163     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12164     break 2
12165   fi
12166 done
12167   done
12168 IFS=$as_save_IFS
12169 
12170   ;;
12171 esac
12172 fi
12173 UNAME=$ac_cv_path_UNAME
12174 if test -n "$UNAME"; then
12175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
12176 $as_echo "$UNAME" >&6; }
12177 else
12178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12179 $as_echo "no" >&6; }
12180 fi
12181 
12182 
12183   test -n "$UNAME" && break
12184 done
12185 
12186   else
12187     # The variable is set, but is it from the command line or the environment?
12188 
12189     # Try to remove the string !UNAME! from our list.
12190     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/}
12191     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12192       # If it failed, the variable was not from the command line. Ignore it,
12193       # but warn the user (except for BASH, which is always set by the calling BASH).
12194       if test "xUNAME" != xBASH; then
12195         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5
12196 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;}
12197       fi
12198       # Try to locate tool using the code snippet
12199       for ac_prog in uname
12200 do
12201   # Extract the first word of "$ac_prog", so it can be a program name with args.
12202 set dummy $ac_prog; ac_word=$2
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12204 $as_echo_n "checking for $ac_word... " >&6; }
12205 if ${ac_cv_path_UNAME+:} false; then :
12206   $as_echo_n "(cached) " >&6
12207 else
12208   case $UNAME in
12209   [\\/]* | ?:[\\/]*)
12210   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
12211   ;;
12212   *)
12213   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12214 for as_dir in $PATH
12215 do
12216   IFS=$as_save_IFS
12217   test -z "$as_dir" && as_dir=.
12218     for ac_exec_ext in '' $ac_executable_extensions; do
12219   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12220     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
12221     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12222     break 2
12223   fi
12224 done
12225   done
12226 IFS=$as_save_IFS
12227 
12228   ;;
12229 esac
12230 fi
12231 UNAME=$ac_cv_path_UNAME
12232 if test -n "$UNAME"; then
12233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
12234 $as_echo "$UNAME" >&6; }
12235 else
12236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12237 $as_echo "no" >&6; }
12238 fi
12239 
12240 
12241   test -n "$UNAME" && break
12242 done
12243 
12244     else
12245       # If it succeeded, then it was overridden by the user. We will use it
12246       # for the tool.
12247 
12248       # First remove it from the list of overridden variables, so we can test
12249       # for unknown variables in the end.
12250       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12251 
12252       # Check if we try to supply an empty value
12253       if test "x$UNAME" = x; then
12254         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNAME= (no value)" >&5
12255 $as_echo "$as_me: Setting user supplied tool UNAME= (no value)" >&6;}
12256         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5
12257 $as_echo_n "checking for UNAME... " >&6; }
12258         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12259 $as_echo "disabled" >&6; }
12260       else
12261         # Check if the provided tool contains a complete path.
12262         tool_specified="$UNAME"
12263         tool_basename="${tool_specified##*/}"
12264         if test "x$tool_basename" = "x$tool_specified"; then
12265           # A command without a complete path is provided, search $PATH.
12266           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5
12267 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;}
12268           # Extract the first word of "$tool_basename", so it can be a program name with args.
12269 set dummy $tool_basename; ac_word=$2
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12271 $as_echo_n "checking for $ac_word... " >&6; }
12272 if ${ac_cv_path_UNAME+:} false; then :
12273   $as_echo_n "(cached) " >&6
12274 else
12275   case $UNAME in
12276   [\\/]* | ?:[\\/]*)
12277   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
12278   ;;
12279   *)
12280   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12281 for as_dir in $PATH
12282 do
12283   IFS=$as_save_IFS
12284   test -z "$as_dir" && as_dir=.
12285     for ac_exec_ext in '' $ac_executable_extensions; do
12286   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12287     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
12288     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12289     break 2
12290   fi
12291 done
12292   done
12293 IFS=$as_save_IFS
12294 
12295   ;;
12296 esac
12297 fi
12298 UNAME=$ac_cv_path_UNAME
12299 if test -n "$UNAME"; then
12300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
12301 $as_echo "$UNAME" >&6; }
12302 else
12303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12304 $as_echo "no" >&6; }
12305 fi
12306 
12307 
12308           if test "x$UNAME" = x; then
12309             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12310           fi
12311         else
12312           # Otherwise we believe it is a complete path. Use it as it is.
12313           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5
12314 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;}
12315           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5
12316 $as_echo_n "checking for UNAME... " >&6; }
12317           if test ! -x "$tool_specified"; then
12318             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12319 $as_echo "not found" >&6; }
12320             as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
12321           fi
12322           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12323 $as_echo "$tool_specified" >&6; }
12324         fi
12325       fi
12326     fi
12327 
12328   fi
12329 
12330 
12331 
12332   if test "x$UNAME" = x; then
12333     as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5
12334   fi
12335 
12336 
12337 
12338 
12339 
12340   # Publish this variable in the help.
12341 
12342 
12343   if [ -z "${UNIQ+x}" ]; then
12344     # The variable is not set by user, try to locate tool using the code snippet
12345     for ac_prog in uniq
12346 do
12347   # Extract the first word of "$ac_prog", so it can be a program name with args.
12348 set dummy $ac_prog; ac_word=$2
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12350 $as_echo_n "checking for $ac_word... " >&6; }
12351 if ${ac_cv_path_UNIQ+:} false; then :
12352   $as_echo_n "(cached) " >&6
12353 else
12354   case $UNIQ in
12355   [\\/]* | ?:[\\/]*)
12356   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
12357   ;;
12358   *)
12359   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12360 for as_dir in $PATH
12361 do
12362   IFS=$as_save_IFS
12363   test -z "$as_dir" && as_dir=.
12364     for ac_exec_ext in '' $ac_executable_extensions; do
12365   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12366     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
12367     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12368     break 2
12369   fi
12370 done
12371   done
12372 IFS=$as_save_IFS
12373 
12374   ;;
12375 esac
12376 fi
12377 UNIQ=$ac_cv_path_UNIQ
12378 if test -n "$UNIQ"; then
12379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
12380 $as_echo "$UNIQ" >&6; }
12381 else
12382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12383 $as_echo "no" >&6; }
12384 fi
12385 
12386 
12387   test -n "$UNIQ" && break
12388 done
12389 
12390   else
12391     # The variable is set, but is it from the command line or the environment?
12392 
12393     # Try to remove the string !UNIQ! from our list.
12394     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/}
12395     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12396       # If it failed, the variable was not from the command line. Ignore it,
12397       # but warn the user (except for BASH, which is always set by the calling BASH).
12398       if test "xUNIQ" != xBASH; then
12399         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5
12400 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;}
12401       fi
12402       # Try to locate tool using the code snippet
12403       for ac_prog in uniq
12404 do
12405   # Extract the first word of "$ac_prog", so it can be a program name with args.
12406 set dummy $ac_prog; ac_word=$2
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12408 $as_echo_n "checking for $ac_word... " >&6; }
12409 if ${ac_cv_path_UNIQ+:} false; then :
12410   $as_echo_n "(cached) " >&6
12411 else
12412   case $UNIQ in
12413   [\\/]* | ?:[\\/]*)
12414   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
12415   ;;
12416   *)
12417   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12418 for as_dir in $PATH
12419 do
12420   IFS=$as_save_IFS
12421   test -z "$as_dir" && as_dir=.
12422     for ac_exec_ext in '' $ac_executable_extensions; do
12423   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12424     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
12425     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12426     break 2
12427   fi
12428 done
12429   done
12430 IFS=$as_save_IFS
12431 
12432   ;;
12433 esac
12434 fi
12435 UNIQ=$ac_cv_path_UNIQ
12436 if test -n "$UNIQ"; then
12437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
12438 $as_echo "$UNIQ" >&6; }
12439 else
12440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12441 $as_echo "no" >&6; }
12442 fi
12443 
12444 
12445   test -n "$UNIQ" && break
12446 done
12447 
12448     else
12449       # If it succeeded, then it was overridden by the user. We will use it
12450       # for the tool.
12451 
12452       # First remove it from the list of overridden variables, so we can test
12453       # for unknown variables in the end.
12454       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12455 
12456       # Check if we try to supply an empty value
12457       if test "x$UNIQ" = x; then
12458         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNIQ= (no value)" >&5
12459 $as_echo "$as_me: Setting user supplied tool UNIQ= (no value)" >&6;}
12460         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5
12461 $as_echo_n "checking for UNIQ... " >&6; }
12462         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12463 $as_echo "disabled" >&6; }
12464       else
12465         # Check if the provided tool contains a complete path.
12466         tool_specified="$UNIQ"
12467         tool_basename="${tool_specified##*/}"
12468         if test "x$tool_basename" = "x$tool_specified"; then
12469           # A command without a complete path is provided, search $PATH.
12470           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5
12471 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;}
12472           # Extract the first word of "$tool_basename", so it can be a program name with args.
12473 set dummy $tool_basename; ac_word=$2
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12475 $as_echo_n "checking for $ac_word... " >&6; }
12476 if ${ac_cv_path_UNIQ+:} false; then :
12477   $as_echo_n "(cached) " >&6
12478 else
12479   case $UNIQ in
12480   [\\/]* | ?:[\\/]*)
12481   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
12482   ;;
12483   *)
12484   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12485 for as_dir in $PATH
12486 do
12487   IFS=$as_save_IFS
12488   test -z "$as_dir" && as_dir=.
12489     for ac_exec_ext in '' $ac_executable_extensions; do
12490   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12491     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
12492     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12493     break 2
12494   fi
12495 done
12496   done
12497 IFS=$as_save_IFS
12498 
12499   ;;
12500 esac
12501 fi
12502 UNIQ=$ac_cv_path_UNIQ
12503 if test -n "$UNIQ"; then
12504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
12505 $as_echo "$UNIQ" >&6; }
12506 else
12507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12508 $as_echo "no" >&6; }
12509 fi
12510 
12511 
12512           if test "x$UNIQ" = x; then
12513             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12514           fi
12515         else
12516           # Otherwise we believe it is a complete path. Use it as it is.
12517           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5
12518 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;}
12519           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5
12520 $as_echo_n "checking for UNIQ... " >&6; }
12521           if test ! -x "$tool_specified"; then
12522             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12523 $as_echo "not found" >&6; }
12524             as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5
12525           fi
12526           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12527 $as_echo "$tool_specified" >&6; }
12528         fi
12529       fi
12530     fi
12531 
12532   fi
12533 
12534 
12535 
12536   if test "x$UNIQ" = x; then
12537     as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5
12538   fi
12539 
12540 
12541 
12542 
12543 
12544   # Publish this variable in the help.
12545 
12546 
12547   if [ -z "${WC+x}" ]; then
12548     # The variable is not set by user, try to locate tool using the code snippet
12549     for ac_prog in wc
12550 do
12551   # Extract the first word of "$ac_prog", so it can be a program name with args.
12552 set dummy $ac_prog; ac_word=$2
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12554 $as_echo_n "checking for $ac_word... " >&6; }
12555 if ${ac_cv_path_WC+:} false; then :
12556   $as_echo_n "(cached) " >&6
12557 else
12558   case $WC in
12559   [\\/]* | ?:[\\/]*)
12560   ac_cv_path_WC="$WC" # Let the user override the test with a path.
12561   ;;
12562   *)
12563   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12564 for as_dir in $PATH
12565 do
12566   IFS=$as_save_IFS
12567   test -z "$as_dir" && as_dir=.
12568     for ac_exec_ext in '' $ac_executable_extensions; do
12569   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12570     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
12571     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12572     break 2
12573   fi
12574 done
12575   done
12576 IFS=$as_save_IFS
12577 
12578   ;;
12579 esac
12580 fi
12581 WC=$ac_cv_path_WC
12582 if test -n "$WC"; then
12583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
12584 $as_echo "$WC" >&6; }
12585 else
12586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12587 $as_echo "no" >&6; }
12588 fi
12589 
12590 
12591   test -n "$WC" && break
12592 done
12593 
12594   else
12595     # The variable is set, but is it from the command line or the environment?
12596 
12597     # Try to remove the string !WC! from our list.
12598     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/}
12599     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12600       # If it failed, the variable was not from the command line. Ignore it,
12601       # but warn the user (except for BASH, which is always set by the calling BASH).
12602       if test "xWC" != xBASH; then
12603         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5
12604 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;}
12605       fi
12606       # Try to locate tool using the code snippet
12607       for ac_prog in wc
12608 do
12609   # Extract the first word of "$ac_prog", so it can be a program name with args.
12610 set dummy $ac_prog; ac_word=$2
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12612 $as_echo_n "checking for $ac_word... " >&6; }
12613 if ${ac_cv_path_WC+:} false; then :
12614   $as_echo_n "(cached) " >&6
12615 else
12616   case $WC in
12617   [\\/]* | ?:[\\/]*)
12618   ac_cv_path_WC="$WC" # Let the user override the test with a path.
12619   ;;
12620   *)
12621   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12622 for as_dir in $PATH
12623 do
12624   IFS=$as_save_IFS
12625   test -z "$as_dir" && as_dir=.
12626     for ac_exec_ext in '' $ac_executable_extensions; do
12627   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12628     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
12629     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12630     break 2
12631   fi
12632 done
12633   done
12634 IFS=$as_save_IFS
12635 
12636   ;;
12637 esac
12638 fi
12639 WC=$ac_cv_path_WC
12640 if test -n "$WC"; then
12641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
12642 $as_echo "$WC" >&6; }
12643 else
12644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12645 $as_echo "no" >&6; }
12646 fi
12647 
12648 
12649   test -n "$WC" && break
12650 done
12651 
12652     else
12653       # If it succeeded, then it was overridden by the user. We will use it
12654       # for the tool.
12655 
12656       # First remove it from the list of overridden variables, so we can test
12657       # for unknown variables in the end.
12658       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12659 
12660       # Check if we try to supply an empty value
12661       if test "x$WC" = x; then
12662         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool WC= (no value)" >&5
12663 $as_echo "$as_me: Setting user supplied tool WC= (no value)" >&6;}
12664         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5
12665 $as_echo_n "checking for WC... " >&6; }
12666         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12667 $as_echo "disabled" >&6; }
12668       else
12669         # Check if the provided tool contains a complete path.
12670         tool_specified="$WC"
12671         tool_basename="${tool_specified##*/}"
12672         if test "x$tool_basename" = "x$tool_specified"; then
12673           # A command without a complete path is provided, search $PATH.
12674           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5
12675 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;}
12676           # Extract the first word of "$tool_basename", so it can be a program name with args.
12677 set dummy $tool_basename; ac_word=$2
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12679 $as_echo_n "checking for $ac_word... " >&6; }
12680 if ${ac_cv_path_WC+:} false; then :
12681   $as_echo_n "(cached) " >&6
12682 else
12683   case $WC in
12684   [\\/]* | ?:[\\/]*)
12685   ac_cv_path_WC="$WC" # Let the user override the test with a path.
12686   ;;
12687   *)
12688   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12689 for as_dir in $PATH
12690 do
12691   IFS=$as_save_IFS
12692   test -z "$as_dir" && as_dir=.
12693     for ac_exec_ext in '' $ac_executable_extensions; do
12694   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12695     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
12696     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12697     break 2
12698   fi
12699 done
12700   done
12701 IFS=$as_save_IFS
12702 
12703   ;;
12704 esac
12705 fi
12706 WC=$ac_cv_path_WC
12707 if test -n "$WC"; then
12708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
12709 $as_echo "$WC" >&6; }
12710 else
12711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12712 $as_echo "no" >&6; }
12713 fi
12714 
12715 
12716           if test "x$WC" = x; then
12717             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12718           fi
12719         else
12720           # Otherwise we believe it is a complete path. Use it as it is.
12721           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5
12722 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;}
12723           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5
12724 $as_echo_n "checking for WC... " >&6; }
12725           if test ! -x "$tool_specified"; then
12726             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12727 $as_echo "not found" >&6; }
12728             as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5
12729           fi
12730           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12731 $as_echo "$tool_specified" >&6; }
12732         fi
12733       fi
12734     fi
12735 
12736   fi
12737 
12738 
12739 
12740   if test "x$WC" = x; then
12741     as_fn_error $? "Could not find required tool for WC" "$LINENO" 5
12742   fi
12743 
12744 
12745 
12746 
12747 
12748   # Publish this variable in the help.
12749 
12750 
12751   if [ -z "${WHICH+x}" ]; then
12752     # The variable is not set by user, try to locate tool using the code snippet
12753     for ac_prog in which
12754 do
12755   # Extract the first word of "$ac_prog", so it can be a program name with args.
12756 set dummy $ac_prog; ac_word=$2
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12758 $as_echo_n "checking for $ac_word... " >&6; }
12759 if ${ac_cv_path_WHICH+:} false; then :
12760   $as_echo_n "(cached) " >&6
12761 else
12762   case $WHICH in
12763   [\\/]* | ?:[\\/]*)
12764   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
12765   ;;
12766   *)
12767   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12768 for as_dir in $PATH
12769 do
12770   IFS=$as_save_IFS
12771   test -z "$as_dir" && as_dir=.
12772     for ac_exec_ext in '' $ac_executable_extensions; do
12773   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12774     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
12775     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12776     break 2
12777   fi
12778 done
12779   done
12780 IFS=$as_save_IFS
12781 
12782   ;;
12783 esac
12784 fi
12785 WHICH=$ac_cv_path_WHICH
12786 if test -n "$WHICH"; then
12787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
12788 $as_echo "$WHICH" >&6; }
12789 else
12790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12791 $as_echo "no" >&6; }
12792 fi
12793 
12794 
12795   test -n "$WHICH" && break
12796 done
12797 
12798   else
12799     # The variable is set, but is it from the command line or the environment?
12800 
12801     # Try to remove the string !WHICH! from our list.
12802     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/}
12803     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12804       # If it failed, the variable was not from the command line. Ignore it,
12805       # but warn the user (except for BASH, which is always set by the calling BASH).
12806       if test "xWHICH" != xBASH; then
12807         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5
12808 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;}
12809       fi
12810       # Try to locate tool using the code snippet
12811       for ac_prog in which
12812 do
12813   # Extract the first word of "$ac_prog", so it can be a program name with args.
12814 set dummy $ac_prog; ac_word=$2
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12816 $as_echo_n "checking for $ac_word... " >&6; }
12817 if ${ac_cv_path_WHICH+:} false; then :
12818   $as_echo_n "(cached) " >&6
12819 else
12820   case $WHICH in
12821   [\\/]* | ?:[\\/]*)
12822   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
12823   ;;
12824   *)
12825   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12826 for as_dir in $PATH
12827 do
12828   IFS=$as_save_IFS
12829   test -z "$as_dir" && as_dir=.
12830     for ac_exec_ext in '' $ac_executable_extensions; do
12831   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12832     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
12833     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12834     break 2
12835   fi
12836 done
12837   done
12838 IFS=$as_save_IFS
12839 
12840   ;;
12841 esac
12842 fi
12843 WHICH=$ac_cv_path_WHICH
12844 if test -n "$WHICH"; then
12845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
12846 $as_echo "$WHICH" >&6; }
12847 else
12848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12849 $as_echo "no" >&6; }
12850 fi
12851 
12852 
12853   test -n "$WHICH" && break
12854 done
12855 
12856     else
12857       # If it succeeded, then it was overridden by the user. We will use it
12858       # for the tool.
12859 
12860       # First remove it from the list of overridden variables, so we can test
12861       # for unknown variables in the end.
12862       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12863 
12864       # Check if we try to supply an empty value
12865       if test "x$WHICH" = x; then
12866         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool WHICH= (no value)" >&5
12867 $as_echo "$as_me: Setting user supplied tool WHICH= (no value)" >&6;}
12868         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5
12869 $as_echo_n "checking for WHICH... " >&6; }
12870         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12871 $as_echo "disabled" >&6; }
12872       else
12873         # Check if the provided tool contains a complete path.
12874         tool_specified="$WHICH"
12875         tool_basename="${tool_specified##*/}"
12876         if test "x$tool_basename" = "x$tool_specified"; then
12877           # A command without a complete path is provided, search $PATH.
12878           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5
12879 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;}
12880           # Extract the first word of "$tool_basename", so it can be a program name with args.
12881 set dummy $tool_basename; ac_word=$2
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12883 $as_echo_n "checking for $ac_word... " >&6; }
12884 if ${ac_cv_path_WHICH+:} false; then :
12885   $as_echo_n "(cached) " >&6
12886 else
12887   case $WHICH in
12888   [\\/]* | ?:[\\/]*)
12889   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
12890   ;;
12891   *)
12892   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12893 for as_dir in $PATH
12894 do
12895   IFS=$as_save_IFS
12896   test -z "$as_dir" && as_dir=.
12897     for ac_exec_ext in '' $ac_executable_extensions; do
12898   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12899     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
12900     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12901     break 2
12902   fi
12903 done
12904   done
12905 IFS=$as_save_IFS
12906 
12907   ;;
12908 esac
12909 fi
12910 WHICH=$ac_cv_path_WHICH
12911 if test -n "$WHICH"; then
12912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
12913 $as_echo "$WHICH" >&6; }
12914 else
12915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12916 $as_echo "no" >&6; }
12917 fi
12918 
12919 
12920           if test "x$WHICH" = x; then
12921             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12922           fi
12923         else
12924           # Otherwise we believe it is a complete path. Use it as it is.
12925           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5
12926 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;}
12927           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5
12928 $as_echo_n "checking for WHICH... " >&6; }
12929           if test ! -x "$tool_specified"; then
12930             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12931 $as_echo "not found" >&6; }
12932             as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5
12933           fi
12934           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12935 $as_echo "$tool_specified" >&6; }
12936         fi
12937       fi
12938     fi
12939 
12940   fi
12941 
12942 
12943 
12944   if test "x$WHICH" = x; then
12945     as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5
12946   fi
12947 
12948 
12949 
12950 
12951 
12952   # Publish this variable in the help.
12953 
12954 
12955   if [ -z "${XARGS+x}" ]; then
12956     # The variable is not set by user, try to locate tool using the code snippet
12957     for ac_prog in xargs
12958 do
12959   # Extract the first word of "$ac_prog", so it can be a program name with args.
12960 set dummy $ac_prog; ac_word=$2
12961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12962 $as_echo_n "checking for $ac_word... " >&6; }
12963 if ${ac_cv_path_XARGS+:} false; then :
12964   $as_echo_n "(cached) " >&6
12965 else
12966   case $XARGS in
12967   [\\/]* | ?:[\\/]*)
12968   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
12969   ;;
12970   *)
12971   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12972 for as_dir in $PATH
12973 do
12974   IFS=$as_save_IFS
12975   test -z "$as_dir" && as_dir=.
12976     for ac_exec_ext in '' $ac_executable_extensions; do
12977   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12978     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
12979     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12980     break 2
12981   fi
12982 done
12983   done
12984 IFS=$as_save_IFS
12985 
12986   ;;
12987 esac
12988 fi
12989 XARGS=$ac_cv_path_XARGS
12990 if test -n "$XARGS"; then
12991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
12992 $as_echo "$XARGS" >&6; }
12993 else
12994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12995 $as_echo "no" >&6; }
12996 fi
12997 
12998 
12999   test -n "$XARGS" && break
13000 done
13001 
13002   else
13003     # The variable is set, but is it from the command line or the environment?
13004 
13005     # Try to remove the string !XARGS! from our list.
13006     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/}
13007     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13008       # If it failed, the variable was not from the command line. Ignore it,
13009       # but warn the user (except for BASH, which is always set by the calling BASH).
13010       if test "xXARGS" != xBASH; then
13011         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5
13012 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;}
13013       fi
13014       # Try to locate tool using the code snippet
13015       for ac_prog in xargs
13016 do
13017   # Extract the first word of "$ac_prog", so it can be a program name with args.
13018 set dummy $ac_prog; ac_word=$2
13019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13020 $as_echo_n "checking for $ac_word... " >&6; }
13021 if ${ac_cv_path_XARGS+:} false; then :
13022   $as_echo_n "(cached) " >&6
13023 else
13024   case $XARGS in
13025   [\\/]* | ?:[\\/]*)
13026   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
13027   ;;
13028   *)
13029   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13030 for as_dir in $PATH
13031 do
13032   IFS=$as_save_IFS
13033   test -z "$as_dir" && as_dir=.
13034     for ac_exec_ext in '' $ac_executable_extensions; do
13035   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13036     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
13037     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13038     break 2
13039   fi
13040 done
13041   done
13042 IFS=$as_save_IFS
13043 
13044   ;;
13045 esac
13046 fi
13047 XARGS=$ac_cv_path_XARGS
13048 if test -n "$XARGS"; then
13049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
13050 $as_echo "$XARGS" >&6; }
13051 else
13052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13053 $as_echo "no" >&6; }
13054 fi
13055 
13056 
13057   test -n "$XARGS" && break
13058 done
13059 
13060     else
13061       # If it succeeded, then it was overridden by the user. We will use it
13062       # for the tool.
13063 
13064       # First remove it from the list of overridden variables, so we can test
13065       # for unknown variables in the end.
13066       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13067 
13068       # Check if we try to supply an empty value
13069       if test "x$XARGS" = x; then
13070         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool XARGS= (no value)" >&5
13071 $as_echo "$as_me: Setting user supplied tool XARGS= (no value)" >&6;}
13072         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5
13073 $as_echo_n "checking for XARGS... " >&6; }
13074         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13075 $as_echo "disabled" >&6; }
13076       else
13077         # Check if the provided tool contains a complete path.
13078         tool_specified="$XARGS"
13079         tool_basename="${tool_specified##*/}"
13080         if test "x$tool_basename" = "x$tool_specified"; then
13081           # A command without a complete path is provided, search $PATH.
13082           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5
13083 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;}
13084           # Extract the first word of "$tool_basename", so it can be a program name with args.
13085 set dummy $tool_basename; ac_word=$2
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13087 $as_echo_n "checking for $ac_word... " >&6; }
13088 if ${ac_cv_path_XARGS+:} false; then :
13089   $as_echo_n "(cached) " >&6
13090 else
13091   case $XARGS in
13092   [\\/]* | ?:[\\/]*)
13093   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
13094   ;;
13095   *)
13096   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13097 for as_dir in $PATH
13098 do
13099   IFS=$as_save_IFS
13100   test -z "$as_dir" && as_dir=.
13101     for ac_exec_ext in '' $ac_executable_extensions; do
13102   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13103     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
13104     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13105     break 2
13106   fi
13107 done
13108   done
13109 IFS=$as_save_IFS
13110 
13111   ;;
13112 esac
13113 fi
13114 XARGS=$ac_cv_path_XARGS
13115 if test -n "$XARGS"; then
13116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
13117 $as_echo "$XARGS" >&6; }
13118 else
13119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13120 $as_echo "no" >&6; }
13121 fi
13122 
13123 
13124           if test "x$XARGS" = x; then
13125             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13126           fi
13127         else
13128           # Otherwise we believe it is a complete path. Use it as it is.
13129           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5
13130 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;}
13131           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5
13132 $as_echo_n "checking for XARGS... " >&6; }
13133           if test ! -x "$tool_specified"; then
13134             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13135 $as_echo "not found" >&6; }
13136             as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5
13137           fi
13138           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13139 $as_echo "$tool_specified" >&6; }
13140         fi
13141       fi
13142     fi
13143 
13144   fi
13145 
13146 
13147 
13148   if test "x$XARGS" = x; then
13149     as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5
13150   fi
13151 
13152 
13153 
13154   # Then required tools that require some special treatment.
13155 
13156 
13157   # Publish this variable in the help.
13158 
13159 
13160   if [ -z "${AWK+x}" ]; then
13161     # The variable is not set by user, try to locate tool using the code snippet
13162     for ac_prog in gawk mawk nawk awk
13163 do
13164   # Extract the first word of "$ac_prog", so it can be a program name with args.
13165 set dummy $ac_prog; ac_word=$2
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13167 $as_echo_n "checking for $ac_word... " >&6; }
13168 if ${ac_cv_prog_AWK+:} false; then :
13169   $as_echo_n "(cached) " >&6
13170 else
13171   if test -n "$AWK"; then
13172   ac_cv_prog_AWK="$AWK" # Let the user override the test.
13173 else
13174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13175 for as_dir in $PATH
13176 do
13177   IFS=$as_save_IFS
13178   test -z "$as_dir" && as_dir=.
13179     for ac_exec_ext in '' $ac_executable_extensions; do
13180   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13181     ac_cv_prog_AWK="$ac_prog"
13182     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13183     break 2
13184   fi
13185 done
13186   done
13187 IFS=$as_save_IFS
13188 
13189 fi
13190 fi
13191 AWK=$ac_cv_prog_AWK
13192 if test -n "$AWK"; then
13193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13194 $as_echo "$AWK" >&6; }
13195 else
13196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13197 $as_echo "no" >&6; }
13198 fi
13199 
13200 
13201   test -n "$AWK" && break
13202 done
13203 
13204   else
13205     # The variable is set, but is it from the command line or the environment?
13206 
13207     # Try to remove the string !AWK! from our list.
13208     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/}
13209     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13210       # If it failed, the variable was not from the command line. Ignore it,
13211       # but warn the user (except for BASH, which is always set by the calling BASH).
13212       if test "xAWK" != xBASH; then
13213         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5
13214 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;}
13215       fi
13216       # Try to locate tool using the code snippet
13217       for ac_prog in gawk mawk nawk awk
13218 do
13219   # Extract the first word of "$ac_prog", so it can be a program name with args.
13220 set dummy $ac_prog; ac_word=$2
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13222 $as_echo_n "checking for $ac_word... " >&6; }
13223 if ${ac_cv_prog_AWK+:} false; then :
13224   $as_echo_n "(cached) " >&6
13225 else
13226   if test -n "$AWK"; then
13227   ac_cv_prog_AWK="$AWK" # Let the user override the test.
13228 else
13229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13230 for as_dir in $PATH
13231 do
13232   IFS=$as_save_IFS
13233   test -z "$as_dir" && as_dir=.
13234     for ac_exec_ext in '' $ac_executable_extensions; do
13235   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13236     ac_cv_prog_AWK="$ac_prog"
13237     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13238     break 2
13239   fi
13240 done
13241   done
13242 IFS=$as_save_IFS
13243 
13244 fi
13245 fi
13246 AWK=$ac_cv_prog_AWK
13247 if test -n "$AWK"; then
13248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13249 $as_echo "$AWK" >&6; }
13250 else
13251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13252 $as_echo "no" >&6; }
13253 fi
13254 
13255 
13256   test -n "$AWK" && break
13257 done
13258 
13259     else
13260       # If it succeeded, then it was overridden by the user. We will use it
13261       # for the tool.
13262 
13263       # First remove it from the list of overridden variables, so we can test
13264       # for unknown variables in the end.
13265       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13266 
13267       # Check if we try to supply an empty value
13268       if test "x$AWK" = x; then
13269         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AWK= (no value)" >&5
13270 $as_echo "$as_me: Setting user supplied tool AWK= (no value)" >&6;}
13271         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5
13272 $as_echo_n "checking for AWK... " >&6; }
13273         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13274 $as_echo "disabled" >&6; }
13275       else
13276         # Check if the provided tool contains a complete path.
13277         tool_specified="$AWK"
13278         tool_basename="${tool_specified##*/}"
13279         if test "x$tool_basename" = "x$tool_specified"; then
13280           # A command without a complete path is provided, search $PATH.
13281           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5
13282 $as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;}
13283           # Extract the first word of "$tool_basename", so it can be a program name with args.
13284 set dummy $tool_basename; ac_word=$2
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13286 $as_echo_n "checking for $ac_word... " >&6; }
13287 if ${ac_cv_path_AWK+:} false; then :
13288   $as_echo_n "(cached) " >&6
13289 else
13290   case $AWK in
13291   [\\/]* | ?:[\\/]*)
13292   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
13293   ;;
13294   *)
13295   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13296 for as_dir in $PATH
13297 do
13298   IFS=$as_save_IFS
13299   test -z "$as_dir" && as_dir=.
13300     for ac_exec_ext in '' $ac_executable_extensions; do
13301   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13302     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
13303     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13304     break 2
13305   fi
13306 done
13307   done
13308 IFS=$as_save_IFS
13309 
13310   ;;
13311 esac
13312 fi
13313 AWK=$ac_cv_path_AWK
13314 if test -n "$AWK"; then
13315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13316 $as_echo "$AWK" >&6; }
13317 else
13318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13319 $as_echo "no" >&6; }
13320 fi
13321 
13322 
13323           if test "x$AWK" = x; then
13324             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13325           fi
13326         else
13327           # Otherwise we believe it is a complete path. Use it as it is.
13328           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5
13329 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;}
13330           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5
13331 $as_echo_n "checking for AWK... " >&6; }
13332           if test ! -x "$tool_specified"; then
13333             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13334 $as_echo "not found" >&6; }
13335             as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5
13336           fi
13337           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13338 $as_echo "$tool_specified" >&6; }
13339         fi
13340       fi
13341     fi
13342 
13343   fi
13344 
13345 
13346   if test "x$AWK" = x; then
13347     as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5
13348   fi
13349 
13350 
13351 
13352 
13353   # Publish this variable in the help.
13354 
13355 
13356   if [ -z "${GREP+x}" ]; then
13357     # The variable is not set by user, try to locate tool using the code snippet
13358     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
13359 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
13360 if ${ac_cv_path_GREP+:} false; then :
13361   $as_echo_n "(cached) " >&6
13362 else
13363   if test -z "$GREP"; then
13364   ac_path_GREP_found=false
13365   # Loop through the user's path and test for each of PROGNAME-LIST
13366   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13367 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13368 do
13369   IFS=$as_save_IFS
13370   test -z "$as_dir" && as_dir=.
13371     for ac_prog in grep ggrep; do
13372     for ac_exec_ext in '' $ac_executable_extensions; do
13373       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
13374       as_fn_executable_p "$ac_path_GREP" || continue
13375 # Check for GNU ac_path_GREP and select it if it is found.
13376   # Check for GNU $ac_path_GREP
13377 case `"$ac_path_GREP" --version 2>&1` in
13378 *GNU*)
13379   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
13380 *)
13381   ac_count=0
13382   $as_echo_n 0123456789 >"conftest.in"
13383   while :
13384   do
13385     cat "conftest.in" "conftest.in" >"conftest.tmp"
13386     mv "conftest.tmp" "conftest.in"
13387     cp "conftest.in" "conftest.nl"
13388     $as_echo 'GREP' >> "conftest.nl"
13389     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13390     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13391     as_fn_arith $ac_count + 1 && ac_count=$as_val
13392     if test $ac_count -gt ${ac_path_GREP_max-0}; then
13393       # Best one so far, save it but keep looking for a better one
13394       ac_cv_path_GREP="$ac_path_GREP"
13395       ac_path_GREP_max=$ac_count
13396     fi
13397     # 10*(2^10) chars as input seems more than enough
13398     test $ac_count -gt 10 && break
13399   done
13400   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13401 esac
13402 
13403       $ac_path_GREP_found && break 3
13404     done
13405   done
13406   done
13407 IFS=$as_save_IFS
13408   if test -z "$ac_cv_path_GREP"; then
13409     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13410   fi
13411 else
13412   ac_cv_path_GREP=$GREP
13413 fi
13414 
13415 fi
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
13417 $as_echo "$ac_cv_path_GREP" >&6; }
13418  GREP="$ac_cv_path_GREP"
13419 
13420 
13421   else
13422     # The variable is set, but is it from the command line or the environment?
13423 
13424     # Try to remove the string !GREP! from our list.
13425     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/}
13426     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13427       # If it failed, the variable was not from the command line. Ignore it,
13428       # but warn the user (except for BASH, which is always set by the calling BASH).
13429       if test "xGREP" != xBASH; then
13430         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5
13431 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;}
13432       fi
13433       # Try to locate tool using the code snippet
13434       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
13435 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
13436 if ${ac_cv_path_GREP+:} false; then :
13437   $as_echo_n "(cached) " >&6
13438 else
13439   if test -z "$GREP"; then
13440   ac_path_GREP_found=false
13441   # Loop through the user's path and test for each of PROGNAME-LIST
13442   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13443 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13444 do
13445   IFS=$as_save_IFS
13446   test -z "$as_dir" && as_dir=.
13447     for ac_prog in grep ggrep; do
13448     for ac_exec_ext in '' $ac_executable_extensions; do
13449       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
13450       as_fn_executable_p "$ac_path_GREP" || continue
13451 # Check for GNU ac_path_GREP and select it if it is found.
13452   # Check for GNU $ac_path_GREP
13453 case `"$ac_path_GREP" --version 2>&1` in
13454 *GNU*)
13455   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
13456 *)
13457   ac_count=0
13458   $as_echo_n 0123456789 >"conftest.in"
13459   while :
13460   do
13461     cat "conftest.in" "conftest.in" >"conftest.tmp"
13462     mv "conftest.tmp" "conftest.in"
13463     cp "conftest.in" "conftest.nl"
13464     $as_echo 'GREP' >> "conftest.nl"
13465     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13466     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13467     as_fn_arith $ac_count + 1 && ac_count=$as_val
13468     if test $ac_count -gt ${ac_path_GREP_max-0}; then
13469       # Best one so far, save it but keep looking for a better one
13470       ac_cv_path_GREP="$ac_path_GREP"
13471       ac_path_GREP_max=$ac_count
13472     fi
13473     # 10*(2^10) chars as input seems more than enough
13474     test $ac_count -gt 10 && break
13475   done
13476   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13477 esac
13478 
13479       $ac_path_GREP_found && break 3
13480     done
13481   done
13482   done
13483 IFS=$as_save_IFS
13484   if test -z "$ac_cv_path_GREP"; then
13485     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13486   fi
13487 else
13488   ac_cv_path_GREP=$GREP
13489 fi
13490 
13491 fi
13492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
13493 $as_echo "$ac_cv_path_GREP" >&6; }
13494  GREP="$ac_cv_path_GREP"
13495 
13496 
13497     else
13498       # If it succeeded, then it was overridden by the user. We will use it
13499       # for the tool.
13500 
13501       # First remove it from the list of overridden variables, so we can test
13502       # for unknown variables in the end.
13503       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13504 
13505       # Check if we try to supply an empty value
13506       if test "x$GREP" = x; then
13507         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GREP= (no value)" >&5
13508 $as_echo "$as_me: Setting user supplied tool GREP= (no value)" >&6;}
13509         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5
13510 $as_echo_n "checking for GREP... " >&6; }
13511         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13512 $as_echo "disabled" >&6; }
13513       else
13514         # Check if the provided tool contains a complete path.
13515         tool_specified="$GREP"
13516         tool_basename="${tool_specified##*/}"
13517         if test "x$tool_basename" = "x$tool_specified"; then
13518           # A command without a complete path is provided, search $PATH.
13519           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5
13520 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;}
13521           # Extract the first word of "$tool_basename", so it can be a program name with args.
13522 set dummy $tool_basename; ac_word=$2
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13524 $as_echo_n "checking for $ac_word... " >&6; }
13525 if ${ac_cv_path_GREP+:} false; then :
13526   $as_echo_n "(cached) " >&6
13527 else
13528   case $GREP in
13529   [\\/]* | ?:[\\/]*)
13530   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
13531   ;;
13532   *)
13533   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13534 for as_dir in $PATH
13535 do
13536   IFS=$as_save_IFS
13537   test -z "$as_dir" && as_dir=.
13538     for ac_exec_ext in '' $ac_executable_extensions; do
13539   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13540     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
13541     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13542     break 2
13543   fi
13544 done
13545   done
13546 IFS=$as_save_IFS
13547 
13548   ;;
13549 esac
13550 fi
13551 GREP=$ac_cv_path_GREP
13552 if test -n "$GREP"; then
13553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
13554 $as_echo "$GREP" >&6; }
13555 else
13556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13557 $as_echo "no" >&6; }
13558 fi
13559 
13560 
13561           if test "x$GREP" = x; then
13562             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13563           fi
13564         else
13565           # Otherwise we believe it is a complete path. Use it as it is.
13566           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5
13567 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;}
13568           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5
13569 $as_echo_n "checking for GREP... " >&6; }
13570           if test ! -x "$tool_specified"; then
13571             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13572 $as_echo "not found" >&6; }
13573             as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5
13574           fi
13575           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13576 $as_echo "$tool_specified" >&6; }
13577         fi
13578       fi
13579     fi
13580 
13581   fi
13582 
13583 
13584   if test "x$GREP" = x; then
13585     as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5
13586   fi
13587 
13588 
13589 
13590 
13591   # Publish this variable in the help.
13592 
13593 
13594   if [ -z "${EGREP+x}" ]; then
13595     # The variable is not set by user, try to locate tool using the code snippet
13596     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
13597 $as_echo_n "checking for egrep... " >&6; }
13598 if ${ac_cv_path_EGREP+:} false; then :
13599   $as_echo_n "(cached) " >&6
13600 else
13601   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
13602    then ac_cv_path_EGREP="$GREP -E"
13603    else
13604      if test -z "$EGREP"; then
13605   ac_path_EGREP_found=false
13606   # Loop through the user's path and test for each of PROGNAME-LIST
13607   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13608 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13609 do
13610   IFS=$as_save_IFS
13611   test -z "$as_dir" && as_dir=.
13612     for ac_prog in egrep; do
13613     for ac_exec_ext in '' $ac_executable_extensions; do
13614       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
13615       as_fn_executable_p "$ac_path_EGREP" || continue
13616 # Check for GNU ac_path_EGREP and select it if it is found.
13617   # Check for GNU $ac_path_EGREP
13618 case `"$ac_path_EGREP" --version 2>&1` in
13619 *GNU*)
13620   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
13621 *)
13622   ac_count=0
13623   $as_echo_n 0123456789 >"conftest.in"
13624   while :
13625   do
13626     cat "conftest.in" "conftest.in" >"conftest.tmp"
13627     mv "conftest.tmp" "conftest.in"
13628     cp "conftest.in" "conftest.nl"
13629     $as_echo 'EGREP' >> "conftest.nl"
13630     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13631     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13632     as_fn_arith $ac_count + 1 && ac_count=$as_val
13633     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
13634       # Best one so far, save it but keep looking for a better one
13635       ac_cv_path_EGREP="$ac_path_EGREP"
13636       ac_path_EGREP_max=$ac_count
13637     fi
13638     # 10*(2^10) chars as input seems more than enough
13639     test $ac_count -gt 10 && break
13640   done
13641   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13642 esac
13643 
13644       $ac_path_EGREP_found && break 3
13645     done
13646   done
13647   done
13648 IFS=$as_save_IFS
13649   if test -z "$ac_cv_path_EGREP"; then
13650     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13651   fi
13652 else
13653   ac_cv_path_EGREP=$EGREP
13654 fi
13655 
13656    fi
13657 fi
13658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
13659 $as_echo "$ac_cv_path_EGREP" >&6; }
13660  EGREP="$ac_cv_path_EGREP"
13661 
13662 
13663   else
13664     # The variable is set, but is it from the command line or the environment?
13665 
13666     # Try to remove the string !EGREP! from our list.
13667     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/}
13668     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13669       # If it failed, the variable was not from the command line. Ignore it,
13670       # but warn the user (except for BASH, which is always set by the calling BASH).
13671       if test "xEGREP" != xBASH; then
13672         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5
13673 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;}
13674       fi
13675       # Try to locate tool using the code snippet
13676       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
13677 $as_echo_n "checking for egrep... " >&6; }
13678 if ${ac_cv_path_EGREP+:} false; then :
13679   $as_echo_n "(cached) " >&6
13680 else
13681   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
13682    then ac_cv_path_EGREP="$GREP -E"
13683    else
13684      if test -z "$EGREP"; then
13685   ac_path_EGREP_found=false
13686   # Loop through the user's path and test for each of PROGNAME-LIST
13687   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13688 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13689 do
13690   IFS=$as_save_IFS
13691   test -z "$as_dir" && as_dir=.
13692     for ac_prog in egrep; do
13693     for ac_exec_ext in '' $ac_executable_extensions; do
13694       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
13695       as_fn_executable_p "$ac_path_EGREP" || continue
13696 # Check for GNU ac_path_EGREP and select it if it is found.
13697   # Check for GNU $ac_path_EGREP
13698 case `"$ac_path_EGREP" --version 2>&1` in
13699 *GNU*)
13700   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
13701 *)
13702   ac_count=0
13703   $as_echo_n 0123456789 >"conftest.in"
13704   while :
13705   do
13706     cat "conftest.in" "conftest.in" >"conftest.tmp"
13707     mv "conftest.tmp" "conftest.in"
13708     cp "conftest.in" "conftest.nl"
13709     $as_echo 'EGREP' >> "conftest.nl"
13710     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13711     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13712     as_fn_arith $ac_count + 1 && ac_count=$as_val
13713     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
13714       # Best one so far, save it but keep looking for a better one
13715       ac_cv_path_EGREP="$ac_path_EGREP"
13716       ac_path_EGREP_max=$ac_count
13717     fi
13718     # 10*(2^10) chars as input seems more than enough
13719     test $ac_count -gt 10 && break
13720   done
13721   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13722 esac
13723 
13724       $ac_path_EGREP_found && break 3
13725     done
13726   done
13727   done
13728 IFS=$as_save_IFS
13729   if test -z "$ac_cv_path_EGREP"; then
13730     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13731   fi
13732 else
13733   ac_cv_path_EGREP=$EGREP
13734 fi
13735 
13736    fi
13737 fi
13738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
13739 $as_echo "$ac_cv_path_EGREP" >&6; }
13740  EGREP="$ac_cv_path_EGREP"
13741 
13742 
13743     else
13744       # If it succeeded, then it was overridden by the user. We will use it
13745       # for the tool.
13746 
13747       # First remove it from the list of overridden variables, so we can test
13748       # for unknown variables in the end.
13749       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13750 
13751       # Check if we try to supply an empty value
13752       if test "x$EGREP" = x; then
13753         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool EGREP= (no value)" >&5
13754 $as_echo "$as_me: Setting user supplied tool EGREP= (no value)" >&6;}
13755         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5
13756 $as_echo_n "checking for EGREP... " >&6; }
13757         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13758 $as_echo "disabled" >&6; }
13759       else
13760         # Check if the provided tool contains a complete path.
13761         tool_specified="$EGREP"
13762         tool_basename="${tool_specified##*/}"
13763         if test "x$tool_basename" = "x$tool_specified"; then
13764           # A command without a complete path is provided, search $PATH.
13765           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5
13766 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;}
13767           # Extract the first word of "$tool_basename", so it can be a program name with args.
13768 set dummy $tool_basename; ac_word=$2
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13770 $as_echo_n "checking for $ac_word... " >&6; }
13771 if ${ac_cv_path_EGREP+:} false; then :
13772   $as_echo_n "(cached) " >&6
13773 else
13774   case $EGREP in
13775   [\\/]* | ?:[\\/]*)
13776   ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
13777   ;;
13778   *)
13779   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13780 for as_dir in $PATH
13781 do
13782   IFS=$as_save_IFS
13783   test -z "$as_dir" && as_dir=.
13784     for ac_exec_ext in '' $ac_executable_extensions; do
13785   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13786     ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
13787     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13788     break 2
13789   fi
13790 done
13791   done
13792 IFS=$as_save_IFS
13793 
13794   ;;
13795 esac
13796 fi
13797 EGREP=$ac_cv_path_EGREP
13798 if test -n "$EGREP"; then
13799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
13800 $as_echo "$EGREP" >&6; }
13801 else
13802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13803 $as_echo "no" >&6; }
13804 fi
13805 
13806 
13807           if test "x$EGREP" = x; then
13808             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13809           fi
13810         else
13811           # Otherwise we believe it is a complete path. Use it as it is.
13812           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5
13813 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;}
13814           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5
13815 $as_echo_n "checking for EGREP... " >&6; }
13816           if test ! -x "$tool_specified"; then
13817             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13818 $as_echo "not found" >&6; }
13819             as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
13820           fi
13821           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13822 $as_echo "$tool_specified" >&6; }
13823         fi
13824       fi
13825     fi
13826 
13827   fi
13828 
13829 
13830   if test "x$EGREP" = x; then
13831     as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5
13832   fi
13833 
13834 
13835 
13836 
13837   # Publish this variable in the help.
13838 
13839 
13840   if [ -z "${FGREP+x}" ]; then
13841     # The variable is not set by user, try to locate tool using the code snippet
13842     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13843 $as_echo_n "checking for fgrep... " >&6; }
13844 if ${ac_cv_path_FGREP+:} false; then :
13845   $as_echo_n "(cached) " >&6
13846 else
13847   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
13848    then ac_cv_path_FGREP="$GREP -F"
13849    else
13850      if test -z "$FGREP"; then
13851   ac_path_FGREP_found=false
13852   # Loop through the user's path and test for each of PROGNAME-LIST
13853   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13854 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13855 do
13856   IFS=$as_save_IFS
13857   test -z "$as_dir" && as_dir=.
13858     for ac_prog in fgrep; do
13859     for ac_exec_ext in '' $ac_executable_extensions; do
13860       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
13861       as_fn_executable_p "$ac_path_FGREP" || continue
13862 # Check for GNU ac_path_FGREP and select it if it is found.
13863   # Check for GNU $ac_path_FGREP
13864 case `"$ac_path_FGREP" --version 2>&1` in
13865 *GNU*)
13866   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
13867 *)
13868   ac_count=0
13869   $as_echo_n 0123456789 >"conftest.in"
13870   while :
13871   do
13872     cat "conftest.in" "conftest.in" >"conftest.tmp"
13873     mv "conftest.tmp" "conftest.in"
13874     cp "conftest.in" "conftest.nl"
13875     $as_echo 'FGREP' >> "conftest.nl"
13876     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
13877     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13878     as_fn_arith $ac_count + 1 && ac_count=$as_val
13879     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13880       # Best one so far, save it but keep looking for a better one
13881       ac_cv_path_FGREP="$ac_path_FGREP"
13882       ac_path_FGREP_max=$ac_count
13883     fi
13884     # 10*(2^10) chars as input seems more than enough
13885     test $ac_count -gt 10 && break
13886   done
13887   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13888 esac
13889 
13890       $ac_path_FGREP_found && break 3
13891     done
13892   done
13893   done
13894 IFS=$as_save_IFS
13895   if test -z "$ac_cv_path_FGREP"; then
13896     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13897   fi
13898 else
13899   ac_cv_path_FGREP=$FGREP
13900 fi
13901 
13902    fi
13903 fi
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13905 $as_echo "$ac_cv_path_FGREP" >&6; }
13906  FGREP="$ac_cv_path_FGREP"
13907 
13908 
13909   else
13910     # The variable is set, but is it from the command line or the environment?
13911 
13912     # Try to remove the string !FGREP! from our list.
13913     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/}
13914     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13915       # If it failed, the variable was not from the command line. Ignore it,
13916       # but warn the user (except for BASH, which is always set by the calling BASH).
13917       if test "xFGREP" != xBASH; then
13918         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5
13919 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;}
13920       fi
13921       # Try to locate tool using the code snippet
13922       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13923 $as_echo_n "checking for fgrep... " >&6; }
13924 if ${ac_cv_path_FGREP+:} false; then :
13925   $as_echo_n "(cached) " >&6
13926 else
13927   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
13928    then ac_cv_path_FGREP="$GREP -F"
13929    else
13930      if test -z "$FGREP"; then
13931   ac_path_FGREP_found=false
13932   # Loop through the user's path and test for each of PROGNAME-LIST
13933   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13934 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13935 do
13936   IFS=$as_save_IFS
13937   test -z "$as_dir" && as_dir=.
13938     for ac_prog in fgrep; do
13939     for ac_exec_ext in '' $ac_executable_extensions; do
13940       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
13941       as_fn_executable_p "$ac_path_FGREP" || continue
13942 # Check for GNU ac_path_FGREP and select it if it is found.
13943   # Check for GNU $ac_path_FGREP
13944 case `"$ac_path_FGREP" --version 2>&1` in
13945 *GNU*)
13946   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
13947 *)
13948   ac_count=0
13949   $as_echo_n 0123456789 >"conftest.in"
13950   while :
13951   do
13952     cat "conftest.in" "conftest.in" >"conftest.tmp"
13953     mv "conftest.tmp" "conftest.in"
13954     cp "conftest.in" "conftest.nl"
13955     $as_echo 'FGREP' >> "conftest.nl"
13956     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
13957     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13958     as_fn_arith $ac_count + 1 && ac_count=$as_val
13959     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13960       # Best one so far, save it but keep looking for a better one
13961       ac_cv_path_FGREP="$ac_path_FGREP"
13962       ac_path_FGREP_max=$ac_count
13963     fi
13964     # 10*(2^10) chars as input seems more than enough
13965     test $ac_count -gt 10 && break
13966   done
13967   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13968 esac
13969 
13970       $ac_path_FGREP_found && break 3
13971     done
13972   done
13973   done
13974 IFS=$as_save_IFS
13975   if test -z "$ac_cv_path_FGREP"; then
13976     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13977   fi
13978 else
13979   ac_cv_path_FGREP=$FGREP
13980 fi
13981 
13982    fi
13983 fi
13984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13985 $as_echo "$ac_cv_path_FGREP" >&6; }
13986  FGREP="$ac_cv_path_FGREP"
13987 
13988 
13989     else
13990       # If it succeeded, then it was overridden by the user. We will use it
13991       # for the tool.
13992 
13993       # First remove it from the list of overridden variables, so we can test
13994       # for unknown variables in the end.
13995       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13996 
13997       # Check if we try to supply an empty value
13998       if test "x$FGREP" = x; then
13999         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FGREP= (no value)" >&5
14000 $as_echo "$as_me: Setting user supplied tool FGREP= (no value)" >&6;}
14001         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5
14002 $as_echo_n "checking for FGREP... " >&6; }
14003         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14004 $as_echo "disabled" >&6; }
14005       else
14006         # Check if the provided tool contains a complete path.
14007         tool_specified="$FGREP"
14008         tool_basename="${tool_specified##*/}"
14009         if test "x$tool_basename" = "x$tool_specified"; then
14010           # A command without a complete path is provided, search $PATH.
14011           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5
14012 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;}
14013           # Extract the first word of "$tool_basename", so it can be a program name with args.
14014 set dummy $tool_basename; ac_word=$2
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14016 $as_echo_n "checking for $ac_word... " >&6; }
14017 if ${ac_cv_path_FGREP+:} false; then :
14018   $as_echo_n "(cached) " >&6
14019 else
14020   case $FGREP in
14021   [\\/]* | ?:[\\/]*)
14022   ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path.
14023   ;;
14024   *)
14025   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14026 for as_dir in $PATH
14027 do
14028   IFS=$as_save_IFS
14029   test -z "$as_dir" && as_dir=.
14030     for ac_exec_ext in '' $ac_executable_extensions; do
14031   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14032     ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext"
14033     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14034     break 2
14035   fi
14036 done
14037   done
14038 IFS=$as_save_IFS
14039 
14040   ;;
14041 esac
14042 fi
14043 FGREP=$ac_cv_path_FGREP
14044 if test -n "$FGREP"; then
14045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5
14046 $as_echo "$FGREP" >&6; }
14047 else
14048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14049 $as_echo "no" >&6; }
14050 fi
14051 
14052 
14053           if test "x$FGREP" = x; then
14054             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14055           fi
14056         else
14057           # Otherwise we believe it is a complete path. Use it as it is.
14058           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5
14059 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;}
14060           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5
14061 $as_echo_n "checking for FGREP... " >&6; }
14062           if test ! -x "$tool_specified"; then
14063             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14064 $as_echo "not found" >&6; }
14065             as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
14066           fi
14067           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14068 $as_echo "$tool_specified" >&6; }
14069         fi
14070       fi
14071     fi
14072 
14073   fi
14074 
14075 
14076   if test "x$FGREP" = x; then
14077     as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5
14078   fi
14079 
14080 
14081 
14082 
14083   # Publish this variable in the help.
14084 
14085 
14086   if [ -z "${SED+x}" ]; then
14087     # The variable is not set by user, try to locate tool using the code snippet
14088     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
14089 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
14090 if ${ac_cv_path_SED+:} false; then :
14091   $as_echo_n "(cached) " >&6
14092 else
14093             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
14094      for ac_i in 1 2 3 4 5 6 7; do
14095        ac_script="$ac_script$as_nl$ac_script"
14096      done
14097      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
14098      { ac_script=; unset ac_script;}
14099      if test -z "$SED"; then
14100   ac_path_SED_found=false
14101   # Loop through the user's path and test for each of PROGNAME-LIST
14102   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14103 for as_dir in $PATH
14104 do
14105   IFS=$as_save_IFS
14106   test -z "$as_dir" && as_dir=.
14107     for ac_prog in sed gsed; do
14108     for ac_exec_ext in '' $ac_executable_extensions; do
14109       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
14110       as_fn_executable_p "$ac_path_SED" || continue
14111 # Check for GNU ac_path_SED and select it if it is found.
14112   # Check for GNU $ac_path_SED
14113 case `"$ac_path_SED" --version 2>&1` in
14114 *GNU*)
14115   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
14116 *)
14117   ac_count=0
14118   $as_echo_n 0123456789 >"conftest.in"
14119   while :
14120   do
14121     cat "conftest.in" "conftest.in" >"conftest.tmp"
14122     mv "conftest.tmp" "conftest.in"
14123     cp "conftest.in" "conftest.nl"
14124     $as_echo '' >> "conftest.nl"
14125     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
14126     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
14127     as_fn_arith $ac_count + 1 && ac_count=$as_val
14128     if test $ac_count -gt ${ac_path_SED_max-0}; then
14129       # Best one so far, save it but keep looking for a better one
14130       ac_cv_path_SED="$ac_path_SED"
14131       ac_path_SED_max=$ac_count
14132     fi
14133     # 10*(2^10) chars as input seems more than enough
14134     test $ac_count -gt 10 && break
14135   done
14136   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
14137 esac
14138 
14139       $ac_path_SED_found && break 3
14140     done
14141   done
14142   done
14143 IFS=$as_save_IFS
14144   if test -z "$ac_cv_path_SED"; then
14145     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
14146   fi
14147 else
14148   ac_cv_path_SED=$SED
14149 fi
14150 
14151 fi
14152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
14153 $as_echo "$ac_cv_path_SED" >&6; }
14154  SED="$ac_cv_path_SED"
14155   rm -f conftest.sed
14156 
14157   else
14158     # The variable is set, but is it from the command line or the environment?
14159 
14160     # Try to remove the string !SED! from our list.
14161     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/}
14162     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14163       # If it failed, the variable was not from the command line. Ignore it,
14164       # but warn the user (except for BASH, which is always set by the calling BASH).
14165       if test "xSED" != xBASH; then
14166         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5
14167 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;}
14168       fi
14169       # Try to locate tool using the code snippet
14170       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
14171 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
14172 if ${ac_cv_path_SED+:} false; then :
14173   $as_echo_n "(cached) " >&6
14174 else
14175             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
14176      for ac_i in 1 2 3 4 5 6 7; do
14177        ac_script="$ac_script$as_nl$ac_script"
14178      done
14179      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
14180      { ac_script=; unset ac_script;}
14181      if test -z "$SED"; then
14182   ac_path_SED_found=false
14183   # Loop through the user's path and test for each of PROGNAME-LIST
14184   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14185 for as_dir in $PATH
14186 do
14187   IFS=$as_save_IFS
14188   test -z "$as_dir" && as_dir=.
14189     for ac_prog in sed gsed; do
14190     for ac_exec_ext in '' $ac_executable_extensions; do
14191       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
14192       as_fn_executable_p "$ac_path_SED" || continue
14193 # Check for GNU ac_path_SED and select it if it is found.
14194   # Check for GNU $ac_path_SED
14195 case `"$ac_path_SED" --version 2>&1` in
14196 *GNU*)
14197   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
14198 *)
14199   ac_count=0
14200   $as_echo_n 0123456789 >"conftest.in"
14201   while :
14202   do
14203     cat "conftest.in" "conftest.in" >"conftest.tmp"
14204     mv "conftest.tmp" "conftest.in"
14205     cp "conftest.in" "conftest.nl"
14206     $as_echo '' >> "conftest.nl"
14207     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
14208     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
14209     as_fn_arith $ac_count + 1 && ac_count=$as_val
14210     if test $ac_count -gt ${ac_path_SED_max-0}; then
14211       # Best one so far, save it but keep looking for a better one
14212       ac_cv_path_SED="$ac_path_SED"
14213       ac_path_SED_max=$ac_count
14214     fi
14215     # 10*(2^10) chars as input seems more than enough
14216     test $ac_count -gt 10 && break
14217   done
14218   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
14219 esac
14220 
14221       $ac_path_SED_found && break 3
14222     done
14223   done
14224   done
14225 IFS=$as_save_IFS
14226   if test -z "$ac_cv_path_SED"; then
14227     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
14228   fi
14229 else
14230   ac_cv_path_SED=$SED
14231 fi
14232 
14233 fi
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
14235 $as_echo "$ac_cv_path_SED" >&6; }
14236  SED="$ac_cv_path_SED"
14237   rm -f conftest.sed
14238 
14239     else
14240       # If it succeeded, then it was overridden by the user. We will use it
14241       # for the tool.
14242 
14243       # First remove it from the list of overridden variables, so we can test
14244       # for unknown variables in the end.
14245       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14246 
14247       # Check if we try to supply an empty value
14248       if test "x$SED" = x; then
14249         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SED= (no value)" >&5
14250 $as_echo "$as_me: Setting user supplied tool SED= (no value)" >&6;}
14251         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5
14252 $as_echo_n "checking for SED... " >&6; }
14253         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14254 $as_echo "disabled" >&6; }
14255       else
14256         # Check if the provided tool contains a complete path.
14257         tool_specified="$SED"
14258         tool_basename="${tool_specified##*/}"
14259         if test "x$tool_basename" = "x$tool_specified"; then
14260           # A command without a complete path is provided, search $PATH.
14261           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5
14262 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;}
14263           # Extract the first word of "$tool_basename", so it can be a program name with args.
14264 set dummy $tool_basename; ac_word=$2
14265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14266 $as_echo_n "checking for $ac_word... " >&6; }
14267 if ${ac_cv_path_SED+:} false; then :
14268   $as_echo_n "(cached) " >&6
14269 else
14270   case $SED in
14271   [\\/]* | ?:[\\/]*)
14272   ac_cv_path_SED="$SED" # Let the user override the test with a path.
14273   ;;
14274   *)
14275   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14276 for as_dir in $PATH
14277 do
14278   IFS=$as_save_IFS
14279   test -z "$as_dir" && as_dir=.
14280     for ac_exec_ext in '' $ac_executable_extensions; do
14281   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14282     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
14283     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14284     break 2
14285   fi
14286 done
14287   done
14288 IFS=$as_save_IFS
14289 
14290   ;;
14291 esac
14292 fi
14293 SED=$ac_cv_path_SED
14294 if test -n "$SED"; then
14295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
14296 $as_echo "$SED" >&6; }
14297 else
14298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14299 $as_echo "no" >&6; }
14300 fi
14301 
14302 
14303           if test "x$SED" = x; then
14304             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14305           fi
14306         else
14307           # Otherwise we believe it is a complete path. Use it as it is.
14308           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5
14309 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;}
14310           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5
14311 $as_echo_n "checking for SED... " >&6; }
14312           if test ! -x "$tool_specified"; then
14313             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14314 $as_echo "not found" >&6; }
14315             as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5
14316           fi
14317           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14318 $as_echo "$tool_specified" >&6; }
14319         fi
14320       fi
14321     fi
14322 
14323   fi
14324 
14325 
14326   if test "x$SED" = x; then
14327     as_fn_error $? "Could not find required tool for SED" "$LINENO" 5
14328   fi
14329 
14330 
14331 
14332   # Always force rm.
14333   RM="$RM -f"
14334 
14335   # pwd behaves differently on various platforms and some don't support the -L flag.
14336   # Always use the bash builtin pwd to get uniform behavior.
14337   THEPWDCMD=pwd
14338 
14339   # These are not required on all platforms
14340 
14341 
14342   # Publish this variable in the help.
14343 
14344 
14345   if [ -z "${CYGPATH+x}" ]; then
14346     # The variable is not set by user, try to locate tool using the code snippet
14347     for ac_prog in cygpath
14348 do
14349   # Extract the first word of "$ac_prog", so it can be a program name with args.
14350 set dummy $ac_prog; ac_word=$2
14351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14352 $as_echo_n "checking for $ac_word... " >&6; }
14353 if ${ac_cv_path_CYGPATH+:} false; then :
14354   $as_echo_n "(cached) " >&6
14355 else
14356   case $CYGPATH in
14357   [\\/]* | ?:[\\/]*)
14358   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
14359   ;;
14360   *)
14361   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14362 for as_dir in $PATH
14363 do
14364   IFS=$as_save_IFS
14365   test -z "$as_dir" && as_dir=.
14366     for ac_exec_ext in '' $ac_executable_extensions; do
14367   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14368     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
14369     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14370     break 2
14371   fi
14372 done
14373   done
14374 IFS=$as_save_IFS
14375 
14376   ;;
14377 esac
14378 fi
14379 CYGPATH=$ac_cv_path_CYGPATH
14380 if test -n "$CYGPATH"; then
14381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
14382 $as_echo "$CYGPATH" >&6; }
14383 else
14384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14385 $as_echo "no" >&6; }
14386 fi
14387 
14388 
14389   test -n "$CYGPATH" && break
14390 done
14391 
14392   else
14393     # The variable is set, but is it from the command line or the environment?
14394 
14395     # Try to remove the string !CYGPATH! from our list.
14396     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/}
14397     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14398       # If it failed, the variable was not from the command line. Ignore it,
14399       # but warn the user (except for BASH, which is always set by the calling BASH).
14400       if test "xCYGPATH" != xBASH; then
14401         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5
14402 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;}
14403       fi
14404       # Try to locate tool using the code snippet
14405       for ac_prog in cygpath
14406 do
14407   # Extract the first word of "$ac_prog", so it can be a program name with args.
14408 set dummy $ac_prog; ac_word=$2
14409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14410 $as_echo_n "checking for $ac_word... " >&6; }
14411 if ${ac_cv_path_CYGPATH+:} false; then :
14412   $as_echo_n "(cached) " >&6
14413 else
14414   case $CYGPATH in
14415   [\\/]* | ?:[\\/]*)
14416   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
14417   ;;
14418   *)
14419   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14420 for as_dir in $PATH
14421 do
14422   IFS=$as_save_IFS
14423   test -z "$as_dir" && as_dir=.
14424     for ac_exec_ext in '' $ac_executable_extensions; do
14425   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14426     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
14427     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14428     break 2
14429   fi
14430 done
14431   done
14432 IFS=$as_save_IFS
14433 
14434   ;;
14435 esac
14436 fi
14437 CYGPATH=$ac_cv_path_CYGPATH
14438 if test -n "$CYGPATH"; then
14439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
14440 $as_echo "$CYGPATH" >&6; }
14441 else
14442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14443 $as_echo "no" >&6; }
14444 fi
14445 
14446 
14447   test -n "$CYGPATH" && break
14448 done
14449 
14450     else
14451       # If it succeeded, then it was overridden by the user. We will use it
14452       # for the tool.
14453 
14454       # First remove it from the list of overridden variables, so we can test
14455       # for unknown variables in the end.
14456       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14457 
14458       # Check if we try to supply an empty value
14459       if test "x$CYGPATH" = x; then
14460         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CYGPATH= (no value)" >&5
14461 $as_echo "$as_me: Setting user supplied tool CYGPATH= (no value)" >&6;}
14462         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5
14463 $as_echo_n "checking for CYGPATH... " >&6; }
14464         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14465 $as_echo "disabled" >&6; }
14466       else
14467         # Check if the provided tool contains a complete path.
14468         tool_specified="$CYGPATH"
14469         tool_basename="${tool_specified##*/}"
14470         if test "x$tool_basename" = "x$tool_specified"; then
14471           # A command without a complete path is provided, search $PATH.
14472           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5
14473 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;}
14474           # Extract the first word of "$tool_basename", so it can be a program name with args.
14475 set dummy $tool_basename; ac_word=$2
14476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14477 $as_echo_n "checking for $ac_word... " >&6; }
14478 if ${ac_cv_path_CYGPATH+:} false; then :
14479   $as_echo_n "(cached) " >&6
14480 else
14481   case $CYGPATH in
14482   [\\/]* | ?:[\\/]*)
14483   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
14484   ;;
14485   *)
14486   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14487 for as_dir in $PATH
14488 do
14489   IFS=$as_save_IFS
14490   test -z "$as_dir" && as_dir=.
14491     for ac_exec_ext in '' $ac_executable_extensions; do
14492   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14493     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
14494     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14495     break 2
14496   fi
14497 done
14498   done
14499 IFS=$as_save_IFS
14500 
14501   ;;
14502 esac
14503 fi
14504 CYGPATH=$ac_cv_path_CYGPATH
14505 if test -n "$CYGPATH"; then
14506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
14507 $as_echo "$CYGPATH" >&6; }
14508 else
14509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14510 $as_echo "no" >&6; }
14511 fi
14512 
14513 
14514           if test "x$CYGPATH" = x; then
14515             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14516           fi
14517         else
14518           # Otherwise we believe it is a complete path. Use it as it is.
14519           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5
14520 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;}
14521           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5
14522 $as_echo_n "checking for CYGPATH... " >&6; }
14523           if test ! -x "$tool_specified"; then
14524             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14525 $as_echo "not found" >&6; }
14526             as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5
14527           fi
14528           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14529 $as_echo "$tool_specified" >&6; }
14530         fi
14531       fi
14532     fi
14533 
14534   fi
14535 
14536 
14537 
14538 
14539   # Publish this variable in the help.
14540 
14541 
14542   if [ -z "${READLINK+x}" ]; then
14543     # The variable is not set by user, try to locate tool using the code snippet
14544     for ac_prog in greadlink readlink
14545 do
14546   # Extract the first word of "$ac_prog", so it can be a program name with args.
14547 set dummy $ac_prog; ac_word=$2
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14549 $as_echo_n "checking for $ac_word... " >&6; }
14550 if ${ac_cv_path_READLINK+:} false; then :
14551   $as_echo_n "(cached) " >&6
14552 else
14553   case $READLINK in
14554   [\\/]* | ?:[\\/]*)
14555   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
14556   ;;
14557   *)
14558   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14559 for as_dir in $PATH
14560 do
14561   IFS=$as_save_IFS
14562   test -z "$as_dir" && as_dir=.
14563     for ac_exec_ext in '' $ac_executable_extensions; do
14564   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14565     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
14566     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14567     break 2
14568   fi
14569 done
14570   done
14571 IFS=$as_save_IFS
14572 
14573   ;;
14574 esac
14575 fi
14576 READLINK=$ac_cv_path_READLINK
14577 if test -n "$READLINK"; then
14578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
14579 $as_echo "$READLINK" >&6; }
14580 else
14581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14582 $as_echo "no" >&6; }
14583 fi
14584 
14585 
14586   test -n "$READLINK" && break
14587 done
14588 
14589   else
14590     # The variable is set, but is it from the command line or the environment?
14591 
14592     # Try to remove the string !READLINK! from our list.
14593     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/}
14594     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14595       # If it failed, the variable was not from the command line. Ignore it,
14596       # but warn the user (except for BASH, which is always set by the calling BASH).
14597       if test "xREADLINK" != xBASH; then
14598         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5
14599 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;}
14600       fi
14601       # Try to locate tool using the code snippet
14602       for ac_prog in greadlink readlink
14603 do
14604   # Extract the first word of "$ac_prog", so it can be a program name with args.
14605 set dummy $ac_prog; ac_word=$2
14606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14607 $as_echo_n "checking for $ac_word... " >&6; }
14608 if ${ac_cv_path_READLINK+:} false; then :
14609   $as_echo_n "(cached) " >&6
14610 else
14611   case $READLINK in
14612   [\\/]* | ?:[\\/]*)
14613   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
14614   ;;
14615   *)
14616   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14617 for as_dir in $PATH
14618 do
14619   IFS=$as_save_IFS
14620   test -z "$as_dir" && as_dir=.
14621     for ac_exec_ext in '' $ac_executable_extensions; do
14622   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14623     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
14624     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14625     break 2
14626   fi
14627 done
14628   done
14629 IFS=$as_save_IFS
14630 
14631   ;;
14632 esac
14633 fi
14634 READLINK=$ac_cv_path_READLINK
14635 if test -n "$READLINK"; then
14636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
14637 $as_echo "$READLINK" >&6; }
14638 else
14639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14640 $as_echo "no" >&6; }
14641 fi
14642 
14643 
14644   test -n "$READLINK" && break
14645 done
14646 
14647     else
14648       # If it succeeded, then it was overridden by the user. We will use it
14649       # for the tool.
14650 
14651       # First remove it from the list of overridden variables, so we can test
14652       # for unknown variables in the end.
14653       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14654 
14655       # Check if we try to supply an empty value
14656       if test "x$READLINK" = x; then
14657         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool READLINK= (no value)" >&5
14658 $as_echo "$as_me: Setting user supplied tool READLINK= (no value)" >&6;}
14659         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5
14660 $as_echo_n "checking for READLINK... " >&6; }
14661         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14662 $as_echo "disabled" >&6; }
14663       else
14664         # Check if the provided tool contains a complete path.
14665         tool_specified="$READLINK"
14666         tool_basename="${tool_specified##*/}"
14667         if test "x$tool_basename" = "x$tool_specified"; then
14668           # A command without a complete path is provided, search $PATH.
14669           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5
14670 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;}
14671           # Extract the first word of "$tool_basename", so it can be a program name with args.
14672 set dummy $tool_basename; ac_word=$2
14673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14674 $as_echo_n "checking for $ac_word... " >&6; }
14675 if ${ac_cv_path_READLINK+:} false; then :
14676   $as_echo_n "(cached) " >&6
14677 else
14678   case $READLINK in
14679   [\\/]* | ?:[\\/]*)
14680   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
14681   ;;
14682   *)
14683   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14684 for as_dir in $PATH
14685 do
14686   IFS=$as_save_IFS
14687   test -z "$as_dir" && as_dir=.
14688     for ac_exec_ext in '' $ac_executable_extensions; do
14689   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14690     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
14691     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14692     break 2
14693   fi
14694 done
14695   done
14696 IFS=$as_save_IFS
14697 
14698   ;;
14699 esac
14700 fi
14701 READLINK=$ac_cv_path_READLINK
14702 if test -n "$READLINK"; then
14703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
14704 $as_echo "$READLINK" >&6; }
14705 else
14706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14707 $as_echo "no" >&6; }
14708 fi
14709 
14710 
14711           if test "x$READLINK" = x; then
14712             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14713           fi
14714         else
14715           # Otherwise we believe it is a complete path. Use it as it is.
14716           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5
14717 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;}
14718           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5
14719 $as_echo_n "checking for READLINK... " >&6; }
14720           if test ! -x "$tool_specified"; then
14721             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14722 $as_echo "not found" >&6; }
14723             as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5
14724           fi
14725           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14726 $as_echo "$tool_specified" >&6; }
14727         fi
14728       fi
14729     fi
14730 
14731   fi
14732 
14733 
14734 
14735 
14736   # Publish this variable in the help.
14737 
14738 
14739   if [ -z "${DF+x}" ]; then
14740     # The variable is not set by user, try to locate tool using the code snippet
14741     for ac_prog in df
14742 do
14743   # Extract the first word of "$ac_prog", so it can be a program name with args.
14744 set dummy $ac_prog; ac_word=$2
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14746 $as_echo_n "checking for $ac_word... " >&6; }
14747 if ${ac_cv_path_DF+:} false; then :
14748   $as_echo_n "(cached) " >&6
14749 else
14750   case $DF in
14751   [\\/]* | ?:[\\/]*)
14752   ac_cv_path_DF="$DF" # Let the user override the test with a path.
14753   ;;
14754   *)
14755   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14756 for as_dir in $PATH
14757 do
14758   IFS=$as_save_IFS
14759   test -z "$as_dir" && as_dir=.
14760     for ac_exec_ext in '' $ac_executable_extensions; do
14761   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14762     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
14763     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14764     break 2
14765   fi
14766 done
14767   done
14768 IFS=$as_save_IFS
14769 
14770   ;;
14771 esac
14772 fi
14773 DF=$ac_cv_path_DF
14774 if test -n "$DF"; then
14775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
14776 $as_echo "$DF" >&6; }
14777 else
14778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14779 $as_echo "no" >&6; }
14780 fi
14781 
14782 
14783   test -n "$DF" && break
14784 done
14785 
14786   else
14787     # The variable is set, but is it from the command line or the environment?
14788 
14789     # Try to remove the string !DF! from our list.
14790     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/}
14791     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14792       # If it failed, the variable was not from the command line. Ignore it,
14793       # but warn the user (except for BASH, which is always set by the calling BASH).
14794       if test "xDF" != xBASH; then
14795         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5
14796 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;}
14797       fi
14798       # Try to locate tool using the code snippet
14799       for ac_prog in df
14800 do
14801   # Extract the first word of "$ac_prog", so it can be a program name with args.
14802 set dummy $ac_prog; ac_word=$2
14803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14804 $as_echo_n "checking for $ac_word... " >&6; }
14805 if ${ac_cv_path_DF+:} false; then :
14806   $as_echo_n "(cached) " >&6
14807 else
14808   case $DF in
14809   [\\/]* | ?:[\\/]*)
14810   ac_cv_path_DF="$DF" # Let the user override the test with a path.
14811   ;;
14812   *)
14813   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14814 for as_dir in $PATH
14815 do
14816   IFS=$as_save_IFS
14817   test -z "$as_dir" && as_dir=.
14818     for ac_exec_ext in '' $ac_executable_extensions; do
14819   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14820     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
14821     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14822     break 2
14823   fi
14824 done
14825   done
14826 IFS=$as_save_IFS
14827 
14828   ;;
14829 esac
14830 fi
14831 DF=$ac_cv_path_DF
14832 if test -n "$DF"; then
14833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
14834 $as_echo "$DF" >&6; }
14835 else
14836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14837 $as_echo "no" >&6; }
14838 fi
14839 
14840 
14841   test -n "$DF" && break
14842 done
14843 
14844     else
14845       # If it succeeded, then it was overridden by the user. We will use it
14846       # for the tool.
14847 
14848       # First remove it from the list of overridden variables, so we can test
14849       # for unknown variables in the end.
14850       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14851 
14852       # Check if we try to supply an empty value
14853       if test "x$DF" = x; then
14854         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DF= (no value)" >&5
14855 $as_echo "$as_me: Setting user supplied tool DF= (no value)" >&6;}
14856         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5
14857 $as_echo_n "checking for DF... " >&6; }
14858         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14859 $as_echo "disabled" >&6; }
14860       else
14861         # Check if the provided tool contains a complete path.
14862         tool_specified="$DF"
14863         tool_basename="${tool_specified##*/}"
14864         if test "x$tool_basename" = "x$tool_specified"; then
14865           # A command without a complete path is provided, search $PATH.
14866           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5
14867 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;}
14868           # Extract the first word of "$tool_basename", so it can be a program name with args.
14869 set dummy $tool_basename; ac_word=$2
14870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14871 $as_echo_n "checking for $ac_word... " >&6; }
14872 if ${ac_cv_path_DF+:} false; then :
14873   $as_echo_n "(cached) " >&6
14874 else
14875   case $DF in
14876   [\\/]* | ?:[\\/]*)
14877   ac_cv_path_DF="$DF" # Let the user override the test with a path.
14878   ;;
14879   *)
14880   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14881 for as_dir in $PATH
14882 do
14883   IFS=$as_save_IFS
14884   test -z "$as_dir" && as_dir=.
14885     for ac_exec_ext in '' $ac_executable_extensions; do
14886   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14887     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
14888     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14889     break 2
14890   fi
14891 done
14892   done
14893 IFS=$as_save_IFS
14894 
14895   ;;
14896 esac
14897 fi
14898 DF=$ac_cv_path_DF
14899 if test -n "$DF"; then
14900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
14901 $as_echo "$DF" >&6; }
14902 else
14903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14904 $as_echo "no" >&6; }
14905 fi
14906 
14907 
14908           if test "x$DF" = x; then
14909             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14910           fi
14911         else
14912           # Otherwise we believe it is a complete path. Use it as it is.
14913           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5
14914 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;}
14915           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5
14916 $as_echo_n "checking for DF... " >&6; }
14917           if test ! -x "$tool_specified"; then
14918             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14919 $as_echo "not found" >&6; }
14920             as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5
14921           fi
14922           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14923 $as_echo "$tool_specified" >&6; }
14924         fi
14925       fi
14926     fi
14927 
14928   fi
14929 
14930 
14931 
14932 
14933   # Publish this variable in the help.
14934 
14935 
14936   if [ -z "${CPIO+x}" ]; then
14937     # The variable is not set by user, try to locate tool using the code snippet
14938     for ac_prog in cpio bsdcpio
14939 do
14940   # Extract the first word of "$ac_prog", so it can be a program name with args.
14941 set dummy $ac_prog; ac_word=$2
14942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14943 $as_echo_n "checking for $ac_word... " >&6; }
14944 if ${ac_cv_path_CPIO+:} false; then :
14945   $as_echo_n "(cached) " >&6
14946 else
14947   case $CPIO in
14948   [\\/]* | ?:[\\/]*)
14949   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
14950   ;;
14951   *)
14952   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14953 for as_dir in $PATH
14954 do
14955   IFS=$as_save_IFS
14956   test -z "$as_dir" && as_dir=.
14957     for ac_exec_ext in '' $ac_executable_extensions; do
14958   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14959     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
14960     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14961     break 2
14962   fi
14963 done
14964   done
14965 IFS=$as_save_IFS
14966 
14967   ;;
14968 esac
14969 fi
14970 CPIO=$ac_cv_path_CPIO
14971 if test -n "$CPIO"; then
14972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
14973 $as_echo "$CPIO" >&6; }
14974 else
14975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14976 $as_echo "no" >&6; }
14977 fi
14978 
14979 
14980   test -n "$CPIO" && break
14981 done
14982 
14983   else
14984     # The variable is set, but is it from the command line or the environment?
14985 
14986     # Try to remove the string !CPIO! from our list.
14987     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/}
14988     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14989       # If it failed, the variable was not from the command line. Ignore it,
14990       # but warn the user (except for BASH, which is always set by the calling BASH).
14991       if test "xCPIO" != xBASH; then
14992         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5
14993 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;}
14994       fi
14995       # Try to locate tool using the code snippet
14996       for ac_prog in cpio bsdcpio
14997 do
14998   # Extract the first word of "$ac_prog", so it can be a program name with args.
14999 set dummy $ac_prog; ac_word=$2
15000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15001 $as_echo_n "checking for $ac_word... " >&6; }
15002 if ${ac_cv_path_CPIO+:} false; then :
15003   $as_echo_n "(cached) " >&6
15004 else
15005   case $CPIO in
15006   [\\/]* | ?:[\\/]*)
15007   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
15008   ;;
15009   *)
15010   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15011 for as_dir in $PATH
15012 do
15013   IFS=$as_save_IFS
15014   test -z "$as_dir" && as_dir=.
15015     for ac_exec_ext in '' $ac_executable_extensions; do
15016   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15017     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
15018     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15019     break 2
15020   fi
15021 done
15022   done
15023 IFS=$as_save_IFS
15024 
15025   ;;
15026 esac
15027 fi
15028 CPIO=$ac_cv_path_CPIO
15029 if test -n "$CPIO"; then
15030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
15031 $as_echo "$CPIO" >&6; }
15032 else
15033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15034 $as_echo "no" >&6; }
15035 fi
15036 
15037 
15038   test -n "$CPIO" && break
15039 done
15040 
15041     else
15042       # If it succeeded, then it was overridden by the user. We will use it
15043       # for the tool.
15044 
15045       # First remove it from the list of overridden variables, so we can test
15046       # for unknown variables in the end.
15047       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
15048 
15049       # Check if we try to supply an empty value
15050       if test "x$CPIO" = x; then
15051         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CPIO= (no value)" >&5
15052 $as_echo "$as_me: Setting user supplied tool CPIO= (no value)" >&6;}
15053         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5
15054 $as_echo_n "checking for CPIO... " >&6; }
15055         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
15056 $as_echo "disabled" >&6; }
15057       else
15058         # Check if the provided tool contains a complete path.
15059         tool_specified="$CPIO"
15060         tool_basename="${tool_specified##*/}"
15061         if test "x$tool_basename" = "x$tool_specified"; then
15062           # A command without a complete path is provided, search $PATH.
15063           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5
15064 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;}
15065           # Extract the first word of "$tool_basename", so it can be a program name with args.
15066 set dummy $tool_basename; ac_word=$2
15067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15068 $as_echo_n "checking for $ac_word... " >&6; }
15069 if ${ac_cv_path_CPIO+:} false; then :
15070   $as_echo_n "(cached) " >&6
15071 else
15072   case $CPIO in
15073   [\\/]* | ?:[\\/]*)
15074   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
15075   ;;
15076   *)
15077   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15078 for as_dir in $PATH
15079 do
15080   IFS=$as_save_IFS
15081   test -z "$as_dir" && as_dir=.
15082     for ac_exec_ext in '' $ac_executable_extensions; do
15083   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15084     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
15085     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15086     break 2
15087   fi
15088 done
15089   done
15090 IFS=$as_save_IFS
15091 
15092   ;;
15093 esac
15094 fi
15095 CPIO=$ac_cv_path_CPIO
15096 if test -n "$CPIO"; then
15097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
15098 $as_echo "$CPIO" >&6; }
15099 else
15100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15101 $as_echo "no" >&6; }
15102 fi
15103 
15104 
15105           if test "x$CPIO" = x; then
15106             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
15107           fi
15108         else
15109           # Otherwise we believe it is a complete path. Use it as it is.
15110           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5
15111 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;}
15112           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5
15113 $as_echo_n "checking for CPIO... " >&6; }
15114           if test ! -x "$tool_specified"; then
15115             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15116 $as_echo "not found" >&6; }
15117             as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5
15118           fi
15119           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
15120 $as_echo "$tool_specified" >&6; }
15121         fi
15122       fi
15123     fi
15124 
15125   fi
15126 
15127 
15128 
15129 
15130   # Publish this variable in the help.
15131 
15132 
15133   if [ -z "${NICE+x}" ]; then
15134     # The variable is not set by user, try to locate tool using the code snippet
15135     for ac_prog in nice
15136 do
15137   # Extract the first word of "$ac_prog", so it can be a program name with args.
15138 set dummy $ac_prog; ac_word=$2
15139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15140 $as_echo_n "checking for $ac_word... " >&6; }
15141 if ${ac_cv_path_NICE+:} false; then :
15142   $as_echo_n "(cached) " >&6
15143 else
15144   case $NICE in
15145   [\\/]* | ?:[\\/]*)
15146   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
15147   ;;
15148   *)
15149   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15150 for as_dir in $PATH
15151 do
15152   IFS=$as_save_IFS
15153   test -z "$as_dir" && as_dir=.
15154     for ac_exec_ext in '' $ac_executable_extensions; do
15155   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15156     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
15157     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15158     break 2
15159   fi
15160 done
15161   done
15162 IFS=$as_save_IFS
15163 
15164   ;;
15165 esac
15166 fi
15167 NICE=$ac_cv_path_NICE
15168 if test -n "$NICE"; then
15169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5
15170 $as_echo "$NICE" >&6; }
15171 else
15172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15173 $as_echo "no" >&6; }
15174 fi
15175 
15176 
15177   test -n "$NICE" && break
15178 done
15179 
15180   else
15181     # The variable is set, but is it from the command line or the environment?
15182 
15183     # Try to remove the string !NICE! from our list.
15184     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NICE!/}
15185     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
15186       # If it failed, the variable was not from the command line. Ignore it,
15187       # but warn the user (except for BASH, which is always set by the calling BASH).
15188       if test "xNICE" != xBASH; then
15189         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NICE from the environment. Use command line variables instead." >&5
15190 $as_echo "$as_me: WARNING: Ignoring value of NICE from the environment. Use command line variables instead." >&2;}
15191       fi
15192       # Try to locate tool using the code snippet
15193       for ac_prog in nice
15194 do
15195   # Extract the first word of "$ac_prog", so it can be a program name with args.
15196 set dummy $ac_prog; ac_word=$2
15197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15198 $as_echo_n "checking for $ac_word... " >&6; }
15199 if ${ac_cv_path_NICE+:} false; then :
15200   $as_echo_n "(cached) " >&6
15201 else
15202   case $NICE in
15203   [\\/]* | ?:[\\/]*)
15204   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
15205   ;;
15206   *)
15207   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15208 for as_dir in $PATH
15209 do
15210   IFS=$as_save_IFS
15211   test -z "$as_dir" && as_dir=.
15212     for ac_exec_ext in '' $ac_executable_extensions; do
15213   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15214     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
15215     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15216     break 2
15217   fi
15218 done
15219   done
15220 IFS=$as_save_IFS
15221 
15222   ;;
15223 esac
15224 fi
15225 NICE=$ac_cv_path_NICE
15226 if test -n "$NICE"; then
15227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5
15228 $as_echo "$NICE" >&6; }
15229 else
15230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15231 $as_echo "no" >&6; }
15232 fi
15233 
15234 
15235   test -n "$NICE" && break
15236 done
15237 
15238     else
15239       # If it succeeded, then it was overridden by the user. We will use it
15240       # for the tool.
15241 
15242       # First remove it from the list of overridden variables, so we can test
15243       # for unknown variables in the end.
15244       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
15245 
15246       # Check if we try to supply an empty value
15247       if test "x$NICE" = x; then
15248         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NICE= (no value)" >&5
15249 $as_echo "$as_me: Setting user supplied tool NICE= (no value)" >&6;}
15250         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NICE" >&5
15251 $as_echo_n "checking for NICE... " >&6; }
15252         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
15253 $as_echo "disabled" >&6; }
15254       else
15255         # Check if the provided tool contains a complete path.
15256         tool_specified="$NICE"
15257         tool_basename="${tool_specified##*/}"
15258         if test "x$tool_basename" = "x$tool_specified"; then
15259           # A command without a complete path is provided, search $PATH.
15260           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NICE=$tool_basename" >&5
15261 $as_echo "$as_me: Will search for user supplied tool NICE=$tool_basename" >&6;}
15262           # Extract the first word of "$tool_basename", so it can be a program name with args.
15263 set dummy $tool_basename; ac_word=$2
15264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15265 $as_echo_n "checking for $ac_word... " >&6; }
15266 if ${ac_cv_path_NICE+:} false; then :
15267   $as_echo_n "(cached) " >&6
15268 else
15269   case $NICE in
15270   [\\/]* | ?:[\\/]*)
15271   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
15272   ;;
15273   *)
15274   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15275 for as_dir in $PATH
15276 do
15277   IFS=$as_save_IFS
15278   test -z "$as_dir" && as_dir=.
15279     for ac_exec_ext in '' $ac_executable_extensions; do
15280   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15281     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
15282     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15283     break 2
15284   fi
15285 done
15286   done
15287 IFS=$as_save_IFS
15288 
15289   ;;
15290 esac
15291 fi
15292 NICE=$ac_cv_path_NICE
15293 if test -n "$NICE"; then
15294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5
15295 $as_echo "$NICE" >&6; }
15296 else
15297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15298 $as_echo "no" >&6; }
15299 fi
15300 
15301 
15302           if test "x$NICE" = x; then
15303             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
15304           fi
15305         else
15306           # Otherwise we believe it is a complete path. Use it as it is.
15307           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NICE=$tool_specified" >&5
15308 $as_echo "$as_me: Will use user supplied tool NICE=$tool_specified" >&6;}
15309           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NICE" >&5
15310 $as_echo_n "checking for NICE... " >&6; }
15311           if test ! -x "$tool_specified"; then
15312             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15313 $as_echo "not found" >&6; }
15314             as_fn_error $? "User supplied tool NICE=$tool_specified does not exist or is not executable" "$LINENO" 5
15315           fi
15316           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
15317 $as_echo "$tool_specified" >&6; }
15318         fi
15319       fi
15320     fi
15321 
15322   fi
15323 
15324 
15325 
15326 
15327 # Now we can determine OpenJDK build and target platforms. This is required to
15328 # have early on.
15329 # Make sure we can run config.sub.
15330 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
15331   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
15332 
15333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
15334 $as_echo_n "checking build system type... " >&6; }
15335 if ${ac_cv_build+:} false; then :
15336   $as_echo_n "(cached) " >&6
15337 else
15338   ac_build_alias=$build_alias
15339 test "x$ac_build_alias" = x &&
15340   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
15341 test "x$ac_build_alias" = x &&
15342   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
15343 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
15344   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
15345 
15346 fi
15347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
15348 $as_echo "$ac_cv_build" >&6; }
15349 case $ac_cv_build in
15350 *-*-*) ;;
15351 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
15352 esac
15353 build=$ac_cv_build
15354 ac_save_IFS=$IFS; IFS='-'
15355 set x $ac_cv_build
15356 shift
15357 build_cpu=$1
15358 build_vendor=$2
15359 shift; shift
15360 # Remember, the first character of IFS is used to create $*,
15361 # except with old shells:
15362 build_os=$*
15363 IFS=$ac_save_IFS
15364 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
15365 
15366 
15367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
15368 $as_echo_n "checking host system type... " >&6; }
15369 if ${ac_cv_host+:} false; then :
15370   $as_echo_n "(cached) " >&6
15371 else
15372   if test "x$host_alias" = x; then
15373   ac_cv_host=$ac_cv_build
15374 else
15375   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
15376     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
15377 fi
15378 
15379 fi
15380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
15381 $as_echo "$ac_cv_host" >&6; }
15382 case $ac_cv_host in
15383 *-*-*) ;;
15384 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
15385 esac
15386 host=$ac_cv_host
15387 ac_save_IFS=$IFS; IFS='-'
15388 set x $ac_cv_host
15389 shift
15390 host_cpu=$1
15391 host_vendor=$2
15392 shift; shift
15393 # Remember, the first character of IFS is used to create $*,
15394 # except with old shells:
15395 host_os=$*
15396 IFS=$ac_save_IFS
15397 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
15398 
15399 
15400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
15401 $as_echo_n "checking target system type... " >&6; }
15402 if ${ac_cv_target+:} false; then :
15403   $as_echo_n "(cached) " >&6
15404 else
15405   if test "x$target_alias" = x; then
15406   ac_cv_target=$ac_cv_host
15407 else
15408   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
15409     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
15410 fi
15411 
15412 fi
15413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
15414 $as_echo "$ac_cv_target" >&6; }
15415 case $ac_cv_target in
15416 *-*-*) ;;
15417 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
15418 esac
15419 target=$ac_cv_target
15420 ac_save_IFS=$IFS; IFS='-'
15421 set x $ac_cv_target
15422 shift
15423 target_cpu=$1
15424 target_vendor=$2
15425 shift; shift
15426 # Remember, the first character of IFS is used to create $*,
15427 # except with old shells:
15428 target_os=$*
15429 IFS=$ac_save_IFS
15430 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
15431 
15432 
15433 # The aliases save the names the user supplied, while $host etc.
15434 # will get canonicalized.
15435 test -n "$target_alias" &&
15436   test "$program_prefix$program_suffix$program_transform_name" = \
15437     NONENONEs,x,x, &&
15438   program_prefix=${target_alias}-
15439 
15440   # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target"
15441   # is confusing; it assumes you are cross-compiling a cross-compiler (!)  and "target" is thus the target of the
15442   # product you're building. The target of this build is called "host". Since this is confusing to most people, we
15443   # have not adopted that system, but use "target" as the platform we are building for. In some places though we need
15444   # to use the configure naming style.
15445 
15446 
15447 
15448 
15449 
15450   # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME
15451   # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME
15452   # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build,
15453   # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME.
15454   OPENJDK_TARGET_AUTOCONF_NAME="$host"
15455   OPENJDK_BUILD_AUTOCONF_NAME="$build"
15456 
15457 
15458 
15459   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
15460 
15461   case "$build_os" in
15462     *linux*)
15463       VAR_OS=linux
15464       VAR_OS_TYPE=unix
15465       ;;
15466     *solaris*)
15467       VAR_OS=solaris
15468       VAR_OS_TYPE=unix
15469       ;;
15470     *darwin*)
15471       VAR_OS=macosx
15472       VAR_OS_TYPE=unix
15473       ;;
15474     *bsd*)
15475       VAR_OS=bsd
15476       VAR_OS_TYPE=unix
15477       ;;
15478     *cygwin*)
15479       VAR_OS=windows
15480       VAR_OS_ENV=windows.cygwin
15481       ;;
15482     *mingw*)
15483       VAR_OS=windows
15484       VAR_OS_ENV=windows.msys
15485       ;;
15486     *aix*)
15487       VAR_OS=aix
15488       VAR_OS_TYPE=unix
15489       ;;
15490     *)
15491       as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5
15492       ;;
15493   esac
15494 
15495 
15496   # First argument is the cpu name from the trip/quad
15497   case "$build_cpu" in
15498     x86_64)
15499       VAR_CPU=x86_64
15500       VAR_CPU_ARCH=x86
15501       VAR_CPU_BITS=64
15502       VAR_CPU_ENDIAN=little
15503       ;;
15504     i?86)
15505       VAR_CPU=x86
15506       VAR_CPU_ARCH=x86
15507       VAR_CPU_BITS=32
15508       VAR_CPU_ENDIAN=little
15509       ;;
15510     arm*)
15511       VAR_CPU=arm
15512       VAR_CPU_ARCH=arm
15513       VAR_CPU_BITS=32
15514       VAR_CPU_ENDIAN=little
15515       ;;
15516     aarch64)
15517       VAR_CPU=aarch64
15518       VAR_CPU_ARCH=aarch64
15519       VAR_CPU_BITS=64
15520       VAR_CPU_ENDIAN=little
15521       ;;
15522     powerpc)
15523       VAR_CPU=ppc
15524       VAR_CPU_ARCH=ppc
15525       VAR_CPU_BITS=32
15526       VAR_CPU_ENDIAN=big
15527       ;;
15528     powerpc64)
15529       VAR_CPU=ppc64
15530       VAR_CPU_ARCH=ppc
15531       VAR_CPU_BITS=64
15532       VAR_CPU_ENDIAN=big
15533       ;;
15534     powerpc64le)
15535       VAR_CPU=ppc64le
15536       VAR_CPU_ARCH=ppc
15537       VAR_CPU_BITS=64
15538       VAR_CPU_ENDIAN=little
15539       ;;
15540     s390)
15541       VAR_CPU=s390
15542       VAR_CPU_ARCH=s390
15543       VAR_CPU_BITS=32
15544       VAR_CPU_ENDIAN=big
15545       ;;
15546     s390x)
15547       VAR_CPU=s390x
15548       VAR_CPU_ARCH=s390
15549       VAR_CPU_BITS=64
15550       VAR_CPU_ENDIAN=big
15551       ;;
15552     sparc)
15553       VAR_CPU=sparc
15554       VAR_CPU_ARCH=sparc
15555       VAR_CPU_BITS=32
15556       VAR_CPU_ENDIAN=big
15557       ;;
15558     sparcv9|sparc64)
15559       VAR_CPU=sparcv9
15560       VAR_CPU_ARCH=sparc
15561       VAR_CPU_BITS=64
15562       VAR_CPU_ENDIAN=big
15563       ;;
15564     *)
15565       as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5
15566       ;;
15567   esac
15568 
15569   # ..and setup our own variables. (Do this explicitly to facilitate searching)
15570   OPENJDK_BUILD_OS="$VAR_OS"
15571   if test "x$VAR_OS_TYPE" != x; then
15572     OPENJDK_BUILD_OS_TYPE="$VAR_OS_TYPE"
15573   else
15574     OPENJDK_BUILD_OS_TYPE="$VAR_OS"
15575   fi
15576   if test "x$VAR_OS_ENV" != x; then
15577     OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV"
15578   else
15579     OPENJDK_BUILD_OS_ENV="$VAR_OS"
15580   fi
15581   OPENJDK_BUILD_CPU="$VAR_CPU"
15582   OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH"
15583   OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS"
15584   OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN"
15585 
15586 
15587 
15588 
15589 
15590 
15591 
15592 
15593   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5
15594 $as_echo_n "checking openjdk-build os-cpu... " >&6; }
15595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5
15596 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; }
15597 
15598   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
15599 
15600   case "$host_os" in
15601     *linux*)
15602       VAR_OS=linux
15603       VAR_OS_TYPE=unix
15604       ;;
15605     *solaris*)
15606       VAR_OS=solaris
15607       VAR_OS_TYPE=unix
15608       ;;
15609     *darwin*)
15610       VAR_OS=macosx
15611       VAR_OS_TYPE=unix
15612       ;;
15613     *bsd*)
15614       VAR_OS=bsd
15615       VAR_OS_TYPE=unix
15616       ;;
15617     *cygwin*)
15618       VAR_OS=windows
15619       VAR_OS_ENV=windows.cygwin
15620       ;;
15621     *mingw*)
15622       VAR_OS=windows
15623       VAR_OS_ENV=windows.msys
15624       ;;
15625     *aix*)
15626       VAR_OS=aix
15627       VAR_OS_TYPE=unix
15628       ;;
15629     *)
15630       as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5
15631       ;;
15632   esac
15633 
15634 
15635   # First argument is the cpu name from the trip/quad
15636   case "$host_cpu" in
15637     x86_64)
15638       VAR_CPU=x86_64
15639       VAR_CPU_ARCH=x86
15640       VAR_CPU_BITS=64
15641       VAR_CPU_ENDIAN=little
15642       ;;
15643     i?86)
15644       VAR_CPU=x86
15645       VAR_CPU_ARCH=x86
15646       VAR_CPU_BITS=32
15647       VAR_CPU_ENDIAN=little
15648       ;;
15649     arm*)
15650       VAR_CPU=arm
15651       VAR_CPU_ARCH=arm
15652       VAR_CPU_BITS=32
15653       VAR_CPU_ENDIAN=little
15654       ;;
15655     aarch64)
15656       VAR_CPU=aarch64
15657       VAR_CPU_ARCH=aarch64
15658       VAR_CPU_BITS=64
15659       VAR_CPU_ENDIAN=little
15660       ;;
15661     powerpc)
15662       VAR_CPU=ppc
15663       VAR_CPU_ARCH=ppc
15664       VAR_CPU_BITS=32
15665       VAR_CPU_ENDIAN=big
15666       ;;
15667     powerpc64)
15668       VAR_CPU=ppc64
15669       VAR_CPU_ARCH=ppc
15670       VAR_CPU_BITS=64
15671       VAR_CPU_ENDIAN=big
15672       ;;
15673     powerpc64le)
15674       VAR_CPU=ppc64le
15675       VAR_CPU_ARCH=ppc
15676       VAR_CPU_BITS=64
15677       VAR_CPU_ENDIAN=little
15678       ;;
15679     s390)
15680       VAR_CPU=s390
15681       VAR_CPU_ARCH=s390
15682       VAR_CPU_BITS=32
15683       VAR_CPU_ENDIAN=big
15684       ;;
15685     s390x)
15686       VAR_CPU=s390x
15687       VAR_CPU_ARCH=s390
15688       VAR_CPU_BITS=64
15689       VAR_CPU_ENDIAN=big
15690       ;;
15691     sparc)
15692       VAR_CPU=sparc
15693       VAR_CPU_ARCH=sparc
15694       VAR_CPU_BITS=32
15695       VAR_CPU_ENDIAN=big
15696       ;;
15697     sparcv9|sparc64)
15698       VAR_CPU=sparcv9
15699       VAR_CPU_ARCH=sparc
15700       VAR_CPU_BITS=64
15701       VAR_CPU_ENDIAN=big
15702       ;;
15703     *)
15704       as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5
15705       ;;
15706   esac
15707 
15708   # ... and setup our own variables. (Do this explicitly to facilitate searching)
15709   OPENJDK_TARGET_OS="$VAR_OS"
15710   if test "x$VAR_OS_TYPE" != x; then
15711     OPENJDK_TARGET_OS_TYPE="$VAR_OS_TYPE"
15712   else
15713     OPENJDK_TARGET_OS_TYPE="$VAR_OS"
15714   fi
15715   if test "x$VAR_OS_ENV" != x; then
15716     OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV"
15717   else
15718     OPENJDK_TARGET_OS_ENV="$VAR_OS"
15719   fi
15720   OPENJDK_TARGET_CPU="$VAR_CPU"
15721   OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH"
15722   OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS"
15723   OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN"
15724 
15725 
15726 
15727 
15728 
15729 
15730 
15731 
15732   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5
15733 $as_echo_n "checking openjdk-target os-cpu... " >&6; }
15734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5
15735 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; }
15736 
15737 
15738 
15739 # Check whether --with-target-bits was given.
15740 if test "${with_target_bits+set}" = set; then :
15741   withval=$with_target_bits;
15742 fi
15743 
15744 
15745   # We have three types of compiles:
15746   # native  == normal compilation, target system == build system
15747   # cross   == traditional cross compilation, target system != build system; special toolchain needed
15748   # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines
15749   #
15750   if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then
15751     # We're doing a proper cross-compilation
15752     COMPILE_TYPE="cross"
15753   else
15754     COMPILE_TYPE="native"
15755   fi
15756 
15757   if test "x$with_target_bits" != x; then
15758     if test "x$COMPILE_TYPE" = "xcross"; then
15759       as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5
15760     fi
15761 
15762     if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
15763       # A reduced build is requested
15764       COMPILE_TYPE="reduced"
15765       OPENJDK_TARGET_CPU_BITS=32
15766       if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then
15767         OPENJDK_TARGET_CPU=x86
15768       elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then
15769         OPENJDK_TARGET_CPU=sparc
15770       else
15771         as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5
15772       fi
15773     elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
15774       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
15775     elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then
15776       { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5
15777 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;}
15778     else
15779       as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5
15780     fi
15781   fi
15782 
15783 
15784   { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5
15785 $as_echo_n "checking compilation type... " >&6; }
15786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5
15787 $as_echo "$COMPILE_TYPE" >&6; }
15788 
15789 
15790   if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
15791     REQUIRED_OS_NAME=SunOS
15792     REQUIRED_OS_VERSION=5.10
15793   fi
15794   if test "x$OPENJDK_TARGET_OS" = "xlinux"; then
15795     REQUIRED_OS_NAME=Linux
15796     REQUIRED_OS_VERSION=2.6
15797   fi
15798   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
15799     REQUIRED_OS_NAME=Windows
15800     if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then
15801       REQUIRED_OS_VERSION=5.2
15802     else
15803       REQUIRED_OS_VERSION=5.1
15804     fi
15805   fi
15806   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
15807     REQUIRED_OS_NAME=Darwin
15808     REQUIRED_OS_VERSION=11.2
15809   fi
15810   if test "x$OPENJDK_TARGET_OS" = "xaix"; then
15811     REQUIRED_OS_NAME=AIX
15812     REQUIRED_OS_VERSION=7.1
15813   fi
15814 
15815 
15816 
15817 
15818 
15819 
15820   # Also store the legacy naming of the cpu.
15821   # Ie i586 and amd64 instead of x86 and x86_64
15822   OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU"
15823   if test "x$OPENJDK_TARGET_CPU" = xx86; then
15824     OPENJDK_TARGET_CPU_LEGACY="i586"
15825   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
15826     # On all platforms except MacOSX replace x86_64 with amd64.
15827     OPENJDK_TARGET_CPU_LEGACY="amd64"
15828   fi
15829 
15830 
15831   # And the second legacy naming of the cpu.
15832   # Ie i386 and amd64 instead of x86 and x86_64.
15833   OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU"
15834   if test "x$OPENJDK_TARGET_CPU" = xx86; then
15835     OPENJDK_TARGET_CPU_LEGACY_LIB="i386"
15836   elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then
15837     OPENJDK_TARGET_CPU_LEGACY_LIB="amd64"
15838   fi
15839 
15840 
15841   # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to
15842   # /amd64 or /sparcv9. This string is appended to some library paths, like this:
15843   # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so
15844   OPENJDK_TARGET_CPU_ISADIR=""
15845   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
15846     if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
15847       OPENJDK_TARGET_CPU_ISADIR="/amd64"
15848     elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
15849       OPENJDK_TARGET_CPU_ISADIR="/sparcv9"
15850     fi
15851   fi
15852 
15853 
15854   # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property
15855   OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU"
15856   if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then
15857     # On linux only, we replace x86 with i386.
15858     OPENJDK_TARGET_CPU_OSARCH="i386"
15859   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
15860     # On all platforms except macosx, we replace x86_64 with amd64.
15861     OPENJDK_TARGET_CPU_OSARCH="amd64"
15862   fi
15863 
15864 
15865   OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU"
15866   if test "x$OPENJDK_TARGET_CPU" = xx86; then
15867     OPENJDK_TARGET_CPU_JLI="i386"
15868   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
15869     # On all platforms except macosx, we replace x86_64 with amd64.
15870     OPENJDK_TARGET_CPU_JLI="amd64"
15871   fi
15872 
15873   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
15874       OPENJDK_TARGET_OS_EXPORT_DIR=macosx
15875   else
15876       OPENJDK_TARGET_OS_EXPORT_DIR=${OPENJDK_TARGET_OS_TYPE}
15877   fi
15878 
15879 
15880   # The new version string in JDK 9 also defined new naming of OS and ARCH for bundles
15881   # Macosx is osx and x86_64 is x64
15882   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
15883     OPENJDK_TARGET_OS_BUNDLE="osx"
15884   else
15885     OPENJDK_TARGET_OS_BUNDLE="$OPENJDK_TARGET_OS"
15886   fi
15887   if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
15888     OPENJDK_TARGET_CPU_BUNDLE="x64"
15889   else
15890     OPENJDK_TARGET_CPU_BUNDLE="$OPENJDK_TARGET_CPU"
15891   fi
15892   OPENJDK_TARGET_BUNDLE_PLATFORM="${OPENJDK_TARGET_OS_BUNDLE}-${OPENJDK_TARGET_CPU_BUNDLE}"
15893 
15894 
15895 
15896 
15897   if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
15898     A_LP64="LP64:="
15899     # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in
15900     # unpack200.exe
15901     if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then
15902       OPENJDK_TARGET_ADD_LP64="-D_LP64=1"
15903     fi
15904   fi
15905   LP64=$A_LP64
15906 
15907 
15908   if test "x$COMPILE_TYPE" = "xcross"; then
15909     # FIXME: ... or should this include reduced builds..?
15910     DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY"
15911   else
15912     DEFINE_CROSS_COMPILE_ARCH=""
15913   fi
15914 
15915 
15916   # Convert openjdk platform names to hotspot names
15917 
15918   HOTSPOT_TARGET_OS=${OPENJDK_TARGET_OS}
15919   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
15920     HOTSPOT_TARGET_OS=bsd
15921   fi
15922 
15923 
15924   HOTSPOT_TARGET_OS_TYPE=${OPENJDK_TARGET_OS_TYPE}
15925   if test "x$OPENJDK_TARGET_OS_TYPE" = xunix; then
15926     HOTSPOT_TARGET_OS_TYPE=posix
15927   fi
15928 
15929 
15930   HOTSPOT_TARGET_CPU=${OPENJDK_TARGET_CPU}
15931   if test "x$OPENJDK_TARGET_CPU" = xx86; then
15932     HOTSPOT_TARGET_CPU=x86_32
15933   elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
15934     HOTSPOT_TARGET_CPU=sparc
15935   elif test "x$OPENJDK_TARGET_CPU" = xppc64; then
15936     HOTSPOT_TARGET_CPU=ppc_64
15937   elif test "x$OPENJDK_TARGET_CPU" = xppc64le; then
15938     HOTSPOT_TARGET_CPU=ppc_64
15939   fi
15940 
15941 
15942   # This is identical with OPENJDK_*, but define anyway for consistency.
15943   HOTSPOT_TARGET_CPU_ARCH=${OPENJDK_TARGET_CPU_ARCH}
15944 
15945 
15946   # Setup HOTSPOT_TARGET_CPU_DEFINE
15947   if test "x$OPENJDK_TARGET_CPU" = xx86; then
15948     HOTSPOT_TARGET_CPU_DEFINE=IA32
15949   elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then
15950     HOTSPOT_TARGET_CPU_DEFINE=AMD64
15951   elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
15952     HOTSPOT_TARGET_CPU_DEFINE=SPARC
15953   elif test "x$OPENJDK_TARGET_CPU" = xaarch64; then
15954     HOTSPOT_TARGET_CPU_DEFINE=AARCH64
15955   elif test "x$OPENJDK_TARGET_CPU" = xppc64; then
15956     HOTSPOT_TARGET_CPU_DEFINE=PPC64
15957   elif test "x$OPENJDK_TARGET_CPU" = xppc64le; then
15958     HOTSPOT_TARGET_CPU_DEFINE=PPC64
15959 
15960   # The cpu defines below are for zero, we don't support them directly.
15961   elif test "x$OPENJDK_TARGET_CPU" = xsparc; then
15962     HOTSPOT_TARGET_CPU_DEFINE=SPARC
15963   elif test "x$OPENJDK_TARGET_CPU" = xppc; then
15964     HOTSPOT_TARGET_CPU_DEFINE=PPC32
15965   elif test "x$OPENJDK_TARGET_CPU" = xs390; then
15966     HOTSPOT_TARGET_CPU_DEFINE=S390
15967   elif test "x$OPENJDK_TARGET_CPU" = xs390x; then
15968     HOTSPOT_TARGET_CPU_DEFINE=S390
15969   elif test "x$OPENJDK_TARGET_CPU" != x; then
15970     HOTSPOT_TARGET_CPU_DEFINE=$(echo $OPENJDK_TARGET_CPU | tr a-z A-Z)
15971   fi
15972 
15973 
15974 
15975 
15976   # Also store the legacy naming of the cpu.
15977   # Ie i586 and amd64 instead of x86 and x86_64
15978   OPENJDK_BUILD_CPU_LEGACY="$OPENJDK_BUILD_CPU"
15979   if test "x$OPENJDK_BUILD_CPU" = xx86; then
15980     OPENJDK_BUILD_CPU_LEGACY="i586"
15981   elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then
15982     # On all platforms except MacOSX replace x86_64 with amd64.
15983     OPENJDK_BUILD_CPU_LEGACY="amd64"
15984   fi
15985 
15986 
15987   # And the second legacy naming of the cpu.
15988   # Ie i386 and amd64 instead of x86 and x86_64.
15989   OPENJDK_BUILD_CPU_LEGACY_LIB="$OPENJDK_BUILD_CPU"
15990   if test "x$OPENJDK_BUILD_CPU" = xx86; then
15991     OPENJDK_BUILD_CPU_LEGACY_LIB="i386"
15992   elif test "x$OPENJDK_BUILD_CPU" = xx86_64; then
15993     OPENJDK_BUILD_CPU_LEGACY_LIB="amd64"
15994   fi
15995 
15996 
15997   # OPENJDK_BUILD_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to
15998   # /amd64 or /sparcv9. This string is appended to some library paths, like this:
15999   # /usr/lib${OPENJDK_BUILD_CPU_ISADIR}/libexample.so
16000   OPENJDK_BUILD_CPU_ISADIR=""
16001   if test "x$OPENJDK_BUILD_OS" = xsolaris; then
16002     if test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16003       OPENJDK_BUILD_CPU_ISADIR="/amd64"
16004     elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then
16005       OPENJDK_BUILD_CPU_ISADIR="/sparcv9"
16006     fi
16007   fi
16008 
16009 
16010   # Setup OPENJDK_BUILD_CPU_OSARCH, which is used to set the os.arch Java system property
16011   OPENJDK_BUILD_CPU_OSARCH="$OPENJDK_BUILD_CPU"
16012   if test "x$OPENJDK_BUILD_OS" = xlinux && test "x$OPENJDK_BUILD_CPU" = xx86; then
16013     # On linux only, we replace x86 with i386.
16014     OPENJDK_BUILD_CPU_OSARCH="i386"
16015   elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16016     # On all platforms except macosx, we replace x86_64 with amd64.
16017     OPENJDK_BUILD_CPU_OSARCH="amd64"
16018   fi
16019 
16020 
16021   OPENJDK_BUILD_CPU_JLI="$OPENJDK_BUILD_CPU"
16022   if test "x$OPENJDK_BUILD_CPU" = xx86; then
16023     OPENJDK_BUILD_CPU_JLI="i386"
16024   elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16025     # On all platforms except macosx, we replace x86_64 with amd64.
16026     OPENJDK_BUILD_CPU_JLI="amd64"
16027   fi
16028 
16029   if test "x$OPENJDK_BUILD_OS" = xmacosx; then
16030       OPENJDK_BUILD_OS_EXPORT_DIR=macosx
16031   else
16032       OPENJDK_BUILD_OS_EXPORT_DIR=${OPENJDK_BUILD_OS_TYPE}
16033   fi
16034 
16035 
16036   # The new version string in JDK 9 also defined new naming of OS and ARCH for bundles
16037   # Macosx is osx and x86_64 is x64
16038   if test "x$OPENJDK_BUILD_OS" = xmacosx; then
16039     OPENJDK_BUILD_OS_BUNDLE="osx"
16040   else
16041     OPENJDK_BUILD_OS_BUNDLE="$OPENJDK_TARGET_OS"
16042   fi
16043   if test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16044     OPENJDK_BUILD_CPU_BUNDLE="x64"
16045   else
16046     OPENJDK_BUILD_CPU_BUNDLE="$OPENJDK_BUILD_CPU"
16047   fi
16048   OPENJDK_BUILD_BUNDLE_PLATFORM="${OPENJDK_BUILD_OS_BUNDLE}-${OPENJDK_BUILD_CPU_BUNDLE}"
16049 
16050 
16051 
16052 
16053   if test "x$OPENJDK_BUILD_CPU_BITS" = x64; then
16054     A_LP64="LP64:="
16055     # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in
16056     # unpack200.exe
16057     if test "x$OPENJDK_BUILD_OS" = xlinux || test "x$OPENJDK_BUILD_OS" = xmacosx; then
16058       OPENJDK_BUILD_ADD_LP64="-D_LP64=1"
16059     fi
16060   fi
16061   LP64=$A_LP64
16062 
16063 
16064   if test "x$COMPILE_TYPE" = "xcross"; then
16065     # FIXME: ... or should this include reduced builds..?
16066     DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_BUILD_CPU_LEGACY"
16067   else
16068     DEFINE_CROSS_COMPILE_ARCH=""
16069   fi
16070 
16071 
16072   # Convert openjdk platform names to hotspot names
16073 
16074   HOTSPOT_BUILD_OS=${OPENJDK_BUILD_OS}
16075   if test "x$OPENJDK_BUILD_OS" = xmacosx; then
16076     HOTSPOT_BUILD_OS=bsd
16077   fi
16078 
16079 
16080   HOTSPOT_BUILD_OS_TYPE=${OPENJDK_BUILD_OS_TYPE}
16081   if test "x$OPENJDK_BUILD_OS_TYPE" = xunix; then
16082     HOTSPOT_BUILD_OS_TYPE=posix
16083   fi
16084 
16085 
16086   HOTSPOT_BUILD_CPU=${OPENJDK_BUILD_CPU}
16087   if test "x$OPENJDK_BUILD_CPU" = xx86; then
16088     HOTSPOT_BUILD_CPU=x86_32
16089   elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then
16090     HOTSPOT_BUILD_CPU=sparc
16091   elif test "x$OPENJDK_BUILD_CPU" = xppc64; then
16092     HOTSPOT_BUILD_CPU=ppc_64
16093   elif test "x$OPENJDK_BUILD_CPU" = xppc64le; then
16094     HOTSPOT_BUILD_CPU=ppc_64
16095   fi
16096 
16097 
16098   # This is identical with OPENJDK_*, but define anyway for consistency.
16099   HOTSPOT_BUILD_CPU_ARCH=${OPENJDK_BUILD_CPU_ARCH}
16100 
16101 
16102   # Setup HOTSPOT_BUILD_CPU_DEFINE
16103   if test "x$OPENJDK_BUILD_CPU" = xx86; then
16104     HOTSPOT_BUILD_CPU_DEFINE=IA32
16105   elif test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16106     HOTSPOT_BUILD_CPU_DEFINE=AMD64
16107   elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then
16108     HOTSPOT_BUILD_CPU_DEFINE=SPARC
16109   elif test "x$OPENJDK_BUILD_CPU" = xaarch64; then
16110     HOTSPOT_BUILD_CPU_DEFINE=AARCH64
16111   elif test "x$OPENJDK_BUILD_CPU" = xppc64; then
16112     HOTSPOT_BUILD_CPU_DEFINE=PPC64
16113   elif test "x$OPENJDK_BUILD_CPU" = xppc64le; then
16114     HOTSPOT_BUILD_CPU_DEFINE=PPC64
16115 
16116   # The cpu defines below are for zero, we don't support them directly.
16117   elif test "x$OPENJDK_BUILD_CPU" = xsparc; then
16118     HOTSPOT_BUILD_CPU_DEFINE=SPARC
16119   elif test "x$OPENJDK_BUILD_CPU" = xppc; then
16120     HOTSPOT_BUILD_CPU_DEFINE=PPC32
16121   elif test "x$OPENJDK_BUILD_CPU" = xs390; then
16122     HOTSPOT_BUILD_CPU_DEFINE=S390
16123   elif test "x$OPENJDK_BUILD_CPU" = xs390x; then
16124     HOTSPOT_BUILD_CPU_DEFINE=S390
16125   elif test "x$OPENJDK_BUILD_CPU" != x; then
16126     HOTSPOT_BUILD_CPU_DEFINE=$(echo $OPENJDK_BUILD_CPU | tr a-z A-Z)
16127   fi
16128 
16129 
16130 
16131 
16132   # ZERO_ARCHDEF is used to enable architecture-specific code.
16133   # This is used in legacy hotspot build.
16134   ZERO_ARCHDEF="$HOTSPOT_TARGET_CPU_DEFINE"
16135 
16136 
16137 
16138 
16139 
16140 # Continue setting up basic stuff. Most remaining code require fundamental tools.
16141 
16142   # Save the current directory this script was started from
16143   CURDIR="$PWD"
16144 
16145   # We might need to rewrite ORIGINAL_PATH, if it includes "#", to quote them
16146   # for make. We couldn't do this when we retrieved ORIGINAL_PATH, since SED
16147   # was not available at that time.
16148   REWRITTEN_PATH=`$ECHO "$ORIGINAL_PATH" | $SED -e 's/#/\\\\#/g'`
16149   if test "x$REWRITTEN_PATH" != "x$ORIGINAL_PATH"; then
16150     ORIGINAL_PATH="$REWRITTEN_PATH"
16151     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&5
16152 $as_echo "$as_me: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&6;}
16153   fi
16154 
16155   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
16156     PATH_SEP=";"
16157 
16158   SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m`
16159   if test $SRC_ROOT_LENGTH -gt 100; then
16160     as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5
16161   fi
16162 
16163   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16164     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5
16165 $as_echo_n "checking cygwin release... " >&6; }
16166     CYGWIN_VERSION=`$UNAME -r`
16167     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5
16168 $as_echo "$CYGWIN_VERSION" >&6; }
16169     WINDOWS_ENV_VENDOR='cygwin'
16170     WINDOWS_ENV_VERSION="$CYGWIN_VERSION"
16171 
16172     CYGWIN_VERSION_OLD=`$ECHO $CYGWIN_VERSION | $GREP -e '^1\.0-6'`
16173     if test "x$CYGWIN_VERSION_OLD" != x; then
16174       { $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
16175 $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;}
16176       as_fn_error $? "Cannot continue" "$LINENO" 5
16177     fi
16178     if test "x$CYGPATH" = x; then
16179       as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5
16180     fi
16181     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5
16182 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; }
16183     # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
16184     cygwin_winpath_root=`cd / ; cmd /c cd | $GREP ".*"`
16185     # Force cygpath to report the proper root by including a trailing space, and then stripping it off again.
16186     CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "`
16187     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5
16188 $as_echo "$CYGWIN_ROOT_PATH" >&6; }
16189     WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH"
16190     test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/`
16191     if test "x$test_cygdrive_prefix" = x; then
16192       as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5
16193     fi
16194   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16195     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5
16196 $as_echo_n "checking msys release... " >&6; }
16197     MSYS_VERSION=`$UNAME -r`
16198     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5
16199 $as_echo "$MSYS_VERSION" >&6; }
16200 
16201     WINDOWS_ENV_VENDOR='msys'
16202     WINDOWS_ENV_VERSION="$MSYS_VERSION"
16203 
16204     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5
16205 $as_echo_n "checking msys root directory as unix-style path... " >&6; }
16206     # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
16207     MSYS_ROOT_PATH=`cd / ; cmd /c cd | $GREP ".*"`
16208 
16209   windows_path="$MSYS_ROOT_PATH"
16210   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16211     unix_path=`$CYGPATH -u "$windows_path"`
16212     MSYS_ROOT_PATH="$unix_path"
16213   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16214     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16215     MSYS_ROOT_PATH="$unix_path"
16216   fi
16217 
16218     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5
16219 $as_echo "$MSYS_ROOT_PATH" >&6; }
16220     WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH"
16221   else
16222     as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5
16223   fi
16224 
16225   # Test if windows or unix (cygwin/msys) find is first in path.
16226   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5
16227 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; }
16228   FIND_BINARY_OUTPUT=`find --version 2>&1`
16229   if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then
16230     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5
16231 $as_echo "unix style" >&6; }
16232   elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then
16233     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5
16234 $as_echo "Windows" >&6; }
16235     { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5
16236 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;}
16237     { $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
16238 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;}
16239     as_fn_error $? "Cannot continue" "$LINENO" 5
16240   else
16241     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
16242 $as_echo "unknown" >&6; }
16243     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5
16244 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;}
16245   fi
16246 
16247   else
16248     PATH_SEP=":"
16249   fi
16250 
16251 
16252   # We get the top-level directory from the supporting wrappers.
16253   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for top-level directory" >&5
16254 $as_echo_n "checking for top-level directory... " >&6; }
16255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5
16256 $as_echo "$TOPDIR" >&6; }
16257 
16258 
16259   # Save the original version of TOPDIR for string comparisons
16260   ORIGINAL_TOPDIR="$TOPDIR"
16261 
16262 
16263   # We can only call BASIC_FIXUP_PATH after BASIC_CHECK_PATHS_WINDOWS.
16264 
16265   # Only process if variable expands to non-empty
16266 
16267   if test "x$CURDIR" != x; then
16268     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16269 
16270   # Input might be given as Windows format, start by converting to
16271   # unix format.
16272   path="$CURDIR"
16273   new_path=`$CYGPATH -u "$path"`
16274 
16275   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16276   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16277   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16278   # "foo.exe" is OK but "foo" is an error.
16279   #
16280   # This test is therefore slightly more accurate than "test -f" to check for file precense.
16281   # It is also a way to make sure we got the proper file name for the real test later on.
16282   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16283   if test "x$test_shortpath" = x; then
16284     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
16285 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
16286     as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5
16287   fi
16288 
16289   # Call helper function which possibly converts this using DOS-style short mode.
16290   # If so, the updated path is stored in $new_path.
16291 
16292   input_path="$new_path"
16293   # Check if we need to convert this using DOS-style short mode. If the path
16294   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16295   # take no chances and rewrite it.
16296   # Note: m4 eats our [], so we need to use [ and ] instead.
16297   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16298   if test "x$has_forbidden_chars" != x; then
16299     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16300     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16301     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16302     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16303       # Going to short mode and back again did indeed matter. Since short mode is
16304       # case insensitive, let's make it lowercase to improve readability.
16305       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16306       # Now convert it back to Unix-style (cygpath)
16307       input_path=`$CYGPATH -u "$shortmode_path"`
16308       new_path="$input_path"
16309     fi
16310   fi
16311 
16312   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16313   if test "x$test_cygdrive_prefix" = x; then
16314     # As a simple fix, exclude /usr/bin since it's not a real path.
16315     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
16316       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16317       # a path prefixed by /cygdrive for fixpath to work.
16318       new_path="$CYGWIN_ROOT_PATH$input_path"
16319     fi
16320   fi
16321 
16322 
16323   if test "x$path" != "x$new_path"; then
16324     CURDIR="$new_path"
16325     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
16326 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
16327   fi
16328 
16329     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16330 
16331   path="$CURDIR"
16332   has_colon=`$ECHO $path | $GREP ^.:`
16333   new_path="$path"
16334   if test "x$has_colon" = x; then
16335     # Not in mixed or Windows style, start by that.
16336     new_path=`cmd //c echo $path`
16337   fi
16338 
16339 
16340   input_path="$new_path"
16341   # Check if we need to convert this using DOS-style short mode. If the path
16342   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16343   # take no chances and rewrite it.
16344   # Note: m4 eats our [], so we need to use [ and ] instead.
16345   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16346   if test "x$has_forbidden_chars" != x; then
16347     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16348     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16349   fi
16350 
16351 
16352   windows_path="$new_path"
16353   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16354     unix_path=`$CYGPATH -u "$windows_path"`
16355     new_path="$unix_path"
16356   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16357     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16358     new_path="$unix_path"
16359   fi
16360 
16361   if test "x$path" != "x$new_path"; then
16362     CURDIR="$new_path"
16363     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
16364 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
16365   fi
16366 
16367   # Save the first 10 bytes of this path to the storage, so fixpath can work.
16368   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16369 
16370     else
16371       # We're on a unix platform. Hooray! :)
16372       path="$CURDIR"
16373       has_space=`$ECHO "$path" | $GREP " "`
16374       if test "x$has_space" != x; then
16375         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
16376 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
16377         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
16378       fi
16379 
16380       # Use eval to expand a potential ~
16381       eval path="$path"
16382       if test ! -f "$path" && test ! -d "$path"; then
16383         as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5
16384       fi
16385 
16386       if test -d "$path"; then
16387         CURDIR="`cd "$path"; $THEPWDCMD -L`"
16388       else
16389         dir="`$DIRNAME "$path"`"
16390         base="`$BASENAME "$path"`"
16391         CURDIR="`cd "$dir"; $THEPWDCMD -L`/$base"
16392       fi
16393     fi
16394   fi
16395 
16396 
16397   # Only process if variable expands to non-empty
16398 
16399   if test "x$TOPDIR" != x; then
16400     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16401 
16402   # Input might be given as Windows format, start by converting to
16403   # unix format.
16404   path="$TOPDIR"
16405   new_path=`$CYGPATH -u "$path"`
16406 
16407   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16408   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16409   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16410   # "foo.exe" is OK but "foo" is an error.
16411   #
16412   # This test is therefore slightly more accurate than "test -f" to check for file precense.
16413   # It is also a way to make sure we got the proper file name for the real test later on.
16414   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16415   if test "x$test_shortpath" = x; then
16416     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
16417 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
16418     as_fn_error $? "Cannot locate the the path of TOPDIR" "$LINENO" 5
16419   fi
16420 
16421   # Call helper function which possibly converts this using DOS-style short mode.
16422   # If so, the updated path is stored in $new_path.
16423 
16424   input_path="$new_path"
16425   # Check if we need to convert this using DOS-style short mode. If the path
16426   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16427   # take no chances and rewrite it.
16428   # Note: m4 eats our [], so we need to use [ and ] instead.
16429   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16430   if test "x$has_forbidden_chars" != x; then
16431     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16432     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16433     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16434     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16435       # Going to short mode and back again did indeed matter. Since short mode is
16436       # case insensitive, let's make it lowercase to improve readability.
16437       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16438       # Now convert it back to Unix-style (cygpath)
16439       input_path=`$CYGPATH -u "$shortmode_path"`
16440       new_path="$input_path"
16441     fi
16442   fi
16443 
16444   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16445   if test "x$test_cygdrive_prefix" = x; then
16446     # As a simple fix, exclude /usr/bin since it's not a real path.
16447     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
16448       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16449       # a path prefixed by /cygdrive for fixpath to work.
16450       new_path="$CYGWIN_ROOT_PATH$input_path"
16451     fi
16452   fi
16453 
16454 
16455   if test "x$path" != "x$new_path"; then
16456     TOPDIR="$new_path"
16457     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
16458 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
16459   fi
16460 
16461     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16462 
16463   path="$TOPDIR"
16464   has_colon=`$ECHO $path | $GREP ^.:`
16465   new_path="$path"
16466   if test "x$has_colon" = x; then
16467     # Not in mixed or Windows style, start by that.
16468     new_path=`cmd //c echo $path`
16469   fi
16470 
16471 
16472   input_path="$new_path"
16473   # Check if we need to convert this using DOS-style short mode. If the path
16474   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16475   # take no chances and rewrite it.
16476   # Note: m4 eats our [], so we need to use [ and ] instead.
16477   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16478   if test "x$has_forbidden_chars" != x; then
16479     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16480     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16481   fi
16482 
16483 
16484   windows_path="$new_path"
16485   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16486     unix_path=`$CYGPATH -u "$windows_path"`
16487     new_path="$unix_path"
16488   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16489     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16490     new_path="$unix_path"
16491   fi
16492 
16493   if test "x$path" != "x$new_path"; then
16494     TOPDIR="$new_path"
16495     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
16496 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
16497   fi
16498 
16499   # Save the first 10 bytes of this path to the storage, so fixpath can work.
16500   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16501 
16502     else
16503       # We're on a unix platform. Hooray! :)
16504       path="$TOPDIR"
16505       has_space=`$ECHO "$path" | $GREP " "`
16506       if test "x$has_space" != x; then
16507         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
16508 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
16509         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
16510       fi
16511 
16512       # Use eval to expand a potential ~
16513       eval path="$path"
16514       if test ! -f "$path" && test ! -d "$path"; then
16515         as_fn_error $? "The path of TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5
16516       fi
16517 
16518       if test -d "$path"; then
16519         TOPDIR="`cd "$path"; $THEPWDCMD -L`"
16520       else
16521         dir="`$DIRNAME "$path"`"
16522         base="`$BASENAME "$path"`"
16523         TOPDIR="`cd "$dir"; $THEPWDCMD -L`/$base"
16524       fi
16525     fi
16526   fi
16527 
16528   # SRC_ROOT is a traditional alias for TOPDIR.
16529   SRC_ROOT=$TOPDIR
16530 
16531   # Calculate a canonical version of TOPDIR for string comparisons
16532   CANONICAL_TOPDIR=$TOPDIR
16533 
16534   if test "x$OPENJDK_BUILD_OS" != xwindows; then
16535     # Follow a chain of symbolic links. Use readlink
16536     # where it exists, else fall back to horribly
16537     # complicated shell code.
16538     if test "x$READLINK_TESTED" != yes; then
16539       # On MacOSX there is a readlink tool with a different
16540       # purpose than the GNU readlink tool. Check the found readlink.
16541       ISGNU=`$READLINK --version 2>&1 | $GREP GNU`
16542       if test "x$ISGNU" = x; then
16543         # A readlink that we do not know how to use.
16544         # Are there other non-GNU readlinks out there?
16545         READLINK_TESTED=yes
16546         READLINK=
16547       fi
16548     fi
16549 
16550     if test "x$READLINK" != x; then
16551       CANONICAL_TOPDIR=`$READLINK -f $CANONICAL_TOPDIR`
16552     else
16553       # Save the current directory for restoring afterwards
16554       STARTDIR=$PWD
16555       COUNTER=0
16556       sym_link_dir=`$DIRNAME $CANONICAL_TOPDIR`
16557       sym_link_file=`$BASENAME $CANONICAL_TOPDIR`
16558       cd $sym_link_dir
16559       # Use -P flag to resolve symlinks in directories.
16560       cd `$THEPWDCMD -P`
16561       sym_link_dir=`$THEPWDCMD -P`
16562       # Resolve file symlinks
16563       while test $COUNTER -lt 20; do
16564         ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'`
16565         if test "x$ISLINK" == x; then
16566           # This is not a symbolic link! We are done!
16567           break
16568         fi
16569         # Again resolve directory symlinks since the target of the just found
16570         # link could be in a different directory
16571         cd `$DIRNAME $ISLINK`
16572         sym_link_dir=`$THEPWDCMD -P`
16573         sym_link_file=`$BASENAME $ISLINK`
16574         let COUNTER=COUNTER+1
16575       done
16576       cd $STARTDIR
16577       CANONICAL_TOPDIR=$sym_link_dir/$sym_link_file
16578     fi
16579   fi
16580 
16581 
16582 
16583   # Locate the directory of this script.
16584   AUTOCONF_DIR=$TOPDIR/common/autoconf
16585 
16586   # Setup username (for use in adhoc version strings etc)
16587   # Outer [ ] to quote m4.
16588    USERNAME=`$ECHO "$USER" | $TR -d -c '[a-z][A-Z][0-9]'`
16589 
16590 
16591 
16592 # Check if it's a pure open build or if custom sources are to be used.
16593 
16594   # Check whether --enable-openjdk-only was given.
16595 if test "${enable_openjdk_only+set}" = set; then :
16596   enableval=$enable_openjdk_only;
16597 else
16598   enable_openjdk_only="no"
16599 fi
16600 
16601 
16602   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if custom source is suppressed (openjdk-only)" >&5
16603 $as_echo_n "checking if custom source is suppressed (openjdk-only)... " >&6; }
16604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_openjdk_only" >&5
16605 $as_echo "$enable_openjdk_only" >&6; }
16606   if test "x$enable_openjdk_only" = "xyes"; then
16607     SUPPRESS_CUSTOM_EXTENSIONS="true"
16608   elif test "x$enable_openjdk_only" = "xno"; then
16609     SUPPRESS_CUSTOM_EXTENSIONS="false"
16610   else
16611     as_fn_error $? "Invalid value for --enable-openjdk-only: $enable_openjdk_only" "$LINENO" 5
16612   fi
16613 
16614   # custom-make-dir is deprecated. Please use your custom-hook.m4 to override
16615   # the IncludeCustomExtension macro.
16616 
16617 
16618 # Check whether --with-custom-make-dir was given.
16619 if test "${with_custom_make_dir+set}" = set; then :
16620   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
16621 $as_echo "$as_me: WARNING: Option --with-custom-make-dir is deprecated and will be ignored." >&2;}
16622 fi
16623 
16624 
16625 
16626 
16627 # These are needed to be able to create a configuration name (and thus the output directory)
16628 
16629   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5
16630 $as_echo_n "checking which variant of the JDK to build... " >&6; }
16631 
16632 # Check whether --with-jdk-variant was given.
16633 if test "${with_jdk_variant+set}" = set; then :
16634   withval=$with_jdk_variant;
16635 fi
16636 
16637 
16638   if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then
16639     JDK_VARIANT="normal"
16640   else
16641     as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5
16642   fi
16643 
16644 
16645 
16646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5
16647 $as_echo "$JDK_VARIANT" >&6; }
16648 
16649 
16650   DEBUG_LEVEL="release"
16651   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5
16652 $as_echo_n "checking which debug level to use... " >&6; }
16653   # Check whether --enable-debug was given.
16654 if test "${enable_debug+set}" = set; then :
16655   enableval=$enable_debug;
16656         ENABLE_DEBUG="${enableval}"
16657         DEBUG_LEVEL="fastdebug"
16658 
16659 else
16660   ENABLE_DEBUG="no"
16661 fi
16662 
16663 
16664 
16665 # Check whether --with-debug-level was given.
16666 if test "${with_debug_level+set}" = set; then :
16667   withval=$with_debug_level;
16668         DEBUG_LEVEL="${withval}"
16669         if test "x$ENABLE_DEBUG" = xyes; then
16670           as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5
16671         fi
16672 
16673 fi
16674 
16675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5
16676 $as_echo "$DEBUG_LEVEL" >&6; }
16677 
16678   if test "x$DEBUG_LEVEL" != xrelease && \
16679       test "x$DEBUG_LEVEL" != xoptimized && \
16680       test "x$DEBUG_LEVEL" != xfastdebug && \
16681       test "x$DEBUG_LEVEL" != xslowdebug; then
16682     as_fn_error $? "Allowed debug levels are: release, fastdebug, slowdebug and optimized" "$LINENO" 5
16683   fi
16684 
16685   # Translate DEBUG_LEVEL to debug level used by Hotspot
16686   HOTSPOT_DEBUG_LEVEL="$DEBUG_LEVEL"
16687   if test "x$DEBUG_LEVEL" = xrelease; then
16688     HOTSPOT_DEBUG_LEVEL="product"
16689   elif test "x$DEBUG_LEVEL" = xslowdebug; then
16690     HOTSPOT_DEBUG_LEVEL="debug"
16691   fi
16692 
16693   if test "x$DEBUG_LEVEL" = xoptimized; then
16694     # The debug level 'optimized' is a little special because it is currently only
16695     # applicable to the HotSpot build where it means to build a completely
16696     # optimized version of the VM without any debugging code (like for the
16697     # 'release' debug level which is called 'product' in the HotSpot build) but
16698     # with the exception that it can contain additional code which is otherwise
16699     # protected by '#ifndef PRODUCT' macros. These 'optimized' builds are used to
16700     # test new and/or experimental features which are not intended for customer
16701     # shipment. Because these new features need to be tested and benchmarked in
16702     # real world scenarios, we want to build the containing JDK at the 'release'
16703     # debug level.
16704     DEBUG_LEVEL="release"
16705   fi
16706 
16707 
16708 
16709 
16710 
16711 
16712 # Check whether --with-jvm-variants was given.
16713 if test "${with_jvm_variants+set}" = set; then :
16714   withval=$with_jvm_variants;
16715 fi
16716 
16717 
16718 
16719 
16720 # Check whether --with-cpu-port was given.
16721 if test "${with_cpu_port+set}" = set; then :
16722   withval=$with_cpu_port;
16723 fi
16724 
16725 
16726   if test "x$with_cpu_port" != x; then
16727     if test "x$OPENJDK_TARGET_CPU" != xaarch64; then
16728       as_fn_error $? "--with-cpu-port only available on aarch64" "$LINENO" 5
16729     fi
16730     if test "x$with_cpu_port" != xarm64 && \
16731         test "x$with_cpu_port" != xaarch64; then
16732       as_fn_error $? "--with-cpu-port must specify arm64 or aarch64" "$LINENO" 5
16733     fi
16734     HOTSPOT_TARGET_CPU_PORT="$with_cpu_port"
16735   fi
16736 
16737 
16738   if test "x$with_jvm_variants" = x; then
16739     with_jvm_variants="server"
16740   fi
16741   JVM_VARIANTS_OPT="$with_jvm_variants"
16742 
16743   # Has the user listed more than one variant?
16744   # Additional [] needed to keep m4 from mangling shell constructs.
16745   if  [[ "$JVM_VARIANTS_OPT" =~ "," ]] ; then
16746     BUILDING_MULTIPLE_JVM_VARIANTS=true
16747   else
16748     BUILDING_MULTIPLE_JVM_VARIANTS=false
16749   fi
16750   # Replace the commas with AND for use in the build directory name.
16751   JVM_VARIANTS_WITH_AND=`$ECHO "$JVM_VARIANTS_OPT" | $SED -e 's/,/AND/g'`
16752 
16753   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5
16754 $as_echo_n "checking which variants of the JVM to build... " >&6; }
16755   # JVM_VARIANTS is a space-separated list.
16756   # Also use minimal, not minimal1 (which is kept for backwards compatibility).
16757   JVM_VARIANTS=`$ECHO $JVM_VARIANTS_OPT | $SED -e 's/,/ /g' -e 's/minimal1/minimal/'`
16758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JVM_VARIANTS" >&5
16759 $as_echo "$JVM_VARIANTS" >&6; }
16760 
16761   # Check that the selected variants are valid
16762 
16763   # grep filter function inspired by a comment to http://stackoverflow.com/a/1617326
16764   # Notice that the original variant failes on SLES 10 and 11
16765   NEEDLE=${VALID_JVM_VARIANTS// /$'\n'}
16766   STACK=${JVM_VARIANTS// /$'\n'}
16767   INVALID_VARIANTS=`$GREP -Fvx "${NEEDLE}" <<< "${STACK}"`
16768   if test "x$INVALID_VARIANTS" != x; then
16769     { $as_echo "$as_me:${as_lineno-$LINENO}: Unknown variant(s) specified: $INVALID_VARIANTS" >&5
16770 $as_echo "$as_me: Unknown variant(s) specified: $INVALID_VARIANTS" >&6;}
16771     as_fn_error $? "The available JVM variants are: $VALID_JVM_VARIANTS" "$LINENO" 5
16772   fi
16773 
16774   # All "special" variants share the same output directory ("server")
16775   VALID_MULTIPLE_JVM_VARIANTS="server client minimal"
16776   NEEDLE=${VALID_MULTIPLE_JVM_VARIANTS// /$'\n'}
16777   STACK=${JVM_VARIANTS// /$'\n'}
16778   INVALID_MULTIPLE_VARIANTS=`$GREP -Fvx "${NEEDLE}" <<< "${STACK}"`
16779   if  test "x$INVALID_MULTIPLE_VARIANTS" != x && test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = xtrue; then
16780     as_fn_error $? "You cannot build multiple variants with anything else than $VALID_MULTIPLE_JVM_VARIANTS." "$LINENO" 5
16781   fi
16782 
16783   # The "main" variant is the one used by other libs to link against during the
16784   # build.
16785   if test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = "xtrue"; then
16786     MAIN_VARIANT_PRIO_ORDER="server client minimal"
16787     for variant in $MAIN_VARIANT_PRIO_ORDER; do
16788       if   [[ " $JVM_VARIANTS " =~ " $variant " ]]  ; then
16789         JVM_VARIANT_MAIN="$variant"
16790         break
16791       fi
16792     done
16793   else
16794     JVM_VARIANT_MAIN="$JVM_VARIANTS"
16795   fi
16796 
16797 
16798 
16799 
16800 
16801   if   [[ " $JVM_VARIANTS " =~ " zero " ]]   ||   [[ " $JVM_VARIANTS " =~ " zeroshark " ]]  ; then
16802     # zero behaves as a platform and rewrites these values. This is really weird. :(
16803     # We are guaranteed that we do not build any other variants when building zero.
16804     HOTSPOT_TARGET_CPU=zero
16805     HOTSPOT_TARGET_CPU_ARCH=zero
16806   fi
16807 
16808 
16809 # With basic setup done, call the custom early hook.
16810 
16811 
16812 # Check if we have devkits, extra paths or sysroot set.
16813 
16814 
16815 # Check whether --with-devkit was given.
16816 if test "${with_devkit+set}" = set; then :
16817   withval=$with_devkit;
16818 
16819   # Only process if variable expands to non-empty
16820 
16821   if test "x$with_devkit" != x; then
16822     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16823 
16824   # Input might be given as Windows format, start by converting to
16825   # unix format.
16826   path="$with_devkit"
16827   new_path=`$CYGPATH -u "$path"`
16828 
16829   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16830   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16831   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16832   # "foo.exe" is OK but "foo" is an error.
16833   #
16834   # This test is therefore slightly more accurate than "test -f" to check for file precense.
16835   # It is also a way to make sure we got the proper file name for the real test later on.
16836   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16837   if test "x$test_shortpath" = x; then
16838     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
16839 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
16840     as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5
16841   fi
16842 
16843   # Call helper function which possibly converts this using DOS-style short mode.
16844   # If so, the updated path is stored in $new_path.
16845 
16846   input_path="$new_path"
16847   # Check if we need to convert this using DOS-style short mode. If the path
16848   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16849   # take no chances and rewrite it.
16850   # Note: m4 eats our [], so we need to use [ and ] instead.
16851   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16852   if test "x$has_forbidden_chars" != x; then
16853     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16854     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16855     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16856     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16857       # Going to short mode and back again did indeed matter. Since short mode is
16858       # case insensitive, let's make it lowercase to improve readability.
16859       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16860       # Now convert it back to Unix-style (cygpath)
16861       input_path=`$CYGPATH -u "$shortmode_path"`
16862       new_path="$input_path"
16863     fi
16864   fi
16865 
16866   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16867   if test "x$test_cygdrive_prefix" = x; then
16868     # As a simple fix, exclude /usr/bin since it's not a real path.
16869     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
16870       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16871       # a path prefixed by /cygdrive for fixpath to work.
16872       new_path="$CYGWIN_ROOT_PATH$input_path"
16873     fi
16874   fi
16875 
16876 
16877   if test "x$path" != "x$new_path"; then
16878     with_devkit="$new_path"
16879     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
16880 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
16881   fi
16882 
16883     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16884 
16885   path="$with_devkit"
16886   has_colon=`$ECHO $path | $GREP ^.:`
16887   new_path="$path"
16888   if test "x$has_colon" = x; then
16889     # Not in mixed or Windows style, start by that.
16890     new_path=`cmd //c echo $path`
16891   fi
16892 
16893 
16894   input_path="$new_path"
16895   # Check if we need to convert this using DOS-style short mode. If the path
16896   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16897   # take no chances and rewrite it.
16898   # Note: m4 eats our [], so we need to use [ and ] instead.
16899   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16900   if test "x$has_forbidden_chars" != x; then
16901     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16902     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16903   fi
16904 
16905 
16906   windows_path="$new_path"
16907   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16908     unix_path=`$CYGPATH -u "$windows_path"`
16909     new_path="$unix_path"
16910   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16911     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16912     new_path="$unix_path"
16913   fi
16914 
16915   if test "x$path" != "x$new_path"; then
16916     with_devkit="$new_path"
16917     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
16918 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
16919   fi
16920 
16921   # Save the first 10 bytes of this path to the storage, so fixpath can work.
16922   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16923 
16924     else
16925       # We're on a unix platform. Hooray! :)
16926       path="$with_devkit"
16927       has_space=`$ECHO "$path" | $GREP " "`
16928       if test "x$has_space" != x; then
16929         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
16930 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
16931         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
16932       fi
16933 
16934       # Use eval to expand a potential ~
16935       eval path="$path"
16936       if test ! -f "$path" && test ! -d "$path"; then
16937         as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5
16938       fi
16939 
16940       if test -d "$path"; then
16941         with_devkit="`cd "$path"; $THEPWDCMD -L`"
16942       else
16943         dir="`$DIRNAME "$path"`"
16944         base="`$BASENAME "$path"`"
16945         with_devkit="`cd "$dir"; $THEPWDCMD -L`/$base"
16946       fi
16947     fi
16948   fi
16949 
16950         DEVKIT_ROOT="$with_devkit"
16951         # Check for a meta data info file in the root of the devkit
16952         if test -f "$DEVKIT_ROOT/devkit.info"; then
16953           . $DEVKIT_ROOT/devkit.info
16954           # This potentially sets the following:
16955           # A descriptive name of the devkit
16956 
16957   if test "x$DEVKIT_NAME" = x; then
16958     eval DEVKIT_NAME="\${DEVKIT_NAME_${OPENJDK_TARGET_CPU}}"
16959   fi
16960 
16961           # Corresponds to --with-extra-path
16962 
16963   if test "x$DEVKIT_EXTRA_PATH" = x; then
16964     eval DEVKIT_EXTRA_PATH="\${DEVKIT_EXTRA_PATH_${OPENJDK_TARGET_CPU}}"
16965   fi
16966 
16967           # Corresponds to --with-toolchain-path
16968 
16969   if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then
16970     eval DEVKIT_TOOLCHAIN_PATH="\${DEVKIT_TOOLCHAIN_PATH_${OPENJDK_TARGET_CPU}}"
16971   fi
16972 
16973           # Corresponds to --with-sysroot
16974 
16975   if test "x$DEVKIT_SYSROOT" = x; then
16976     eval DEVKIT_SYSROOT="\${DEVKIT_SYSROOT_${OPENJDK_TARGET_CPU}}"
16977   fi
16978 
16979 
16980           # Identifies the Visual Studio version in the devkit
16981 
16982   if test "x$DEVKIT_VS_VERSION" = x; then
16983     eval DEVKIT_VS_VERSION="\${DEVKIT_VS_VERSION_${OPENJDK_TARGET_CPU}}"
16984   fi
16985 
16986           # The Visual Studio include environment variable
16987 
16988   if test "x$DEVKIT_VS_INCLUDE" = x; then
16989     eval DEVKIT_VS_INCLUDE="\${DEVKIT_VS_INCLUDE_${OPENJDK_TARGET_CPU}}"
16990   fi
16991 
16992           # The Visual Studio lib environment variable
16993 
16994   if test "x$DEVKIT_VS_LIB" = x; then
16995     eval DEVKIT_VS_LIB="\${DEVKIT_VS_LIB_${OPENJDK_TARGET_CPU}}"
16996   fi
16997 
16998           # Corresponds to --with-msvcr-dll
16999 
17000   if test "x$DEVKIT_MSVCR_DLL" = x; then
17001     eval DEVKIT_MSVCR_DLL="\${DEVKIT_MSVCR_DLL_${OPENJDK_TARGET_CPU}}"
17002   fi
17003 
17004           # Corresponds to --with-msvcp-dll
17005 
17006   if test "x$DEVKIT_MSVCP_DLL" = x; then
17007     eval DEVKIT_MSVCP_DLL="\${DEVKIT_MSVCP_DLL_${OPENJDK_TARGET_CPU}}"
17008   fi
17009 
17010         fi
17011 
17012         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devkit" >&5
17013 $as_echo_n "checking for devkit... " >&6; }
17014         if test "x$DEVKIT_NAME" != x; then
17015           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_NAME in $DEVKIT_ROOT" >&5
17016 $as_echo "$DEVKIT_NAME in $DEVKIT_ROOT" >&6; }
17017         else
17018           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_ROOT" >&5
17019 $as_echo "$DEVKIT_ROOT" >&6; }
17020         fi
17021 
17022 
17023   if test "x$DEVKIT_EXTRA_PATH" != x; then
17024     if test "x$EXTRA_PATH" = x; then
17025       EXTRA_PATH="$DEVKIT_EXTRA_PATH"
17026     else
17027       EXTRA_PATH="$DEVKIT_EXTRA_PATH:$EXTRA_PATH"
17028     fi
17029   fi
17030 
17031 
17032         # Fallback default of just /bin if DEVKIT_PATH is not defined
17033         if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then
17034           DEVKIT_TOOLCHAIN_PATH="$DEVKIT_ROOT/bin"
17035         fi
17036 
17037   if test "x$DEVKIT_TOOLCHAIN_PATH" != x; then
17038     if test "x$TOOLCHAIN_PATH" = x; then
17039       TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH"
17040     else
17041       TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH:$TOOLCHAIN_PATH"
17042     fi
17043   fi
17044 
17045 
17046         # If DEVKIT_SYSROOT is set, use that, otherwise try a couple of known
17047         # places for backwards compatiblity.
17048         if test "x$DEVKIT_SYSROOT" != x; then
17049           SYSROOT="$DEVKIT_SYSROOT"
17050         elif test -d "$DEVKIT_ROOT/$host_alias/libc"; then
17051           SYSROOT="$DEVKIT_ROOT/$host_alias/libc"
17052         elif test -d "$DEVKIT_ROOT/$host/sys-root"; then
17053           SYSROOT="$DEVKIT_ROOT/$host/sys-root"
17054         fi
17055 
17056 
17057 fi
17058 
17059 
17060   # You can force the sysroot if the sysroot encoded into the compiler tools
17061   # is not correct.
17062 
17063 # Check whether --with-sys-root was given.
17064 if test "${with_sys_root+set}" = set; then :
17065   withval=$with_sys_root; SYSROOT=$with_sys_root
17066 
17067 fi
17068 
17069 
17070 
17071 # Check whether --with-sysroot was given.
17072 if test "${with_sysroot+set}" = set; then :
17073   withval=$with_sysroot; SYSROOT=$with_sysroot
17074 
17075 fi
17076 
17077 
17078 
17079 # Check whether --with-tools-dir was given.
17080 if test "${with_tools_dir+set}" = set; then :
17081   withval=$with_tools_dir;
17082   if test "x$with_tools_dir" != x; then
17083     if test "x$TOOLCHAIN_PATH" = x; then
17084       TOOLCHAIN_PATH="$with_tools_dir"
17085     else
17086       TOOLCHAIN_PATH="$with_tools_dir:$TOOLCHAIN_PATH"
17087     fi
17088   fi
17089 
17090 
17091 fi
17092 
17093 
17094 
17095 # Check whether --with-toolchain-path was given.
17096 if test "${with_toolchain_path+set}" = set; then :
17097   withval=$with_toolchain_path;
17098   if test "x$with_toolchain_path" != x; then
17099     if test "x$TOOLCHAIN_PATH" = x; then
17100       TOOLCHAIN_PATH="$with_toolchain_path"
17101     else
17102       TOOLCHAIN_PATH="$with_toolchain_path:$TOOLCHAIN_PATH"
17103     fi
17104   fi
17105 
17106 
17107 fi
17108 
17109 
17110 
17111 # Check whether --with-extra-path was given.
17112 if test "${with_extra_path+set}" = set; then :
17113   withval=$with_extra_path;
17114   if test "x$with_extra_path" != x; then
17115     if test "x$EXTRA_PATH" = x; then
17116       EXTRA_PATH="$with_extra_path"
17117     else
17118       EXTRA_PATH="$with_extra_path:$EXTRA_PATH"
17119     fi
17120   fi
17121 
17122 
17123 fi
17124 
17125 
17126   if test "x$OPENJDK_BUILD_OS" = "xmacosx"; then
17127     # If a devkit has been supplied, find xcodebuild in the toolchain_path.
17128     # If not, detect if Xcode is installed by running xcodebuild -version
17129     # if no Xcode installed, xcodebuild exits with 1
17130     # if Xcode is installed, even if xcode-select is misconfigured, then it exits with 0
17131     if test "x$DEVKIT_ROOT" != x || /usr/bin/xcodebuild -version >/dev/null 2>&1; then
17132       # We need to use xcodebuild in the toolchain dir provided by the user, this will
17133       # fall back on the stub binary in /usr/bin/xcodebuild
17134       # Extract the first word of "xcodebuild", so it can be a program name with args.
17135 set dummy xcodebuild; ac_word=$2
17136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17137 $as_echo_n "checking for $ac_word... " >&6; }
17138 if ${ac_cv_path_XCODEBUILD+:} false; then :
17139   $as_echo_n "(cached) " >&6
17140 else
17141   case $XCODEBUILD in
17142   [\\/]* | ?:[\\/]*)
17143   ac_cv_path_XCODEBUILD="$XCODEBUILD" # Let the user override the test with a path.
17144   ;;
17145   *)
17146   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17147 for as_dir in $TOOLCHAIN_PATH
17148 do
17149   IFS=$as_save_IFS
17150   test -z "$as_dir" && as_dir=.
17151     for ac_exec_ext in '' $ac_executable_extensions; do
17152   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17153     ac_cv_path_XCODEBUILD="$as_dir/$ac_word$ac_exec_ext"
17154     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17155     break 2
17156   fi
17157 done
17158   done
17159 IFS=$as_save_IFS
17160 
17161   test -z "$ac_cv_path_XCODEBUILD" && ac_cv_path_XCODEBUILD="/usr/bin/xcodebuild"
17162   ;;
17163 esac
17164 fi
17165 XCODEBUILD=$ac_cv_path_XCODEBUILD
17166 if test -n "$XCODEBUILD"; then
17167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODEBUILD" >&5
17168 $as_echo "$XCODEBUILD" >&6; }
17169 else
17170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17171 $as_echo "no" >&6; }
17172 fi
17173 
17174 
17175     else
17176       # this should result in SYSROOT being empty, unless --with-sysroot is provided
17177       # when only the command line tools are installed there are no SDKs, so headers
17178       # are copied into the system frameworks
17179       XCODEBUILD=
17180 
17181     fi
17182 
17183     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdk name" >&5
17184 $as_echo_n "checking for sdk name... " >&6; }
17185 
17186 # Check whether --with-sdk-name was given.
17187 if test "${with_sdk_name+set}" = set; then :
17188   withval=$with_sdk_name; SDKNAME=$with_sdk_name
17189 
17190 fi
17191 
17192     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDKNAME" >&5
17193 $as_echo "$SDKNAME" >&6; }
17194 
17195     # if toolchain path is specified then don't rely on system headers, they may not compile
17196     HAVE_SYSTEM_FRAMEWORK_HEADERS=0
17197     test -z "$TOOLCHAIN_PATH" && \
17198       HAVE_SYSTEM_FRAMEWORK_HEADERS=`test ! -f /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h; echo $?`
17199 
17200     if test -z "$SYSROOT"; then
17201       if test -n "$XCODEBUILD"; then
17202         # if we don't have system headers, use default SDK name (last resort)
17203         if test -z "$SDKNAME" -a $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then
17204           SDKNAME=${SDKNAME:-macosx}
17205         fi
17206 
17207         if test -n "$SDKNAME"; then
17208           # Call xcodebuild to determine SYSROOT
17209           SYSROOT=`"$XCODEBUILD" -sdk $SDKNAME -version | $GREP '^Path: ' | $SED 's/Path: //'`
17210         fi
17211       else
17212         if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then
17213           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
17214         fi
17215       fi
17216     else
17217       # warn user if --with-sdk-name was also set
17218       if test -n "$with_sdk_name"; then
17219         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&5
17220 $as_echo "$as_me: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&2;}
17221       fi
17222     fi
17223 
17224     if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0 -a -z "$SYSROOT"; then
17225       # If no system framework headers, then SYSROOT must be set, or we won't build
17226       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
17227     fi
17228 
17229     # Perform a basic sanity test
17230     if test ! -f "$SYSROOT/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h"; then
17231       if test -z "$SYSROOT"; then
17232         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
17233       else
17234         as_fn_error $? "Invalid SDK or SYSROOT path, dependent framework headers not found" "$LINENO" 5
17235       fi
17236     fi
17237 
17238     # set SDKROOT too, Xcode tools will pick it up
17239     SDKROOT=$SYSROOT
17240 
17241   fi
17242 
17243   # Prepend the extra path to the global path
17244 
17245   if test "x$EXTRA_PATH" != x; then
17246     if test "x$PATH" = x; then
17247       PATH="$EXTRA_PATH"
17248     else
17249       PATH="$EXTRA_PATH:$PATH"
17250     fi
17251   fi
17252 
17253 
17254   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
17255 $as_echo_n "checking for sysroot... " >&6; }
17256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSROOT" >&5
17257 $as_echo "$SYSROOT" >&6; }
17258   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for toolchain path" >&5
17259 $as_echo_n "checking for toolchain path... " >&6; }
17260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH" >&5
17261 $as_echo "$TOOLCHAIN_PATH" >&6; }
17262   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra path" >&5
17263 $as_echo_n "checking for extra path... " >&6; }
17264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_PATH" >&5
17265 $as_echo "$EXTRA_PATH" >&6; }
17266 
17267 
17268 # To properly create a configuration name, we need to have the OpenJDK target
17269 # and options (variants and debug level) parsed.
17270 
17271 
17272 
17273 # Check whether --with-conf-name was given.
17274 if test "${with_conf_name+set}" = set; then :
17275   withval=$with_conf_name;  CONF_NAME=${with_conf_name}
17276 fi
17277 
17278 
17279   # Test from where we are running configure, in or outside of src root.
17280   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to store configuration" >&5
17281 $as_echo_n "checking where to store configuration... " >&6; }
17282   if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" \
17283       || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" \
17284       || test "x$CURDIR" = "x$SRC_ROOT/make" ; then
17285     # We are running configure from the src root.
17286     # Create a default ./build/target-variant-debuglevel output root.
17287     if test "x${CONF_NAME}" = x; then
17288       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default location" >&5
17289 $as_echo "in default location" >&6; }
17290       CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${JVM_VARIANTS_WITH_AND}-${DEBUG_LEVEL}"
17291     else
17292       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5
17293 $as_echo "in build directory with custom name" >&6; }
17294     fi
17295     OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}"
17296     $MKDIR -p "$OUTPUT_ROOT"
17297     if test ! -d "$OUTPUT_ROOT"; then
17298       as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5
17299     fi
17300   else
17301     # We are running configure from outside of the src dir.
17302     # Then use the current directory as output dir!
17303     # If configuration is situated in normal build directory, just use the build
17304     # directory name as configuration name, otherwise use the complete path.
17305     if test "x${CONF_NAME}" = x; then
17306       CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${SRC_ROOT}/build/!!"`
17307     fi
17308     OUTPUT_ROOT="$CURDIR"
17309     { $as_echo "$as_me:${as_lineno-$LINENO}: result: in current directory" >&5
17310 $as_echo "in current directory" >&6; }
17311 
17312     # WARNING: This might be a bad thing to do. You need to be sure you want to
17313     # have a configuration in this directory. Do some sanity checks!
17314 
17315     if test ! -e "$OUTPUT_ROOT/spec.gmk"; then
17316       # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for
17317       # other files
17318       files_present=`$LS $OUTPUT_ROOT`
17319       # Configure has already touched config.log and confdefs.h in the current dir when this check
17320       # is performed.
17321       filtered_files=`$ECHO "$files_present" \
17322           | $SED -e 's/config.log//g' \
17323               -e 's/configure.log//g' \
17324               -e 's/confdefs.h//g' \
17325               -e 's/ //g' \
17326           | $TR -d '\n'`
17327       if test "x$filtered_files" != x; then
17328         { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5
17329 $as_echo "$as_me: Current directory is $CURDIR." >&6;}
17330         { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5
17331 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;}
17332         { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5
17333 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;}
17334         { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5
17335 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;}
17336         { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5
17337 $as_echo "$as_me: seriously mess up just about everything." >&6;}
17338         { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $SRC_ROOT' and restart configure" >&5
17339 $as_echo "$as_me: Try 'cd $SRC_ROOT' and restart configure" >&6;}
17340         { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5
17341 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;}
17342         as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5
17343       fi
17344     fi
17345   fi
17346   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5
17347 $as_echo_n "checking what configuration name to use... " >&6; }
17348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5
17349 $as_echo "$CONF_NAME" >&6; }
17350 
17351 
17352   # Only process if variable expands to non-empty
17353 
17354   if test "x$OUTPUT_ROOT" != x; then
17355     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17356 
17357   # Input might be given as Windows format, start by converting to
17358   # unix format.
17359   path="$OUTPUT_ROOT"
17360   new_path=`$CYGPATH -u "$path"`
17361 
17362   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
17363   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
17364   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
17365   # "foo.exe" is OK but "foo" is an error.
17366   #
17367   # This test is therefore slightly more accurate than "test -f" to check for file precense.
17368   # It is also a way to make sure we got the proper file name for the real test later on.
17369   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
17370   if test "x$test_shortpath" = x; then
17371     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
17372 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
17373     as_fn_error $? "Cannot locate the the path of OUTPUT_ROOT" "$LINENO" 5
17374   fi
17375 
17376   # Call helper function which possibly converts this using DOS-style short mode.
17377   # If so, the updated path is stored in $new_path.
17378 
17379   input_path="$new_path"
17380   # Check if we need to convert this using DOS-style short mode. If the path
17381   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17382   # take no chances and rewrite it.
17383   # Note: m4 eats our [], so we need to use [ and ] instead.
17384   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
17385   if test "x$has_forbidden_chars" != x; then
17386     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17387     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
17388     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
17389     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
17390       # Going to short mode and back again did indeed matter. Since short mode is
17391       # case insensitive, let's make it lowercase to improve readability.
17392       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17393       # Now convert it back to Unix-style (cygpath)
17394       input_path=`$CYGPATH -u "$shortmode_path"`
17395       new_path="$input_path"
17396     fi
17397   fi
17398 
17399   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
17400   if test "x$test_cygdrive_prefix" = x; then
17401     # As a simple fix, exclude /usr/bin since it's not a real path.
17402     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
17403       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
17404       # a path prefixed by /cygdrive for fixpath to work.
17405       new_path="$CYGWIN_ROOT_PATH$input_path"
17406     fi
17407   fi
17408 
17409 
17410   if test "x$path" != "x$new_path"; then
17411     OUTPUT_ROOT="$new_path"
17412     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
17413 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
17414   fi
17415 
17416     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17417 
17418   path="$OUTPUT_ROOT"
17419   has_colon=`$ECHO $path | $GREP ^.:`
17420   new_path="$path"
17421   if test "x$has_colon" = x; then
17422     # Not in mixed or Windows style, start by that.
17423     new_path=`cmd //c echo $path`
17424   fi
17425 
17426 
17427   input_path="$new_path"
17428   # Check if we need to convert this using DOS-style short mode. If the path
17429   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17430   # take no chances and rewrite it.
17431   # Note: m4 eats our [], so we need to use [ and ] instead.
17432   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
17433   if test "x$has_forbidden_chars" != x; then
17434     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17435     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17436   fi
17437 
17438 
17439   windows_path="$new_path"
17440   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17441     unix_path=`$CYGPATH -u "$windows_path"`
17442     new_path="$unix_path"
17443   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17444     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17445     new_path="$unix_path"
17446   fi
17447 
17448   if test "x$path" != "x$new_path"; then
17449     OUTPUT_ROOT="$new_path"
17450     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
17451 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
17452   fi
17453 
17454   # Save the first 10 bytes of this path to the storage, so fixpath can work.
17455   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
17456 
17457     else
17458       # We're on a unix platform. Hooray! :)
17459       path="$OUTPUT_ROOT"
17460       has_space=`$ECHO "$path" | $GREP " "`
17461       if test "x$has_space" != x; then
17462         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
17463 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
17464         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
17465       fi
17466 
17467       # Use eval to expand a potential ~
17468       eval path="$path"
17469       if test ! -f "$path" && test ! -d "$path"; then
17470         as_fn_error $? "The path of OUTPUT_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5
17471       fi
17472 
17473       if test -d "$path"; then
17474         OUTPUT_ROOT="`cd "$path"; $THEPWDCMD -L`"
17475       else
17476         dir="`$DIRNAME "$path"`"
17477         base="`$BASENAME "$path"`"
17478         OUTPUT_ROOT="`cd "$dir"; $THEPWDCMD -L`/$base"
17479       fi
17480     fi
17481   fi
17482 
17483 
17484   CONFIGURESUPPORT_OUTPUTDIR="$OUTPUT_ROOT/configure-support"
17485   $MKDIR -p "$CONFIGURESUPPORT_OUTPUTDIR"
17486 
17487   SPEC=$OUTPUT_ROOT/spec.gmk
17488 
17489   CONF_NAME=$CONF_NAME
17490 
17491   OUTPUT_ROOT=$OUTPUT_ROOT
17492 
17493 
17494 
17495   # The spec.gmk file contains all variables for the make system.
17496   ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in"
17497 
17498   # The bootcycle-spec.gmk file contains support for boot cycle builds.
17499   ac_config_files="$ac_config_files $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in"
17500 
17501   # The buildjdk-spec.gmk file contains support for building a buildjdk when cross compiling.
17502   ac_config_files="$ac_config_files $OUTPUT_ROOT/buildjdk-spec.gmk:$AUTOCONF_DIR/buildjdk-spec.gmk.in"
17503 
17504   # The compare.sh is used to compare the build output to other builds.
17505   ac_config_files="$ac_config_files $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in"
17506 
17507   # The generated Makefile knows where the spec.gmk is and where the source is.
17508   # You can run make from the OUTPUT_ROOT, or from the top-level Makefile
17509   # which will look for generated configurations
17510   ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in"
17511 
17512 
17513 
17514 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY.
17515 
17516   for ac_prog in apt-get yum brew port pkgutil pkgadd
17517 do
17518   # Extract the first word of "$ac_prog", so it can be a program name with args.
17519 set dummy $ac_prog; ac_word=$2
17520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17521 $as_echo_n "checking for $ac_word... " >&6; }
17522 if ${ac_cv_prog_PKGHANDLER+:} false; then :
17523   $as_echo_n "(cached) " >&6
17524 else
17525   if test -n "$PKGHANDLER"; then
17526   ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test.
17527 else
17528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17529 for as_dir in $PATH
17530 do
17531   IFS=$as_save_IFS
17532   test -z "$as_dir" && as_dir=.
17533     for ac_exec_ext in '' $ac_executable_extensions; do
17534   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17535     ac_cv_prog_PKGHANDLER="$ac_prog"
17536     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17537     break 2
17538   fi
17539 done
17540   done
17541 IFS=$as_save_IFS
17542 
17543 fi
17544 fi
17545 PKGHANDLER=$ac_cv_prog_PKGHANDLER
17546 if test -n "$PKGHANDLER"; then
17547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5
17548 $as_echo "$PKGHANDLER" >&6; }
17549 else
17550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17551 $as_echo "no" >&6; }
17552 fi
17553 
17554 
17555   test -n "$PKGHANDLER" && break
17556 done
17557 
17558 
17559 
17560 # Setup tools that requires more complex handling, or that is not needed by the configure script.
17561 
17562 
17563 
17564   # Publish this variable in the help.
17565 
17566 
17567   if [ -z "${MAKE+x}" ]; then
17568     # The variable is not set by user, try to locate tool using the code snippet
17569 
17570     # Try our hardest to locate a correct version of GNU make
17571     for ac_prog in gmake
17572 do
17573   # Extract the first word of "$ac_prog", so it can be a program name with args.
17574 set dummy $ac_prog; ac_word=$2
17575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17576 $as_echo_n "checking for $ac_word... " >&6; }
17577 if ${ac_cv_path_CHECK_GMAKE+:} false; then :
17578   $as_echo_n "(cached) " >&6
17579 else
17580   case $CHECK_GMAKE in
17581   [\\/]* | ?:[\\/]*)
17582   ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
17583   ;;
17584   *)
17585   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17586 for as_dir in $PATH
17587 do
17588   IFS=$as_save_IFS
17589   test -z "$as_dir" && as_dir=.
17590     for ac_exec_ext in '' $ac_executable_extensions; do
17591   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17592     ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
17593     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17594     break 2
17595   fi
17596 done
17597   done
17598 IFS=$as_save_IFS
17599 
17600   ;;
17601 esac
17602 fi
17603 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE
17604 if test -n "$CHECK_GMAKE"; then
17605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5
17606 $as_echo "$CHECK_GMAKE" >&6; }
17607 else
17608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17609 $as_echo "no" >&6; }
17610 fi
17611 
17612 
17613   test -n "$CHECK_GMAKE" && break
17614 done
17615 
17616 
17617   MAKE_CANDIDATE=""$CHECK_GMAKE""
17618   DESCRIPTION="gmake in PATH"
17619 
17620   # On Cygwin, we require a newer version of make than on other platforms
17621   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17622     MAKE_VERSION_EXPR="-e 4\."
17623     MAKE_REQUIRED_VERSION="4.0"
17624    else
17625     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
17626     MAKE_REQUIRED_VERSION="3.81"
17627   fi
17628 
17629   if test "x$MAKE_CANDIDATE" != x; then
17630     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
17631 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
17632     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
17633     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
17634     if test "x$IS_GNU_MAKE" = x; then
17635       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
17636 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
17637     else
17638       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
17639       if test "x$IS_MODERN_MAKE" = x; then
17640         { $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
17641 $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;}
17642       else
17643         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
17644           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17645             MAKE_EXPECTED_ENV='cygwin'
17646           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17647             MAKE_EXPECTED_ENV='msys'
17648           else
17649             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
17650           fi
17651           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
17652           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
17653         else
17654           # Not relevant for non-Windows
17655           IS_MAKE_CORRECT_ENV=true
17656         fi
17657         if test "x$IS_MAKE_CORRECT_ENV" = x; then
17658           { $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
17659 $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;}
17660         else
17661           FOUND_MAKE=$MAKE_CANDIDATE
17662 
17663   # Only process if variable expands to non-empty
17664 
17665   if test "x$FOUND_MAKE" != x; then
17666     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17667 
17668   # First separate the path from the arguments. This will split at the first
17669   # space.
17670   complete="$FOUND_MAKE"
17671   path="${complete%% *}"
17672   tmp="$complete EOL"
17673   arguments="${tmp#* }"
17674 
17675   # Input might be given as Windows format, start by converting to
17676   # unix format.
17677   new_path=`$CYGPATH -u "$path"`
17678 
17679   # Now try to locate executable using which
17680   new_path=`$WHICH "$new_path" 2> /dev/null`
17681   # bat and cmd files are not always considered executable in cygwin causing which
17682   # to not find them
17683   if test "x$new_path" = x \
17684       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17685       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17686     new_path=`$CYGPATH -u "$path"`
17687   fi
17688   if test "x$new_path" = x; then
17689     # Oops. Which didn't find the executable.
17690     # The splitting of arguments from the executable at a space might have been incorrect,
17691     # since paths with space are more likely in Windows. Give it another try with the whole
17692     # argument.
17693     path="$complete"
17694     arguments="EOL"
17695     new_path=`$CYGPATH -u "$path"`
17696     new_path=`$WHICH "$new_path" 2> /dev/null`
17697     # bat and cmd files are not always considered executable in cygwin causing which
17698     # to not find them
17699     if test "x$new_path" = x \
17700         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17701         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17702       new_path=`$CYGPATH -u "$path"`
17703     fi
17704     if test "x$new_path" = x; then
17705       # It's still not found. Now this is an unrecoverable error.
17706       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17707 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17708       has_space=`$ECHO "$complete" | $GREP " "`
17709       if test "x$has_space" != x; then
17710         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17711 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17712       fi
17713       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17714     fi
17715   fi
17716 
17717   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
17718   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
17719   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
17720   # "foo.exe" is OK but "foo" is an error.
17721   #
17722   # This test is therefore slightly more accurate than "test -f" to check for file presence.
17723   # It is also a way to make sure we got the proper file name for the real test later on.
17724   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
17725   if test "x$test_shortpath" = x; then
17726     # Short path failed, file does not exist as specified.
17727     # Try adding .exe or .cmd
17728     if test -f "${new_path}.exe"; then
17729       input_to_shortpath="${new_path}.exe"
17730     elif test -f "${new_path}.cmd"; then
17731       input_to_shortpath="${new_path}.cmd"
17732     else
17733       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
17734 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
17735       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
17736 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
17737       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17738     fi
17739   else
17740     input_to_shortpath="$new_path"
17741   fi
17742 
17743   # Call helper function which possibly converts this using DOS-style short mode.
17744   # If so, the updated path is stored in $new_path.
17745   new_path="$input_to_shortpath"
17746 
17747   input_path="$input_to_shortpath"
17748   # Check if we need to convert this using DOS-style short mode. If the path
17749   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17750   # take no chances and rewrite it.
17751   # Note: m4 eats our [], so we need to use [ and ] instead.
17752   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
17753   if test "x$has_forbidden_chars" != x; then
17754     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17755     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
17756     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
17757     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
17758       # Going to short mode and back again did indeed matter. Since short mode is
17759       # case insensitive, let's make it lowercase to improve readability.
17760       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17761       # Now convert it back to Unix-style (cygpath)
17762       input_path=`$CYGPATH -u "$shortmode_path"`
17763       new_path="$input_path"
17764     fi
17765   fi
17766 
17767   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
17768   if test "x$test_cygdrive_prefix" = x; then
17769     # As a simple fix, exclude /usr/bin since it's not a real path.
17770     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
17771       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
17772       # a path prefixed by /cygdrive for fixpath to work.
17773       new_path="$CYGWIN_ROOT_PATH$input_path"
17774     fi
17775   fi
17776 
17777   # remove trailing .exe if any
17778   new_path="${new_path/%.exe/}"
17779 
17780     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17781 
17782   # First separate the path from the arguments. This will split at the first
17783   # space.
17784   complete="$FOUND_MAKE"
17785   path="${complete%% *}"
17786   tmp="$complete EOL"
17787   arguments="${tmp#* }"
17788 
17789   # Input might be given as Windows format, start by converting to
17790   # unix format.
17791   new_path="$path"
17792 
17793   windows_path="$new_path"
17794   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17795     unix_path=`$CYGPATH -u "$windows_path"`
17796     new_path="$unix_path"
17797   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17798     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17799     new_path="$unix_path"
17800   fi
17801 
17802 
17803   # Now try to locate executable using which
17804   new_path=`$WHICH "$new_path" 2> /dev/null`
17805 
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="$path"
17814 
17815   windows_path="$new_path"
17816   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17817     unix_path=`$CYGPATH -u "$windows_path"`
17818     new_path="$unix_path"
17819   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17820     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17821     new_path="$unix_path"
17822   fi
17823 
17824 
17825     new_path=`$WHICH "$new_path" 2> /dev/null`
17826     # bat and cmd files are not always considered executable in MSYS causing which
17827     # to not find them
17828     if test "x$new_path" = x \
17829         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17830         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17831       new_path="$path"
17832 
17833   windows_path="$new_path"
17834   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17835     unix_path=`$CYGPATH -u "$windows_path"`
17836     new_path="$unix_path"
17837   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17838     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17839     new_path="$unix_path"
17840   fi
17841 
17842     fi
17843 
17844     if test "x$new_path" = x; then
17845       # It's still not found. Now this is an unrecoverable error.
17846       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17847 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17848       has_space=`$ECHO "$complete" | $GREP " "`
17849       if test "x$has_space" != x; then
17850         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17851 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17852       fi
17853       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17854     fi
17855   fi
17856 
17857   # Now new_path has a complete unix path to the binary
17858   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
17859     # Keep paths in /bin as-is, but remove trailing .exe if any
17860     new_path="${new_path/%.exe/}"
17861     # Do not save /bin paths to all_fixpath_prefixes!
17862   else
17863     # Not in mixed or Windows style, start by that.
17864     new_path=`cmd //c echo $new_path`
17865 
17866   input_path="$new_path"
17867   # Check if we need to convert this using DOS-style short mode. If the path
17868   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17869   # take no chances and rewrite it.
17870   # Note: m4 eats our [], so we need to use [ and ] instead.
17871   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
17872   if test "x$has_forbidden_chars" != x; then
17873     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17874     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17875   fi
17876 
17877     # Output is in $new_path
17878 
17879   windows_path="$new_path"
17880   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17881     unix_path=`$CYGPATH -u "$windows_path"`
17882     new_path="$unix_path"
17883   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17884     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17885     new_path="$unix_path"
17886   fi
17887 
17888     # remove trailing .exe if any
17889     new_path="${new_path/%.exe/}"
17890 
17891     # Save the first 10 bytes of this path to the storage, so fixpath can work.
17892     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
17893   fi
17894 
17895     else
17896       # We're on a unix platform. Hooray! :)
17897       # First separate the path from the arguments. This will split at the first
17898       # space.
17899       complete="$FOUND_MAKE"
17900       path="${complete%% *}"
17901       tmp="$complete EOL"
17902       arguments="${tmp#* }"
17903 
17904       # Cannot rely on the command "which" here since it doesn't always work.
17905       is_absolute_path=`$ECHO "$path" | $GREP ^/`
17906       if test -z "$is_absolute_path"; then
17907         # Path to executable is not absolute. Find it.
17908         IFS_save="$IFS"
17909         IFS=:
17910         for p in $PATH; do
17911           if test -f "$p/$path" && test -x "$p/$path"; then
17912             new_path="$p/$path"
17913             break
17914           fi
17915         done
17916         IFS="$IFS_save"
17917       else
17918         # This is an absolute path, we can use it without further modifications.
17919         new_path="$path"
17920       fi
17921 
17922       if test "x$new_path" = x; then
17923         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17924 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17925         has_space=`$ECHO "$complete" | $GREP " "`
17926         if test "x$has_space" != x; then
17927           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
17928 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
17929         fi
17930         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17931       fi
17932     fi
17933 
17934     # Now join together the path and the arguments once again
17935     if test "x$arguments" != xEOL; then
17936       new_complete="$new_path ${arguments% *}"
17937     else
17938       new_complete="$new_path"
17939     fi
17940 
17941     if test "x$complete" != "x$new_complete"; then
17942       FOUND_MAKE="$new_complete"
17943       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
17944 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
17945     fi
17946   fi
17947 
17948         fi
17949       fi
17950     fi
17951   fi
17952 
17953 
17954     if test "x$FOUND_MAKE" = x; then
17955       for ac_prog in make
17956 do
17957   # Extract the first word of "$ac_prog", so it can be a program name with args.
17958 set dummy $ac_prog; ac_word=$2
17959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17960 $as_echo_n "checking for $ac_word... " >&6; }
17961 if ${ac_cv_path_CHECK_MAKE+:} false; then :
17962   $as_echo_n "(cached) " >&6
17963 else
17964   case $CHECK_MAKE in
17965   [\\/]* | ?:[\\/]*)
17966   ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
17967   ;;
17968   *)
17969   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17970 for as_dir in $PATH
17971 do
17972   IFS=$as_save_IFS
17973   test -z "$as_dir" && as_dir=.
17974     for ac_exec_ext in '' $ac_executable_extensions; do
17975   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17976     ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
17977     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17978     break 2
17979   fi
17980 done
17981   done
17982 IFS=$as_save_IFS
17983 
17984   ;;
17985 esac
17986 fi
17987 CHECK_MAKE=$ac_cv_path_CHECK_MAKE
17988 if test -n "$CHECK_MAKE"; then
17989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5
17990 $as_echo "$CHECK_MAKE" >&6; }
17991 else
17992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17993 $as_echo "no" >&6; }
17994 fi
17995 
17996 
17997   test -n "$CHECK_MAKE" && break
17998 done
17999 
18000 
18001   MAKE_CANDIDATE=""$CHECK_MAKE""
18002   DESCRIPTION="make in PATH"
18003 
18004   # On Cygwin, we require a newer version of make than on other platforms
18005   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18006     MAKE_VERSION_EXPR="-e 4\."
18007     MAKE_REQUIRED_VERSION="4.0"
18008    else
18009     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
18010     MAKE_REQUIRED_VERSION="3.81"
18011   fi
18012 
18013   if test "x$MAKE_CANDIDATE" != x; then
18014     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
18015 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
18016     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
18017     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
18018     if test "x$IS_GNU_MAKE" = x; then
18019       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
18020 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
18021     else
18022       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
18023       if test "x$IS_MODERN_MAKE" = x; then
18024         { $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
18025 $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;}
18026       else
18027         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
18028           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18029             MAKE_EXPECTED_ENV='cygwin'
18030           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18031             MAKE_EXPECTED_ENV='msys'
18032           else
18033             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
18034           fi
18035           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
18036           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
18037         else
18038           # Not relevant for non-Windows
18039           IS_MAKE_CORRECT_ENV=true
18040         fi
18041         if test "x$IS_MAKE_CORRECT_ENV" = x; then
18042           { $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
18043 $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;}
18044         else
18045           FOUND_MAKE=$MAKE_CANDIDATE
18046 
18047   # Only process if variable expands to non-empty
18048 
18049   if test "x$FOUND_MAKE" != x; then
18050     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18051 
18052   # First separate the path from the arguments. This will split at the first
18053   # space.
18054   complete="$FOUND_MAKE"
18055   path="${complete%% *}"
18056   tmp="$complete EOL"
18057   arguments="${tmp#* }"
18058 
18059   # Input might be given as Windows format, start by converting to
18060   # unix format.
18061   new_path=`$CYGPATH -u "$path"`
18062 
18063   # Now try to locate executable using which
18064   new_path=`$WHICH "$new_path" 2> /dev/null`
18065   # bat and cmd files are not always considered executable in cygwin causing which
18066   # to not find them
18067   if test "x$new_path" = x \
18068       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18069       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18070     new_path=`$CYGPATH -u "$path"`
18071   fi
18072   if test "x$new_path" = x; then
18073     # Oops. Which didn't find the executable.
18074     # The splitting of arguments from the executable at a space might have been incorrect,
18075     # since paths with space are more likely in Windows. Give it another try with the whole
18076     # argument.
18077     path="$complete"
18078     arguments="EOL"
18079     new_path=`$CYGPATH -u "$path"`
18080     new_path=`$WHICH "$new_path" 2> /dev/null`
18081     # bat and cmd files are not always considered executable in cygwin causing which
18082     # to not find them
18083     if test "x$new_path" = x \
18084         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18085         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18086       new_path=`$CYGPATH -u "$path"`
18087     fi
18088     if test "x$new_path" = x; then
18089       # It's still not found. Now this is an unrecoverable error.
18090       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18091 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18092       has_space=`$ECHO "$complete" | $GREP " "`
18093       if test "x$has_space" != x; then
18094         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18095 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18096       fi
18097       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18098     fi
18099   fi
18100 
18101   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
18102   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
18103   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
18104   # "foo.exe" is OK but "foo" is an error.
18105   #
18106   # This test is therefore slightly more accurate than "test -f" to check for file presence.
18107   # It is also a way to make sure we got the proper file name for the real test later on.
18108   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
18109   if test "x$test_shortpath" = x; then
18110     # Short path failed, file does not exist as specified.
18111     # Try adding .exe or .cmd
18112     if test -f "${new_path}.exe"; then
18113       input_to_shortpath="${new_path}.exe"
18114     elif test -f "${new_path}.cmd"; then
18115       input_to_shortpath="${new_path}.cmd"
18116     else
18117       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
18118 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
18119       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
18120 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
18121       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18122     fi
18123   else
18124     input_to_shortpath="$new_path"
18125   fi
18126 
18127   # Call helper function which possibly converts this using DOS-style short mode.
18128   # If so, the updated path is stored in $new_path.
18129   new_path="$input_to_shortpath"
18130 
18131   input_path="$input_to_shortpath"
18132   # Check if we need to convert this using DOS-style short mode. If the path
18133   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18134   # take no chances and rewrite it.
18135   # Note: m4 eats our [], so we need to use [ and ] instead.
18136   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
18137   if test "x$has_forbidden_chars" != x; then
18138     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18139     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
18140     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
18141     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
18142       # Going to short mode and back again did indeed matter. Since short mode is
18143       # case insensitive, let's make it lowercase to improve readability.
18144       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18145       # Now convert it back to Unix-style (cygpath)
18146       input_path=`$CYGPATH -u "$shortmode_path"`
18147       new_path="$input_path"
18148     fi
18149   fi
18150 
18151   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
18152   if test "x$test_cygdrive_prefix" = x; then
18153     # As a simple fix, exclude /usr/bin since it's not a real path.
18154     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
18155       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
18156       # a path prefixed by /cygdrive for fixpath to work.
18157       new_path="$CYGWIN_ROOT_PATH$input_path"
18158     fi
18159   fi
18160 
18161   # remove trailing .exe if any
18162   new_path="${new_path/%.exe/}"
18163 
18164     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18165 
18166   # First separate the path from the arguments. This will split at the first
18167   # space.
18168   complete="$FOUND_MAKE"
18169   path="${complete%% *}"
18170   tmp="$complete EOL"
18171   arguments="${tmp#* }"
18172 
18173   # Input might be given as Windows format, start by converting to
18174   # unix format.
18175   new_path="$path"
18176 
18177   windows_path="$new_path"
18178   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18179     unix_path=`$CYGPATH -u "$windows_path"`
18180     new_path="$unix_path"
18181   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18182     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18183     new_path="$unix_path"
18184   fi
18185 
18186 
18187   # Now try to locate executable using which
18188   new_path=`$WHICH "$new_path" 2> /dev/null`
18189 
18190   if test "x$new_path" = x; then
18191     # Oops. Which didn't find the executable.
18192     # The splitting of arguments from the executable at a space might have been incorrect,
18193     # since paths with space are more likely in Windows. Give it another try with the whole
18194     # argument.
18195     path="$complete"
18196     arguments="EOL"
18197     new_path="$path"
18198 
18199   windows_path="$new_path"
18200   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18201     unix_path=`$CYGPATH -u "$windows_path"`
18202     new_path="$unix_path"
18203   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18204     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18205     new_path="$unix_path"
18206   fi
18207 
18208 
18209     new_path=`$WHICH "$new_path" 2> /dev/null`
18210     # bat and cmd files are not always considered executable in MSYS causing which
18211     # to not find them
18212     if test "x$new_path" = x \
18213         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18214         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18215       new_path="$path"
18216 
18217   windows_path="$new_path"
18218   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18219     unix_path=`$CYGPATH -u "$windows_path"`
18220     new_path="$unix_path"
18221   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18222     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18223     new_path="$unix_path"
18224   fi
18225 
18226     fi
18227 
18228     if test "x$new_path" = x; then
18229       # It's still not found. Now this is an unrecoverable error.
18230       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18231 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18232       has_space=`$ECHO "$complete" | $GREP " "`
18233       if test "x$has_space" != x; then
18234         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18235 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18236       fi
18237       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18238     fi
18239   fi
18240 
18241   # Now new_path has a complete unix path to the binary
18242   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
18243     # Keep paths in /bin as-is, but remove trailing .exe if any
18244     new_path="${new_path/%.exe/}"
18245     # Do not save /bin paths to all_fixpath_prefixes!
18246   else
18247     # Not in mixed or Windows style, start by that.
18248     new_path=`cmd //c echo $new_path`
18249 
18250   input_path="$new_path"
18251   # Check if we need to convert this using DOS-style short mode. If the path
18252   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18253   # take no chances and rewrite it.
18254   # Note: m4 eats our [], so we need to use [ and ] instead.
18255   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
18256   if test "x$has_forbidden_chars" != x; then
18257     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18258     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18259   fi
18260 
18261     # Output is in $new_path
18262 
18263   windows_path="$new_path"
18264   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18265     unix_path=`$CYGPATH -u "$windows_path"`
18266     new_path="$unix_path"
18267   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18268     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18269     new_path="$unix_path"
18270   fi
18271 
18272     # remove trailing .exe if any
18273     new_path="${new_path/%.exe/}"
18274 
18275     # Save the first 10 bytes of this path to the storage, so fixpath can work.
18276     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
18277   fi
18278 
18279     else
18280       # We're on a unix platform. Hooray! :)
18281       # First separate the path from the arguments. This will split at the first
18282       # space.
18283       complete="$FOUND_MAKE"
18284       path="${complete%% *}"
18285       tmp="$complete EOL"
18286       arguments="${tmp#* }"
18287 
18288       # Cannot rely on the command "which" here since it doesn't always work.
18289       is_absolute_path=`$ECHO "$path" | $GREP ^/`
18290       if test -z "$is_absolute_path"; then
18291         # Path to executable is not absolute. Find it.
18292         IFS_save="$IFS"
18293         IFS=:
18294         for p in $PATH; do
18295           if test -f "$p/$path" && test -x "$p/$path"; then
18296             new_path="$p/$path"
18297             break
18298           fi
18299         done
18300         IFS="$IFS_save"
18301       else
18302         # This is an absolute path, we can use it without further modifications.
18303         new_path="$path"
18304       fi
18305 
18306       if test "x$new_path" = x; then
18307         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18308 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18309         has_space=`$ECHO "$complete" | $GREP " "`
18310         if test "x$has_space" != x; then
18311           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
18312 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
18313         fi
18314         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18315       fi
18316     fi
18317 
18318     # Now join together the path and the arguments once again
18319     if test "x$arguments" != xEOL; then
18320       new_complete="$new_path ${arguments% *}"
18321     else
18322       new_complete="$new_path"
18323     fi
18324 
18325     if test "x$complete" != "x$new_complete"; then
18326       FOUND_MAKE="$new_complete"
18327       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
18328 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
18329     fi
18330   fi
18331 
18332         fi
18333       fi
18334     fi
18335   fi
18336 
18337     fi
18338 
18339     if test "x$FOUND_MAKE" = x; then
18340       if test "x$TOOLCHAIN_PATH" != x; then
18341         # We have a toolchain path, check that as well before giving up.
18342         OLD_PATH=$PATH
18343         PATH=$TOOLCHAIN_PATH:$PATH
18344         for ac_prog in gmake
18345 do
18346   # Extract the first word of "$ac_prog", so it can be a program name with args.
18347 set dummy $ac_prog; ac_word=$2
18348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18349 $as_echo_n "checking for $ac_word... " >&6; }
18350 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then :
18351   $as_echo_n "(cached) " >&6
18352 else
18353   case $CHECK_TOOLSDIR_GMAKE in
18354   [\\/]* | ?:[\\/]*)
18355   ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
18356   ;;
18357   *)
18358   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18359 for as_dir in $PATH
18360 do
18361   IFS=$as_save_IFS
18362   test -z "$as_dir" && as_dir=.
18363     for ac_exec_ext in '' $ac_executable_extensions; do
18364   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18365     ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
18366     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18367     break 2
18368   fi
18369 done
18370   done
18371 IFS=$as_save_IFS
18372 
18373   ;;
18374 esac
18375 fi
18376 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE
18377 if test -n "$CHECK_TOOLSDIR_GMAKE"; then
18378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5
18379 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; }
18380 else
18381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18382 $as_echo "no" >&6; }
18383 fi
18384 
18385 
18386   test -n "$CHECK_TOOLSDIR_GMAKE" && break
18387 done
18388 
18389 
18390   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE""
18391   DESCRIPTION="gmake in tools-dir"
18392 
18393   # On Cygwin, we require a newer version of make than on other platforms
18394   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18395     MAKE_VERSION_EXPR="-e 4\."
18396     MAKE_REQUIRED_VERSION="4.0"
18397    else
18398     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
18399     MAKE_REQUIRED_VERSION="3.81"
18400   fi
18401 
18402   if test "x$MAKE_CANDIDATE" != x; then
18403     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
18404 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
18405     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
18406     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
18407     if test "x$IS_GNU_MAKE" = x; then
18408       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
18409 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
18410     else
18411       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
18412       if test "x$IS_MODERN_MAKE" = x; then
18413         { $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
18414 $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;}
18415       else
18416         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
18417           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18418             MAKE_EXPECTED_ENV='cygwin'
18419           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18420             MAKE_EXPECTED_ENV='msys'
18421           else
18422             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
18423           fi
18424           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
18425           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
18426         else
18427           # Not relevant for non-Windows
18428           IS_MAKE_CORRECT_ENV=true
18429         fi
18430         if test "x$IS_MAKE_CORRECT_ENV" = x; then
18431           { $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
18432 $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;}
18433         else
18434           FOUND_MAKE=$MAKE_CANDIDATE
18435 
18436   # Only process if variable expands to non-empty
18437 
18438   if test "x$FOUND_MAKE" != x; then
18439     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18440 
18441   # First separate the path from the arguments. This will split at the first
18442   # space.
18443   complete="$FOUND_MAKE"
18444   path="${complete%% *}"
18445   tmp="$complete EOL"
18446   arguments="${tmp#* }"
18447 
18448   # Input might be given as Windows format, start by converting to
18449   # unix format.
18450   new_path=`$CYGPATH -u "$path"`
18451 
18452   # Now try to locate executable using which
18453   new_path=`$WHICH "$new_path" 2> /dev/null`
18454   # bat and cmd files are not always considered executable in cygwin causing which
18455   # to not find them
18456   if test "x$new_path" = x \
18457       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18458       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18459     new_path=`$CYGPATH -u "$path"`
18460   fi
18461   if test "x$new_path" = x; then
18462     # Oops. Which didn't find the executable.
18463     # The splitting of arguments from the executable at a space might have been incorrect,
18464     # since paths with space are more likely in Windows. Give it another try with the whole
18465     # argument.
18466     path="$complete"
18467     arguments="EOL"
18468     new_path=`$CYGPATH -u "$path"`
18469     new_path=`$WHICH "$new_path" 2> /dev/null`
18470     # bat and cmd files are not always considered executable in cygwin causing which
18471     # to not find them
18472     if test "x$new_path" = x \
18473         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18474         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18475       new_path=`$CYGPATH -u "$path"`
18476     fi
18477     if test "x$new_path" = x; then
18478       # It's still not found. Now this is an unrecoverable error.
18479       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18480 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18481       has_space=`$ECHO "$complete" | $GREP " "`
18482       if test "x$has_space" != x; then
18483         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18484 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18485       fi
18486       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18487     fi
18488   fi
18489 
18490   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
18491   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
18492   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
18493   # "foo.exe" is OK but "foo" is an error.
18494   #
18495   # This test is therefore slightly more accurate than "test -f" to check for file presence.
18496   # It is also a way to make sure we got the proper file name for the real test later on.
18497   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
18498   if test "x$test_shortpath" = x; then
18499     # Short path failed, file does not exist as specified.
18500     # Try adding .exe or .cmd
18501     if test -f "${new_path}.exe"; then
18502       input_to_shortpath="${new_path}.exe"
18503     elif test -f "${new_path}.cmd"; then
18504       input_to_shortpath="${new_path}.cmd"
18505     else
18506       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
18507 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
18508       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
18509 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
18510       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18511     fi
18512   else
18513     input_to_shortpath="$new_path"
18514   fi
18515 
18516   # Call helper function which possibly converts this using DOS-style short mode.
18517   # If so, the updated path is stored in $new_path.
18518   new_path="$input_to_shortpath"
18519 
18520   input_path="$input_to_shortpath"
18521   # Check if we need to convert this using DOS-style short mode. If the path
18522   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18523   # take no chances and rewrite it.
18524   # Note: m4 eats our [], so we need to use [ and ] instead.
18525   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
18526   if test "x$has_forbidden_chars" != x; then
18527     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18528     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
18529     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
18530     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
18531       # Going to short mode and back again did indeed matter. Since short mode is
18532       # case insensitive, let's make it lowercase to improve readability.
18533       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18534       # Now convert it back to Unix-style (cygpath)
18535       input_path=`$CYGPATH -u "$shortmode_path"`
18536       new_path="$input_path"
18537     fi
18538   fi
18539 
18540   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
18541   if test "x$test_cygdrive_prefix" = x; then
18542     # As a simple fix, exclude /usr/bin since it's not a real path.
18543     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
18544       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
18545       # a path prefixed by /cygdrive for fixpath to work.
18546       new_path="$CYGWIN_ROOT_PATH$input_path"
18547     fi
18548   fi
18549 
18550   # remove trailing .exe if any
18551   new_path="${new_path/%.exe/}"
18552 
18553     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18554 
18555   # First separate the path from the arguments. This will split at the first
18556   # space.
18557   complete="$FOUND_MAKE"
18558   path="${complete%% *}"
18559   tmp="$complete EOL"
18560   arguments="${tmp#* }"
18561 
18562   # Input might be given as Windows format, start by converting to
18563   # unix format.
18564   new_path="$path"
18565 
18566   windows_path="$new_path"
18567   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18568     unix_path=`$CYGPATH -u "$windows_path"`
18569     new_path="$unix_path"
18570   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18571     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18572     new_path="$unix_path"
18573   fi
18574 
18575 
18576   # Now try to locate executable using which
18577   new_path=`$WHICH "$new_path" 2> /dev/null`
18578 
18579   if test "x$new_path" = x; then
18580     # Oops. Which didn't find the executable.
18581     # The splitting of arguments from the executable at a space might have been incorrect,
18582     # since paths with space are more likely in Windows. Give it another try with the whole
18583     # argument.
18584     path="$complete"
18585     arguments="EOL"
18586     new_path="$path"
18587 
18588   windows_path="$new_path"
18589   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18590     unix_path=`$CYGPATH -u "$windows_path"`
18591     new_path="$unix_path"
18592   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18593     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18594     new_path="$unix_path"
18595   fi
18596 
18597 
18598     new_path=`$WHICH "$new_path" 2> /dev/null`
18599     # bat and cmd files are not always considered executable in MSYS causing which
18600     # to not find them
18601     if test "x$new_path" = x \
18602         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18603         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18604       new_path="$path"
18605 
18606   windows_path="$new_path"
18607   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18608     unix_path=`$CYGPATH -u "$windows_path"`
18609     new_path="$unix_path"
18610   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18611     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18612     new_path="$unix_path"
18613   fi
18614 
18615     fi
18616 
18617     if test "x$new_path" = x; then
18618       # It's still not found. Now this is an unrecoverable error.
18619       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18620 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18621       has_space=`$ECHO "$complete" | $GREP " "`
18622       if test "x$has_space" != x; then
18623         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18624 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18625       fi
18626       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18627     fi
18628   fi
18629 
18630   # Now new_path has a complete unix path to the binary
18631   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
18632     # Keep paths in /bin as-is, but remove trailing .exe if any
18633     new_path="${new_path/%.exe/}"
18634     # Do not save /bin paths to all_fixpath_prefixes!
18635   else
18636     # Not in mixed or Windows style, start by that.
18637     new_path=`cmd //c echo $new_path`
18638 
18639   input_path="$new_path"
18640   # Check if we need to convert this using DOS-style short mode. If the path
18641   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18642   # take no chances and rewrite it.
18643   # Note: m4 eats our [], so we need to use [ and ] instead.
18644   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
18645   if test "x$has_forbidden_chars" != x; then
18646     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18647     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18648   fi
18649 
18650     # Output is in $new_path
18651 
18652   windows_path="$new_path"
18653   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18654     unix_path=`$CYGPATH -u "$windows_path"`
18655     new_path="$unix_path"
18656   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18657     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18658     new_path="$unix_path"
18659   fi
18660 
18661     # remove trailing .exe if any
18662     new_path="${new_path/%.exe/}"
18663 
18664     # Save the first 10 bytes of this path to the storage, so fixpath can work.
18665     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
18666   fi
18667 
18668     else
18669       # We're on a unix platform. Hooray! :)
18670       # First separate the path from the arguments. This will split at the first
18671       # space.
18672       complete="$FOUND_MAKE"
18673       path="${complete%% *}"
18674       tmp="$complete EOL"
18675       arguments="${tmp#* }"
18676 
18677       # Cannot rely on the command "which" here since it doesn't always work.
18678       is_absolute_path=`$ECHO "$path" | $GREP ^/`
18679       if test -z "$is_absolute_path"; then
18680         # Path to executable is not absolute. Find it.
18681         IFS_save="$IFS"
18682         IFS=:
18683         for p in $PATH; do
18684           if test -f "$p/$path" && test -x "$p/$path"; then
18685             new_path="$p/$path"
18686             break
18687           fi
18688         done
18689         IFS="$IFS_save"
18690       else
18691         # This is an absolute path, we can use it without further modifications.
18692         new_path="$path"
18693       fi
18694 
18695       if test "x$new_path" = x; then
18696         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18697 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18698         has_space=`$ECHO "$complete" | $GREP " "`
18699         if test "x$has_space" != x; then
18700           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
18701 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
18702         fi
18703         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18704       fi
18705     fi
18706 
18707     # Now join together the path and the arguments once again
18708     if test "x$arguments" != xEOL; then
18709       new_complete="$new_path ${arguments% *}"
18710     else
18711       new_complete="$new_path"
18712     fi
18713 
18714     if test "x$complete" != "x$new_complete"; then
18715       FOUND_MAKE="$new_complete"
18716       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
18717 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
18718     fi
18719   fi
18720 
18721         fi
18722       fi
18723     fi
18724   fi
18725 
18726         if test "x$FOUND_MAKE" = x; then
18727           for ac_prog in make
18728 do
18729   # Extract the first word of "$ac_prog", so it can be a program name with args.
18730 set dummy $ac_prog; ac_word=$2
18731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18732 $as_echo_n "checking for $ac_word... " >&6; }
18733 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then :
18734   $as_echo_n "(cached) " >&6
18735 else
18736   case $CHECK_TOOLSDIR_MAKE in
18737   [\\/]* | ?:[\\/]*)
18738   ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
18739   ;;
18740   *)
18741   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18742 for as_dir in $PATH
18743 do
18744   IFS=$as_save_IFS
18745   test -z "$as_dir" && as_dir=.
18746     for ac_exec_ext in '' $ac_executable_extensions; do
18747   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18748     ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
18749     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18750     break 2
18751   fi
18752 done
18753   done
18754 IFS=$as_save_IFS
18755 
18756   ;;
18757 esac
18758 fi
18759 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE
18760 if test -n "$CHECK_TOOLSDIR_MAKE"; then
18761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5
18762 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; }
18763 else
18764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18765 $as_echo "no" >&6; }
18766 fi
18767 
18768 
18769   test -n "$CHECK_TOOLSDIR_MAKE" && break
18770 done
18771 
18772 
18773   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE""
18774   DESCRIPTION="make in tools-dir"
18775 
18776   # On Cygwin, we require a newer version of make than on other platforms
18777   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18778     MAKE_VERSION_EXPR="-e 4\."
18779     MAKE_REQUIRED_VERSION="4.0"
18780    else
18781     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
18782     MAKE_REQUIRED_VERSION="3.81"
18783   fi
18784 
18785   if test "x$MAKE_CANDIDATE" != x; then
18786     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
18787 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
18788     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
18789     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
18790     if test "x$IS_GNU_MAKE" = x; then
18791       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
18792 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
18793     else
18794       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
18795       if test "x$IS_MODERN_MAKE" = x; then
18796         { $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
18797 $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;}
18798       else
18799         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
18800           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18801             MAKE_EXPECTED_ENV='cygwin'
18802           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18803             MAKE_EXPECTED_ENV='msys'
18804           else
18805             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
18806           fi
18807           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
18808           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
18809         else
18810           # Not relevant for non-Windows
18811           IS_MAKE_CORRECT_ENV=true
18812         fi
18813         if test "x$IS_MAKE_CORRECT_ENV" = x; then
18814           { $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
18815 $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;}
18816         else
18817           FOUND_MAKE=$MAKE_CANDIDATE
18818 
18819   # Only process if variable expands to non-empty
18820 
18821   if test "x$FOUND_MAKE" != x; then
18822     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18823 
18824   # First separate the path from the arguments. This will split at the first
18825   # space.
18826   complete="$FOUND_MAKE"
18827   path="${complete%% *}"
18828   tmp="$complete EOL"
18829   arguments="${tmp#* }"
18830 
18831   # Input might be given as Windows format, start by converting to
18832   # unix format.
18833   new_path=`$CYGPATH -u "$path"`
18834 
18835   # Now try to locate executable using which
18836   new_path=`$WHICH "$new_path" 2> /dev/null`
18837   # bat and cmd files are not always considered executable in cygwin causing which
18838   # to not find them
18839   if test "x$new_path" = x \
18840       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18841       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18842     new_path=`$CYGPATH -u "$path"`
18843   fi
18844   if test "x$new_path" = x; then
18845     # Oops. Which didn't find the executable.
18846     # The splitting of arguments from the executable at a space might have been incorrect,
18847     # since paths with space are more likely in Windows. Give it another try with the whole
18848     # argument.
18849     path="$complete"
18850     arguments="EOL"
18851     new_path=`$CYGPATH -u "$path"`
18852     new_path=`$WHICH "$new_path" 2> /dev/null`
18853     # bat and cmd files are not always considered executable in cygwin causing which
18854     # to not find them
18855     if test "x$new_path" = x \
18856         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18857         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18858       new_path=`$CYGPATH -u "$path"`
18859     fi
18860     if test "x$new_path" = x; then
18861       # It's still not found. Now this is an unrecoverable error.
18862       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18863 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18864       has_space=`$ECHO "$complete" | $GREP " "`
18865       if test "x$has_space" != x; then
18866         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18867 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18868       fi
18869       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18870     fi
18871   fi
18872 
18873   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
18874   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
18875   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
18876   # "foo.exe" is OK but "foo" is an error.
18877   #
18878   # This test is therefore slightly more accurate than "test -f" to check for file presence.
18879   # It is also a way to make sure we got the proper file name for the real test later on.
18880   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
18881   if test "x$test_shortpath" = x; then
18882     # Short path failed, file does not exist as specified.
18883     # Try adding .exe or .cmd
18884     if test -f "${new_path}.exe"; then
18885       input_to_shortpath="${new_path}.exe"
18886     elif test -f "${new_path}.cmd"; then
18887       input_to_shortpath="${new_path}.cmd"
18888     else
18889       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
18890 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
18891       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
18892 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
18893       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18894     fi
18895   else
18896     input_to_shortpath="$new_path"
18897   fi
18898 
18899   # Call helper function which possibly converts this using DOS-style short mode.
18900   # If so, the updated path is stored in $new_path.
18901   new_path="$input_to_shortpath"
18902 
18903   input_path="$input_to_shortpath"
18904   # Check if we need to convert this using DOS-style short mode. If the path
18905   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18906   # take no chances and rewrite it.
18907   # Note: m4 eats our [], so we need to use [ and ] instead.
18908   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
18909   if test "x$has_forbidden_chars" != x; then
18910     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18911     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
18912     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
18913     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
18914       # Going to short mode and back again did indeed matter. Since short mode is
18915       # case insensitive, let's make it lowercase to improve readability.
18916       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18917       # Now convert it back to Unix-style (cygpath)
18918       input_path=`$CYGPATH -u "$shortmode_path"`
18919       new_path="$input_path"
18920     fi
18921   fi
18922 
18923   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
18924   if test "x$test_cygdrive_prefix" = x; then
18925     # As a simple fix, exclude /usr/bin since it's not a real path.
18926     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
18927       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
18928       # a path prefixed by /cygdrive for fixpath to work.
18929       new_path="$CYGWIN_ROOT_PATH$input_path"
18930     fi
18931   fi
18932 
18933   # remove trailing .exe if any
18934   new_path="${new_path/%.exe/}"
18935 
18936     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18937 
18938   # First separate the path from the arguments. This will split at the first
18939   # space.
18940   complete="$FOUND_MAKE"
18941   path="${complete%% *}"
18942   tmp="$complete EOL"
18943   arguments="${tmp#* }"
18944 
18945   # Input might be given as Windows format, start by converting to
18946   # unix format.
18947   new_path="$path"
18948 
18949   windows_path="$new_path"
18950   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18951     unix_path=`$CYGPATH -u "$windows_path"`
18952     new_path="$unix_path"
18953   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18954     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18955     new_path="$unix_path"
18956   fi
18957 
18958 
18959   # Now try to locate executable using which
18960   new_path=`$WHICH "$new_path" 2> /dev/null`
18961 
18962   if test "x$new_path" = x; then
18963     # Oops. Which didn't find the executable.
18964     # The splitting of arguments from the executable at a space might have been incorrect,
18965     # since paths with space are more likely in Windows. Give it another try with the whole
18966     # argument.
18967     path="$complete"
18968     arguments="EOL"
18969     new_path="$path"
18970 
18971   windows_path="$new_path"
18972   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18973     unix_path=`$CYGPATH -u "$windows_path"`
18974     new_path="$unix_path"
18975   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18976     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18977     new_path="$unix_path"
18978   fi
18979 
18980 
18981     new_path=`$WHICH "$new_path" 2> /dev/null`
18982     # bat and cmd files are not always considered executable in MSYS causing which
18983     # to not find them
18984     if test "x$new_path" = x \
18985         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18986         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18987       new_path="$path"
18988 
18989   windows_path="$new_path"
18990   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18991     unix_path=`$CYGPATH -u "$windows_path"`
18992     new_path="$unix_path"
18993   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18994     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18995     new_path="$unix_path"
18996   fi
18997 
18998     fi
18999 
19000     if test "x$new_path" = x; then
19001       # It's still not found. Now this is an unrecoverable error.
19002       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19003 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19004       has_space=`$ECHO "$complete" | $GREP " "`
19005       if test "x$has_space" != x; then
19006         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19007 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19008       fi
19009       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19010     fi
19011   fi
19012 
19013   # Now new_path has a complete unix path to the binary
19014   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
19015     # Keep paths in /bin as-is, but remove trailing .exe if any
19016     new_path="${new_path/%.exe/}"
19017     # Do not save /bin paths to all_fixpath_prefixes!
19018   else
19019     # Not in mixed or Windows style, start by that.
19020     new_path=`cmd //c echo $new_path`
19021 
19022   input_path="$new_path"
19023   # Check if we need to convert this using DOS-style short mode. If the path
19024   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19025   # take no chances and rewrite it.
19026   # Note: m4 eats our [], so we need to use [ and ] instead.
19027   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
19028   if test "x$has_forbidden_chars" != x; then
19029     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19030     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19031   fi
19032 
19033     # Output is in $new_path
19034 
19035   windows_path="$new_path"
19036   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19037     unix_path=`$CYGPATH -u "$windows_path"`
19038     new_path="$unix_path"
19039   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19040     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19041     new_path="$unix_path"
19042   fi
19043 
19044     # remove trailing .exe if any
19045     new_path="${new_path/%.exe/}"
19046 
19047     # Save the first 10 bytes of this path to the storage, so fixpath can work.
19048     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
19049   fi
19050 
19051     else
19052       # We're on a unix platform. Hooray! :)
19053       # First separate the path from the arguments. This will split at the first
19054       # space.
19055       complete="$FOUND_MAKE"
19056       path="${complete%% *}"
19057       tmp="$complete EOL"
19058       arguments="${tmp#* }"
19059 
19060       # Cannot rely on the command "which" here since it doesn't always work.
19061       is_absolute_path=`$ECHO "$path" | $GREP ^/`
19062       if test -z "$is_absolute_path"; then
19063         # Path to executable is not absolute. Find it.
19064         IFS_save="$IFS"
19065         IFS=:
19066         for p in $PATH; do
19067           if test -f "$p/$path" && test -x "$p/$path"; then
19068             new_path="$p/$path"
19069             break
19070           fi
19071         done
19072         IFS="$IFS_save"
19073       else
19074         # This is an absolute path, we can use it without further modifications.
19075         new_path="$path"
19076       fi
19077 
19078       if test "x$new_path" = x; then
19079         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19080 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19081         has_space=`$ECHO "$complete" | $GREP " "`
19082         if test "x$has_space" != x; then
19083           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
19084 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
19085         fi
19086         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19087       fi
19088     fi
19089 
19090     # Now join together the path and the arguments once again
19091     if test "x$arguments" != xEOL; then
19092       new_complete="$new_path ${arguments% *}"
19093     else
19094       new_complete="$new_path"
19095     fi
19096 
19097     if test "x$complete" != "x$new_complete"; then
19098       FOUND_MAKE="$new_complete"
19099       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
19100 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
19101     fi
19102   fi
19103 
19104         fi
19105       fi
19106     fi
19107   fi
19108 
19109         fi
19110         PATH=$OLD_PATH
19111       fi
19112     fi
19113 
19114     if test "x$FOUND_MAKE" = x; then
19115       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
19116     fi
19117 
19118   else
19119     # The variable is set, but is it from the command line or the environment?
19120 
19121     # Try to remove the string !MAKE! from our list.
19122     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MAKE!/}
19123     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
19124       # If it failed, the variable was not from the command line. Ignore it,
19125       # but warn the user (except for BASH, which is always set by the calling BASH).
19126       if test "xMAKE" != xBASH; then
19127         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MAKE from the environment. Use command line variables instead." >&5
19128 $as_echo "$as_me: WARNING: Ignoring value of MAKE from the environment. Use command line variables instead." >&2;}
19129       fi
19130       # Try to locate tool using the code snippet
19131 
19132     # Try our hardest to locate a correct version of GNU make
19133     for ac_prog in gmake
19134 do
19135   # Extract the first word of "$ac_prog", so it can be a program name with args.
19136 set dummy $ac_prog; ac_word=$2
19137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19138 $as_echo_n "checking for $ac_word... " >&6; }
19139 if ${ac_cv_path_CHECK_GMAKE+:} false; then :
19140   $as_echo_n "(cached) " >&6
19141 else
19142   case $CHECK_GMAKE in
19143   [\\/]* | ?:[\\/]*)
19144   ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
19145   ;;
19146   *)
19147   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19148 for as_dir in $PATH
19149 do
19150   IFS=$as_save_IFS
19151   test -z "$as_dir" && as_dir=.
19152     for ac_exec_ext in '' $ac_executable_extensions; do
19153   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19154     ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
19155     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19156     break 2
19157   fi
19158 done
19159   done
19160 IFS=$as_save_IFS
19161 
19162   ;;
19163 esac
19164 fi
19165 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE
19166 if test -n "$CHECK_GMAKE"; then
19167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5
19168 $as_echo "$CHECK_GMAKE" >&6; }
19169 else
19170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19171 $as_echo "no" >&6; }
19172 fi
19173 
19174 
19175   test -n "$CHECK_GMAKE" && break
19176 done
19177 
19178 
19179   MAKE_CANDIDATE=""$CHECK_GMAKE""
19180   DESCRIPTION="gmake in PATH"
19181 
19182   # On Cygwin, we require a newer version of make than on other platforms
19183   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19184     MAKE_VERSION_EXPR="-e 4\."
19185     MAKE_REQUIRED_VERSION="4.0"
19186    else
19187     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
19188     MAKE_REQUIRED_VERSION="3.81"
19189   fi
19190 
19191   if test "x$MAKE_CANDIDATE" != x; then
19192     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
19193 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
19194     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
19195     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
19196     if test "x$IS_GNU_MAKE" = x; then
19197       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
19198 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
19199     else
19200       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
19201       if test "x$IS_MODERN_MAKE" = x; then
19202         { $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
19203 $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;}
19204       else
19205         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
19206           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19207             MAKE_EXPECTED_ENV='cygwin'
19208           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19209             MAKE_EXPECTED_ENV='msys'
19210           else
19211             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
19212           fi
19213           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
19214           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
19215         else
19216           # Not relevant for non-Windows
19217           IS_MAKE_CORRECT_ENV=true
19218         fi
19219         if test "x$IS_MAKE_CORRECT_ENV" = x; then
19220           { $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
19221 $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;}
19222         else
19223           FOUND_MAKE=$MAKE_CANDIDATE
19224 
19225   # Only process if variable expands to non-empty
19226 
19227   if test "x$FOUND_MAKE" != x; then
19228     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19229 
19230   # First separate the path from the arguments. This will split at the first
19231   # space.
19232   complete="$FOUND_MAKE"
19233   path="${complete%% *}"
19234   tmp="$complete EOL"
19235   arguments="${tmp#* }"
19236 
19237   # Input might be given as Windows format, start by converting to
19238   # unix format.
19239   new_path=`$CYGPATH -u "$path"`
19240 
19241   # Now try to locate executable using which
19242   new_path=`$WHICH "$new_path" 2> /dev/null`
19243   # bat and cmd files are not always considered executable in cygwin causing which
19244   # to not find them
19245   if test "x$new_path" = x \
19246       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19247       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19248     new_path=`$CYGPATH -u "$path"`
19249   fi
19250   if test "x$new_path" = x; then
19251     # Oops. Which didn't find the executable.
19252     # The splitting of arguments from the executable at a space might have been incorrect,
19253     # since paths with space are more likely in Windows. Give it another try with the whole
19254     # argument.
19255     path="$complete"
19256     arguments="EOL"
19257     new_path=`$CYGPATH -u "$path"`
19258     new_path=`$WHICH "$new_path" 2> /dev/null`
19259     # bat and cmd files are not always considered executable in cygwin causing which
19260     # to not find them
19261     if test "x$new_path" = x \
19262         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19263         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19264       new_path=`$CYGPATH -u "$path"`
19265     fi
19266     if test "x$new_path" = x; then
19267       # It's still not found. Now this is an unrecoverable error.
19268       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19269 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19270       has_space=`$ECHO "$complete" | $GREP " "`
19271       if test "x$has_space" != x; then
19272         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19273 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19274       fi
19275       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19276     fi
19277   fi
19278 
19279   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19280   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19281   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19282   # "foo.exe" is OK but "foo" is an error.
19283   #
19284   # This test is therefore slightly more accurate than "test -f" to check for file presence.
19285   # It is also a way to make sure we got the proper file name for the real test later on.
19286   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19287   if test "x$test_shortpath" = x; then
19288     # Short path failed, file does not exist as specified.
19289     # Try adding .exe or .cmd
19290     if test -f "${new_path}.exe"; then
19291       input_to_shortpath="${new_path}.exe"
19292     elif test -f "${new_path}.cmd"; then
19293       input_to_shortpath="${new_path}.cmd"
19294     else
19295       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
19296 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
19297       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
19298 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
19299       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19300     fi
19301   else
19302     input_to_shortpath="$new_path"
19303   fi
19304 
19305   # Call helper function which possibly converts this using DOS-style short mode.
19306   # If so, the updated path is stored in $new_path.
19307   new_path="$input_to_shortpath"
19308 
19309   input_path="$input_to_shortpath"
19310   # Check if we need to convert this using DOS-style short mode. If the path
19311   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19312   # take no chances and rewrite it.
19313   # Note: m4 eats our [], so we need to use [ and ] instead.
19314   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19315   if test "x$has_forbidden_chars" != x; then
19316     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19317     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19318     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19319     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19320       # Going to short mode and back again did indeed matter. Since short mode is
19321       # case insensitive, let's make it lowercase to improve readability.
19322       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19323       # Now convert it back to Unix-style (cygpath)
19324       input_path=`$CYGPATH -u "$shortmode_path"`
19325       new_path="$input_path"
19326     fi
19327   fi
19328 
19329   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
19330   if test "x$test_cygdrive_prefix" = x; then
19331     # As a simple fix, exclude /usr/bin since it's not a real path.
19332     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
19333       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
19334       # a path prefixed by /cygdrive for fixpath to work.
19335       new_path="$CYGWIN_ROOT_PATH$input_path"
19336     fi
19337   fi
19338 
19339   # remove trailing .exe if any
19340   new_path="${new_path/%.exe/}"
19341 
19342     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19343 
19344   # First separate the path from the arguments. This will split at the first
19345   # space.
19346   complete="$FOUND_MAKE"
19347   path="${complete%% *}"
19348   tmp="$complete EOL"
19349   arguments="${tmp#* }"
19350 
19351   # Input might be given as Windows format, start by converting to
19352   # unix format.
19353   new_path="$path"
19354 
19355   windows_path="$new_path"
19356   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19357     unix_path=`$CYGPATH -u "$windows_path"`
19358     new_path="$unix_path"
19359   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19360     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19361     new_path="$unix_path"
19362   fi
19363 
19364 
19365   # Now try to locate executable using which
19366   new_path=`$WHICH "$new_path" 2> /dev/null`
19367 
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="$path"
19376 
19377   windows_path="$new_path"
19378   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19379     unix_path=`$CYGPATH -u "$windows_path"`
19380     new_path="$unix_path"
19381   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19382     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19383     new_path="$unix_path"
19384   fi
19385 
19386 
19387     new_path=`$WHICH "$new_path" 2> /dev/null`
19388     # bat and cmd files are not always considered executable in MSYS causing which
19389     # to not find them
19390     if test "x$new_path" = x \
19391         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19392         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19393       new_path="$path"
19394 
19395   windows_path="$new_path"
19396   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19397     unix_path=`$CYGPATH -u "$windows_path"`
19398     new_path="$unix_path"
19399   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19400     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19401     new_path="$unix_path"
19402   fi
19403 
19404     fi
19405 
19406     if test "x$new_path" = x; then
19407       # It's still not found. Now this is an unrecoverable error.
19408       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19409 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19410       has_space=`$ECHO "$complete" | $GREP " "`
19411       if test "x$has_space" != x; then
19412         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19413 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19414       fi
19415       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19416     fi
19417   fi
19418 
19419   # Now new_path has a complete unix path to the binary
19420   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
19421     # Keep paths in /bin as-is, but remove trailing .exe if any
19422     new_path="${new_path/%.exe/}"
19423     # Do not save /bin paths to all_fixpath_prefixes!
19424   else
19425     # Not in mixed or Windows style, start by that.
19426     new_path=`cmd //c echo $new_path`
19427 
19428   input_path="$new_path"
19429   # Check if we need to convert this using DOS-style short mode. If the path
19430   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19431   # take no chances and rewrite it.
19432   # Note: m4 eats our [], so we need to use [ and ] instead.
19433   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
19434   if test "x$has_forbidden_chars" != x; then
19435     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19436     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19437   fi
19438 
19439     # Output is in $new_path
19440 
19441   windows_path="$new_path"
19442   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19443     unix_path=`$CYGPATH -u "$windows_path"`
19444     new_path="$unix_path"
19445   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19446     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19447     new_path="$unix_path"
19448   fi
19449 
19450     # remove trailing .exe if any
19451     new_path="${new_path/%.exe/}"
19452 
19453     # Save the first 10 bytes of this path to the storage, so fixpath can work.
19454     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
19455   fi
19456 
19457     else
19458       # We're on a unix platform. Hooray! :)
19459       # First separate the path from the arguments. This will split at the first
19460       # space.
19461       complete="$FOUND_MAKE"
19462       path="${complete%% *}"
19463       tmp="$complete EOL"
19464       arguments="${tmp#* }"
19465 
19466       # Cannot rely on the command "which" here since it doesn't always work.
19467       is_absolute_path=`$ECHO "$path" | $GREP ^/`
19468       if test -z "$is_absolute_path"; then
19469         # Path to executable is not absolute. Find it.
19470         IFS_save="$IFS"
19471         IFS=:
19472         for p in $PATH; do
19473           if test -f "$p/$path" && test -x "$p/$path"; then
19474             new_path="$p/$path"
19475             break
19476           fi
19477         done
19478         IFS="$IFS_save"
19479       else
19480         # This is an absolute path, we can use it without further modifications.
19481         new_path="$path"
19482       fi
19483 
19484       if test "x$new_path" = x; then
19485         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19486 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19487         has_space=`$ECHO "$complete" | $GREP " "`
19488         if test "x$has_space" != x; then
19489           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
19490 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
19491         fi
19492         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19493       fi
19494     fi
19495 
19496     # Now join together the path and the arguments once again
19497     if test "x$arguments" != xEOL; then
19498       new_complete="$new_path ${arguments% *}"
19499     else
19500       new_complete="$new_path"
19501     fi
19502 
19503     if test "x$complete" != "x$new_complete"; then
19504       FOUND_MAKE="$new_complete"
19505       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
19506 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
19507     fi
19508   fi
19509 
19510         fi
19511       fi
19512     fi
19513   fi
19514 
19515 
19516     if test "x$FOUND_MAKE" = x; then
19517       for ac_prog in make
19518 do
19519   # Extract the first word of "$ac_prog", so it can be a program name with args.
19520 set dummy $ac_prog; ac_word=$2
19521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19522 $as_echo_n "checking for $ac_word... " >&6; }
19523 if ${ac_cv_path_CHECK_MAKE+:} false; then :
19524   $as_echo_n "(cached) " >&6
19525 else
19526   case $CHECK_MAKE in
19527   [\\/]* | ?:[\\/]*)
19528   ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
19529   ;;
19530   *)
19531   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19532 for as_dir in $PATH
19533 do
19534   IFS=$as_save_IFS
19535   test -z "$as_dir" && as_dir=.
19536     for ac_exec_ext in '' $ac_executable_extensions; do
19537   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19538     ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
19539     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19540     break 2
19541   fi
19542 done
19543   done
19544 IFS=$as_save_IFS
19545 
19546   ;;
19547 esac
19548 fi
19549 CHECK_MAKE=$ac_cv_path_CHECK_MAKE
19550 if test -n "$CHECK_MAKE"; then
19551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5
19552 $as_echo "$CHECK_MAKE" >&6; }
19553 else
19554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19555 $as_echo "no" >&6; }
19556 fi
19557 
19558 
19559   test -n "$CHECK_MAKE" && break
19560 done
19561 
19562 
19563   MAKE_CANDIDATE=""$CHECK_MAKE""
19564   DESCRIPTION="make in PATH"
19565 
19566   # On Cygwin, we require a newer version of make than on other platforms
19567   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19568     MAKE_VERSION_EXPR="-e 4\."
19569     MAKE_REQUIRED_VERSION="4.0"
19570    else
19571     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
19572     MAKE_REQUIRED_VERSION="3.81"
19573   fi
19574 
19575   if test "x$MAKE_CANDIDATE" != x; then
19576     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
19577 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
19578     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
19579     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
19580     if test "x$IS_GNU_MAKE" = x; then
19581       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
19582 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
19583     else
19584       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
19585       if test "x$IS_MODERN_MAKE" = x; then
19586         { $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
19587 $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;}
19588       else
19589         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
19590           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19591             MAKE_EXPECTED_ENV='cygwin'
19592           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19593             MAKE_EXPECTED_ENV='msys'
19594           else
19595             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
19596           fi
19597           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
19598           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
19599         else
19600           # Not relevant for non-Windows
19601           IS_MAKE_CORRECT_ENV=true
19602         fi
19603         if test "x$IS_MAKE_CORRECT_ENV" = x; then
19604           { $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
19605 $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;}
19606         else
19607           FOUND_MAKE=$MAKE_CANDIDATE
19608 
19609   # Only process if variable expands to non-empty
19610 
19611   if test "x$FOUND_MAKE" != x; then
19612     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19613 
19614   # First separate the path from the arguments. This will split at the first
19615   # space.
19616   complete="$FOUND_MAKE"
19617   path="${complete%% *}"
19618   tmp="$complete EOL"
19619   arguments="${tmp#* }"
19620 
19621   # Input might be given as Windows format, start by converting to
19622   # unix format.
19623   new_path=`$CYGPATH -u "$path"`
19624 
19625   # Now try to locate executable using which
19626   new_path=`$WHICH "$new_path" 2> /dev/null`
19627   # bat and cmd files are not always considered executable in cygwin causing which
19628   # to not find them
19629   if test "x$new_path" = x \
19630       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19631       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19632     new_path=`$CYGPATH -u "$path"`
19633   fi
19634   if test "x$new_path" = x; then
19635     # Oops. Which didn't find the executable.
19636     # The splitting of arguments from the executable at a space might have been incorrect,
19637     # since paths with space are more likely in Windows. Give it another try with the whole
19638     # argument.
19639     path="$complete"
19640     arguments="EOL"
19641     new_path=`$CYGPATH -u "$path"`
19642     new_path=`$WHICH "$new_path" 2> /dev/null`
19643     # bat and cmd files are not always considered executable in cygwin causing which
19644     # to not find them
19645     if test "x$new_path" = x \
19646         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19647         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19648       new_path=`$CYGPATH -u "$path"`
19649     fi
19650     if test "x$new_path" = x; then
19651       # It's still not found. Now this is an unrecoverable error.
19652       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19653 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19654       has_space=`$ECHO "$complete" | $GREP " "`
19655       if test "x$has_space" != x; then
19656         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19657 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19658       fi
19659       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19660     fi
19661   fi
19662 
19663   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19664   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19665   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19666   # "foo.exe" is OK but "foo" is an error.
19667   #
19668   # This test is therefore slightly more accurate than "test -f" to check for file presence.
19669   # It is also a way to make sure we got the proper file name for the real test later on.
19670   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19671   if test "x$test_shortpath" = x; then
19672     # Short path failed, file does not exist as specified.
19673     # Try adding .exe or .cmd
19674     if test -f "${new_path}.exe"; then
19675       input_to_shortpath="${new_path}.exe"
19676     elif test -f "${new_path}.cmd"; then
19677       input_to_shortpath="${new_path}.cmd"
19678     else
19679       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
19680 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
19681       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
19682 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
19683       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19684     fi
19685   else
19686     input_to_shortpath="$new_path"
19687   fi
19688 
19689   # Call helper function which possibly converts this using DOS-style short mode.
19690   # If so, the updated path is stored in $new_path.
19691   new_path="$input_to_shortpath"
19692 
19693   input_path="$input_to_shortpath"
19694   # Check if we need to convert this using DOS-style short mode. If the path
19695   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19696   # take no chances and rewrite it.
19697   # Note: m4 eats our [], so we need to use [ and ] instead.
19698   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19699   if test "x$has_forbidden_chars" != x; then
19700     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19701     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19702     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19703     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19704       # Going to short mode and back again did indeed matter. Since short mode is
19705       # case insensitive, let's make it lowercase to improve readability.
19706       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19707       # Now convert it back to Unix-style (cygpath)
19708       input_path=`$CYGPATH -u "$shortmode_path"`
19709       new_path="$input_path"
19710     fi
19711   fi
19712 
19713   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
19714   if test "x$test_cygdrive_prefix" = x; then
19715     # As a simple fix, exclude /usr/bin since it's not a real path.
19716     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
19717       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
19718       # a path prefixed by /cygdrive for fixpath to work.
19719       new_path="$CYGWIN_ROOT_PATH$input_path"
19720     fi
19721   fi
19722 
19723   # remove trailing .exe if any
19724   new_path="${new_path/%.exe/}"
19725 
19726     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19727 
19728   # First separate the path from the arguments. This will split at the first
19729   # space.
19730   complete="$FOUND_MAKE"
19731   path="${complete%% *}"
19732   tmp="$complete EOL"
19733   arguments="${tmp#* }"
19734 
19735   # Input might be given as Windows format, start by converting to
19736   # unix format.
19737   new_path="$path"
19738 
19739   windows_path="$new_path"
19740   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19741     unix_path=`$CYGPATH -u "$windows_path"`
19742     new_path="$unix_path"
19743   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19744     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19745     new_path="$unix_path"
19746   fi
19747 
19748 
19749   # Now try to locate executable using which
19750   new_path=`$WHICH "$new_path" 2> /dev/null`
19751 
19752   if test "x$new_path" = x; then
19753     # Oops. Which didn't find the executable.
19754     # The splitting of arguments from the executable at a space might have been incorrect,
19755     # since paths with space are more likely in Windows. Give it another try with the whole
19756     # argument.
19757     path="$complete"
19758     arguments="EOL"
19759     new_path="$path"
19760 
19761   windows_path="$new_path"
19762   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19763     unix_path=`$CYGPATH -u "$windows_path"`
19764     new_path="$unix_path"
19765   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19766     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19767     new_path="$unix_path"
19768   fi
19769 
19770 
19771     new_path=`$WHICH "$new_path" 2> /dev/null`
19772     # bat and cmd files are not always considered executable in MSYS causing which
19773     # to not find them
19774     if test "x$new_path" = x \
19775         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19776         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19777       new_path="$path"
19778 
19779   windows_path="$new_path"
19780   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19781     unix_path=`$CYGPATH -u "$windows_path"`
19782     new_path="$unix_path"
19783   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19784     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19785     new_path="$unix_path"
19786   fi
19787 
19788     fi
19789 
19790     if test "x$new_path" = x; then
19791       # It's still not found. Now this is an unrecoverable error.
19792       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19793 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19794       has_space=`$ECHO "$complete" | $GREP " "`
19795       if test "x$has_space" != x; then
19796         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19797 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19798       fi
19799       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19800     fi
19801   fi
19802 
19803   # Now new_path has a complete unix path to the binary
19804   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
19805     # Keep paths in /bin as-is, but remove trailing .exe if any
19806     new_path="${new_path/%.exe/}"
19807     # Do not save /bin paths to all_fixpath_prefixes!
19808   else
19809     # Not in mixed or Windows style, start by that.
19810     new_path=`cmd //c echo $new_path`
19811 
19812   input_path="$new_path"
19813   # Check if we need to convert this using DOS-style short mode. If the path
19814   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19815   # take no chances and rewrite it.
19816   # Note: m4 eats our [], so we need to use [ and ] instead.
19817   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
19818   if test "x$has_forbidden_chars" != x; then
19819     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19820     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19821   fi
19822 
19823     # Output is in $new_path
19824 
19825   windows_path="$new_path"
19826   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19827     unix_path=`$CYGPATH -u "$windows_path"`
19828     new_path="$unix_path"
19829   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19830     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19831     new_path="$unix_path"
19832   fi
19833 
19834     # remove trailing .exe if any
19835     new_path="${new_path/%.exe/}"
19836 
19837     # Save the first 10 bytes of this path to the storage, so fixpath can work.
19838     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
19839   fi
19840 
19841     else
19842       # We're on a unix platform. Hooray! :)
19843       # First separate the path from the arguments. This will split at the first
19844       # space.
19845       complete="$FOUND_MAKE"
19846       path="${complete%% *}"
19847       tmp="$complete EOL"
19848       arguments="${tmp#* }"
19849 
19850       # Cannot rely on the command "which" here since it doesn't always work.
19851       is_absolute_path=`$ECHO "$path" | $GREP ^/`
19852       if test -z "$is_absolute_path"; then
19853         # Path to executable is not absolute. Find it.
19854         IFS_save="$IFS"
19855         IFS=:
19856         for p in $PATH; do
19857           if test -f "$p/$path" && test -x "$p/$path"; then
19858             new_path="$p/$path"
19859             break
19860           fi
19861         done
19862         IFS="$IFS_save"
19863       else
19864         # This is an absolute path, we can use it without further modifications.
19865         new_path="$path"
19866       fi
19867 
19868       if test "x$new_path" = x; then
19869         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19870 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19871         has_space=`$ECHO "$complete" | $GREP " "`
19872         if test "x$has_space" != x; then
19873           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
19874 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
19875         fi
19876         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19877       fi
19878     fi
19879 
19880     # Now join together the path and the arguments once again
19881     if test "x$arguments" != xEOL; then
19882       new_complete="$new_path ${arguments% *}"
19883     else
19884       new_complete="$new_path"
19885     fi
19886 
19887     if test "x$complete" != "x$new_complete"; then
19888       FOUND_MAKE="$new_complete"
19889       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
19890 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
19891     fi
19892   fi
19893 
19894         fi
19895       fi
19896     fi
19897   fi
19898 
19899     fi
19900 
19901     if test "x$FOUND_MAKE" = x; then
19902       if test "x$TOOLCHAIN_PATH" != x; then
19903         # We have a toolchain path, check that as well before giving up.
19904         OLD_PATH=$PATH
19905         PATH=$TOOLCHAIN_PATH:$PATH
19906         for ac_prog in gmake
19907 do
19908   # Extract the first word of "$ac_prog", so it can be a program name with args.
19909 set dummy $ac_prog; ac_word=$2
19910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19911 $as_echo_n "checking for $ac_word... " >&6; }
19912 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then :
19913   $as_echo_n "(cached) " >&6
19914 else
19915   case $CHECK_TOOLSDIR_GMAKE in
19916   [\\/]* | ?:[\\/]*)
19917   ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
19918   ;;
19919   *)
19920   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19921 for as_dir in $PATH
19922 do
19923   IFS=$as_save_IFS
19924   test -z "$as_dir" && as_dir=.
19925     for ac_exec_ext in '' $ac_executable_extensions; do
19926   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19927     ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
19928     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19929     break 2
19930   fi
19931 done
19932   done
19933 IFS=$as_save_IFS
19934 
19935   ;;
19936 esac
19937 fi
19938 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE
19939 if test -n "$CHECK_TOOLSDIR_GMAKE"; then
19940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5
19941 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; }
19942 else
19943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19944 $as_echo "no" >&6; }
19945 fi
19946 
19947 
19948   test -n "$CHECK_TOOLSDIR_GMAKE" && break
19949 done
19950 
19951 
19952   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE""
19953   DESCRIPTION="gmake in tools-dir"
19954 
19955   # On Cygwin, we require a newer version of make than on other platforms
19956   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19957     MAKE_VERSION_EXPR="-e 4\."
19958     MAKE_REQUIRED_VERSION="4.0"
19959    else
19960     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
19961     MAKE_REQUIRED_VERSION="3.81"
19962   fi
19963 
19964   if test "x$MAKE_CANDIDATE" != x; then
19965     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
19966 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
19967     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
19968     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
19969     if test "x$IS_GNU_MAKE" = x; then
19970       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
19971 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
19972     else
19973       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
19974       if test "x$IS_MODERN_MAKE" = x; then
19975         { $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
19976 $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;}
19977       else
19978         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
19979           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19980             MAKE_EXPECTED_ENV='cygwin'
19981           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19982             MAKE_EXPECTED_ENV='msys'
19983           else
19984             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
19985           fi
19986           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
19987           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
19988         else
19989           # Not relevant for non-Windows
19990           IS_MAKE_CORRECT_ENV=true
19991         fi
19992         if test "x$IS_MAKE_CORRECT_ENV" = x; then
19993           { $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
19994 $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;}
19995         else
19996           FOUND_MAKE=$MAKE_CANDIDATE
19997 
19998   # Only process if variable expands to non-empty
19999 
20000   if test "x$FOUND_MAKE" != x; then
20001     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20002 
20003   # First separate the path from the arguments. This will split at the first
20004   # space.
20005   complete="$FOUND_MAKE"
20006   path="${complete%% *}"
20007   tmp="$complete EOL"
20008   arguments="${tmp#* }"
20009 
20010   # Input might be given as Windows format, start by converting to
20011   # unix format.
20012   new_path=`$CYGPATH -u "$path"`
20013 
20014   # Now try to locate executable using which
20015   new_path=`$WHICH "$new_path" 2> /dev/null`
20016   # bat and cmd files are not always considered executable in cygwin causing which
20017   # to not find them
20018   if test "x$new_path" = x \
20019       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20020       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20021     new_path=`$CYGPATH -u "$path"`
20022   fi
20023   if test "x$new_path" = x; then
20024     # Oops. Which didn't find the executable.
20025     # The splitting of arguments from the executable at a space might have been incorrect,
20026     # since paths with space are more likely in Windows. Give it another try with the whole
20027     # argument.
20028     path="$complete"
20029     arguments="EOL"
20030     new_path=`$CYGPATH -u "$path"`
20031     new_path=`$WHICH "$new_path" 2> /dev/null`
20032     # bat and cmd files are not always considered executable in cygwin causing which
20033     # to not find them
20034     if test "x$new_path" = x \
20035         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20036         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20037       new_path=`$CYGPATH -u "$path"`
20038     fi
20039     if test "x$new_path" = x; then
20040       # It's still not found. Now this is an unrecoverable error.
20041       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20042 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20043       has_space=`$ECHO "$complete" | $GREP " "`
20044       if test "x$has_space" != x; then
20045         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20046 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20047       fi
20048       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20049     fi
20050   fi
20051 
20052   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20053   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20054   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20055   # "foo.exe" is OK but "foo" is an error.
20056   #
20057   # This test is therefore slightly more accurate than "test -f" to check for file presence.
20058   # It is also a way to make sure we got the proper file name for the real test later on.
20059   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20060   if test "x$test_shortpath" = x; then
20061     # Short path failed, file does not exist as specified.
20062     # Try adding .exe or .cmd
20063     if test -f "${new_path}.exe"; then
20064       input_to_shortpath="${new_path}.exe"
20065     elif test -f "${new_path}.cmd"; then
20066       input_to_shortpath="${new_path}.cmd"
20067     else
20068       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
20069 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
20070       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
20071 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
20072       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20073     fi
20074   else
20075     input_to_shortpath="$new_path"
20076   fi
20077 
20078   # Call helper function which possibly converts this using DOS-style short mode.
20079   # If so, the updated path is stored in $new_path.
20080   new_path="$input_to_shortpath"
20081 
20082   input_path="$input_to_shortpath"
20083   # Check if we need to convert this using DOS-style short mode. If the path
20084   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20085   # take no chances and rewrite it.
20086   # Note: m4 eats our [], so we need to use [ and ] instead.
20087   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20088   if test "x$has_forbidden_chars" != x; then
20089     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20090     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20091     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20092     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20093       # Going to short mode and back again did indeed matter. Since short mode is
20094       # case insensitive, let's make it lowercase to improve readability.
20095       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20096       # Now convert it back to Unix-style (cygpath)
20097       input_path=`$CYGPATH -u "$shortmode_path"`
20098       new_path="$input_path"
20099     fi
20100   fi
20101 
20102   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20103   if test "x$test_cygdrive_prefix" = x; then
20104     # As a simple fix, exclude /usr/bin since it's not a real path.
20105     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
20106       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20107       # a path prefixed by /cygdrive for fixpath to work.
20108       new_path="$CYGWIN_ROOT_PATH$input_path"
20109     fi
20110   fi
20111 
20112   # remove trailing .exe if any
20113   new_path="${new_path/%.exe/}"
20114 
20115     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20116 
20117   # First separate the path from the arguments. This will split at the first
20118   # space.
20119   complete="$FOUND_MAKE"
20120   path="${complete%% *}"
20121   tmp="$complete EOL"
20122   arguments="${tmp#* }"
20123 
20124   # Input might be given as Windows format, start by converting to
20125   # unix format.
20126   new_path="$path"
20127 
20128   windows_path="$new_path"
20129   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20130     unix_path=`$CYGPATH -u "$windows_path"`
20131     new_path="$unix_path"
20132   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20133     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20134     new_path="$unix_path"
20135   fi
20136 
20137 
20138   # Now try to locate executable using which
20139   new_path=`$WHICH "$new_path" 2> /dev/null`
20140 
20141   if test "x$new_path" = x; then
20142     # Oops. Which didn't find the executable.
20143     # The splitting of arguments from the executable at a space might have been incorrect,
20144     # since paths with space are more likely in Windows. Give it another try with the whole
20145     # argument.
20146     path="$complete"
20147     arguments="EOL"
20148     new_path="$path"
20149 
20150   windows_path="$new_path"
20151   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20152     unix_path=`$CYGPATH -u "$windows_path"`
20153     new_path="$unix_path"
20154   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20155     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20156     new_path="$unix_path"
20157   fi
20158 
20159 
20160     new_path=`$WHICH "$new_path" 2> /dev/null`
20161     # bat and cmd files are not always considered executable in MSYS causing which
20162     # to not find them
20163     if test "x$new_path" = x \
20164         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20165         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20166       new_path="$path"
20167 
20168   windows_path="$new_path"
20169   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20170     unix_path=`$CYGPATH -u "$windows_path"`
20171     new_path="$unix_path"
20172   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20173     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20174     new_path="$unix_path"
20175   fi
20176 
20177     fi
20178 
20179     if test "x$new_path" = x; then
20180       # It's still not found. Now this is an unrecoverable error.
20181       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20182 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20183       has_space=`$ECHO "$complete" | $GREP " "`
20184       if test "x$has_space" != x; then
20185         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20186 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20187       fi
20188       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20189     fi
20190   fi
20191 
20192   # Now new_path has a complete unix path to the binary
20193   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
20194     # Keep paths in /bin as-is, but remove trailing .exe if any
20195     new_path="${new_path/%.exe/}"
20196     # Do not save /bin paths to all_fixpath_prefixes!
20197   else
20198     # Not in mixed or Windows style, start by that.
20199     new_path=`cmd //c echo $new_path`
20200 
20201   input_path="$new_path"
20202   # Check if we need to convert this using DOS-style short mode. If the path
20203   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20204   # take no chances and rewrite it.
20205   # Note: m4 eats our [], so we need to use [ and ] instead.
20206   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20207   if test "x$has_forbidden_chars" != x; then
20208     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20209     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20210   fi
20211 
20212     # Output is in $new_path
20213 
20214   windows_path="$new_path"
20215   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20216     unix_path=`$CYGPATH -u "$windows_path"`
20217     new_path="$unix_path"
20218   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20219     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20220     new_path="$unix_path"
20221   fi
20222 
20223     # remove trailing .exe if any
20224     new_path="${new_path/%.exe/}"
20225 
20226     # Save the first 10 bytes of this path to the storage, so fixpath can work.
20227     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20228   fi
20229 
20230     else
20231       # We're on a unix platform. Hooray! :)
20232       # First separate the path from the arguments. This will split at the first
20233       # space.
20234       complete="$FOUND_MAKE"
20235       path="${complete%% *}"
20236       tmp="$complete EOL"
20237       arguments="${tmp#* }"
20238 
20239       # Cannot rely on the command "which" here since it doesn't always work.
20240       is_absolute_path=`$ECHO "$path" | $GREP ^/`
20241       if test -z "$is_absolute_path"; then
20242         # Path to executable is not absolute. Find it.
20243         IFS_save="$IFS"
20244         IFS=:
20245         for p in $PATH; do
20246           if test -f "$p/$path" && test -x "$p/$path"; then
20247             new_path="$p/$path"
20248             break
20249           fi
20250         done
20251         IFS="$IFS_save"
20252       else
20253         # This is an absolute path, we can use it without further modifications.
20254         new_path="$path"
20255       fi
20256 
20257       if test "x$new_path" = x; then
20258         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20259 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20260         has_space=`$ECHO "$complete" | $GREP " "`
20261         if test "x$has_space" != x; then
20262           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
20263 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
20264         fi
20265         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20266       fi
20267     fi
20268 
20269     # Now join together the path and the arguments once again
20270     if test "x$arguments" != xEOL; then
20271       new_complete="$new_path ${arguments% *}"
20272     else
20273       new_complete="$new_path"
20274     fi
20275 
20276     if test "x$complete" != "x$new_complete"; then
20277       FOUND_MAKE="$new_complete"
20278       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
20279 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
20280     fi
20281   fi
20282 
20283         fi
20284       fi
20285     fi
20286   fi
20287 
20288         if test "x$FOUND_MAKE" = x; then
20289           for ac_prog in make
20290 do
20291   # Extract the first word of "$ac_prog", so it can be a program name with args.
20292 set dummy $ac_prog; ac_word=$2
20293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20294 $as_echo_n "checking for $ac_word... " >&6; }
20295 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then :
20296   $as_echo_n "(cached) " >&6
20297 else
20298   case $CHECK_TOOLSDIR_MAKE in
20299   [\\/]* | ?:[\\/]*)
20300   ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
20301   ;;
20302   *)
20303   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20304 for as_dir in $PATH
20305 do
20306   IFS=$as_save_IFS
20307   test -z "$as_dir" && as_dir=.
20308     for ac_exec_ext in '' $ac_executable_extensions; do
20309   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20310     ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
20311     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20312     break 2
20313   fi
20314 done
20315   done
20316 IFS=$as_save_IFS
20317 
20318   ;;
20319 esac
20320 fi
20321 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE
20322 if test -n "$CHECK_TOOLSDIR_MAKE"; then
20323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5
20324 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; }
20325 else
20326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20327 $as_echo "no" >&6; }
20328 fi
20329 
20330 
20331   test -n "$CHECK_TOOLSDIR_MAKE" && break
20332 done
20333 
20334 
20335   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE""
20336   DESCRIPTION="make in tools-dir"
20337 
20338   # On Cygwin, we require a newer version of make than on other platforms
20339   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20340     MAKE_VERSION_EXPR="-e 4\."
20341     MAKE_REQUIRED_VERSION="4.0"
20342    else
20343     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
20344     MAKE_REQUIRED_VERSION="3.81"
20345   fi
20346 
20347   if test "x$MAKE_CANDIDATE" != x; then
20348     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
20349 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
20350     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
20351     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
20352     if test "x$IS_GNU_MAKE" = x; then
20353       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
20354 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
20355     else
20356       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
20357       if test "x$IS_MODERN_MAKE" = x; then
20358         { $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
20359 $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;}
20360       else
20361         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
20362           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20363             MAKE_EXPECTED_ENV='cygwin'
20364           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20365             MAKE_EXPECTED_ENV='msys'
20366           else
20367             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
20368           fi
20369           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
20370           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
20371         else
20372           # Not relevant for non-Windows
20373           IS_MAKE_CORRECT_ENV=true
20374         fi
20375         if test "x$IS_MAKE_CORRECT_ENV" = x; then
20376           { $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
20377 $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;}
20378         else
20379           FOUND_MAKE=$MAKE_CANDIDATE
20380 
20381   # Only process if variable expands to non-empty
20382 
20383   if test "x$FOUND_MAKE" != x; then
20384     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20385 
20386   # First separate the path from the arguments. This will split at the first
20387   # space.
20388   complete="$FOUND_MAKE"
20389   path="${complete%% *}"
20390   tmp="$complete EOL"
20391   arguments="${tmp#* }"
20392 
20393   # Input might be given as Windows format, start by converting to
20394   # unix format.
20395   new_path=`$CYGPATH -u "$path"`
20396 
20397   # Now try to locate executable using which
20398   new_path=`$WHICH "$new_path" 2> /dev/null`
20399   # bat and cmd files are not always considered executable in cygwin causing which
20400   # to not find them
20401   if test "x$new_path" = x \
20402       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20403       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20404     new_path=`$CYGPATH -u "$path"`
20405   fi
20406   if test "x$new_path" = x; then
20407     # Oops. Which didn't find the executable.
20408     # The splitting of arguments from the executable at a space might have been incorrect,
20409     # since paths with space are more likely in Windows. Give it another try with the whole
20410     # argument.
20411     path="$complete"
20412     arguments="EOL"
20413     new_path=`$CYGPATH -u "$path"`
20414     new_path=`$WHICH "$new_path" 2> /dev/null`
20415     # bat and cmd files are not always considered executable in cygwin causing which
20416     # to not find them
20417     if test "x$new_path" = x \
20418         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20419         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20420       new_path=`$CYGPATH -u "$path"`
20421     fi
20422     if test "x$new_path" = x; then
20423       # It's still not found. Now this is an unrecoverable error.
20424       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20425 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20426       has_space=`$ECHO "$complete" | $GREP " "`
20427       if test "x$has_space" != x; then
20428         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20429 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20430       fi
20431       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20432     fi
20433   fi
20434 
20435   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20436   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20437   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20438   # "foo.exe" is OK but "foo" is an error.
20439   #
20440   # This test is therefore slightly more accurate than "test -f" to check for file presence.
20441   # It is also a way to make sure we got the proper file name for the real test later on.
20442   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20443   if test "x$test_shortpath" = x; then
20444     # Short path failed, file does not exist as specified.
20445     # Try adding .exe or .cmd
20446     if test -f "${new_path}.exe"; then
20447       input_to_shortpath="${new_path}.exe"
20448     elif test -f "${new_path}.cmd"; then
20449       input_to_shortpath="${new_path}.cmd"
20450     else
20451       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
20452 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
20453       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
20454 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
20455       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20456     fi
20457   else
20458     input_to_shortpath="$new_path"
20459   fi
20460 
20461   # Call helper function which possibly converts this using DOS-style short mode.
20462   # If so, the updated path is stored in $new_path.
20463   new_path="$input_to_shortpath"
20464 
20465   input_path="$input_to_shortpath"
20466   # Check if we need to convert this using DOS-style short mode. If the path
20467   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20468   # take no chances and rewrite it.
20469   # Note: m4 eats our [], so we need to use [ and ] instead.
20470   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20471   if test "x$has_forbidden_chars" != x; then
20472     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20473     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20474     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20475     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20476       # Going to short mode and back again did indeed matter. Since short mode is
20477       # case insensitive, let's make it lowercase to improve readability.
20478       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20479       # Now convert it back to Unix-style (cygpath)
20480       input_path=`$CYGPATH -u "$shortmode_path"`
20481       new_path="$input_path"
20482     fi
20483   fi
20484 
20485   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20486   if test "x$test_cygdrive_prefix" = x; then
20487     # As a simple fix, exclude /usr/bin since it's not a real path.
20488     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
20489       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20490       # a path prefixed by /cygdrive for fixpath to work.
20491       new_path="$CYGWIN_ROOT_PATH$input_path"
20492     fi
20493   fi
20494 
20495   # remove trailing .exe if any
20496   new_path="${new_path/%.exe/}"
20497 
20498     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20499 
20500   # First separate the path from the arguments. This will split at the first
20501   # space.
20502   complete="$FOUND_MAKE"
20503   path="${complete%% *}"
20504   tmp="$complete EOL"
20505   arguments="${tmp#* }"
20506 
20507   # Input might be given as Windows format, start by converting to
20508   # unix format.
20509   new_path="$path"
20510 
20511   windows_path="$new_path"
20512   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20513     unix_path=`$CYGPATH -u "$windows_path"`
20514     new_path="$unix_path"
20515   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20516     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20517     new_path="$unix_path"
20518   fi
20519 
20520 
20521   # Now try to locate executable using which
20522   new_path=`$WHICH "$new_path" 2> /dev/null`
20523 
20524   if test "x$new_path" = x; then
20525     # Oops. Which didn't find the executable.
20526     # The splitting of arguments from the executable at a space might have been incorrect,
20527     # since paths with space are more likely in Windows. Give it another try with the whole
20528     # argument.
20529     path="$complete"
20530     arguments="EOL"
20531     new_path="$path"
20532 
20533   windows_path="$new_path"
20534   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20535     unix_path=`$CYGPATH -u "$windows_path"`
20536     new_path="$unix_path"
20537   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20538     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20539     new_path="$unix_path"
20540   fi
20541 
20542 
20543     new_path=`$WHICH "$new_path" 2> /dev/null`
20544     # bat and cmd files are not always considered executable in MSYS causing which
20545     # to not find them
20546     if test "x$new_path" = x \
20547         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20548         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20549       new_path="$path"
20550 
20551   windows_path="$new_path"
20552   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20553     unix_path=`$CYGPATH -u "$windows_path"`
20554     new_path="$unix_path"
20555   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20556     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20557     new_path="$unix_path"
20558   fi
20559 
20560     fi
20561 
20562     if test "x$new_path" = x; then
20563       # It's still not found. Now this is an unrecoverable error.
20564       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20565 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20566       has_space=`$ECHO "$complete" | $GREP " "`
20567       if test "x$has_space" != x; then
20568         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20569 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20570       fi
20571       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20572     fi
20573   fi
20574 
20575   # Now new_path has a complete unix path to the binary
20576   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
20577     # Keep paths in /bin as-is, but remove trailing .exe if any
20578     new_path="${new_path/%.exe/}"
20579     # Do not save /bin paths to all_fixpath_prefixes!
20580   else
20581     # Not in mixed or Windows style, start by that.
20582     new_path=`cmd //c echo $new_path`
20583 
20584   input_path="$new_path"
20585   # Check if we need to convert this using DOS-style short mode. If the path
20586   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20587   # take no chances and rewrite it.
20588   # Note: m4 eats our [], so we need to use [ and ] instead.
20589   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20590   if test "x$has_forbidden_chars" != x; then
20591     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20592     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20593   fi
20594 
20595     # Output is in $new_path
20596 
20597   windows_path="$new_path"
20598   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20599     unix_path=`$CYGPATH -u "$windows_path"`
20600     new_path="$unix_path"
20601   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20602     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20603     new_path="$unix_path"
20604   fi
20605 
20606     # remove trailing .exe if any
20607     new_path="${new_path/%.exe/}"
20608 
20609     # Save the first 10 bytes of this path to the storage, so fixpath can work.
20610     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20611   fi
20612 
20613     else
20614       # We're on a unix platform. Hooray! :)
20615       # First separate the path from the arguments. This will split at the first
20616       # space.
20617       complete="$FOUND_MAKE"
20618       path="${complete%% *}"
20619       tmp="$complete EOL"
20620       arguments="${tmp#* }"
20621 
20622       # Cannot rely on the command "which" here since it doesn't always work.
20623       is_absolute_path=`$ECHO "$path" | $GREP ^/`
20624       if test -z "$is_absolute_path"; then
20625         # Path to executable is not absolute. Find it.
20626         IFS_save="$IFS"
20627         IFS=:
20628         for p in $PATH; do
20629           if test -f "$p/$path" && test -x "$p/$path"; then
20630             new_path="$p/$path"
20631             break
20632           fi
20633         done
20634         IFS="$IFS_save"
20635       else
20636         # This is an absolute path, we can use it without further modifications.
20637         new_path="$path"
20638       fi
20639 
20640       if test "x$new_path" = x; then
20641         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20642 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20643         has_space=`$ECHO "$complete" | $GREP " "`
20644         if test "x$has_space" != x; then
20645           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
20646 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
20647         fi
20648         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20649       fi
20650     fi
20651 
20652     # Now join together the path and the arguments once again
20653     if test "x$arguments" != xEOL; then
20654       new_complete="$new_path ${arguments% *}"
20655     else
20656       new_complete="$new_path"
20657     fi
20658 
20659     if test "x$complete" != "x$new_complete"; then
20660       FOUND_MAKE="$new_complete"
20661       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
20662 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
20663     fi
20664   fi
20665 
20666         fi
20667       fi
20668     fi
20669   fi
20670 
20671         fi
20672         PATH=$OLD_PATH
20673       fi
20674     fi
20675 
20676     if test "x$FOUND_MAKE" = x; then
20677       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
20678     fi
20679 
20680     else
20681       # If it succeeded, then it was overridden by the user. We will use it
20682       # for the tool.
20683 
20684       # First remove it from the list of overridden variables, so we can test
20685       # for unknown variables in the end.
20686       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
20687 
20688       # Check if we try to supply an empty value
20689       if test "x$MAKE" = x; then
20690         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MAKE= (no value)" >&5
20691 $as_echo "$as_me: Setting user supplied tool MAKE= (no value)" >&6;}
20692         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAKE" >&5
20693 $as_echo_n "checking for MAKE... " >&6; }
20694         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
20695 $as_echo "disabled" >&6; }
20696       else
20697         # Check if the provided tool contains a complete path.
20698         tool_specified="$MAKE"
20699         tool_basename="${tool_specified##*/}"
20700         if test "x$tool_basename" = "x$tool_specified"; then
20701           # A command without a complete path is provided, search $PATH.
20702           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MAKE=$tool_basename" >&5
20703 $as_echo "$as_me: Will search for user supplied tool MAKE=$tool_basename" >&6;}
20704           # Extract the first word of "$tool_basename", so it can be a program name with args.
20705 set dummy $tool_basename; ac_word=$2
20706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20707 $as_echo_n "checking for $ac_word... " >&6; }
20708 if ${ac_cv_path_MAKE+:} false; then :
20709   $as_echo_n "(cached) " >&6
20710 else
20711   case $MAKE in
20712   [\\/]* | ?:[\\/]*)
20713   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
20714   ;;
20715   *)
20716   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20717 for as_dir in $PATH
20718 do
20719   IFS=$as_save_IFS
20720   test -z "$as_dir" && as_dir=.
20721     for ac_exec_ext in '' $ac_executable_extensions; do
20722   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20723     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
20724     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20725     break 2
20726   fi
20727 done
20728   done
20729 IFS=$as_save_IFS
20730 
20731   ;;
20732 esac
20733 fi
20734 MAKE=$ac_cv_path_MAKE
20735 if test -n "$MAKE"; then
20736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
20737 $as_echo "$MAKE" >&6; }
20738 else
20739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20740 $as_echo "no" >&6; }
20741 fi
20742 
20743 
20744           if test "x$MAKE" = x; then
20745             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
20746           fi
20747         else
20748           # Otherwise we believe it is a complete path. Use it as it is.
20749           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MAKE=$tool_specified" >&5
20750 $as_echo "$as_me: Will use user supplied tool MAKE=$tool_specified" >&6;}
20751           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAKE" >&5
20752 $as_echo_n "checking for MAKE... " >&6; }
20753           if test ! -x "$tool_specified"; then
20754             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20755 $as_echo "not found" >&6; }
20756             as_fn_error $? "User supplied tool MAKE=$tool_specified does not exist or is not executable" "$LINENO" 5
20757           fi
20758           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
20759 $as_echo "$tool_specified" >&6; }
20760         fi
20761       fi
20762     fi
20763 
20764     # If MAKE was set by user, verify the version
20765 
20766   MAKE_CANDIDATE=""$MAKE""
20767   DESCRIPTION="user supplied MAKE=$MAKE"
20768 
20769   # On Cygwin, we require a newer version of make than on other platforms
20770   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20771     MAKE_VERSION_EXPR="-e 4\."
20772     MAKE_REQUIRED_VERSION="4.0"
20773    else
20774     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
20775     MAKE_REQUIRED_VERSION="3.81"
20776   fi
20777 
20778   if test "x$MAKE_CANDIDATE" != x; then
20779     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
20780 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
20781     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
20782     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
20783     if test "x$IS_GNU_MAKE" = x; then
20784       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
20785 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
20786     else
20787       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
20788       if test "x$IS_MODERN_MAKE" = x; then
20789         { $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
20790 $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;}
20791       else
20792         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
20793           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20794             MAKE_EXPECTED_ENV='cygwin'
20795           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20796             MAKE_EXPECTED_ENV='msys'
20797           else
20798             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
20799           fi
20800           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
20801           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
20802         else
20803           # Not relevant for non-Windows
20804           IS_MAKE_CORRECT_ENV=true
20805         fi
20806         if test "x$IS_MAKE_CORRECT_ENV" = x; then
20807           { $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
20808 $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;}
20809         else
20810           FOUND_MAKE=$MAKE_CANDIDATE
20811 
20812   # Only process if variable expands to non-empty
20813 
20814   if test "x$FOUND_MAKE" != x; then
20815     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20816 
20817   # First separate the path from the arguments. This will split at the first
20818   # space.
20819   complete="$FOUND_MAKE"
20820   path="${complete%% *}"
20821   tmp="$complete EOL"
20822   arguments="${tmp#* }"
20823 
20824   # Input might be given as Windows format, start by converting to
20825   # unix format.
20826   new_path=`$CYGPATH -u "$path"`
20827 
20828   # Now try to locate executable using which
20829   new_path=`$WHICH "$new_path" 2> /dev/null`
20830   # bat and cmd files are not always considered executable in cygwin causing which
20831   # to not find them
20832   if test "x$new_path" = x \
20833       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20834       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20835     new_path=`$CYGPATH -u "$path"`
20836   fi
20837   if test "x$new_path" = x; then
20838     # Oops. Which didn't find the executable.
20839     # The splitting of arguments from the executable at a space might have been incorrect,
20840     # since paths with space are more likely in Windows. Give it another try with the whole
20841     # argument.
20842     path="$complete"
20843     arguments="EOL"
20844     new_path=`$CYGPATH -u "$path"`
20845     new_path=`$WHICH "$new_path" 2> /dev/null`
20846     # bat and cmd files are not always considered executable in cygwin causing which
20847     # to not find them
20848     if test "x$new_path" = x \
20849         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20850         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20851       new_path=`$CYGPATH -u "$path"`
20852     fi
20853     if test "x$new_path" = x; then
20854       # It's still not found. Now this is an unrecoverable error.
20855       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20856 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20857       has_space=`$ECHO "$complete" | $GREP " "`
20858       if test "x$has_space" != x; then
20859         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20860 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20861       fi
20862       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20863     fi
20864   fi
20865 
20866   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20867   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20868   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20869   # "foo.exe" is OK but "foo" is an error.
20870   #
20871   # This test is therefore slightly more accurate than "test -f" to check for file presence.
20872   # It is also a way to make sure we got the proper file name for the real test later on.
20873   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20874   if test "x$test_shortpath" = x; then
20875     # Short path failed, file does not exist as specified.
20876     # Try adding .exe or .cmd
20877     if test -f "${new_path}.exe"; then
20878       input_to_shortpath="${new_path}.exe"
20879     elif test -f "${new_path}.cmd"; then
20880       input_to_shortpath="${new_path}.cmd"
20881     else
20882       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
20883 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
20884       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
20885 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
20886       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20887     fi
20888   else
20889     input_to_shortpath="$new_path"
20890   fi
20891 
20892   # Call helper function which possibly converts this using DOS-style short mode.
20893   # If so, the updated path is stored in $new_path.
20894   new_path="$input_to_shortpath"
20895 
20896   input_path="$input_to_shortpath"
20897   # Check if we need to convert this using DOS-style short mode. If the path
20898   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20899   # take no chances and rewrite it.
20900   # Note: m4 eats our [], so we need to use [ and ] instead.
20901   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20902   if test "x$has_forbidden_chars" != x; then
20903     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20904     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20905     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20906     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20907       # Going to short mode and back again did indeed matter. Since short mode is
20908       # case insensitive, let's make it lowercase to improve readability.
20909       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20910       # Now convert it back to Unix-style (cygpath)
20911       input_path=`$CYGPATH -u "$shortmode_path"`
20912       new_path="$input_path"
20913     fi
20914   fi
20915 
20916   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20917   if test "x$test_cygdrive_prefix" = x; then
20918     # As a simple fix, exclude /usr/bin since it's not a real path.
20919     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
20920       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20921       # a path prefixed by /cygdrive for fixpath to work.
20922       new_path="$CYGWIN_ROOT_PATH$input_path"
20923     fi
20924   fi
20925 
20926   # remove trailing .exe if any
20927   new_path="${new_path/%.exe/}"
20928 
20929     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20930 
20931   # First separate the path from the arguments. This will split at the first
20932   # space.
20933   complete="$FOUND_MAKE"
20934   path="${complete%% *}"
20935   tmp="$complete EOL"
20936   arguments="${tmp#* }"
20937 
20938   # Input might be given as Windows format, start by converting to
20939   # unix format.
20940   new_path="$path"
20941 
20942   windows_path="$new_path"
20943   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20944     unix_path=`$CYGPATH -u "$windows_path"`
20945     new_path="$unix_path"
20946   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20947     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20948     new_path="$unix_path"
20949   fi
20950 
20951 
20952   # Now try to locate executable using which
20953   new_path=`$WHICH "$new_path" 2> /dev/null`
20954 
20955   if test "x$new_path" = x; then
20956     # Oops. Which didn't find the executable.
20957     # The splitting of arguments from the executable at a space might have been incorrect,
20958     # since paths with space are more likely in Windows. Give it another try with the whole
20959     # argument.
20960     path="$complete"
20961     arguments="EOL"
20962     new_path="$path"
20963 
20964   windows_path="$new_path"
20965   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20966     unix_path=`$CYGPATH -u "$windows_path"`
20967     new_path="$unix_path"
20968   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20969     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20970     new_path="$unix_path"
20971   fi
20972 
20973 
20974     new_path=`$WHICH "$new_path" 2> /dev/null`
20975     # bat and cmd files are not always considered executable in MSYS causing which
20976     # to not find them
20977     if test "x$new_path" = x \
20978         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20979         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20980       new_path="$path"
20981 
20982   windows_path="$new_path"
20983   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20984     unix_path=`$CYGPATH -u "$windows_path"`
20985     new_path="$unix_path"
20986   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20987     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20988     new_path="$unix_path"
20989   fi
20990 
20991     fi
20992 
20993     if test "x$new_path" = x; then
20994       # It's still not found. Now this is an unrecoverable error.
20995       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20996 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20997       has_space=`$ECHO "$complete" | $GREP " "`
20998       if test "x$has_space" != x; then
20999         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
21000 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
21001       fi
21002       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
21003     fi
21004   fi
21005 
21006   # Now new_path has a complete unix path to the binary
21007   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
21008     # Keep paths in /bin as-is, but remove trailing .exe if any
21009     new_path="${new_path/%.exe/}"
21010     # Do not save /bin paths to all_fixpath_prefixes!
21011   else
21012     # Not in mixed or Windows style, start by that.
21013     new_path=`cmd //c echo $new_path`
21014 
21015   input_path="$new_path"
21016   # Check if we need to convert this using DOS-style short mode. If the path
21017   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21018   # take no chances and rewrite it.
21019   # Note: m4 eats our [], so we need to use [ and ] instead.
21020   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21021   if test "x$has_forbidden_chars" != x; then
21022     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21023     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21024   fi
21025 
21026     # Output is in $new_path
21027 
21028   windows_path="$new_path"
21029   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21030     unix_path=`$CYGPATH -u "$windows_path"`
21031     new_path="$unix_path"
21032   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21033     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21034     new_path="$unix_path"
21035   fi
21036 
21037     # remove trailing .exe if any
21038     new_path="${new_path/%.exe/}"
21039 
21040     # Save the first 10 bytes of this path to the storage, so fixpath can work.
21041     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21042   fi
21043 
21044     else
21045       # We're on a unix platform. Hooray! :)
21046       # First separate the path from the arguments. This will split at the first
21047       # space.
21048       complete="$FOUND_MAKE"
21049       path="${complete%% *}"
21050       tmp="$complete EOL"
21051       arguments="${tmp#* }"
21052 
21053       # Cannot rely on the command "which" here since it doesn't always work.
21054       is_absolute_path=`$ECHO "$path" | $GREP ^/`
21055       if test -z "$is_absolute_path"; then
21056         # Path to executable is not absolute. Find it.
21057         IFS_save="$IFS"
21058         IFS=:
21059         for p in $PATH; do
21060           if test -f "$p/$path" && test -x "$p/$path"; then
21061             new_path="$p/$path"
21062             break
21063           fi
21064         done
21065         IFS="$IFS_save"
21066       else
21067         # This is an absolute path, we can use it without further modifications.
21068         new_path="$path"
21069       fi
21070 
21071       if test "x$new_path" = x; then
21072         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
21073 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
21074         has_space=`$ECHO "$complete" | $GREP " "`
21075         if test "x$has_space" != x; then
21076           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
21077 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
21078         fi
21079         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
21080       fi
21081     fi
21082 
21083     # Now join together the path and the arguments once again
21084     if test "x$arguments" != xEOL; then
21085       new_complete="$new_path ${arguments% *}"
21086     else
21087       new_complete="$new_path"
21088     fi
21089 
21090     if test "x$complete" != "x$new_complete"; then
21091       FOUND_MAKE="$new_complete"
21092       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
21093 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
21094     fi
21095   fi
21096 
21097         fi
21098       fi
21099     fi
21100   fi
21101 
21102     if test "x$FOUND_MAKE" = x; then
21103       as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make $MAKE_REQUIRED_VERSION or newer." "$LINENO" 5
21104     fi
21105 
21106   fi
21107 
21108 
21109   MAKE=$FOUND_MAKE
21110 
21111   { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5
21112 $as_echo "$as_me: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;}
21113 
21114 
21115   # Check if make supports the output sync option and if so, setup using it.
21116   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if make --output-sync is supported" >&5
21117 $as_echo_n "checking if make --output-sync is supported... " >&6; }
21118   if $MAKE --version -O > /dev/null 2>&1; then
21119     OUTPUT_SYNC_SUPPORTED=true
21120     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21121 $as_echo "yes" >&6; }
21122     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for output-sync value" >&5
21123 $as_echo_n "checking for output-sync value... " >&6; }
21124 
21125 # Check whether --with-output-sync was given.
21126 if test "${with_output_sync+set}" = set; then :
21127   withval=$with_output_sync; OUTPUT_SYNC=$with_output_sync
21128 fi
21129 
21130     if test "x$OUTPUT_SYNC" = "x"; then
21131       OUTPUT_SYNC=none
21132     fi
21133     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_SYNC" >&5
21134 $as_echo "$OUTPUT_SYNC" >&6; }
21135     if ! $MAKE --version -O$OUTPUT_SYNC > /dev/null 2>&1; then
21136       as_fn_error $? "Make did not the support the value $OUTPUT_SYNC as output sync type." "$LINENO" 5
21137     fi
21138   else
21139     OUTPUT_SYNC_SUPPORTED=false
21140     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21141 $as_echo "no" >&6; }
21142   fi
21143 
21144 
21145 
21146 
21147 
21148 
21149   # Test if find supports -delete
21150   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5
21151 $as_echo_n "checking if find supports -delete... " >&6; }
21152   FIND_DELETE="-delete"
21153 
21154   DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?)
21155 
21156   echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete
21157 
21158   TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1`
21159   if test -f $DELETEDIR/TestIfFindSupportsDelete; then
21160     # No, it does not.
21161     $RM $DELETEDIR/TestIfFindSupportsDelete
21162     if test "x$OPENJDK_TARGET_OS" = "xaix"; then
21163       # AIX 'find' is buggy if called with '-exec {} \+' and an empty file list
21164       FIND_DELETE="-print | $XARGS $RM"
21165     else
21166       FIND_DELETE="-exec $RM \{\} \+"
21167     fi
21168     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21169 $as_echo "no" >&6; }
21170   else
21171     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21172 $as_echo "yes" >&6; }
21173   fi
21174   $RMDIR $DELETEDIR
21175 
21176 
21177 
21178   # Test which kind of tar was found
21179   if test "x$($TAR --version | $GREP "GNU tar")" != "x"; then
21180     TAR_TYPE="gnu"
21181   elif test "x$($TAR --version | $GREP "bsdtar")" != "x"; then
21182     TAR_TYPE="bsd"
21183   elif test "x$($TAR -v | $GREP "bsdtar")" != "x"; then
21184     TAR_TYPE="bsd"
21185   elif test "x$OPENJDK_BUILD_OS" = "xsolaris"; then
21186     TAR_TYPE="solaris"
21187   fi
21188   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what type of tar was found" >&5
21189 $as_echo_n "checking what type of tar was found... " >&6; }
21190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR_TYPE" >&5
21191 $as_echo "$TAR_TYPE" >&6; }
21192 
21193   TAR_CREATE_FILE_PARAM=""
21194 
21195   if test "x$TAR_TYPE" = "xgnu"; then
21196     TAR_INCLUDE_PARAM="T"
21197     TAR_SUPPORTS_TRANSFORM="true"
21198     if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
21199       # When using gnu tar for Solaris targets, need to use compatibility mode
21200       TAR_CREATE_EXTRA_PARAM="--format=ustar"
21201     fi
21202   else
21203     TAR_INCLUDE_PARAM="I"
21204     TAR_SUPPORTS_TRANSFORM="false"
21205   fi
21206 
21207 
21208 
21209 
21210 
21211 
21212   # Test that grep supports -Fx with a list of pattern which includes null pattern.
21213   # This is a problem for the grep resident on AIX.
21214   { $as_echo "$as_me:${as_lineno-$LINENO}: checking that grep ($GREP) -Fx handles empty lines in the pattern list correctly" >&5
21215 $as_echo_n "checking that grep ($GREP) -Fx handles empty lines in the pattern list correctly... " >&6; }
21216   # Multiple subsequent spaces..
21217   STACK_SPACES='aaa   bbb   ccc'
21218   # ..converted to subsequent newlines, causes STACK_LIST to be a list with some empty
21219   # patterns in it.
21220   STACK_LIST=${STACK_SPACES// /$'\n'}
21221   NEEDLE_SPACES='ccc bbb aaa'
21222   NEEDLE_LIST=${NEEDLE_SPACES// /$'\n'}
21223   RESULT="$($GREP -Fvx "$STACK_LIST" <<< "$NEEDLE_LIST")"
21224   if test "x$RESULT" == "x"; then
21225     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21226 $as_echo "yes" >&6; }
21227   else
21228     if test "x$OPENJDK_TARGET_OS" = "xaix"; then
21229       ADDINFO="Please make sure you use GNU grep, usually found at /opt/freeware/bin."
21230     fi
21231     as_fn_error $? "grep does not handle -Fx correctly. ${ADDINFO}" "$LINENO" 5
21232   fi
21233 
21234 
21235   # These tools might not be installed by default,
21236   # need hint on how to install them.
21237 
21238 
21239 
21240   # Publish this variable in the help.
21241 
21242 
21243   if [ -z "${UNZIP+x}" ]; then
21244     # The variable is not set by user, try to locate tool using the code snippet
21245     for ac_prog in unzip
21246 do
21247   # Extract the first word of "$ac_prog", so it can be a program name with args.
21248 set dummy $ac_prog; ac_word=$2
21249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21250 $as_echo_n "checking for $ac_word... " >&6; }
21251 if ${ac_cv_path_UNZIP+:} false; then :
21252   $as_echo_n "(cached) " >&6
21253 else
21254   case $UNZIP in
21255   [\\/]* | ?:[\\/]*)
21256   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
21257   ;;
21258   *)
21259   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21260 for as_dir in $PATH
21261 do
21262   IFS=$as_save_IFS
21263   test -z "$as_dir" && as_dir=.
21264     for ac_exec_ext in '' $ac_executable_extensions; do
21265   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21266     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
21267     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21268     break 2
21269   fi
21270 done
21271   done
21272 IFS=$as_save_IFS
21273 
21274   ;;
21275 esac
21276 fi
21277 UNZIP=$ac_cv_path_UNZIP
21278 if test -n "$UNZIP"; then
21279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
21280 $as_echo "$UNZIP" >&6; }
21281 else
21282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21283 $as_echo "no" >&6; }
21284 fi
21285 
21286 
21287   test -n "$UNZIP" && break
21288 done
21289 
21290   else
21291     # The variable is set, but is it from the command line or the environment?
21292 
21293     # Try to remove the string !UNZIP! from our list.
21294     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/}
21295     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21296       # If it failed, the variable was not from the command line. Ignore it,
21297       # but warn the user (except for BASH, which is always set by the calling BASH).
21298       if test "xUNZIP" != xBASH; then
21299         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5
21300 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;}
21301       fi
21302       # Try to locate tool using the code snippet
21303       for ac_prog in unzip
21304 do
21305   # Extract the first word of "$ac_prog", so it can be a program name with args.
21306 set dummy $ac_prog; ac_word=$2
21307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21308 $as_echo_n "checking for $ac_word... " >&6; }
21309 if ${ac_cv_path_UNZIP+:} false; then :
21310   $as_echo_n "(cached) " >&6
21311 else
21312   case $UNZIP in
21313   [\\/]* | ?:[\\/]*)
21314   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
21315   ;;
21316   *)
21317   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21318 for as_dir in $PATH
21319 do
21320   IFS=$as_save_IFS
21321   test -z "$as_dir" && as_dir=.
21322     for ac_exec_ext in '' $ac_executable_extensions; do
21323   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21324     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
21325     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21326     break 2
21327   fi
21328 done
21329   done
21330 IFS=$as_save_IFS
21331 
21332   ;;
21333 esac
21334 fi
21335 UNZIP=$ac_cv_path_UNZIP
21336 if test -n "$UNZIP"; then
21337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
21338 $as_echo "$UNZIP" >&6; }
21339 else
21340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21341 $as_echo "no" >&6; }
21342 fi
21343 
21344 
21345   test -n "$UNZIP" && break
21346 done
21347 
21348     else
21349       # If it succeeded, then it was overridden by the user. We will use it
21350       # for the tool.
21351 
21352       # First remove it from the list of overridden variables, so we can test
21353       # for unknown variables in the end.
21354       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21355 
21356       # Check if we try to supply an empty value
21357       if test "x$UNZIP" = x; then
21358         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNZIP= (no value)" >&5
21359 $as_echo "$as_me: Setting user supplied tool UNZIP= (no value)" >&6;}
21360         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5
21361 $as_echo_n "checking for UNZIP... " >&6; }
21362         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21363 $as_echo "disabled" >&6; }
21364       else
21365         # Check if the provided tool contains a complete path.
21366         tool_specified="$UNZIP"
21367         tool_basename="${tool_specified##*/}"
21368         if test "x$tool_basename" = "x$tool_specified"; then
21369           # A command without a complete path is provided, search $PATH.
21370           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5
21371 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;}
21372           # Extract the first word of "$tool_basename", so it can be a program name with args.
21373 set dummy $tool_basename; ac_word=$2
21374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21375 $as_echo_n "checking for $ac_word... " >&6; }
21376 if ${ac_cv_path_UNZIP+:} false; then :
21377   $as_echo_n "(cached) " >&6
21378 else
21379   case $UNZIP in
21380   [\\/]* | ?:[\\/]*)
21381   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
21382   ;;
21383   *)
21384   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21385 for as_dir in $PATH
21386 do
21387   IFS=$as_save_IFS
21388   test -z "$as_dir" && as_dir=.
21389     for ac_exec_ext in '' $ac_executable_extensions; do
21390   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21391     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
21392     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21393     break 2
21394   fi
21395 done
21396   done
21397 IFS=$as_save_IFS
21398 
21399   ;;
21400 esac
21401 fi
21402 UNZIP=$ac_cv_path_UNZIP
21403 if test -n "$UNZIP"; then
21404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
21405 $as_echo "$UNZIP" >&6; }
21406 else
21407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21408 $as_echo "no" >&6; }
21409 fi
21410 
21411 
21412           if test "x$UNZIP" = x; then
21413             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21414           fi
21415         else
21416           # Otherwise we believe it is a complete path. Use it as it is.
21417           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5
21418 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;}
21419           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5
21420 $as_echo_n "checking for UNZIP... " >&6; }
21421           if test ! -x "$tool_specified"; then
21422             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21423 $as_echo "not found" >&6; }
21424             as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
21425           fi
21426           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21427 $as_echo "$tool_specified" >&6; }
21428         fi
21429       fi
21430     fi
21431 
21432   fi
21433 
21434 
21435 
21436   if test "x$UNZIP" = x; then
21437     as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5
21438   fi
21439 
21440 
21441   # Since zip uses "ZIP" as a environment variable for passing options, we need
21442   # to name our variable differently, hence ZIPEXE.
21443 
21444 
21445 
21446   # Publish this variable in the help.
21447 
21448 
21449   if [ -z "${ZIPEXE+x}" ]; then
21450     # The variable is not set by user, try to locate tool using the code snippet
21451     for ac_prog in zip
21452 do
21453   # Extract the first word of "$ac_prog", so it can be a program name with args.
21454 set dummy $ac_prog; ac_word=$2
21455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21456 $as_echo_n "checking for $ac_word... " >&6; }
21457 if ${ac_cv_path_ZIPEXE+:} false; then :
21458   $as_echo_n "(cached) " >&6
21459 else
21460   case $ZIPEXE in
21461   [\\/]* | ?:[\\/]*)
21462   ac_cv_path_ZIPEXE="$ZIPEXE" # Let the user override the test with a path.
21463   ;;
21464   *)
21465   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21466 for as_dir in $PATH
21467 do
21468   IFS=$as_save_IFS
21469   test -z "$as_dir" && as_dir=.
21470     for ac_exec_ext in '' $ac_executable_extensions; do
21471   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21472     ac_cv_path_ZIPEXE="$as_dir/$ac_word$ac_exec_ext"
21473     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21474     break 2
21475   fi
21476 done
21477   done
21478 IFS=$as_save_IFS
21479 
21480   ;;
21481 esac
21482 fi
21483 ZIPEXE=$ac_cv_path_ZIPEXE
21484 if test -n "$ZIPEXE"; then
21485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIPEXE" >&5
21486 $as_echo "$ZIPEXE" >&6; }
21487 else
21488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21489 $as_echo "no" >&6; }
21490 fi
21491 
21492 
21493   test -n "$ZIPEXE" && break
21494 done
21495 
21496   else
21497     # The variable is set, but is it from the command line or the environment?
21498 
21499     # Try to remove the string !ZIPEXE! from our list.
21500     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIPEXE!/}
21501     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21502       # If it failed, the variable was not from the command line. Ignore it,
21503       # but warn the user (except for BASH, which is always set by the calling BASH).
21504       if test "xZIPEXE" != xBASH; then
21505         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIPEXE from the environment. Use command line variables instead." >&5
21506 $as_echo "$as_me: WARNING: Ignoring value of ZIPEXE from the environment. Use command line variables instead." >&2;}
21507       fi
21508       # Try to locate tool using the code snippet
21509       for ac_prog in zip
21510 do
21511   # Extract the first word of "$ac_prog", so it can be a program name with args.
21512 set dummy $ac_prog; ac_word=$2
21513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21514 $as_echo_n "checking for $ac_word... " >&6; }
21515 if ${ac_cv_path_ZIPEXE+:} false; then :
21516   $as_echo_n "(cached) " >&6
21517 else
21518   case $ZIPEXE in
21519   [\\/]* | ?:[\\/]*)
21520   ac_cv_path_ZIPEXE="$ZIPEXE" # Let the user override the test with a path.
21521   ;;
21522   *)
21523   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21524 for as_dir in $PATH
21525 do
21526   IFS=$as_save_IFS
21527   test -z "$as_dir" && as_dir=.
21528     for ac_exec_ext in '' $ac_executable_extensions; do
21529   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21530     ac_cv_path_ZIPEXE="$as_dir/$ac_word$ac_exec_ext"
21531     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21532     break 2
21533   fi
21534 done
21535   done
21536 IFS=$as_save_IFS
21537 
21538   ;;
21539 esac
21540 fi
21541 ZIPEXE=$ac_cv_path_ZIPEXE
21542 if test -n "$ZIPEXE"; then
21543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIPEXE" >&5
21544 $as_echo "$ZIPEXE" >&6; }
21545 else
21546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21547 $as_echo "no" >&6; }
21548 fi
21549 
21550 
21551   test -n "$ZIPEXE" && break
21552 done
21553 
21554     else
21555       # If it succeeded, then it was overridden by the user. We will use it
21556       # for the tool.
21557 
21558       # First remove it from the list of overridden variables, so we can test
21559       # for unknown variables in the end.
21560       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21561 
21562       # Check if we try to supply an empty value
21563       if test "x$ZIPEXE" = x; then
21564         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ZIPEXE= (no value)" >&5
21565 $as_echo "$as_me: Setting user supplied tool ZIPEXE= (no value)" >&6;}
21566         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIPEXE" >&5
21567 $as_echo_n "checking for ZIPEXE... " >&6; }
21568         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21569 $as_echo "disabled" >&6; }
21570       else
21571         # Check if the provided tool contains a complete path.
21572         tool_specified="$ZIPEXE"
21573         tool_basename="${tool_specified##*/}"
21574         if test "x$tool_basename" = "x$tool_specified"; then
21575           # A command without a complete path is provided, search $PATH.
21576           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIPEXE=$tool_basename" >&5
21577 $as_echo "$as_me: Will search for user supplied tool ZIPEXE=$tool_basename" >&6;}
21578           # Extract the first word of "$tool_basename", so it can be a program name with args.
21579 set dummy $tool_basename; ac_word=$2
21580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21581 $as_echo_n "checking for $ac_word... " >&6; }
21582 if ${ac_cv_path_ZIPEXE+:} false; then :
21583   $as_echo_n "(cached) " >&6
21584 else
21585   case $ZIPEXE in
21586   [\\/]* | ?:[\\/]*)
21587   ac_cv_path_ZIPEXE="$ZIPEXE" # Let the user override the test with a path.
21588   ;;
21589   *)
21590   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21591 for as_dir in $PATH
21592 do
21593   IFS=$as_save_IFS
21594   test -z "$as_dir" && as_dir=.
21595     for ac_exec_ext in '' $ac_executable_extensions; do
21596   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21597     ac_cv_path_ZIPEXE="$as_dir/$ac_word$ac_exec_ext"
21598     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21599     break 2
21600   fi
21601 done
21602   done
21603 IFS=$as_save_IFS
21604 
21605   ;;
21606 esac
21607 fi
21608 ZIPEXE=$ac_cv_path_ZIPEXE
21609 if test -n "$ZIPEXE"; then
21610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIPEXE" >&5
21611 $as_echo "$ZIPEXE" >&6; }
21612 else
21613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21614 $as_echo "no" >&6; }
21615 fi
21616 
21617 
21618           if test "x$ZIPEXE" = x; then
21619             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21620           fi
21621         else
21622           # Otherwise we believe it is a complete path. Use it as it is.
21623           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIPEXE=$tool_specified" >&5
21624 $as_echo "$as_me: Will use user supplied tool ZIPEXE=$tool_specified" >&6;}
21625           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIPEXE" >&5
21626 $as_echo_n "checking for ZIPEXE... " >&6; }
21627           if test ! -x "$tool_specified"; then
21628             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21629 $as_echo "not found" >&6; }
21630             as_fn_error $? "User supplied tool ZIPEXE=$tool_specified does not exist or is not executable" "$LINENO" 5
21631           fi
21632           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21633 $as_echo "$tool_specified" >&6; }
21634         fi
21635       fi
21636     fi
21637 
21638   fi
21639 
21640 
21641 
21642   if test "x$ZIPEXE" = x; then
21643     as_fn_error $? "Could not find required tool for ZIPEXE" "$LINENO" 5
21644   fi
21645 
21646 
21647 
21648   # Non-required basic tools
21649 
21650 
21651 
21652   # Publish this variable in the help.
21653 
21654 
21655   if [ -z "${LDD+x}" ]; then
21656     # The variable is not set by user, try to locate tool using the code snippet
21657     for ac_prog in ldd
21658 do
21659   # Extract the first word of "$ac_prog", so it can be a program name with args.
21660 set dummy $ac_prog; ac_word=$2
21661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21662 $as_echo_n "checking for $ac_word... " >&6; }
21663 if ${ac_cv_path_LDD+:} false; then :
21664   $as_echo_n "(cached) " >&6
21665 else
21666   case $LDD in
21667   [\\/]* | ?:[\\/]*)
21668   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
21669   ;;
21670   *)
21671   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21672 for as_dir in $PATH
21673 do
21674   IFS=$as_save_IFS
21675   test -z "$as_dir" && as_dir=.
21676     for ac_exec_ext in '' $ac_executable_extensions; do
21677   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21678     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
21679     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21680     break 2
21681   fi
21682 done
21683   done
21684 IFS=$as_save_IFS
21685 
21686   ;;
21687 esac
21688 fi
21689 LDD=$ac_cv_path_LDD
21690 if test -n "$LDD"; then
21691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
21692 $as_echo "$LDD" >&6; }
21693 else
21694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21695 $as_echo "no" >&6; }
21696 fi
21697 
21698 
21699   test -n "$LDD" && break
21700 done
21701 
21702   else
21703     # The variable is set, but is it from the command line or the environment?
21704 
21705     # Try to remove the string !LDD! from our list.
21706     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/}
21707     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21708       # If it failed, the variable was not from the command line. Ignore it,
21709       # but warn the user (except for BASH, which is always set by the calling BASH).
21710       if test "xLDD" != xBASH; then
21711         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5
21712 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;}
21713       fi
21714       # Try to locate tool using the code snippet
21715       for ac_prog in ldd
21716 do
21717   # Extract the first word of "$ac_prog", so it can be a program name with args.
21718 set dummy $ac_prog; ac_word=$2
21719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21720 $as_echo_n "checking for $ac_word... " >&6; }
21721 if ${ac_cv_path_LDD+:} false; then :
21722   $as_echo_n "(cached) " >&6
21723 else
21724   case $LDD in
21725   [\\/]* | ?:[\\/]*)
21726   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
21727   ;;
21728   *)
21729   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21730 for as_dir in $PATH
21731 do
21732   IFS=$as_save_IFS
21733   test -z "$as_dir" && as_dir=.
21734     for ac_exec_ext in '' $ac_executable_extensions; do
21735   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21736     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
21737     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21738     break 2
21739   fi
21740 done
21741   done
21742 IFS=$as_save_IFS
21743 
21744   ;;
21745 esac
21746 fi
21747 LDD=$ac_cv_path_LDD
21748 if test -n "$LDD"; then
21749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
21750 $as_echo "$LDD" >&6; }
21751 else
21752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21753 $as_echo "no" >&6; }
21754 fi
21755 
21756 
21757   test -n "$LDD" && break
21758 done
21759 
21760     else
21761       # If it succeeded, then it was overridden by the user. We will use it
21762       # for the tool.
21763 
21764       # First remove it from the list of overridden variables, so we can test
21765       # for unknown variables in the end.
21766       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21767 
21768       # Check if we try to supply an empty value
21769       if test "x$LDD" = x; then
21770         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LDD= (no value)" >&5
21771 $as_echo "$as_me: Setting user supplied tool LDD= (no value)" >&6;}
21772         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5
21773 $as_echo_n "checking for LDD... " >&6; }
21774         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21775 $as_echo "disabled" >&6; }
21776       else
21777         # Check if the provided tool contains a complete path.
21778         tool_specified="$LDD"
21779         tool_basename="${tool_specified##*/}"
21780         if test "x$tool_basename" = "x$tool_specified"; then
21781           # A command without a complete path is provided, search $PATH.
21782           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5
21783 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;}
21784           # Extract the first word of "$tool_basename", so it can be a program name with args.
21785 set dummy $tool_basename; ac_word=$2
21786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21787 $as_echo_n "checking for $ac_word... " >&6; }
21788 if ${ac_cv_path_LDD+:} false; then :
21789   $as_echo_n "(cached) " >&6
21790 else
21791   case $LDD in
21792   [\\/]* | ?:[\\/]*)
21793   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
21794   ;;
21795   *)
21796   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21797 for as_dir in $PATH
21798 do
21799   IFS=$as_save_IFS
21800   test -z "$as_dir" && as_dir=.
21801     for ac_exec_ext in '' $ac_executable_extensions; do
21802   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21803     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
21804     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21805     break 2
21806   fi
21807 done
21808   done
21809 IFS=$as_save_IFS
21810 
21811   ;;
21812 esac
21813 fi
21814 LDD=$ac_cv_path_LDD
21815 if test -n "$LDD"; then
21816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
21817 $as_echo "$LDD" >&6; }
21818 else
21819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21820 $as_echo "no" >&6; }
21821 fi
21822 
21823 
21824           if test "x$LDD" = x; then
21825             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21826           fi
21827         else
21828           # Otherwise we believe it is a complete path. Use it as it is.
21829           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5
21830 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;}
21831           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5
21832 $as_echo_n "checking for LDD... " >&6; }
21833           if test ! -x "$tool_specified"; then
21834             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21835 $as_echo "not found" >&6; }
21836             as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5
21837           fi
21838           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21839 $as_echo "$tool_specified" >&6; }
21840         fi
21841       fi
21842     fi
21843 
21844   fi
21845 
21846 
21847   if test "x$LDD" = "x"; then
21848     # List shared lib dependencies is used for
21849     # debug output and checking for forbidden dependencies.
21850     # We can build without it.
21851     LDD="true"
21852   fi
21853 
21854 
21855   # Publish this variable in the help.
21856 
21857 
21858   if [ -z "${OTOOL+x}" ]; then
21859     # The variable is not set by user, try to locate tool using the code snippet
21860     for ac_prog in otool
21861 do
21862   # Extract the first word of "$ac_prog", so it can be a program name with args.
21863 set dummy $ac_prog; ac_word=$2
21864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21865 $as_echo_n "checking for $ac_word... " >&6; }
21866 if ${ac_cv_path_OTOOL+:} false; then :
21867   $as_echo_n "(cached) " >&6
21868 else
21869   case $OTOOL in
21870   [\\/]* | ?:[\\/]*)
21871   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
21872   ;;
21873   *)
21874   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21875 for as_dir in $PATH
21876 do
21877   IFS=$as_save_IFS
21878   test -z "$as_dir" && as_dir=.
21879     for ac_exec_ext in '' $ac_executable_extensions; do
21880   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21881     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
21882     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21883     break 2
21884   fi
21885 done
21886   done
21887 IFS=$as_save_IFS
21888 
21889   ;;
21890 esac
21891 fi
21892 OTOOL=$ac_cv_path_OTOOL
21893 if test -n "$OTOOL"; then
21894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
21895 $as_echo "$OTOOL" >&6; }
21896 else
21897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21898 $as_echo "no" >&6; }
21899 fi
21900 
21901 
21902   test -n "$OTOOL" && break
21903 done
21904 
21905   else
21906     # The variable is set, but is it from the command line or the environment?
21907 
21908     # Try to remove the string !OTOOL! from our list.
21909     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OTOOL!/}
21910     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21911       # If it failed, the variable was not from the command line. Ignore it,
21912       # but warn the user (except for BASH, which is always set by the calling BASH).
21913       if test "xOTOOL" != xBASH; then
21914         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&5
21915 $as_echo "$as_me: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&2;}
21916       fi
21917       # Try to locate tool using the code snippet
21918       for ac_prog in otool
21919 do
21920   # Extract the first word of "$ac_prog", so it can be a program name with args.
21921 set dummy $ac_prog; ac_word=$2
21922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21923 $as_echo_n "checking for $ac_word... " >&6; }
21924 if ${ac_cv_path_OTOOL+:} false; then :
21925   $as_echo_n "(cached) " >&6
21926 else
21927   case $OTOOL in
21928   [\\/]* | ?:[\\/]*)
21929   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
21930   ;;
21931   *)
21932   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21933 for as_dir in $PATH
21934 do
21935   IFS=$as_save_IFS
21936   test -z "$as_dir" && as_dir=.
21937     for ac_exec_ext in '' $ac_executable_extensions; do
21938   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21939     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
21940     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21941     break 2
21942   fi
21943 done
21944   done
21945 IFS=$as_save_IFS
21946 
21947   ;;
21948 esac
21949 fi
21950 OTOOL=$ac_cv_path_OTOOL
21951 if test -n "$OTOOL"; then
21952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
21953 $as_echo "$OTOOL" >&6; }
21954 else
21955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21956 $as_echo "no" >&6; }
21957 fi
21958 
21959 
21960   test -n "$OTOOL" && break
21961 done
21962 
21963     else
21964       # If it succeeded, then it was overridden by the user. We will use it
21965       # for the tool.
21966 
21967       # First remove it from the list of overridden variables, so we can test
21968       # for unknown variables in the end.
21969       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21970 
21971       # Check if we try to supply an empty value
21972       if test "x$OTOOL" = x; then
21973         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool OTOOL= (no value)" >&5
21974 $as_echo "$as_me: Setting user supplied tool OTOOL= (no value)" >&6;}
21975         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5
21976 $as_echo_n "checking for OTOOL... " >&6; }
21977         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21978 $as_echo "disabled" >&6; }
21979       else
21980         # Check if the provided tool contains a complete path.
21981         tool_specified="$OTOOL"
21982         tool_basename="${tool_specified##*/}"
21983         if test "x$tool_basename" = "x$tool_specified"; then
21984           # A command without a complete path is provided, search $PATH.
21985           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OTOOL=$tool_basename" >&5
21986 $as_echo "$as_me: Will search for user supplied tool OTOOL=$tool_basename" >&6;}
21987           # Extract the first word of "$tool_basename", so it can be a program name with args.
21988 set dummy $tool_basename; ac_word=$2
21989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21990 $as_echo_n "checking for $ac_word... " >&6; }
21991 if ${ac_cv_path_OTOOL+:} false; then :
21992   $as_echo_n "(cached) " >&6
21993 else
21994   case $OTOOL in
21995   [\\/]* | ?:[\\/]*)
21996   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
21997   ;;
21998   *)
21999   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22000 for as_dir in $PATH
22001 do
22002   IFS=$as_save_IFS
22003   test -z "$as_dir" && as_dir=.
22004     for ac_exec_ext in '' $ac_executable_extensions; do
22005   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22006     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
22007     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22008     break 2
22009   fi
22010 done
22011   done
22012 IFS=$as_save_IFS
22013 
22014   ;;
22015 esac
22016 fi
22017 OTOOL=$ac_cv_path_OTOOL
22018 if test -n "$OTOOL"; then
22019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
22020 $as_echo "$OTOOL" >&6; }
22021 else
22022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22023 $as_echo "no" >&6; }
22024 fi
22025 
22026 
22027           if test "x$OTOOL" = x; then
22028             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22029           fi
22030         else
22031           # Otherwise we believe it is a complete path. Use it as it is.
22032           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OTOOL=$tool_specified" >&5
22033 $as_echo "$as_me: Will use user supplied tool OTOOL=$tool_specified" >&6;}
22034           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5
22035 $as_echo_n "checking for OTOOL... " >&6; }
22036           if test ! -x "$tool_specified"; then
22037             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22038 $as_echo "not found" >&6; }
22039             as_fn_error $? "User supplied tool OTOOL=$tool_specified does not exist or is not executable" "$LINENO" 5
22040           fi
22041           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22042 $as_echo "$tool_specified" >&6; }
22043         fi
22044       fi
22045     fi
22046 
22047   fi
22048 
22049 
22050   if test "x$OTOOL" = "x"; then
22051     OTOOL="true"
22052   fi
22053 
22054 
22055   # Publish this variable in the help.
22056 
22057 
22058   if [ -z "${READELF+x}" ]; then
22059     # The variable is not set by user, try to locate tool using the code snippet
22060     for ac_prog in greadelf readelf
22061 do
22062   # Extract the first word of "$ac_prog", so it can be a program name with args.
22063 set dummy $ac_prog; ac_word=$2
22064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22065 $as_echo_n "checking for $ac_word... " >&6; }
22066 if ${ac_cv_path_READELF+:} false; then :
22067   $as_echo_n "(cached) " >&6
22068 else
22069   case $READELF in
22070   [\\/]* | ?:[\\/]*)
22071   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
22072   ;;
22073   *)
22074   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22075 for as_dir in $PATH
22076 do
22077   IFS=$as_save_IFS
22078   test -z "$as_dir" && as_dir=.
22079     for ac_exec_ext in '' $ac_executable_extensions; do
22080   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22081     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
22082     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22083     break 2
22084   fi
22085 done
22086   done
22087 IFS=$as_save_IFS
22088 
22089   ;;
22090 esac
22091 fi
22092 READELF=$ac_cv_path_READELF
22093 if test -n "$READELF"; then
22094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
22095 $as_echo "$READELF" >&6; }
22096 else
22097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22098 $as_echo "no" >&6; }
22099 fi
22100 
22101 
22102   test -n "$READELF" && break
22103 done
22104 
22105   else
22106     # The variable is set, but is it from the command line or the environment?
22107 
22108     # Try to remove the string !READELF! from our list.
22109     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/}
22110     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22111       # If it failed, the variable was not from the command line. Ignore it,
22112       # but warn the user (except for BASH, which is always set by the calling BASH).
22113       if test "xREADELF" != xBASH; then
22114         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5
22115 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;}
22116       fi
22117       # Try to locate tool using the code snippet
22118       for ac_prog in greadelf readelf
22119 do
22120   # Extract the first word of "$ac_prog", so it can be a program name with args.
22121 set dummy $ac_prog; ac_word=$2
22122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22123 $as_echo_n "checking for $ac_word... " >&6; }
22124 if ${ac_cv_path_READELF+:} false; then :
22125   $as_echo_n "(cached) " >&6
22126 else
22127   case $READELF in
22128   [\\/]* | ?:[\\/]*)
22129   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
22130   ;;
22131   *)
22132   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22133 for as_dir in $PATH
22134 do
22135   IFS=$as_save_IFS
22136   test -z "$as_dir" && as_dir=.
22137     for ac_exec_ext in '' $ac_executable_extensions; do
22138   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22139     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
22140     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22141     break 2
22142   fi
22143 done
22144   done
22145 IFS=$as_save_IFS
22146 
22147   ;;
22148 esac
22149 fi
22150 READELF=$ac_cv_path_READELF
22151 if test -n "$READELF"; then
22152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
22153 $as_echo "$READELF" >&6; }
22154 else
22155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22156 $as_echo "no" >&6; }
22157 fi
22158 
22159 
22160   test -n "$READELF" && break
22161 done
22162 
22163     else
22164       # If it succeeded, then it was overridden by the user. We will use it
22165       # for the tool.
22166 
22167       # First remove it from the list of overridden variables, so we can test
22168       # for unknown variables in the end.
22169       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22170 
22171       # Check if we try to supply an empty value
22172       if test "x$READELF" = x; then
22173         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool READELF= (no value)" >&5
22174 $as_echo "$as_me: Setting user supplied tool READELF= (no value)" >&6;}
22175         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5
22176 $as_echo_n "checking for READELF... " >&6; }
22177         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22178 $as_echo "disabled" >&6; }
22179       else
22180         # Check if the provided tool contains a complete path.
22181         tool_specified="$READELF"
22182         tool_basename="${tool_specified##*/}"
22183         if test "x$tool_basename" = "x$tool_specified"; then
22184           # A command without a complete path is provided, search $PATH.
22185           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5
22186 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;}
22187           # Extract the first word of "$tool_basename", so it can be a program name with args.
22188 set dummy $tool_basename; ac_word=$2
22189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22190 $as_echo_n "checking for $ac_word... " >&6; }
22191 if ${ac_cv_path_READELF+:} false; then :
22192   $as_echo_n "(cached) " >&6
22193 else
22194   case $READELF in
22195   [\\/]* | ?:[\\/]*)
22196   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
22197   ;;
22198   *)
22199   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22200 for as_dir in $PATH
22201 do
22202   IFS=$as_save_IFS
22203   test -z "$as_dir" && as_dir=.
22204     for ac_exec_ext in '' $ac_executable_extensions; do
22205   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22206     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
22207     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22208     break 2
22209   fi
22210 done
22211   done
22212 IFS=$as_save_IFS
22213 
22214   ;;
22215 esac
22216 fi
22217 READELF=$ac_cv_path_READELF
22218 if test -n "$READELF"; then
22219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
22220 $as_echo "$READELF" >&6; }
22221 else
22222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22223 $as_echo "no" >&6; }
22224 fi
22225 
22226 
22227           if test "x$READELF" = x; then
22228             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22229           fi
22230         else
22231           # Otherwise we believe it is a complete path. Use it as it is.
22232           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5
22233 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;}
22234           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5
22235 $as_echo_n "checking for READELF... " >&6; }
22236           if test ! -x "$tool_specified"; then
22237             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22238 $as_echo "not found" >&6; }
22239             as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5
22240           fi
22241           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22242 $as_echo "$tool_specified" >&6; }
22243         fi
22244       fi
22245     fi
22246 
22247   fi
22248 
22249 
22250 
22251 
22252   # Publish this variable in the help.
22253 
22254 
22255   if [ -z "${HG+x}" ]; then
22256     # The variable is not set by user, try to locate tool using the code snippet
22257     for ac_prog in hg
22258 do
22259   # Extract the first word of "$ac_prog", so it can be a program name with args.
22260 set dummy $ac_prog; ac_word=$2
22261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22262 $as_echo_n "checking for $ac_word... " >&6; }
22263 if ${ac_cv_path_HG+:} false; then :
22264   $as_echo_n "(cached) " >&6
22265 else
22266   case $HG in
22267   [\\/]* | ?:[\\/]*)
22268   ac_cv_path_HG="$HG" # Let the user override the test with a path.
22269   ;;
22270   *)
22271   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22272 for as_dir in $PATH
22273 do
22274   IFS=$as_save_IFS
22275   test -z "$as_dir" && as_dir=.
22276     for ac_exec_ext in '' $ac_executable_extensions; do
22277   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22278     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
22279     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22280     break 2
22281   fi
22282 done
22283   done
22284 IFS=$as_save_IFS
22285 
22286   ;;
22287 esac
22288 fi
22289 HG=$ac_cv_path_HG
22290 if test -n "$HG"; then
22291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
22292 $as_echo "$HG" >&6; }
22293 else
22294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22295 $as_echo "no" >&6; }
22296 fi
22297 
22298 
22299   test -n "$HG" && break
22300 done
22301 
22302   else
22303     # The variable is set, but is it from the command line or the environment?
22304 
22305     # Try to remove the string !HG! from our list.
22306     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/}
22307     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22308       # If it failed, the variable was not from the command line. Ignore it,
22309       # but warn the user (except for BASH, which is always set by the calling BASH).
22310       if test "xHG" != xBASH; then
22311         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5
22312 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;}
22313       fi
22314       # Try to locate tool using the code snippet
22315       for ac_prog in hg
22316 do
22317   # Extract the first word of "$ac_prog", so it can be a program name with args.
22318 set dummy $ac_prog; ac_word=$2
22319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22320 $as_echo_n "checking for $ac_word... " >&6; }
22321 if ${ac_cv_path_HG+:} false; then :
22322   $as_echo_n "(cached) " >&6
22323 else
22324   case $HG in
22325   [\\/]* | ?:[\\/]*)
22326   ac_cv_path_HG="$HG" # Let the user override the test with a path.
22327   ;;
22328   *)
22329   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22330 for as_dir in $PATH
22331 do
22332   IFS=$as_save_IFS
22333   test -z "$as_dir" && as_dir=.
22334     for ac_exec_ext in '' $ac_executable_extensions; do
22335   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22336     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
22337     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22338     break 2
22339   fi
22340 done
22341   done
22342 IFS=$as_save_IFS
22343 
22344   ;;
22345 esac
22346 fi
22347 HG=$ac_cv_path_HG
22348 if test -n "$HG"; then
22349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
22350 $as_echo "$HG" >&6; }
22351 else
22352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22353 $as_echo "no" >&6; }
22354 fi
22355 
22356 
22357   test -n "$HG" && break
22358 done
22359 
22360     else
22361       # If it succeeded, then it was overridden by the user. We will use it
22362       # for the tool.
22363 
22364       # First remove it from the list of overridden variables, so we can test
22365       # for unknown variables in the end.
22366       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22367 
22368       # Check if we try to supply an empty value
22369       if test "x$HG" = x; then
22370         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool HG= (no value)" >&5
22371 $as_echo "$as_me: Setting user supplied tool HG= (no value)" >&6;}
22372         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5
22373 $as_echo_n "checking for HG... " >&6; }
22374         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22375 $as_echo "disabled" >&6; }
22376       else
22377         # Check if the provided tool contains a complete path.
22378         tool_specified="$HG"
22379         tool_basename="${tool_specified##*/}"
22380         if test "x$tool_basename" = "x$tool_specified"; then
22381           # A command without a complete path is provided, search $PATH.
22382           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5
22383 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;}
22384           # Extract the first word of "$tool_basename", so it can be a program name with args.
22385 set dummy $tool_basename; ac_word=$2
22386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22387 $as_echo_n "checking for $ac_word... " >&6; }
22388 if ${ac_cv_path_HG+:} false; then :
22389   $as_echo_n "(cached) " >&6
22390 else
22391   case $HG in
22392   [\\/]* | ?:[\\/]*)
22393   ac_cv_path_HG="$HG" # Let the user override the test with a path.
22394   ;;
22395   *)
22396   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22397 for as_dir in $PATH
22398 do
22399   IFS=$as_save_IFS
22400   test -z "$as_dir" && as_dir=.
22401     for ac_exec_ext in '' $ac_executable_extensions; do
22402   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22403     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
22404     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22405     break 2
22406   fi
22407 done
22408   done
22409 IFS=$as_save_IFS
22410 
22411   ;;
22412 esac
22413 fi
22414 HG=$ac_cv_path_HG
22415 if test -n "$HG"; then
22416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
22417 $as_echo "$HG" >&6; }
22418 else
22419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22420 $as_echo "no" >&6; }
22421 fi
22422 
22423 
22424           if test "x$HG" = x; then
22425             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22426           fi
22427         else
22428           # Otherwise we believe it is a complete path. Use it as it is.
22429           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5
22430 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;}
22431           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5
22432 $as_echo_n "checking for HG... " >&6; }
22433           if test ! -x "$tool_specified"; then
22434             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22435 $as_echo "not found" >&6; }
22436             as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5
22437           fi
22438           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22439 $as_echo "$tool_specified" >&6; }
22440         fi
22441       fi
22442     fi
22443 
22444   fi
22445 
22446 
22447 
22448 
22449   # Publish this variable in the help.
22450 
22451 
22452   if [ -z "${STAT+x}" ]; then
22453     # The variable is not set by user, try to locate tool using the code snippet
22454     for ac_prog in stat
22455 do
22456   # Extract the first word of "$ac_prog", so it can be a program name with args.
22457 set dummy $ac_prog; ac_word=$2
22458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22459 $as_echo_n "checking for $ac_word... " >&6; }
22460 if ${ac_cv_path_STAT+:} false; then :
22461   $as_echo_n "(cached) " >&6
22462 else
22463   case $STAT in
22464   [\\/]* | ?:[\\/]*)
22465   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
22466   ;;
22467   *)
22468   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22469 for as_dir in $PATH
22470 do
22471   IFS=$as_save_IFS
22472   test -z "$as_dir" && as_dir=.
22473     for ac_exec_ext in '' $ac_executable_extensions; do
22474   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22475     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
22476     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22477     break 2
22478   fi
22479 done
22480   done
22481 IFS=$as_save_IFS
22482 
22483   ;;
22484 esac
22485 fi
22486 STAT=$ac_cv_path_STAT
22487 if test -n "$STAT"; then
22488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
22489 $as_echo "$STAT" >&6; }
22490 else
22491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22492 $as_echo "no" >&6; }
22493 fi
22494 
22495 
22496   test -n "$STAT" && break
22497 done
22498 
22499   else
22500     # The variable is set, but is it from the command line or the environment?
22501 
22502     # Try to remove the string !STAT! from our list.
22503     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/}
22504     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22505       # If it failed, the variable was not from the command line. Ignore it,
22506       # but warn the user (except for BASH, which is always set by the calling BASH).
22507       if test "xSTAT" != xBASH; then
22508         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5
22509 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;}
22510       fi
22511       # Try to locate tool using the code snippet
22512       for ac_prog in stat
22513 do
22514   # Extract the first word of "$ac_prog", so it can be a program name with args.
22515 set dummy $ac_prog; ac_word=$2
22516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22517 $as_echo_n "checking for $ac_word... " >&6; }
22518 if ${ac_cv_path_STAT+:} false; then :
22519   $as_echo_n "(cached) " >&6
22520 else
22521   case $STAT in
22522   [\\/]* | ?:[\\/]*)
22523   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
22524   ;;
22525   *)
22526   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22527 for as_dir in $PATH
22528 do
22529   IFS=$as_save_IFS
22530   test -z "$as_dir" && as_dir=.
22531     for ac_exec_ext in '' $ac_executable_extensions; do
22532   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22533     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
22534     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22535     break 2
22536   fi
22537 done
22538   done
22539 IFS=$as_save_IFS
22540 
22541   ;;
22542 esac
22543 fi
22544 STAT=$ac_cv_path_STAT
22545 if test -n "$STAT"; then
22546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
22547 $as_echo "$STAT" >&6; }
22548 else
22549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22550 $as_echo "no" >&6; }
22551 fi
22552 
22553 
22554   test -n "$STAT" && break
22555 done
22556 
22557     else
22558       # If it succeeded, then it was overridden by the user. We will use it
22559       # for the tool.
22560 
22561       # First remove it from the list of overridden variables, so we can test
22562       # for unknown variables in the end.
22563       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22564 
22565       # Check if we try to supply an empty value
22566       if test "x$STAT" = x; then
22567         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool STAT= (no value)" >&5
22568 $as_echo "$as_me: Setting user supplied tool STAT= (no value)" >&6;}
22569         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5
22570 $as_echo_n "checking for STAT... " >&6; }
22571         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22572 $as_echo "disabled" >&6; }
22573       else
22574         # Check if the provided tool contains a complete path.
22575         tool_specified="$STAT"
22576         tool_basename="${tool_specified##*/}"
22577         if test "x$tool_basename" = "x$tool_specified"; then
22578           # A command without a complete path is provided, search $PATH.
22579           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5
22580 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;}
22581           # Extract the first word of "$tool_basename", so it can be a program name with args.
22582 set dummy $tool_basename; ac_word=$2
22583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22584 $as_echo_n "checking for $ac_word... " >&6; }
22585 if ${ac_cv_path_STAT+:} false; then :
22586   $as_echo_n "(cached) " >&6
22587 else
22588   case $STAT in
22589   [\\/]* | ?:[\\/]*)
22590   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
22591   ;;
22592   *)
22593   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22594 for as_dir in $PATH
22595 do
22596   IFS=$as_save_IFS
22597   test -z "$as_dir" && as_dir=.
22598     for ac_exec_ext in '' $ac_executable_extensions; do
22599   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22600     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
22601     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22602     break 2
22603   fi
22604 done
22605   done
22606 IFS=$as_save_IFS
22607 
22608   ;;
22609 esac
22610 fi
22611 STAT=$ac_cv_path_STAT
22612 if test -n "$STAT"; then
22613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
22614 $as_echo "$STAT" >&6; }
22615 else
22616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22617 $as_echo "no" >&6; }
22618 fi
22619 
22620 
22621           if test "x$STAT" = x; then
22622             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22623           fi
22624         else
22625           # Otherwise we believe it is a complete path. Use it as it is.
22626           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5
22627 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;}
22628           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5
22629 $as_echo_n "checking for STAT... " >&6; }
22630           if test ! -x "$tool_specified"; then
22631             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22632 $as_echo "not found" >&6; }
22633             as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5
22634           fi
22635           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22636 $as_echo "$tool_specified" >&6; }
22637         fi
22638       fi
22639     fi
22640 
22641   fi
22642 
22643 
22644 
22645 
22646   # Publish this variable in the help.
22647 
22648 
22649   if [ -z "${TIME+x}" ]; then
22650     # The variable is not set by user, try to locate tool using the code snippet
22651     for ac_prog in time
22652 do
22653   # Extract the first word of "$ac_prog", so it can be a program name with args.
22654 set dummy $ac_prog; ac_word=$2
22655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22656 $as_echo_n "checking for $ac_word... " >&6; }
22657 if ${ac_cv_path_TIME+:} false; then :
22658   $as_echo_n "(cached) " >&6
22659 else
22660   case $TIME in
22661   [\\/]* | ?:[\\/]*)
22662   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
22663   ;;
22664   *)
22665   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22666 for as_dir in $PATH
22667 do
22668   IFS=$as_save_IFS
22669   test -z "$as_dir" && as_dir=.
22670     for ac_exec_ext in '' $ac_executable_extensions; do
22671   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22672     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
22673     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22674     break 2
22675   fi
22676 done
22677   done
22678 IFS=$as_save_IFS
22679 
22680   ;;
22681 esac
22682 fi
22683 TIME=$ac_cv_path_TIME
22684 if test -n "$TIME"; then
22685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
22686 $as_echo "$TIME" >&6; }
22687 else
22688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22689 $as_echo "no" >&6; }
22690 fi
22691 
22692 
22693   test -n "$TIME" && break
22694 done
22695 
22696   else
22697     # The variable is set, but is it from the command line or the environment?
22698 
22699     # Try to remove the string !TIME! from our list.
22700     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/}
22701     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22702       # If it failed, the variable was not from the command line. Ignore it,
22703       # but warn the user (except for BASH, which is always set by the calling BASH).
22704       if test "xTIME" != xBASH; then
22705         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5
22706 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;}
22707       fi
22708       # Try to locate tool using the code snippet
22709       for ac_prog in time
22710 do
22711   # Extract the first word of "$ac_prog", so it can be a program name with args.
22712 set dummy $ac_prog; ac_word=$2
22713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22714 $as_echo_n "checking for $ac_word... " >&6; }
22715 if ${ac_cv_path_TIME+:} false; then :
22716   $as_echo_n "(cached) " >&6
22717 else
22718   case $TIME in
22719   [\\/]* | ?:[\\/]*)
22720   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
22721   ;;
22722   *)
22723   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22724 for as_dir in $PATH
22725 do
22726   IFS=$as_save_IFS
22727   test -z "$as_dir" && as_dir=.
22728     for ac_exec_ext in '' $ac_executable_extensions; do
22729   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22730     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
22731     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22732     break 2
22733   fi
22734 done
22735   done
22736 IFS=$as_save_IFS
22737 
22738   ;;
22739 esac
22740 fi
22741 TIME=$ac_cv_path_TIME
22742 if test -n "$TIME"; then
22743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
22744 $as_echo "$TIME" >&6; }
22745 else
22746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22747 $as_echo "no" >&6; }
22748 fi
22749 
22750 
22751   test -n "$TIME" && break
22752 done
22753 
22754     else
22755       # If it succeeded, then it was overridden by the user. We will use it
22756       # for the tool.
22757 
22758       # First remove it from the list of overridden variables, so we can test
22759       # for unknown variables in the end.
22760       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22761 
22762       # Check if we try to supply an empty value
22763       if test "x$TIME" = x; then
22764         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TIME= (no value)" >&5
22765 $as_echo "$as_me: Setting user supplied tool TIME= (no value)" >&6;}
22766         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5
22767 $as_echo_n "checking for TIME... " >&6; }
22768         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22769 $as_echo "disabled" >&6; }
22770       else
22771         # Check if the provided tool contains a complete path.
22772         tool_specified="$TIME"
22773         tool_basename="${tool_specified##*/}"
22774         if test "x$tool_basename" = "x$tool_specified"; then
22775           # A command without a complete path is provided, search $PATH.
22776           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5
22777 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;}
22778           # Extract the first word of "$tool_basename", so it can be a program name with args.
22779 set dummy $tool_basename; ac_word=$2
22780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22781 $as_echo_n "checking for $ac_word... " >&6; }
22782 if ${ac_cv_path_TIME+:} false; then :
22783   $as_echo_n "(cached) " >&6
22784 else
22785   case $TIME in
22786   [\\/]* | ?:[\\/]*)
22787   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
22788   ;;
22789   *)
22790   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22791 for as_dir in $PATH
22792 do
22793   IFS=$as_save_IFS
22794   test -z "$as_dir" && as_dir=.
22795     for ac_exec_ext in '' $ac_executable_extensions; do
22796   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22797     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
22798     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22799     break 2
22800   fi
22801 done
22802   done
22803 IFS=$as_save_IFS
22804 
22805   ;;
22806 esac
22807 fi
22808 TIME=$ac_cv_path_TIME
22809 if test -n "$TIME"; then
22810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
22811 $as_echo "$TIME" >&6; }
22812 else
22813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22814 $as_echo "no" >&6; }
22815 fi
22816 
22817 
22818           if test "x$TIME" = x; then
22819             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22820           fi
22821         else
22822           # Otherwise we believe it is a complete path. Use it as it is.
22823           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5
22824 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;}
22825           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5
22826 $as_echo_n "checking for TIME... " >&6; }
22827           if test ! -x "$tool_specified"; then
22828             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22829 $as_echo "not found" >&6; }
22830             as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5
22831           fi
22832           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22833 $as_echo "$tool_specified" >&6; }
22834         fi
22835       fi
22836     fi
22837 
22838   fi
22839 
22840 
22841   # Dtrace is usually found in /usr/sbin on Solaris, but that directory may not
22842   # be in the user path.
22843 
22844 
22845   # Publish this variable in the help.
22846 
22847 
22848   if [ -z "${DTRACE+x}" ]; then
22849     # The variable is not set by user, try to locate tool using the code snippet
22850     for ac_prog in dtrace
22851 do
22852   # Extract the first word of "$ac_prog", so it can be a program name with args.
22853 set dummy $ac_prog; ac_word=$2
22854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22855 $as_echo_n "checking for $ac_word... " >&6; }
22856 if ${ac_cv_path_DTRACE+:} false; then :
22857   $as_echo_n "(cached) " >&6
22858 else
22859   case $DTRACE in
22860   [\\/]* | ?:[\\/]*)
22861   ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
22862   ;;
22863   *)
22864   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22865 as_dummy="$PATH:/usr/sbin"
22866 for as_dir in $as_dummy
22867 do
22868   IFS=$as_save_IFS
22869   test -z "$as_dir" && as_dir=.
22870     for ac_exec_ext in '' $ac_executable_extensions; do
22871   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22872     ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
22873     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22874     break 2
22875   fi
22876 done
22877   done
22878 IFS=$as_save_IFS
22879 
22880   ;;
22881 esac
22882 fi
22883 DTRACE=$ac_cv_path_DTRACE
22884 if test -n "$DTRACE"; then
22885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
22886 $as_echo "$DTRACE" >&6; }
22887 else
22888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22889 $as_echo "no" >&6; }
22890 fi
22891 
22892 
22893   test -n "$DTRACE" && break
22894 done
22895 
22896   else
22897     # The variable is set, but is it from the command line or the environment?
22898 
22899     # Try to remove the string !DTRACE! from our list.
22900     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DTRACE!/}
22901     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22902       # If it failed, the variable was not from the command line. Ignore it,
22903       # but warn the user (except for BASH, which is always set by the calling BASH).
22904       if test "xDTRACE" != xBASH; then
22905         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DTRACE from the environment. Use command line variables instead." >&5
22906 $as_echo "$as_me: WARNING: Ignoring value of DTRACE from the environment. Use command line variables instead." >&2;}
22907       fi
22908       # Try to locate tool using the code snippet
22909       for ac_prog in dtrace
22910 do
22911   # Extract the first word of "$ac_prog", so it can be a program name with args.
22912 set dummy $ac_prog; ac_word=$2
22913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22914 $as_echo_n "checking for $ac_word... " >&6; }
22915 if ${ac_cv_path_DTRACE+:} false; then :
22916   $as_echo_n "(cached) " >&6
22917 else
22918   case $DTRACE in
22919   [\\/]* | ?:[\\/]*)
22920   ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
22921   ;;
22922   *)
22923   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22924 as_dummy="$PATH:/usr/sbin"
22925 for as_dir in $as_dummy
22926 do
22927   IFS=$as_save_IFS
22928   test -z "$as_dir" && as_dir=.
22929     for ac_exec_ext in '' $ac_executable_extensions; do
22930   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22931     ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
22932     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22933     break 2
22934   fi
22935 done
22936   done
22937 IFS=$as_save_IFS
22938 
22939   ;;
22940 esac
22941 fi
22942 DTRACE=$ac_cv_path_DTRACE
22943 if test -n "$DTRACE"; then
22944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
22945 $as_echo "$DTRACE" >&6; }
22946 else
22947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22948 $as_echo "no" >&6; }
22949 fi
22950 
22951 
22952   test -n "$DTRACE" && break
22953 done
22954 
22955     else
22956       # If it succeeded, then it was overridden by the user. We will use it
22957       # for the tool.
22958 
22959       # First remove it from the list of overridden variables, so we can test
22960       # for unknown variables in the end.
22961       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22962 
22963       # Check if we try to supply an empty value
22964       if test "x$DTRACE" = x; then
22965         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DTRACE= (no value)" >&5
22966 $as_echo "$as_me: Setting user supplied tool DTRACE= (no value)" >&6;}
22967         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DTRACE" >&5
22968 $as_echo_n "checking for DTRACE... " >&6; }
22969         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22970 $as_echo "disabled" >&6; }
22971       else
22972         # Check if the provided tool contains a complete path.
22973         tool_specified="$DTRACE"
22974         tool_basename="${tool_specified##*/}"
22975         if test "x$tool_basename" = "x$tool_specified"; then
22976           # A command without a complete path is provided, search $PATH.
22977           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DTRACE=$tool_basename" >&5
22978 $as_echo "$as_me: Will search for user supplied tool DTRACE=$tool_basename" >&6;}
22979           # Extract the first word of "$tool_basename", so it can be a program name with args.
22980 set dummy $tool_basename; ac_word=$2
22981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22982 $as_echo_n "checking for $ac_word... " >&6; }
22983 if ${ac_cv_path_DTRACE+:} false; then :
22984   $as_echo_n "(cached) " >&6
22985 else
22986   case $DTRACE in
22987   [\\/]* | ?:[\\/]*)
22988   ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
22989   ;;
22990   *)
22991   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22992 for as_dir in $PATH
22993 do
22994   IFS=$as_save_IFS
22995   test -z "$as_dir" && as_dir=.
22996     for ac_exec_ext in '' $ac_executable_extensions; do
22997   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22998     ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
22999     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23000     break 2
23001   fi
23002 done
23003   done
23004 IFS=$as_save_IFS
23005 
23006   ;;
23007 esac
23008 fi
23009 DTRACE=$ac_cv_path_DTRACE
23010 if test -n "$DTRACE"; then
23011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
23012 $as_echo "$DTRACE" >&6; }
23013 else
23014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23015 $as_echo "no" >&6; }
23016 fi
23017 
23018 
23019           if test "x$DTRACE" = x; then
23020             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
23021           fi
23022         else
23023           # Otherwise we believe it is a complete path. Use it as it is.
23024           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DTRACE=$tool_specified" >&5
23025 $as_echo "$as_me: Will use user supplied tool DTRACE=$tool_specified" >&6;}
23026           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DTRACE" >&5
23027 $as_echo_n "checking for DTRACE... " >&6; }
23028           if test ! -x "$tool_specified"; then
23029             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23030 $as_echo "not found" >&6; }
23031             as_fn_error $? "User supplied tool DTRACE=$tool_specified does not exist or is not executable" "$LINENO" 5
23032           fi
23033           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
23034 $as_echo "$tool_specified" >&6; }
23035         fi
23036       fi
23037     fi
23038 
23039   fi
23040 
23041 
23042 
23043 
23044   # Publish this variable in the help.
23045 
23046 
23047   if [ -z "${PATCH+x}" ]; then
23048     # The variable is not set by user, try to locate tool using the code snippet
23049     for ac_prog in gpatch patch
23050 do
23051   # Extract the first word of "$ac_prog", so it can be a program name with args.
23052 set dummy $ac_prog; ac_word=$2
23053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23054 $as_echo_n "checking for $ac_word... " >&6; }
23055 if ${ac_cv_path_PATCH+:} false; then :
23056   $as_echo_n "(cached) " >&6
23057 else
23058   case $PATCH in
23059   [\\/]* | ?:[\\/]*)
23060   ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
23061   ;;
23062   *)
23063   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23064 for as_dir in $PATH
23065 do
23066   IFS=$as_save_IFS
23067   test -z "$as_dir" && as_dir=.
23068     for ac_exec_ext in '' $ac_executable_extensions; do
23069   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23070     ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
23071     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23072     break 2
23073   fi
23074 done
23075   done
23076 IFS=$as_save_IFS
23077 
23078   ;;
23079 esac
23080 fi
23081 PATCH=$ac_cv_path_PATCH
23082 if test -n "$PATCH"; then
23083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
23084 $as_echo "$PATCH" >&6; }
23085 else
23086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23087 $as_echo "no" >&6; }
23088 fi
23089 
23090 
23091   test -n "$PATCH" && break
23092 done
23093 
23094   else
23095     # The variable is set, but is it from the command line or the environment?
23096 
23097     # Try to remove the string !PATCH! from our list.
23098     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PATCH!/}
23099     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
23100       # If it failed, the variable was not from the command line. Ignore it,
23101       # but warn the user (except for BASH, which is always set by the calling BASH).
23102       if test "xPATCH" != xBASH; then
23103         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PATCH from the environment. Use command line variables instead." >&5
23104 $as_echo "$as_me: WARNING: Ignoring value of PATCH from the environment. Use command line variables instead." >&2;}
23105       fi
23106       # Try to locate tool using the code snippet
23107       for ac_prog in gpatch patch
23108 do
23109   # Extract the first word of "$ac_prog", so it can be a program name with args.
23110 set dummy $ac_prog; ac_word=$2
23111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23112 $as_echo_n "checking for $ac_word... " >&6; }
23113 if ${ac_cv_path_PATCH+:} false; then :
23114   $as_echo_n "(cached) " >&6
23115 else
23116   case $PATCH in
23117   [\\/]* | ?:[\\/]*)
23118   ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
23119   ;;
23120   *)
23121   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23122 for as_dir in $PATH
23123 do
23124   IFS=$as_save_IFS
23125   test -z "$as_dir" && as_dir=.
23126     for ac_exec_ext in '' $ac_executable_extensions; do
23127   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23128     ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
23129     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23130     break 2
23131   fi
23132 done
23133   done
23134 IFS=$as_save_IFS
23135 
23136   ;;
23137 esac
23138 fi
23139 PATCH=$ac_cv_path_PATCH
23140 if test -n "$PATCH"; then
23141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
23142 $as_echo "$PATCH" >&6; }
23143 else
23144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23145 $as_echo "no" >&6; }
23146 fi
23147 
23148 
23149   test -n "$PATCH" && break
23150 done
23151 
23152     else
23153       # If it succeeded, then it was overridden by the user. We will use it
23154       # for the tool.
23155 
23156       # First remove it from the list of overridden variables, so we can test
23157       # for unknown variables in the end.
23158       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
23159 
23160       # Check if we try to supply an empty value
23161       if test "x$PATCH" = x; then
23162         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PATCH= (no value)" >&5
23163 $as_echo "$as_me: Setting user supplied tool PATCH= (no value)" >&6;}
23164         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATCH" >&5
23165 $as_echo_n "checking for PATCH... " >&6; }
23166         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
23167 $as_echo "disabled" >&6; }
23168       else
23169         # Check if the provided tool contains a complete path.
23170         tool_specified="$PATCH"
23171         tool_basename="${tool_specified##*/}"
23172         if test "x$tool_basename" = "x$tool_specified"; then
23173           # A command without a complete path is provided, search $PATH.
23174           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PATCH=$tool_basename" >&5
23175 $as_echo "$as_me: Will search for user supplied tool PATCH=$tool_basename" >&6;}
23176           # Extract the first word of "$tool_basename", so it can be a program name with args.
23177 set dummy $tool_basename; ac_word=$2
23178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23179 $as_echo_n "checking for $ac_word... " >&6; }
23180 if ${ac_cv_path_PATCH+:} false; then :
23181   $as_echo_n "(cached) " >&6
23182 else
23183   case $PATCH in
23184   [\\/]* | ?:[\\/]*)
23185   ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
23186   ;;
23187   *)
23188   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23189 for as_dir in $PATH
23190 do
23191   IFS=$as_save_IFS
23192   test -z "$as_dir" && as_dir=.
23193     for ac_exec_ext in '' $ac_executable_extensions; do
23194   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23195     ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
23196     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23197     break 2
23198   fi
23199 done
23200   done
23201 IFS=$as_save_IFS
23202 
23203   ;;
23204 esac
23205 fi
23206 PATCH=$ac_cv_path_PATCH
23207 if test -n "$PATCH"; then
23208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
23209 $as_echo "$PATCH" >&6; }
23210 else
23211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23212 $as_echo "no" >&6; }
23213 fi
23214 
23215 
23216           if test "x$PATCH" = x; then
23217             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
23218           fi
23219         else
23220           # Otherwise we believe it is a complete path. Use it as it is.
23221           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PATCH=$tool_specified" >&5
23222 $as_echo "$as_me: Will use user supplied tool PATCH=$tool_specified" >&6;}
23223           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATCH" >&5
23224 $as_echo_n "checking for PATCH... " >&6; }
23225           if test ! -x "$tool_specified"; then
23226             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23227 $as_echo "not found" >&6; }
23228             as_fn_error $? "User supplied tool PATCH=$tool_specified does not exist or is not executable" "$LINENO" 5
23229           fi
23230           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
23231 $as_echo "$tool_specified" >&6; }
23232         fi
23233       fi
23234     fi
23235 
23236   fi
23237 
23238 
23239   # Check if it's GNU time
23240   IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'`
23241   if test "x$IS_GNU_TIME" != x; then
23242     IS_GNU_TIME=yes
23243   else
23244     IS_GNU_TIME=no
23245   fi
23246 
23247 
23248   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
23249 
23250 
23251 
23252   # Publish this variable in the help.
23253 
23254 
23255   if [ -z "${DSYMUTIL+x}" ]; then
23256     # The variable is not set by user, try to locate tool using the code snippet
23257     for ac_prog in dsymutil
23258 do
23259   # Extract the first word of "$ac_prog", so it can be a program name with args.
23260 set dummy $ac_prog; ac_word=$2
23261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23262 $as_echo_n "checking for $ac_word... " >&6; }
23263 if ${ac_cv_path_DSYMUTIL+:} false; then :
23264   $as_echo_n "(cached) " >&6
23265 else
23266   case $DSYMUTIL in
23267   [\\/]* | ?:[\\/]*)
23268   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
23269   ;;
23270   *)
23271   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23272 for as_dir in $PATH
23273 do
23274   IFS=$as_save_IFS
23275   test -z "$as_dir" && as_dir=.
23276     for ac_exec_ext in '' $ac_executable_extensions; do
23277   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23278     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
23279     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23280     break 2
23281   fi
23282 done
23283   done
23284 IFS=$as_save_IFS
23285 
23286   ;;
23287 esac
23288 fi
23289 DSYMUTIL=$ac_cv_path_DSYMUTIL
23290 if test -n "$DSYMUTIL"; then
23291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
23292 $as_echo "$DSYMUTIL" >&6; }
23293 else
23294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23295 $as_echo "no" >&6; }
23296 fi
23297 
23298 
23299   test -n "$DSYMUTIL" && break
23300 done
23301 
23302   else
23303     # The variable is set, but is it from the command line or the environment?
23304 
23305     # Try to remove the string !DSYMUTIL! from our list.
23306     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/}
23307     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
23308       # If it failed, the variable was not from the command line. Ignore it,
23309       # but warn the user (except for BASH, which is always set by the calling BASH).
23310       if test "xDSYMUTIL" != xBASH; then
23311         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5
23312 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;}
23313       fi
23314       # Try to locate tool using the code snippet
23315       for ac_prog in dsymutil
23316 do
23317   # Extract the first word of "$ac_prog", so it can be a program name with args.
23318 set dummy $ac_prog; ac_word=$2
23319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23320 $as_echo_n "checking for $ac_word... " >&6; }
23321 if ${ac_cv_path_DSYMUTIL+:} false; then :
23322   $as_echo_n "(cached) " >&6
23323 else
23324   case $DSYMUTIL in
23325   [\\/]* | ?:[\\/]*)
23326   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
23327   ;;
23328   *)
23329   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23330 for as_dir in $PATH
23331 do
23332   IFS=$as_save_IFS
23333   test -z "$as_dir" && as_dir=.
23334     for ac_exec_ext in '' $ac_executable_extensions; do
23335   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23336     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
23337     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23338     break 2
23339   fi
23340 done
23341   done
23342 IFS=$as_save_IFS
23343 
23344   ;;
23345 esac
23346 fi
23347 DSYMUTIL=$ac_cv_path_DSYMUTIL
23348 if test -n "$DSYMUTIL"; then
23349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
23350 $as_echo "$DSYMUTIL" >&6; }
23351 else
23352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23353 $as_echo "no" >&6; }
23354 fi
23355 
23356 
23357   test -n "$DSYMUTIL" && break
23358 done
23359 
23360     else
23361       # If it succeeded, then it was overridden by the user. We will use it
23362       # for the tool.
23363 
23364       # First remove it from the list of overridden variables, so we can test
23365       # for unknown variables in the end.
23366       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
23367 
23368       # Check if we try to supply an empty value
23369       if test "x$DSYMUTIL" = x; then
23370         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DSYMUTIL= (no value)" >&5
23371 $as_echo "$as_me: Setting user supplied tool DSYMUTIL= (no value)" >&6;}
23372         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5
23373 $as_echo_n "checking for DSYMUTIL... " >&6; }
23374         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
23375 $as_echo "disabled" >&6; }
23376       else
23377         # Check if the provided tool contains a complete path.
23378         tool_specified="$DSYMUTIL"
23379         tool_basename="${tool_specified##*/}"
23380         if test "x$tool_basename" = "x$tool_specified"; then
23381           # A command without a complete path is provided, search $PATH.
23382           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5
23383 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;}
23384           # Extract the first word of "$tool_basename", so it can be a program name with args.
23385 set dummy $tool_basename; ac_word=$2
23386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23387 $as_echo_n "checking for $ac_word... " >&6; }
23388 if ${ac_cv_path_DSYMUTIL+:} false; then :
23389   $as_echo_n "(cached) " >&6
23390 else
23391   case $DSYMUTIL in
23392   [\\/]* | ?:[\\/]*)
23393   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
23394   ;;
23395   *)
23396   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23397 for as_dir in $PATH
23398 do
23399   IFS=$as_save_IFS
23400   test -z "$as_dir" && as_dir=.
23401     for ac_exec_ext in '' $ac_executable_extensions; do
23402   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23403     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
23404     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23405     break 2
23406   fi
23407 done
23408   done
23409 IFS=$as_save_IFS
23410 
23411   ;;
23412 esac
23413 fi
23414 DSYMUTIL=$ac_cv_path_DSYMUTIL
23415 if test -n "$DSYMUTIL"; then
23416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
23417 $as_echo "$DSYMUTIL" >&6; }
23418 else
23419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23420 $as_echo "no" >&6; }
23421 fi
23422 
23423 
23424           if test "x$DSYMUTIL" = x; then
23425             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
23426           fi
23427         else
23428           # Otherwise we believe it is a complete path. Use it as it is.
23429           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5
23430 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;}
23431           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5
23432 $as_echo_n "checking for DSYMUTIL... " >&6; }
23433           if test ! -x "$tool_specified"; then
23434             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23435 $as_echo "not found" >&6; }
23436             as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5
23437           fi
23438           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
23439 $as_echo "$tool_specified" >&6; }
23440         fi
23441       fi
23442     fi
23443 
23444   fi
23445 
23446 
23447 
23448   if test "x$DSYMUTIL" = x; then
23449     as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5
23450   fi
23451 
23452 
23453 
23454 
23455 
23456   # Publish this variable in the help.
23457 
23458 
23459   if [ -z "${XATTR+x}" ]; then
23460     # The variable is not set by user, try to locate tool using the code snippet
23461     for ac_prog in xattr
23462 do
23463   # Extract the first word of "$ac_prog", so it can be a program name with args.
23464 set dummy $ac_prog; ac_word=$2
23465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23466 $as_echo_n "checking for $ac_word... " >&6; }
23467 if ${ac_cv_path_XATTR+:} false; then :
23468   $as_echo_n "(cached) " >&6
23469 else
23470   case $XATTR in
23471   [\\/]* | ?:[\\/]*)
23472   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
23473   ;;
23474   *)
23475   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23476 for as_dir in $PATH
23477 do
23478   IFS=$as_save_IFS
23479   test -z "$as_dir" && as_dir=.
23480     for ac_exec_ext in '' $ac_executable_extensions; do
23481   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23482     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
23483     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23484     break 2
23485   fi
23486 done
23487   done
23488 IFS=$as_save_IFS
23489 
23490   ;;
23491 esac
23492 fi
23493 XATTR=$ac_cv_path_XATTR
23494 if test -n "$XATTR"; then
23495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
23496 $as_echo "$XATTR" >&6; }
23497 else
23498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23499 $as_echo "no" >&6; }
23500 fi
23501 
23502 
23503   test -n "$XATTR" && break
23504 done
23505 
23506   else
23507     # The variable is set, but is it from the command line or the environment?
23508 
23509     # Try to remove the string !XATTR! from our list.
23510     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/}
23511     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
23512       # If it failed, the variable was not from the command line. Ignore it,
23513       # but warn the user (except for BASH, which is always set by the calling BASH).
23514       if test "xXATTR" != xBASH; then
23515         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5
23516 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;}
23517       fi
23518       # Try to locate tool using the code snippet
23519       for ac_prog in xattr
23520 do
23521   # Extract the first word of "$ac_prog", so it can be a program name with args.
23522 set dummy $ac_prog; ac_word=$2
23523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23524 $as_echo_n "checking for $ac_word... " >&6; }
23525 if ${ac_cv_path_XATTR+:} false; then :
23526   $as_echo_n "(cached) " >&6
23527 else
23528   case $XATTR in
23529   [\\/]* | ?:[\\/]*)
23530   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
23531   ;;
23532   *)
23533   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23534 for as_dir in $PATH
23535 do
23536   IFS=$as_save_IFS
23537   test -z "$as_dir" && as_dir=.
23538     for ac_exec_ext in '' $ac_executable_extensions; do
23539   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23540     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
23541     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23542     break 2
23543   fi
23544 done
23545   done
23546 IFS=$as_save_IFS
23547 
23548   ;;
23549 esac
23550 fi
23551 XATTR=$ac_cv_path_XATTR
23552 if test -n "$XATTR"; then
23553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
23554 $as_echo "$XATTR" >&6; }
23555 else
23556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23557 $as_echo "no" >&6; }
23558 fi
23559 
23560 
23561   test -n "$XATTR" && break
23562 done
23563 
23564     else
23565       # If it succeeded, then it was overridden by the user. We will use it
23566       # for the tool.
23567 
23568       # First remove it from the list of overridden variables, so we can test
23569       # for unknown variables in the end.
23570       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
23571 
23572       # Check if we try to supply an empty value
23573       if test "x$XATTR" = x; then
23574         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool XATTR= (no value)" >&5
23575 $as_echo "$as_me: Setting user supplied tool XATTR= (no value)" >&6;}
23576         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5
23577 $as_echo_n "checking for XATTR... " >&6; }
23578         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
23579 $as_echo "disabled" >&6; }
23580       else
23581         # Check if the provided tool contains a complete path.
23582         tool_specified="$XATTR"
23583         tool_basename="${tool_specified##*/}"
23584         if test "x$tool_basename" = "x$tool_specified"; then
23585           # A command without a complete path is provided, search $PATH.
23586           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5
23587 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;}
23588           # Extract the first word of "$tool_basename", so it can be a program name with args.
23589 set dummy $tool_basename; ac_word=$2
23590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23591 $as_echo_n "checking for $ac_word... " >&6; }
23592 if ${ac_cv_path_XATTR+:} false; then :
23593   $as_echo_n "(cached) " >&6
23594 else
23595   case $XATTR in
23596   [\\/]* | ?:[\\/]*)
23597   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
23598   ;;
23599   *)
23600   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23601 for as_dir in $PATH
23602 do
23603   IFS=$as_save_IFS
23604   test -z "$as_dir" && as_dir=.
23605     for ac_exec_ext in '' $ac_executable_extensions; do
23606   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23607     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
23608     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23609     break 2
23610   fi
23611 done
23612   done
23613 IFS=$as_save_IFS
23614 
23615   ;;
23616 esac
23617 fi
23618 XATTR=$ac_cv_path_XATTR
23619 if test -n "$XATTR"; then
23620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
23621 $as_echo "$XATTR" >&6; }
23622 else
23623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23624 $as_echo "no" >&6; }
23625 fi
23626 
23627 
23628           if test "x$XATTR" = x; then
23629             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
23630           fi
23631         else
23632           # Otherwise we believe it is a complete path. Use it as it is.
23633           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5
23634 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;}
23635           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5
23636 $as_echo_n "checking for XATTR... " >&6; }
23637           if test ! -x "$tool_specified"; then
23638             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23639 $as_echo "not found" >&6; }
23640             as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5
23641           fi
23642           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
23643 $as_echo "$tool_specified" >&6; }
23644         fi
23645       fi
23646     fi
23647 
23648   fi
23649 
23650 
23651 
23652   if test "x$XATTR" = x; then
23653     as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5
23654   fi
23655 
23656 
23657 
23658 
23659   # Publish this variable in the help.
23660 
23661 
23662   if [ -z "${CODESIGN+x}" ]; then
23663     # The variable is not set by user, try to locate tool using the code snippet
23664     for ac_prog in codesign
23665 do
23666   # Extract the first word of "$ac_prog", so it can be a program name with args.
23667 set dummy $ac_prog; ac_word=$2
23668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23669 $as_echo_n "checking for $ac_word... " >&6; }
23670 if ${ac_cv_path_CODESIGN+:} false; then :
23671   $as_echo_n "(cached) " >&6
23672 else
23673   case $CODESIGN in
23674   [\\/]* | ?:[\\/]*)
23675   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
23676   ;;
23677   *)
23678   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23679 for as_dir in $PATH
23680 do
23681   IFS=$as_save_IFS
23682   test -z "$as_dir" && as_dir=.
23683     for ac_exec_ext in '' $ac_executable_extensions; do
23684   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23685     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
23686     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23687     break 2
23688   fi
23689 done
23690   done
23691 IFS=$as_save_IFS
23692 
23693   ;;
23694 esac
23695 fi
23696 CODESIGN=$ac_cv_path_CODESIGN
23697 if test -n "$CODESIGN"; then
23698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
23699 $as_echo "$CODESIGN" >&6; }
23700 else
23701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23702 $as_echo "no" >&6; }
23703 fi
23704 
23705 
23706   test -n "$CODESIGN" && break
23707 done
23708 
23709   else
23710     # The variable is set, but is it from the command line or the environment?
23711 
23712     # Try to remove the string !CODESIGN! from our list.
23713     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/}
23714     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
23715       # If it failed, the variable was not from the command line. Ignore it,
23716       # but warn the user (except for BASH, which is always set by the calling BASH).
23717       if test "xCODESIGN" != xBASH; then
23718         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5
23719 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;}
23720       fi
23721       # Try to locate tool using the code snippet
23722       for ac_prog in codesign
23723 do
23724   # Extract the first word of "$ac_prog", so it can be a program name with args.
23725 set dummy $ac_prog; ac_word=$2
23726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23727 $as_echo_n "checking for $ac_word... " >&6; }
23728 if ${ac_cv_path_CODESIGN+:} false; then :
23729   $as_echo_n "(cached) " >&6
23730 else
23731   case $CODESIGN in
23732   [\\/]* | ?:[\\/]*)
23733   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
23734   ;;
23735   *)
23736   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23737 for as_dir in $PATH
23738 do
23739   IFS=$as_save_IFS
23740   test -z "$as_dir" && as_dir=.
23741     for ac_exec_ext in '' $ac_executable_extensions; do
23742   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23743     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
23744     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23745     break 2
23746   fi
23747 done
23748   done
23749 IFS=$as_save_IFS
23750 
23751   ;;
23752 esac
23753 fi
23754 CODESIGN=$ac_cv_path_CODESIGN
23755 if test -n "$CODESIGN"; then
23756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
23757 $as_echo "$CODESIGN" >&6; }
23758 else
23759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23760 $as_echo "no" >&6; }
23761 fi
23762 
23763 
23764   test -n "$CODESIGN" && break
23765 done
23766 
23767     else
23768       # If it succeeded, then it was overridden by the user. We will use it
23769       # for the tool.
23770 
23771       # First remove it from the list of overridden variables, so we can test
23772       # for unknown variables in the end.
23773       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
23774 
23775       # Check if we try to supply an empty value
23776       if test "x$CODESIGN" = x; then
23777         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CODESIGN= (no value)" >&5
23778 $as_echo "$as_me: Setting user supplied tool CODESIGN= (no value)" >&6;}
23779         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5
23780 $as_echo_n "checking for CODESIGN... " >&6; }
23781         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
23782 $as_echo "disabled" >&6; }
23783       else
23784         # Check if the provided tool contains a complete path.
23785         tool_specified="$CODESIGN"
23786         tool_basename="${tool_specified##*/}"
23787         if test "x$tool_basename" = "x$tool_specified"; then
23788           # A command without a complete path is provided, search $PATH.
23789           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5
23790 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;}
23791           # Extract the first word of "$tool_basename", so it can be a program name with args.
23792 set dummy $tool_basename; ac_word=$2
23793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23794 $as_echo_n "checking for $ac_word... " >&6; }
23795 if ${ac_cv_path_CODESIGN+:} false; then :
23796   $as_echo_n "(cached) " >&6
23797 else
23798   case $CODESIGN in
23799   [\\/]* | ?:[\\/]*)
23800   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
23801   ;;
23802   *)
23803   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23804 for as_dir in $PATH
23805 do
23806   IFS=$as_save_IFS
23807   test -z "$as_dir" && as_dir=.
23808     for ac_exec_ext in '' $ac_executable_extensions; do
23809   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23810     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
23811     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23812     break 2
23813   fi
23814 done
23815   done
23816 IFS=$as_save_IFS
23817 
23818   ;;
23819 esac
23820 fi
23821 CODESIGN=$ac_cv_path_CODESIGN
23822 if test -n "$CODESIGN"; then
23823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
23824 $as_echo "$CODESIGN" >&6; }
23825 else
23826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23827 $as_echo "no" >&6; }
23828 fi
23829 
23830 
23831           if test "x$CODESIGN" = x; then
23832             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
23833           fi
23834         else
23835           # Otherwise we believe it is a complete path. Use it as it is.
23836           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5
23837 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;}
23838           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5
23839 $as_echo_n "checking for CODESIGN... " >&6; }
23840           if test ! -x "$tool_specified"; then
23841             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23842 $as_echo "not found" >&6; }
23843             as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5
23844           fi
23845           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
23846 $as_echo "$tool_specified" >&6; }
23847         fi
23848       fi
23849     fi
23850 
23851   fi
23852 
23853 
23854     if test "x$CODESIGN" != "x"; then
23855       # Verify that the openjdk_codesign certificate is present
23856       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5
23857 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; }
23858       $RM codesign-testfile
23859       $TOUCH codesign-testfile
23860       $CODESIGN -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN=
23861       $RM codesign-testfile
23862       if test "x$CODESIGN" = x; then
23863         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23864 $as_echo "no" >&6; }
23865       else
23866         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23867 $as_echo "yes" >&6; }
23868       fi
23869     fi
23870 
23871 
23872 
23873   # Publish this variable in the help.
23874 
23875 
23876   if [ -z "${SETFILE+x}" ]; then
23877     # The variable is not set by user, try to locate tool using the code snippet
23878     for ac_prog in SetFile
23879 do
23880   # Extract the first word of "$ac_prog", so it can be a program name with args.
23881 set dummy $ac_prog; ac_word=$2
23882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23883 $as_echo_n "checking for $ac_word... " >&6; }
23884 if ${ac_cv_path_SETFILE+:} false; then :
23885   $as_echo_n "(cached) " >&6
23886 else
23887   case $SETFILE in
23888   [\\/]* | ?:[\\/]*)
23889   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
23890   ;;
23891   *)
23892   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23893 for as_dir in $PATH
23894 do
23895   IFS=$as_save_IFS
23896   test -z "$as_dir" && as_dir=.
23897     for ac_exec_ext in '' $ac_executable_extensions; do
23898   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23899     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
23900     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23901     break 2
23902   fi
23903 done
23904   done
23905 IFS=$as_save_IFS
23906 
23907   ;;
23908 esac
23909 fi
23910 SETFILE=$ac_cv_path_SETFILE
23911 if test -n "$SETFILE"; then
23912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
23913 $as_echo "$SETFILE" >&6; }
23914 else
23915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23916 $as_echo "no" >&6; }
23917 fi
23918 
23919 
23920   test -n "$SETFILE" && break
23921 done
23922 
23923   else
23924     # The variable is set, but is it from the command line or the environment?
23925 
23926     # Try to remove the string !SETFILE! from our list.
23927     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/}
23928     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
23929       # If it failed, the variable was not from the command line. Ignore it,
23930       # but warn the user (except for BASH, which is always set by the calling BASH).
23931       if test "xSETFILE" != xBASH; then
23932         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5
23933 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;}
23934       fi
23935       # Try to locate tool using the code snippet
23936       for ac_prog in SetFile
23937 do
23938   # Extract the first word of "$ac_prog", so it can be a program name with args.
23939 set dummy $ac_prog; ac_word=$2
23940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23941 $as_echo_n "checking for $ac_word... " >&6; }
23942 if ${ac_cv_path_SETFILE+:} false; then :
23943   $as_echo_n "(cached) " >&6
23944 else
23945   case $SETFILE in
23946   [\\/]* | ?:[\\/]*)
23947   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
23948   ;;
23949   *)
23950   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23951 for as_dir in $PATH
23952 do
23953   IFS=$as_save_IFS
23954   test -z "$as_dir" && as_dir=.
23955     for ac_exec_ext in '' $ac_executable_extensions; do
23956   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23957     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
23958     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23959     break 2
23960   fi
23961 done
23962   done
23963 IFS=$as_save_IFS
23964 
23965   ;;
23966 esac
23967 fi
23968 SETFILE=$ac_cv_path_SETFILE
23969 if test -n "$SETFILE"; then
23970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
23971 $as_echo "$SETFILE" >&6; }
23972 else
23973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23974 $as_echo "no" >&6; }
23975 fi
23976 
23977 
23978   test -n "$SETFILE" && break
23979 done
23980 
23981     else
23982       # If it succeeded, then it was overridden by the user. We will use it
23983       # for the tool.
23984 
23985       # First remove it from the list of overridden variables, so we can test
23986       # for unknown variables in the end.
23987       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
23988 
23989       # Check if we try to supply an empty value
23990       if test "x$SETFILE" = x; then
23991         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SETFILE= (no value)" >&5
23992 $as_echo "$as_me: Setting user supplied tool SETFILE= (no value)" >&6;}
23993         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5
23994 $as_echo_n "checking for SETFILE... " >&6; }
23995         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
23996 $as_echo "disabled" >&6; }
23997       else
23998         # Check if the provided tool contains a complete path.
23999         tool_specified="$SETFILE"
24000         tool_basename="${tool_specified##*/}"
24001         if test "x$tool_basename" = "x$tool_specified"; then
24002           # A command without a complete path is provided, search $PATH.
24003           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5
24004 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;}
24005           # Extract the first word of "$tool_basename", so it can be a program name with args.
24006 set dummy $tool_basename; ac_word=$2
24007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24008 $as_echo_n "checking for $ac_word... " >&6; }
24009 if ${ac_cv_path_SETFILE+:} false; then :
24010   $as_echo_n "(cached) " >&6
24011 else
24012   case $SETFILE in
24013   [\\/]* | ?:[\\/]*)
24014   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
24015   ;;
24016   *)
24017   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24018 for as_dir in $PATH
24019 do
24020   IFS=$as_save_IFS
24021   test -z "$as_dir" && as_dir=.
24022     for ac_exec_ext in '' $ac_executable_extensions; do
24023   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24024     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
24025     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24026     break 2
24027   fi
24028 done
24029   done
24030 IFS=$as_save_IFS
24031 
24032   ;;
24033 esac
24034 fi
24035 SETFILE=$ac_cv_path_SETFILE
24036 if test -n "$SETFILE"; then
24037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
24038 $as_echo "$SETFILE" >&6; }
24039 else
24040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24041 $as_echo "no" >&6; }
24042 fi
24043 
24044 
24045           if test "x$SETFILE" = x; then
24046             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
24047           fi
24048         else
24049           # Otherwise we believe it is a complete path. Use it as it is.
24050           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5
24051 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;}
24052           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5
24053 $as_echo_n "checking for SETFILE... " >&6; }
24054           if test ! -x "$tool_specified"; then
24055             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24056 $as_echo "not found" >&6; }
24057             as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5
24058           fi
24059           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
24060 $as_echo "$tool_specified" >&6; }
24061         fi
24062       fi
24063     fi
24064 
24065   fi
24066 
24067 
24068 
24069   if test "x$SETFILE" = x; then
24070     as_fn_error $? "Could not find required tool for SETFILE" "$LINENO" 5
24071   fi
24072 
24073 
24074   fi
24075 
24076 
24077   # Test if bash supports pipefail.
24078   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports pipefail" >&5
24079 $as_echo_n "checking if bash supports pipefail... " >&6; }
24080   if ${BASH} -c 'set -o pipefail'; then
24081     BASH_ARGS="$BASH_ARGS -o pipefail"
24082     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24083 $as_echo "yes" >&6; }
24084   else
24085     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24086 $as_echo "no" >&6; }
24087   fi
24088 
24089   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports errexit (-e)" >&5
24090 $as_echo_n "checking if bash supports errexit (-e)... " >&6; }
24091   if ${BASH} -e -c 'true'; then
24092     BASH_ARGS="$BASH_ARGS -e"
24093     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24094 $as_echo "yes" >&6; }
24095   else
24096     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24097 $as_echo "no" >&6; }
24098   fi
24099 
24100 
24101 
24102 
24103 # Check if pkg-config is available.
24104 
24105 
24106 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
24107         if test -n "$ac_tool_prefix"; then
24108   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24109 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24111 $as_echo_n "checking for $ac_word... " >&6; }
24112 if ${ac_cv_path_PKG_CONFIG+:} false; then :
24113   $as_echo_n "(cached) " >&6
24114 else
24115   case $PKG_CONFIG in
24116   [\\/]* | ?:[\\/]*)
24117   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24118   ;;
24119   *)
24120   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24121 for as_dir in $PATH
24122 do
24123   IFS=$as_save_IFS
24124   test -z "$as_dir" && as_dir=.
24125     for ac_exec_ext in '' $ac_executable_extensions; do
24126   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24127     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24128     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24129     break 2
24130   fi
24131 done
24132   done
24133 IFS=$as_save_IFS
24134 
24135   ;;
24136 esac
24137 fi
24138 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24139 if test -n "$PKG_CONFIG"; then
24140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
24141 $as_echo "$PKG_CONFIG" >&6; }
24142 else
24143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24144 $as_echo "no" >&6; }
24145 fi
24146 
24147 
24148 fi
24149 if test -z "$ac_cv_path_PKG_CONFIG"; then
24150   ac_pt_PKG_CONFIG=$PKG_CONFIG
24151   # Extract the first word of "pkg-config", so it can be a program name with args.
24152 set dummy pkg-config; ac_word=$2
24153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24154 $as_echo_n "checking for $ac_word... " >&6; }
24155 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
24156   $as_echo_n "(cached) " >&6
24157 else
24158   case $ac_pt_PKG_CONFIG in
24159   [\\/]* | ?:[\\/]*)
24160   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
24161   ;;
24162   *)
24163   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24164 for as_dir in $PATH
24165 do
24166   IFS=$as_save_IFS
24167   test -z "$as_dir" && as_dir=.
24168     for ac_exec_ext in '' $ac_executable_extensions; do
24169   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24170     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24171     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24172     break 2
24173   fi
24174 done
24175   done
24176 IFS=$as_save_IFS
24177 
24178   ;;
24179 esac
24180 fi
24181 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
24182 if test -n "$ac_pt_PKG_CONFIG"; then
24183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
24184 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
24185 else
24186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24187 $as_echo "no" >&6; }
24188 fi
24189 
24190   if test "x$ac_pt_PKG_CONFIG" = x; then
24191     PKG_CONFIG=""
24192   else
24193     case $cross_compiling:$ac_tool_warned in
24194 yes:)
24195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24196 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24197 ac_tool_warned=yes ;;
24198 esac
24199     PKG_CONFIG=$ac_pt_PKG_CONFIG
24200   fi
24201 else
24202   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
24203 fi
24204 
24205 fi
24206 if test -n "$PKG_CONFIG"; then
24207         _pkg_min_version=0.9.0
24208         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
24209 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
24210         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
24211                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24212 $as_echo "yes" >&6; }
24213         else
24214                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24215 $as_echo "no" >&6; }
24216                 PKG_CONFIG=""
24217         fi
24218 
24219 fi
24220 
24221 # After basic tools have been setup, we can check build os specific details.
24222 
24223   ###############################################################################
24224 
24225   # Note that this is the build platform OS version!
24226 
24227   OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`"
24228   OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`"
24229   OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`"
24230   OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`"
24231 
24232 
24233 
24234 
24235 
24236 # Misc basic settings
24237 
24238 
24239 # Check whether --with-default-make-target was given.
24240 if test "${with_default_make_target+set}" = set; then :
24241   withval=$with_default_make_target;
24242 fi
24243 
24244   if test "x$with_default_make_target" = "x" \
24245       || test "x$with_default_make_target" = "xyes"; then
24246     DEFAULT_MAKE_TARGET="exploded-image"
24247   elif test "x$with_default_make_target" = "xno"; then
24248     as_fn_error $? "--without-default-make-target is not a valid option" "$LINENO" 5
24249   else
24250     DEFAULT_MAKE_TARGET="$with_default_make_target"
24251   fi
24252 
24253 
24254 
24255 
24256 ###############################################################################
24257 #
24258 # Determine OpenJDK variants, options and version numbers.
24259 #
24260 ###############################################################################
24261 
24262 # We need build & target for this.
24263 
24264   # Should we build a JDK without a graphical UI?
24265   { $as_echo "$as_me:${as_lineno-$LINENO}: checking headless only" >&5
24266 $as_echo_n "checking headless only... " >&6; }
24267   # Check whether --enable-headless-only was given.
24268 if test "${enable_headless_only+set}" = set; then :
24269   enableval=$enable_headless_only;
24270 fi
24271 
24272 
24273   if test "x$enable_headless_only" = "xyes"; then
24274     ENABLE_HEADLESS_ONLY="true"
24275     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24276 $as_echo "yes" >&6; }
24277   elif test "x$enable_headless_only" = "xno"; then
24278     ENABLE_HEADLESS_ONLY="false"
24279     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24280 $as_echo "no" >&6; }
24281   elif test "x$enable_headless_only" = "x"; then
24282     ENABLE_HEADLESS_ONLY="false"
24283     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24284 $as_echo "no" >&6; }
24285   else
24286     as_fn_error $? "--enable-headless-only can only take yes or no" "$LINENO" 5
24287   fi
24288 
24289 
24290 
24291   # Choose cacerts source file
24292 
24293 # Check whether --with-cacerts-file was given.
24294 if test "${with_cacerts_file+set}" = set; then :
24295   withval=$with_cacerts_file;
24296 fi
24297 
24298   if test "x$with_cacerts_file" != x; then
24299     CACERTS_FILE=$with_cacerts_file
24300   fi
24301 
24302 
24303   # Enable or disable unlimited crypto
24304   # Check whether --enable-unlimited-crypto was given.
24305 if test "${enable_unlimited_crypto+set}" = set; then :
24306   enableval=$enable_unlimited_crypto;
24307 else
24308   enable_unlimited_crypto=yes
24309 fi
24310 
24311   if test "x$enable_unlimited_crypto" = "xyes"; then
24312     UNLIMITED_CRYPTO=true
24313   else
24314     UNLIMITED_CRYPTO=false
24315   fi
24316 
24317 
24318   # Should we build the serviceability agent (SA)?
24319   INCLUDE_SA=true
24320   if   [[ " $JVM_VARIANTS " =~ " zero " ]]   ||   [[ " $JVM_VARIANTS " =~ " zeroshark " ]]  ; then
24321     INCLUDE_SA=false
24322   fi
24323   if test "x$OPENJDK_TARGET_OS" = xaix ; then
24324     INCLUDE_SA=false
24325   fi
24326 
24327 
24328   # Compress jars
24329   COMPRESS_JARS=false
24330 
24331 
24332 
24333   # Setup default copyright year. Mostly overridden when building close to a new year.
24334 
24335 # Check whether --with-copyright-year was given.
24336 if test "${with_copyright_year+set}" = set; then :
24337   withval=$with_copyright_year;
24338 fi
24339 
24340   if test "x$with_copyright_year" = xyes; then
24341     as_fn_error $? "Copyright year must have a value" "$LINENO" 5
24342   elif test "x$with_copyright_year" != x; then
24343     COPYRIGHT_YEAR="$with_copyright_year"
24344   else
24345     COPYRIGHT_YEAR=`$DATE +'%Y'`
24346   fi
24347 
24348 
24349 
24350   # Check whether --enable-keep-packaged-modules was given.
24351 if test "${enable_keep_packaged_modules+set}" = set; then :
24352   enableval=$enable_keep_packaged_modules;
24353 fi
24354 
24355 
24356   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if packaged modules are kept" >&5
24357 $as_echo_n "checking if packaged modules are kept... " >&6; }
24358   if test "x$enable_keep_packaged_modules" = "xyes"; then
24359     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24360 $as_echo "yes" >&6; }
24361     JLINK_KEEP_PACKAGED_MODULES=true
24362   elif test "x$enable_keep_packaged_modules" = "xno"; then
24363     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24364 $as_echo "no" >&6; }
24365     JLINK_KEEP_PACKAGED_MODULES=false
24366   elif test "x$enable_keep_packaged_modules" = "x"; then
24367     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5
24368 $as_echo "yes (default)" >&6; }
24369     JLINK_KEEP_PACKAGED_MODULES=true
24370   else
24371     { $as_echo "$as_me:${as_lineno-$LINENO}: result: error" >&5
24372 $as_echo "error" >&6; }
24373     as_fn_error $? "--enable-keep-packaged-modules accepts no argument" "$LINENO" 5
24374   fi
24375 
24376 
24377 
24378 
24379   # Warn user that old version arguments are deprecated.
24380 
24381 
24382 # Check whether --with-milestone was given.
24383 if test "${with_milestone+set}" = set; then :
24384   withval=$with_milestone; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-milestone is deprecated and will be ignored." >&5
24385 $as_echo "$as_me: WARNING: Option --with-milestone is deprecated and will be ignored." >&2;}
24386 fi
24387 
24388 
24389 
24390 
24391 # Check whether --with-update-version was given.
24392 if test "${with_update_version+set}" = set; then :
24393   withval=$with_update_version; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-update-version is deprecated and will be ignored." >&5
24394 $as_echo "$as_me: WARNING: Option --with-update-version is deprecated and will be ignored." >&2;}
24395 fi
24396 
24397 
24398 
24399 
24400 # Check whether --with-user-release-suffix was given.
24401 if test "${with_user_release_suffix+set}" = set; then :
24402   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
24403 $as_echo "$as_me: WARNING: Option --with-user-release-suffix is deprecated and will be ignored." >&2;}
24404 fi
24405 
24406 
24407 
24408 
24409 # Check whether --with-build-number was given.
24410 if test "${with_build_number+set}" = set; then :
24411   withval=$with_build_number; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-build-number is deprecated and will be ignored." >&5
24412 $as_echo "$as_me: WARNING: Option --with-build-number is deprecated and will be ignored." >&2;}
24413 fi
24414 
24415 
24416 
24417   # Source the version numbers file
24418   . $AUTOCONF_DIR/version-numbers
24419 
24420   # Some non-version number information is set in that file
24421 
24422 
24423 
24424 
24425 
24426 
24427 
24428 
24429 
24430   # Override version from arguments
24431 
24432   # If --with-version-string is set, process it first. It is possible to
24433   # override parts with more specific flags, since these are processed later.
24434 
24435 # Check whether --with-version-string was given.
24436 if test "${with_version_string+set}" = set; then :
24437   withval=$with_version_string;
24438 fi
24439 
24440   if test "x$with_version_string" = xyes; then
24441     as_fn_error $? "--with-version-string must have a value" "$LINENO" 5
24442   elif test "x$with_version_string" != x; then
24443     # Additional [] needed to keep m4 from mangling shell constructs.
24444     if  [[ $with_version_string =~ ^([0-9]+)(\.([0-9]+))?(\.([0-9]+))?(\.([0-9]+))?(-([a-zA-Z]+))?((\+)([0-9]+)?(-([-a-zA-Z0-9.]+))?)?$ ]] ; then
24445       VERSION_MAJOR=${BASH_REMATCH[1]}
24446       VERSION_MINOR=${BASH_REMATCH[3]}
24447       VERSION_SECURITY=${BASH_REMATCH[5]}
24448       VERSION_PATCH=${BASH_REMATCH[7]}
24449       VERSION_PRE=${BASH_REMATCH[9]}
24450       version_plus_separator=${BASH_REMATCH[11]}
24451       VERSION_BUILD=${BASH_REMATCH[12]}
24452       VERSION_OPT=${BASH_REMATCH[14]}
24453       # Unspecified numerical fields are interpreted as 0.
24454       if test "x$VERSION_MINOR" = x; then
24455         VERSION_MINOR=0
24456       fi
24457       if test "x$VERSION_SECURITY" = x; then
24458         VERSION_SECURITY=0
24459       fi
24460       if test "x$VERSION_PATCH" = x; then
24461         VERSION_PATCH=0
24462       fi
24463       if test "x$version_plus_separator" != x \
24464           && test "x$VERSION_BUILD$VERSION_OPT" = x; then
24465         as_fn_error $? "Version string contains + but both 'BUILD' and 'OPT' are missing" "$LINENO" 5
24466       fi
24467       # Stop the version part process from setting default values.
24468       # We still allow them to explicitly override though.
24469       NO_DEFAULT_VERSION_PARTS=true
24470     else
24471       as_fn_error $? "--with-version-string fails to parse as a valid version string: $with_version_string" "$LINENO" 5
24472     fi
24473   fi
24474 
24475 
24476 # Check whether --with-version-pre was given.
24477 if test "${with_version_pre+set}" = set; then :
24478   withval=$with_version_pre; with_version_pre_present=true
24479 else
24480   with_version_pre_present=false
24481 fi
24482 
24483 
24484   if test "x$with_version_pre_present" = xtrue; then
24485     if test "x$with_version_pre" = xyes; then
24486       as_fn_error $? "--with-version-pre must have a value" "$LINENO" 5
24487     elif test "x$with_version_pre" = xno; then
24488       # Interpret --without-* as empty string instead of the literal "no"
24489       VERSION_PRE=
24490     else
24491       # Only [a-zA-Z] is allowed in the VERSION_PRE. Outer [ ] to quote m4.
24492        VERSION_PRE=`$ECHO "$with_version_pre" | $TR -c -d '[a-z][A-Z]'`
24493       if test "x$VERSION_PRE" != "x$with_version_pre"; then
24494         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-version-pre value has been sanitized from '$with_version_pre' to '$VERSION_PRE'" >&5
24495 $as_echo "$as_me: WARNING: --with-version-pre value has been sanitized from '$with_version_pre' to '$VERSION_PRE'" >&2;}
24496       fi
24497     fi
24498   else
24499     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
24500       # Default is to use "internal" as pre
24501       VERSION_PRE="internal"
24502     fi
24503   fi
24504 
24505 
24506 # Check whether --with-version-opt was given.
24507 if test "${with_version_opt+set}" = set; then :
24508   withval=$with_version_opt; with_version_opt_present=true
24509 else
24510   with_version_opt_present=false
24511 fi
24512 
24513 
24514   if test "x$with_version_opt_present" = xtrue; then
24515     if test "x$with_version_opt" = xyes; then
24516       as_fn_error $? "--with-version-opt must have a value" "$LINENO" 5
24517     elif test "x$with_version_opt" = xno; then
24518       # Interpret --without-* as empty string instead of the literal "no"
24519       VERSION_OPT=
24520     else
24521       # Only [-.a-zA-Z0-9] is allowed in the VERSION_OPT. Outer [ ] to quote m4.
24522        VERSION_OPT=`$ECHO "$with_version_opt" | $TR -c -d '[a-z][A-Z][0-9].-'`
24523       if test "x$VERSION_OPT" != "x$with_version_opt"; then
24524         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-version-opt value has been sanitized from '$with_version_opt' to '$VERSION_OPT'" >&5
24525 $as_echo "$as_me: WARNING: --with-version-opt value has been sanitized from '$with_version_opt' to '$VERSION_OPT'" >&2;}
24526       fi
24527     fi
24528   else
24529     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
24530       # Default is to calculate a string like this 'adhoc.<username>.<base dir name>'
24531       # Outer [ ] to quote m4.
24532        basedirname=`$BASENAME "$TOPDIR" | $TR -d -c '[a-z][A-Z][0-9].-'`
24533       VERSION_OPT="adhoc.$USERNAME.$basedirname"
24534     fi
24535   fi
24536 
24537 
24538 # Check whether --with-version-build was given.
24539 if test "${with_version_build+set}" = set; then :
24540   withval=$with_version_build; with_version_build_present=true
24541 else
24542   with_version_build_present=false
24543 fi
24544 
24545 
24546   if test "x$with_version_build_present" = xtrue; then
24547     if test "x$with_version_build" = xyes; then
24548       as_fn_error $? "--with-version-build must have a value" "$LINENO" 5
24549     elif test "x$with_version_build" = xno; then
24550       # Interpret --without-* as empty string instead of the literal "no"
24551       VERSION_BUILD=
24552     elif test "x$with_version_build" = x; then
24553       VERSION_BUILD=
24554     else
24555 
24556   # Additional [] needed to keep m4 from mangling shell constructs.
24557   if  ! [[ "$with_version_build" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
24558     as_fn_error $? "\"$with_version_build\" is not a valid numerical value for VERSION_BUILD" "$LINENO" 5
24559   fi
24560   # Extract the version number without leading zeros.
24561   cleaned_value=${BASH_REMATCH[1]}
24562   if test "x$cleaned_value" = x; then
24563     # Special case for zero
24564     cleaned_value=${BASH_REMATCH[2]}
24565   fi
24566 
24567   if test $cleaned_value -gt 255; then
24568     as_fn_error $? "VERSION_BUILD is given as $with_version_build. This is greater than 255 which is not allowed." "$LINENO" 5
24569   fi
24570   if test "x$cleaned_value" != "x$with_version_build"; then
24571     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_BUILD has been sanitized from '$with_version_build' to '$cleaned_value'" >&5
24572 $as_echo "$as_me: WARNING: Value for VERSION_BUILD has been sanitized from '$with_version_build' to '$cleaned_value'" >&2;}
24573   fi
24574   VERSION_BUILD=$cleaned_value
24575 
24576     fi
24577   else
24578     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
24579       # Default is to not have a build number.
24580       VERSION_BUILD=""
24581       # FIXME: Until all code can cope with an empty VERSION_BUILD, set it to 0.
24582       VERSION_BUILD=0
24583     fi
24584   fi
24585 
24586 
24587 # Check whether --with-version-major was given.
24588 if test "${with_version_major+set}" = set; then :
24589   withval=$with_version_major; with_version_major_present=true
24590 else
24591   with_version_major_present=false
24592 fi
24593 
24594 
24595   if test "x$with_version_major_present" = xtrue; then
24596     if test "x$with_version_major" = xyes; then
24597       as_fn_error $? "--with-version-major must have a value" "$LINENO" 5
24598     else
24599 
24600   # Additional [] needed to keep m4 from mangling shell constructs.
24601   if  ! [[ "$with_version_major" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
24602     as_fn_error $? "\"$with_version_major\" is not a valid numerical value for VERSION_MAJOR" "$LINENO" 5
24603   fi
24604   # Extract the version number without leading zeros.
24605   cleaned_value=${BASH_REMATCH[1]}
24606   if test "x$cleaned_value" = x; then
24607     # Special case for zero
24608     cleaned_value=${BASH_REMATCH[2]}
24609   fi
24610 
24611   if test $cleaned_value -gt 255; then
24612     as_fn_error $? "VERSION_MAJOR is given as $with_version_major. This is greater than 255 which is not allowed." "$LINENO" 5
24613   fi
24614   if test "x$cleaned_value" != "x$with_version_major"; then
24615     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_MAJOR has been sanitized from '$with_version_major' to '$cleaned_value'" >&5
24616 $as_echo "$as_me: WARNING: Value for VERSION_MAJOR has been sanitized from '$with_version_major' to '$cleaned_value'" >&2;}
24617   fi
24618   VERSION_MAJOR=$cleaned_value
24619 
24620     fi
24621   else
24622     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
24623       # Default is to get value from version-numbers
24624       VERSION_MAJOR="$DEFAULT_VERSION_MAJOR"
24625     fi
24626   fi
24627 
24628 
24629 # Check whether --with-version-minor was given.
24630 if test "${with_version_minor+set}" = set; then :
24631   withval=$with_version_minor; with_version_minor_present=true
24632 else
24633   with_version_minor_present=false
24634 fi
24635 
24636 
24637   if test "x$with_version_minor_present" = xtrue; then
24638     if test "x$with_version_minor" = xyes; then
24639       as_fn_error $? "--with-version-minor must have a value" "$LINENO" 5
24640     elif test "x$with_version_minor" = xno; then
24641       # Interpret --without-* as empty string (i.e. 0) instead of the literal "no"
24642       VERSION_MINOR=0
24643     elif test "x$with_version_minor" = x; then
24644       VERSION_MINOR=0
24645     else
24646 
24647   # Additional [] needed to keep m4 from mangling shell constructs.
24648   if  ! [[ "$with_version_minor" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
24649     as_fn_error $? "\"$with_version_minor\" is not a valid numerical value for VERSION_MINOR" "$LINENO" 5
24650   fi
24651   # Extract the version number without leading zeros.
24652   cleaned_value=${BASH_REMATCH[1]}
24653   if test "x$cleaned_value" = x; then
24654     # Special case for zero
24655     cleaned_value=${BASH_REMATCH[2]}
24656   fi
24657 
24658   if test $cleaned_value -gt 255; then
24659     as_fn_error $? "VERSION_MINOR is given as $with_version_minor. This is greater than 255 which is not allowed." "$LINENO" 5
24660   fi
24661   if test "x$cleaned_value" != "x$with_version_minor"; then
24662     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_MINOR has been sanitized from '$with_version_minor' to '$cleaned_value'" >&5
24663 $as_echo "$as_me: WARNING: Value for VERSION_MINOR has been sanitized from '$with_version_minor' to '$cleaned_value'" >&2;}
24664   fi
24665   VERSION_MINOR=$cleaned_value
24666 
24667     fi
24668   else
24669     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
24670       # Default is 0, if unspecified
24671       VERSION_MINOR=$DEFAULT_VERSION_MINOR
24672     fi
24673   fi
24674 
24675 
24676 # Check whether --with-version-security was given.
24677 if test "${with_version_security+set}" = set; then :
24678   withval=$with_version_security; with_version_security_present=true
24679 else
24680   with_version_security_present=false
24681 fi
24682 
24683 
24684   if test "x$with_version_security_present" = xtrue; then
24685     if test "x$with_version_security" = xyes; then
24686       as_fn_error $? "--with-version-security must have a value" "$LINENO" 5
24687     elif test "x$with_version_security" = xno; then
24688       # Interpret --without-* as empty string (i.e. 0) instead of the literal "no"
24689       VERSION_SECURITY=0
24690     elif test "x$with_version_security" = x; then
24691       VERSION_SECURITY=0
24692     else
24693 
24694   # Additional [] needed to keep m4 from mangling shell constructs.
24695   if  ! [[ "$with_version_security" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
24696     as_fn_error $? "\"$with_version_security\" is not a valid numerical value for VERSION_SECURITY" "$LINENO" 5
24697   fi
24698   # Extract the version number without leading zeros.
24699   cleaned_value=${BASH_REMATCH[1]}
24700   if test "x$cleaned_value" = x; then
24701     # Special case for zero
24702     cleaned_value=${BASH_REMATCH[2]}
24703   fi
24704 
24705   if test $cleaned_value -gt 255; then
24706     as_fn_error $? "VERSION_SECURITY is given as $with_version_security. This is greater than 255 which is not allowed." "$LINENO" 5
24707   fi
24708   if test "x$cleaned_value" != "x$with_version_security"; then
24709     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_SECURITY has been sanitized from '$with_version_security' to '$cleaned_value'" >&5
24710 $as_echo "$as_me: WARNING: Value for VERSION_SECURITY has been sanitized from '$with_version_security' to '$cleaned_value'" >&2;}
24711   fi
24712   VERSION_SECURITY=$cleaned_value
24713 
24714     fi
24715   else
24716     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
24717       # Default is 0, if unspecified
24718       VERSION_SECURITY=$DEFAULT_VERSION_SECURITY
24719     fi
24720   fi
24721 
24722 
24723 # Check whether --with-version-patch was given.
24724 if test "${with_version_patch+set}" = set; then :
24725   withval=$with_version_patch; with_version_patch_present=true
24726 else
24727   with_version_patch_present=false
24728 fi
24729 
24730 
24731   if test "x$with_version_patch_present" = xtrue; then
24732     if test "x$with_version_patch" = xyes; then
24733       as_fn_error $? "--with-version-patch must have a value" "$LINENO" 5
24734     elif test "x$with_version_patch" = xno; then
24735       # Interpret --without-* as empty string (i.e. 0) instead of the literal "no"
24736       VERSION_PATCH=0
24737     elif test "x$with_version_patch" = x; then
24738       VERSION_PATCH=0
24739     else
24740 
24741   # Additional [] needed to keep m4 from mangling shell constructs.
24742   if  ! [[ "$with_version_patch" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
24743     as_fn_error $? "\"$with_version_patch\" is not a valid numerical value for VERSION_PATCH" "$LINENO" 5
24744   fi
24745   # Extract the version number without leading zeros.
24746   cleaned_value=${BASH_REMATCH[1]}
24747   if test "x$cleaned_value" = x; then
24748     # Special case for zero
24749     cleaned_value=${BASH_REMATCH[2]}
24750   fi
24751 
24752   if test $cleaned_value -gt 255; then
24753     as_fn_error $? "VERSION_PATCH is given as $with_version_patch. This is greater than 255 which is not allowed." "$LINENO" 5
24754   fi
24755   if test "x$cleaned_value" != "x$with_version_patch"; then
24756     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_PATCH has been sanitized from '$with_version_patch' to '$cleaned_value'" >&5
24757 $as_echo "$as_me: WARNING: Value for VERSION_PATCH has been sanitized from '$with_version_patch' to '$cleaned_value'" >&2;}
24758   fi
24759   VERSION_PATCH=$cleaned_value
24760 
24761     fi
24762   else
24763     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
24764       # Default is 0, if unspecified
24765       VERSION_PATCH=$DEFAULT_VERSION_PATCH
24766     fi
24767   fi
24768 
24769   # Calculate derived version properties
24770 
24771   # Set VERSION_IS_GA based on if VERSION_PRE has a value
24772   if test "x$VERSION_PRE" = x; then
24773     VERSION_IS_GA=true
24774   else
24775     VERSION_IS_GA=false
24776   fi
24777 
24778   # VERSION_NUMBER but always with exactly 4 positions, with 0 for empty positions.
24779   VERSION_NUMBER_FOUR_POSITIONS=$VERSION_MAJOR.$VERSION_MINOR.$VERSION_SECURITY.$VERSION_PATCH
24780 
24781   stripped_version_number=$VERSION_NUMBER_FOUR_POSITIONS
24782   # Strip trailing zeroes from stripped_version_number
24783   for i in 1 2 3 ; do stripped_version_number=${stripped_version_number%.0} ; done
24784   VERSION_NUMBER=$stripped_version_number
24785 
24786   # The complete version string, with additional build information
24787   if test "x$VERSION_BUILD$VERSION_OPT" = x; then
24788     VERSION_STRING=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE}
24789   else
24790     # If either build or opt is set, we need a + separator
24791     VERSION_STRING=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE}+$VERSION_BUILD${VERSION_OPT:+-$VERSION_OPT}
24792   fi
24793 
24794   # The short version string, just VERSION_NUMBER and PRE, if present.
24795   VERSION_SHORT=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE}
24796 
24797   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version string" >&5
24798 $as_echo_n "checking for version string... " >&6; }
24799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VERSION_STRING" >&5
24800 $as_echo "$VERSION_STRING" >&6; }
24801 
24802 
24803 
24804 
24805 
24806 
24807 
24808 
24809 
24810 
24811 
24812 
24813 
24814 
24815 
24816 ###############################################################################
24817 #
24818 # Setup BootJDK, used to bootstrap the build.
24819 #
24820 ###############################################################################
24821 
24822 
24823   BOOT_JDK_FOUND=no
24824 
24825 # Check whether --with-boot-jdk was given.
24826 if test "${with_boot_jdk+set}" = set; then :
24827   withval=$with_boot_jdk;
24828 fi
24829 
24830 
24831   # We look for the Boot JDK through various means, going from more certain to
24832   # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if
24833   # we detected something (if so, the path to the jdk is in BOOT_JDK). But we
24834   # must check if this is indeed valid; otherwise we'll continue looking.
24835 
24836   # Test: Is bootjdk explicitly set by command line arguments?
24837 
24838   if test "x$BOOT_JDK_FOUND" = xno; then
24839     # Now execute the test
24840 
24841   if test "x$with_boot_jdk" != x; then
24842     BOOT_JDK=$with_boot_jdk
24843     BOOT_JDK_FOUND=maybe
24844     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5
24845 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;}
24846   fi
24847 
24848 
24849     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24850     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24851       # Do we have a bin/java?
24852       if test ! -x "$BOOT_JDK/bin/java"; then
24853         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24854 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24855         BOOT_JDK_FOUND=no
24856       else
24857         # Do we have a bin/javac?
24858         if test ! -x "$BOOT_JDK/bin/javac"; then
24859           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24860 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24861           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24862 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24863           BOOT_JDK_FOUND=no
24864         else
24865           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24866           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1`
24867 
24868           # Extra M4 quote needed to protect [] in grep expression.
24869           FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'`
24870           if test "x$FOUND_CORRECT_VERSION" = x; then
24871             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24872 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24873             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
24874 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
24875             BOOT_JDK_FOUND=no
24876           else
24877             # We're done! :-)
24878             BOOT_JDK_FOUND=yes
24879 
24880   # Only process if variable expands to non-empty
24881 
24882   if test "x$BOOT_JDK" != x; then
24883     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24884 
24885   # Input might be given as Windows format, start by converting to
24886   # unix format.
24887   path="$BOOT_JDK"
24888   new_path=`$CYGPATH -u "$path"`
24889 
24890   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24891   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24892   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24893   # "foo.exe" is OK but "foo" is an error.
24894   #
24895   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24896   # It is also a way to make sure we got the proper file name for the real test later on.
24897   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24898   if test "x$test_shortpath" = x; then
24899     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24900 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24901     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24902   fi
24903 
24904   # Call helper function which possibly converts this using DOS-style short mode.
24905   # If so, the updated path is stored in $new_path.
24906 
24907   input_path="$new_path"
24908   # Check if we need to convert this using DOS-style short mode. If the path
24909   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24910   # take no chances and rewrite it.
24911   # Note: m4 eats our [], so we need to use [ and ] instead.
24912   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24913   if test "x$has_forbidden_chars" != x; then
24914     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24915     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24916     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24917     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24918       # Going to short mode and back again did indeed matter. Since short mode is
24919       # case insensitive, let's make it lowercase to improve readability.
24920       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24921       # Now convert it back to Unix-style (cygpath)
24922       input_path=`$CYGPATH -u "$shortmode_path"`
24923       new_path="$input_path"
24924     fi
24925   fi
24926 
24927   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24928   if test "x$test_cygdrive_prefix" = x; then
24929     # As a simple fix, exclude /usr/bin since it's not a real path.
24930     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24931       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24932       # a path prefixed by /cygdrive for fixpath to work.
24933       new_path="$CYGWIN_ROOT_PATH$input_path"
24934     fi
24935   fi
24936 
24937 
24938   if test "x$path" != "x$new_path"; then
24939     BOOT_JDK="$new_path"
24940     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24941 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24942   fi
24943 
24944     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24945 
24946   path="$BOOT_JDK"
24947   has_colon=`$ECHO $path | $GREP ^.:`
24948   new_path="$path"
24949   if test "x$has_colon" = x; then
24950     # Not in mixed or Windows style, start by that.
24951     new_path=`cmd //c echo $path`
24952   fi
24953 
24954 
24955   input_path="$new_path"
24956   # Check if we need to convert this using DOS-style short mode. If the path
24957   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24958   # take no chances and rewrite it.
24959   # Note: m4 eats our [], so we need to use [ and ] instead.
24960   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24961   if test "x$has_forbidden_chars" != x; then
24962     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24963     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24964   fi
24965 
24966 
24967   windows_path="$new_path"
24968   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24969     unix_path=`$CYGPATH -u "$windows_path"`
24970     new_path="$unix_path"
24971   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24972     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24973     new_path="$unix_path"
24974   fi
24975 
24976   if test "x$path" != "x$new_path"; then
24977     BOOT_JDK="$new_path"
24978     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24979 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24980   fi
24981 
24982   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24983   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24984 
24985     else
24986       # We're on a unix platform. Hooray! :)
24987       path="$BOOT_JDK"
24988       has_space=`$ECHO "$path" | $GREP " "`
24989       if test "x$has_space" != x; then
24990         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24991 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24992         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24993       fi
24994 
24995       # Use eval to expand a potential ~
24996       eval path="$path"
24997       if test ! -f "$path" && test ! -d "$path"; then
24998         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24999       fi
25000 
25001       if test -d "$path"; then
25002         BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
25003       else
25004         dir="`$DIRNAME "$path"`"
25005         base="`$BASENAME "$path"`"
25006         BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base"
25007       fi
25008     fi
25009   fi
25010 
25011             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
25012 $as_echo_n "checking for Boot JDK... " >&6; }
25013             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
25014 $as_echo "$BOOT_JDK" >&6; }
25015             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
25016 $as_echo_n "checking Boot JDK version... " >&6; }
25017             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
25018             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
25019 $as_echo "$BOOT_JDK_VERSION" >&6; }
25020           fi # end check jdk version
25021         fi # end check javac
25022       fi # end check java
25023     fi # end check boot jdk found
25024   fi
25025 
25026   if test "x$with_boot_jdk" != x && test "x$BOOT_JDK_FOUND" = xno; then
25027     # Having specified an argument which is incorrect will produce an instant failure;
25028     # we should not go on looking
25029     as_fn_error $? "The path given by --with-boot-jdk does not contain a valid Boot JDK" "$LINENO" 5
25030   fi
25031 
25032   # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home?
25033 
25034   if test "x$BOOT_JDK_FOUND" = xno; then
25035     # Now execute the test
25036 
25037   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
25038     # First check at user selected default
25039 
25040   if test "x$BOOT_JDK_FOUND" = xno; then
25041     # Now execute the test
25042 
25043   if test -x /usr/libexec/java_home; then
25044     BOOT_JDK=`/usr/libexec/java_home `
25045     BOOT_JDK_FOUND=maybe
25046     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home " >&5
25047 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home " >&6;}
25048   fi
25049 
25050 
25051     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
25052     if test "x$BOOT_JDK_FOUND" = xmaybe; then
25053       # Do we have a bin/java?
25054       if test ! -x "$BOOT_JDK/bin/java"; then
25055         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
25056 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
25057         BOOT_JDK_FOUND=no
25058       else
25059         # Do we have a bin/javac?
25060         if test ! -x "$BOOT_JDK/bin/javac"; then
25061           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
25062 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
25063           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
25064 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
25065           BOOT_JDK_FOUND=no
25066         else
25067           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
25068           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1`
25069 
25070           # Extra M4 quote needed to protect [] in grep expression.
25071           FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'`
25072           if test "x$FOUND_CORRECT_VERSION" = x; then
25073             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
25074 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
25075             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
25076 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
25077             BOOT_JDK_FOUND=no
25078           else
25079             # We're done! :-)
25080             BOOT_JDK_FOUND=yes
25081 
25082   # Only process if variable expands to non-empty
25083 
25084   if test "x$BOOT_JDK" != x; then
25085     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
25086 
25087   # Input might be given as Windows format, start by converting to
25088   # unix format.
25089   path="$BOOT_JDK"
25090   new_path=`$CYGPATH -u "$path"`
25091 
25092   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
25093   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
25094   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
25095   # "foo.exe" is OK but "foo" is an error.
25096   #
25097   # This test is therefore slightly more accurate than "test -f" to check for file precense.
25098   # It is also a way to make sure we got the proper file name for the real test later on.
25099   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
25100   if test "x$test_shortpath" = x; then
25101     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
25102 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
25103     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
25104   fi
25105 
25106   # Call helper function which possibly converts this using DOS-style short mode.
25107   # If so, the updated path is stored in $new_path.
25108 
25109   input_path="$new_path"
25110   # Check if we need to convert this using DOS-style short mode. If the path
25111   # contains just simple characters, use it. Otherwise (spaces, weird characters),
25112   # take no chances and rewrite it.
25113   # Note: m4 eats our [], so we need to use [ and ] instead.
25114   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
25115   if test "x$has_forbidden_chars" != x; then
25116     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
25117     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
25118     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
25119     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
25120       # Going to short mode and back again did indeed matter. Since short mode is
25121       # case insensitive, let's make it lowercase to improve readability.
25122       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
25123       # Now convert it back to Unix-style (cygpath)
25124       input_path=`$CYGPATH -u "$shortmode_path"`
25125       new_path="$input_path"
25126     fi
25127   fi
25128 
25129   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
25130   if test "x$test_cygdrive_prefix" = x; then
25131     # As a simple fix, exclude /usr/bin since it's not a real path.
25132     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
25133       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
25134       # a path prefixed by /cygdrive for fixpath to work.
25135       new_path="$CYGWIN_ROOT_PATH$input_path"
25136     fi
25137   fi
25138 
25139 
25140   if test "x$path" != "x$new_path"; then
25141     BOOT_JDK="$new_path"
25142     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
25143 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
25144   fi
25145 
25146     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
25147 
25148   path="$BOOT_JDK"
25149   has_colon=`$ECHO $path | $GREP ^.:`
25150   new_path="$path"
25151   if test "x$has_colon" = x; then
25152     # Not in mixed or Windows style, start by that.
25153     new_path=`cmd //c echo $path`
25154   fi
25155 
25156 
25157   input_path="$new_path"
25158   # Check if we need to convert this using DOS-style short mode. If the path
25159   # contains just simple characters, use it. Otherwise (spaces, weird characters),
25160   # take no chances and rewrite it.
25161   # Note: m4 eats our [], so we need to use [ and ] instead.
25162   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
25163   if test "x$has_forbidden_chars" != x; then
25164     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
25165     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
25166   fi
25167 
25168 
25169   windows_path="$new_path"
25170   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
25171     unix_path=`$CYGPATH -u "$windows_path"`
25172     new_path="$unix_path"
25173   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
25174     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
25175     new_path="$unix_path"
25176   fi
25177 
25178   if test "x$path" != "x$new_path"; then
25179     BOOT_JDK="$new_path"
25180     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
25181 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
25182   fi
25183 
25184   # Save the first 10 bytes of this path to the storage, so fixpath can work.
25185   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
25186 
25187     else
25188       # We're on a unix platform. Hooray! :)
25189       path="$BOOT_JDK"
25190       has_space=`$ECHO "$path" | $GREP " "`
25191       if test "x$has_space" != x; then
25192         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
25193 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
25194         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
25195       fi
25196 
25197       # Use eval to expand a potential ~
25198       eval path="$path"
25199       if test ! -f "$path" && test ! -d "$path"; then
25200         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
25201       fi
25202 
25203       if test -d "$path"; then
25204         BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
25205       else
25206         dir="`$DIRNAME "$path"`"
25207         base="`$BASENAME "$path"`"
25208         BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base"
25209       fi
25210     fi
25211   fi
25212 
25213             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
25214 $as_echo_n "checking for Boot JDK... " >&6; }
25215             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
25216 $as_echo "$BOOT_JDK" >&6; }
25217             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
25218 $as_echo_n "checking Boot JDK version... " >&6; }
25219             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
25220             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
25221 $as_echo "$BOOT_JDK_VERSION" >&6; }
25222           fi # end check jdk version
25223         fi # end check javac
25224       fi # end check java
25225     fi # end check boot jdk found
25226   fi
25227 
25228     # If that did not work out (e.g. too old), try explicit versions instead
25229 
25230   if test "x$BOOT_JDK_FOUND" = xno; then
25231     # Now execute the test
25232 
25233   if test -x /usr/libexec/java_home; then
25234     BOOT_JDK=`/usr/libexec/java_home -v 1.9`
25235     BOOT_JDK_FOUND=maybe
25236     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&5
25237 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&6;}
25238   fi
25239 
25240 
25241     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
25242     if test "x$BOOT_JDK_FOUND" = xmaybe; then
25243       # Do we have a bin/java?
25244       if test ! -x "$BOOT_JDK/bin/java"; then
25245         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
25246 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
25247         BOOT_JDK_FOUND=no
25248       else
25249         # Do we have a bin/javac?
25250         if test ! -x "$BOOT_JDK/bin/javac"; then
25251           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
25252 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
25253           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
25254 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
25255           BOOT_JDK_FOUND=no
25256         else
25257           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
25258           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1`
25259 
25260           # Extra M4 quote needed to protect [] in grep expression.
25261           FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'`
25262           if test "x$FOUND_CORRECT_VERSION" = x; then
25263             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
25264 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
25265             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
25266 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
25267             BOOT_JDK_FOUND=no
25268           else
25269             # We're done! :-)
25270             BOOT_JDK_FOUND=yes
25271 
25272   # Only process if variable expands to non-empty
25273 
25274   if test "x$BOOT_JDK" != x; then
25275     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
25276 
25277   # Input might be given as Windows format, start by converting to
25278   # unix format.
25279   path="$BOOT_JDK"
25280   new_path=`$CYGPATH -u "$path"`
25281 
25282   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
25283   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
25284   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
25285   # "foo.exe" is OK but "foo" is an error.
25286   #
25287   # This test is therefore slightly more accurate than "test -f" to check for file precense.
25288   # It is also a way to make sure we got the proper file name for the real test later on.
25289   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
25290   if test "x$test_shortpath" = x; then
25291     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
25292 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
25293     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
25294   fi
25295 
25296   # Call helper function which possibly converts this using DOS-style short mode.
25297   # If so, the updated path is stored in $new_path.
25298 
25299   input_path="$new_path"
25300   # Check if we need to convert this using DOS-style short mode. If the path
25301   # contains just simple characters, use it. Otherwise (spaces, weird characters),
25302   # take no chances and rewrite it.
25303   # Note: m4 eats our [], so we need to use [ and ] instead.
25304   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
25305   if test "x$has_forbidden_chars" != x; then
25306     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
25307     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
25308     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
25309     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
25310       # Going to short mode and back again did indeed matter. Since short mode is
25311       # case insensitive, let's make it lowercase to improve readability.
25312       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
25313       # Now convert it back to Unix-style (cygpath)
25314       input_path=`$CYGPATH -u "$shortmode_path"`
25315       new_path="$input_path"
25316     fi
25317   fi
25318 
25319   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
25320   if test "x$test_cygdrive_prefix" = x; then
25321     # As a simple fix, exclude /usr/bin since it's not a real path.
25322     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
25323       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
25324       # a path prefixed by /cygdrive for fixpath to work.
25325       new_path="$CYGWIN_ROOT_PATH$input_path"
25326     fi
25327   fi
25328 
25329 
25330   if test "x$path" != "x$new_path"; then
25331     BOOT_JDK="$new_path"
25332     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
25333 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
25334   fi
25335 
25336     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
25337 
25338   path="$BOOT_JDK"
25339   has_colon=`$ECHO $path | $GREP ^.:`
25340   new_path="$path"
25341   if test "x$has_colon" = x; then
25342     # Not in mixed or Windows style, start by that.
25343     new_path=`cmd //c echo $path`
25344   fi
25345 
25346 
25347   input_path="$new_path"
25348   # Check if we need to convert this using DOS-style short mode. If the path
25349   # contains just simple characters, use it. Otherwise (spaces, weird characters),
25350   # take no chances and rewrite it.
25351   # Note: m4 eats our [], so we need to use [ and ] instead.
25352   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
25353   if test "x$has_forbidden_chars" != x; then
25354     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
25355     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
25356   fi
25357 
25358 
25359   windows_path="$new_path"
25360   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
25361     unix_path=`$CYGPATH -u "$windows_path"`
25362     new_path="$unix_path"
25363   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
25364     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
25365     new_path="$unix_path"
25366   fi
25367 
25368   if test "x$path" != "x$new_path"; then
25369     BOOT_JDK="$new_path"
25370     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
25371 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
25372   fi
25373 
25374   # Save the first 10 bytes of this path to the storage, so fixpath can work.
25375   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
25376 
25377     else
25378       # We're on a unix platform. Hooray! :)
25379       path="$BOOT_JDK"
25380       has_space=`$ECHO "$path" | $GREP " "`
25381       if test "x$has_space" != x; then
25382         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
25383 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
25384         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
25385       fi
2538