1 #!/bin/bash
   2 #
   3 # ##########################################################
   4 # ### THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. ###
   5 # ##########################################################
   6 #
   7 #! /bin/sh
   8 # Guess values for system-dependent variables and create Makefiles.
   9 # Generated by GNU Autoconf 2.69 for OpenJDK jdk9.
  10 #
  11 # Report bugs to <build-dev@openjdk.java.net>.
  12 #
  13 #
  14 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  15 #
  16 #
  17 # This configure script is free software; the Free Software Foundation
  18 # gives unlimited permission to copy, distribute and modify it.
  19 ## -------------------- ##
  20 ## M4sh Initialization. ##
  21 ## -------------------- ##
  22 
  23 # Be more Bourne compatible
  24 DUALCASE=1; export DUALCASE # for MKS sh
  25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  26   emulate sh
  27   NULLCMD=:
  28   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  29   # is contrary to our usage.  Disable this feature.
  30   alias -g '${1+"$@"}'='"$@"'
  31   setopt NO_GLOB_SUBST
  32 else
  33   case `(set -o) 2>/dev/null` in #(
  34   *posix*) :
  35     set -o posix ;; #(
  36   *) :
  37      ;;
  38 esac
  39 fi
  40 
  41 
  42 as_nl='
  43 '
  44 export as_nl
  45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
  46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  49 # Prefer a ksh shell builtin over an external printf program on Solaris,
  50 # but without wasting forks for bash or zsh.
  51 if test -z "$BASH_VERSION$ZSH_VERSION" \
  52     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  53   as_echo='print -r --'
  54   as_echo_n='print -rn --'
  55 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  56   as_echo='printf %s\n'
  57   as_echo_n='printf %s'
  58 else
  59   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  60     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  61     as_echo_n='/usr/ucb/echo -n'
  62   else
  63     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  64     as_echo_n_body='eval
  65       arg=$1;
  66       case $arg in #(
  67       *"$as_nl"*)
  68         expr "X$arg" : "X\\(.*\\)$as_nl";
  69         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  70       esac;
  71       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  72     '
  73     export as_echo_n_body
  74     as_echo_n='sh -c $as_echo_n_body as_echo'
  75   fi
  76   export as_echo_body
  77   as_echo='sh -c $as_echo_body as_echo'
  78 fi
  79 
  80 # The user is always right.
  81 if test "${PATH_SEPARATOR+set}" != set; then
  82   PATH_SEPARATOR=:
  83   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  84     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  85       PATH_SEPARATOR=';'
  86   }
  87 fi
  88 
  89 
  90 # IFS
  91 # We need space, tab and new line, in precisely that order.  Quoting is
  92 # there to prevent editors from complaining about space-tab.
  93 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  94 # splitting by setting IFS to empty value.)
  95 IFS=" ""        $as_nl"
  96 
  97 # Find who we are.  Look in the path if we contain no directory separator.
  98 as_myself=
  99 case $0 in #((
 100   *[\\/]* ) as_myself=$0 ;;
 101   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 102 for as_dir in $PATH
 103 do
 104   IFS=$as_save_IFS
 105   test -z "$as_dir" && as_dir=.
 106     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 107   done
 108 IFS=$as_save_IFS
 109 
 110      ;;
 111 esac
 112 # We did not find ourselves, most probably we were run as `sh COMMAND'
 113 # in which case we are not to be found in the path.
 114 if test "x$as_myself" = x; then
 115   as_myself=$0
 116 fi
 117 if test ! -f "$as_myself"; then
 118   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 119   exit 1
 120 fi
 121 
 122 # Unset variables that we do not need and which cause bugs (e.g. in
 123 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 124 # suppresses any "Segmentation fault" message there.  '((' could
 125 # trigger a bug in pdksh 5.2.14.
 126 for as_var in BASH_ENV ENV MAIL MAILPATH
 127 do eval test x\${$as_var+set} = xset \
 128   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 129 done
 130 PS1='$ '
 131 PS2='> '
 132 PS4='+ '
 133 
 134 # NLS nuisances.
 135 LC_ALL=C
 136 export LC_ALL
 137 LANGUAGE=C
 138 export LANGUAGE
 139 
 140 # CDPATH.
 141 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 142 
 143 # Use a proper internal environment variable to ensure we don't fall
 144   # into an infinite loop, continuously re-executing ourselves.
 145   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
 146     _as_can_reexec=no; export _as_can_reexec;
 147     # We cannot yet assume a decent shell, so we have to provide a
 148 # neutralization value for shells without unset; and this also
 149 # works around shells that cannot unset nonexistent variables.
 150 # Preserve -v and -x to the replacement shell.
 151 BASH_ENV=/dev/null
 152 ENV=/dev/null
 153 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 154 case $- in # ((((
 155   *v*x* | *x*v* ) as_opts=-vx ;;
 156   *v* ) as_opts=-v ;;
 157   *x* ) as_opts=-x ;;
 158   * ) as_opts= ;;
 159 esac
 160 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
 161 # Admittedly, this is quite paranoid, since all the known shells bail
 162 # out after a failed `exec'.
 163 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
 164 as_fn_exit 255
 165   fi
 166   # We don't want this to propagate to other subprocesses.
 167           { _as_can_reexec=; unset _as_can_reexec;}
 168 if test "x$CONFIG_SHELL" = x; then
 169   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
 170   emulate sh
 171   NULLCMD=:
 172   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
 173   # is contrary to our usage.  Disable this feature.
 174   alias -g '\${1+\"\$@\"}'='\"\$@\"'
 175   setopt NO_GLOB_SUBST
 176 else
 177   case \`(set -o) 2>/dev/null\` in #(
 178   *posix*) :
 179     set -o posix ;; #(
 180   *) :
 181      ;;
 182 esac
 183 fi
 184 "
 185   as_required="as_fn_return () { (exit \$1); }
 186 as_fn_success () { as_fn_return 0; }
 187 as_fn_failure () { as_fn_return 1; }
 188 as_fn_ret_success () { return 0; }
 189 as_fn_ret_failure () { return 1; }
 190 
 191 exitcode=0
 192 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
 193 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
 194 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
 195 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
 196 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
 197 
 198 else
 199   exitcode=1; echo positional parameters were not saved.
 200 fi
 201 test x\$exitcode = x0 || exit 1
 202 test -x / || exit 1"
 203   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
 204   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
 205   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
 206   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
 207 test \$(( 1 + 1 )) = 2 || exit 1"
 208   if (eval "$as_required") 2>/dev/null; then :
 209   as_have_required=yes
 210 else
 211   as_have_required=no
 212 fi
 213   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
 214 
 215 else
 216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 217 as_found=false
 218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 219 do
 220   IFS=$as_save_IFS
 221   test -z "$as_dir" && as_dir=.
 222   as_found=:
 223   case $as_dir in #(
 224          /*)
 225            for as_base in sh bash ksh sh5; do
 226              # Try only shells that exist, to save several forks.
 227              as_shell=$as_dir/$as_base
 228              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 229                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
 230   CONFIG_SHELL=$as_shell as_have_required=yes
 231                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
 232   break 2
 233 fi
 234 fi
 235            done;;
 236        esac
 237   as_found=false
 238 done
 239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
 240               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
 241   CONFIG_SHELL=$SHELL as_have_required=yes
 242 fi; }
 243 IFS=$as_save_IFS
 244 
 245 
 246       if test "x$CONFIG_SHELL" != x; then :
 247   export CONFIG_SHELL
 248              # We cannot yet assume a decent shell, so we have to provide a
 249 # neutralization value for shells without unset; and this also
 250 # works around shells that cannot unset nonexistent variables.
 251 # Preserve -v and -x to the replacement shell.
 252 BASH_ENV=/dev/null
 253 ENV=/dev/null
 254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 255 case $- in # ((((
 256   *v*x* | *x*v* ) as_opts=-vx ;;
 257   *v* ) as_opts=-v ;;
 258   *x* ) as_opts=-x ;;
 259   * ) as_opts= ;;
 260 esac
 261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
 262 # Admittedly, this is quite paranoid, since all the known shells bail
 263 # out after a failed `exec'.
 264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
 265 exit 255
 266 fi
 267 
 268     if test x$as_have_required = xno; then :
 269   $as_echo "$0: This script requires a shell more modern than all"
 270   $as_echo "$0: the shells that I found on your system."
 271   if test x${ZSH_VERSION+set} = xset ; then
 272     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
 273     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
 274   else
 275     $as_echo "$0: Please tell bug-autoconf@gnu.org and
 276 $0: build-dev@openjdk.java.net about your system, including
 277 $0: any error possibly output before this message. Then
 278 $0: install a modern shell, or manually run the script
 279 $0: under such a shell if you do have one."
 280   fi
 281   exit 1
 282 fi
 283 fi
 284 fi
 285 SHELL=${CONFIG_SHELL-/bin/sh}
 286 export SHELL
 287 # Unset more variables known to interfere with behavior of common tools.
 288 CLICOLOR_FORCE= GREP_OPTIONS=
 289 unset CLICOLOR_FORCE GREP_OPTIONS
 290 
 291 ## --------------------- ##
 292 ## M4sh Shell Functions. ##
 293 ## --------------------- ##
 294 # as_fn_unset VAR
 295 # ---------------
 296 # Portably unset VAR.
 297 as_fn_unset ()
 298 {
 299   { eval $1=; unset $1;}
 300 }
 301 as_unset=as_fn_unset
 302 
 303 # as_fn_set_status STATUS
 304 # -----------------------
 305 # Set $? to STATUS, without forking.
 306 as_fn_set_status ()
 307 {
 308   return $1
 309 } # as_fn_set_status
 310 
 311 # as_fn_exit STATUS
 312 # -----------------
 313 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 314 as_fn_exit ()
 315 {
 316   set +e
 317   as_fn_set_status $1
 318   exit $1
 319 } # as_fn_exit
 320 
 321 # as_fn_mkdir_p
 322 # -------------
 323 # Create "$as_dir" as a directory, including parents if necessary.
 324 as_fn_mkdir_p ()
 325 {
 326 
 327   case $as_dir in #(
 328   -*) as_dir=./$as_dir;;
 329   esac
 330   test -d "$as_dir" || eval $as_mkdir_p || {
 331     as_dirs=
 332     while :; do
 333       case $as_dir in #(
 334       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 335       *) as_qdir=$as_dir;;
 336       esac
 337       as_dirs="'$as_qdir' $as_dirs"
 338       as_dir=`$as_dirname -- "$as_dir" ||
 339 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 340          X"$as_dir" : 'X\(//\)[^/]' \| \
 341          X"$as_dir" : 'X\(//\)$' \| \
 342          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 343 $as_echo X"$as_dir" |
 344     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 345             s//\1/
 346             q
 347           }
 348           /^X\(\/\/\)[^/].*/{
 349             s//\1/
 350             q
 351           }
 352           /^X\(\/\/\)$/{
 353             s//\1/
 354             q
 355           }
 356           /^X\(\/\).*/{
 357             s//\1/
 358             q
 359           }
 360           s/.*/./; q'`
 361       test -d "$as_dir" && break
 362     done
 363     test -z "$as_dirs" || eval "mkdir $as_dirs"
 364   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 365 
 366 
 367 } # as_fn_mkdir_p
 368 
 369 # as_fn_executable_p FILE
 370 # -----------------------
 371 # Test if FILE is an executable regular file.
 372 as_fn_executable_p ()
 373 {
 374   test -f "$1" && test -x "$1"
 375 } # as_fn_executable_p
 376 # as_fn_append VAR VALUE
 377 # ----------------------
 378 # Append the text in VALUE to the end of the definition contained in VAR. Take
 379 # advantage of any shell optimizations that allow amortized linear growth over
 380 # repeated appends, instead of the typical quadratic growth present in naive
 381 # implementations.
 382 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 383   eval 'as_fn_append ()
 384   {
 385     eval $1+=\$2
 386   }'
 387 else
 388   as_fn_append ()
 389   {
 390     eval $1=\$$1\$2
 391   }
 392 fi # as_fn_append
 393 
 394 # as_fn_arith ARG...
 395 # ------------------
 396 # Perform arithmetic evaluation on the ARGs, and store the result in the
 397 # global $as_val. Take advantage of shells that can avoid forks. The arguments
 398 # must be portable across $(()) and expr.
 399 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 400   eval 'as_fn_arith ()
 401   {
 402     as_val=$(( $* ))
 403   }'
 404 else
 405   as_fn_arith ()
 406   {
 407     as_val=`expr "$@" || test $? -eq 1`
 408   }
 409 fi # as_fn_arith
 410 
 411 
 412 # as_fn_error STATUS ERROR [LINENO LOG_FD]
 413 # ----------------------------------------
 414 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 415 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 416 # script with STATUS, using 1 if that was 0.
 417 as_fn_error ()
 418 {
 419   as_status=$1; test $as_status -eq 0 && as_status=1
 420   if test "$4"; then
 421     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 422     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 423   fi
 424   $as_echo "$as_me: error: $2" >&2
 425   as_fn_exit $as_status
 426 } # as_fn_error
 427 
 428 if expr a : '\(a\)' >/dev/null 2>&1 &&
 429    test "X`expr 00001 : '.*\(...\)'`" = X001; then
 430   as_expr=expr
 431 else
 432   as_expr=false
 433 fi
 434 
 435 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 436   as_basename=basename
 437 else
 438   as_basename=false
 439 fi
 440 
 441 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 442   as_dirname=dirname
 443 else
 444   as_dirname=false
 445 fi
 446 
 447 as_me=`$as_basename -- "$0" ||
 448 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 449          X"$0" : 'X\(//\)$' \| \
 450          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 451 $as_echo X/"$0" |
 452     sed '/^.*\/\([^/][^/]*\)\/*$/{
 453             s//\1/
 454             q
 455           }
 456           /^X\/\(\/\/\)$/{
 457             s//\1/
 458             q
 459           }
 460           /^X\/\(\/\).*/{
 461             s//\1/
 462             q
 463           }
 464           s/.*/./; q'`
 465 
 466 # Avoid depending upon Character Ranges.
 467 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 468 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 469 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 470 as_cr_digits='0123456789'
 471 as_cr_alnum=$as_cr_Letters$as_cr_digits
 472 
 473 
 474   as_lineno_1=$LINENO as_lineno_1a=$LINENO
 475   as_lineno_2=$LINENO as_lineno_2a=$LINENO
 476   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
 477   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
 478   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
 479   sed -n '
 480     p
 481     /[$]LINENO/=
 482   ' <$as_myself |
 483     sed '
 484       s/[$]LINENO.*/&-/
 485       t lineno
 486       b
 487       :lineno
 488       N
 489       :loop
 490       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 491       t loop
 492       s/-\n.*//
 493     ' >$as_me.lineno &&
 494   chmod +x "$as_me.lineno" ||
 495     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
 496 
 497   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
 498   # already done that, so ensure we don't try to do so again and fall
 499   # in an infinite loop.  This has already happened in practice.
 500   _as_can_reexec=no; export _as_can_reexec
 501   # Don't try to exec as it changes $[0], causing all sort of problems
 502   # (the dirname of $[0] is not the place where we might find the
 503   # original and so on.  Autoconf is especially sensitive to this).
 504   . "./$as_me.lineno"
 505   # Exit status is that of the last command.
 506   exit
 507 }
 508 
 509 ECHO_C= ECHO_N= ECHO_T=
 510 case `echo -n x` in #(((((
 511 -n*)
 512   case `echo 'xy\c'` in
 513   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 514   xy)  ECHO_C='\c';;
 515   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 516        ECHO_T=' ';;
 517   esac;;
 518 *)
 519   ECHO_N='-n';;
 520 esac
 521 
 522 rm -f conf$$ conf$$.exe conf$$.file
 523 if test -d conf$$.dir; then
 524   rm -f conf$$.dir/conf$$.file
 525 else
 526   rm -f conf$$.dir
 527   mkdir conf$$.dir 2>/dev/null
 528 fi
 529 if (echo >conf$$.file) 2>/dev/null; then
 530   if ln -s conf$$.file conf$$ 2>/dev/null; then
 531     as_ln_s='ln -s'
 532     # ... but there are two gotchas:
 533     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 534     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 535     # In both cases, we have to default to `cp -pR'.
 536     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 537       as_ln_s='cp -pR'
 538   elif ln conf$$.file conf$$ 2>/dev/null; then
 539     as_ln_s=ln
 540   else
 541     as_ln_s='cp -pR'
 542   fi
 543 else
 544   as_ln_s='cp -pR'
 545 fi
 546 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 547 rmdir conf$$.dir 2>/dev/null
 548 
 549 if mkdir -p . 2>/dev/null; then
 550   as_mkdir_p='mkdir -p "$as_dir"'
 551 else
 552   test -d ./-p && rmdir ./-p
 553   as_mkdir_p=false
 554 fi
 555 
 556 as_test_x='test -x'
 557 as_executable_p=as_fn_executable_p
 558 
 559 # Sed expression to map a string onto a valid CPP name.
 560 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 561 
 562 # Sed expression to map a string onto a valid variable name.
 563 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 564 
 565 
 566 test -n "$DJDIR" || exec 7<&0 </dev/null
 567 exec 6>&1
 568 
 569 # Name of the host.
 570 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
 571 # so uname gets run too.
 572 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 573 
 574 #
 575 # Initializations.
 576 #
 577 ac_default_prefix=/usr/local
 578 ac_clean_files=
 579 ac_config_libobj_dir=.
 580 LIBOBJS=
 581 cross_compiling=no
 582 subdirs=
 583 MFLAGS=
 584 MAKEFLAGS=
 585 
 586 # Identity of this package.
 587 PACKAGE_NAME='OpenJDK'
 588 PACKAGE_TARNAME='openjdk'
 589 PACKAGE_VERSION='jdk9'
 590 PACKAGE_STRING='OpenJDK jdk9'
 591 PACKAGE_BUGREPORT='build-dev@openjdk.java.net'
 592 PACKAGE_URL='http://openjdk.java.net'
 593 
 594 # Factoring default headers for most tests.
 595 ac_includes_default="\
 596 #include <stdio.h>
 597 #ifdef HAVE_SYS_TYPES_H
 598 # include <sys/types.h>
 599 #endif
 600 #ifdef HAVE_SYS_STAT_H
 601 # include <sys/stat.h>
 602 #endif
 603 #ifdef STDC_HEADERS
 604 # include <stdlib.h>
 605 # include <stddef.h>
 606 #else
 607 # ifdef HAVE_STDLIB_H
 608 #  include <stdlib.h>
 609 # endif
 610 #endif
 611 #ifdef HAVE_STRING_H
 612 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 613 #  include <memory.h>
 614 # endif
 615 # include <string.h>
 616 #endif
 617 #ifdef HAVE_STRINGS_H
 618 # include <strings.h>
 619 #endif
 620 #ifdef HAVE_INTTYPES_H
 621 # include <inttypes.h>
 622 #endif
 623 #ifdef HAVE_STDINT_H
 624 # include <stdint.h>
 625 #endif
 626 #ifdef HAVE_UNISTD_H
 627 # include <unistd.h>
 628 #endif"
 629 
 630 ac_subst_vars='LTLIBOBJS
 631 LIBOBJS
 632 CFLAGS_CCACHE
 633 CCACHE
 634 USE_PRECOMPILED_HEADER
 635 BUILD_ICECC
 636 ICECC
 637 ICECC_WRAPPER
 638 ICECC_CREATE_ENV
 639 ICECC_CMD
 640 ENABLE_JAVAC_SERVER
 641 ENABLE_SJAVAC
 642 SJAVAC_SERVER_JAVA_FLAGS
 643 SJAVAC_SERVER_JAVA
 644 JAVA_TOOL_FLAGS_SMALL
 645 JAVA_FLAGS_SMALL
 646 JAVA_FLAGS_JAVAC
 647 JAVA_FLAGS_BIG
 648 JAVA_FLAGS
 649 TEST_JOBS
 650 JOBS
 651 MEMORY_SIZE
 652 NUM_CORES
 653 ENABLE_INTREE_EC
 654 JVM_VARIANT_CORE
 655 JVM_VARIANT_ZEROSHARK
 656 JVM_VARIANT_ZERO
 657 JVM_VARIANT_HOTSPOT
 658 JVM_VARIANT_MINIMAL1
 659 JVM_VARIANT_CLIENT
 660 JVM_VARIANT_SERVER
 661 JVM_VARIANTS_COMMA
 662 TEST_IN_BUILD
 663 HOTSPOT_MAKE_ARGS
 664 MACOSX_UNIVERSAL
 665 DEBUG_CLASSFILES
 666 FASTDEBUG
 667 VARIANT
 668 USE_NEW_HOTSPOT_BUILD
 669 LIBZIP_CAN_USE_MMAP
 670 LIBDL
 671 LIBM
 672 USE_EXTERNAL_LCMS
 673 LCMS_LIBS
 674 LCMS_CFLAGS
 675 USE_EXTERNAL_LIBZ
 676 USE_EXTERNAL_LIBPNG
 677 PNG_LIBS
 678 PNG_CFLAGS
 679 USE_EXTERNAL_LIBGIF
 680 USE_EXTERNAL_LIBJPEG
 681 LLVM_LIBS
 682 LLVM_LDFLAGS
 683 LLVM_CFLAGS
 684 LLVM_CONFIG
 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 STATIC_CXX_SETTING
 702 FIXPATH_DETACH_FLAG
 703 FIXPATH
 704 VALID_JVM_FEATURES
 705 JVM_FEATURES_custom
 706 JVM_FEATURES_zeroshark
 707 JVM_FEATURES_zero
 708 JVM_FEATURES_minimal
 709 JVM_FEATURES_core
 710 JVM_FEATURES_client
 711 JVM_FEATURES_server
 712 INCLUDE_DTRACE
 713 GCOV_ENABLED
 714 STRIP_POLICY
 715 DEBUG_BINARIES
 716 ZIP_EXTERNAL_DEBUG_SYMBOLS
 717 COPY_DEBUG_SYMBOLS
 718 COMPILE_WITH_DEBUG_SYMBOLS
 719 CFLAGS_WARNINGS_ARE_ERRORS
 720 BUILD_CC_DISABLE_WARNING_PREFIX
 721 DISABLE_WARNING_PREFIX
 722 HOTSPOT_SET_WARNINGS_AS_ERRORS
 723 WARNINGS_AS_ERRORS
 724 COMPILER_SUPPORTS_TARGET_BITS_FLAG
 725 ZERO_ARCHFLAG
 726 LDFLAGS_TESTEXE
 727 LDFLAGS_TESTLIB
 728 CXXFLAGS_TESTEXE
 729 CXXFLAGS_TESTLIB
 730 CFLAGS_TESTEXE
 731 CFLAGS_TESTLIB
 732 OPENJDK_BUILD_JVM_LIBS
 733 OPENJDK_BUILD_JVM_ASFLAGS
 734 OPENJDK_BUILD_JVM_LDFLAGS
 735 OPENJDK_BUILD_JVM_CFLAGS
 736 OPENJDK_BUILD_LDFLAGS_HASH_STYLE
 737 OPENJDK_BUILD_LDFLAGS_CXX_JDK
 738 OPENJDK_BUILD_JDKEXE_LIBS
 739 OPENJDK_BUILD_JDKLIB_LIBS
 740 OPENJDK_BUILD_LDFLAGS_JDKEXE
 741 OPENJDK_BUILD_LDFLAGS_JDKLIB
 742 OPENJDK_BUILD_CXXFLAGS_JDKEXE
 743 OPENJDK_BUILD_CXXFLAGS_JDKLIB
 744 OPENJDK_BUILD_CFLAGS_JDKEXE
 745 OPENJDK_BUILD_CFLAGS_JDKLIB
 746 OPENJDK_BUILD_CXXSTD_CXXFLAG
 747 JVM_LIBS
 748 JVM_ASFLAGS
 749 JVM_LDFLAGS
 750 JVM_CFLAGS
 751 LDFLAGS_HASH_STYLE
 752 LDFLAGS_CXX_JDK
 753 JDKEXE_LIBS
 754 JDKLIB_LIBS
 755 LDFLAGS_JDKEXE
 756 LDFLAGS_JDKLIB
 757 CXXFLAGS_JDKEXE
 758 CXXFLAGS_JDKLIB
 759 CFLAGS_JDKEXE
 760 CFLAGS_JDKLIB
 761 MACOSX_VERSION_MIN
 762 NO_LIFETIME_DSE_CFLAG
 763 NO_NULL_POINTER_CHECK_CFLAG
 764 CXXSTD_CXXFLAG
 765 CXX_O_FLAG_SIZE
 766 CXX_O_FLAG_NONE
 767 CXX_O_FLAG_DEBUG
 768 CXX_O_FLAG_NORM
 769 CXX_O_FLAG_HI
 770 CXX_O_FLAG_HIGHEST
 771 CXX_O_FLAG_HIGHEST_JVM
 772 C_O_FLAG_SIZE
 773 C_O_FLAG_NONE
 774 C_O_FLAG_DEBUG
 775 C_O_FLAG_NORM
 776 C_O_FLAG_HI
 777 C_O_FLAG_HIGHEST
 778 C_O_FLAG_HIGHEST_JVM
 779 JVM_CFLAGS_SYMBOLS
 780 CXXFLAGS_DEBUG_SYMBOLS
 781 CFLAGS_DEBUG_SYMBOLS
 782 CXX_FLAG_DEPS
 783 C_FLAG_DEPS
 784 SHARED_LIBRARY_FLAGS
 785 SET_SHARED_LIBRARY_MAPFILE
 786 SET_SHARED_LIBRARY_NAME
 787 SET_SHARED_LIBRARY_ORIGIN
 788 SET_EXECUTABLE_ORIGIN
 789 CXX_FLAG_REORDER
 790 C_FLAG_REORDER
 791 JVM_RCFLAGS
 792 RC_FLAGS
 793 AR_OUT_OPTION
 794 LD_OUT_OPTION
 795 EXE_OUT_OPTION
 796 CC_OUT_OPTION
 797 STRIPFLAGS
 798 ARFLAGS
 799 COMPILER_BINDCMD_FILE_FLAG
 800 COMPILER_COMMAND_FILE_FLAG
 801 COMPILER_TARGET_BITS_FLAG
 802 JT_HOME
 803 JTREGEXE
 804 HOTSPOT_TOOLCHAIN_TYPE
 805 USING_BROKEN_SUSE_LD
 806 PACKAGE_PATH
 807 USE_CLANG
 808 HOTSPOT_LD
 809 HOTSPOT_CXX
 810 HOTSPOT_RC
 811 HOTSPOT_MT
 812 BUILD_AS
 813 BUILD_LDCXX
 814 BUILD_LD
 815 BUILD_STRIP
 816 BUILD_OBJCOPY
 817 BUILD_AR
 818 BUILD_NM
 819 BUILD_CXX
 820 BUILD_CC
 821 BUILD_SYSROOT_LDFLAGS
 822 BUILD_SYSROOT_CFLAGS
 823 ac_ct_OBJDUMP
 824 OBJDUMP
 825 ac_ct_OBJCOPY
 826 OBJCOPY
 827 ac_ct_NM
 828 ac_ct_STRIP
 829 GNM
 830 NM
 831 STRIP
 832 MSBUILD
 833 DUMPBIN
 834 RC
 835 MT
 836 LIPO
 837 ac_ct_AR
 838 AR
 839 AS
 840 LDCXX
 841 LD
 842 CXXCPP
 843 CPP
 844 CXX_VERSION_NUMBER
 845 CC_VERSION_NUMBER
 846 ac_ct_CXX
 847 CXXFLAGS
 848 CXX
 849 TOOLCHAIN_PATH_CXX
 850 POTENTIAL_CXX
 851 OBJEXT
 852 EXEEXT
 853 ac_ct_CC
 854 CPPFLAGS
 855 LDFLAGS
 856 CFLAGS
 857 CC
 858 TOOLCHAIN_PATH_CC
 859 POTENTIAL_CC
 860 TOOLCHAIN_VERSION
 861 VS_LIB
 862 VS_INCLUDE
 863 VS_PATH
 864 CYGWIN_LINK
 865 SYSROOT_LDFLAGS
 866 SYSROOT_CFLAGS
 867 EXTRA_LDFLAGS
 868 EXTRA_CXXFLAGS
 869 EXTRA_CFLAGS
 870 LEGACY_EXTRA_LDFLAGS
 871 LEGACY_EXTRA_CXXFLAGS
 872 LEGACY_EXTRA_CFLAGS
 873 EXE_SUFFIX
 874 OBJ_SUFFIX
 875 STATIC_LIBRARY
 876 SHARED_LIBRARY
 877 STATIC_LIBRARY_SUFFIX
 878 SHARED_LIBRARY_SUFFIX
 879 LIBRARY_PREFIX
 880 TOOLCHAIN_TYPE
 881 STATIC_BUILD
 882 IMPORT_MODULES_MAKE
 883 IMPORT_MODULES_SRC
 884 IMPORT_MODULES_CONF
 885 IMPORT_MODULES_LIBS
 886 IMPORT_MODULES_CMDS
 887 IMPORT_MODULES_CLASSES
 888 BUILD_HOTSPOT
 889 HOTSPOT_DIST
 890 BUILD_OUTPUT
 891 JDK_TOPDIR
 892 NASHORN_TOPDIR
 893 HOTSPOT_TOPDIR
 894 JAXWS_TOPDIR
 895 JAXP_TOPDIR
 896 CORBA_TOPDIR
 897 LANGTOOLS_TOPDIR
 898 BUILD_JDK
 899 CREATE_BUILDJDK
 900 BOOT_JDK_BITS
 901 JAVAC_FLAGS
 902 BOOT_JDK_MODULAR
 903 BOOT_JDK_SOURCETARGET
 904 JARSIGNER
 905 JAR
 906 JAVAH
 907 JAVAC
 908 JAVA
 909 BOOT_JDK
 910 JAVA_CHECK
 911 JAVAC_CHECK
 912 VERSION_IS_GA
 913 VERSION_SHORT
 914 VERSION_STRING
 915 VERSION_NUMBER_FOUR_POSITIONS
 916 VERSION_NUMBER
 917 VERSION_OPT
 918 VERSION_BUILD
 919 VERSION_PRE
 920 VERSION_PATCH
 921 VERSION_SECURITY
 922 VERSION_MINOR
 923 VERSION_MAJOR
 924 MACOSX_BUNDLE_ID_BASE
 925 MACOSX_BUNDLE_NAME_BASE
 926 HOTSPOT_VM_DISTRO
 927 COMPANY_NAME
 928 JDK_RC_PLATFORM_NAME
 929 PRODUCT_SUFFIX
 930 PRODUCT_NAME
 931 LAUNCHER_NAME
 932 JLINK_KEEP_PACKAGED_MODULES
 933 COPYRIGHT_YEAR
 934 COMPRESS_JARS
 935 INCLUDE_SA
 936 UNLIMITED_CRYPTO
 937 CACERTS_FILE
 938 BUILD_HEADLESS
 939 SUPPORT_HEADFUL
 940 SUPPORT_HEADLESS
 941 DEFAULT_MAKE_TARGET
 942 OS_VERSION_MICRO
 943 OS_VERSION_MINOR
 944 OS_VERSION_MAJOR
 945 PKG_CONFIG
 946 BASH_ARGS
 947 SETFILE
 948 CODESIGN
 949 XATTR
 950 DSYMUTIL
 951 IS_GNU_TIME
 952 PATCH
 953 DTRACE
 954 TIME
 955 STAT
 956 HG
 957 READELF
 958 OTOOL
 959 LDD
 960 ZIP
 961 UNZIP
 962 FIND_DELETE
 963 OUTPUT_SYNC
 964 OUTPUT_SYNC_SUPPORTED
 965 CHECK_TOOLSDIR_MAKE
 966 CHECK_TOOLSDIR_GMAKE
 967 CHECK_MAKE
 968 CHECK_GMAKE
 969 MAKE
 970 PKGHANDLER
 971 CONFIGURESUPPORT_OUTPUTDIR
 972 OUTPUT_ROOT
 973 CONF_NAME
 974 SPEC
 975 SDKROOT
 976 XCODEBUILD
 977 VALID_JVM_VARIANTS
 978 JVM_VARIANTS
 979 DEBUG_LEVEL
 980 HOTSPOT_DEBUG_LEVEL
 981 JDK_VARIANT
 982 SET_OPENJDK
 983 USERNAME
 984 CANONICAL_TOPDIR
 985 ORIGINAL_TOPDIR
 986 TOPDIR
 987 PATH_SEP
 988 ZERO_ARCHDEF
 989 HOTSPOT_BUILD_CPU_DEFINE
 990 HOTSPOT_BUILD_CPU_ARCH
 991 HOTSPOT_BUILD_CPU
 992 HOTSPOT_BUILD_OS_TYPE
 993 HOTSPOT_BUILD_OS
 994 OPENJDK_BUILD_OS_EXPORT_DIR
 995 OPENJDK_BUILD_CPU_JLI_CFLAGS
 996 OPENJDK_BUILD_CPU_OSARCH
 997 OPENJDK_BUILD_CPU_ISADIR
 998 OPENJDK_BUILD_CPU_LIBDIR
 999 OPENJDK_BUILD_CPU_LEGACY_LIB
1000 OPENJDK_BUILD_CPU_LEGACY
1001 HOTSPOT_TARGET_CPU_DEFINE
1002 HOTSPOT_TARGET_CPU_ARCH
1003 HOTSPOT_TARGET_CPU
1004 HOTSPOT_TARGET_OS_TYPE
1005 HOTSPOT_TARGET_OS
1006 DEFINE_CROSS_COMPILE_ARCH
1007 LP64
1008 OPENJDK_TARGET_OS_EXPORT_DIR
1009 OPENJDK_TARGET_CPU_JLI_CFLAGS
1010 OPENJDK_TARGET_CPU_OSARCH
1011 OPENJDK_TARGET_CPU_ISADIR
1012 OPENJDK_TARGET_CPU_LIBDIR
1013 OPENJDK_TARGET_CPU_LEGACY_LIB
1014 OPENJDK_TARGET_CPU_LEGACY
1015 REQUIRED_OS_VERSION
1016 REQUIRED_OS_NAME
1017 COMPILE_TYPE
1018 OPENJDK_TARGET_CPU_ENDIAN
1019 OPENJDK_TARGET_CPU_BITS
1020 OPENJDK_TARGET_CPU_ARCH
1021 OPENJDK_TARGET_CPU
1022 OPENJDK_TARGET_OS_ENV
1023 OPENJDK_TARGET_OS_TYPE
1024 OPENJDK_TARGET_OS
1025 OPENJDK_BUILD_CPU_ENDIAN
1026 OPENJDK_BUILD_CPU_BITS
1027 OPENJDK_BUILD_CPU_ARCH
1028 OPENJDK_BUILD_CPU
1029 OPENJDK_BUILD_OS_ENV
1030 OPENJDK_BUILD_OS_TYPE
1031 OPENJDK_BUILD_OS
1032 OPENJDK_BUILD_AUTOCONF_NAME
1033 OPENJDK_TARGET_AUTOCONF_NAME
1034 target_os
1035 target_vendor
1036 target_cpu
1037 target
1038 host_os
1039 host_vendor
1040 host_cpu
1041 host
1042 build_os
1043 build_vendor
1044 build_cpu
1045 build
1046 NICE
1047 CPIO
1048 DF
1049 READLINK
1050 CYGPATH
1051 SED
1052 FGREP
1053 EGREP
1054 GREP
1055 AWK
1056 XARGS
1057 WHICH
1058 WC
1059 UNIQ
1060 UNAME
1061 TR
1062 TOUCH
1063 TEE
1064 TAR
1065 TAIL
1066 SORT
1067 SH
1068 RMDIR
1069 RM
1070 PRINTF
1071 NAWK
1072 MV
1073 MKTEMP
1074 MKDIR
1075 LS
1076 LN
1077 HEAD
1078 FIND
1079 FILE
1080 EXPR
1081 ECHO
1082 DIRNAME
1083 DIFF
1084 DATE
1085 CUT
1086 CP
1087 COMM
1088 CMP
1089 CHMOD
1090 CAT
1091 BASH
1092 BASENAME
1093 DATE_WHEN_CONFIGURED
1094 ORIGINAL_PATH
1095 CONFIGURE_COMMAND_LINE
1096 target_alias
1097 host_alias
1098 build_alias
1099 LIBS
1100 ECHO_T
1101 ECHO_N
1102 ECHO_C
1103 DEFS
1104 mandir
1105 localedir
1106 libdir
1107 psdir
1108 pdfdir
1109 dvidir
1110 htmldir
1111 infodir
1112 docdir
1113 oldincludedir
1114 includedir
1115 localstatedir
1116 sharedstatedir
1117 sysconfdir
1118 datadir
1119 datarootdir
1120 libexecdir
1121 sbindir
1122 bindir
1123 program_transform_name
1124 prefix
1125 exec_prefix
1126 PACKAGE_URL
1127 PACKAGE_BUGREPORT
1128 PACKAGE_STRING
1129 PACKAGE_VERSION
1130 PACKAGE_TARNAME
1131 PACKAGE_NAME
1132 PATH_SEPARATOR
1133 SHELL'
1134 ac_subst_files=''
1135 ac_user_opts='
1136 enable_option_checking
1137 with_target_bits
1138 enable_openjdk_only
1139 with_custom_make_dir
1140 with_jdk_variant
1141 enable_debug
1142 with_debug_level
1143 with_jvm_variants
1144 with_devkit
1145 with_sys_root
1146 with_sysroot
1147 with_tools_dir
1148 with_toolchain_path
1149 with_extra_path
1150 with_sdk_name
1151 with_conf_name
1152 with_output_sync
1153 with_default_make_target
1154 enable_headful
1155 with_cacerts_file
1156 enable_unlimited_crypto
1157 with_copyright_year
1158 enable_keep_packaged_modules
1159 with_milestone
1160 with_update_version
1161 with_user_release_suffix
1162 with_build_number
1163 with_version_string
1164 with_version_pre
1165 with_version_opt
1166 with_version_build
1167 with_version_major
1168 with_version_minor
1169 with_version_security
1170 with_version_patch
1171 with_boot_jdk
1172 with_build_jdk
1173 with_add_source_root
1174 with_override_source_root
1175 with_adds_and_overrides
1176 with_override_langtools
1177 with_override_corba
1178 with_override_jaxp
1179 with_override_jaxws
1180 with_override_hotspot
1181 with_override_nashorn
1182 with_override_jdk
1183 with_import_hotspot
1184 with_import_modules
1185 enable_static_build
1186 with_toolchain_type
1187 with_extra_cflags
1188 with_extra_cxxflags
1189 with_extra_ldflags
1190 with_toolchain_version
1191 with_build_devkit
1192 with_jtreg
1193 enable_warnings_as_errors
1194 with_native_debug_symbols
1195 enable_debug_symbols
1196 enable_zip_debug_info
1197 enable_native_coverage
1198 enable_dtrace
1199 with_jvm_features
1200 with_jvm_interpreter
1201 with_stdc__lib
1202 with_msvcr_dll
1203 with_msvcp_dll
1204 with_x
1205 with_cups
1206 with_cups_include
1207 with_freetype
1208 with_freetype_include
1209 with_freetype_lib
1210 with_freetype_src
1211 enable_freetype_bundling
1212 with_alsa
1213 with_alsa_include
1214 with_alsa_lib
1215 with_libffi
1216 with_libffi_include
1217 with_libffi_lib
1218 with_libjpeg
1219 with_giflib
1220 with_libpng
1221 with_zlib
1222 with_lcms
1223 with_dxsdk
1224 with_dxsdk_lib
1225 with_dxsdk_include
1226 enable_new_hotspot_build
1227 enable_hotspot_test_in_build
1228 with_num_cores
1229 with_memory_size
1230 with_jobs
1231 with_test_jobs
1232 with_boot_jdk_jvmargs
1233 with_sjavac_server_java
1234 enable_sjavac
1235 enable_javac_server
1236 enable_icecc
1237 enable_precompiled_headers
1238 enable_ccache
1239 with_ccache_dir
1240 '
1241       ac_precious_vars='build_alias
1242 host_alias
1243 target_alias
1244 BASENAME
1245 BASH
1246 CAT
1247 CHMOD
1248 CMP
1249 COMM
1250 CP
1251 CUT
1252 DATE
1253 DIFF
1254 DIRNAME
1255 ECHO
1256 EXPR
1257 FILE
1258 FIND
1259 HEAD
1260 LN
1261 LS
1262 MKDIR
1263 MKTEMP
1264 MV
1265 NAWK
1266 PRINTF
1267 RM
1268 RMDIR
1269 SH
1270 SORT
1271 TAIL
1272 TAR
1273 TEE
1274 TOUCH
1275 TR
1276 UNAME
1277 UNIQ
1278 WC
1279 WHICH
1280 XARGS
1281 AWK
1282 GREP
1283 EGREP
1284 FGREP
1285 SED
1286 CYGPATH
1287 READLINK
1288 DF
1289 CPIO
1290 NICE
1291 MAKE
1292 UNZIP
1293 ZIP
1294 LDD
1295 OTOOL
1296 READELF
1297 HG
1298 STAT
1299 TIME
1300 DTRACE
1301 PATCH
1302 DSYMUTIL
1303 XATTR
1304 CODESIGN
1305 SETFILE
1306 PKG_CONFIG
1307 JAVA
1308 JAVAC
1309 JAVAH
1310 JAR
1311 JARSIGNER
1312 CC
1313 CFLAGS
1314 LDFLAGS
1315 LIBS
1316 CPPFLAGS
1317 CXX
1318 CXXFLAGS
1319 CCC
1320 CPP
1321 CXXCPP
1322 AS
1323 AR
1324 LIPO
1325 STRIP
1326 NM
1327 GNM
1328 OBJCOPY
1329 OBJDUMP
1330 BUILD_CC
1331 BUILD_CXX
1332 BUILD_NM
1333 BUILD_AR
1334 BUILD_OBJCOPY
1335 BUILD_STRIP
1336 JTREGEXE
1337 XMKMF
1338 FREETYPE_CFLAGS
1339 FREETYPE_LIBS
1340 ALSA_CFLAGS
1341 ALSA_LIBS
1342 LIBFFI_CFLAGS
1343 LIBFFI_LIBS
1344 PNG_CFLAGS
1345 PNG_LIBS
1346 LCMS_CFLAGS
1347 LCMS_LIBS
1348 ICECC_CMD
1349 ICECC_CREATE_ENV
1350 ICECC_WRAPPER
1351 CCACHE'
1352 
1353 
1354 # Initialize some variables set by options.
1355 ac_init_help=
1356 ac_init_version=false
1357 ac_unrecognized_opts=
1358 ac_unrecognized_sep=
1359 # The variables have the same names as the options, with
1360 # dashes changed to underlines.
1361 cache_file=/dev/null
1362 exec_prefix=NONE
1363 no_create=
1364 no_recursion=
1365 prefix=NONE
1366 program_prefix=NONE
1367 program_suffix=NONE
1368 program_transform_name=s,x,x,
1369 silent=
1370 site=
1371 srcdir=
1372 verbose=
1373 x_includes=NONE
1374 x_libraries=NONE
1375 
1376 # Installation directory options.
1377 # These are left unexpanded so users can "make install exec_prefix=/foo"
1378 # and all the variables that are supposed to be based on exec_prefix
1379 # by default will actually change.
1380 # Use braces instead of parens because sh, perl, etc. also accept them.
1381 # (The list follows the same order as the GNU Coding Standards.)
1382 bindir='${exec_prefix}/bin'
1383 sbindir='${exec_prefix}/sbin'
1384 libexecdir='${exec_prefix}/libexec'
1385 datarootdir='${prefix}/share'
1386 datadir='${datarootdir}'
1387 sysconfdir='${prefix}/etc'
1388 sharedstatedir='${prefix}/com'
1389 localstatedir='${prefix}/var'
1390 includedir='${prefix}/include'
1391 oldincludedir='/usr/include'
1392 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1393 infodir='${datarootdir}/info'
1394 htmldir='${docdir}'
1395 dvidir='${docdir}'
1396 pdfdir='${docdir}'
1397 psdir='${docdir}'
1398 libdir='${exec_prefix}/lib'
1399 localedir='${datarootdir}/locale'
1400 mandir='${datarootdir}/man'
1401 
1402 ac_prev=
1403 ac_dashdash=
1404 for ac_option
1405 do
1406   # If the previous option needs an argument, assign it.
1407   if test -n "$ac_prev"; then
1408     eval $ac_prev=\$ac_option
1409     ac_prev=
1410     continue
1411   fi
1412 
1413   case $ac_option in
1414   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1415   *=)   ac_optarg= ;;
1416   *)    ac_optarg=yes ;;
1417   esac
1418 
1419   # Accept the important Cygnus configure options, so we can diagnose typos.
1420 
1421   case $ac_dashdash$ac_option in
1422   --)
1423     ac_dashdash=yes ;;
1424 
1425   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1426     ac_prev=bindir ;;
1427   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1428     bindir=$ac_optarg ;;
1429 
1430   -build | --build | --buil | --bui | --bu)
1431     ac_prev=build_alias ;;
1432   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1433     build_alias=$ac_optarg ;;
1434 
1435   -cache-file | --cache-file | --cache-fil | --cache-fi \
1436   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1437     ac_prev=cache_file ;;
1438   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1439   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1440     cache_file=$ac_optarg ;;
1441 
1442   --config-cache | -C)
1443     cache_file=config.cache ;;
1444 
1445   -datadir | --datadir | --datadi | --datad)
1446     ac_prev=datadir ;;
1447   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1448     datadir=$ac_optarg ;;
1449 
1450   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1451   | --dataroo | --dataro | --datar)
1452     ac_prev=datarootdir ;;
1453   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1454   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1455     datarootdir=$ac_optarg ;;
1456 
1457   -disable-* | --disable-*)
1458     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1459     # Reject names that are not valid shell variable names.
1460     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1461       as_fn_error $? "invalid feature name: $ac_useropt"
1462     ac_useropt_orig=$ac_useropt
1463     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1464     case $ac_user_opts in
1465       *"
1466 "enable_$ac_useropt"
1467 "*) ;;
1468       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1469          ac_unrecognized_sep=', ';;
1470     esac
1471     eval enable_$ac_useropt=no ;;
1472 
1473   -docdir | --docdir | --docdi | --doc | --do)
1474     ac_prev=docdir ;;
1475   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1476     docdir=$ac_optarg ;;
1477 
1478   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1479     ac_prev=dvidir ;;
1480   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1481     dvidir=$ac_optarg ;;
1482 
1483   -enable-* | --enable-*)
1484     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1485     # Reject names that are not valid shell variable names.
1486     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1487       as_fn_error $? "invalid feature name: $ac_useropt"
1488     ac_useropt_orig=$ac_useropt
1489     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1490     case $ac_user_opts in
1491       *"
1492 "enable_$ac_useropt"
1493 "*) ;;
1494       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1495          ac_unrecognized_sep=', ';;
1496     esac
1497     eval enable_$ac_useropt=\$ac_optarg ;;
1498 
1499   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1500   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1501   | --exec | --exe | --ex)
1502     ac_prev=exec_prefix ;;
1503   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1504   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1505   | --exec=* | --exe=* | --ex=*)
1506     exec_prefix=$ac_optarg ;;
1507 
1508   -gas | --gas | --ga | --g)
1509     # Obsolete; use --with-gas.
1510     with_gas=yes ;;
1511 
1512   -help | --help | --hel | --he | -h)
1513     ac_init_help=long ;;
1514   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1515     ac_init_help=recursive ;;
1516   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1517     ac_init_help=short ;;
1518 
1519   -host | --host | --hos | --ho)
1520     ac_prev=host_alias ;;
1521   -host=* | --host=* | --hos=* | --ho=*)
1522     host_alias=$ac_optarg ;;
1523 
1524   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1525     ac_prev=htmldir ;;
1526   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1527   | --ht=*)
1528     htmldir=$ac_optarg ;;
1529 
1530   -includedir | --includedir | --includedi | --included | --include \
1531   | --includ | --inclu | --incl | --inc)
1532     ac_prev=includedir ;;
1533   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1534   | --includ=* | --inclu=* | --incl=* | --inc=*)
1535     includedir=$ac_optarg ;;
1536 
1537   -infodir | --infodir | --infodi | --infod | --info | --inf)
1538     ac_prev=infodir ;;
1539   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1540     infodir=$ac_optarg ;;
1541 
1542   -libdir | --libdir | --libdi | --libd)
1543     ac_prev=libdir ;;
1544   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1545     libdir=$ac_optarg ;;
1546 
1547   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1548   | --libexe | --libex | --libe)
1549     ac_prev=libexecdir ;;
1550   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1551   | --libexe=* | --libex=* | --libe=*)
1552     libexecdir=$ac_optarg ;;
1553 
1554   -localedir | --localedir | --localedi | --localed | --locale)
1555     ac_prev=localedir ;;
1556   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1557     localedir=$ac_optarg ;;
1558 
1559   -localstatedir | --localstatedir | --localstatedi | --localstated \
1560   | --localstate | --localstat | --localsta | --localst | --locals)
1561     ac_prev=localstatedir ;;
1562   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1563   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1564     localstatedir=$ac_optarg ;;
1565 
1566   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1567     ac_prev=mandir ;;
1568   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1569     mandir=$ac_optarg ;;
1570 
1571   -nfp | --nfp | --nf)
1572     # Obsolete; use --without-fp.
1573     with_fp=no ;;
1574 
1575   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1576   | --no-cr | --no-c | -n)
1577     no_create=yes ;;
1578 
1579   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1580   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1581     no_recursion=yes ;;
1582 
1583   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1584   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1585   | --oldin | --oldi | --old | --ol | --o)
1586     ac_prev=oldincludedir ;;
1587   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1588   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1589   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1590     oldincludedir=$ac_optarg ;;
1591 
1592   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1593     ac_prev=prefix ;;
1594   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1595     prefix=$ac_optarg ;;
1596 
1597   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1598   | --program-pre | --program-pr | --program-p)
1599     ac_prev=program_prefix ;;
1600   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1601   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1602     program_prefix=$ac_optarg ;;
1603 
1604   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1605   | --program-suf | --program-su | --program-s)
1606     ac_prev=program_suffix ;;
1607   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1608   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1609     program_suffix=$ac_optarg ;;
1610 
1611   -program-transform-name | --program-transform-name \
1612   | --program-transform-nam | --program-transform-na \
1613   | --program-transform-n | --program-transform- \
1614   | --program-transform | --program-transfor \
1615   | --program-transfo | --program-transf \
1616   | --program-trans | --program-tran \
1617   | --progr-tra | --program-tr | --program-t)
1618     ac_prev=program_transform_name ;;
1619   -program-transform-name=* | --program-transform-name=* \
1620   | --program-transform-nam=* | --program-transform-na=* \
1621   | --program-transform-n=* | --program-transform-=* \
1622   | --program-transform=* | --program-transfor=* \
1623   | --program-transfo=* | --program-transf=* \
1624   | --program-trans=* | --program-tran=* \
1625   | --progr-tra=* | --program-tr=* | --program-t=*)
1626     program_transform_name=$ac_optarg ;;
1627 
1628   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1629     ac_prev=pdfdir ;;
1630   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1631     pdfdir=$ac_optarg ;;
1632 
1633   -psdir | --psdir | --psdi | --psd | --ps)
1634     ac_prev=psdir ;;
1635   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1636     psdir=$ac_optarg ;;
1637 
1638   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1639   | -silent | --silent | --silen | --sile | --sil)
1640     silent=yes ;;
1641 
1642   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1643     ac_prev=sbindir ;;
1644   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1645   | --sbi=* | --sb=*)
1646     sbindir=$ac_optarg ;;
1647 
1648   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1649   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1650   | --sharedst | --shareds | --shared | --share | --shar \
1651   | --sha | --sh)
1652     ac_prev=sharedstatedir ;;
1653   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1654   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1655   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1656   | --sha=* | --sh=*)
1657     sharedstatedir=$ac_optarg ;;
1658 
1659   -site | --site | --sit)
1660     ac_prev=site ;;
1661   -site=* | --site=* | --sit=*)
1662     site=$ac_optarg ;;
1663 
1664   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1665     ac_prev=srcdir ;;
1666   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1667     srcdir=$ac_optarg ;;
1668 
1669   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1670   | --syscon | --sysco | --sysc | --sys | --sy)
1671     ac_prev=sysconfdir ;;
1672   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1673   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1674     sysconfdir=$ac_optarg ;;
1675 
1676   -target | --target | --targe | --targ | --tar | --ta | --t)
1677     ac_prev=target_alias ;;
1678   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1679     target_alias=$ac_optarg ;;
1680 
1681   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1682     verbose=yes ;;
1683 
1684   -version | --version | --versio | --versi | --vers | -V)
1685     ac_init_version=: ;;
1686 
1687   -with-* | --with-*)
1688     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1689     # Reject names that are not valid shell variable names.
1690     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1691       as_fn_error $? "invalid package name: $ac_useropt"
1692     ac_useropt_orig=$ac_useropt
1693     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1694     case $ac_user_opts in
1695       *"
1696 "with_$ac_useropt"
1697 "*) ;;
1698       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1699          ac_unrecognized_sep=', ';;
1700     esac
1701     eval with_$ac_useropt=\$ac_optarg ;;
1702 
1703   -without-* | --without-*)
1704     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1705     # Reject names that are not valid shell variable names.
1706     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1707       as_fn_error $? "invalid package name: $ac_useropt"
1708     ac_useropt_orig=$ac_useropt
1709     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1710     case $ac_user_opts in
1711       *"
1712 "with_$ac_useropt"
1713 "*) ;;
1714       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1715          ac_unrecognized_sep=', ';;
1716     esac
1717     eval with_$ac_useropt=no ;;
1718 
1719   --x)
1720     # Obsolete; use --with-x.
1721     with_x=yes ;;
1722 
1723   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1724   | --x-incl | --x-inc | --x-in | --x-i)
1725     ac_prev=x_includes ;;
1726   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1727   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1728     x_includes=$ac_optarg ;;
1729 
1730   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1731   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1732     ac_prev=x_libraries ;;
1733   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1734   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1735     x_libraries=$ac_optarg ;;
1736 
1737   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1738 Try \`$0 --help' for more information"
1739     ;;
1740 
1741   *=*)
1742     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1743     # Reject names that are not valid shell variable names.
1744     case $ac_envvar in #(
1745       '' | [0-9]* | *[!_$as_cr_alnum]* )
1746       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1747     esac
1748     eval $ac_envvar=\$ac_optarg
1749     export $ac_envvar ;;
1750 
1751   *)
1752     # FIXME: should be removed in autoconf 3.0.
1753     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1754     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1755       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1756     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1757     ;;
1758 
1759   esac
1760 done
1761 
1762 if test -n "$ac_prev"; then
1763   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1764   as_fn_error $? "missing argument to $ac_option"
1765 fi
1766 
1767 if test -n "$ac_unrecognized_opts"; then
1768   case $enable_option_checking in
1769     no) ;;
1770     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1771     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1772   esac
1773 fi
1774 
1775 # Check all directory arguments for consistency.
1776 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1777                 datadir sysconfdir sharedstatedir localstatedir includedir \
1778                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1779                 libdir localedir mandir
1780 do
1781   eval ac_val=\$$ac_var
1782   # Remove trailing slashes.
1783   case $ac_val in
1784     */ )
1785       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1786       eval $ac_var=\$ac_val;;
1787   esac
1788   # Be sure to have absolute directory names.
1789   case $ac_val in
1790     [\\/$]* | ?:[\\/]* )  continue;;
1791     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1792   esac
1793   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1794 done
1795 
1796 # There might be people who depend on the old broken behavior: `$host'
1797 # used to hold the argument of --host etc.
1798 # FIXME: To remove some day.
1799 build=$build_alias
1800 host=$host_alias
1801 target=$target_alias
1802 
1803 # FIXME: To remove some day.
1804 if test "x$host_alias" != x; then
1805   if test "x$build_alias" = x; then
1806     cross_compiling=maybe
1807   elif test "x$build_alias" != "x$host_alias"; then
1808     cross_compiling=yes
1809   fi
1810 fi
1811 
1812 ac_tool_prefix=
1813 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1814 
1815 test "$silent" = yes && exec 6>/dev/null
1816 
1817 
1818 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1819 ac_ls_di=`ls -di .` &&
1820 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1821   as_fn_error $? "working directory cannot be determined"
1822 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1823   as_fn_error $? "pwd does not report name of working directory"
1824 
1825 
1826 # Find the source files, if location was not specified.
1827 if test -z "$srcdir"; then
1828   ac_srcdir_defaulted=yes
1829   # Try the directory containing this script, then the parent directory.
1830   ac_confdir=`$as_dirname -- "$as_myself" ||
1831 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1832          X"$as_myself" : 'X\(//\)[^/]' \| \
1833          X"$as_myself" : 'X\(//\)$' \| \
1834          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1835 $as_echo X"$as_myself" |
1836     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1837             s//\1/
1838             q
1839           }
1840           /^X\(\/\/\)[^/].*/{
1841             s//\1/
1842             q
1843           }
1844           /^X\(\/\/\)$/{
1845             s//\1/
1846             q
1847           }
1848           /^X\(\/\).*/{
1849             s//\1/
1850             q
1851           }
1852           s/.*/./; q'`
1853   srcdir=$ac_confdir
1854   if test ! -r "$srcdir/$ac_unique_file"; then
1855     srcdir=..
1856   fi
1857 else
1858   ac_srcdir_defaulted=no
1859 fi
1860 if test ! -r "$srcdir/$ac_unique_file"; then
1861   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1862   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1863 fi
1864 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1865 ac_abs_confdir=`(
1866         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1867         pwd)`
1868 # When building in place, set srcdir=.
1869 if test "$ac_abs_confdir" = "$ac_pwd"; then
1870   srcdir=.
1871 fi
1872 # Remove unnecessary trailing slashes from srcdir.
1873 # Double slashes in file names in object file debugging info
1874 # mess up M-x gdb in Emacs.
1875 case $srcdir in
1876 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1877 esac
1878 for ac_var in $ac_precious_vars; do
1879   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1880   eval ac_env_${ac_var}_value=\$${ac_var}
1881   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1882   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1883 done
1884 
1885 #
1886 # Report the --help message.
1887 #
1888 if test "$ac_init_help" = "long"; then
1889   # Omit some internal or obsolete options to make the list less imposing.
1890   # This message is too long to be a string in the A/UX 3.1 sh.
1891   cat <<_ACEOF
1892 \`configure' configures OpenJDK jdk9 to adapt to many kinds of systems.
1893 
1894 Usage: $0 [OPTION]... [VAR=VALUE]...
1895 
1896 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1897 VAR=VALUE.  See below for descriptions of some of the useful variables.
1898 
1899 Defaults for the options are specified in brackets.
1900 
1901 Configuration:
1902   -h, --help              display this help and exit
1903       --help=short        display options specific to this package
1904       --help=recursive    display the short help of all the included packages
1905   -V, --version           display version information and exit
1906   -q, --quiet, --silent   do not print \`checking ...' messages
1907       --cache-file=FILE   cache test results in FILE [disabled]
1908   -C, --config-cache      alias for \`--cache-file=config.cache'
1909   -n, --no-create         do not create output files
1910       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1911 
1912 Installation directories:
1913   --prefix=PREFIX         install architecture-independent files in PREFIX
1914                           [$ac_default_prefix]
1915   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1916                           [PREFIX]
1917 
1918 By default, \`make install' will install all the files in
1919 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1920 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1921 for instance \`--prefix=\$HOME'.
1922 
1923 For better control, use the options below.
1924 
1925 Fine tuning of the installation directories:
1926   --bindir=DIR            user executables [EPREFIX/bin]
1927   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1928   --libexecdir=DIR        program executables [EPREFIX/libexec]
1929   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1930   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1931   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1932   --libdir=DIR            object code libraries [EPREFIX/lib]
1933   --includedir=DIR        C header files [PREFIX/include]
1934   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1935   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1936   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1937   --infodir=DIR           info documentation [DATAROOTDIR/info]
1938   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1939   --mandir=DIR            man documentation [DATAROOTDIR/man]
1940   --docdir=DIR            documentation root [DATAROOTDIR/doc/openjdk]
1941   --htmldir=DIR           html documentation [DOCDIR]
1942   --dvidir=DIR            dvi documentation [DOCDIR]
1943   --pdfdir=DIR            pdf documentation [DOCDIR]
1944   --psdir=DIR             ps documentation [DOCDIR]
1945 _ACEOF
1946 
1947   cat <<\_ACEOF
1948 
1949 X features:
1950   --x-includes=DIR    X include files are in DIR
1951   --x-libraries=DIR   X library files are in DIR
1952 
1953 System types:
1954   --build=BUILD     configure for building on BUILD [guessed]
1955   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1956   --target=TARGET   configure for building compilers for TARGET [HOST]
1957 _ACEOF
1958 fi
1959 
1960 if test -n "$ac_init_help"; then
1961   case $ac_init_help in
1962      short | recursive ) echo "Configuration of OpenJDK jdk9:";;
1963    esac
1964   cat <<\_ACEOF
1965 
1966 Optional Features:
1967   --disable-option-checking  ignore unrecognized --enable/--with options
1968   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1969   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1970   --enable-openjdk-only   suppress building custom source even if present
1971                           [disabled]
1972   --enable-debug          set the debug level to fastdebug (shorthand for
1973                           --with-debug-level=fastdebug) [disabled]
1974   --disable-headful       disable building headful support (graphical UI
1975                           support) [enabled]
1976   --enable-unlimited-crypto
1977                           Enable unlimited crypto policy [disabled]
1978   --disable-keep-packaged-modules
1979                           Do not keep packaged modules in jdk image [enable]
1980   --enable-static-build   enable static library build [disabled]
1981   --disable-warnings-as-errors
1982                           do not consider native warnings to be an error
1983                           [enabled]
1984   --enable-debug-symbols  Deprecated. Option is kept for backwards
1985                           compatibility and is ignored
1986   --enable-zip-debug-info Deprecated. Option is kept for backwards
1987                           compatibility and is ignored
1988   --enable-native-coverage
1989                           enable native compilation with code coverage
1990                           data[disabled]
1991   --enable-dtrace[=yes/no/auto]
1992                           enable dtrace. Default is auto, where dtrace is
1993                           enabled if all dependencies are present.
1994   --disable-freetype-bundling
1995                           disable bundling of the freetype library with the
1996                           build result [enabled on Windows or when using
1997                           --with-freetype, disabled otherwise]
1998   --disable-new-hotspot-build
1999                           disable the new hotspot build system (use the old)
2000                           [enabled]
2001   --enable-hotspot-test-in-build
2002                           run the Queens test after Hotspot build [disabled]
2003   --enable-sjavac         use sjavac to do fast incremental compiles
2004                           [disabled]
2005   --disable-javac-server  disable javac server [enabled]
2006   --enable-icecc          enable distribted compilation of native code using
2007                           icecc/icecream [disabled]
2008   --disable-precompiled-headers
2009                           disable using precompiled headers when compiling C++
2010                           [enabled]
2011   --enable-ccache         enable using ccache to speed up recompilations
2012                           [disabled]
2013 
2014 Optional Packages:
2015   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
2016   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
2017   --with-target-bits      build 32-bit or 64-bit binaries (for platforms that
2018                           support it), e.g. --with-target-bits=32 [guessed]
2019   --with-custom-make-dir  Deprecated. Option is kept for backwards
2020                           compatibility and is ignored
2021   --with-jdk-variant      JDK variant to build (normal) [normal]
2022   --with-debug-level      set the debug level (release, fastdebug, slowdebug,
2023                           optimized) [release]
2024   --with-jvm-variants     JVM variants (separated by commas) to build
2025                           (server,client,minimal,core,zero,zeroshark,custom)
2026                           [server]
2027   --with-devkit           use this devkit for compilers, tools and resources
2028   --with-sys-root         alias for --with-sysroot for backwards compatability
2029   --with-sysroot          use this directory as sysroot
2030   --with-tools-dir        alias for --with-toolchain-path for backwards
2031                           compatibility
2032   --with-toolchain-path   prepend these directories when searching for
2033                           toolchain binaries (compilers etc)
2034   --with-extra-path       prepend these directories to the default path
2035   --with-sdk-name         use the platform SDK of the given name. [macosx]
2036   --with-conf-name        use this as the name of the configuration [generated
2037                           from important configuration options]
2038   --with-output-sync      set make output sync type if supported by make.
2039                           [recurse]
2040   --with-default-make-target
2041                           set the default make target [exploded-image]
2042   --with-cacerts-file     specify alternative cacerts file
2043   --with-copyright-year   Set copyright year value for build [current year]
2044   --with-milestone        Deprecated. Option is kept for backwards
2045                           compatibility and is ignored
2046   --with-update-version   Deprecated. Option is kept for backwards
2047                           compatibility and is ignored
2048   --with-user-release-suffix
2049                           Deprecated. Option is kept for backwards
2050                           compatibility and is ignored
2051   --with-build-number     Deprecated. Option is kept for backwards
2052                           compatibility and is ignored
2053   --with-version-string   Set version string [calculated]
2054   --with-version-pre      Set the base part of the version 'PRE' field
2055                           (pre-release identifier) ['internal']
2056   --with-version-opt      Set version 'OPT' field (build metadata)
2057                           [<timestamp>.<user>.<dirname>]
2058   --with-version-build    Set version 'BUILD' field (build number) [not
2059                           specified]
2060   --with-version-major    Set version 'MAJOR' field (first number) [current
2061                           source value]
2062   --with-version-minor    Set version 'MINOR' field (second number) [current
2063                           source value]
2064   --with-version-security Set version 'SECURITY' field (third number) [current
2065                           source value]
2066   --with-version-patch    Set version 'PATCH' field (fourth number) [not
2067                           specified]
2068   --with-boot-jdk         path to Boot JDK (used to bootstrap build) [probed]
2069   --with-build-jdk        path to JDK of same version as is being built[the
2070                           newly built JDK]
2071   --with-add-source-root  Deprecated. Option is kept for backwards
2072                           compatibility and is ignored
2073   --with-override-source-root
2074                           Deprecated. Option is kept for backwards
2075                           compatibility and is ignored
2076   --with-adds-and-overrides
2077                           Deprecated. Option is kept for backwards
2078                           compatibility and is ignored
2079   --with-override-langtools
2080                           Deprecated. Option is kept for backwards
2081                           compatibility and is ignored
2082   --with-override-corba   Deprecated. Option is kept for backwards
2083                           compatibility and is ignored
2084   --with-override-jaxp    Deprecated. Option is kept for backwards
2085                           compatibility and is ignored
2086   --with-override-jaxws   Deprecated. Option is kept for backwards
2087                           compatibility and is ignored
2088   --with-override-hotspot Deprecated. Option is kept for backwards
2089                           compatibility and is ignored
2090   --with-override-nashorn Deprecated. Option is kept for backwards
2091                           compatibility and is ignored
2092   --with-override-jdk     Deprecated. Option is kept for backwards
2093                           compatibility and is ignored
2094   --with-import-hotspot   import hotspot binaries from this jdk image or
2095                           hotspot build dist dir instead of building from
2096                           source
2097   --with-import-modules   import a set of prebuilt modules either as a zip
2098                           file or an exploded directory
2099   --with-toolchain-type   the toolchain type (or family) to use, use '--help'
2100                           to show possible values [platform dependent]
2101   --with-extra-cflags     extra flags to be used when compiling jdk c-files
2102   --with-extra-cxxflags   extra flags to be used when compiling jdk c++-files
2103   --with-extra-ldflags    extra flags to be used when linking jdk
2104   --with-toolchain-version
2105                           the version of the toolchain to look for, use
2106                           '--help' to show possible values [platform
2107                           dependent]
2108   --with-build-devkit     Devkit to use for the build platform toolchain
2109   --with-jtreg            Regression Test Harness [probed]
2110   --with-native-debug-symbols
2111                           set the native debug symbol configuration (none,
2112                           internal, external, zipped) [varying]
2113   --with-jvm-features     additional JVM features to enable (separated by
2114                           comma), use '--help' to show possible values [none]
2115   --with-jvm-interpreter  Deprecated. Option is kept for backwards
2116                           compatibility and is ignored
2117   --with-stdc++lib=<static>,<dynamic>,<default>
2118                           force linking of the C++ runtime on Linux to either
2119                           static or dynamic, default is static with dynamic as
2120                           fallback
2121   --with-msvcr-dll        path to microsoft C runtime dll (msvcr*.dll)
2122                           (Windows only) [probed]
2123   --with-msvcp-dll        path to microsoft C++ runtime dll (msvcp*.dll)
2124                           (Windows only) [probed]
2125   --with-x                use the X Window System
2126   --with-cups             specify prefix directory for the cups package
2127                           (expecting the headers under PATH/include)
2128   --with-cups-include     specify directory for the cups include files
2129   --with-freetype         specify prefix directory for the freetype package
2130                           (expecting the libraries under PATH/lib and the
2131                           headers under PATH/include)
2132   --with-freetype-include specify directory for the freetype include files
2133   --with-freetype-lib     specify directory for the freetype library
2134   --with-freetype-src     specify directory with freetype sources to
2135                           automatically build the library (experimental,
2136                           Windows-only)
2137   --with-alsa             specify prefix directory for the alsa package
2138                           (expecting the libraries under PATH/lib and the
2139                           headers under PATH/include)
2140   --with-alsa-include     specify directory for the alsa include files
2141   --with-alsa-lib         specify directory for the alsa library
2142   --with-libffi           specify prefix directory for the libffi package
2143                           (expecting the libraries under PATH/lib and the
2144                           headers under PATH/include)
2145   --with-libffi-include   specify directory for the libffi include files
2146   --with-libffi-lib       specify directory for the libffi library
2147   --with-libjpeg          use libjpeg from build system or OpenJDK source
2148                           (system, bundled) [bundled]
2149   --with-giflib           use giflib from build system or OpenJDK source
2150                           (system, bundled) [bundled]
2151   --with-libpng           use libpng from build system or OpenJDK source
2152                           (system, bundled) [bundled]
2153   --with-zlib             use zlib from build system or OpenJDK source
2154                           (system, bundled) [bundled]
2155   --with-lcms             use lcms2 from build system or OpenJDK source
2156                           (system, bundled) [bundled]
2157   --with-dxsdk            Deprecated. Option is kept for backwards
2158                           compatibility and is ignored
2159   --with-dxsdk-lib        Deprecated. Option is kept for backwards
2160                           compatibility and is ignored
2161   --with-dxsdk-include    Deprecated. Option is kept for backwards
2162                           compatibility and is ignored
2163   --with-num-cores        number of cores in the build system, e.g.
2164                           --with-num-cores=8 [probed]
2165   --with-memory-size      memory (in MB) available in the build system, e.g.
2166                           --with-memory-size=1024 [probed]
2167   --with-jobs             number of parallel jobs to let make run [calculated
2168                           based on cores and memory]
2169   --with-test-jobs        number of parallel tests jobs to run [based on build
2170                           jobs]
2171   --with-boot-jdk-jvmargs specify JVM arguments to be passed to all java
2172                           invocations of boot JDK, overriding the default
2173                           values, e.g --with-boot-jdk-jvmargs="-Xmx8G
2174                           -enableassertions"
2175   --with-sjavac-server-java
2176                           use this java binary for running the sjavac
2177                           background server [Boot JDK java]
2178   --with-ccache-dir       where to store ccache files [~/.ccache]
2179 
2180 Some influential environment variables:
2181   BASENAME    Override default value for BASENAME
2182   BASH        Override default value for BASH
2183   CAT         Override default value for CAT
2184   CHMOD       Override default value for CHMOD
2185   CMP         Override default value for CMP
2186   COMM        Override default value for COMM
2187   CP          Override default value for CP
2188   CUT         Override default value for CUT
2189   DATE        Override default value for DATE
2190   DIFF        Override default value for DIFF
2191   DIRNAME     Override default value for DIRNAME
2192   ECHO        Override default value for ECHO
2193   EXPR        Override default value for EXPR
2194   FILE        Override default value for FILE
2195   FIND        Override default value for FIND
2196   HEAD        Override default value for HEAD
2197   LN          Override default value for LN
2198   LS          Override default value for LS
2199   MKDIR       Override default value for MKDIR
2200   MKTEMP      Override default value for MKTEMP
2201   MV          Override default value for MV
2202   NAWK        Override default value for NAWK
2203   PRINTF      Override default value for PRINTF
2204   RM          Override default value for RM
2205   RMDIR       Override default value for RMDIR
2206   SH          Override default value for SH
2207   SORT        Override default value for SORT
2208   TAIL        Override default value for TAIL
2209   TAR         Override default value for TAR
2210   TEE         Override default value for TEE
2211   TOUCH       Override default value for TOUCH
2212   TR          Override default value for TR
2213   UNAME       Override default value for UNAME
2214   UNIQ        Override default value for UNIQ
2215   WC          Override default value for WC
2216   WHICH       Override default value for WHICH
2217   XARGS       Override default value for XARGS
2218   AWK         Override default value for AWK
2219   GREP        Override default value for GREP
2220   EGREP       Override default value for EGREP
2221   FGREP       Override default value for FGREP
2222   SED         Override default value for SED
2223   CYGPATH     Override default value for CYGPATH
2224   READLINK    Override default value for READLINK
2225   DF          Override default value for DF
2226   CPIO        Override default value for CPIO
2227   NICE        Override default value for NICE
2228   MAKE        Override default value for MAKE
2229   UNZIP       Override default value for UNZIP
2230   ZIP         Override default value for ZIP
2231   LDD         Override default value for LDD
2232   OTOOL       Override default value for OTOOL
2233   READELF     Override default value for READELF
2234   HG          Override default value for HG
2235   STAT        Override default value for STAT
2236   TIME        Override default value for TIME
2237   DTRACE      Override default value for DTRACE
2238   PATCH       Override default value for PATCH
2239   DSYMUTIL    Override default value for DSYMUTIL
2240   XATTR       Override default value for XATTR
2241   CODESIGN    Override default value for CODESIGN
2242   SETFILE     Override default value for SETFILE
2243   PKG_CONFIG  path to pkg-config utility
2244   JAVA        Override default value for JAVA
2245   JAVAC       Override default value for JAVAC
2246   JAVAH       Override default value for JAVAH
2247   JAR         Override default value for JAR
2248   JARSIGNER   Override default value for JARSIGNER
2249   CC          C compiler command
2250   CFLAGS      C compiler flags
2251   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2252               nonstandard directory <lib dir>
2253   LIBS        libraries to pass to the linker, e.g. -l<library>
2254   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2255               you have headers in a nonstandard directory <include dir>
2256   CXX         C++ compiler command
2257   CXXFLAGS    C++ compiler flags
2258   CPP         C preprocessor
2259   CXXCPP      C++ preprocessor
2260   AS          Override default value for AS
2261   AR          Override default value for AR
2262   LIPO        Override default value for LIPO
2263   STRIP       Override default value for STRIP
2264   NM          Override default value for NM
2265   GNM         Override default value for GNM
2266   OBJCOPY     Override default value for OBJCOPY
2267   OBJDUMP     Override default value for OBJDUMP
2268   BUILD_CC    Override default value for BUILD_CC
2269   BUILD_CXX   Override default value for BUILD_CXX
2270   BUILD_NM    Override default value for BUILD_NM
2271   BUILD_AR    Override default value for BUILD_AR
2272   BUILD_OBJCOPY
2273               Override default value for BUILD_OBJCOPY
2274   BUILD_STRIP Override default value for BUILD_STRIP
2275   JTREGEXE    Override default value for JTREGEXE
2276   XMKMF       Path to xmkmf, Makefile generator for X Window System
2277   FREETYPE_CFLAGS
2278               C compiler flags for FREETYPE, overriding pkg-config
2279   FREETYPE_LIBS
2280               linker flags for FREETYPE, overriding pkg-config
2281   ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
2282   ALSA_LIBS   linker flags for ALSA, overriding pkg-config
2283   LIBFFI_CFLAGS
2284               C compiler flags for LIBFFI, overriding pkg-config
2285   LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
2286   PNG_CFLAGS  C compiler flags for PNG, overriding pkg-config
2287   PNG_LIBS    linker flags for PNG, overriding pkg-config
2288   LCMS_CFLAGS C compiler flags for LCMS, overriding pkg-config
2289   LCMS_LIBS   linker flags for LCMS, overriding pkg-config
2290   ICECC_CMD   Override default value for ICECC_CMD
2291   ICECC_CREATE_ENV
2292               Override default value for ICECC_CREATE_ENV
2293   ICECC_WRAPPER
2294               Override default value for ICECC_WRAPPER
2295   CCACHE      Override default value for CCACHE
2296 
2297 Use these variables to override the choices made by `configure' or to help
2298 it to find libraries and programs with nonstandard names/locations.
2299 
2300 Report bugs to <build-dev@openjdk.java.net>.
2301 OpenJDK home page: <http://openjdk.java.net>.
2302 _ACEOF
2303 ac_status=$?
2304 fi
2305 
2306 if test "$ac_init_help" = "recursive"; then
2307   # If there are subdirs, report their specific --help.
2308   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2309     test -d "$ac_dir" ||
2310       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2311       continue
2312     ac_builddir=.
2313 
2314 case "$ac_dir" in
2315 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2316 *)
2317   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2318   # A ".." for each directory in $ac_dir_suffix.
2319   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2320   case $ac_top_builddir_sub in
2321   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2322   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2323   esac ;;
2324 esac
2325 ac_abs_top_builddir=$ac_pwd
2326 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2327 # for backward compatibility:
2328 ac_top_builddir=$ac_top_build_prefix
2329 
2330 case $srcdir in
2331   .)  # We are building in place.
2332     ac_srcdir=.
2333     ac_top_srcdir=$ac_top_builddir_sub
2334     ac_abs_top_srcdir=$ac_pwd ;;
2335   [\\/]* | ?:[\\/]* )  # Absolute name.
2336     ac_srcdir=$srcdir$ac_dir_suffix;
2337     ac_top_srcdir=$srcdir
2338     ac_abs_top_srcdir=$srcdir ;;
2339   *) # Relative name.
2340     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2341     ac_top_srcdir=$ac_top_build_prefix$srcdir
2342     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2343 esac
2344 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2345 
2346     cd "$ac_dir" || { ac_status=$?; continue; }
2347     # Check for guested configure.
2348     if test -f "$ac_srcdir/configure.gnu"; then
2349       echo &&
2350       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2351     elif test -f "$ac_srcdir/configure"; then
2352       echo &&
2353       $SHELL "$ac_srcdir/configure" --help=recursive
2354     else
2355       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2356     fi || ac_status=$?
2357     cd "$ac_pwd" || { ac_status=$?; break; }
2358   done
2359 fi
2360 
2361 test -n "$ac_init_help" && exit $ac_status
2362 if $ac_init_version; then
2363   cat <<\_ACEOF
2364 OpenJDK configure jdk9
2365 generated by GNU Autoconf 2.69
2366 
2367 Copyright (C) 2012 Free Software Foundation, Inc.
2368 This configure script is free software; the Free Software Foundation
2369 gives unlimited permission to copy, distribute and modify it.
2370 _ACEOF
2371   exit
2372 fi
2373 
2374 ## ------------------------ ##
2375 ## Autoconf initialization. ##
2376 ## ------------------------ ##
2377 
2378 # ac_fn_c_try_compile LINENO
2379 # --------------------------
2380 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2381 ac_fn_c_try_compile ()
2382 {
2383   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2384   rm -f conftest.$ac_objext
2385   if { { ac_try="$ac_compile"
2386 case "(($ac_try" in
2387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2388   *) ac_try_echo=$ac_try;;
2389 esac
2390 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2391 $as_echo "$ac_try_echo"; } >&5
2392   (eval "$ac_compile") 2>conftest.err
2393   ac_status=$?
2394   if test -s conftest.err; then
2395     grep -v '^ *+' conftest.err >conftest.er1
2396     cat conftest.er1 >&5
2397     mv -f conftest.er1 conftest.err
2398   fi
2399   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2400   test $ac_status = 0; } && {
2401          test -z "$ac_c_werror_flag" ||
2402          test ! -s conftest.err
2403        } && test -s conftest.$ac_objext; then :
2404   ac_retval=0
2405 else
2406   $as_echo "$as_me: failed program was:" >&5
2407 sed 's/^/| /' conftest.$ac_ext >&5
2408 
2409         ac_retval=1
2410 fi
2411   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2412   as_fn_set_status $ac_retval
2413 
2414 } # ac_fn_c_try_compile
2415 
2416 # ac_fn_cxx_try_compile LINENO
2417 # ----------------------------
2418 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2419 ac_fn_cxx_try_compile ()
2420 {
2421   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2422   rm -f conftest.$ac_objext
2423   if { { ac_try="$ac_compile"
2424 case "(($ac_try" in
2425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2426   *) ac_try_echo=$ac_try;;
2427 esac
2428 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2429 $as_echo "$ac_try_echo"; } >&5
2430   (eval "$ac_compile") 2>conftest.err
2431   ac_status=$?
2432   if test -s conftest.err; then
2433     grep -v '^ *+' conftest.err >conftest.er1
2434     cat conftest.er1 >&5
2435     mv -f conftest.er1 conftest.err
2436   fi
2437   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2438   test $ac_status = 0; } && {
2439          test -z "$ac_cxx_werror_flag" ||
2440          test ! -s conftest.err
2441        } && test -s conftest.$ac_objext; then :
2442   ac_retval=0
2443 else
2444   $as_echo "$as_me: failed program was:" >&5
2445 sed 's/^/| /' conftest.$ac_ext >&5
2446 
2447         ac_retval=1
2448 fi
2449   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2450   as_fn_set_status $ac_retval
2451 
2452 } # ac_fn_cxx_try_compile
2453 
2454 # ac_fn_c_try_cpp LINENO
2455 # ----------------------
2456 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2457 ac_fn_c_try_cpp ()
2458 {
2459   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2460   if { { ac_try="$ac_cpp conftest.$ac_ext"
2461 case "(($ac_try" in
2462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2463   *) ac_try_echo=$ac_try;;
2464 esac
2465 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2466 $as_echo "$ac_try_echo"; } >&5
2467   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2468   ac_status=$?
2469   if test -s conftest.err; then
2470     grep -v '^ *+' conftest.err >conftest.er1
2471     cat conftest.er1 >&5
2472     mv -f conftest.er1 conftest.err
2473   fi
2474   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2475   test $ac_status = 0; } > conftest.i && {
2476          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2477          test ! -s conftest.err
2478        }; then :
2479   ac_retval=0
2480 else
2481   $as_echo "$as_me: failed program was:" >&5
2482 sed 's/^/| /' conftest.$ac_ext >&5
2483 
2484     ac_retval=1
2485 fi
2486   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2487   as_fn_set_status $ac_retval
2488 
2489 } # ac_fn_c_try_cpp
2490 
2491 # ac_fn_cxx_try_cpp LINENO
2492 # ------------------------
2493 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2494 ac_fn_cxx_try_cpp ()
2495 {
2496   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2497   if { { ac_try="$ac_cpp conftest.$ac_ext"
2498 case "(($ac_try" in
2499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2500   *) ac_try_echo=$ac_try;;
2501 esac
2502 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2503 $as_echo "$ac_try_echo"; } >&5
2504   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2505   ac_status=$?
2506   if test -s conftest.err; then
2507     grep -v '^ *+' conftest.err >conftest.er1
2508     cat conftest.er1 >&5
2509     mv -f conftest.er1 conftest.err
2510   fi
2511   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2512   test $ac_status = 0; } > conftest.i && {
2513          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2514          test ! -s conftest.err
2515        }; then :
2516   ac_retval=0
2517 else
2518   $as_echo "$as_me: failed program was:" >&5
2519 sed 's/^/| /' conftest.$ac_ext >&5
2520 
2521     ac_retval=1
2522 fi
2523   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2524   as_fn_set_status $ac_retval
2525 
2526 } # ac_fn_cxx_try_cpp
2527 
2528 # ac_fn_c_try_link LINENO
2529 # -----------------------
2530 # Try to link conftest.$ac_ext, and return whether this succeeded.
2531 ac_fn_c_try_link ()
2532 {
2533   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2534   rm -f conftest.$ac_objext conftest$ac_exeext
2535   if { { ac_try="$ac_link"
2536 case "(($ac_try" in
2537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2538   *) ac_try_echo=$ac_try;;
2539 esac
2540 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2541 $as_echo "$ac_try_echo"; } >&5
2542   (eval "$ac_link") 2>conftest.err
2543   ac_status=$?
2544   if test -s conftest.err; then
2545     grep -v '^ *+' conftest.err >conftest.er1
2546     cat conftest.er1 >&5
2547     mv -f conftest.er1 conftest.err
2548   fi
2549   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2550   test $ac_status = 0; } && {
2551          test -z "$ac_c_werror_flag" ||
2552          test ! -s conftest.err
2553        } && test -s conftest$ac_exeext && {
2554          test "$cross_compiling" = yes ||
2555          test -x conftest$ac_exeext
2556        }; then :
2557   ac_retval=0
2558 else
2559   $as_echo "$as_me: failed program was:" >&5
2560 sed 's/^/| /' conftest.$ac_ext >&5
2561 
2562         ac_retval=1
2563 fi
2564   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2565   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2566   # interfere with the next link command; also delete a directory that is
2567   # left behind by Apple's compiler.  We do this before executing the actions.
2568   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2569   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2570   as_fn_set_status $ac_retval
2571 
2572 } # ac_fn_c_try_link
2573 
2574 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2575 # ---------------------------------------------------------
2576 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2577 # the include files in INCLUDES and setting the cache variable VAR
2578 # accordingly.
2579 ac_fn_cxx_check_header_mongrel ()
2580 {
2581   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2582   if eval \${$3+:} false; then :
2583   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2584 $as_echo_n "checking for $2... " >&6; }
2585 if eval \${$3+:} false; then :
2586   $as_echo_n "(cached) " >&6
2587 fi
2588 eval ac_res=\$$3
2589                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2590 $as_echo "$ac_res" >&6; }
2591 else
2592   # Is the header compilable?
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2594 $as_echo_n "checking $2 usability... " >&6; }
2595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2596 /* end confdefs.h.  */
2597 $4
2598 #include <$2>
2599 _ACEOF
2600 if ac_fn_cxx_try_compile "$LINENO"; then :
2601   ac_header_compiler=yes
2602 else
2603   ac_header_compiler=no
2604 fi
2605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2607 $as_echo "$ac_header_compiler" >&6; }
2608 
2609 # Is the header present?
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2611 $as_echo_n "checking $2 presence... " >&6; }
2612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2613 /* end confdefs.h.  */
2614 #include <$2>
2615 _ACEOF
2616 if ac_fn_cxx_try_cpp "$LINENO"; then :
2617   ac_header_preproc=yes
2618 else
2619   ac_header_preproc=no
2620 fi
2621 rm -f conftest.err conftest.i conftest.$ac_ext
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2623 $as_echo "$ac_header_preproc" >&6; }
2624 
2625 # So?  What about this header?
2626 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2627   yes:no: )
2628     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2629 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2630     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2631 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2632     ;;
2633   no:yes:* )
2634     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2635 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2636     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2637 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2638     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2639 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2640     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2641 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2642     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2643 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2644 ( $as_echo "## ----------------------------------------- ##
2645 ## Report this to build-dev@openjdk.java.net ##
2646 ## ----------------------------------------- ##"
2647      ) | sed "s/^/$as_me: WARNING:     /" >&2
2648     ;;
2649 esac
2650   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2651 $as_echo_n "checking for $2... " >&6; }
2652 if eval \${$3+:} false; then :
2653   $as_echo_n "(cached) " >&6
2654 else
2655   eval "$3=\$ac_header_compiler"
2656 fi
2657 eval ac_res=\$$3
2658                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2659 $as_echo "$ac_res" >&6; }
2660 fi
2661   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2662 
2663 } # ac_fn_cxx_check_header_mongrel
2664 
2665 # ac_fn_cxx_try_run LINENO
2666 # ------------------------
2667 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2668 # that executables *can* be run.
2669 ac_fn_cxx_try_run ()
2670 {
2671   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2672   if { { ac_try="$ac_link"
2673 case "(($ac_try" in
2674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2675   *) ac_try_echo=$ac_try;;
2676 esac
2677 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2678 $as_echo "$ac_try_echo"; } >&5
2679   (eval "$ac_link") 2>&5
2680   ac_status=$?
2681   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2682   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2683   { { case "(($ac_try" in
2684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2685   *) ac_try_echo=$ac_try;;
2686 esac
2687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2688 $as_echo "$ac_try_echo"; } >&5
2689   (eval "$ac_try") 2>&5
2690   ac_status=$?
2691   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2692   test $ac_status = 0; }; }; then :
2693   ac_retval=0
2694 else
2695   $as_echo "$as_me: program exited with status $ac_status" >&5
2696        $as_echo "$as_me: failed program was:" >&5
2697 sed 's/^/| /' conftest.$ac_ext >&5
2698 
2699        ac_retval=$ac_status
2700 fi
2701   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2702   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2703   as_fn_set_status $ac_retval
2704 
2705 } # ac_fn_cxx_try_run
2706 
2707 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2708 # ---------------------------------------------------------
2709 # Tests whether HEADER exists and can be compiled using the include files in
2710 # INCLUDES, setting the cache variable VAR accordingly.
2711 ac_fn_cxx_check_header_compile ()
2712 {
2713   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2714   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2715 $as_echo_n "checking for $2... " >&6; }
2716 if eval \${$3+:} false; then :
2717   $as_echo_n "(cached) " >&6
2718 else
2719   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2720 /* end confdefs.h.  */
2721 $4
2722 #include <$2>
2723 _ACEOF
2724 if ac_fn_cxx_try_compile "$LINENO"; then :
2725   eval "$3=yes"
2726 else
2727   eval "$3=no"
2728 fi
2729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2730 fi
2731 eval ac_res=\$$3
2732                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2733 $as_echo "$ac_res" >&6; }
2734   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2735 
2736 } # ac_fn_cxx_check_header_compile
2737 
2738 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2739 # ----------------------------------------------
2740 # Tries to find the compile-time value of EXPR in a program that includes
2741 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2742 # computed
2743 ac_fn_cxx_compute_int ()
2744 {
2745   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2746   if test "$cross_compiling" = yes; then
2747     # Depending upon the size, compute the lo and hi bounds.
2748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2749 /* end confdefs.h.  */
2750 $4
2751 int
2752 main ()
2753 {
2754 static int test_array [1 - 2 * !(($2) >= 0)];
2755 test_array [0] = 0;
2756 return test_array [0];
2757 
2758   ;
2759   return 0;
2760 }
2761 _ACEOF
2762 if ac_fn_cxx_try_compile "$LINENO"; then :
2763   ac_lo=0 ac_mid=0
2764   while :; do
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) <= $ac_mid)];
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_hi=$ac_mid; break
2781 else
2782   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2783                         if test $ac_lo -le $ac_mid; then
2784                           ac_lo= ac_hi=
2785                           break
2786                         fi
2787                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2788 fi
2789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2790   done
2791 else
2792   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2793 /* end confdefs.h.  */
2794 $4
2795 int
2796 main ()
2797 {
2798 static int test_array [1 - 2 * !(($2) < 0)];
2799 test_array [0] = 0;
2800 return test_array [0];
2801 
2802   ;
2803   return 0;
2804 }
2805 _ACEOF
2806 if ac_fn_cxx_try_compile "$LINENO"; then :
2807   ac_hi=-1 ac_mid=-1
2808   while :; do
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) >= $ac_mid)];
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_lo=$ac_mid; break
2825 else
2826   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2827                         if test $ac_mid -le $ac_hi; then
2828                           ac_lo= ac_hi=
2829                           break
2830                         fi
2831                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2832 fi
2833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2834   done
2835 else
2836   ac_lo= ac_hi=
2837 fi
2838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2839 fi
2840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2841 # Binary search between lo and hi bounds.
2842 while test "x$ac_lo" != "x$ac_hi"; do
2843   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2844   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2845 /* end confdefs.h.  */
2846 $4
2847 int
2848 main ()
2849 {
2850 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2851 test_array [0] = 0;
2852 return test_array [0];
2853 
2854   ;
2855   return 0;
2856 }
2857 _ACEOF
2858 if ac_fn_cxx_try_compile "$LINENO"; then :
2859   ac_hi=$ac_mid
2860 else
2861   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2862 fi
2863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2864 done
2865 case $ac_lo in #((
2866 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2867 '') ac_retval=1 ;;
2868 esac
2869   else
2870     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2871 /* end confdefs.h.  */
2872 $4
2873 static long int longval () { return $2; }
2874 static unsigned long int ulongval () { return $2; }
2875 #include <stdio.h>
2876 #include <stdlib.h>
2877 int
2878 main ()
2879 {
2880 
2881   FILE *f = fopen ("conftest.val", "w");
2882   if (! f)
2883     return 1;
2884   if (($2) < 0)
2885     {
2886       long int i = longval ();
2887       if (i != ($2))
2888         return 1;
2889       fprintf (f, "%ld", i);
2890     }
2891   else
2892     {
2893       unsigned long int i = ulongval ();
2894       if (i != ($2))
2895         return 1;
2896       fprintf (f, "%lu", i);
2897     }
2898   /* Do not output a trailing newline, as this causes \r\n confusion
2899      on some platforms.  */
2900   return ferror (f) || fclose (f) != 0;
2901 
2902   ;
2903   return 0;
2904 }
2905 _ACEOF
2906 if ac_fn_cxx_try_run "$LINENO"; then :
2907   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2908 else
2909   ac_retval=1
2910 fi
2911 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2912   conftest.$ac_objext conftest.beam conftest.$ac_ext
2913 rm -f conftest.val
2914 
2915   fi
2916   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2917   as_fn_set_status $ac_retval
2918 
2919 } # ac_fn_cxx_compute_int
2920 
2921 # ac_fn_cxx_try_link LINENO
2922 # -------------------------
2923 # Try to link conftest.$ac_ext, and return whether this succeeded.
2924 ac_fn_cxx_try_link ()
2925 {
2926   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2927   rm -f conftest.$ac_objext conftest$ac_exeext
2928   if { { ac_try="$ac_link"
2929 case "(($ac_try" in
2930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2931   *) ac_try_echo=$ac_try;;
2932 esac
2933 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2934 $as_echo "$ac_try_echo"; } >&5
2935   (eval "$ac_link") 2>conftest.err
2936   ac_status=$?
2937   if test -s conftest.err; then
2938     grep -v '^ *+' conftest.err >conftest.er1
2939     cat conftest.er1 >&5
2940     mv -f conftest.er1 conftest.err
2941   fi
2942   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2943   test $ac_status = 0; } && {
2944          test -z "$ac_cxx_werror_flag" ||
2945          test ! -s conftest.err
2946        } && test -s conftest$ac_exeext && {
2947          test "$cross_compiling" = yes ||
2948          test -x conftest$ac_exeext
2949        }; then :
2950   ac_retval=0
2951 else
2952   $as_echo "$as_me: failed program was:" >&5
2953 sed 's/^/| /' conftest.$ac_ext >&5
2954 
2955         ac_retval=1
2956 fi
2957   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2958   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2959   # interfere with the next link command; also delete a directory that is
2960   # left behind by Apple's compiler.  We do this before executing the actions.
2961   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2962   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2963   as_fn_set_status $ac_retval
2964 
2965 } # ac_fn_cxx_try_link
2966 
2967 # ac_fn_cxx_check_func LINENO FUNC VAR
2968 # ------------------------------------
2969 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2970 ac_fn_cxx_check_func ()
2971 {
2972   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2973   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2974 $as_echo_n "checking for $2... " >&6; }
2975 if eval \${$3+:} false; then :
2976   $as_echo_n "(cached) " >&6
2977 else
2978   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2979 /* end confdefs.h.  */
2980 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2981    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2982 #define $2 innocuous_$2
2983 
2984 /* System header to define __stub macros and hopefully few prototypes,
2985     which can conflict with char $2 (); below.
2986     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2987     <limits.h> exists even on freestanding compilers.  */
2988 
2989 #ifdef __STDC__
2990 # include <limits.h>
2991 #else
2992 # include <assert.h>
2993 #endif
2994 
2995 #undef $2
2996 
2997 /* Override any GCC internal prototype to avoid an error.
2998    Use char because int might match the return type of a GCC
2999    builtin and then its argument prototype would still apply.  */
3000 #ifdef __cplusplus
3001 extern "C"
3002 #endif
3003 char $2 ();
3004 /* The GNU C library defines this for functions which it implements
3005     to always fail with ENOSYS.  Some functions are actually named
3006     something starting with __ and the normal name is an alias.  */
3007 #if defined __stub_$2 || defined __stub___$2
3008 choke me
3009 #endif
3010 
3011 int
3012 main ()
3013 {
3014 return $2 ();
3015   ;
3016   return 0;
3017 }
3018 _ACEOF
3019 if ac_fn_cxx_try_link "$LINENO"; then :
3020   eval "$3=yes"
3021 else
3022   eval "$3=no"
3023 fi
3024 rm -f core conftest.err conftest.$ac_objext \
3025     conftest$ac_exeext conftest.$ac_ext
3026 fi
3027 eval ac_res=\$$3
3028                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3029 $as_echo "$ac_res" >&6; }
3030   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3031 
3032 } # ac_fn_cxx_check_func
3033 
3034 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
3035 # -------------------------------------------------------
3036 # Tests whether HEADER exists and can be compiled using the include files in
3037 # INCLUDES, setting the cache variable VAR accordingly.
3038 ac_fn_c_check_header_compile ()
3039 {
3040   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3041   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3042 $as_echo_n "checking for $2... " >&6; }
3043 if eval \${$3+:} false; then :
3044   $as_echo_n "(cached) " >&6
3045 else
3046   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3047 /* end confdefs.h.  */
3048 $4
3049 #include <$2>
3050 _ACEOF
3051 if ac_fn_c_try_compile "$LINENO"; then :
3052   eval "$3=yes"
3053 else
3054   eval "$3=no"
3055 fi
3056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3057 fi
3058 eval ac_res=\$$3
3059                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3060 $as_echo "$ac_res" >&6; }
3061   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3062 
3063 } # ac_fn_c_check_header_compile
3064 cat >config.log <<_ACEOF
3065 This file contains any messages produced by compilers while
3066 running configure, to aid debugging if configure makes a mistake.
3067 
3068 It was created by OpenJDK $as_me jdk9, which was
3069 generated by GNU Autoconf 2.69.  Invocation command line was
3070 
3071   $ $0 $@
3072 
3073 _ACEOF
3074 exec 5>>config.log
3075 {
3076 cat <<_ASUNAME
3077 ## --------- ##
3078 ## Platform. ##
3079 ## --------- ##
3080 
3081 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3082 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3083 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3084 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3085 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3086 
3087 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3088 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
3089 
3090 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
3091 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
3092 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3093 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
3094 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
3095 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
3096 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
3097 
3098 _ASUNAME
3099 
3100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3101 for as_dir in $PATH
3102 do
3103   IFS=$as_save_IFS
3104   test -z "$as_dir" && as_dir=.
3105     $as_echo "PATH: $as_dir"
3106   done
3107 IFS=$as_save_IFS
3108 
3109 } >&5
3110 
3111 cat >&5 <<_ACEOF
3112 
3113 
3114 ## ----------- ##
3115 ## Core tests. ##
3116 ## ----------- ##
3117 
3118 _ACEOF
3119 
3120 
3121 # Keep a trace of the command line.
3122 # Strip out --no-create and --no-recursion so they do not pile up.
3123 # Strip out --silent because we don't want to record it for future runs.
3124 # Also quote any args containing shell meta-characters.
3125 # Make two passes to allow for proper duplicate-argument suppression.
3126 ac_configure_args=
3127 ac_configure_args0=
3128 ac_configure_args1=
3129 ac_must_keep_next=false
3130 for ac_pass in 1 2
3131 do
3132   for ac_arg
3133   do
3134     case $ac_arg in
3135     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3136     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3137     | -silent | --silent | --silen | --sile | --sil)
3138       continue ;;
3139     *\'*)
3140       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3141     esac
3142     case $ac_pass in
3143     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3144     2)
3145       as_fn_append ac_configure_args1 " '$ac_arg'"
3146       if test $ac_must_keep_next = true; then
3147         ac_must_keep_next=false # Got value, back to normal.
3148       else
3149         case $ac_arg in
3150           *=* | --config-cache | -C | -disable-* | --disable-* \
3151           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3152           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3153           | -with-* | --with-* | -without-* | --without-* | --x)
3154             case "$ac_configure_args0 " in
3155               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3156             esac
3157             ;;
3158           -* ) ac_must_keep_next=true ;;
3159         esac
3160       fi
3161       as_fn_append ac_configure_args " '$ac_arg'"
3162       ;;
3163     esac
3164   done
3165 done
3166 { ac_configure_args0=; unset ac_configure_args0;}
3167 { ac_configure_args1=; unset ac_configure_args1;}
3168 
3169 # When interrupted or exit'd, cleanup temporary files, and complete
3170 # config.log.  We remove comments because anyway the quotes in there
3171 # would cause problems or look ugly.
3172 # WARNING: Use '\'' to represent an apostrophe within the trap.
3173 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3174 trap 'exit_status=$?
3175   # Save into config.log some information that might help in debugging.
3176   {
3177     echo
3178 
3179     $as_echo "## ---------------- ##
3180 ## Cache variables. ##
3181 ## ---------------- ##"
3182     echo
3183     # The following way of writing the cache mishandles newlines in values,
3184 (
3185   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3186     eval ac_val=\$$ac_var
3187     case $ac_val in #(
3188     *${as_nl}*)
3189       case $ac_var in #(
3190       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3191 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3192       esac
3193       case $ac_var in #(
3194       _ | IFS | as_nl) ;; #(
3195       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3196       *) { eval $ac_var=; unset $ac_var;} ;;
3197       esac ;;
3198     esac
3199   done
3200   (set) 2>&1 |
3201     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3202     *${as_nl}ac_space=\ *)
3203       sed -n \
3204         "s/'\''/'\''\\\\'\'''\''/g;
3205           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3206       ;; #(
3207     *)
3208       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3209       ;;
3210     esac |
3211     sort
3212 )
3213     echo
3214 
3215     $as_echo "## ----------------- ##
3216 ## Output variables. ##
3217 ## ----------------- ##"
3218     echo
3219     for ac_var in $ac_subst_vars
3220     do
3221       eval ac_val=\$$ac_var
3222       case $ac_val in
3223       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3224       esac
3225       $as_echo "$ac_var='\''$ac_val'\''"
3226     done | sort
3227     echo
3228 
3229     if test -n "$ac_subst_files"; then
3230       $as_echo "## ------------------- ##
3231 ## File substitutions. ##
3232 ## ------------------- ##"
3233       echo
3234       for ac_var in $ac_subst_files
3235       do
3236         eval ac_val=\$$ac_var
3237         case $ac_val in
3238         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3239         esac
3240         $as_echo "$ac_var='\''$ac_val'\''"
3241       done | sort
3242       echo
3243     fi
3244 
3245     if test -s confdefs.h; then
3246       $as_echo "## ----------- ##
3247 ## confdefs.h. ##
3248 ## ----------- ##"
3249       echo
3250       cat confdefs.h
3251       echo
3252     fi
3253     test "$ac_signal" != 0 &&
3254       $as_echo "$as_me: caught signal $ac_signal"
3255     $as_echo "$as_me: exit $exit_status"
3256   } >&5
3257   rm -f core *.core core.conftest.* &&
3258     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3259     exit $exit_status
3260 ' 0
3261 for ac_signal in 1 2 13 15; do
3262   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3263 done
3264 ac_signal=0
3265 
3266 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3267 rm -f -r conftest* confdefs.h
3268 
3269 $as_echo "/* confdefs.h */" > confdefs.h
3270 
3271 # Predefined preprocessor variables.
3272 
3273 cat >>confdefs.h <<_ACEOF
3274 #define PACKAGE_NAME "$PACKAGE_NAME"
3275 _ACEOF
3276 
3277 cat >>confdefs.h <<_ACEOF
3278 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3279 _ACEOF
3280 
3281 cat >>confdefs.h <<_ACEOF
3282 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3283 _ACEOF
3284 
3285 cat >>confdefs.h <<_ACEOF
3286 #define PACKAGE_STRING "$PACKAGE_STRING"
3287 _ACEOF
3288 
3289 cat >>confdefs.h <<_ACEOF
3290 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3291 _ACEOF
3292 
3293 cat >>confdefs.h <<_ACEOF
3294 #define PACKAGE_URL "$PACKAGE_URL"
3295 _ACEOF
3296 
3297 
3298 # Let the site file select an alternate cache file if it wants to.
3299 # Prefer an explicitly selected file to automatically selected ones.
3300 ac_site_file1=NONE
3301 ac_site_file2=NONE
3302 if test -n "$CONFIG_SITE"; then
3303   # We do not want a PATH search for config.site.
3304   case $CONFIG_SITE in #((
3305     -*)  ac_site_file1=./$CONFIG_SITE;;
3306     */*) ac_site_file1=$CONFIG_SITE;;
3307     *)   ac_site_file1=./$CONFIG_SITE;;
3308   esac
3309 elif test "x$prefix" != xNONE; then
3310   ac_site_file1=$prefix/share/config.site
3311   ac_site_file2=$prefix/etc/config.site
3312 else
3313   ac_site_file1=$ac_default_prefix/share/config.site
3314   ac_site_file2=$ac_default_prefix/etc/config.site
3315 fi
3316 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3317 do
3318   test "x$ac_site_file" = xNONE && continue
3319   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3320     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3321 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3322     sed 's/^/| /' "$ac_site_file" >&5
3323     . "$ac_site_file" \
3324       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3325 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3326 as_fn_error $? "failed to load site script $ac_site_file
3327 See \`config.log' for more details" "$LINENO" 5; }
3328   fi
3329 done
3330 
3331 if test -r "$cache_file"; then
3332   # Some versions of bash will fail to source /dev/null (special files
3333   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3334   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3335     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3336 $as_echo "$as_me: loading cache $cache_file" >&6;}
3337     case $cache_file in
3338       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3339       *)                      . "./$cache_file";;
3340     esac
3341   fi
3342 else
3343   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3344 $as_echo "$as_me: creating cache $cache_file" >&6;}
3345   >$cache_file
3346 fi
3347 
3348 # Check that the precious variables saved in the cache have kept the same
3349 # value.
3350 ac_cache_corrupted=false
3351 for ac_var in $ac_precious_vars; do
3352   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3353   eval ac_new_set=\$ac_env_${ac_var}_set
3354   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3355   eval ac_new_val=\$ac_env_${ac_var}_value
3356   case $ac_old_set,$ac_new_set in
3357     set,)
3358       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3359 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3360       ac_cache_corrupted=: ;;
3361     ,set)
3362       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3363 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3364       ac_cache_corrupted=: ;;
3365     ,);;
3366     *)
3367       if test "x$ac_old_val" != "x$ac_new_val"; then
3368         # differences in whitespace do not lead to failure.
3369         ac_old_val_w=`echo x $ac_old_val`
3370         ac_new_val_w=`echo x $ac_new_val`
3371         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3372           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3373 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3374           ac_cache_corrupted=:
3375         else
3376           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3377 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3378           eval $ac_var=\$ac_old_val
3379         fi
3380         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3381 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3382         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3383 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3384       fi;;
3385   esac
3386   # Pass precious variables to config.status.
3387   if test "$ac_new_set" = set; then
3388     case $ac_new_val in
3389     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3390     *) ac_arg=$ac_var=$ac_new_val ;;
3391     esac
3392     case " $ac_configure_args " in
3393       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3394       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3395     esac
3396   fi
3397 done
3398 if $ac_cache_corrupted; then
3399   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3400 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3401   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3402 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3403   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3404 fi
3405 ## -------------------- ##
3406 ## Main body of script. ##
3407 ## -------------------- ##
3408 
3409 ac_ext=c
3410 ac_cpp='$CPP $CPPFLAGS'
3411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3414 
3415 
3416 
3417 ac_aux_dir=
3418 for ac_dir in $TOPDIR/common/autoconf/build-aux "$srcdir"/$TOPDIR/common/autoconf/build-aux; do
3419   if test -f "$ac_dir/install-sh"; then
3420     ac_aux_dir=$ac_dir
3421     ac_install_sh="$ac_aux_dir/install-sh -c"
3422     break
3423   elif test -f "$ac_dir/install.sh"; then
3424     ac_aux_dir=$ac_dir
3425     ac_install_sh="$ac_aux_dir/install.sh -c"
3426     break
3427   elif test -f "$ac_dir/shtool"; then
3428     ac_aux_dir=$ac_dir
3429     ac_install_sh="$ac_aux_dir/shtool install -c"
3430     break
3431   fi
3432 done
3433 if test -z "$ac_aux_dir"; then
3434   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
3435 fi
3436 
3437 # These three variables are undocumented and unsupported,
3438 # and are intended to be withdrawn in a future Autoconf release.
3439 # They can cause serious problems if a builder's source tree is in a directory
3440 # whose full name contains unusual characters.
3441 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3442 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3443 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3444 
3445 
3446 # pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
3447 
3448 #
3449 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
3450 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3451 #
3452 # This code is free software; you can redistribute it and/or modify it
3453 # under the terms of the GNU General Public License version 2 only, as
3454 # published by the Free Software Foundation.  Oracle designates this
3455 # particular file as subject to the "Classpath" exception as provided
3456 # by Oracle in the LICENSE file that accompanied this code.
3457 #
3458 # This code is distributed in the hope that it will be useful, but WITHOUT
3459 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3460 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3461 # version 2 for more details (a copy is included in the LICENSE file that
3462 # accompanied this code).
3463 #
3464 # You should have received a copy of the GNU General Public License version
3465 # 2 along with this work; if not, write to the Free Software Foundation,
3466 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3467 #
3468 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3469 # or visit www.oracle.com if you need additional information or have any
3470 # questions.
3471 #
3472 
3473 #
3474 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
3475 #
3476 # This program is free software; you can redistribute it and/or modify
3477 # it under the terms of the GNU General Public License as published by
3478 # the Free Software Foundation; either version 2 of the License, or
3479 # (at your option) any later version.
3480 #
3481 # This program is distributed in the hope that it will be useful, but
3482 # WITHOUT ANY WARRANTY; without even the implied warranty of
3483 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
3484 # General Public License for more details.
3485 #
3486 # You should have received a copy of the GNU General Public License
3487 # along with this program; if not, write to the Free Software
3488 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
3489 #
3490 # As a special exception to the GNU General Public License, if you
3491 # distribute this file as part of a program that contains a
3492 # configuration script generated by Autoconf, you may include it under
3493 # the same distribution terms that you use for the rest of that program.
3494 
3495 # PKG_PROG_PKG_CONFIG([MIN-VERSION])
3496 # ----------------------------------
3497 # PKG_PROG_PKG_CONFIG
3498 
3499 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
3500 #
3501 # Check to see whether a particular set of modules exists.  Similar
3502 # to PKG_CHECK_MODULES(), but does not set variables or print errors.
3503 #
3504 #
3505 # Similar to PKG_CHECK_MODULES, make sure that the first instance of
3506 # this or PKG_CHECK_MODULES is called, or make sure to call
3507 # PKG_CHECK_EXISTS manually
3508 # --------------------------------------------------------------
3509 
3510 
3511 
3512 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
3513 # ---------------------------------------------
3514 # _PKG_CONFIG
3515 
3516 # _PKG_SHORT_ERRORS_SUPPORTED
3517 # -----------------------------
3518 # _PKG_SHORT_ERRORS_SUPPORTED
3519 
3520 
3521 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
3522 # [ACTION-IF-NOT-FOUND])
3523 #
3524 #
3525 # Note that if there is a possibility the first call to
3526 # PKG_CHECK_MODULES might not happen, you should be sure to include an
3527 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
3528 #
3529 #
3530 # --------------------------------------------------------------
3531 # PKG_CHECK_MODULES
3532 
3533 
3534 # Include these first...
3535 #
3536 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
3537 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3538 #
3539 # This code is free software; you can redistribute it and/or modify it
3540 # under the terms of the GNU General Public License version 2 only, as
3541 # published by the Free Software Foundation.  Oracle designates this
3542 # particular file as subject to the "Classpath" exception as provided
3543 # by Oracle in the LICENSE file that accompanied this code.
3544 #
3545 # This code is distributed in the hope that it will be useful, but WITHOUT
3546 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3547 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3548 # version 2 for more details (a copy is included in the LICENSE file that
3549 # accompanied this code).
3550 #
3551 # You should have received a copy of the GNU General Public License version
3552 # 2 along with this work; if not, write to the Free Software Foundation,
3553 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3554 #
3555 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3556 # or visit www.oracle.com if you need additional information or have any
3557 # questions.
3558 #
3559 
3560 # Create a function/macro that takes a series of named arguments. The call is
3561 # similar to AC_DEFUN, but the setup of the function looks like this:
3562 # BASIC_DEFUN_NAMED([MYFUNC], [FOO *BAR], [$@], [
3563 # ... do something
3564 #   AC_MSG_NOTICE([Value of BAR is ARG_BAR])
3565 # ])
3566 # A star (*) in front of a named argument means that it is required and it's
3567 # presence will be verified. To pass e.g. the first value as a normal indexed
3568 # argument, use [m4_shift($@)] as the third argument instead of [$@]. These
3569 # arguments are referenced in the function by their name prefixed by ARG_, e.g.
3570 # "ARG_FOO".
3571 #
3572 # The generated function can be called like this:
3573 # MYFUNC(FOO: [foo-val],
3574 #     BAR: [
3575 #         $ECHO hello world
3576 #     ])
3577 # Note that the argument value must start on the same line as the argument name.
3578 #
3579 # Argument 1: Name of the function to define
3580 # Argument 2: List of legal named arguments, with a * prefix for required arguments
3581 # Argument 3: Argument array to treat as named, typically $@
3582 # Argument 4: The main function body
3583 
3584 
3585 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3)
3586 # If so, then append $1 to $2 \
3587 # Also set JVM_ARG_OK to true/false depending on outcome.
3588 
3589 
3590 # Appends a string to a path variable, only adding the : when needed.
3591 
3592 
3593 # Prepends a string to a path variable, only adding the : when needed.
3594 
3595 
3596 # This will make sure the given variable points to a full and proper
3597 # path. This means:
3598 # 1) There will be no spaces in the path. On unix platforms,
3599 #    spaces in the path will result in an error. On Windows,
3600 #    the path will be rewritten using short-style to be space-free.
3601 # 2) The path will be absolute, and it will be in unix-style (on
3602 #     cygwin).
3603 # $1: The name of the variable to fix
3604 
3605 
3606 # This will make sure the given variable points to a executable
3607 # with a full and proper path. This means:
3608 # 1) There will be no spaces in the path. On unix platforms,
3609 #    spaces in the path will result in an error. On Windows,
3610 #    the path will be rewritten using short-style to be space-free.
3611 # 2) The path will be absolute, and it will be in unix-style (on
3612 #     cygwin).
3613 # Any arguments given to the executable is preserved.
3614 # If the input variable does not have a directory specification, then
3615 # it need to be in the PATH.
3616 # $1: The name of the variable to fix
3617 
3618 
3619 
3620 
3621 # Register a --with argument but mark it as deprecated
3622 # $1: The name of the with argument to deprecate, not including --with-
3623 
3624 
3625 # Register a --enable argument but mark it as deprecated
3626 # $1: The name of the with argument to deprecate, not including --enable-
3627 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -)
3628 # $3: Messages to user.
3629 
3630 
3631 
3632 
3633 # Test that variable $1 denoting a program is not empty. If empty, exit with an error.
3634 # $1: variable to check
3635 
3636 
3637 # Check that there are no unprocessed overridden variables left.
3638 # If so, they are an incorrect argument and we will exit with an error.
3639 
3640 
3641 # Setup a tool for the given variable. If correctly specified by the user,
3642 # use that value, otherwise search for the tool using the supplied code snippet.
3643 # $1: variable to set
3644 # $2: code snippet to call to look for the tool
3645 # $3: code snippet to call if variable was used to find tool
3646 
3647 
3648 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool
3649 # $1: variable to set
3650 # $2: executable name (or list of names) to look for
3651 
3652 
3653 # Call BASIC_SETUP_TOOL with AC_CHECK_TOOLS to locate the tool
3654 # $1: variable to set
3655 # $2: executable name (or list of names) to look for
3656 
3657 
3658 # Like BASIC_PATH_PROGS but fails if no tool was found.
3659 # $1: variable to set
3660 # $2: executable name (or list of names) to look for
3661 
3662 
3663 # Like BASIC_SETUP_TOOL but fails if no tool was found.
3664 # $1: variable to set
3665 # $2: autoconf macro to call to look for the special tool
3666 
3667 
3668 # Setup the most fundamental tools that relies on not much else to set up,
3669 # but is used by much of the early bootstrap code.
3670 
3671 
3672 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3673 
3674 
3675 # Evaluates platform specific overrides for devkit variables.
3676 # $1: Name of variable
3677 
3678 
3679 
3680 
3681 
3682 
3683 #%%% Simple tools %%%
3684 
3685 # Check if we have found a usable version of make
3686 # $1: the path to a potential make binary (or empty)
3687 # $2: the description on how we found this
3688 
3689 
3690 
3691 
3692 # Goes looking for a usable version of GNU make.
3693 
3694 
3695 
3696 
3697 
3698 
3699 # Check if build directory is on local disk. If not possible to determine,
3700 # we prefer to claim it's local.
3701 # Argument 1: directory to test
3702 # Argument 2: what to do if it is on local disk
3703 # Argument 3: what to do otherwise (remote disk or failure)
3704 
3705 
3706 # Check that source files have basic read permissions set. This might
3707 # not be the case in cygwin in certain conditions.
3708 
3709 
3710 
3711 
3712 # Check for support for specific options in bash
3713 
3714 
3715 ################################################################################
3716 #
3717 # Default make target
3718 #
3719 
3720 
3721 # Code to run after AC_OUTPUT
3722 
3723 
3724 #
3725 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3726 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3727 #
3728 # This code is free software; you can redistribute it and/or modify it
3729 # under the terms of the GNU General Public License version 2 only, as
3730 # published by the Free Software Foundation.  Oracle designates this
3731 # particular file as subject to the "Classpath" exception as provided
3732 # by Oracle in the LICENSE file that accompanied this code.
3733 #
3734 # This code is distributed in the hope that it will be useful, but WITHOUT
3735 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3736 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3737 # version 2 for more details (a copy is included in the LICENSE file that
3738 # accompanied this code).
3739 #
3740 # You should have received a copy of the GNU General Public License version
3741 # 2 along with this work; if not, write to the Free Software Foundation,
3742 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3743 #
3744 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3745 # or visit www.oracle.com if you need additional information or have any
3746 # questions.
3747 #
3748 
3749 
3750 
3751 
3752 
3753 # Helper function which possibly converts a path using DOS-style short mode.
3754 # If so, the updated path is stored in $new_path.
3755 # $1: The path to check
3756 
3757 
3758 # Helper function which possibly converts a path using DOS-style short mode.
3759 # If so, the updated path is stored in $new_path.
3760 # $1: The path to check
3761 
3762 
3763 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted
3764 # and could probably be heavily simplified. However, all changes in this
3765 # area tend to need lot of testing in different scenarios, and in lack of
3766 # proper unit testing, cleaning this up has not been deemed worth the effort
3767 # at the moment.
3768 
3769 
3770 
3771 
3772 
3773 
3774 
3775 
3776 
3777 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3778 
3779 
3780 
3781 
3782 # ... then the rest
3783 #
3784 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
3785 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3786 #
3787 # This code is free software; you can redistribute it and/or modify it
3788 # under the terms of the GNU General Public License version 2 only, as
3789 # published by the Free Software Foundation.  Oracle designates this
3790 # particular file as subject to the "Classpath" exception as provided
3791 # by Oracle in the LICENSE file that accompanied this code.
3792 #
3793 # This code is distributed in the hope that it will be useful, but WITHOUT
3794 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3795 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3796 # version 2 for more details (a copy is included in the LICENSE file that
3797 # accompanied this code).
3798 #
3799 # You should have received a copy of the GNU General Public License version
3800 # 2 along with this work; if not, write to the Free Software Foundation,
3801 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3802 #
3803 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3804 # or visit www.oracle.com if you need additional information or have any
3805 # questions.
3806 #
3807 
3808 ########################################################################
3809 # This file handles detection of the Boot JDK. The Boot JDK detection
3810 # process has been developed as a response to solve a complex real-world
3811 # problem. Initially, it was simple, but it has grown as platform after
3812 # platform, idiosyncracy after idiosyncracy has been supported.
3813 #
3814 # The basic idea is this:
3815 # 1) You need an acceptable *) JDK to use as a Boot JDK
3816 # 2) There are several ways to locate a JDK, that are mostly platform
3817 #    dependent **)
3818 # 3) You can have multiple JDKs installed
3819 # 4) If possible, configure should try to dig out an acceptable JDK
3820 #    automatically, without having to resort to command-line options
3821 #
3822 # *)  acceptable means e.g. JDK7 for building JDK8, a complete JDK (with
3823 #     javac) and not a JRE, etc.
3824 #
3825 # **) On Windows we typically use a well-known path.
3826 #     On MacOSX we typically use the tool java_home.
3827 #     On Linux we typically find javac in the $PATH, and then follow a
3828 #     chain of symlinks that often ends up in a real JDK.
3829 #
3830 # This leads to the code where we check in different ways to locate a
3831 # JDK, and if one is found, check if it is acceptable. If not, we print
3832 # our reasons for rejecting it (useful when debugging non-working
3833 # configure situations) and continue checking the next one.
3834 ########################################################################
3835 
3836 # Execute the check given as argument, and verify the result
3837 # If the Boot JDK was previously found, do nothing
3838 # $1 A command line (typically autoconf macro) to execute
3839 
3840 
3841 # Test: Is bootjdk explicitely set by command line arguments?
3842 
3843 
3844 # Test: Is $JAVA_HOME set?
3845 
3846 
3847 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
3848 
3849 
3850 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX)
3851 # $1: Argument to the java_home binary (optional)
3852 
3853 
3854 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home?
3855 
3856 
3857 # Look for a jdk in the given path. If there are multiple, try to select the newest.
3858 # If found, set BOOT_JDK and BOOT_JDK_FOUND.
3859 # $1 = Path to directory containing jdk installations.
3860 # $2 = String to append to the found JDK directory to get the proper JDK home
3861 
3862 
3863 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given
3864 # environmental variable as base for where to look.
3865 # $1 Name of an environmal variable, assumed to point to the Program Files directory.
3866 
3867 
3868 # Test: Is there a JDK installed in default, well-known locations?
3869 
3870 
3871 # Check that a command-line tool in the Boot JDK is correct
3872 # $1 = name of variable to assign
3873 # $2 = name of binary
3874 
3875 
3876 ###############################################################################
3877 #
3878 # We need a Boot JDK to bootstrap the build.
3879 #
3880 
3881 
3882 
3883 
3884 
3885 # BUILD_JDK: the location of the latest JDK that can run
3886 #   on the host system and supports the target class file version
3887 #   generated in this JDK build.  This variable should only be
3888 #   used after the launchers are built.
3889 #
3890 
3891 # Execute the check given as argument, and verify the result.
3892 # If the JDK was previously found, do nothing.
3893 # $1 A command line (typically autoconf macro) to execute
3894 
3895 
3896 # By default the BUILD_JDK is the JDK_OUTPUTDIR.  If the target architecture
3897 # is different than the host system doing the build (e.g. cross-compilation),
3898 # a special BUILD_JDK is built as part of the build process.  An external
3899 # prebuilt BUILD_JDK can also be supplied.
3900 
3901 
3902 #
3903 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
3904 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3905 #
3906 # This code is free software; you can redistribute it and/or modify it
3907 # under the terms of the GNU General Public License version 2 only, as
3908 # published by the Free Software Foundation.  Oracle designates this
3909 # particular file as subject to the "Classpath" exception as provided
3910 # by Oracle in the LICENSE file that accompanied this code.
3911 #
3912 # This code is distributed in the hope that it will be useful, but WITHOUT
3913 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3914 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3915 # version 2 for more details (a copy is included in the LICENSE file that
3916 # accompanied this code).
3917 #
3918 # You should have received a copy of the GNU General Public License version
3919 # 2 along with this work; if not, write to the Free Software Foundation,
3920 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3921 #
3922 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3923 # or visit www.oracle.com if you need additional information or have any
3924 # questions.
3925 #
3926 
3927 
3928 
3929 
3930 
3931 
3932 
3933 
3934 
3935 
3936 
3937 
3938 
3939 
3940 
3941 
3942 
3943 ################################################################################
3944 #
3945 # Runs icecc-create-env once and prints the error if it fails
3946 #
3947 # $1: arguments to icecc-create-env
3948 # $2: log file
3949 #
3950 
3951 
3952 ################################################################################
3953 #
3954 # Optionally enable distributed compilation of native code using icecc/icecream
3955 #
3956 
3957 
3958 
3959 
3960 
3961 
3962 
3963 #
3964 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
3965 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3966 #
3967 # This code is free software; you can redistribute it and/or modify it
3968 # under the terms of the GNU General Public License version 2 only, as
3969 # published by the Free Software Foundation.  Oracle designates this
3970 # particular file as subject to the "Classpath" exception as provided
3971 # by Oracle in the LICENSE file that accompanied this code.
3972 #
3973 # This code is distributed in the hope that it will be useful, but WITHOUT
3974 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3975 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3976 # version 2 for more details (a copy is included in the LICENSE file that
3977 # accompanied this code).
3978 #
3979 # You should have received a copy of the GNU General Public License version
3980 # 2 along with this work; if not, write to the Free Software Foundation,
3981 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3982 #
3983 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3984 # or visit www.oracle.com if you need additional information or have any
3985 # questions.
3986 #
3987 
3988 # Reset the global CFLAGS/LDFLAGS variables and initialize them with the
3989 # corresponding configure arguments instead
3990 
3991 
3992 # Setup the sysroot flags and add them to global CFLAGS and LDFLAGS so
3993 # that configure can use them while detecting compilers.
3994 # TOOLCHAIN_TYPE is available here.
3995 # Param 1 - Optional prefix to all variables. (e.g BUILD_)
3996 
3997 
3998 
3999 
4000 
4001 
4002 # Documentation on common flags used for solstudio in HIGHEST.
4003 #
4004 # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be
4005 #          done with care, there are some assumptions below that need to
4006 #          be understood about the use of pointers, and IEEE behavior.
4007 #
4008 # -fns: Use non-standard floating point mode (not IEEE 754)
4009 # -fsimple: Do some simplification of floating point arithmetic (not IEEE 754)
4010 # -fsingle: Use single precision floating point with 'float'
4011 # -xalias_level=basic: Assume memory references via basic pointer types do not alias
4012 #   (Source with excessing pointer casting and data access with mixed
4013 #    pointer types are not recommended)
4014 # -xbuiltin=%all: Use intrinsic or inline versions for math/std functions
4015 #   (If you expect perfect errno behavior, do not use this)
4016 # -xdepend: Loop data dependency optimizations (need -xO3 or higher)
4017 # -xrestrict: Pointer parameters to functions do not overlap
4018 #   (Similar to -xalias_level=basic usage, but less obvious sometimes.
4019 #    If you pass in multiple pointers to the same data, do not use this)
4020 # -xlibmil: Inline some library routines
4021 #   (If you expect perfect errno behavior, do not use this)
4022 # -xlibmopt: Use optimized math routines (CURRENTLY DISABLED)
4023 #   (If you expect perfect errno behavior, do not use this)
4024 #  Can cause undefined external on Solaris 8 X86 on __sincos, removing for now
4025 
4026     # FIXME: this will never happen since sparc != sparcv9, ie 32 bit, which we don't build anymore.
4027     # Bug?
4028     #if test "x$OPENJDK_TARGET_CPU" = xsparc; then
4029     #  CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s"
4030     #  CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s"
4031     #fi
4032 
4033 
4034 
4035 
4036 
4037 
4038 ################################################################################
4039 # $1 - Either BUILD or TARGET to pick the correct OS/CPU variables to check
4040 #      conditionals against.
4041 # $2 - Optional prefix for each variable defined.
4042 
4043 
4044 # FLAGS_C_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE],
4045 #                                  IF_FALSE: [RUN-IF-FALSE])
4046 # ------------------------------------------------------------
4047 # Check that the C compiler supports an argument
4048 
4049 
4050 
4051 
4052 # FLAGS_CXX_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE],
4053 #                                    IF_FALSE: [RUN-IF-FALSE])
4054 # ------------------------------------------------------------
4055 # Check that the C++ compiler supports an argument
4056 
4057 
4058 
4059 
4060 # FLAGS_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE],
4061 #                                IF_FALSE: [RUN-IF-FALSE])
4062 # ------------------------------------------------------------
4063 # Check that the C and C++ compilers support an argument
4064 
4065 
4066 
4067 
4068 # FLAGS_LINKER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE],
4069 #                                   IF_FALSE: [RUN-IF-FALSE])
4070 # ------------------------------------------------------------
4071 # Check that the linker support an argument
4072 
4073 
4074 
4075 
4076 
4077 
4078 
4079 
4080 #
4081 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4082 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4083 #
4084 # This code is free software; you can redistribute it and/or modify it
4085 # under the terms of the GNU General Public License version 2 only, as
4086 # published by the Free Software Foundation.  Oracle designates this
4087 # particular file as subject to the "Classpath" exception as provided
4088 # by Oracle in the LICENSE file that accompanied this code.
4089 #
4090 # This code is distributed in the hope that it will be useful, but WITHOUT
4091 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4092 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4093 # version 2 for more details (a copy is included in the LICENSE file that
4094 # accompanied this code).
4095 #
4096 # You should have received a copy of the GNU General Public License version
4097 # 2 along with this work; if not, write to the Free Software Foundation,
4098 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4099 #
4100 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4101 # or visit www.oracle.com if you need additional information or have any
4102 # questions.
4103 #
4104 
4105 
4106 
4107 
4108 
4109 cygwin_help() {
4110   case $1 in
4111     unzip)
4112       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )"
4113       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
4114       ;;
4115     zip)
4116       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )"
4117       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
4118       ;;
4119     make)
4120       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )"
4121       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
4122       ;;
4123     freetype)
4124       HELP_MSG="
4125 The freetype library can now be build during the configure process.
4126 Download the freetype sources and unpack them into an arbitrary directory:
4127 
4128 wget http://download.savannah.gnu.org/releases/freetype/freetype-2.5.3.tar.gz
4129 tar -xzf freetype-2.5.3.tar.gz
4130 
4131 Then run configure with '--with-freetype-src=<freetype_src>'. This will
4132 automatically build the freetype library into '<freetype_src>/lib64' for 64-bit
4133 builds or into '<freetype_src>/lib32' for 32-bit builds.
4134 Afterwards you can always use '--with-freetype-include=<freetype_src>/include'
4135 and '--with-freetype-lib=<freetype_src>/lib32|64' for other builds.
4136 
4137 Alternatively you can unpack the sources like this to use the default directory:
4138 
4139 tar --one-top-level=$HOME/freetype --strip-components=1 -xzf freetype-2.5.3.tar.gz"
4140       ;;
4141   esac
4142 }
4143 
4144 msys_help() {
4145   PKGHANDLER_COMMAND=""
4146 }
4147 
4148 apt_help() {
4149   case $1 in
4150     reduced)
4151       PKGHANDLER_COMMAND="sudo apt-get install gcc-multilib g++-multilib" ;;
4152     devkit)
4153       PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;;
4154     openjdk)
4155       PKGHANDLER_COMMAND="sudo apt-get install openjdk-8-jdk" ;;
4156     alsa)
4157       PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;;
4158     cups)
4159       PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;;
4160     freetype)
4161       PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;;
4162     ffi)
4163       PKGHANDLER_COMMAND="sudo apt-get install libffi-dev" ;;
4164     x11)
4165       PKGHANDLER_COMMAND="sudo apt-get install libX11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;;
4166     ccache)
4167       PKGHANDLER_COMMAND="sudo apt-get install ccache" ;;
4168     dtrace)
4169       PKGHANDLER_COMMAND="sudo apt-get install systemtap-sdt-dev" ;;
4170   esac
4171 }
4172 
4173 yum_help() {
4174   case $1 in
4175     devkit)
4176       PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;;
4177     openjdk)
4178       PKGHANDLER_COMMAND="sudo yum install java-1.8.0-openjdk-devel" ;;
4179     alsa)
4180       PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;;
4181     cups)
4182       PKGHANDLER_COMMAND="sudo yum install cups-devel" ;;
4183     freetype)
4184       PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;;
4185     x11)
4186       PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel libXi-devel" ;;
4187     ccache)
4188       PKGHANDLER_COMMAND="sudo yum install ccache" ;;
4189   esac
4190 }
4191 
4192 port_help() {
4193   PKGHANDLER_COMMAND=""
4194 }
4195 
4196 pkgutil_help() {
4197   PKGHANDLER_COMMAND=""
4198 }
4199 
4200 pkgadd_help() {
4201   PKGHANDLER_COMMAND=""
4202 }
4203 
4204 # This function will check if we're called from the "configure" wrapper while
4205 # printing --help. If so, we will print out additional information that can
4206 # only be extracted within the autoconf script, and then exit. This must be
4207 # called at the very beginning in configure.ac.
4208 
4209 
4210 
4211 
4212 
4213 
4214 #
4215 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4216 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4217 #
4218 # This code is free software; you can redistribute it and/or modify it
4219 # under the terms of the GNU General Public License version 2 only, as
4220 # published by the Free Software Foundation.  Oracle designates this
4221 # particular file as subject to the "Classpath" exception as provided
4222 # by Oracle in the LICENSE file that accompanied this code.
4223 #
4224 # This code is distributed in the hope that it will be useful, but WITHOUT
4225 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4226 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4227 # version 2 for more details (a copy is included in the LICENSE file that
4228 # accompanied this code).
4229 #
4230 # You should have received a copy of the GNU General Public License version
4231 # 2 along with this work; if not, write to the Free Software Foundation,
4232 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4233 #
4234 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4235 # or visit www.oracle.com if you need additional information or have any
4236 # questions.
4237 #
4238 
4239 # All valid JVM features, regardless of platform
4240 VALID_JVM_FEATURES="compiler1 compiler2 zero shark minimal dtrace jvmti jvmci \
4241     fprof vm-structs jni-check services management all-gcs nmt cds static-build"
4242 
4243 # All valid JVM variants
4244 VALID_JVM_VARIANTS="server client minimal core zero zeroshark custom"
4245 
4246 ###############################################################################
4247 # Check if the specified JVM variant should be built. To be used in shell if
4248 # constructs, like this:
4249 # if HOTSPOT_CHECK_JVM_VARIANT(server); then
4250 #
4251 # Only valid to use after HOTSPOT_SETUP_JVM_VARIANTS has setup variants.
4252 
4253 # Definition kept in one line to allow inlining in if statements.
4254 # Additional [] needed to keep m4 from mangling shell constructs.
4255 
4256 
4257 ###############################################################################
4258 # Check if the specified JVM features are explicitly enabled. To be used in
4259 # shell if constructs, like this:
4260 # if HOTSPOT_CHECK_JVM_FEATURE(jvmti); then
4261 #
4262 # Only valid to use after HOTSPOT_SETUP_JVM_FEATURES has setup features.
4263 
4264 # Definition kept in one line to allow inlining in if statements.
4265 # Additional [] needed to keep m4 from mangling shell constructs.
4266 
4267 
4268 ###############################################################################
4269 # Check which variants of the JVM that we want to build. Available variants are:
4270 #   server: normal interpreter, and a tiered C1/C2 compiler
4271 #   client: normal interpreter, and C1 (no C2 compiler)
4272 #   minimal: reduced form of client with optional features stripped out
4273 #   core: normal interpreter only, no compiler
4274 #   zero: C++ based interpreter only, no compiler
4275 #   zeroshark: C++ based interpreter, and a llvm-based compiler
4276 #   custom: baseline JVM with no default features
4277 #
4278 
4279 
4280 ###############################################################################
4281 # Check if dtrace should be enabled and has all prerequisites present.
4282 #
4283 
4284 
4285 ###############################################################################
4286 # Set up all JVM features for each JVM variant.
4287 #
4288 
4289 
4290 ###############################################################################
4291 # Validate JVM features once all setup is complete, including custom setup.
4292 #
4293 
4294 
4295 ###############################################################################
4296 # Support for old hotspot build. Remove once new hotspot build has proven
4297 # to work satisfactory.
4298 #
4299 
4300 
4301 #
4302 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4303 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4304 #
4305 # This code is free software; you can redistribute it and/or modify it
4306 # under the terms of the GNU General Public License version 2 only, as
4307 # published by the Free Software Foundation.  Oracle designates this
4308 # particular file as subject to the "Classpath" exception as provided
4309 # by Oracle in the LICENSE file that accompanied this code.
4310 #
4311 # This code is distributed in the hope that it will be useful, but WITHOUT
4312 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4313 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4314 # version 2 for more details (a copy is included in the LICENSE file that
4315 # accompanied this code).
4316 #
4317 # You should have received a copy of the GNU General Public License version
4318 # 2 along with this work; if not, write to the Free Software Foundation,
4319 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4320 #
4321 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4322 # or visit www.oracle.com if you need additional information or have any
4323 # questions.
4324 #
4325 
4326 ###############################################################################
4327 # Check which variant of the JDK that we want to build.
4328 # Currently we have:
4329 #    normal:   standard edition
4330 # but the custom make system may add other variants
4331 #
4332 # Effectively the JDK variant gives a name to a specific set of
4333 # modules to compile into the JDK.
4334 
4335 
4336 ###############################################################################
4337 # Set the debug level
4338 #    release: no debug information, all optimizations, no asserts.
4339 #    optimized: no debug information, all optimizations, no asserts, HotSpot target is 'optimized'.
4340 #    fastdebug: debug information (-g), all optimizations, all asserts
4341 #    slowdebug: debug information (-g), no optimizations, all asserts
4342 
4343 
4344 ###############################################################################
4345 #
4346 # Should we build only OpenJDK even if closed sources are present?
4347 #
4348 
4349 
4350 
4351 
4352 ###############################################################################
4353 #
4354 # Enable or disable the elliptic curve crypto implementation
4355 #
4356 
4357 
4358 
4359 
4360 ################################################################################
4361 #
4362 # Gcov coverage data for hotspot
4363 #
4364 
4365 
4366 ################################################################################
4367 #
4368 # Static build support.  When enabled will generate static
4369 # libraries instead of shared libraries for all JDK libs.
4370 #
4371 
4372 
4373 ################################################################################
4374 #
4375 # jlink options.
4376 # We always keep packaged modules in JDK image.
4377 #
4378 
4379 
4380 #
4381 # Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
4382 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4383 #
4384 # This code is free software; you can redistribute it and/or modify it
4385 # under the terms of the GNU General Public License version 2 only, as
4386 # published by the Free Software Foundation.  Oracle designates this
4387 # particular file as subject to the "Classpath" exception as provided
4388 # by Oracle in the LICENSE file that accompanied this code.
4389 #
4390 # This code is distributed in the hope that it will be useful, but WITHOUT
4391 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4392 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4393 # version 2 for more details (a copy is included in the LICENSE file that
4394 # accompanied this code).
4395 #
4396 # You should have received a copy of the GNU General Public License version
4397 # 2 along with this work; if not, write to the Free Software Foundation,
4398 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4399 #
4400 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4401 # or visit www.oracle.com if you need additional information or have any
4402 # questions.
4403 #
4404 
4405 ###############################################################################
4406 #
4407 # Setup version numbers
4408 #
4409 
4410 # Verify that a given string represents a valid version number, and assign it
4411 # to a variable.
4412 
4413 # Argument 1: the variable to assign to
4414 # Argument 2: the value given by the user
4415 
4416 
4417 
4418 
4419 #
4420 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4421 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4422 #
4423 # This code is free software; you can redistribute it and/or modify it
4424 # under the terms of the GNU General Public License version 2 only, as
4425 # published by the Free Software Foundation.  Oracle designates this
4426 # particular file as subject to the "Classpath" exception as provided
4427 # by Oracle in the LICENSE file that accompanied this code.
4428 #
4429 # This code is distributed in the hope that it will be useful, but WITHOUT
4430 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4431 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4432 # version 2 for more details (a copy is included in the LICENSE file that
4433 # accompanied this code).
4434 #
4435 # You should have received a copy of the GNU General Public License version
4436 # 2 along with this work; if not, write to the Free Software Foundation,
4437 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4438 #
4439 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4440 # or visit www.oracle.com if you need additional information or have any
4441 # questions.
4442 #
4443 
4444 # Major library component reside in separate files.
4445 #
4446 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4447 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4448 #
4449 # This code is free software; you can redistribute it and/or modify it
4450 # under the terms of the GNU General Public License version 2 only, as
4451 # published by the Free Software Foundation.  Oracle designates this
4452 # particular file as subject to the "Classpath" exception as provided
4453 # by Oracle in the LICENSE file that accompanied this code.
4454 #
4455 # This code is distributed in the hope that it will be useful, but WITHOUT
4456 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4457 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4458 # version 2 for more details (a copy is included in the LICENSE file that
4459 # accompanied this code).
4460 #
4461 # You should have received a copy of the GNU General Public License version
4462 # 2 along with this work; if not, write to the Free Software Foundation,
4463 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4464 #
4465 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4466 # or visit www.oracle.com if you need additional information or have any
4467 # questions.
4468 #
4469 
4470 ################################################################################
4471 # Setup alsa (Advanced Linux Sound Architecture)
4472 ################################################################################
4473 
4474 
4475 #
4476 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4477 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4478 #
4479 # This code is free software; you can redistribute it and/or modify it
4480 # under the terms of the GNU General Public License version 2 only, as
4481 # published by the Free Software Foundation.  Oracle designates this
4482 # particular file as subject to the "Classpath" exception as provided
4483 # by Oracle in the LICENSE file that accompanied this code.
4484 #
4485 # This code is distributed in the hope that it will be useful, but WITHOUT
4486 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4487 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4488 # version 2 for more details (a copy is included in the LICENSE file that
4489 # accompanied this code).
4490 #
4491 # You should have received a copy of the GNU General Public License version
4492 # 2 along with this work; if not, write to the Free Software Foundation,
4493 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4494 #
4495 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4496 # or visit www.oracle.com if you need additional information or have any
4497 # questions.
4498 #
4499 
4500 ################################################################################
4501 # Setup bundled libraries.
4502 #
4503 # For libjpeg, giflib, libpng, lcms2 and zlib, the source is present in the
4504 # OpenJDK repository. Default is to use these libraries as bundled, but they
4505 # might be replaced by en external version by the user.
4506 ################################################################################
4507 
4508 
4509 ################################################################################
4510 # Setup libjpeg
4511 ################################################################################
4512 
4513 
4514 ################################################################################
4515 # Setup giflib
4516 ################################################################################
4517 
4518 
4519 ################################################################################
4520 # Setup libpng
4521 ################################################################################
4522 
4523 
4524 ################################################################################
4525 # Setup zlib
4526 ################################################################################
4527 
4528 
4529 ################################################################################
4530 # Setup lcms (Little CMS)
4531 ################################################################################
4532 
4533 
4534 #
4535 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4536 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4537 #
4538 # This code is free software; you can redistribute it and/or modify it
4539 # under the terms of the GNU General Public License version 2 only, as
4540 # published by the Free Software Foundation.  Oracle designates this
4541 # particular file as subject to the "Classpath" exception as provided
4542 # by Oracle in the LICENSE file that accompanied this code.
4543 #
4544 # This code is distributed in the hope that it will be useful, but WITHOUT
4545 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4546 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4547 # version 2 for more details (a copy is included in the LICENSE file that
4548 # accompanied this code).
4549 #
4550 # You should have received a copy of the GNU General Public License version
4551 # 2 along with this work; if not, write to the Free Software Foundation,
4552 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4553 #
4554 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4555 # or visit www.oracle.com if you need additional information or have any
4556 # questions.
4557 #
4558 
4559 ################################################################################
4560 # Setup cups (Common Unix Printing System)
4561 ################################################################################
4562 
4563 
4564 #
4565 # Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
4566 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4567 #
4568 # This code is free software; you can redistribute it and/or modify it
4569 # under the terms of the GNU General Public License version 2 only, as
4570 # published by the Free Software Foundation.  Oracle designates this
4571 # particular file as subject to the "Classpath" exception as provided
4572 # by Oracle in the LICENSE file that accompanied this code.
4573 #
4574 # This code is distributed in the hope that it will be useful, but WITHOUT
4575 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4576 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4577 # version 2 for more details (a copy is included in the LICENSE file that
4578 # accompanied this code).
4579 #
4580 # You should have received a copy of the GNU General Public License version
4581 # 2 along with this work; if not, write to the Free Software Foundation,
4582 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4583 #
4584 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4585 # or visit www.oracle.com if you need additional information or have any
4586 # questions.
4587 #
4588 
4589 ################################################################################
4590 # Setup libffi (Foreign Function Interface)
4591 ################################################################################
4592 
4593 
4594 #
4595 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4596 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4597 #
4598 # This code is free software; you can redistribute it and/or modify it
4599 # under the terms of the GNU General Public License version 2 only, as
4600 # published by the Free Software Foundation.  Oracle designates this
4601 # particular file as subject to the "Classpath" exception as provided
4602 # by Oracle in the LICENSE file that accompanied this code.
4603 #
4604 # This code is distributed in the hope that it will be useful, but WITHOUT
4605 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4606 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4607 # version 2 for more details (a copy is included in the LICENSE file that
4608 # accompanied this code).
4609 #
4610 # You should have received a copy of the GNU General Public License version
4611 # 2 along with this work; if not, write to the Free Software Foundation,
4612 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4613 #
4614 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4615 # or visit www.oracle.com if you need additional information or have any
4616 # questions.
4617 #
4618 
4619 ################################################################################
4620 # Build the freetype lib from source
4621 ################################################################################
4622 
4623 
4624 ################################################################################
4625 # Check if a potential freeype library match is correct and usable
4626 ################################################################################
4627 
4628 
4629 ################################################################################
4630 # Setup freetype (The FreeType2 font rendering library)
4631 ################################################################################
4632 
4633 
4634 #
4635 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4636 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4637 #
4638 # This code is free software; you can redistribute it and/or modify it
4639 # under the terms of the GNU General Public License version 2 only, as
4640 # published by the Free Software Foundation.  Oracle designates this
4641 # particular file as subject to the "Classpath" exception as provided
4642 # by Oracle in the LICENSE file that accompanied this code.
4643 #
4644 # This code is distributed in the hope that it will be useful, but WITHOUT
4645 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4646 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4647 # version 2 for more details (a copy is included in the LICENSE file that
4648 # accompanied this code).
4649 #
4650 # You should have received a copy of the GNU General Public License version
4651 # 2 along with this work; if not, write to the Free Software Foundation,
4652 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4653 #
4654 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4655 # or visit www.oracle.com if you need additional information or have any
4656 # questions.
4657 #
4658 
4659 ################################################################################
4660 # Setup the standard C/C++ runtime libraries.
4661 #
4662 # Most importantly, determine if stdc++ should be linked statically or
4663 # dynamically.
4664 ################################################################################
4665 
4666 
4667 #
4668 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4669 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4670 #
4671 # This code is free software; you can redistribute it and/or modify it
4672 # under the terms of the GNU General Public License version 2 only, as
4673 # published by the Free Software Foundation.  Oracle designates this
4674 # particular file as subject to the "Classpath" exception as provided
4675 # by Oracle in the LICENSE file that accompanied this code.
4676 #
4677 # This code is distributed in the hope that it will be useful, but WITHOUT
4678 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4679 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4680 # version 2 for more details (a copy is included in the LICENSE file that
4681 # accompanied this code).
4682 #
4683 # You should have received a copy of the GNU General Public License version
4684 # 2 along with this work; if not, write to the Free Software Foundation,
4685 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4686 #
4687 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4688 # or visit www.oracle.com if you need additional information or have any
4689 # questions.
4690 #
4691 
4692 ################################################################################
4693 # Setup X11 Windows system
4694 ################################################################################
4695 
4696 
4697 
4698 ################################################################################
4699 # Determine which libraries are needed for this configuration
4700 ################################################################################
4701 
4702 
4703 ################################################################################
4704 # Parse library options, and setup needed libraries
4705 ################################################################################
4706 
4707 
4708 ################################################################################
4709 # Setup llvm (Low-Level VM)
4710 ################################################################################
4711 
4712 
4713 ################################################################################
4714 # Setup various libraries, typically small system libraries
4715 ################################################################################
4716 
4717 
4718 #
4719 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4720 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4721 #
4722 # This code is free software; you can redistribute it and/or modify it
4723 # under the terms of the GNU General Public License version 2 only, as
4724 # published by the Free Software Foundation.  Oracle designates this
4725 # particular file as subject to the "Classpath" exception as provided
4726 # by Oracle in the LICENSE file that accompanied this code.
4727 #
4728 # This code is distributed in the hope that it will be useful, but WITHOUT
4729 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4730 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4731 # version 2 for more details (a copy is included in the LICENSE file that
4732 # accompanied this code).
4733 #
4734 # You should have received a copy of the GNU General Public License version
4735 # 2 along with this work; if not, write to the Free Software Foundation,
4736 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4737 #
4738 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4739 # or visit www.oracle.com if you need additional information or have any
4740 # questions.
4741 #
4742 
4743 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4744 # Converts autoconf style CPU name to OpenJDK style, into
4745 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN.
4746 
4747 
4748 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4749 # Converts autoconf style OS name to OpenJDK style, into
4750 # VAR_OS, VAR_OS_TYPE and VAR_OS_ENV.
4751 
4752 
4753 # Expects $host_os $host_cpu $build_os and $build_cpu
4754 # and $with_target_bits to have been setup!
4755 #
4756 # Translate the standard triplet(quadruplet) definition
4757 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU,
4758 # OPENJDK_BUILD_OS, etc.
4759 
4760 
4761 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour
4762 # accordingly. Must be done after setting up build and target system, but before
4763 # doing anything else with these values.
4764 
4765 
4766 # Setup the legacy variables, for controlling the old makefiles.
4767 #
4768 
4769 
4770 # $1 - Either TARGET or BUILD to setup the variables for.
4771 
4772 
4773 
4774 
4775 #%%% Build and target systems %%%
4776 
4777 
4778 
4779 
4780 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS.
4781 # Add -mX to various FLAGS variables.
4782 
4783 
4784 
4785 
4786 
4787 
4788 #
4789 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4790 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4791 #
4792 # This code is free software; you can redistribute it and/or modify it
4793 # under the terms of the GNU General Public License version 2 only, as
4794 # published by the Free Software Foundation.  Oracle designates this
4795 # particular file as subject to the "Classpath" exception as provided
4796 # by Oracle in the LICENSE file that accompanied this code.
4797 #
4798 # This code is distributed in the hope that it will be useful, but WITHOUT
4799 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4800 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4801 # version 2 for more details (a copy is included in the LICENSE file that
4802 # accompanied this code).
4803 #
4804 # You should have received a copy of the GNU General Public License version
4805 # 2 along with this work; if not, write to the Free Software Foundation,
4806 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4807 #
4808 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4809 # or visit www.oracle.com if you need additional information or have any
4810 # questions.
4811 #
4812 
4813 
4814 
4815 
4816 
4817 
4818 
4819 ################################################################################
4820 # Define a mechanism for importing extra prebuilt modules
4821 #
4822 
4823 
4824 
4825 #
4826 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4827 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4828 #
4829 # This code is free software; you can redistribute it and/or modify it
4830 # under the terms of the GNU General Public License version 2 only, as
4831 # published by the Free Software Foundation.  Oracle designates this
4832 # particular file as subject to the "Classpath" exception as provided
4833 # by Oracle in the LICENSE file that accompanied this code.
4834 #
4835 # This code is distributed in the hope that it will be useful, but WITHOUT
4836 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4837 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4838 # version 2 for more details (a copy is included in the LICENSE file that
4839 # accompanied this code).
4840 #
4841 # You should have received a copy of the GNU General Public License version
4842 # 2 along with this work; if not, write to the Free Software Foundation,
4843 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4844 #
4845 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4846 # or visit www.oracle.com if you need additional information or have any
4847 # questions.
4848 #
4849 
4850 ########################################################################
4851 # This file is responsible for detecting, verifying and setting up the
4852 # toolchain, i.e. the compiler, linker and related utilities. It will setup
4853 # proper paths to the binaries, but it will not setup any flags.
4854 #
4855 # The binaries used is determined by the toolchain type, which is the family of
4856 # compilers and related tools that are used.
4857 ########################################################################
4858 
4859 
4860 # All valid toolchains, regardless of platform (used by help.m4)
4861 VALID_TOOLCHAINS_all="gcc clang solstudio xlc microsoft"
4862 
4863 # These toolchains are valid on different platforms
4864 VALID_TOOLCHAINS_linux="gcc clang"
4865 VALID_TOOLCHAINS_solaris="solstudio"
4866 VALID_TOOLCHAINS_macosx="gcc clang"
4867 VALID_TOOLCHAINS_aix="xlc"
4868 VALID_TOOLCHAINS_windows="microsoft"
4869 
4870 # Toolchain descriptions
4871 TOOLCHAIN_DESCRIPTION_clang="clang/LLVM"
4872 TOOLCHAIN_DESCRIPTION_gcc="GNU Compiler Collection"
4873 TOOLCHAIN_DESCRIPTION_microsoft="Microsoft Visual Studio"
4874 TOOLCHAIN_DESCRIPTION_solstudio="Oracle Solaris Studio"
4875 TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++"
4876 
4877 # Minimum supported versions, empty means unspecified
4878 TOOLCHAIN_MINIMUM_VERSION_clang="3.2"
4879 TOOLCHAIN_MINIMUM_VERSION_gcc="4.3"
4880 TOOLCHAIN_MINIMUM_VERSION_microsoft=""
4881 TOOLCHAIN_MINIMUM_VERSION_solstudio="5.12"
4882 TOOLCHAIN_MINIMUM_VERSION_xlc=""
4883 
4884 # Prepare the system so that TOOLCHAIN_CHECK_COMPILER_VERSION can be called.
4885 # Must have CC_VERSION_NUMBER and CXX_VERSION_NUMBER.
4886 
4887 
4888 # Check if the configured compiler (C and C++) is of a specific version or
4889 # newer. TOOLCHAIN_PREPARE_FOR_VERSION_COMPARISONS must have been called before.
4890 #
4891 # Arguments:
4892 #   VERSION:   The version string to check against the found version
4893 #   IF_AT_LEAST:   block to run if the compiler is at least this version (>=)
4894 #   IF_OLDER_THAN:   block to run if the compiler is older than this version (<)
4895 
4896 
4897 
4898 
4899 # Setup a number of variables describing how native output files are
4900 # named on this platform/toolchain.
4901 
4902 
4903 # Determine which toolchain type to use, and make sure it is valid for this
4904 # platform. Setup various information about the selected toolchain.
4905 
4906 
4907 # Before we start detecting the toolchain executables, we might need some
4908 # special setup, e.g. additional paths etc.
4909 
4910 
4911 # Restore path, etc
4912 
4913 
4914 # Check if a compiler is of the toolchain type we expect, and save the version
4915 # information from it. If the compiler does not match the expected type,
4916 # this function will abort using AC_MSG_ERROR. If it matches, the version will
4917 # be stored in CC_VERSION_NUMBER/CXX_VERSION_NUMBER (as a dotted number), and
4918 # the full version string in CC_VERSION_STRING/CXX_VERSION_STRING.
4919 #
4920 # $1 = compiler to test (CC or CXX)
4921 # $2 = human readable name of compiler (C or C++)
4922 
4923 
4924 # Try to locate the given C or C++ compiler in the path, or otherwise.
4925 #
4926 # $1 = compiler to test (CC or CXX)
4927 # $2 = human readable name of compiler (C or C++)
4928 # $3 = list of compiler names to search for
4929 
4930 
4931 # Detect the core components of the toolchain, i.e. the compilers (CC and CXX),
4932 # preprocessor (CPP and CXXCPP), the linker (LD), the assembler (AS) and the
4933 # archiver (AR). Verify that the compilers are correct according to the
4934 # toolchain type.
4935 
4936 
4937 # Setup additional tools that is considered a part of the toolchain, but not the
4938 # core part. Many of these are highly platform-specific and do not exist,
4939 # and/or are not needed on all platforms.
4940 
4941 
4942 # Setup the build tools (i.e, the compiler and linker used to build programs
4943 # that should be run on the build platform, not the target platform, as a build
4944 # helper). Since the non-cross-compile case uses the normal, target compilers
4945 # for this, we can only do this after these have been setup.
4946 
4947 
4948 # Setup legacy variables that are still needed as alternative ways to refer to
4949 # parts of the toolchain.
4950 
4951 
4952 # Do some additional checks on the detected tools.
4953 
4954 
4955 # Setup the JTReg Regression Test Harness.
4956 
4957 
4958 #
4959 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
4960 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4961 #
4962 # This code is free software; you can redistribute it and/or modify it
4963 # under the terms of the GNU General Public License version 2 only, as
4964 # published by the Free Software Foundation.  Oracle designates this
4965 # particular file as subject to the "Classpath" exception as provided
4966 # by Oracle in the LICENSE file that accompanied this code.
4967 #
4968 # This code is distributed in the hope that it will be useful, but WITHOUT
4969 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4970 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4971 # version 2 for more details (a copy is included in the LICENSE file that
4972 # accompanied this code).
4973 #
4974 # You should have received a copy of the GNU General Public License version
4975 # 2 along with this work; if not, write to the Free Software Foundation,
4976 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4977 #
4978 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4979 # or visit www.oracle.com if you need additional information or have any
4980 # questions.
4981 #
4982 
4983 ################################################################################
4984 # The order of these defines the priority by which we try to find them.
4985 VALID_VS_VERSIONS="2013 2012 2010"
4986 
4987 VS_DESCRIPTION_2010="Microsoft Visual Studio 2010"
4988 VS_VERSION_INTERNAL_2010=100
4989 VS_MSVCR_2010=msvcr100.dll
4990 # We don't use msvcp on Visual Studio 2010
4991 #VS_MSVCP_2010=msvcp100.dll
4992 VS_ENVVAR_2010="VS100COMNTOOLS"
4993 VS_VS_INSTALLDIR_2010="Microsoft Visual Studio 10.0"
4994 VS_SDK_INSTALLDIR_2010="Microsoft SDKs/Windows/v7.1"
4995 VS_VS_PLATFORM_NAME_2010="v100"
4996 VS_SDK_PLATFORM_NAME_2010="Windows7.1SDK"
4997 
4998 VS_DESCRIPTION_2012="Microsoft Visual Studio 2012"
4999 VS_VERSION_INTERNAL_2012=110
5000 VS_MSVCR_2012=msvcr110.dll
5001 VS_MSVCP_2012=msvcp110.dll
5002 VS_ENVVAR_2012="VS110COMNTOOLS"
5003 VS_VS_INSTALLDIR_2012="Microsoft Visual Studio 11.0"
5004 VS_SDK_INSTALLDIR_2012=
5005 VS_VS_PLATFORM_NAME_2012="v110"
5006 VS_SDK_PLATFORM_NAME_2012=
5007 
5008 VS_DESCRIPTION_2013="Microsoft Visual Studio 2013"
5009 VS_VERSION_INTERNAL_2013=120
5010 VS_MSVCR_2013=msvcr120.dll
5011 VS_MSVCP_2013=msvcp120.dll
5012 VS_ENVVAR_2013="VS120COMNTOOLS"
5013 VS_VS_INSTALLDIR_2013="Microsoft Visual Studio 12.0"
5014 VS_SDK_INSTALLDIR_2013=
5015 VS_VS_PLATFORM_NAME_2013="v120"
5016 VS_SDK_PLATFORM_NAME_2013=
5017 
5018 ################################################################################
5019 
5020 
5021 
5022 ################################################################################
5023 
5024 
5025 
5026 ################################################################################
5027 # Finds the bat or cmd file in Visual Studio or the SDK that sets up a proper
5028 # build environment and assigns it to VS_ENV_CMD
5029 
5030 
5031 ################################################################################
5032 
5033 
5034 
5035 ################################################################################
5036 # Check if the VS env variables were setup prior to running configure.
5037 # If not, then find vcvarsall.bat and run it automatically, and integrate
5038 # the set env variables into the spec file.
5039 
5040 
5041 
5042 
5043 
5044 
5045 
5046 
5047 
5048 
5049 
5050 
5051 
5052 
5053 # This line needs to be here, verbatim, after all includes and the dummy hook
5054 # definitions. It is replaced with custom functionality when building
5055 # custom sources.
5056 #CUSTOM_AUTOCONF_INCLUDE
5057 
5058 # Do not change or remove the following line, it is needed for consistency checks:
5059 DATE_WHEN_GENERATED=1461064700
5060 
5061 ###############################################################################
5062 #
5063 # Initialization / Boot-strapping
5064 #
5065 # The bootstrapping process needs to solve the "chicken or the egg" problem,
5066 # thus it jumps back and forth, each time gaining something needed later on.
5067 #
5068 ###############################################################################
5069 
5070 # If we are requested to print additional help, do that and then exit.
5071 # This must be the very first call.
5072 
5073   if test "x$CONFIGURE_PRINT_ADDITIONAL_HELP" != x; then
5074 
5075     # Print available toolchains
5076     $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
5077     $PRINTF "Which are valid to use depends on the build platform.\n"
5078     for toolchain in $VALID_TOOLCHAINS_all; do
5079       # Use indirect variable referencing
5080       toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain
5081       TOOLCHAIN_DESCRIPTION=${!toolchain_var_name}
5082       $PRINTF "  %-10s  %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION"
5083     done
5084     $PRINTF "\n"
5085 
5086     # Print available jvm features
5087     $PRINTF "The following JVM features are available as arguments to --with-jvm-features.\n"
5088     $PRINTF "Which are valid to use depends on the target platform.\n  "
5089     $PRINTF "%s " $VALID_JVM_FEATURES
5090     $PRINTF "\n"
5091 
5092     # And now exit directly
5093     exit 0
5094   fi
5095 
5096 
5097 # Basic initialization that must happen first of all in the normal process.
5098 
5099   # Save the original command line. This is passed to us by the wrapper configure script.
5100 
5101   # Save the path variable before it gets changed
5102   ORIGINAL_PATH="$PATH"
5103 
5104   DATE_WHEN_CONFIGURED=`LANG=C date`
5105 
5106   { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5
5107 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;}
5108   { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5
5109 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;}
5110 
5111 
5112   # Start with tools that do not need have cross compilation support
5113   # and can be expected to be found in the default PATH. These tools are
5114   # used by configure.
5115 
5116   # First are all the simple required tools.
5117 
5118 
5119 
5120   # Publish this variable in the help.
5121 
5122 
5123   if [ -z "${BASENAME+x}" ]; then
5124     # The variable is not set by user, try to locate tool using the code snippet
5125     for ac_prog in basename
5126 do
5127   # Extract the first word of "$ac_prog", so it can be a program name with args.
5128 set dummy $ac_prog; ac_word=$2
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5130 $as_echo_n "checking for $ac_word... " >&6; }
5131 if ${ac_cv_path_BASENAME+:} false; then :
5132   $as_echo_n "(cached) " >&6
5133 else
5134   case $BASENAME in
5135   [\\/]* | ?:[\\/]*)
5136   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
5137   ;;
5138   *)
5139   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5140 for as_dir in $PATH
5141 do
5142   IFS=$as_save_IFS
5143   test -z "$as_dir" && as_dir=.
5144     for ac_exec_ext in '' $ac_executable_extensions; do
5145   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5146     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
5147     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5148     break 2
5149   fi
5150 done
5151   done
5152 IFS=$as_save_IFS
5153 
5154   ;;
5155 esac
5156 fi
5157 BASENAME=$ac_cv_path_BASENAME
5158 if test -n "$BASENAME"; then
5159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
5160 $as_echo "$BASENAME" >&6; }
5161 else
5162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5163 $as_echo "no" >&6; }
5164 fi
5165 
5166 
5167   test -n "$BASENAME" && break
5168 done
5169 
5170   else
5171     # The variable is set, but is it from the command line or the environment?
5172 
5173     # Try to remove the string !BASENAME! from our list.
5174     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/}
5175     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5176       # If it failed, the variable was not from the command line. Ignore it,
5177       # but warn the user (except for BASH, which is always set by the calling BASH).
5178       if test "xBASENAME" != xBASH; then
5179         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5
5180 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;}
5181       fi
5182       # Try to locate tool using the code snippet
5183       for ac_prog in basename
5184 do
5185   # Extract the first word of "$ac_prog", so it can be a program name with args.
5186 set dummy $ac_prog; ac_word=$2
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5188 $as_echo_n "checking for $ac_word... " >&6; }
5189 if ${ac_cv_path_BASENAME+:} false; then :
5190   $as_echo_n "(cached) " >&6
5191 else
5192   case $BASENAME in
5193   [\\/]* | ?:[\\/]*)
5194   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
5195   ;;
5196   *)
5197   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5198 for as_dir in $PATH
5199 do
5200   IFS=$as_save_IFS
5201   test -z "$as_dir" && as_dir=.
5202     for ac_exec_ext in '' $ac_executable_extensions; do
5203   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5204     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
5205     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5206     break 2
5207   fi
5208 done
5209   done
5210 IFS=$as_save_IFS
5211 
5212   ;;
5213 esac
5214 fi
5215 BASENAME=$ac_cv_path_BASENAME
5216 if test -n "$BASENAME"; then
5217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
5218 $as_echo "$BASENAME" >&6; }
5219 else
5220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5221 $as_echo "no" >&6; }
5222 fi
5223 
5224 
5225   test -n "$BASENAME" && break
5226 done
5227 
5228     else
5229       # If it succeeded, then it was overridden by the user. We will use it
5230       # for the tool.
5231 
5232       # First remove it from the list of overridden variables, so we can test
5233       # for unknown variables in the end.
5234       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5235 
5236       # Check if we try to supply an empty value
5237       if test "x$BASENAME" = x; then
5238         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BASENAME= (no value)" >&5
5239 $as_echo "$as_me: Setting user supplied tool BASENAME= (no value)" >&6;}
5240         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5
5241 $as_echo_n "checking for BASENAME... " >&6; }
5242         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5243 $as_echo "disabled" >&6; }
5244       else
5245         # Check if the provided tool contains a complete path.
5246         tool_specified="$BASENAME"
5247         tool_basename="${tool_specified##*/}"
5248         if test "x$tool_basename" = "x$tool_specified"; then
5249           # A command without a complete path is provided, search $PATH.
5250           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5
5251 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;}
5252           # Extract the first word of "$tool_basename", so it can be a program name with args.
5253 set dummy $tool_basename; ac_word=$2
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5255 $as_echo_n "checking for $ac_word... " >&6; }
5256 if ${ac_cv_path_BASENAME+:} false; then :
5257   $as_echo_n "(cached) " >&6
5258 else
5259   case $BASENAME in
5260   [\\/]* | ?:[\\/]*)
5261   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
5262   ;;
5263   *)
5264   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5265 for as_dir in $PATH
5266 do
5267   IFS=$as_save_IFS
5268   test -z "$as_dir" && as_dir=.
5269     for ac_exec_ext in '' $ac_executable_extensions; do
5270   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5271     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
5272     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5273     break 2
5274   fi
5275 done
5276   done
5277 IFS=$as_save_IFS
5278 
5279   ;;
5280 esac
5281 fi
5282 BASENAME=$ac_cv_path_BASENAME
5283 if test -n "$BASENAME"; then
5284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
5285 $as_echo "$BASENAME" >&6; }
5286 else
5287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5288 $as_echo "no" >&6; }
5289 fi
5290 
5291 
5292           if test "x$BASENAME" = x; then
5293             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5294           fi
5295         else
5296           # Otherwise we believe it is a complete path. Use it as it is.
5297           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5
5298 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;}
5299           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5
5300 $as_echo_n "checking for BASENAME... " >&6; }
5301           if test ! -x "$tool_specified"; then
5302             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5303 $as_echo "not found" >&6; }
5304             as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5
5305           fi
5306           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5307 $as_echo "$tool_specified" >&6; }
5308         fi
5309       fi
5310     fi
5311 
5312   fi
5313 
5314 
5315 
5316   if test "x$BASENAME" = x; then
5317     as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5
5318   fi
5319 
5320 
5321 
5322 
5323 
5324   # Publish this variable in the help.
5325 
5326 
5327   if [ -z "${BASH+x}" ]; then
5328     # The variable is not set by user, try to locate tool using the code snippet
5329     for ac_prog in bash
5330 do
5331   # Extract the first word of "$ac_prog", so it can be a program name with args.
5332 set dummy $ac_prog; ac_word=$2
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5334 $as_echo_n "checking for $ac_word... " >&6; }
5335 if ${ac_cv_path_BASH+:} false; then :
5336   $as_echo_n "(cached) " >&6
5337 else
5338   case $BASH in
5339   [\\/]* | ?:[\\/]*)
5340   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
5341   ;;
5342   *)
5343   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5344 for as_dir in $PATH
5345 do
5346   IFS=$as_save_IFS
5347   test -z "$as_dir" && as_dir=.
5348     for ac_exec_ext in '' $ac_executable_extensions; do
5349   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5350     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
5351     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5352     break 2
5353   fi
5354 done
5355   done
5356 IFS=$as_save_IFS
5357 
5358   ;;
5359 esac
5360 fi
5361 BASH=$ac_cv_path_BASH
5362 if test -n "$BASH"; then
5363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
5364 $as_echo "$BASH" >&6; }
5365 else
5366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5367 $as_echo "no" >&6; }
5368 fi
5369 
5370 
5371   test -n "$BASH" && break
5372 done
5373 
5374   else
5375     # The variable is set, but is it from the command line or the environment?
5376 
5377     # Try to remove the string !BASH! from our list.
5378     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/}
5379     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5380       # If it failed, the variable was not from the command line. Ignore it,
5381       # but warn the user (except for BASH, which is always set by the calling BASH).
5382       if test "xBASH" != xBASH; then
5383         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5
5384 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;}
5385       fi
5386       # Try to locate tool using the code snippet
5387       for ac_prog in bash
5388 do
5389   # Extract the first word of "$ac_prog", so it can be a program name with args.
5390 set dummy $ac_prog; ac_word=$2
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5392 $as_echo_n "checking for $ac_word... " >&6; }
5393 if ${ac_cv_path_BASH+:} false; then :
5394   $as_echo_n "(cached) " >&6
5395 else
5396   case $BASH in
5397   [\\/]* | ?:[\\/]*)
5398   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
5399   ;;
5400   *)
5401   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5402 for as_dir in $PATH
5403 do
5404   IFS=$as_save_IFS
5405   test -z "$as_dir" && as_dir=.
5406     for ac_exec_ext in '' $ac_executable_extensions; do
5407   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5408     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
5409     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5410     break 2
5411   fi
5412 done
5413   done
5414 IFS=$as_save_IFS
5415 
5416   ;;
5417 esac
5418 fi
5419 BASH=$ac_cv_path_BASH
5420 if test -n "$BASH"; then
5421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
5422 $as_echo "$BASH" >&6; }
5423 else
5424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5425 $as_echo "no" >&6; }
5426 fi
5427 
5428 
5429   test -n "$BASH" && break
5430 done
5431 
5432     else
5433       # If it succeeded, then it was overridden by the user. We will use it
5434       # for the tool.
5435 
5436       # First remove it from the list of overridden variables, so we can test
5437       # for unknown variables in the end.
5438       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5439 
5440       # Check if we try to supply an empty value
5441       if test "x$BASH" = x; then
5442         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BASH= (no value)" >&5
5443 $as_echo "$as_me: Setting user supplied tool BASH= (no value)" >&6;}
5444         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5
5445 $as_echo_n "checking for BASH... " >&6; }
5446         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5447 $as_echo "disabled" >&6; }
5448       else
5449         # Check if the provided tool contains a complete path.
5450         tool_specified="$BASH"
5451         tool_basename="${tool_specified##*/}"
5452         if test "x$tool_basename" = "x$tool_specified"; then
5453           # A command without a complete path is provided, search $PATH.
5454           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5
5455 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;}
5456           # Extract the first word of "$tool_basename", so it can be a program name with args.
5457 set dummy $tool_basename; ac_word=$2
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5459 $as_echo_n "checking for $ac_word... " >&6; }
5460 if ${ac_cv_path_BASH+:} false; then :
5461   $as_echo_n "(cached) " >&6
5462 else
5463   case $BASH in
5464   [\\/]* | ?:[\\/]*)
5465   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
5466   ;;
5467   *)
5468   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5469 for as_dir in $PATH
5470 do
5471   IFS=$as_save_IFS
5472   test -z "$as_dir" && as_dir=.
5473     for ac_exec_ext in '' $ac_executable_extensions; do
5474   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5475     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
5476     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5477     break 2
5478   fi
5479 done
5480   done
5481 IFS=$as_save_IFS
5482 
5483   ;;
5484 esac
5485 fi
5486 BASH=$ac_cv_path_BASH
5487 if test -n "$BASH"; then
5488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
5489 $as_echo "$BASH" >&6; }
5490 else
5491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5492 $as_echo "no" >&6; }
5493 fi
5494 
5495 
5496           if test "x$BASH" = x; then
5497             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5498           fi
5499         else
5500           # Otherwise we believe it is a complete path. Use it as it is.
5501           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5
5502 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;}
5503           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5
5504 $as_echo_n "checking for BASH... " >&6; }
5505           if test ! -x "$tool_specified"; then
5506             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5507 $as_echo "not found" >&6; }
5508             as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5
5509           fi
5510           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5511 $as_echo "$tool_specified" >&6; }
5512         fi
5513       fi
5514     fi
5515 
5516   fi
5517 
5518 
5519 
5520   if test "x$BASH" = x; then
5521     as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5
5522   fi
5523 
5524 
5525 
5526 
5527 
5528   # Publish this variable in the help.
5529 
5530 
5531   if [ -z "${CAT+x}" ]; then
5532     # The variable is not set by user, try to locate tool using the code snippet
5533     for ac_prog in cat
5534 do
5535   # Extract the first word of "$ac_prog", so it can be a program name with args.
5536 set dummy $ac_prog; ac_word=$2
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5538 $as_echo_n "checking for $ac_word... " >&6; }
5539 if ${ac_cv_path_CAT+:} false; then :
5540   $as_echo_n "(cached) " >&6
5541 else
5542   case $CAT in
5543   [\\/]* | ?:[\\/]*)
5544   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
5545   ;;
5546   *)
5547   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5548 for as_dir in $PATH
5549 do
5550   IFS=$as_save_IFS
5551   test -z "$as_dir" && as_dir=.
5552     for ac_exec_ext in '' $ac_executable_extensions; do
5553   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5554     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
5555     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5556     break 2
5557   fi
5558 done
5559   done
5560 IFS=$as_save_IFS
5561 
5562   ;;
5563 esac
5564 fi
5565 CAT=$ac_cv_path_CAT
5566 if test -n "$CAT"; then
5567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5568 $as_echo "$CAT" >&6; }
5569 else
5570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5571 $as_echo "no" >&6; }
5572 fi
5573 
5574 
5575   test -n "$CAT" && break
5576 done
5577 
5578   else
5579     # The variable is set, but is it from the command line or the environment?
5580 
5581     # Try to remove the string !CAT! from our list.
5582     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/}
5583     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5584       # If it failed, the variable was not from the command line. Ignore it,
5585       # but warn the user (except for BASH, which is always set by the calling BASH).
5586       if test "xCAT" != xBASH; then
5587         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5
5588 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;}
5589       fi
5590       # Try to locate tool using the code snippet
5591       for ac_prog in cat
5592 do
5593   # Extract the first word of "$ac_prog", so it can be a program name with args.
5594 set dummy $ac_prog; ac_word=$2
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5596 $as_echo_n "checking for $ac_word... " >&6; }
5597 if ${ac_cv_path_CAT+:} false; then :
5598   $as_echo_n "(cached) " >&6
5599 else
5600   case $CAT in
5601   [\\/]* | ?:[\\/]*)
5602   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
5603   ;;
5604   *)
5605   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5606 for as_dir in $PATH
5607 do
5608   IFS=$as_save_IFS
5609   test -z "$as_dir" && as_dir=.
5610     for ac_exec_ext in '' $ac_executable_extensions; do
5611   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5612     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
5613     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5614     break 2
5615   fi
5616 done
5617   done
5618 IFS=$as_save_IFS
5619 
5620   ;;
5621 esac
5622 fi
5623 CAT=$ac_cv_path_CAT
5624 if test -n "$CAT"; then
5625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5626 $as_echo "$CAT" >&6; }
5627 else
5628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5629 $as_echo "no" >&6; }
5630 fi
5631 
5632 
5633   test -n "$CAT" && break
5634 done
5635 
5636     else
5637       # If it succeeded, then it was overridden by the user. We will use it
5638       # for the tool.
5639 
5640       # First remove it from the list of overridden variables, so we can test
5641       # for unknown variables in the end.
5642       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5643 
5644       # Check if we try to supply an empty value
5645       if test "x$CAT" = x; then
5646         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CAT= (no value)" >&5
5647 $as_echo "$as_me: Setting user supplied tool CAT= (no value)" >&6;}
5648         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5
5649 $as_echo_n "checking for CAT... " >&6; }
5650         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5651 $as_echo "disabled" >&6; }
5652       else
5653         # Check if the provided tool contains a complete path.
5654         tool_specified="$CAT"
5655         tool_basename="${tool_specified##*/}"
5656         if test "x$tool_basename" = "x$tool_specified"; then
5657           # A command without a complete path is provided, search $PATH.
5658           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5
5659 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;}
5660           # Extract the first word of "$tool_basename", so it can be a program name with args.
5661 set dummy $tool_basename; ac_word=$2
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5663 $as_echo_n "checking for $ac_word... " >&6; }
5664 if ${ac_cv_path_CAT+:} false; then :
5665   $as_echo_n "(cached) " >&6
5666 else
5667   case $CAT in
5668   [\\/]* | ?:[\\/]*)
5669   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
5670   ;;
5671   *)
5672   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5673 for as_dir in $PATH
5674 do
5675   IFS=$as_save_IFS
5676   test -z "$as_dir" && as_dir=.
5677     for ac_exec_ext in '' $ac_executable_extensions; do
5678   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5679     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
5680     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5681     break 2
5682   fi
5683 done
5684   done
5685 IFS=$as_save_IFS
5686 
5687   ;;
5688 esac
5689 fi
5690 CAT=$ac_cv_path_CAT
5691 if test -n "$CAT"; then
5692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5693 $as_echo "$CAT" >&6; }
5694 else
5695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5696 $as_echo "no" >&6; }
5697 fi
5698 
5699 
5700           if test "x$CAT" = x; then
5701             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5702           fi
5703         else
5704           # Otherwise we believe it is a complete path. Use it as it is.
5705           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5
5706 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;}
5707           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5
5708 $as_echo_n "checking for CAT... " >&6; }
5709           if test ! -x "$tool_specified"; then
5710             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5711 $as_echo "not found" >&6; }
5712             as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5
5713           fi
5714           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5715 $as_echo "$tool_specified" >&6; }
5716         fi
5717       fi
5718     fi
5719 
5720   fi
5721 
5722 
5723 
5724   if test "x$CAT" = x; then
5725     as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5
5726   fi
5727 
5728 
5729 
5730 
5731 
5732   # Publish this variable in the help.
5733 
5734 
5735   if [ -z "${CHMOD+x}" ]; then
5736     # The variable is not set by user, try to locate tool using the code snippet
5737     for ac_prog in chmod
5738 do
5739   # Extract the first word of "$ac_prog", so it can be a program name with args.
5740 set dummy $ac_prog; ac_word=$2
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5742 $as_echo_n "checking for $ac_word... " >&6; }
5743 if ${ac_cv_path_CHMOD+:} false; then :
5744   $as_echo_n "(cached) " >&6
5745 else
5746   case $CHMOD in
5747   [\\/]* | ?:[\\/]*)
5748   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5749   ;;
5750   *)
5751   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5752 for as_dir in $PATH
5753 do
5754   IFS=$as_save_IFS
5755   test -z "$as_dir" && as_dir=.
5756     for ac_exec_ext in '' $ac_executable_extensions; do
5757   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5758     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5759     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5760     break 2
5761   fi
5762 done
5763   done
5764 IFS=$as_save_IFS
5765 
5766   ;;
5767 esac
5768 fi
5769 CHMOD=$ac_cv_path_CHMOD
5770 if test -n "$CHMOD"; then
5771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5772 $as_echo "$CHMOD" >&6; }
5773 else
5774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5775 $as_echo "no" >&6; }
5776 fi
5777 
5778 
5779   test -n "$CHMOD" && break
5780 done
5781 
5782   else
5783     # The variable is set, but is it from the command line or the environment?
5784 
5785     # Try to remove the string !CHMOD! from our list.
5786     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/}
5787     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5788       # If it failed, the variable was not from the command line. Ignore it,
5789       # but warn the user (except for BASH, which is always set by the calling BASH).
5790       if test "xCHMOD" != xBASH; then
5791         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5
5792 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;}
5793       fi
5794       # Try to locate tool using the code snippet
5795       for ac_prog in chmod
5796 do
5797   # Extract the first word of "$ac_prog", so it can be a program name with args.
5798 set dummy $ac_prog; ac_word=$2
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5800 $as_echo_n "checking for $ac_word... " >&6; }
5801 if ${ac_cv_path_CHMOD+:} false; then :
5802   $as_echo_n "(cached) " >&6
5803 else
5804   case $CHMOD in
5805   [\\/]* | ?:[\\/]*)
5806   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5807   ;;
5808   *)
5809   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5810 for as_dir in $PATH
5811 do
5812   IFS=$as_save_IFS
5813   test -z "$as_dir" && as_dir=.
5814     for ac_exec_ext in '' $ac_executable_extensions; do
5815   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5816     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5817     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5818     break 2
5819   fi
5820 done
5821   done
5822 IFS=$as_save_IFS
5823 
5824   ;;
5825 esac
5826 fi
5827 CHMOD=$ac_cv_path_CHMOD
5828 if test -n "$CHMOD"; then
5829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5830 $as_echo "$CHMOD" >&6; }
5831 else
5832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5833 $as_echo "no" >&6; }
5834 fi
5835 
5836 
5837   test -n "$CHMOD" && break
5838 done
5839 
5840     else
5841       # If it succeeded, then it was overridden by the user. We will use it
5842       # for the tool.
5843 
5844       # First remove it from the list of overridden variables, so we can test
5845       # for unknown variables in the end.
5846       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5847 
5848       # Check if we try to supply an empty value
5849       if test "x$CHMOD" = x; then
5850         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CHMOD= (no value)" >&5
5851 $as_echo "$as_me: Setting user supplied tool CHMOD= (no value)" >&6;}
5852         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5
5853 $as_echo_n "checking for CHMOD... " >&6; }
5854         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5855 $as_echo "disabled" >&6; }
5856       else
5857         # Check if the provided tool contains a complete path.
5858         tool_specified="$CHMOD"
5859         tool_basename="${tool_specified##*/}"
5860         if test "x$tool_basename" = "x$tool_specified"; then
5861           # A command without a complete path is provided, search $PATH.
5862           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5
5863 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;}
5864           # Extract the first word of "$tool_basename", so it can be a program name with args.
5865 set dummy $tool_basename; ac_word=$2
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5867 $as_echo_n "checking for $ac_word... " >&6; }
5868 if ${ac_cv_path_CHMOD+:} false; then :
5869   $as_echo_n "(cached) " >&6
5870 else
5871   case $CHMOD in
5872   [\\/]* | ?:[\\/]*)
5873   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5874   ;;
5875   *)
5876   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5877 for as_dir in $PATH
5878 do
5879   IFS=$as_save_IFS
5880   test -z "$as_dir" && as_dir=.
5881     for ac_exec_ext in '' $ac_executable_extensions; do
5882   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5883     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5884     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5885     break 2
5886   fi
5887 done
5888   done
5889 IFS=$as_save_IFS
5890 
5891   ;;
5892 esac
5893 fi
5894 CHMOD=$ac_cv_path_CHMOD
5895 if test -n "$CHMOD"; then
5896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5897 $as_echo "$CHMOD" >&6; }
5898 else
5899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5900 $as_echo "no" >&6; }
5901 fi
5902 
5903 
5904           if test "x$CHMOD" = x; then
5905             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5906           fi
5907         else
5908           # Otherwise we believe it is a complete path. Use it as it is.
5909           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5
5910 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;}
5911           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5
5912 $as_echo_n "checking for CHMOD... " >&6; }
5913           if test ! -x "$tool_specified"; then
5914             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5915 $as_echo "not found" >&6; }
5916             as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5
5917           fi
5918           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5919 $as_echo "$tool_specified" >&6; }
5920         fi
5921       fi
5922     fi
5923 
5924   fi
5925 
5926 
5927 
5928   if test "x$CHMOD" = x; then
5929     as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5
5930   fi
5931 
5932 
5933 
5934 
5935 
5936   # Publish this variable in the help.
5937 
5938 
5939   if [ -z "${CMP+x}" ]; then
5940     # The variable is not set by user, try to locate tool using the code snippet
5941     for ac_prog in cmp
5942 do
5943   # Extract the first word of "$ac_prog", so it can be a program name with args.
5944 set dummy $ac_prog; ac_word=$2
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5946 $as_echo_n "checking for $ac_word... " >&6; }
5947 if ${ac_cv_path_CMP+:} false; then :
5948   $as_echo_n "(cached) " >&6
5949 else
5950   case $CMP in
5951   [\\/]* | ?:[\\/]*)
5952   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5953   ;;
5954   *)
5955   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5956 for as_dir in $PATH
5957 do
5958   IFS=$as_save_IFS
5959   test -z "$as_dir" && as_dir=.
5960     for ac_exec_ext in '' $ac_executable_extensions; do
5961   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5962     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5963     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5964     break 2
5965   fi
5966 done
5967   done
5968 IFS=$as_save_IFS
5969 
5970   ;;
5971 esac
5972 fi
5973 CMP=$ac_cv_path_CMP
5974 if test -n "$CMP"; then
5975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5976 $as_echo "$CMP" >&6; }
5977 else
5978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5979 $as_echo "no" >&6; }
5980 fi
5981 
5982 
5983   test -n "$CMP" && break
5984 done
5985 
5986   else
5987     # The variable is set, but is it from the command line or the environment?
5988 
5989     # Try to remove the string !CMP! from our list.
5990     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/}
5991     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5992       # If it failed, the variable was not from the command line. Ignore it,
5993       # but warn the user (except for BASH, which is always set by the calling BASH).
5994       if test "xCMP" != xBASH; then
5995         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5
5996 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;}
5997       fi
5998       # Try to locate tool using the code snippet
5999       for ac_prog in cmp
6000 do
6001   # Extract the first word of "$ac_prog", so it can be a program name with args.
6002 set dummy $ac_prog; ac_word=$2
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6004 $as_echo_n "checking for $ac_word... " >&6; }
6005 if ${ac_cv_path_CMP+:} false; then :
6006   $as_echo_n "(cached) " >&6
6007 else
6008   case $CMP in
6009   [\\/]* | ?:[\\/]*)
6010   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6011   ;;
6012   *)
6013   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6014 for as_dir in $PATH
6015 do
6016   IFS=$as_save_IFS
6017   test -z "$as_dir" && as_dir=.
6018     for ac_exec_ext in '' $ac_executable_extensions; do
6019   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6020     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6021     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6022     break 2
6023   fi
6024 done
6025   done
6026 IFS=$as_save_IFS
6027 
6028   ;;
6029 esac
6030 fi
6031 CMP=$ac_cv_path_CMP
6032 if test -n "$CMP"; then
6033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
6034 $as_echo "$CMP" >&6; }
6035 else
6036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6037 $as_echo "no" >&6; }
6038 fi
6039 
6040 
6041   test -n "$CMP" && break
6042 done
6043 
6044     else
6045       # If it succeeded, then it was overridden by the user. We will use it
6046       # for the tool.
6047 
6048       # First remove it from the list of overridden variables, so we can test
6049       # for unknown variables in the end.
6050       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6051 
6052       # Check if we try to supply an empty value
6053       if test "x$CMP" = x; then
6054         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CMP= (no value)" >&5
6055 $as_echo "$as_me: Setting user supplied tool CMP= (no value)" >&6;}
6056         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5
6057 $as_echo_n "checking for CMP... " >&6; }
6058         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6059 $as_echo "disabled" >&6; }
6060       else
6061         # Check if the provided tool contains a complete path.
6062         tool_specified="$CMP"
6063         tool_basename="${tool_specified##*/}"
6064         if test "x$tool_basename" = "x$tool_specified"; then
6065           # A command without a complete path is provided, search $PATH.
6066           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5
6067 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;}
6068           # Extract the first word of "$tool_basename", so it can be a program name with args.
6069 set dummy $tool_basename; ac_word=$2
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6071 $as_echo_n "checking for $ac_word... " >&6; }
6072 if ${ac_cv_path_CMP+:} false; then :
6073   $as_echo_n "(cached) " >&6
6074 else
6075   case $CMP in
6076   [\\/]* | ?:[\\/]*)
6077   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6078   ;;
6079   *)
6080   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6081 for as_dir in $PATH
6082 do
6083   IFS=$as_save_IFS
6084   test -z "$as_dir" && as_dir=.
6085     for ac_exec_ext in '' $ac_executable_extensions; do
6086   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6087     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6088     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6089     break 2
6090   fi
6091 done
6092   done
6093 IFS=$as_save_IFS
6094 
6095   ;;
6096 esac
6097 fi
6098 CMP=$ac_cv_path_CMP
6099 if test -n "$CMP"; then
6100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
6101 $as_echo "$CMP" >&6; }
6102 else
6103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6104 $as_echo "no" >&6; }
6105 fi
6106 
6107 
6108           if test "x$CMP" = x; then
6109             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6110           fi
6111         else
6112           # Otherwise we believe it is a complete path. Use it as it is.
6113           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5
6114 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;}
6115           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5
6116 $as_echo_n "checking for CMP... " >&6; }
6117           if test ! -x "$tool_specified"; then
6118             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6119 $as_echo "not found" >&6; }
6120             as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5
6121           fi
6122           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6123 $as_echo "$tool_specified" >&6; }
6124         fi
6125       fi
6126     fi
6127 
6128   fi
6129 
6130 
6131 
6132   if test "x$CMP" = x; then
6133     as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5
6134   fi
6135 
6136 
6137 
6138 
6139 
6140   # Publish this variable in the help.
6141 
6142 
6143   if [ -z "${COMM+x}" ]; then
6144     # The variable is not set by user, try to locate tool using the code snippet
6145     for ac_prog in comm
6146 do
6147   # Extract the first word of "$ac_prog", so it can be a program name with args.
6148 set dummy $ac_prog; ac_word=$2
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6150 $as_echo_n "checking for $ac_word... " >&6; }
6151 if ${ac_cv_path_COMM+:} false; then :
6152   $as_echo_n "(cached) " >&6
6153 else
6154   case $COMM in
6155   [\\/]* | ?:[\\/]*)
6156   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
6157   ;;
6158   *)
6159   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6160 for as_dir in $PATH
6161 do
6162   IFS=$as_save_IFS
6163   test -z "$as_dir" && as_dir=.
6164     for ac_exec_ext in '' $ac_executable_extensions; do
6165   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6166     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
6167     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6168     break 2
6169   fi
6170 done
6171   done
6172 IFS=$as_save_IFS
6173 
6174   ;;
6175 esac
6176 fi
6177 COMM=$ac_cv_path_COMM
6178 if test -n "$COMM"; then
6179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
6180 $as_echo "$COMM" >&6; }
6181 else
6182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6183 $as_echo "no" >&6; }
6184 fi
6185 
6186 
6187   test -n "$COMM" && break
6188 done
6189 
6190   else
6191     # The variable is set, but is it from the command line or the environment?
6192 
6193     # Try to remove the string !COMM! from our list.
6194     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/}
6195     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6196       # If it failed, the variable was not from the command line. Ignore it,
6197       # but warn the user (except for BASH, which is always set by the calling BASH).
6198       if test "xCOMM" != xBASH; then
6199         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5
6200 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;}
6201       fi
6202       # Try to locate tool using the code snippet
6203       for ac_prog in comm
6204 do
6205   # Extract the first word of "$ac_prog", so it can be a program name with args.
6206 set dummy $ac_prog; ac_word=$2
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6208 $as_echo_n "checking for $ac_word... " >&6; }
6209 if ${ac_cv_path_COMM+:} false; then :
6210   $as_echo_n "(cached) " >&6
6211 else
6212   case $COMM in
6213   [\\/]* | ?:[\\/]*)
6214   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
6215   ;;
6216   *)
6217   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6218 for as_dir in $PATH
6219 do
6220   IFS=$as_save_IFS
6221   test -z "$as_dir" && as_dir=.
6222     for ac_exec_ext in '' $ac_executable_extensions; do
6223   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6224     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
6225     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6226     break 2
6227   fi
6228 done
6229   done
6230 IFS=$as_save_IFS
6231 
6232   ;;
6233 esac
6234 fi
6235 COMM=$ac_cv_path_COMM
6236 if test -n "$COMM"; then
6237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
6238 $as_echo "$COMM" >&6; }
6239 else
6240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6241 $as_echo "no" >&6; }
6242 fi
6243 
6244 
6245   test -n "$COMM" && break
6246 done
6247 
6248     else
6249       # If it succeeded, then it was overridden by the user. We will use it
6250       # for the tool.
6251 
6252       # First remove it from the list of overridden variables, so we can test
6253       # for unknown variables in the end.
6254       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6255 
6256       # Check if we try to supply an empty value
6257       if test "x$COMM" = x; then
6258         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool COMM= (no value)" >&5
6259 $as_echo "$as_me: Setting user supplied tool COMM= (no value)" >&6;}
6260         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
6261 $as_echo_n "checking for COMM... " >&6; }
6262         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6263 $as_echo "disabled" >&6; }
6264       else
6265         # Check if the provided tool contains a complete path.
6266         tool_specified="$COMM"
6267         tool_basename="${tool_specified##*/}"
6268         if test "x$tool_basename" = "x$tool_specified"; then
6269           # A command without a complete path is provided, search $PATH.
6270           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5
6271 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;}
6272           # Extract the first word of "$tool_basename", so it can be a program name with args.
6273 set dummy $tool_basename; ac_word=$2
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6275 $as_echo_n "checking for $ac_word... " >&6; }
6276 if ${ac_cv_path_COMM+:} false; then :
6277   $as_echo_n "(cached) " >&6
6278 else
6279   case $COMM in
6280   [\\/]* | ?:[\\/]*)
6281   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
6282   ;;
6283   *)
6284   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6285 for as_dir in $PATH
6286 do
6287   IFS=$as_save_IFS
6288   test -z "$as_dir" && as_dir=.
6289     for ac_exec_ext in '' $ac_executable_extensions; do
6290   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6291     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
6292     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6293     break 2
6294   fi
6295 done
6296   done
6297 IFS=$as_save_IFS
6298 
6299   ;;
6300 esac
6301 fi
6302 COMM=$ac_cv_path_COMM
6303 if test -n "$COMM"; then
6304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
6305 $as_echo "$COMM" >&6; }
6306 else
6307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6308 $as_echo "no" >&6; }
6309 fi
6310 
6311 
6312           if test "x$COMM" = x; then
6313             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6314           fi
6315         else
6316           # Otherwise we believe it is a complete path. Use it as it is.
6317           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5
6318 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;}
6319           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
6320 $as_echo_n "checking for COMM... " >&6; }
6321           if test ! -x "$tool_specified"; then
6322             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6323 $as_echo "not found" >&6; }
6324             as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5
6325           fi
6326           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6327 $as_echo "$tool_specified" >&6; }
6328         fi
6329       fi
6330     fi
6331 
6332   fi
6333 
6334 
6335 
6336   if test "x$COMM" = x; then
6337     as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5
6338   fi
6339 
6340 
6341 
6342 
6343 
6344   # Publish this variable in the help.
6345 
6346 
6347   if [ -z "${CP+x}" ]; then
6348     # The variable is not set by user, try to locate tool using the code snippet
6349     for ac_prog in cp
6350 do
6351   # Extract the first word of "$ac_prog", so it can be a program name with args.
6352 set dummy $ac_prog; ac_word=$2
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6354 $as_echo_n "checking for $ac_word... " >&6; }
6355 if ${ac_cv_path_CP+:} false; then :
6356   $as_echo_n "(cached) " >&6
6357 else
6358   case $CP in
6359   [\\/]* | ?:[\\/]*)
6360   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6361   ;;
6362   *)
6363   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6364 for as_dir in $PATH
6365 do
6366   IFS=$as_save_IFS
6367   test -z "$as_dir" && as_dir=.
6368     for ac_exec_ext in '' $ac_executable_extensions; do
6369   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6370     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6371     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6372     break 2
6373   fi
6374 done
6375   done
6376 IFS=$as_save_IFS
6377 
6378   ;;
6379 esac
6380 fi
6381 CP=$ac_cv_path_CP
6382 if test -n "$CP"; then
6383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
6384 $as_echo "$CP" >&6; }
6385 else
6386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6387 $as_echo "no" >&6; }
6388 fi
6389 
6390 
6391   test -n "$CP" && break
6392 done
6393 
6394   else
6395     # The variable is set, but is it from the command line or the environment?
6396 
6397     # Try to remove the string !CP! from our list.
6398     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/}
6399     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6400       # If it failed, the variable was not from the command line. Ignore it,
6401       # but warn the user (except for BASH, which is always set by the calling BASH).
6402       if test "xCP" != xBASH; then
6403         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5
6404 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;}
6405       fi
6406       # Try to locate tool using the code snippet
6407       for ac_prog in cp
6408 do
6409   # Extract the first word of "$ac_prog", so it can be a program name with args.
6410 set dummy $ac_prog; ac_word=$2
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6412 $as_echo_n "checking for $ac_word... " >&6; }
6413 if ${ac_cv_path_CP+:} false; then :
6414   $as_echo_n "(cached) " >&6
6415 else
6416   case $CP in
6417   [\\/]* | ?:[\\/]*)
6418   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6419   ;;
6420   *)
6421   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6422 for as_dir in $PATH
6423 do
6424   IFS=$as_save_IFS
6425   test -z "$as_dir" && as_dir=.
6426     for ac_exec_ext in '' $ac_executable_extensions; do
6427   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6428     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6429     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6430     break 2
6431   fi
6432 done
6433   done
6434 IFS=$as_save_IFS
6435 
6436   ;;
6437 esac
6438 fi
6439 CP=$ac_cv_path_CP
6440 if test -n "$CP"; then
6441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
6442 $as_echo "$CP" >&6; }
6443 else
6444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6445 $as_echo "no" >&6; }
6446 fi
6447 
6448 
6449   test -n "$CP" && break
6450 done
6451 
6452     else
6453       # If it succeeded, then it was overridden by the user. We will use it
6454       # for the tool.
6455 
6456       # First remove it from the list of overridden variables, so we can test
6457       # for unknown variables in the end.
6458       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6459 
6460       # Check if we try to supply an empty value
6461       if test "x$CP" = x; then
6462         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CP= (no value)" >&5
6463 $as_echo "$as_me: Setting user supplied tool CP= (no value)" >&6;}
6464         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5
6465 $as_echo_n "checking for CP... " >&6; }
6466         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6467 $as_echo "disabled" >&6; }
6468       else
6469         # Check if the provided tool contains a complete path.
6470         tool_specified="$CP"
6471         tool_basename="${tool_specified##*/}"
6472         if test "x$tool_basename" = "x$tool_specified"; then
6473           # A command without a complete path is provided, search $PATH.
6474           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5
6475 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;}
6476           # Extract the first word of "$tool_basename", so it can be a program name with args.
6477 set dummy $tool_basename; ac_word=$2
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6479 $as_echo_n "checking for $ac_word... " >&6; }
6480 if ${ac_cv_path_CP+:} false; then :
6481   $as_echo_n "(cached) " >&6
6482 else
6483   case $CP in
6484   [\\/]* | ?:[\\/]*)
6485   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6486   ;;
6487   *)
6488   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6489 for as_dir in $PATH
6490 do
6491   IFS=$as_save_IFS
6492   test -z "$as_dir" && as_dir=.
6493     for ac_exec_ext in '' $ac_executable_extensions; do
6494   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6495     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6496     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6497     break 2
6498   fi
6499 done
6500   done
6501 IFS=$as_save_IFS
6502 
6503   ;;
6504 esac
6505 fi
6506 CP=$ac_cv_path_CP
6507 if test -n "$CP"; then
6508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
6509 $as_echo "$CP" >&6; }
6510 else
6511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6512 $as_echo "no" >&6; }
6513 fi
6514 
6515 
6516           if test "x$CP" = x; then
6517             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6518           fi
6519         else
6520           # Otherwise we believe it is a complete path. Use it as it is.
6521           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5
6522 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;}
6523           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5
6524 $as_echo_n "checking for CP... " >&6; }
6525           if test ! -x "$tool_specified"; then
6526             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6527 $as_echo "not found" >&6; }
6528             as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5
6529           fi
6530           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6531 $as_echo "$tool_specified" >&6; }
6532         fi
6533       fi
6534     fi
6535 
6536   fi
6537 
6538 
6539 
6540   if test "x$CP" = x; then
6541     as_fn_error $? "Could not find required tool for CP" "$LINENO" 5
6542   fi
6543 
6544 
6545 
6546 
6547 
6548   # Publish this variable in the help.
6549 
6550 
6551   if [ -z "${CUT+x}" ]; then
6552     # The variable is not set by user, try to locate tool using the code snippet
6553     for ac_prog in cut
6554 do
6555   # Extract the first word of "$ac_prog", so it can be a program name with args.
6556 set dummy $ac_prog; ac_word=$2
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6558 $as_echo_n "checking for $ac_word... " >&6; }
6559 if ${ac_cv_path_CUT+:} false; then :
6560   $as_echo_n "(cached) " >&6
6561 else
6562   case $CUT in
6563   [\\/]* | ?:[\\/]*)
6564   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
6565   ;;
6566   *)
6567   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6568 for as_dir in $PATH
6569 do
6570   IFS=$as_save_IFS
6571   test -z "$as_dir" && as_dir=.
6572     for ac_exec_ext in '' $ac_executable_extensions; do
6573   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6574     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
6575     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6576     break 2
6577   fi
6578 done
6579   done
6580 IFS=$as_save_IFS
6581 
6582   ;;
6583 esac
6584 fi
6585 CUT=$ac_cv_path_CUT
6586 if test -n "$CUT"; then
6587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
6588 $as_echo "$CUT" >&6; }
6589 else
6590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6591 $as_echo "no" >&6; }
6592 fi
6593 
6594 
6595   test -n "$CUT" && break
6596 done
6597 
6598   else
6599     # The variable is set, but is it from the command line or the environment?
6600 
6601     # Try to remove the string !CUT! from our list.
6602     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/}
6603     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6604       # If it failed, the variable was not from the command line. Ignore it,
6605       # but warn the user (except for BASH, which is always set by the calling BASH).
6606       if test "xCUT" != xBASH; then
6607         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5
6608 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;}
6609       fi
6610       # Try to locate tool using the code snippet
6611       for ac_prog in cut
6612 do
6613   # Extract the first word of "$ac_prog", so it can be a program name with args.
6614 set dummy $ac_prog; ac_word=$2
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6616 $as_echo_n "checking for $ac_word... " >&6; }
6617 if ${ac_cv_path_CUT+:} false; then :
6618   $as_echo_n "(cached) " >&6
6619 else
6620   case $CUT in
6621   [\\/]* | ?:[\\/]*)
6622   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
6623   ;;
6624   *)
6625   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6626 for as_dir in $PATH
6627 do
6628   IFS=$as_save_IFS
6629   test -z "$as_dir" && as_dir=.
6630     for ac_exec_ext in '' $ac_executable_extensions; do
6631   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6632     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
6633     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6634     break 2
6635   fi
6636 done
6637   done
6638 IFS=$as_save_IFS
6639 
6640   ;;
6641 esac
6642 fi
6643 CUT=$ac_cv_path_CUT
6644 if test -n "$CUT"; then
6645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
6646 $as_echo "$CUT" >&6; }
6647 else
6648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6649 $as_echo "no" >&6; }
6650 fi
6651 
6652 
6653   test -n "$CUT" && break
6654 done
6655 
6656     else
6657       # If it succeeded, then it was overridden by the user. We will use it
6658       # for the tool.
6659 
6660       # First remove it from the list of overridden variables, so we can test
6661       # for unknown variables in the end.
6662       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6663 
6664       # Check if we try to supply an empty value
6665       if test "x$CUT" = x; then
6666         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CUT= (no value)" >&5
6667 $as_echo "$as_me: Setting user supplied tool CUT= (no value)" >&6;}
6668         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5
6669 $as_echo_n "checking for CUT... " >&6; }
6670         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6671 $as_echo "disabled" >&6; }
6672       else
6673         # Check if the provided tool contains a complete path.
6674         tool_specified="$CUT"
6675         tool_basename="${tool_specified##*/}"
6676         if test "x$tool_basename" = "x$tool_specified"; then
6677           # A command without a complete path is provided, search $PATH.
6678           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5
6679 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;}
6680           # Extract the first word of "$tool_basename", so it can be a program name with args.
6681 set dummy $tool_basename; ac_word=$2
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6683 $as_echo_n "checking for $ac_word... " >&6; }
6684 if ${ac_cv_path_CUT+:} false; then :
6685   $as_echo_n "(cached) " >&6
6686 else
6687   case $CUT in
6688   [\\/]* | ?:[\\/]*)
6689   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
6690   ;;
6691   *)
6692   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6693 for as_dir in $PATH
6694 do
6695   IFS=$as_save_IFS
6696   test -z "$as_dir" && as_dir=.
6697     for ac_exec_ext in '' $ac_executable_extensions; do
6698   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6699     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
6700     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6701     break 2
6702   fi
6703 done
6704   done
6705 IFS=$as_save_IFS
6706 
6707   ;;
6708 esac
6709 fi
6710 CUT=$ac_cv_path_CUT
6711 if test -n "$CUT"; then
6712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
6713 $as_echo "$CUT" >&6; }
6714 else
6715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6716 $as_echo "no" >&6; }
6717 fi
6718 
6719 
6720           if test "x$CUT" = x; then
6721             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6722           fi
6723         else
6724           # Otherwise we believe it is a complete path. Use it as it is.
6725           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5
6726 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;}
6727           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5
6728 $as_echo_n "checking for CUT... " >&6; }
6729           if test ! -x "$tool_specified"; then
6730             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6731 $as_echo "not found" >&6; }
6732             as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5
6733           fi
6734           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6735 $as_echo "$tool_specified" >&6; }
6736         fi
6737       fi
6738     fi
6739 
6740   fi
6741 
6742 
6743 
6744   if test "x$CUT" = x; then
6745     as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5
6746   fi
6747 
6748 
6749 
6750 
6751 
6752   # Publish this variable in the help.
6753 
6754 
6755   if [ -z "${DATE+x}" ]; then
6756     # The variable is not set by user, try to locate tool using the code snippet
6757     for ac_prog in date
6758 do
6759   # Extract the first word of "$ac_prog", so it can be a program name with args.
6760 set dummy $ac_prog; ac_word=$2
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6762 $as_echo_n "checking for $ac_word... " >&6; }
6763 if ${ac_cv_path_DATE+:} false; then :
6764   $as_echo_n "(cached) " >&6
6765 else
6766   case $DATE in
6767   [\\/]* | ?:[\\/]*)
6768   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6769   ;;
6770   *)
6771   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6772 for as_dir in $PATH
6773 do
6774   IFS=$as_save_IFS
6775   test -z "$as_dir" && as_dir=.
6776     for ac_exec_ext in '' $ac_executable_extensions; do
6777   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6778     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6779     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6780     break 2
6781   fi
6782 done
6783   done
6784 IFS=$as_save_IFS
6785 
6786   ;;
6787 esac
6788 fi
6789 DATE=$ac_cv_path_DATE
6790 if test -n "$DATE"; then
6791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6792 $as_echo "$DATE" >&6; }
6793 else
6794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6795 $as_echo "no" >&6; }
6796 fi
6797 
6798 
6799   test -n "$DATE" && break
6800 done
6801 
6802   else
6803     # The variable is set, but is it from the command line or the environment?
6804 
6805     # Try to remove the string !DATE! from our list.
6806     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/}
6807     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6808       # If it failed, the variable was not from the command line. Ignore it,
6809       # but warn the user (except for BASH, which is always set by the calling BASH).
6810       if test "xDATE" != xBASH; then
6811         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5
6812 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;}
6813       fi
6814       # Try to locate tool using the code snippet
6815       for ac_prog in date
6816 do
6817   # Extract the first word of "$ac_prog", so it can be a program name with args.
6818 set dummy $ac_prog; ac_word=$2
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6820 $as_echo_n "checking for $ac_word... " >&6; }
6821 if ${ac_cv_path_DATE+:} false; then :
6822   $as_echo_n "(cached) " >&6
6823 else
6824   case $DATE in
6825   [\\/]* | ?:[\\/]*)
6826   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6827   ;;
6828   *)
6829   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6830 for as_dir in $PATH
6831 do
6832   IFS=$as_save_IFS
6833   test -z "$as_dir" && as_dir=.
6834     for ac_exec_ext in '' $ac_executable_extensions; do
6835   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6836     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6837     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6838     break 2
6839   fi
6840 done
6841   done
6842 IFS=$as_save_IFS
6843 
6844   ;;
6845 esac
6846 fi
6847 DATE=$ac_cv_path_DATE
6848 if test -n "$DATE"; then
6849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6850 $as_echo "$DATE" >&6; }
6851 else
6852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6853 $as_echo "no" >&6; }
6854 fi
6855 
6856 
6857   test -n "$DATE" && break
6858 done
6859 
6860     else
6861       # If it succeeded, then it was overridden by the user. We will use it
6862       # for the tool.
6863 
6864       # First remove it from the list of overridden variables, so we can test
6865       # for unknown variables in the end.
6866       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6867 
6868       # Check if we try to supply an empty value
6869       if test "x$DATE" = x; then
6870         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DATE= (no value)" >&5
6871 $as_echo "$as_me: Setting user supplied tool DATE= (no value)" >&6;}
6872         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5
6873 $as_echo_n "checking for DATE... " >&6; }
6874         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6875 $as_echo "disabled" >&6; }
6876       else
6877         # Check if the provided tool contains a complete path.
6878         tool_specified="$DATE"
6879         tool_basename="${tool_specified##*/}"
6880         if test "x$tool_basename" = "x$tool_specified"; then
6881           # A command without a complete path is provided, search $PATH.
6882           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5
6883 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;}
6884           # Extract the first word of "$tool_basename", so it can be a program name with args.
6885 set dummy $tool_basename; ac_word=$2
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6887 $as_echo_n "checking for $ac_word... " >&6; }
6888 if ${ac_cv_path_DATE+:} false; then :
6889   $as_echo_n "(cached) " >&6
6890 else
6891   case $DATE in
6892   [\\/]* | ?:[\\/]*)
6893   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6894   ;;
6895   *)
6896   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6897 for as_dir in $PATH
6898 do
6899   IFS=$as_save_IFS
6900   test -z "$as_dir" && as_dir=.
6901     for ac_exec_ext in '' $ac_executable_extensions; do
6902   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6903     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6904     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6905     break 2
6906   fi
6907 done
6908   done
6909 IFS=$as_save_IFS
6910 
6911   ;;
6912 esac
6913 fi
6914 DATE=$ac_cv_path_DATE
6915 if test -n "$DATE"; then
6916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6917 $as_echo "$DATE" >&6; }
6918 else
6919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6920 $as_echo "no" >&6; }
6921 fi
6922 
6923 
6924           if test "x$DATE" = x; then
6925             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6926           fi
6927         else
6928           # Otherwise we believe it is a complete path. Use it as it is.
6929           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5
6930 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;}
6931           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5
6932 $as_echo_n "checking for DATE... " >&6; }
6933           if test ! -x "$tool_specified"; then
6934             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6935 $as_echo "not found" >&6; }
6936             as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5
6937           fi
6938           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6939 $as_echo "$tool_specified" >&6; }
6940         fi
6941       fi
6942     fi
6943 
6944   fi
6945 
6946 
6947 
6948   if test "x$DATE" = x; then
6949     as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5
6950   fi
6951 
6952 
6953 
6954 
6955 
6956   # Publish this variable in the help.
6957 
6958 
6959   if [ -z "${DIFF+x}" ]; then
6960     # The variable is not set by user, try to locate tool using the code snippet
6961     for ac_prog in gdiff diff
6962 do
6963   # Extract the first word of "$ac_prog", so it can be a program name with args.
6964 set dummy $ac_prog; ac_word=$2
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6966 $as_echo_n "checking for $ac_word... " >&6; }
6967 if ${ac_cv_path_DIFF+:} false; then :
6968   $as_echo_n "(cached) " >&6
6969 else
6970   case $DIFF in
6971   [\\/]* | ?:[\\/]*)
6972   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6973   ;;
6974   *)
6975   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6976 for as_dir in $PATH
6977 do
6978   IFS=$as_save_IFS
6979   test -z "$as_dir" && as_dir=.
6980     for ac_exec_ext in '' $ac_executable_extensions; do
6981   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6982     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6983     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6984     break 2
6985   fi
6986 done
6987   done
6988 IFS=$as_save_IFS
6989 
6990   ;;
6991 esac
6992 fi
6993 DIFF=$ac_cv_path_DIFF
6994 if test -n "$DIFF"; then
6995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6996 $as_echo "$DIFF" >&6; }
6997 else
6998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6999 $as_echo "no" >&6; }
7000 fi
7001 
7002 
7003   test -n "$DIFF" && break
7004 done
7005 
7006   else
7007     # The variable is set, but is it from the command line or the environment?
7008 
7009     # Try to remove the string !DIFF! from our list.
7010     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/}
7011     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7012       # If it failed, the variable was not from the command line. Ignore it,
7013       # but warn the user (except for BASH, which is always set by the calling BASH).
7014       if test "xDIFF" != xBASH; then
7015         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5
7016 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;}
7017       fi
7018       # Try to locate tool using the code snippet
7019       for ac_prog in gdiff diff
7020 do
7021   # Extract the first word of "$ac_prog", so it can be a program name with args.
7022 set dummy $ac_prog; ac_word=$2
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7024 $as_echo_n "checking for $ac_word... " >&6; }
7025 if ${ac_cv_path_DIFF+:} false; then :
7026   $as_echo_n "(cached) " >&6
7027 else
7028   case $DIFF in
7029   [\\/]* | ?:[\\/]*)
7030   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
7031   ;;
7032   *)
7033   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7034 for as_dir in $PATH
7035 do
7036   IFS=$as_save_IFS
7037   test -z "$as_dir" && as_dir=.
7038     for ac_exec_ext in '' $ac_executable_extensions; do
7039   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7040     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
7041     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7042     break 2
7043   fi
7044 done
7045   done
7046 IFS=$as_save_IFS
7047 
7048   ;;
7049 esac
7050 fi
7051 DIFF=$ac_cv_path_DIFF
7052 if test -n "$DIFF"; then
7053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
7054 $as_echo "$DIFF" >&6; }
7055 else
7056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7057 $as_echo "no" >&6; }
7058 fi
7059 
7060 
7061   test -n "$DIFF" && break
7062 done
7063 
7064     else
7065       # If it succeeded, then it was overridden by the user. We will use it
7066       # for the tool.
7067 
7068       # First remove it from the list of overridden variables, so we can test
7069       # for unknown variables in the end.
7070       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7071 
7072       # Check if we try to supply an empty value
7073       if test "x$DIFF" = x; then
7074         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DIFF= (no value)" >&5
7075 $as_echo "$as_me: Setting user supplied tool DIFF= (no value)" >&6;}
7076         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5
7077 $as_echo_n "checking for DIFF... " >&6; }
7078         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7079 $as_echo "disabled" >&6; }
7080       else
7081         # Check if the provided tool contains a complete path.
7082         tool_specified="$DIFF"
7083         tool_basename="${tool_specified##*/}"
7084         if test "x$tool_basename" = "x$tool_specified"; then
7085           # A command without a complete path is provided, search $PATH.
7086           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5
7087 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;}
7088           # Extract the first word of "$tool_basename", so it can be a program name with args.
7089 set dummy $tool_basename; ac_word=$2
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7091 $as_echo_n "checking for $ac_word... " >&6; }
7092 if ${ac_cv_path_DIFF+:} false; then :
7093   $as_echo_n "(cached) " >&6
7094 else
7095   case $DIFF in
7096   [\\/]* | ?:[\\/]*)
7097   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
7098   ;;
7099   *)
7100   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7101 for as_dir in $PATH
7102 do
7103   IFS=$as_save_IFS
7104   test -z "$as_dir" && as_dir=.
7105     for ac_exec_ext in '' $ac_executable_extensions; do
7106   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7107     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
7108     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7109     break 2
7110   fi
7111 done
7112   done
7113 IFS=$as_save_IFS
7114 
7115   ;;
7116 esac
7117 fi
7118 DIFF=$ac_cv_path_DIFF
7119 if test -n "$DIFF"; then
7120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
7121 $as_echo "$DIFF" >&6; }
7122 else
7123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7124 $as_echo "no" >&6; }
7125 fi
7126 
7127 
7128           if test "x$DIFF" = x; then
7129             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7130           fi
7131         else
7132           # Otherwise we believe it is a complete path. Use it as it is.
7133           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5
7134 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;}
7135           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5
7136 $as_echo_n "checking for DIFF... " >&6; }
7137           if test ! -x "$tool_specified"; then
7138             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7139 $as_echo "not found" >&6; }
7140             as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5
7141           fi
7142           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7143 $as_echo "$tool_specified" >&6; }
7144         fi
7145       fi
7146     fi
7147 
7148   fi
7149 
7150 
7151 
7152   if test "x$DIFF" = x; then
7153     as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5
7154   fi
7155 
7156 
7157 
7158 
7159 
7160   # Publish this variable in the help.
7161 
7162 
7163   if [ -z "${DIRNAME+x}" ]; then
7164     # The variable is not set by user, try to locate tool using the code snippet
7165     for ac_prog in dirname
7166 do
7167   # Extract the first word of "$ac_prog", so it can be a program name with args.
7168 set dummy $ac_prog; ac_word=$2
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7170 $as_echo_n "checking for $ac_word... " >&6; }
7171 if ${ac_cv_path_DIRNAME+:} false; then :
7172   $as_echo_n "(cached) " >&6
7173 else
7174   case $DIRNAME in
7175   [\\/]* | ?:[\\/]*)
7176   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
7177   ;;
7178   *)
7179   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7180 for as_dir in $PATH
7181 do
7182   IFS=$as_save_IFS
7183   test -z "$as_dir" && as_dir=.
7184     for ac_exec_ext in '' $ac_executable_extensions; do
7185   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7186     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
7187     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7188     break 2
7189   fi
7190 done
7191   done
7192 IFS=$as_save_IFS
7193 
7194   ;;
7195 esac
7196 fi
7197 DIRNAME=$ac_cv_path_DIRNAME
7198 if test -n "$DIRNAME"; then
7199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
7200 $as_echo "$DIRNAME" >&6; }
7201 else
7202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7203 $as_echo "no" >&6; }
7204 fi
7205 
7206 
7207   test -n "$DIRNAME" && break
7208 done
7209 
7210   else
7211     # The variable is set, but is it from the command line or the environment?
7212 
7213     # Try to remove the string !DIRNAME! from our list.
7214     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/}
7215     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7216       # If it failed, the variable was not from the command line. Ignore it,
7217       # but warn the user (except for BASH, which is always set by the calling BASH).
7218       if test "xDIRNAME" != xBASH; then
7219         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5
7220 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;}
7221       fi
7222       # Try to locate tool using the code snippet
7223       for ac_prog in dirname
7224 do
7225   # Extract the first word of "$ac_prog", so it can be a program name with args.
7226 set dummy $ac_prog; ac_word=$2
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7228 $as_echo_n "checking for $ac_word... " >&6; }
7229 if ${ac_cv_path_DIRNAME+:} false; then :
7230   $as_echo_n "(cached) " >&6
7231 else
7232   case $DIRNAME in
7233   [\\/]* | ?:[\\/]*)
7234   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
7235   ;;
7236   *)
7237   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7238 for as_dir in $PATH
7239 do
7240   IFS=$as_save_IFS
7241   test -z "$as_dir" && as_dir=.
7242     for ac_exec_ext in '' $ac_executable_extensions; do
7243   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7244     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
7245     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7246     break 2
7247   fi
7248 done
7249   done
7250 IFS=$as_save_IFS
7251 
7252   ;;
7253 esac
7254 fi
7255 DIRNAME=$ac_cv_path_DIRNAME
7256 if test -n "$DIRNAME"; then
7257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
7258 $as_echo "$DIRNAME" >&6; }
7259 else
7260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7261 $as_echo "no" >&6; }
7262 fi
7263 
7264 
7265   test -n "$DIRNAME" && break
7266 done
7267 
7268     else
7269       # If it succeeded, then it was overridden by the user. We will use it
7270       # for the tool.
7271 
7272       # First remove it from the list of overridden variables, so we can test
7273       # for unknown variables in the end.
7274       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7275 
7276       # Check if we try to supply an empty value
7277       if test "x$DIRNAME" = x; then
7278         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DIRNAME= (no value)" >&5
7279 $as_echo "$as_me: Setting user supplied tool DIRNAME= (no value)" >&6;}
7280         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5
7281 $as_echo_n "checking for DIRNAME... " >&6; }
7282         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7283 $as_echo "disabled" >&6; }
7284       else
7285         # Check if the provided tool contains a complete path.
7286         tool_specified="$DIRNAME"
7287         tool_basename="${tool_specified##*/}"
7288         if test "x$tool_basename" = "x$tool_specified"; then
7289           # A command without a complete path is provided, search $PATH.
7290           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5
7291 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;}
7292           # Extract the first word of "$tool_basename", so it can be a program name with args.
7293 set dummy $tool_basename; ac_word=$2
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7295 $as_echo_n "checking for $ac_word... " >&6; }
7296 if ${ac_cv_path_DIRNAME+:} false; then :
7297   $as_echo_n "(cached) " >&6
7298 else
7299   case $DIRNAME in
7300   [\\/]* | ?:[\\/]*)
7301   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
7302   ;;
7303   *)
7304   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7305 for as_dir in $PATH
7306 do
7307   IFS=$as_save_IFS
7308   test -z "$as_dir" && as_dir=.
7309     for ac_exec_ext in '' $ac_executable_extensions; do
7310   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7311     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
7312     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7313     break 2
7314   fi
7315 done
7316   done
7317 IFS=$as_save_IFS
7318 
7319   ;;
7320 esac
7321 fi
7322 DIRNAME=$ac_cv_path_DIRNAME
7323 if test -n "$DIRNAME"; then
7324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
7325 $as_echo "$DIRNAME" >&6; }
7326 else
7327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7328 $as_echo "no" >&6; }
7329 fi
7330 
7331 
7332           if test "x$DIRNAME" = x; then
7333             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7334           fi
7335         else
7336           # Otherwise we believe it is a complete path. Use it as it is.
7337           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5
7338 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;}
7339           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5
7340 $as_echo_n "checking for DIRNAME... " >&6; }
7341           if test ! -x "$tool_specified"; then
7342             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7343 $as_echo "not found" >&6; }
7344             as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
7345           fi
7346           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7347 $as_echo "$tool_specified" >&6; }
7348         fi
7349       fi
7350     fi
7351 
7352   fi
7353 
7354 
7355 
7356   if test "x$DIRNAME" = x; then
7357     as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5
7358   fi
7359 
7360 
7361 
7362 
7363 
7364   # Publish this variable in the help.
7365 
7366 
7367   if [ -z "${ECHO+x}" ]; then
7368     # The variable is not set by user, try to locate tool using the code snippet
7369     for ac_prog in echo
7370 do
7371   # Extract the first word of "$ac_prog", so it can be a program name with args.
7372 set dummy $ac_prog; ac_word=$2
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7374 $as_echo_n "checking for $ac_word... " >&6; }
7375 if ${ac_cv_path_ECHO+:} false; then :
7376   $as_echo_n "(cached) " >&6
7377 else
7378   case $ECHO in
7379   [\\/]* | ?:[\\/]*)
7380   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
7381   ;;
7382   *)
7383   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7384 for as_dir in $PATH
7385 do
7386   IFS=$as_save_IFS
7387   test -z "$as_dir" && as_dir=.
7388     for ac_exec_ext in '' $ac_executable_extensions; do
7389   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7390     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
7391     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7392     break 2
7393   fi
7394 done
7395   done
7396 IFS=$as_save_IFS
7397 
7398   ;;
7399 esac
7400 fi
7401 ECHO=$ac_cv_path_ECHO
7402 if test -n "$ECHO"; then
7403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
7404 $as_echo "$ECHO" >&6; }
7405 else
7406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7407 $as_echo "no" >&6; }
7408 fi
7409 
7410 
7411   test -n "$ECHO" && break
7412 done
7413 
7414   else
7415     # The variable is set, but is it from the command line or the environment?
7416 
7417     # Try to remove the string !ECHO! from our list.
7418     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/}
7419     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7420       # If it failed, the variable was not from the command line. Ignore it,
7421       # but warn the user (except for BASH, which is always set by the calling BASH).
7422       if test "xECHO" != xBASH; then
7423         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5
7424 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;}
7425       fi
7426       # Try to locate tool using the code snippet
7427       for ac_prog in echo
7428 do
7429   # Extract the first word of "$ac_prog", so it can be a program name with args.
7430 set dummy $ac_prog; ac_word=$2
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7432 $as_echo_n "checking for $ac_word... " >&6; }
7433 if ${ac_cv_path_ECHO+:} false; then :
7434   $as_echo_n "(cached) " >&6
7435 else
7436   case $ECHO in
7437   [\\/]* | ?:[\\/]*)
7438   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
7439   ;;
7440   *)
7441   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7442 for as_dir in $PATH
7443 do
7444   IFS=$as_save_IFS
7445   test -z "$as_dir" && as_dir=.
7446     for ac_exec_ext in '' $ac_executable_extensions; do
7447   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7448     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
7449     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7450     break 2
7451   fi
7452 done
7453   done
7454 IFS=$as_save_IFS
7455 
7456   ;;
7457 esac
7458 fi
7459 ECHO=$ac_cv_path_ECHO
7460 if test -n "$ECHO"; then
7461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
7462 $as_echo "$ECHO" >&6; }
7463 else
7464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7465 $as_echo "no" >&6; }
7466 fi
7467 
7468 
7469   test -n "$ECHO" && break
7470 done
7471 
7472     else
7473       # If it succeeded, then it was overridden by the user. We will use it
7474       # for the tool.
7475 
7476       # First remove it from the list of overridden variables, so we can test
7477       # for unknown variables in the end.
7478       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7479 
7480       # Check if we try to supply an empty value
7481       if test "x$ECHO" = x; then
7482         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ECHO= (no value)" >&5
7483 $as_echo "$as_me: Setting user supplied tool ECHO= (no value)" >&6;}
7484         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5
7485 $as_echo_n "checking for ECHO... " >&6; }
7486         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7487 $as_echo "disabled" >&6; }
7488       else
7489         # Check if the provided tool contains a complete path.
7490         tool_specified="$ECHO"
7491         tool_basename="${tool_specified##*/}"
7492         if test "x$tool_basename" = "x$tool_specified"; then
7493           # A command without a complete path is provided, search $PATH.
7494           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5
7495 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;}
7496           # Extract the first word of "$tool_basename", so it can be a program name with args.
7497 set dummy $tool_basename; ac_word=$2
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7499 $as_echo_n "checking for $ac_word... " >&6; }
7500 if ${ac_cv_path_ECHO+:} false; then :
7501   $as_echo_n "(cached) " >&6
7502 else
7503   case $ECHO in
7504   [\\/]* | ?:[\\/]*)
7505   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
7506   ;;
7507   *)
7508   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7509 for as_dir in $PATH
7510 do
7511   IFS=$as_save_IFS
7512   test -z "$as_dir" && as_dir=.
7513     for ac_exec_ext in '' $ac_executable_extensions; do
7514   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7515     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
7516     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7517     break 2
7518   fi
7519 done
7520   done
7521 IFS=$as_save_IFS
7522 
7523   ;;
7524 esac
7525 fi
7526 ECHO=$ac_cv_path_ECHO
7527 if test -n "$ECHO"; then
7528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
7529 $as_echo "$ECHO" >&6; }
7530 else
7531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7532 $as_echo "no" >&6; }
7533 fi
7534 
7535 
7536           if test "x$ECHO" = x; then
7537             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7538           fi
7539         else
7540           # Otherwise we believe it is a complete path. Use it as it is.
7541           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5
7542 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;}
7543           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5
7544 $as_echo_n "checking for ECHO... " >&6; }
7545           if test ! -x "$tool_specified"; then
7546             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7547 $as_echo "not found" >&6; }
7548             as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5
7549           fi
7550           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7551 $as_echo "$tool_specified" >&6; }
7552         fi
7553       fi
7554     fi
7555 
7556   fi
7557 
7558 
7559 
7560   if test "x$ECHO" = x; then
7561     as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5
7562   fi
7563 
7564 
7565 
7566 
7567 
7568   # Publish this variable in the help.
7569 
7570 
7571   if [ -z "${EXPR+x}" ]; then
7572     # The variable is not set by user, try to locate tool using the code snippet
7573     for ac_prog in expr
7574 do
7575   # Extract the first word of "$ac_prog", so it can be a program name with args.
7576 set dummy $ac_prog; ac_word=$2
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7578 $as_echo_n "checking for $ac_word... " >&6; }
7579 if ${ac_cv_path_EXPR+:} false; then :
7580   $as_echo_n "(cached) " >&6
7581 else
7582   case $EXPR in
7583   [\\/]* | ?:[\\/]*)
7584   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
7585   ;;
7586   *)
7587   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7588 for as_dir in $PATH
7589 do
7590   IFS=$as_save_IFS
7591   test -z "$as_dir" && as_dir=.
7592     for ac_exec_ext in '' $ac_executable_extensions; do
7593   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7594     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
7595     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7596     break 2
7597   fi
7598 done
7599   done
7600 IFS=$as_save_IFS
7601 
7602   ;;
7603 esac
7604 fi
7605 EXPR=$ac_cv_path_EXPR
7606 if test -n "$EXPR"; then
7607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
7608 $as_echo "$EXPR" >&6; }
7609 else
7610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7611 $as_echo "no" >&6; }
7612 fi
7613 
7614 
7615   test -n "$EXPR" && break
7616 done
7617 
7618   else
7619     # The variable is set, but is it from the command line or the environment?
7620 
7621     # Try to remove the string !EXPR! from our list.
7622     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/}
7623     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7624       # If it failed, the variable was not from the command line. Ignore it,
7625       # but warn the user (except for BASH, which is always set by the calling BASH).
7626       if test "xEXPR" != xBASH; then
7627         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5
7628 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;}
7629       fi
7630       # Try to locate tool using the code snippet
7631       for ac_prog in expr
7632 do
7633   # Extract the first word of "$ac_prog", so it can be a program name with args.
7634 set dummy $ac_prog; ac_word=$2
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7636 $as_echo_n "checking for $ac_word... " >&6; }
7637 if ${ac_cv_path_EXPR+:} false; then :
7638   $as_echo_n "(cached) " >&6
7639 else
7640   case $EXPR in
7641   [\\/]* | ?:[\\/]*)
7642   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
7643   ;;
7644   *)
7645   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7646 for as_dir in $PATH
7647 do
7648   IFS=$as_save_IFS
7649   test -z "$as_dir" && as_dir=.
7650     for ac_exec_ext in '' $ac_executable_extensions; do
7651   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7652     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
7653     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7654     break 2
7655   fi
7656 done
7657   done
7658 IFS=$as_save_IFS
7659 
7660   ;;
7661 esac
7662 fi
7663 EXPR=$ac_cv_path_EXPR
7664 if test -n "$EXPR"; then
7665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
7666 $as_echo "$EXPR" >&6; }
7667 else
7668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7669 $as_echo "no" >&6; }
7670 fi
7671 
7672 
7673   test -n "$EXPR" && break
7674 done
7675 
7676     else
7677       # If it succeeded, then it was overridden by the user. We will use it
7678       # for the tool.
7679 
7680       # First remove it from the list of overridden variables, so we can test
7681       # for unknown variables in the end.
7682       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7683 
7684       # Check if we try to supply an empty value
7685       if test "x$EXPR" = x; then
7686         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool EXPR= (no value)" >&5
7687 $as_echo "$as_me: Setting user supplied tool EXPR= (no value)" >&6;}
7688         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5
7689 $as_echo_n "checking for EXPR... " >&6; }
7690         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7691 $as_echo "disabled" >&6; }
7692       else
7693         # Check if the provided tool contains a complete path.
7694         tool_specified="$EXPR"
7695         tool_basename="${tool_specified##*/}"
7696         if test "x$tool_basename" = "x$tool_specified"; then
7697           # A command without a complete path is provided, search $PATH.
7698           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5
7699 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;}
7700           # Extract the first word of "$tool_basename", so it can be a program name with args.
7701 set dummy $tool_basename; ac_word=$2
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7703 $as_echo_n "checking for $ac_word... " >&6; }
7704 if ${ac_cv_path_EXPR+:} false; then :
7705   $as_echo_n "(cached) " >&6
7706 else
7707   case $EXPR in
7708   [\\/]* | ?:[\\/]*)
7709   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
7710   ;;
7711   *)
7712   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7713 for as_dir in $PATH
7714 do
7715   IFS=$as_save_IFS
7716   test -z "$as_dir" && as_dir=.
7717     for ac_exec_ext in '' $ac_executable_extensions; do
7718   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7719     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
7720     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7721     break 2
7722   fi
7723 done
7724   done
7725 IFS=$as_save_IFS
7726 
7727   ;;
7728 esac
7729 fi
7730 EXPR=$ac_cv_path_EXPR
7731 if test -n "$EXPR"; then
7732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
7733 $as_echo "$EXPR" >&6; }
7734 else
7735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7736 $as_echo "no" >&6; }
7737 fi
7738 
7739 
7740           if test "x$EXPR" = x; then
7741             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7742           fi
7743         else
7744           # Otherwise we believe it is a complete path. Use it as it is.
7745           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5
7746 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;}
7747           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5
7748 $as_echo_n "checking for EXPR... " >&6; }
7749           if test ! -x "$tool_specified"; then
7750             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7751 $as_echo "not found" >&6; }
7752             as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5
7753           fi
7754           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7755 $as_echo "$tool_specified" >&6; }
7756         fi
7757       fi
7758     fi
7759 
7760   fi
7761 
7762 
7763 
7764   if test "x$EXPR" = x; then
7765     as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5
7766   fi
7767 
7768 
7769 
7770 
7771 
7772   # Publish this variable in the help.
7773 
7774 
7775   if [ -z "${FILE+x}" ]; then
7776     # The variable is not set by user, try to locate tool using the code snippet
7777     for ac_prog in file
7778 do
7779   # Extract the first word of "$ac_prog", so it can be a program name with args.
7780 set dummy $ac_prog; ac_word=$2
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7782 $as_echo_n "checking for $ac_word... " >&6; }
7783 if ${ac_cv_path_FILE+:} false; then :
7784   $as_echo_n "(cached) " >&6
7785 else
7786   case $FILE in
7787   [\\/]* | ?:[\\/]*)
7788   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7789   ;;
7790   *)
7791   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7792 for as_dir in $PATH
7793 do
7794   IFS=$as_save_IFS
7795   test -z "$as_dir" && as_dir=.
7796     for ac_exec_ext in '' $ac_executable_extensions; do
7797   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7798     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7799     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7800     break 2
7801   fi
7802 done
7803   done
7804 IFS=$as_save_IFS
7805 
7806   ;;
7807 esac
7808 fi
7809 FILE=$ac_cv_path_FILE
7810 if test -n "$FILE"; then
7811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7812 $as_echo "$FILE" >&6; }
7813 else
7814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7815 $as_echo "no" >&6; }
7816 fi
7817 
7818 
7819   test -n "$FILE" && break
7820 done
7821 
7822   else
7823     # The variable is set, but is it from the command line or the environment?
7824 
7825     # Try to remove the string !FILE! from our list.
7826     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/}
7827     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7828       # If it failed, the variable was not from the command line. Ignore it,
7829       # but warn the user (except for BASH, which is always set by the calling BASH).
7830       if test "xFILE" != xBASH; then
7831         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5
7832 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;}
7833       fi
7834       # Try to locate tool using the code snippet
7835       for ac_prog in file
7836 do
7837   # Extract the first word of "$ac_prog", so it can be a program name with args.
7838 set dummy $ac_prog; ac_word=$2
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7840 $as_echo_n "checking for $ac_word... " >&6; }
7841 if ${ac_cv_path_FILE+:} false; then :
7842   $as_echo_n "(cached) " >&6
7843 else
7844   case $FILE in
7845   [\\/]* | ?:[\\/]*)
7846   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7847   ;;
7848   *)
7849   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7850 for as_dir in $PATH
7851 do
7852   IFS=$as_save_IFS
7853   test -z "$as_dir" && as_dir=.
7854     for ac_exec_ext in '' $ac_executable_extensions; do
7855   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7856     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7857     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7858     break 2
7859   fi
7860 done
7861   done
7862 IFS=$as_save_IFS
7863 
7864   ;;
7865 esac
7866 fi
7867 FILE=$ac_cv_path_FILE
7868 if test -n "$FILE"; then
7869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7870 $as_echo "$FILE" >&6; }
7871 else
7872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7873 $as_echo "no" >&6; }
7874 fi
7875 
7876 
7877   test -n "$FILE" && break
7878 done
7879 
7880     else
7881       # If it succeeded, then it was overridden by the user. We will use it
7882       # for the tool.
7883 
7884       # First remove it from the list of overridden variables, so we can test
7885       # for unknown variables in the end.
7886       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7887 
7888       # Check if we try to supply an empty value
7889       if test "x$FILE" = x; then
7890         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FILE= (no value)" >&5
7891 $as_echo "$as_me: Setting user supplied tool FILE= (no value)" >&6;}
7892         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5
7893 $as_echo_n "checking for FILE... " >&6; }
7894         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7895 $as_echo "disabled" >&6; }
7896       else
7897         # Check if the provided tool contains a complete path.
7898         tool_specified="$FILE"
7899         tool_basename="${tool_specified##*/}"
7900         if test "x$tool_basename" = "x$tool_specified"; then
7901           # A command without a complete path is provided, search $PATH.
7902           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5
7903 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;}
7904           # Extract the first word of "$tool_basename", so it can be a program name with args.
7905 set dummy $tool_basename; ac_word=$2
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7907 $as_echo_n "checking for $ac_word... " >&6; }
7908 if ${ac_cv_path_FILE+:} false; then :
7909   $as_echo_n "(cached) " >&6
7910 else
7911   case $FILE in
7912   [\\/]* | ?:[\\/]*)
7913   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7914   ;;
7915   *)
7916   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7917 for as_dir in $PATH
7918 do
7919   IFS=$as_save_IFS
7920   test -z "$as_dir" && as_dir=.
7921     for ac_exec_ext in '' $ac_executable_extensions; do
7922   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7923     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7924     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7925     break 2
7926   fi
7927 done
7928   done
7929 IFS=$as_save_IFS
7930 
7931   ;;
7932 esac
7933 fi
7934 FILE=$ac_cv_path_FILE
7935 if test -n "$FILE"; then
7936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7937 $as_echo "$FILE" >&6; }
7938 else
7939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7940 $as_echo "no" >&6; }
7941 fi
7942 
7943 
7944           if test "x$FILE" = x; then
7945             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7946           fi
7947         else
7948           # Otherwise we believe it is a complete path. Use it as it is.
7949           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5
7950 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;}
7951           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5
7952 $as_echo_n "checking for FILE... " >&6; }
7953           if test ! -x "$tool_specified"; then
7954             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7955 $as_echo "not found" >&6; }
7956             as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5
7957           fi
7958           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7959 $as_echo "$tool_specified" >&6; }
7960         fi
7961       fi
7962     fi
7963 
7964   fi
7965 
7966 
7967 
7968   if test "x$FILE" = x; then
7969     as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5
7970   fi
7971 
7972 
7973 
7974 
7975 
7976   # Publish this variable in the help.
7977 
7978 
7979   if [ -z "${FIND+x}" ]; then
7980     # The variable is not set by user, try to locate tool using the code snippet
7981     for ac_prog in find
7982 do
7983   # Extract the first word of "$ac_prog", so it can be a program name with args.
7984 set dummy $ac_prog; ac_word=$2
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7986 $as_echo_n "checking for $ac_word... " >&6; }
7987 if ${ac_cv_path_FIND+:} false; then :
7988   $as_echo_n "(cached) " >&6
7989 else
7990   case $FIND in
7991   [\\/]* | ?:[\\/]*)
7992   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7993   ;;
7994   *)
7995   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7996 for as_dir in $PATH
7997 do
7998   IFS=$as_save_IFS
7999   test -z "$as_dir" && as_dir=.
8000     for ac_exec_ext in '' $ac_executable_extensions; do
8001   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8002     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
8003     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8004     break 2
8005   fi
8006 done
8007   done
8008 IFS=$as_save_IFS
8009 
8010   ;;
8011 esac
8012 fi
8013 FIND=$ac_cv_path_FIND
8014 if test -n "$FIND"; then
8015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
8016 $as_echo "$FIND" >&6; }
8017 else
8018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8019 $as_echo "no" >&6; }
8020 fi
8021 
8022 
8023   test -n "$FIND" && break
8024 done
8025 
8026   else
8027     # The variable is set, but is it from the command line or the environment?
8028 
8029     # Try to remove the string !FIND! from our list.
8030     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/}
8031     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8032       # If it failed, the variable was not from the command line. Ignore it,
8033       # but warn the user (except for BASH, which is always set by the calling BASH).
8034       if test "xFIND" != xBASH; then
8035         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5
8036 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;}
8037       fi
8038       # Try to locate tool using the code snippet
8039       for ac_prog in find
8040 do
8041   # Extract the first word of "$ac_prog", so it can be a program name with args.
8042 set dummy $ac_prog; ac_word=$2
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8044 $as_echo_n "checking for $ac_word... " >&6; }
8045 if ${ac_cv_path_FIND+:} false; then :
8046   $as_echo_n "(cached) " >&6
8047 else
8048   case $FIND in
8049   [\\/]* | ?:[\\/]*)
8050   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
8051   ;;
8052   *)
8053   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8054 for as_dir in $PATH
8055 do
8056   IFS=$as_save_IFS
8057   test -z "$as_dir" && as_dir=.
8058     for ac_exec_ext in '' $ac_executable_extensions; do
8059   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8060     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
8061     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8062     break 2
8063   fi
8064 done
8065   done
8066 IFS=$as_save_IFS
8067 
8068   ;;
8069 esac
8070 fi
8071 FIND=$ac_cv_path_FIND
8072 if test -n "$FIND"; then
8073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
8074 $as_echo "$FIND" >&6; }
8075 else
8076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8077 $as_echo "no" >&6; }
8078 fi
8079 
8080 
8081   test -n "$FIND" && break
8082 done
8083 
8084     else
8085       # If it succeeded, then it was overridden by the user. We will use it
8086       # for the tool.
8087 
8088       # First remove it from the list of overridden variables, so we can test
8089       # for unknown variables in the end.
8090       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8091 
8092       # Check if we try to supply an empty value
8093       if test "x$FIND" = x; then
8094         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FIND= (no value)" >&5
8095 $as_echo "$as_me: Setting user supplied tool FIND= (no value)" >&6;}
8096         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5
8097 $as_echo_n "checking for FIND... " >&6; }
8098         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8099 $as_echo "disabled" >&6; }
8100       else
8101         # Check if the provided tool contains a complete path.
8102         tool_specified="$FIND"
8103         tool_basename="${tool_specified##*/}"
8104         if test "x$tool_basename" = "x$tool_specified"; then
8105           # A command without a complete path is provided, search $PATH.
8106           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5
8107 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;}
8108           # Extract the first word of "$tool_basename", so it can be a program name with args.
8109 set dummy $tool_basename; ac_word=$2
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8111 $as_echo_n "checking for $ac_word... " >&6; }
8112 if ${ac_cv_path_FIND+:} false; then :
8113   $as_echo_n "(cached) " >&6
8114 else
8115   case $FIND in
8116   [\\/]* | ?:[\\/]*)
8117   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
8118   ;;
8119   *)
8120   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8121 for as_dir in $PATH
8122 do
8123   IFS=$as_save_IFS
8124   test -z "$as_dir" && as_dir=.
8125     for ac_exec_ext in '' $ac_executable_extensions; do
8126   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8127     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
8128     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8129     break 2
8130   fi
8131 done
8132   done
8133 IFS=$as_save_IFS
8134 
8135   ;;
8136 esac
8137 fi
8138 FIND=$ac_cv_path_FIND
8139 if test -n "$FIND"; then
8140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
8141 $as_echo "$FIND" >&6; }
8142 else
8143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8144 $as_echo "no" >&6; }
8145 fi
8146 
8147 
8148           if test "x$FIND" = x; then
8149             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8150           fi
8151         else
8152           # Otherwise we believe it is a complete path. Use it as it is.
8153           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5
8154 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;}
8155           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5
8156 $as_echo_n "checking for FIND... " >&6; }
8157           if test ! -x "$tool_specified"; then
8158             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8159 $as_echo "not found" >&6; }
8160             as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5
8161           fi
8162           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8163 $as_echo "$tool_specified" >&6; }
8164         fi
8165       fi
8166     fi
8167 
8168   fi
8169 
8170 
8171 
8172   if test "x$FIND" = x; then
8173     as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5
8174   fi
8175 
8176 
8177 
8178 
8179 
8180   # Publish this variable in the help.
8181 
8182 
8183   if [ -z "${HEAD+x}" ]; then
8184     # The variable is not set by user, try to locate tool using the code snippet
8185     for ac_prog in head
8186 do
8187   # Extract the first word of "$ac_prog", so it can be a program name with args.
8188 set dummy $ac_prog; ac_word=$2
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8190 $as_echo_n "checking for $ac_word... " >&6; }
8191 if ${ac_cv_path_HEAD+:} false; then :
8192   $as_echo_n "(cached) " >&6
8193 else
8194   case $HEAD in
8195   [\\/]* | ?:[\\/]*)
8196   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
8197   ;;
8198   *)
8199   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8200 for as_dir in $PATH
8201 do
8202   IFS=$as_save_IFS
8203   test -z "$as_dir" && as_dir=.
8204     for ac_exec_ext in '' $ac_executable_extensions; do
8205   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8206     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
8207     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8208     break 2
8209   fi
8210 done
8211   done
8212 IFS=$as_save_IFS
8213 
8214   ;;
8215 esac
8216 fi
8217 HEAD=$ac_cv_path_HEAD
8218 if test -n "$HEAD"; then
8219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
8220 $as_echo "$HEAD" >&6; }
8221 else
8222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8223 $as_echo "no" >&6; }
8224 fi
8225 
8226 
8227   test -n "$HEAD" && break
8228 done
8229 
8230   else
8231     # The variable is set, but is it from the command line or the environment?
8232 
8233     # Try to remove the string !HEAD! from our list.
8234     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/}
8235     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8236       # If it failed, the variable was not from the command line. Ignore it,
8237       # but warn the user (except for BASH, which is always set by the calling BASH).
8238       if test "xHEAD" != xBASH; then
8239         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5
8240 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;}
8241       fi
8242       # Try to locate tool using the code snippet
8243       for ac_prog in head
8244 do
8245   # Extract the first word of "$ac_prog", so it can be a program name with args.
8246 set dummy $ac_prog; ac_word=$2
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8248 $as_echo_n "checking for $ac_word... " >&6; }
8249 if ${ac_cv_path_HEAD+:} false; then :
8250   $as_echo_n "(cached) " >&6
8251 else
8252   case $HEAD in
8253   [\\/]* | ?:[\\/]*)
8254   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
8255   ;;
8256   *)
8257   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8258 for as_dir in $PATH
8259 do
8260   IFS=$as_save_IFS
8261   test -z "$as_dir" && as_dir=.
8262     for ac_exec_ext in '' $ac_executable_extensions; do
8263   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8264     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
8265     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8266     break 2
8267   fi
8268 done
8269   done
8270 IFS=$as_save_IFS
8271 
8272   ;;
8273 esac
8274 fi
8275 HEAD=$ac_cv_path_HEAD
8276 if test -n "$HEAD"; then
8277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
8278 $as_echo "$HEAD" >&6; }
8279 else
8280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8281 $as_echo "no" >&6; }
8282 fi
8283 
8284 
8285   test -n "$HEAD" && break
8286 done
8287 
8288     else
8289       # If it succeeded, then it was overridden by the user. We will use it
8290       # for the tool.
8291 
8292       # First remove it from the list of overridden variables, so we can test
8293       # for unknown variables in the end.
8294       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8295 
8296       # Check if we try to supply an empty value
8297       if test "x$HEAD" = x; then
8298         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool HEAD= (no value)" >&5
8299 $as_echo "$as_me: Setting user supplied tool HEAD= (no value)" >&6;}
8300         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5
8301 $as_echo_n "checking for HEAD... " >&6; }
8302         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8303 $as_echo "disabled" >&6; }
8304       else
8305         # Check if the provided tool contains a complete path.
8306         tool_specified="$HEAD"
8307         tool_basename="${tool_specified##*/}"
8308         if test "x$tool_basename" = "x$tool_specified"; then
8309           # A command without a complete path is provided, search $PATH.
8310           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5
8311 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;}
8312           # Extract the first word of "$tool_basename", so it can be a program name with args.
8313 set dummy $tool_basename; ac_word=$2
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8315 $as_echo_n "checking for $ac_word... " >&6; }
8316 if ${ac_cv_path_HEAD+:} false; then :
8317   $as_echo_n "(cached) " >&6
8318 else
8319   case $HEAD in
8320   [\\/]* | ?:[\\/]*)
8321   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
8322   ;;
8323   *)
8324   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8325 for as_dir in $PATH
8326 do
8327   IFS=$as_save_IFS
8328   test -z "$as_dir" && as_dir=.
8329     for ac_exec_ext in '' $ac_executable_extensions; do
8330   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8331     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
8332     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8333     break 2
8334   fi
8335 done
8336   done
8337 IFS=$as_save_IFS
8338 
8339   ;;
8340 esac
8341 fi
8342 HEAD=$ac_cv_path_HEAD
8343 if test -n "$HEAD"; then
8344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
8345 $as_echo "$HEAD" >&6; }
8346 else
8347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8348 $as_echo "no" >&6; }
8349 fi
8350 
8351 
8352           if test "x$HEAD" = x; then
8353             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8354           fi
8355         else
8356           # Otherwise we believe it is a complete path. Use it as it is.
8357           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5
8358 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;}
8359           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5
8360 $as_echo_n "checking for HEAD... " >&6; }
8361           if test ! -x "$tool_specified"; then
8362             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8363 $as_echo "not found" >&6; }
8364             as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5
8365           fi
8366           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8367 $as_echo "$tool_specified" >&6; }
8368         fi
8369       fi
8370     fi
8371 
8372   fi
8373 
8374 
8375 
8376   if test "x$HEAD" = x; then
8377     as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5
8378   fi
8379 
8380 
8381 
8382 
8383 
8384   # Publish this variable in the help.
8385 
8386 
8387   if [ -z "${LN+x}" ]; then
8388     # The variable is not set by user, try to locate tool using the code snippet
8389     for ac_prog in ln
8390 do
8391   # Extract the first word of "$ac_prog", so it can be a program name with args.
8392 set dummy $ac_prog; ac_word=$2
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8394 $as_echo_n "checking for $ac_word... " >&6; }
8395 if ${ac_cv_path_LN+:} false; then :
8396   $as_echo_n "(cached) " >&6
8397 else
8398   case $LN in
8399   [\\/]* | ?:[\\/]*)
8400   ac_cv_path_LN="$LN" # Let the user override the test with a path.
8401   ;;
8402   *)
8403   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8404 for as_dir in $PATH
8405 do
8406   IFS=$as_save_IFS
8407   test -z "$as_dir" && as_dir=.
8408     for ac_exec_ext in '' $ac_executable_extensions; do
8409   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8410     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
8411     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8412     break 2
8413   fi
8414 done
8415   done
8416 IFS=$as_save_IFS
8417 
8418   ;;
8419 esac
8420 fi
8421 LN=$ac_cv_path_LN
8422 if test -n "$LN"; then
8423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
8424 $as_echo "$LN" >&6; }
8425 else
8426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8427 $as_echo "no" >&6; }
8428 fi
8429 
8430 
8431   test -n "$LN" && break
8432 done
8433 
8434   else
8435     # The variable is set, but is it from the command line or the environment?
8436 
8437     # Try to remove the string !LN! from our list.
8438     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/}
8439     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8440       # If it failed, the variable was not from the command line. Ignore it,
8441       # but warn the user (except for BASH, which is always set by the calling BASH).
8442       if test "xLN" != xBASH; then
8443         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5
8444 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;}
8445       fi
8446       # Try to locate tool using the code snippet
8447       for ac_prog in ln
8448 do
8449   # Extract the first word of "$ac_prog", so it can be a program name with args.
8450 set dummy $ac_prog; ac_word=$2
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8452 $as_echo_n "checking for $ac_word... " >&6; }
8453 if ${ac_cv_path_LN+:} false; then :
8454   $as_echo_n "(cached) " >&6
8455 else
8456   case $LN in
8457   [\\/]* | ?:[\\/]*)
8458   ac_cv_path_LN="$LN" # Let the user override the test with a path.
8459   ;;
8460   *)
8461   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8462 for as_dir in $PATH
8463 do
8464   IFS=$as_save_IFS
8465   test -z "$as_dir" && as_dir=.
8466     for ac_exec_ext in '' $ac_executable_extensions; do
8467   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8468     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
8469     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8470     break 2
8471   fi
8472 done
8473   done
8474 IFS=$as_save_IFS
8475 
8476   ;;
8477 esac
8478 fi
8479 LN=$ac_cv_path_LN
8480 if test -n "$LN"; then
8481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
8482 $as_echo "$LN" >&6; }
8483 else
8484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8485 $as_echo "no" >&6; }
8486 fi
8487 
8488 
8489   test -n "$LN" && break
8490 done
8491 
8492     else
8493       # If it succeeded, then it was overridden by the user. We will use it
8494       # for the tool.
8495 
8496       # First remove it from the list of overridden variables, so we can test
8497       # for unknown variables in the end.
8498       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8499 
8500       # Check if we try to supply an empty value
8501       if test "x$LN" = x; then
8502         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LN= (no value)" >&5
8503 $as_echo "$as_me: Setting user supplied tool LN= (no value)" >&6;}
8504         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5
8505 $as_echo_n "checking for LN... " >&6; }
8506         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8507 $as_echo "disabled" >&6; }
8508       else
8509         # Check if the provided tool contains a complete path.
8510         tool_specified="$LN"
8511         tool_basename="${tool_specified##*/}"
8512         if test "x$tool_basename" = "x$tool_specified"; then
8513           # A command without a complete path is provided, search $PATH.
8514           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5
8515 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;}
8516           # Extract the first word of "$tool_basename", so it can be a program name with args.
8517 set dummy $tool_basename; ac_word=$2
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8519 $as_echo_n "checking for $ac_word... " >&6; }
8520 if ${ac_cv_path_LN+:} false; then :
8521   $as_echo_n "(cached) " >&6
8522 else
8523   case $LN in
8524   [\\/]* | ?:[\\/]*)
8525   ac_cv_path_LN="$LN" # Let the user override the test with a path.
8526   ;;
8527   *)
8528   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8529 for as_dir in $PATH
8530 do
8531   IFS=$as_save_IFS
8532   test -z "$as_dir" && as_dir=.
8533     for ac_exec_ext in '' $ac_executable_extensions; do
8534   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8535     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
8536     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8537     break 2
8538   fi
8539 done
8540   done
8541 IFS=$as_save_IFS
8542 
8543   ;;
8544 esac
8545 fi
8546 LN=$ac_cv_path_LN
8547 if test -n "$LN"; then
8548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
8549 $as_echo "$LN" >&6; }
8550 else
8551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8552 $as_echo "no" >&6; }
8553 fi
8554 
8555 
8556           if test "x$LN" = x; then
8557             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8558           fi
8559         else
8560           # Otherwise we believe it is a complete path. Use it as it is.
8561           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5
8562 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;}
8563           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5
8564 $as_echo_n "checking for LN... " >&6; }
8565           if test ! -x "$tool_specified"; then
8566             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8567 $as_echo "not found" >&6; }
8568             as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5
8569           fi
8570           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8571 $as_echo "$tool_specified" >&6; }
8572         fi
8573       fi
8574     fi
8575 
8576   fi
8577 
8578 
8579 
8580   if test "x$LN" = x; then
8581     as_fn_error $? "Could not find required tool for LN" "$LINENO" 5
8582   fi
8583 
8584 
8585 
8586 
8587 
8588   # Publish this variable in the help.
8589 
8590 
8591   if [ -z "${LS+x}" ]; then
8592     # The variable is not set by user, try to locate tool using the code snippet
8593     for ac_prog in ls
8594 do
8595   # Extract the first word of "$ac_prog", so it can be a program name with args.
8596 set dummy $ac_prog; ac_word=$2
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8598 $as_echo_n "checking for $ac_word... " >&6; }
8599 if ${ac_cv_path_LS+:} false; then :
8600   $as_echo_n "(cached) " >&6
8601 else
8602   case $LS in
8603   [\\/]* | ?:[\\/]*)
8604   ac_cv_path_LS="$LS" # Let the user override the test with a path.
8605   ;;
8606   *)
8607   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8608 for as_dir in $PATH
8609 do
8610   IFS=$as_save_IFS
8611   test -z "$as_dir" && as_dir=.
8612     for ac_exec_ext in '' $ac_executable_extensions; do
8613   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8614     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
8615     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8616     break 2
8617   fi
8618 done
8619   done
8620 IFS=$as_save_IFS
8621 
8622   ;;
8623 esac
8624 fi
8625 LS=$ac_cv_path_LS
8626 if test -n "$LS"; then
8627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
8628 $as_echo "$LS" >&6; }
8629 else
8630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8631 $as_echo "no" >&6; }
8632 fi
8633 
8634 
8635   test -n "$LS" && break
8636 done
8637 
8638   else
8639     # The variable is set, but is it from the command line or the environment?
8640 
8641     # Try to remove the string !LS! from our list.
8642     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/}
8643     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8644       # If it failed, the variable was not from the command line. Ignore it,
8645       # but warn the user (except for BASH, which is always set by the calling BASH).
8646       if test "xLS" != xBASH; then
8647         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5
8648 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;}
8649       fi
8650       # Try to locate tool using the code snippet
8651       for ac_prog in ls
8652 do
8653   # Extract the first word of "$ac_prog", so it can be a program name with args.
8654 set dummy $ac_prog; ac_word=$2
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8656 $as_echo_n "checking for $ac_word... " >&6; }
8657 if ${ac_cv_path_LS+:} false; then :
8658   $as_echo_n "(cached) " >&6
8659 else
8660   case $LS in
8661   [\\/]* | ?:[\\/]*)
8662   ac_cv_path_LS="$LS" # Let the user override the test with a path.
8663   ;;
8664   *)
8665   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8666 for as_dir in $PATH
8667 do
8668   IFS=$as_save_IFS
8669   test -z "$as_dir" && as_dir=.
8670     for ac_exec_ext in '' $ac_executable_extensions; do
8671   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8672     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
8673     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8674     break 2
8675   fi
8676 done
8677   done
8678 IFS=$as_save_IFS
8679 
8680   ;;
8681 esac
8682 fi
8683 LS=$ac_cv_path_LS
8684 if test -n "$LS"; then
8685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
8686 $as_echo "$LS" >&6; }
8687 else
8688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8689 $as_echo "no" >&6; }
8690 fi
8691 
8692 
8693   test -n "$LS" && break
8694 done
8695 
8696     else
8697       # If it succeeded, then it was overridden by the user. We will use it
8698       # for the tool.
8699 
8700       # First remove it from the list of overridden variables, so we can test
8701       # for unknown variables in the end.
8702       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8703 
8704       # Check if we try to supply an empty value
8705       if test "x$LS" = x; then
8706         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LS= (no value)" >&5
8707 $as_echo "$as_me: Setting user supplied tool LS= (no value)" >&6;}
8708         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5
8709 $as_echo_n "checking for LS... " >&6; }
8710         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8711 $as_echo "disabled" >&6; }
8712       else
8713         # Check if the provided tool contains a complete path.
8714         tool_specified="$LS"
8715         tool_basename="${tool_specified##*/}"
8716         if test "x$tool_basename" = "x$tool_specified"; then
8717           # A command without a complete path is provided, search $PATH.
8718           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5
8719 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;}
8720           # Extract the first word of "$tool_basename", so it can be a program name with args.
8721 set dummy $tool_basename; ac_word=$2
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8723 $as_echo_n "checking for $ac_word... " >&6; }
8724 if ${ac_cv_path_LS+:} false; then :
8725   $as_echo_n "(cached) " >&6
8726 else
8727   case $LS in
8728   [\\/]* | ?:[\\/]*)
8729   ac_cv_path_LS="$LS" # Let the user override the test with a path.
8730   ;;
8731   *)
8732   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8733 for as_dir in $PATH
8734 do
8735   IFS=$as_save_IFS
8736   test -z "$as_dir" && as_dir=.
8737     for ac_exec_ext in '' $ac_executable_extensions; do
8738   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8739     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
8740     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8741     break 2
8742   fi
8743 done
8744   done
8745 IFS=$as_save_IFS
8746 
8747   ;;
8748 esac
8749 fi
8750 LS=$ac_cv_path_LS
8751 if test -n "$LS"; then
8752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
8753 $as_echo "$LS" >&6; }
8754 else
8755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8756 $as_echo "no" >&6; }
8757 fi
8758 
8759 
8760           if test "x$LS" = x; then
8761             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8762           fi
8763         else
8764           # Otherwise we believe it is a complete path. Use it as it is.
8765           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5
8766 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;}
8767           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5
8768 $as_echo_n "checking for LS... " >&6; }
8769           if test ! -x "$tool_specified"; then
8770             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8771 $as_echo "not found" >&6; }
8772             as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5
8773           fi
8774           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8775 $as_echo "$tool_specified" >&6; }
8776         fi
8777       fi
8778     fi
8779 
8780   fi
8781 
8782 
8783 
8784   if test "x$LS" = x; then
8785     as_fn_error $? "Could not find required tool for LS" "$LINENO" 5
8786   fi
8787 
8788 
8789 
8790 
8791 
8792   # Publish this variable in the help.
8793 
8794 
8795   if [ -z "${MKDIR+x}" ]; then
8796     # The variable is not set by user, try to locate tool using the code snippet
8797     for ac_prog in mkdir
8798 do
8799   # Extract the first word of "$ac_prog", so it can be a program name with args.
8800 set dummy $ac_prog; ac_word=$2
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8802 $as_echo_n "checking for $ac_word... " >&6; }
8803 if ${ac_cv_path_MKDIR+:} false; then :
8804   $as_echo_n "(cached) " >&6
8805 else
8806   case $MKDIR in
8807   [\\/]* | ?:[\\/]*)
8808   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
8809   ;;
8810   *)
8811   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8812 for as_dir in $PATH
8813 do
8814   IFS=$as_save_IFS
8815   test -z "$as_dir" && as_dir=.
8816     for ac_exec_ext in '' $ac_executable_extensions; do
8817   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8818     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
8819     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8820     break 2
8821   fi
8822 done
8823   done
8824 IFS=$as_save_IFS
8825 
8826   ;;
8827 esac
8828 fi
8829 MKDIR=$ac_cv_path_MKDIR
8830 if test -n "$MKDIR"; then
8831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
8832 $as_echo "$MKDIR" >&6; }
8833 else
8834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8835 $as_echo "no" >&6; }
8836 fi
8837 
8838 
8839   test -n "$MKDIR" && break
8840 done
8841 
8842   else
8843     # The variable is set, but is it from the command line or the environment?
8844 
8845     # Try to remove the string !MKDIR! from our list.
8846     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/}
8847     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8848       # If it failed, the variable was not from the command line. Ignore it,
8849       # but warn the user (except for BASH, which is always set by the calling BASH).
8850       if test "xMKDIR" != xBASH; then
8851         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5
8852 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;}
8853       fi
8854       # Try to locate tool using the code snippet
8855       for ac_prog in mkdir
8856 do
8857   # Extract the first word of "$ac_prog", so it can be a program name with args.
8858 set dummy $ac_prog; ac_word=$2
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8860 $as_echo_n "checking for $ac_word... " >&6; }
8861 if ${ac_cv_path_MKDIR+:} false; then :
8862   $as_echo_n "(cached) " >&6
8863 else
8864   case $MKDIR in
8865   [\\/]* | ?:[\\/]*)
8866   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
8867   ;;
8868   *)
8869   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8870 for as_dir in $PATH
8871 do
8872   IFS=$as_save_IFS
8873   test -z "$as_dir" && as_dir=.
8874     for ac_exec_ext in '' $ac_executable_extensions; do
8875   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8876     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
8877     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8878     break 2
8879   fi
8880 done
8881   done
8882 IFS=$as_save_IFS
8883 
8884   ;;
8885 esac
8886 fi
8887 MKDIR=$ac_cv_path_MKDIR
8888 if test -n "$MKDIR"; then
8889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
8890 $as_echo "$MKDIR" >&6; }
8891 else
8892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8893 $as_echo "no" >&6; }
8894 fi
8895 
8896 
8897   test -n "$MKDIR" && break
8898 done
8899 
8900     else
8901       # If it succeeded, then it was overridden by the user. We will use it
8902       # for the tool.
8903 
8904       # First remove it from the list of overridden variables, so we can test
8905       # for unknown variables in the end.
8906       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8907 
8908       # Check if we try to supply an empty value
8909       if test "x$MKDIR" = x; then
8910         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MKDIR= (no value)" >&5
8911 $as_echo "$as_me: Setting user supplied tool MKDIR= (no value)" >&6;}
8912         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5
8913 $as_echo_n "checking for MKDIR... " >&6; }
8914         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8915 $as_echo "disabled" >&6; }
8916       else
8917         # Check if the provided tool contains a complete path.
8918         tool_specified="$MKDIR"
8919         tool_basename="${tool_specified##*/}"
8920         if test "x$tool_basename" = "x$tool_specified"; then
8921           # A command without a complete path is provided, search $PATH.
8922           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5
8923 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;}
8924           # Extract the first word of "$tool_basename", so it can be a program name with args.
8925 set dummy $tool_basename; ac_word=$2
8926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8927 $as_echo_n "checking for $ac_word... " >&6; }
8928 if ${ac_cv_path_MKDIR+:} false; then :
8929   $as_echo_n "(cached) " >&6
8930 else
8931   case $MKDIR in
8932   [\\/]* | ?:[\\/]*)
8933   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
8934   ;;
8935   *)
8936   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8937 for as_dir in $PATH
8938 do
8939   IFS=$as_save_IFS
8940   test -z "$as_dir" && as_dir=.
8941     for ac_exec_ext in '' $ac_executable_extensions; do
8942   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8943     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
8944     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8945     break 2
8946   fi
8947 done
8948   done
8949 IFS=$as_save_IFS
8950 
8951   ;;
8952 esac
8953 fi
8954 MKDIR=$ac_cv_path_MKDIR
8955 if test -n "$MKDIR"; then
8956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
8957 $as_echo "$MKDIR" >&6; }
8958 else
8959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8960 $as_echo "no" >&6; }
8961 fi
8962 
8963 
8964           if test "x$MKDIR" = x; then
8965             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8966           fi
8967         else
8968           # Otherwise we believe it is a complete path. Use it as it is.
8969           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5
8970 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;}
8971           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5
8972 $as_echo_n "checking for MKDIR... " >&6; }
8973           if test ! -x "$tool_specified"; then
8974             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8975 $as_echo "not found" >&6; }
8976             as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5
8977           fi
8978           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8979 $as_echo "$tool_specified" >&6; }
8980         fi
8981       fi
8982     fi
8983 
8984   fi
8985 
8986 
8987 
8988   if test "x$MKDIR" = x; then
8989     as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5
8990   fi
8991 
8992 
8993 
8994 
8995 
8996   # Publish this variable in the help.
8997 
8998 
8999   if [ -z "${MKTEMP+x}" ]; then
9000     # The variable is not set by user, try to locate tool using the code snippet
9001     for ac_prog in mktemp
9002 do
9003   # Extract the first word of "$ac_prog", so it can be a program name with args.
9004 set dummy $ac_prog; ac_word=$2
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9006 $as_echo_n "checking for $ac_word... " >&6; }
9007 if ${ac_cv_path_MKTEMP+:} false; then :
9008   $as_echo_n "(cached) " >&6
9009 else
9010   case $MKTEMP in
9011   [\\/]* | ?:[\\/]*)
9012   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
9013   ;;
9014   *)
9015   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9016 for as_dir in $PATH
9017 do
9018   IFS=$as_save_IFS
9019   test -z "$as_dir" && as_dir=.
9020     for ac_exec_ext in '' $ac_executable_extensions; do
9021   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9022     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
9023     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9024     break 2
9025   fi
9026 done
9027   done
9028 IFS=$as_save_IFS
9029 
9030   ;;
9031 esac
9032 fi
9033 MKTEMP=$ac_cv_path_MKTEMP
9034 if test -n "$MKTEMP"; then
9035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
9036 $as_echo "$MKTEMP" >&6; }
9037 else
9038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9039 $as_echo "no" >&6; }
9040 fi
9041 
9042 
9043   test -n "$MKTEMP" && break
9044 done
9045 
9046   else
9047     # The variable is set, but is it from the command line or the environment?
9048 
9049     # Try to remove the string !MKTEMP! from our list.
9050     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/}
9051     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9052       # If it failed, the variable was not from the command line. Ignore it,
9053       # but warn the user (except for BASH, which is always set by the calling BASH).
9054       if test "xMKTEMP" != xBASH; then
9055         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5
9056 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;}
9057       fi
9058       # Try to locate tool using the code snippet
9059       for ac_prog in mktemp
9060 do
9061   # Extract the first word of "$ac_prog", so it can be a program name with args.
9062 set dummy $ac_prog; ac_word=$2
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9064 $as_echo_n "checking for $ac_word... " >&6; }
9065 if ${ac_cv_path_MKTEMP+:} false; then :
9066   $as_echo_n "(cached) " >&6
9067 else
9068   case $MKTEMP in
9069   [\\/]* | ?:[\\/]*)
9070   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
9071   ;;
9072   *)
9073   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9074 for as_dir in $PATH
9075 do
9076   IFS=$as_save_IFS
9077   test -z "$as_dir" && as_dir=.
9078     for ac_exec_ext in '' $ac_executable_extensions; do
9079   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9080     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
9081     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9082     break 2
9083   fi
9084 done
9085   done
9086 IFS=$as_save_IFS
9087 
9088   ;;
9089 esac
9090 fi
9091 MKTEMP=$ac_cv_path_MKTEMP
9092 if test -n "$MKTEMP"; then
9093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
9094 $as_echo "$MKTEMP" >&6; }
9095 else
9096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9097 $as_echo "no" >&6; }
9098 fi
9099 
9100 
9101   test -n "$MKTEMP" && break
9102 done
9103 
9104     else
9105       # If it succeeded, then it was overridden by the user. We will use it
9106       # for the tool.
9107 
9108       # First remove it from the list of overridden variables, so we can test
9109       # for unknown variables in the end.
9110       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9111 
9112       # Check if we try to supply an empty value
9113       if test "x$MKTEMP" = x; then
9114         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MKTEMP= (no value)" >&5
9115 $as_echo "$as_me: Setting user supplied tool MKTEMP= (no value)" >&6;}
9116         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5
9117 $as_echo_n "checking for MKTEMP... " >&6; }
9118         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9119 $as_echo "disabled" >&6; }
9120       else
9121         # Check if the provided tool contains a complete path.
9122         tool_specified="$MKTEMP"
9123         tool_basename="${tool_specified##*/}"
9124         if test "x$tool_basename" = "x$tool_specified"; then
9125           # A command without a complete path is provided, search $PATH.
9126           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5
9127 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;}
9128           # Extract the first word of "$tool_basename", so it can be a program name with args.
9129 set dummy $tool_basename; ac_word=$2
9130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9131 $as_echo_n "checking for $ac_word... " >&6; }
9132 if ${ac_cv_path_MKTEMP+:} false; then :
9133   $as_echo_n "(cached) " >&6
9134 else
9135   case $MKTEMP in
9136   [\\/]* | ?:[\\/]*)
9137   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
9138   ;;
9139   *)
9140   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9141 for as_dir in $PATH
9142 do
9143   IFS=$as_save_IFS
9144   test -z "$as_dir" && as_dir=.
9145     for ac_exec_ext in '' $ac_executable_extensions; do
9146   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9147     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
9148     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9149     break 2
9150   fi
9151 done
9152   done
9153 IFS=$as_save_IFS
9154 
9155   ;;
9156 esac
9157 fi
9158 MKTEMP=$ac_cv_path_MKTEMP
9159 if test -n "$MKTEMP"; then
9160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
9161 $as_echo "$MKTEMP" >&6; }
9162 else
9163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9164 $as_echo "no" >&6; }
9165 fi
9166 
9167 
9168           if test "x$MKTEMP" = x; then
9169             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9170           fi
9171         else
9172           # Otherwise we believe it is a complete path. Use it as it is.
9173           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5
9174 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;}
9175           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5
9176 $as_echo_n "checking for MKTEMP... " >&6; }
9177           if test ! -x "$tool_specified"; then
9178             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9179 $as_echo "not found" >&6; }
9180             as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5
9181           fi
9182           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9183 $as_echo "$tool_specified" >&6; }
9184         fi
9185       fi
9186     fi
9187 
9188   fi
9189 
9190 
9191 
9192   if test "x$MKTEMP" = x; then
9193     as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5
9194   fi
9195 
9196 
9197 
9198 
9199 
9200   # Publish this variable in the help.
9201 
9202 
9203   if [ -z "${MV+x}" ]; then
9204     # The variable is not set by user, try to locate tool using the code snippet
9205     for ac_prog in mv
9206 do
9207   # Extract the first word of "$ac_prog", so it can be a program name with args.
9208 set dummy $ac_prog; ac_word=$2
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9210 $as_echo_n "checking for $ac_word... " >&6; }
9211 if ${ac_cv_path_MV+:} false; then :
9212   $as_echo_n "(cached) " >&6
9213 else
9214   case $MV in
9215   [\\/]* | ?:[\\/]*)
9216   ac_cv_path_MV="$MV" # Let the user override the test with a path.
9217   ;;
9218   *)
9219   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9220 for as_dir in $PATH
9221 do
9222   IFS=$as_save_IFS
9223   test -z "$as_dir" && as_dir=.
9224     for ac_exec_ext in '' $ac_executable_extensions; do
9225   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9226     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9227     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9228     break 2
9229   fi
9230 done
9231   done
9232 IFS=$as_save_IFS
9233 
9234   ;;
9235 esac
9236 fi
9237 MV=$ac_cv_path_MV
9238 if test -n "$MV"; then
9239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9240 $as_echo "$MV" >&6; }
9241 else
9242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9243 $as_echo "no" >&6; }
9244 fi
9245 
9246 
9247   test -n "$MV" && break
9248 done
9249 
9250   else
9251     # The variable is set, but is it from the command line or the environment?
9252 
9253     # Try to remove the string !MV! from our list.
9254     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/}
9255     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9256       # If it failed, the variable was not from the command line. Ignore it,
9257       # but warn the user (except for BASH, which is always set by the calling BASH).
9258       if test "xMV" != xBASH; then
9259         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5
9260 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;}
9261       fi
9262       # Try to locate tool using the code snippet
9263       for ac_prog in mv
9264 do
9265   # Extract the first word of "$ac_prog", so it can be a program name with args.
9266 set dummy $ac_prog; ac_word=$2
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9268 $as_echo_n "checking for $ac_word... " >&6; }
9269 if ${ac_cv_path_MV+:} false; then :
9270   $as_echo_n "(cached) " >&6
9271 else
9272   case $MV in
9273   [\\/]* | ?:[\\/]*)
9274   ac_cv_path_MV="$MV" # Let the user override the test with a path.
9275   ;;
9276   *)
9277   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9278 for as_dir in $PATH
9279 do
9280   IFS=$as_save_IFS
9281   test -z "$as_dir" && as_dir=.
9282     for ac_exec_ext in '' $ac_executable_extensions; do
9283   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9284     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9285     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9286     break 2
9287   fi
9288 done
9289   done
9290 IFS=$as_save_IFS
9291 
9292   ;;
9293 esac
9294 fi
9295 MV=$ac_cv_path_MV
9296 if test -n "$MV"; then
9297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9298 $as_echo "$MV" >&6; }
9299 else
9300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9301 $as_echo "no" >&6; }
9302 fi
9303 
9304 
9305   test -n "$MV" && break
9306 done
9307 
9308     else
9309       # If it succeeded, then it was overridden by the user. We will use it
9310       # for the tool.
9311 
9312       # First remove it from the list of overridden variables, so we can test
9313       # for unknown variables in the end.
9314       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9315 
9316       # Check if we try to supply an empty value
9317       if test "x$MV" = x; then
9318         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MV= (no value)" >&5
9319 $as_echo "$as_me: Setting user supplied tool MV= (no value)" >&6;}
9320         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5
9321 $as_echo_n "checking for MV... " >&6; }
9322         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9323 $as_echo "disabled" >&6; }
9324       else
9325         # Check if the provided tool contains a complete path.
9326         tool_specified="$MV"
9327         tool_basename="${tool_specified##*/}"
9328         if test "x$tool_basename" = "x$tool_specified"; then
9329           # A command without a complete path is provided, search $PATH.
9330           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5
9331 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;}
9332           # Extract the first word of "$tool_basename", so it can be a program name with args.
9333 set dummy $tool_basename; ac_word=$2
9334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9335 $as_echo_n "checking for $ac_word... " >&6; }
9336 if ${ac_cv_path_MV+:} false; then :
9337   $as_echo_n "(cached) " >&6
9338 else
9339   case $MV in
9340   [\\/]* | ?:[\\/]*)
9341   ac_cv_path_MV="$MV" # Let the user override the test with a path.
9342   ;;
9343   *)
9344   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9345 for as_dir in $PATH
9346 do
9347   IFS=$as_save_IFS
9348   test -z "$as_dir" && as_dir=.
9349     for ac_exec_ext in '' $ac_executable_extensions; do
9350   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9351     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9352     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9353     break 2
9354   fi
9355 done
9356   done
9357 IFS=$as_save_IFS
9358 
9359   ;;
9360 esac
9361 fi
9362 MV=$ac_cv_path_MV
9363 if test -n "$MV"; then
9364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9365 $as_echo "$MV" >&6; }
9366 else
9367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9368 $as_echo "no" >&6; }
9369 fi
9370 
9371 
9372           if test "x$MV" = x; then
9373             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9374           fi
9375         else
9376           # Otherwise we believe it is a complete path. Use it as it is.
9377           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5
9378 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;}
9379           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5
9380 $as_echo_n "checking for MV... " >&6; }
9381           if test ! -x "$tool_specified"; then
9382             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9383 $as_echo "not found" >&6; }
9384             as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5
9385           fi
9386           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9387 $as_echo "$tool_specified" >&6; }
9388         fi
9389       fi
9390     fi
9391 
9392   fi
9393 
9394 
9395 
9396   if test "x$MV" = x; then
9397     as_fn_error $? "Could not find required tool for MV" "$LINENO" 5
9398   fi
9399 
9400 
9401 
9402 
9403 
9404   # Publish this variable in the help.
9405 
9406 
9407   if [ -z "${NAWK+x}" ]; then
9408     # The variable is not set by user, try to locate tool using the code snippet
9409     for ac_prog in nawk gawk awk
9410 do
9411   # Extract the first word of "$ac_prog", so it can be a program name with args.
9412 set dummy $ac_prog; ac_word=$2
9413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9414 $as_echo_n "checking for $ac_word... " >&6; }
9415 if ${ac_cv_path_NAWK+:} false; then :
9416   $as_echo_n "(cached) " >&6
9417 else
9418   case $NAWK in
9419   [\\/]* | ?:[\\/]*)
9420   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
9421   ;;
9422   *)
9423   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9424 for as_dir in $PATH
9425 do
9426   IFS=$as_save_IFS
9427   test -z "$as_dir" && as_dir=.
9428     for ac_exec_ext in '' $ac_executable_extensions; do
9429   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9430     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
9431     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9432     break 2
9433   fi
9434 done
9435   done
9436 IFS=$as_save_IFS
9437 
9438   ;;
9439 esac
9440 fi
9441 NAWK=$ac_cv_path_NAWK
9442 if test -n "$NAWK"; then
9443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
9444 $as_echo "$NAWK" >&6; }
9445 else
9446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9447 $as_echo "no" >&6; }
9448 fi
9449 
9450 
9451   test -n "$NAWK" && break
9452 done
9453 
9454   else
9455     # The variable is set, but is it from the command line or the environment?
9456 
9457     # Try to remove the string !NAWK! from our list.
9458     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/}
9459     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9460       # If it failed, the variable was not from the command line. Ignore it,
9461       # but warn the user (except for BASH, which is always set by the calling BASH).
9462       if test "xNAWK" != xBASH; then
9463         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5
9464 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;}
9465       fi
9466       # Try to locate tool using the code snippet
9467       for ac_prog in nawk gawk awk
9468 do
9469   # Extract the first word of "$ac_prog", so it can be a program name with args.
9470 set dummy $ac_prog; ac_word=$2
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9472 $as_echo_n "checking for $ac_word... " >&6; }
9473 if ${ac_cv_path_NAWK+:} false; then :
9474   $as_echo_n "(cached) " >&6
9475 else
9476   case $NAWK in
9477   [\\/]* | ?:[\\/]*)
9478   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
9479   ;;
9480   *)
9481   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9482 for as_dir in $PATH
9483 do
9484   IFS=$as_save_IFS
9485   test -z "$as_dir" && as_dir=.
9486     for ac_exec_ext in '' $ac_executable_extensions; do
9487   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9488     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
9489     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9490     break 2
9491   fi
9492 done
9493   done
9494 IFS=$as_save_IFS
9495 
9496   ;;
9497 esac
9498 fi
9499 NAWK=$ac_cv_path_NAWK
9500 if test -n "$NAWK"; then
9501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
9502 $as_echo "$NAWK" >&6; }
9503 else
9504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9505 $as_echo "no" >&6; }
9506 fi
9507 
9508 
9509   test -n "$NAWK" && break
9510 done
9511 
9512     else
9513       # If it succeeded, then it was overridden by the user. We will use it
9514       # for the tool.
9515 
9516       # First remove it from the list of overridden variables, so we can test
9517       # for unknown variables in the end.
9518       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9519 
9520       # Check if we try to supply an empty value
9521       if test "x$NAWK" = x; then
9522         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NAWK= (no value)" >&5
9523 $as_echo "$as_me: Setting user supplied tool NAWK= (no value)" >&6;}
9524         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5
9525 $as_echo_n "checking for NAWK... " >&6; }
9526         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9527 $as_echo "disabled" >&6; }
9528       else
9529         # Check if the provided tool contains a complete path.
9530         tool_specified="$NAWK"
9531         tool_basename="${tool_specified##*/}"
9532         if test "x$tool_basename" = "x$tool_specified"; then
9533           # A command without a complete path is provided, search $PATH.
9534           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5
9535 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;}
9536           # Extract the first word of "$tool_basename", so it can be a program name with args.
9537 set dummy $tool_basename; ac_word=$2
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9539 $as_echo_n "checking for $ac_word... " >&6; }
9540 if ${ac_cv_path_NAWK+:} false; then :
9541   $as_echo_n "(cached) " >&6
9542 else
9543   case $NAWK in
9544   [\\/]* | ?:[\\/]*)
9545   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
9546   ;;
9547   *)
9548   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9549 for as_dir in $PATH
9550 do
9551   IFS=$as_save_IFS
9552   test -z "$as_dir" && as_dir=.
9553     for ac_exec_ext in '' $ac_executable_extensions; do
9554   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9555     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
9556     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9557     break 2
9558   fi
9559 done
9560   done
9561 IFS=$as_save_IFS
9562 
9563   ;;
9564 esac
9565 fi
9566 NAWK=$ac_cv_path_NAWK
9567 if test -n "$NAWK"; then
9568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
9569 $as_echo "$NAWK" >&6; }
9570 else
9571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9572 $as_echo "no" >&6; }
9573 fi
9574 
9575 
9576           if test "x$NAWK" = x; then
9577             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9578           fi
9579         else
9580           # Otherwise we believe it is a complete path. Use it as it is.
9581           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5
9582 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;}
9583           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5
9584 $as_echo_n "checking for NAWK... " >&6; }
9585           if test ! -x "$tool_specified"; then
9586             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9587 $as_echo "not found" >&6; }
9588             as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5
9589           fi
9590           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9591 $as_echo "$tool_specified" >&6; }
9592         fi
9593       fi
9594     fi
9595 
9596   fi
9597 
9598 
9599 
9600   if test "x$NAWK" = x; then
9601     as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5
9602   fi
9603 
9604 
9605 
9606 
9607 
9608   # Publish this variable in the help.
9609 
9610 
9611   if [ -z "${PRINTF+x}" ]; then
9612     # The variable is not set by user, try to locate tool using the code snippet
9613     for ac_prog in printf
9614 do
9615   # Extract the first word of "$ac_prog", so it can be a program name with args.
9616 set dummy $ac_prog; ac_word=$2
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9618 $as_echo_n "checking for $ac_word... " >&6; }
9619 if ${ac_cv_path_PRINTF+:} false; then :
9620   $as_echo_n "(cached) " >&6
9621 else
9622   case $PRINTF in
9623   [\\/]* | ?:[\\/]*)
9624   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
9625   ;;
9626   *)
9627   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9628 for as_dir in $PATH
9629 do
9630   IFS=$as_save_IFS
9631   test -z "$as_dir" && as_dir=.
9632     for ac_exec_ext in '' $ac_executable_extensions; do
9633   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9634     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
9635     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9636     break 2
9637   fi
9638 done
9639   done
9640 IFS=$as_save_IFS
9641 
9642   ;;
9643 esac
9644 fi
9645 PRINTF=$ac_cv_path_PRINTF
9646 if test -n "$PRINTF"; then
9647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
9648 $as_echo "$PRINTF" >&6; }
9649 else
9650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9651 $as_echo "no" >&6; }
9652 fi
9653 
9654 
9655   test -n "$PRINTF" && break
9656 done
9657 
9658   else
9659     # The variable is set, but is it from the command line or the environment?
9660 
9661     # Try to remove the string !PRINTF! from our list.
9662     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/}
9663     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9664       # If it failed, the variable was not from the command line. Ignore it,
9665       # but warn the user (except for BASH, which is always set by the calling BASH).
9666       if test "xPRINTF" != xBASH; then
9667         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5
9668 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;}
9669       fi
9670       # Try to locate tool using the code snippet
9671       for ac_prog in printf
9672 do
9673   # Extract the first word of "$ac_prog", so it can be a program name with args.
9674 set dummy $ac_prog; ac_word=$2
9675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9676 $as_echo_n "checking for $ac_word... " >&6; }
9677 if ${ac_cv_path_PRINTF+:} false; then :
9678   $as_echo_n "(cached) " >&6
9679 else
9680   case $PRINTF in
9681   [\\/]* | ?:[\\/]*)
9682   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
9683   ;;
9684   *)
9685   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9686 for as_dir in $PATH
9687 do
9688   IFS=$as_save_IFS
9689   test -z "$as_dir" && as_dir=.
9690     for ac_exec_ext in '' $ac_executable_extensions; do
9691   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9692     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
9693     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9694     break 2
9695   fi
9696 done
9697   done
9698 IFS=$as_save_IFS
9699 
9700   ;;
9701 esac
9702 fi
9703 PRINTF=$ac_cv_path_PRINTF
9704 if test -n "$PRINTF"; then
9705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
9706 $as_echo "$PRINTF" >&6; }
9707 else
9708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9709 $as_echo "no" >&6; }
9710 fi
9711 
9712 
9713   test -n "$PRINTF" && break
9714 done
9715 
9716     else
9717       # If it succeeded, then it was overridden by the user. We will use it
9718       # for the tool.
9719 
9720       # First remove it from the list of overridden variables, so we can test
9721       # for unknown variables in the end.
9722       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9723 
9724       # Check if we try to supply an empty value
9725       if test "x$PRINTF" = x; then
9726         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PRINTF= (no value)" >&5
9727 $as_echo "$as_me: Setting user supplied tool PRINTF= (no value)" >&6;}
9728         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5
9729 $as_echo_n "checking for PRINTF... " >&6; }
9730         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9731 $as_echo "disabled" >&6; }
9732       else
9733         # Check if the provided tool contains a complete path.
9734         tool_specified="$PRINTF"
9735         tool_basename="${tool_specified##*/}"
9736         if test "x$tool_basename" = "x$tool_specified"; then
9737           # A command without a complete path is provided, search $PATH.
9738           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5
9739 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;}
9740           # Extract the first word of "$tool_basename", so it can be a program name with args.
9741 set dummy $tool_basename; ac_word=$2
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9743 $as_echo_n "checking for $ac_word... " >&6; }
9744 if ${ac_cv_path_PRINTF+:} false; then :
9745   $as_echo_n "(cached) " >&6
9746 else
9747   case $PRINTF in
9748   [\\/]* | ?:[\\/]*)
9749   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
9750   ;;
9751   *)
9752   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9753 for as_dir in $PATH
9754 do
9755   IFS=$as_save_IFS
9756   test -z "$as_dir" && as_dir=.
9757     for ac_exec_ext in '' $ac_executable_extensions; do
9758   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9759     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
9760     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9761     break 2
9762   fi
9763 done
9764   done
9765 IFS=$as_save_IFS
9766 
9767   ;;
9768 esac
9769 fi
9770 PRINTF=$ac_cv_path_PRINTF
9771 if test -n "$PRINTF"; then
9772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
9773 $as_echo "$PRINTF" >&6; }
9774 else
9775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9776 $as_echo "no" >&6; }
9777 fi
9778 
9779 
9780           if test "x$PRINTF" = x; then
9781             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9782           fi
9783         else
9784           # Otherwise we believe it is a complete path. Use it as it is.
9785           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5
9786 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;}
9787           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5
9788 $as_echo_n "checking for PRINTF... " >&6; }
9789           if test ! -x "$tool_specified"; then
9790             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9791 $as_echo "not found" >&6; }
9792             as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5
9793           fi
9794           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9795 $as_echo "$tool_specified" >&6; }
9796         fi
9797       fi
9798     fi
9799 
9800   fi
9801 
9802 
9803 
9804   if test "x$PRINTF" = x; then
9805     as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5
9806   fi
9807 
9808 
9809 
9810 
9811 
9812   # Publish this variable in the help.
9813 
9814 
9815   if [ -z "${RM+x}" ]; then
9816     # The variable is not set by user, try to locate tool using the code snippet
9817     for ac_prog in rm
9818 do
9819   # Extract the first word of "$ac_prog", so it can be a program name with args.
9820 set dummy $ac_prog; ac_word=$2
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9822 $as_echo_n "checking for $ac_word... " >&6; }
9823 if ${ac_cv_path_RM+:} false; then :
9824   $as_echo_n "(cached) " >&6
9825 else
9826   case $RM in
9827   [\\/]* | ?:[\\/]*)
9828   ac_cv_path_RM="$RM" # Let the user override the test with a path.
9829   ;;
9830   *)
9831   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9832 for as_dir in $PATH
9833 do
9834   IFS=$as_save_IFS
9835   test -z "$as_dir" && as_dir=.
9836     for ac_exec_ext in '' $ac_executable_extensions; do
9837   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9838     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9839     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9840     break 2
9841   fi
9842 done
9843   done
9844 IFS=$as_save_IFS
9845 
9846   ;;
9847 esac
9848 fi
9849 RM=$ac_cv_path_RM
9850 if test -n "$RM"; then
9851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9852 $as_echo "$RM" >&6; }
9853 else
9854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9855 $as_echo "no" >&6; }
9856 fi
9857 
9858 
9859   test -n "$RM" && break
9860 done
9861 
9862   else
9863     # The variable is set, but is it from the command line or the environment?
9864 
9865     # Try to remove the string !RM! from our list.
9866     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/}
9867     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9868       # If it failed, the variable was not from the command line. Ignore it,
9869       # but warn the user (except for BASH, which is always set by the calling BASH).
9870       if test "xRM" != xBASH; then
9871         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5
9872 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;}
9873       fi
9874       # Try to locate tool using the code snippet
9875       for ac_prog in rm
9876 do
9877   # Extract the first word of "$ac_prog", so it can be a program name with args.
9878 set dummy $ac_prog; ac_word=$2
9879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9880 $as_echo_n "checking for $ac_word... " >&6; }
9881 if ${ac_cv_path_RM+:} false; then :
9882   $as_echo_n "(cached) " >&6
9883 else
9884   case $RM in
9885   [\\/]* | ?:[\\/]*)
9886   ac_cv_path_RM="$RM" # Let the user override the test with a path.
9887   ;;
9888   *)
9889   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9890 for as_dir in $PATH
9891 do
9892   IFS=$as_save_IFS
9893   test -z "$as_dir" && as_dir=.
9894     for ac_exec_ext in '' $ac_executable_extensions; do
9895   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9896     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9897     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9898     break 2
9899   fi
9900 done
9901   done
9902 IFS=$as_save_IFS
9903 
9904   ;;
9905 esac
9906 fi
9907 RM=$ac_cv_path_RM
9908 if test -n "$RM"; then
9909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9910 $as_echo "$RM" >&6; }
9911 else
9912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9913 $as_echo "no" >&6; }
9914 fi
9915 
9916 
9917   test -n "$RM" && break
9918 done
9919 
9920     else
9921       # If it succeeded, then it was overridden by the user. We will use it
9922       # for the tool.
9923 
9924       # First remove it from the list of overridden variables, so we can test
9925       # for unknown variables in the end.
9926       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9927 
9928       # Check if we try to supply an empty value
9929       if test "x$RM" = x; then
9930         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool RM= (no value)" >&5
9931 $as_echo "$as_me: Setting user supplied tool RM= (no value)" >&6;}
9932         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5
9933 $as_echo_n "checking for RM... " >&6; }
9934         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9935 $as_echo "disabled" >&6; }
9936       else
9937         # Check if the provided tool contains a complete path.
9938         tool_specified="$RM"
9939         tool_basename="${tool_specified##*/}"
9940         if test "x$tool_basename" = "x$tool_specified"; then
9941           # A command without a complete path is provided, search $PATH.
9942           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5
9943 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;}
9944           # Extract the first word of "$tool_basename", so it can be a program name with args.
9945 set dummy $tool_basename; ac_word=$2
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9947 $as_echo_n "checking for $ac_word... " >&6; }
9948 if ${ac_cv_path_RM+:} false; then :
9949   $as_echo_n "(cached) " >&6
9950 else
9951   case $RM in
9952   [\\/]* | ?:[\\/]*)
9953   ac_cv_path_RM="$RM" # Let the user override the test with a path.
9954   ;;
9955   *)
9956   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9957 for as_dir in $PATH
9958 do
9959   IFS=$as_save_IFS
9960   test -z "$as_dir" && as_dir=.
9961     for ac_exec_ext in '' $ac_executable_extensions; do
9962   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9963     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9964     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9965     break 2
9966   fi
9967 done
9968   done
9969 IFS=$as_save_IFS
9970 
9971   ;;
9972 esac
9973 fi
9974 RM=$ac_cv_path_RM
9975 if test -n "$RM"; then
9976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9977 $as_echo "$RM" >&6; }
9978 else
9979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9980 $as_echo "no" >&6; }
9981 fi
9982 
9983 
9984           if test "x$RM" = x; then
9985             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9986           fi
9987         else
9988           # Otherwise we believe it is a complete path. Use it as it is.
9989           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5
9990 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;}
9991           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5
9992 $as_echo_n "checking for RM... " >&6; }
9993           if test ! -x "$tool_specified"; then
9994             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9995 $as_echo "not found" >&6; }
9996             as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5
9997           fi
9998           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9999 $as_echo "$tool_specified" >&6; }
10000         fi
10001       fi
10002     fi
10003 
10004   fi
10005 
10006 
10007 
10008   if test "x$RM" = x; then
10009     as_fn_error $? "Could not find required tool for RM" "$LINENO" 5
10010   fi
10011 
10012 
10013 
10014 
10015 
10016   # Publish this variable in the help.
10017 
10018 
10019   if [ -z "${RMDIR+x}" ]; then
10020     # The variable is not set by user, try to locate tool using the code snippet
10021     for ac_prog in rmdir
10022 do
10023   # Extract the first word of "$ac_prog", so it can be a program name with args.
10024 set dummy $ac_prog; ac_word=$2
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10026 $as_echo_n "checking for $ac_word... " >&6; }
10027 if ${ac_cv_path_RMDIR+:} false; then :
10028   $as_echo_n "(cached) " >&6
10029 else
10030   case $RMDIR in
10031   [\\/]* | ?:[\\/]*)
10032   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
10033   ;;
10034   *)
10035   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10036 for as_dir in $PATH
10037 do
10038   IFS=$as_save_IFS
10039   test -z "$as_dir" && as_dir=.
10040     for ac_exec_ext in '' $ac_executable_extensions; do
10041   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10042     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
10043     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10044     break 2
10045   fi
10046 done
10047   done
10048 IFS=$as_save_IFS
10049 
10050   ;;
10051 esac
10052 fi
10053 RMDIR=$ac_cv_path_RMDIR
10054 if test -n "$RMDIR"; then
10055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
10056 $as_echo "$RMDIR" >&6; }
10057 else
10058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10059 $as_echo "no" >&6; }
10060 fi
10061 
10062 
10063   test -n "$RMDIR" && break
10064 done
10065 
10066   else
10067     # The variable is set, but is it from the command line or the environment?
10068 
10069     # Try to remove the string !RMDIR! from our list.
10070     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RMDIR!/}
10071     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10072       # If it failed, the variable was not from the command line. Ignore it,
10073       # but warn the user (except for BASH, which is always set by the calling BASH).
10074       if test "xRMDIR" != xBASH; then
10075         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RMDIR from the environment. Use command line variables instead." >&5
10076 $as_echo "$as_me: WARNING: Ignoring value of RMDIR from the environment. Use command line variables instead." >&2;}
10077       fi
10078       # Try to locate tool using the code snippet
10079       for ac_prog in rmdir
10080 do
10081   # Extract the first word of "$ac_prog", so it can be a program name with args.
10082 set dummy $ac_prog; ac_word=$2
10083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10084 $as_echo_n "checking for $ac_word... " >&6; }
10085 if ${ac_cv_path_RMDIR+:} false; then :
10086   $as_echo_n "(cached) " >&6
10087 else
10088   case $RMDIR in
10089   [\\/]* | ?:[\\/]*)
10090   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
10091   ;;
10092   *)
10093   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10094 for as_dir in $PATH
10095 do
10096   IFS=$as_save_IFS
10097   test -z "$as_dir" && as_dir=.
10098     for ac_exec_ext in '' $ac_executable_extensions; do
10099   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10100     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
10101     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10102     break 2
10103   fi
10104 done
10105   done
10106 IFS=$as_save_IFS
10107 
10108   ;;
10109 esac
10110 fi
10111 RMDIR=$ac_cv_path_RMDIR
10112 if test -n "$RMDIR"; then
10113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
10114 $as_echo "$RMDIR" >&6; }
10115 else
10116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10117 $as_echo "no" >&6; }
10118 fi
10119 
10120 
10121   test -n "$RMDIR" && break
10122 done
10123 
10124     else
10125       # If it succeeded, then it was overridden by the user. We will use it
10126       # for the tool.
10127 
10128       # First remove it from the list of overridden variables, so we can test
10129       # for unknown variables in the end.
10130       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10131 
10132       # Check if we try to supply an empty value
10133       if test "x$RMDIR" = x; then
10134         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool RMDIR= (no value)" >&5
10135 $as_echo "$as_me: Setting user supplied tool RMDIR= (no value)" >&6;}
10136         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RMDIR" >&5
10137 $as_echo_n "checking for RMDIR... " >&6; }
10138         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10139 $as_echo "disabled" >&6; }
10140       else
10141         # Check if the provided tool contains a complete path.
10142         tool_specified="$RMDIR"
10143         tool_basename="${tool_specified##*/}"
10144         if test "x$tool_basename" = "x$tool_specified"; then
10145           # A command without a complete path is provided, search $PATH.
10146           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RMDIR=$tool_basename" >&5
10147 $as_echo "$as_me: Will search for user supplied tool RMDIR=$tool_basename" >&6;}
10148           # Extract the first word of "$tool_basename", so it can be a program name with args.
10149 set dummy $tool_basename; ac_word=$2
10150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10151 $as_echo_n "checking for $ac_word... " >&6; }
10152 if ${ac_cv_path_RMDIR+:} false; then :
10153   $as_echo_n "(cached) " >&6
10154 else
10155   case $RMDIR in
10156   [\\/]* | ?:[\\/]*)
10157   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
10158   ;;
10159   *)
10160   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10161 for as_dir in $PATH
10162 do
10163   IFS=$as_save_IFS
10164   test -z "$as_dir" && as_dir=.
10165     for ac_exec_ext in '' $ac_executable_extensions; do
10166   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10167     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
10168     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10169     break 2
10170   fi
10171 done
10172   done
10173 IFS=$as_save_IFS
10174 
10175   ;;
10176 esac
10177 fi
10178 RMDIR=$ac_cv_path_RMDIR
10179 if test -n "$RMDIR"; then
10180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
10181 $as_echo "$RMDIR" >&6; }
10182 else
10183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10184 $as_echo "no" >&6; }
10185 fi
10186 
10187 
10188           if test "x$RMDIR" = x; then
10189             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10190           fi
10191         else
10192           # Otherwise we believe it is a complete path. Use it as it is.
10193           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RMDIR=$tool_specified" >&5
10194 $as_echo "$as_me: Will use user supplied tool RMDIR=$tool_specified" >&6;}
10195           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RMDIR" >&5
10196 $as_echo_n "checking for RMDIR... " >&6; }
10197           if test ! -x "$tool_specified"; then
10198             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10199 $as_echo "not found" >&6; }
10200             as_fn_error $? "User supplied tool RMDIR=$tool_specified does not exist or is not executable" "$LINENO" 5
10201           fi
10202           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10203 $as_echo "$tool_specified" >&6; }
10204         fi
10205       fi
10206     fi
10207 
10208   fi
10209 
10210 
10211 
10212   if test "x$RMDIR" = x; then
10213     as_fn_error $? "Could not find required tool for RMDIR" "$LINENO" 5
10214   fi
10215 
10216 
10217 
10218 
10219 
10220   # Publish this variable in the help.
10221 
10222 
10223   if [ -z "${SH+x}" ]; then
10224     # The variable is not set by user, try to locate tool using the code snippet
10225     for ac_prog in sh
10226 do
10227   # Extract the first word of "$ac_prog", so it can be a program name with args.
10228 set dummy $ac_prog; ac_word=$2
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10230 $as_echo_n "checking for $ac_word... " >&6; }
10231 if ${ac_cv_path_SH+:} false; then :
10232   $as_echo_n "(cached) " >&6
10233 else
10234   case $SH in
10235   [\\/]* | ?:[\\/]*)
10236   ac_cv_path_SH="$SH" # Let the user override the test with a path.
10237   ;;
10238   *)
10239   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10240 for as_dir in $PATH
10241 do
10242   IFS=$as_save_IFS
10243   test -z "$as_dir" && as_dir=.
10244     for ac_exec_ext in '' $ac_executable_extensions; do
10245   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10246     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
10247     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10248     break 2
10249   fi
10250 done
10251   done
10252 IFS=$as_save_IFS
10253 
10254   ;;
10255 esac
10256 fi
10257 SH=$ac_cv_path_SH
10258 if test -n "$SH"; then
10259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
10260 $as_echo "$SH" >&6; }
10261 else
10262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10263 $as_echo "no" >&6; }
10264 fi
10265 
10266 
10267   test -n "$SH" && break
10268 done
10269 
10270   else
10271     # The variable is set, but is it from the command line or the environment?
10272 
10273     # Try to remove the string !SH! from our list.
10274     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/}
10275     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10276       # If it failed, the variable was not from the command line. Ignore it,
10277       # but warn the user (except for BASH, which is always set by the calling BASH).
10278       if test "xSH" != xBASH; then
10279         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5
10280 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;}
10281       fi
10282       # Try to locate tool using the code snippet
10283       for ac_prog in sh
10284 do
10285   # Extract the first word of "$ac_prog", so it can be a program name with args.
10286 set dummy $ac_prog; ac_word=$2
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10288 $as_echo_n "checking for $ac_word... " >&6; }
10289 if ${ac_cv_path_SH+:} false; then :
10290   $as_echo_n "(cached) " >&6
10291 else
10292   case $SH in
10293   [\\/]* | ?:[\\/]*)
10294   ac_cv_path_SH="$SH" # Let the user override the test with a path.
10295   ;;
10296   *)
10297   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10298 for as_dir in $PATH
10299 do
10300   IFS=$as_save_IFS
10301   test -z "$as_dir" && as_dir=.
10302     for ac_exec_ext in '' $ac_executable_extensions; do
10303   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10304     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
10305     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10306     break 2
10307   fi
10308 done
10309   done
10310 IFS=$as_save_IFS
10311 
10312   ;;
10313 esac
10314 fi
10315 SH=$ac_cv_path_SH
10316 if test -n "$SH"; then
10317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
10318 $as_echo "$SH" >&6; }
10319 else
10320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10321 $as_echo "no" >&6; }
10322 fi
10323 
10324 
10325   test -n "$SH" && break
10326 done
10327 
10328     else
10329       # If it succeeded, then it was overridden by the user. We will use it
10330       # for the tool.
10331 
10332       # First remove it from the list of overridden variables, so we can test
10333       # for unknown variables in the end.
10334       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10335 
10336       # Check if we try to supply an empty value
10337       if test "x$SH" = x; then
10338         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SH= (no value)" >&5
10339 $as_echo "$as_me: Setting user supplied tool SH= (no value)" >&6;}
10340         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5
10341 $as_echo_n "checking for SH... " >&6; }
10342         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10343 $as_echo "disabled" >&6; }
10344       else
10345         # Check if the provided tool contains a complete path.
10346         tool_specified="$SH"
10347         tool_basename="${tool_specified##*/}"
10348         if test "x$tool_basename" = "x$tool_specified"; then
10349           # A command without a complete path is provided, search $PATH.
10350           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5
10351 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;}
10352           # Extract the first word of "$tool_basename", so it can be a program name with args.
10353 set dummy $tool_basename; ac_word=$2
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10355 $as_echo_n "checking for $ac_word... " >&6; }
10356 if ${ac_cv_path_SH+:} false; then :
10357   $as_echo_n "(cached) " >&6
10358 else
10359   case $SH in
10360   [\\/]* | ?:[\\/]*)
10361   ac_cv_path_SH="$SH" # Let the user override the test with a path.
10362   ;;
10363   *)
10364   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10365 for as_dir in $PATH
10366 do
10367   IFS=$as_save_IFS
10368   test -z "$as_dir" && as_dir=.
10369     for ac_exec_ext in '' $ac_executable_extensions; do
10370   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10371     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
10372     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10373     break 2
10374   fi
10375 done
10376   done
10377 IFS=$as_save_IFS
10378 
10379   ;;
10380 esac
10381 fi
10382 SH=$ac_cv_path_SH
10383 if test -n "$SH"; then
10384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
10385 $as_echo "$SH" >&6; }
10386 else
10387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10388 $as_echo "no" >&6; }
10389 fi
10390 
10391 
10392           if test "x$SH" = x; then
10393             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10394           fi
10395         else
10396           # Otherwise we believe it is a complete path. Use it as it is.
10397           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5
10398 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;}
10399           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5
10400 $as_echo_n "checking for SH... " >&6; }
10401           if test ! -x "$tool_specified"; then
10402             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10403 $as_echo "not found" >&6; }
10404             as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5
10405           fi
10406           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10407 $as_echo "$tool_specified" >&6; }
10408         fi
10409       fi
10410     fi
10411 
10412   fi
10413 
10414 
10415 
10416   if test "x$SH" = x; then
10417     as_fn_error $? "Could not find required tool for SH" "$LINENO" 5
10418   fi
10419 
10420 
10421 
10422 
10423 
10424   # Publish this variable in the help.
10425 
10426 
10427   if [ -z "${SORT+x}" ]; then
10428     # The variable is not set by user, try to locate tool using the code snippet
10429     for ac_prog in sort
10430 do
10431   # Extract the first word of "$ac_prog", so it can be a program name with args.
10432 set dummy $ac_prog; ac_word=$2
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10434 $as_echo_n "checking for $ac_word... " >&6; }
10435 if ${ac_cv_path_SORT+:} false; then :
10436   $as_echo_n "(cached) " >&6
10437 else
10438   case $SORT in
10439   [\\/]* | ?:[\\/]*)
10440   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
10441   ;;
10442   *)
10443   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10444 for as_dir in $PATH
10445 do
10446   IFS=$as_save_IFS
10447   test -z "$as_dir" && as_dir=.
10448     for ac_exec_ext in '' $ac_executable_extensions; do
10449   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10450     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
10451     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10452     break 2
10453   fi
10454 done
10455   done
10456 IFS=$as_save_IFS
10457 
10458   ;;
10459 esac
10460 fi
10461 SORT=$ac_cv_path_SORT
10462 if test -n "$SORT"; then
10463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
10464 $as_echo "$SORT" >&6; }
10465 else
10466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10467 $as_echo "no" >&6; }
10468 fi
10469 
10470 
10471   test -n "$SORT" && break
10472 done
10473 
10474   else
10475     # The variable is set, but is it from the command line or the environment?
10476 
10477     # Try to remove the string !SORT! from our list.
10478     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/}
10479     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10480       # If it failed, the variable was not from the command line. Ignore it,
10481       # but warn the user (except for BASH, which is always set by the calling BASH).
10482       if test "xSORT" != xBASH; then
10483         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5
10484 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;}
10485       fi
10486       # Try to locate tool using the code snippet
10487       for ac_prog in sort
10488 do
10489   # Extract the first word of "$ac_prog", so it can be a program name with args.
10490 set dummy $ac_prog; ac_word=$2
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10492 $as_echo_n "checking for $ac_word... " >&6; }
10493 if ${ac_cv_path_SORT+:} false; then :
10494   $as_echo_n "(cached) " >&6
10495 else
10496   case $SORT in
10497   [\\/]* | ?:[\\/]*)
10498   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
10499   ;;
10500   *)
10501   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10502 for as_dir in $PATH
10503 do
10504   IFS=$as_save_IFS
10505   test -z "$as_dir" && as_dir=.
10506     for ac_exec_ext in '' $ac_executable_extensions; do
10507   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10508     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
10509     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10510     break 2
10511   fi
10512 done
10513   done
10514 IFS=$as_save_IFS
10515 
10516   ;;
10517 esac
10518 fi
10519 SORT=$ac_cv_path_SORT
10520 if test -n "$SORT"; then
10521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
10522 $as_echo "$SORT" >&6; }
10523 else
10524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10525 $as_echo "no" >&6; }
10526 fi
10527 
10528 
10529   test -n "$SORT" && break
10530 done
10531 
10532     else
10533       # If it succeeded, then it was overridden by the user. We will use it
10534       # for the tool.
10535 
10536       # First remove it from the list of overridden variables, so we can test
10537       # for unknown variables in the end.
10538       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10539 
10540       # Check if we try to supply an empty value
10541       if test "x$SORT" = x; then
10542         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SORT= (no value)" >&5
10543 $as_echo "$as_me: Setting user supplied tool SORT= (no value)" >&6;}
10544         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5
10545 $as_echo_n "checking for SORT... " >&6; }
10546         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10547 $as_echo "disabled" >&6; }
10548       else
10549         # Check if the provided tool contains a complete path.
10550         tool_specified="$SORT"
10551         tool_basename="${tool_specified##*/}"
10552         if test "x$tool_basename" = "x$tool_specified"; then
10553           # A command without a complete path is provided, search $PATH.
10554           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5
10555 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;}
10556           # Extract the first word of "$tool_basename", so it can be a program name with args.
10557 set dummy $tool_basename; ac_word=$2
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10559 $as_echo_n "checking for $ac_word... " >&6; }
10560 if ${ac_cv_path_SORT+:} false; then :
10561   $as_echo_n "(cached) " >&6
10562 else
10563   case $SORT in
10564   [\\/]* | ?:[\\/]*)
10565   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
10566   ;;
10567   *)
10568   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10569 for as_dir in $PATH
10570 do
10571   IFS=$as_save_IFS
10572   test -z "$as_dir" && as_dir=.
10573     for ac_exec_ext in '' $ac_executable_extensions; do
10574   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10575     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
10576     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10577     break 2
10578   fi
10579 done
10580   done
10581 IFS=$as_save_IFS
10582 
10583   ;;
10584 esac
10585 fi
10586 SORT=$ac_cv_path_SORT
10587 if test -n "$SORT"; then
10588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
10589 $as_echo "$SORT" >&6; }
10590 else
10591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10592 $as_echo "no" >&6; }
10593 fi
10594 
10595 
10596           if test "x$SORT" = x; then
10597             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10598           fi
10599         else
10600           # Otherwise we believe it is a complete path. Use it as it is.
10601           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5
10602 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;}
10603           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5
10604 $as_echo_n "checking for SORT... " >&6; }
10605           if test ! -x "$tool_specified"; then
10606             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10607 $as_echo "not found" >&6; }
10608             as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5
10609           fi
10610           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10611 $as_echo "$tool_specified" >&6; }
10612         fi
10613       fi
10614     fi
10615 
10616   fi
10617 
10618 
10619 
10620   if test "x$SORT" = x; then
10621     as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5
10622   fi
10623 
10624 
10625 
10626 
10627 
10628   # Publish this variable in the help.
10629 
10630 
10631   if [ -z "${TAIL+x}" ]; then
10632     # The variable is not set by user, try to locate tool using the code snippet
10633     for ac_prog in tail
10634 do
10635   # Extract the first word of "$ac_prog", so it can be a program name with args.
10636 set dummy $ac_prog; ac_word=$2
10637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10638 $as_echo_n "checking for $ac_word... " >&6; }
10639 if ${ac_cv_path_TAIL+:} false; then :
10640   $as_echo_n "(cached) " >&6
10641 else
10642   case $TAIL in
10643   [\\/]* | ?:[\\/]*)
10644   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
10645   ;;
10646   *)
10647   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10648 for as_dir in $PATH
10649 do
10650   IFS=$as_save_IFS
10651   test -z "$as_dir" && as_dir=.
10652     for ac_exec_ext in '' $ac_executable_extensions; do
10653   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10654     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
10655     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10656     break 2
10657   fi
10658 done
10659   done
10660 IFS=$as_save_IFS
10661 
10662   ;;
10663 esac
10664 fi
10665 TAIL=$ac_cv_path_TAIL
10666 if test -n "$TAIL"; then
10667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
10668 $as_echo "$TAIL" >&6; }
10669 else
10670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10671 $as_echo "no" >&6; }
10672 fi
10673 
10674 
10675   test -n "$TAIL" && break
10676 done
10677 
10678   else
10679     # The variable is set, but is it from the command line or the environment?
10680 
10681     # Try to remove the string !TAIL! from our list.
10682     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/}
10683     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10684       # If it failed, the variable was not from the command line. Ignore it,
10685       # but warn the user (except for BASH, which is always set by the calling BASH).
10686       if test "xTAIL" != xBASH; then
10687         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5
10688 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;}
10689       fi
10690       # Try to locate tool using the code snippet
10691       for ac_prog in tail
10692 do
10693   # Extract the first word of "$ac_prog", so it can be a program name with args.
10694 set dummy $ac_prog; ac_word=$2
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10696 $as_echo_n "checking for $ac_word... " >&6; }
10697 if ${ac_cv_path_TAIL+:} false; then :
10698   $as_echo_n "(cached) " >&6
10699 else
10700   case $TAIL in
10701   [\\/]* | ?:[\\/]*)
10702   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
10703   ;;
10704   *)
10705   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10706 for as_dir in $PATH
10707 do
10708   IFS=$as_save_IFS
10709   test -z "$as_dir" && as_dir=.
10710     for ac_exec_ext in '' $ac_executable_extensions; do
10711   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10712     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
10713     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10714     break 2
10715   fi
10716 done
10717   done
10718 IFS=$as_save_IFS
10719 
10720   ;;
10721 esac
10722 fi
10723 TAIL=$ac_cv_path_TAIL
10724 if test -n "$TAIL"; then
10725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
10726 $as_echo "$TAIL" >&6; }
10727 else
10728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10729 $as_echo "no" >&6; }
10730 fi
10731 
10732 
10733   test -n "$TAIL" && break
10734 done
10735 
10736     else
10737       # If it succeeded, then it was overridden by the user. We will use it
10738       # for the tool.
10739 
10740       # First remove it from the list of overridden variables, so we can test
10741       # for unknown variables in the end.
10742       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10743 
10744       # Check if we try to supply an empty value
10745       if test "x$TAIL" = x; then
10746         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TAIL= (no value)" >&5
10747 $as_echo "$as_me: Setting user supplied tool TAIL= (no value)" >&6;}
10748         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5
10749 $as_echo_n "checking for TAIL... " >&6; }
10750         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10751 $as_echo "disabled" >&6; }
10752       else
10753         # Check if the provided tool contains a complete path.
10754         tool_specified="$TAIL"
10755         tool_basename="${tool_specified##*/}"
10756         if test "x$tool_basename" = "x$tool_specified"; then
10757           # A command without a complete path is provided, search $PATH.
10758           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5
10759 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;}
10760           # Extract the first word of "$tool_basename", so it can be a program name with args.
10761 set dummy $tool_basename; ac_word=$2
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10763 $as_echo_n "checking for $ac_word... " >&6; }
10764 if ${ac_cv_path_TAIL+:} false; then :
10765   $as_echo_n "(cached) " >&6
10766 else
10767   case $TAIL in
10768   [\\/]* | ?:[\\/]*)
10769   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
10770   ;;
10771   *)
10772   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10773 for as_dir in $PATH
10774 do
10775   IFS=$as_save_IFS
10776   test -z "$as_dir" && as_dir=.
10777     for ac_exec_ext in '' $ac_executable_extensions; do
10778   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10779     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
10780     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10781     break 2
10782   fi
10783 done
10784   done
10785 IFS=$as_save_IFS
10786 
10787   ;;
10788 esac
10789 fi
10790 TAIL=$ac_cv_path_TAIL
10791 if test -n "$TAIL"; then
10792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
10793 $as_echo "$TAIL" >&6; }
10794 else
10795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10796 $as_echo "no" >&6; }
10797 fi
10798 
10799 
10800           if test "x$TAIL" = x; then
10801             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10802           fi
10803         else
10804           # Otherwise we believe it is a complete path. Use it as it is.
10805           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5
10806 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;}
10807           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5
10808 $as_echo_n "checking for TAIL... " >&6; }
10809           if test ! -x "$tool_specified"; then
10810             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10811 $as_echo "not found" >&6; }
10812             as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5
10813           fi
10814           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10815 $as_echo "$tool_specified" >&6; }
10816         fi
10817       fi
10818     fi
10819 
10820   fi
10821 
10822 
10823 
10824   if test "x$TAIL" = x; then
10825     as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5
10826   fi
10827 
10828 
10829 
10830 
10831 
10832   # Publish this variable in the help.
10833 
10834 
10835   if [ -z "${TAR+x}" ]; then
10836     # The variable is not set by user, try to locate tool using the code snippet
10837     for ac_prog in tar
10838 do
10839   # Extract the first word of "$ac_prog", so it can be a program name with args.
10840 set dummy $ac_prog; ac_word=$2
10841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10842 $as_echo_n "checking for $ac_word... " >&6; }
10843 if ${ac_cv_path_TAR+:} false; then :
10844   $as_echo_n "(cached) " >&6
10845 else
10846   case $TAR in
10847   [\\/]* | ?:[\\/]*)
10848   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
10849   ;;
10850   *)
10851   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10852 for as_dir in $PATH
10853 do
10854   IFS=$as_save_IFS
10855   test -z "$as_dir" && as_dir=.
10856     for ac_exec_ext in '' $ac_executable_extensions; do
10857   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10858     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
10859     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10860     break 2
10861   fi
10862 done
10863   done
10864 IFS=$as_save_IFS
10865 
10866   ;;
10867 esac
10868 fi
10869 TAR=$ac_cv_path_TAR
10870 if test -n "$TAR"; then
10871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
10872 $as_echo "$TAR" >&6; }
10873 else
10874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10875 $as_echo "no" >&6; }
10876 fi
10877 
10878 
10879   test -n "$TAR" && break
10880 done
10881 
10882   else
10883     # The variable is set, but is it from the command line or the environment?
10884 
10885     # Try to remove the string !TAR! from our list.
10886     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/}
10887     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10888       # If it failed, the variable was not from the command line. Ignore it,
10889       # but warn the user (except for BASH, which is always set by the calling BASH).
10890       if test "xTAR" != xBASH; then
10891         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5
10892 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;}
10893       fi
10894       # Try to locate tool using the code snippet
10895       for ac_prog in tar
10896 do
10897   # Extract the first word of "$ac_prog", so it can be a program name with args.
10898 set dummy $ac_prog; ac_word=$2
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10900 $as_echo_n "checking for $ac_word... " >&6; }
10901 if ${ac_cv_path_TAR+:} false; then :
10902   $as_echo_n "(cached) " >&6
10903 else
10904   case $TAR in
10905   [\\/]* | ?:[\\/]*)
10906   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
10907   ;;
10908   *)
10909   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10910 for as_dir in $PATH
10911 do
10912   IFS=$as_save_IFS
10913   test -z "$as_dir" && as_dir=.
10914     for ac_exec_ext in '' $ac_executable_extensions; do
10915   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10916     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
10917     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10918     break 2
10919   fi
10920 done
10921   done
10922 IFS=$as_save_IFS
10923 
10924   ;;
10925 esac
10926 fi
10927 TAR=$ac_cv_path_TAR
10928 if test -n "$TAR"; then
10929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
10930 $as_echo "$TAR" >&6; }
10931 else
10932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10933 $as_echo "no" >&6; }
10934 fi
10935 
10936 
10937   test -n "$TAR" && break
10938 done
10939 
10940     else
10941       # If it succeeded, then it was overridden by the user. We will use it
10942       # for the tool.
10943 
10944       # First remove it from the list of overridden variables, so we can test
10945       # for unknown variables in the end.
10946       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10947 
10948       # Check if we try to supply an empty value
10949       if test "x$TAR" = x; then
10950         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TAR= (no value)" >&5
10951 $as_echo "$as_me: Setting user supplied tool TAR= (no value)" >&6;}
10952         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
10953 $as_echo_n "checking for TAR... " >&6; }
10954         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10955 $as_echo "disabled" >&6; }
10956       else
10957         # Check if the provided tool contains a complete path.
10958         tool_specified="$TAR"
10959         tool_basename="${tool_specified##*/}"
10960         if test "x$tool_basename" = "x$tool_specified"; then
10961           # A command without a complete path is provided, search $PATH.
10962           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5
10963 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;}
10964           # Extract the first word of "$tool_basename", so it can be a program name with args.
10965 set dummy $tool_basename; ac_word=$2
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10967 $as_echo_n "checking for $ac_word... " >&6; }
10968 if ${ac_cv_path_TAR+:} false; then :
10969   $as_echo_n "(cached) " >&6
10970 else
10971   case $TAR in
10972   [\\/]* | ?:[\\/]*)
10973   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
10974   ;;
10975   *)
10976   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10977 for as_dir in $PATH
10978 do
10979   IFS=$as_save_IFS
10980   test -z "$as_dir" && as_dir=.
10981     for ac_exec_ext in '' $ac_executable_extensions; do
10982   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10983     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
10984     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10985     break 2
10986   fi
10987 done
10988   done
10989 IFS=$as_save_IFS
10990 
10991   ;;
10992 esac
10993 fi
10994 TAR=$ac_cv_path_TAR
10995 if test -n "$TAR"; then
10996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
10997 $as_echo "$TAR" >&6; }
10998 else
10999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11000 $as_echo "no" >&6; }
11001 fi
11002 
11003 
11004           if test "x$TAR" = x; then
11005             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11006           fi
11007         else
11008           # Otherwise we believe it is a complete path. Use it as it is.
11009           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5
11010 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;}
11011           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
11012 $as_echo_n "checking for TAR... " >&6; }
11013           if test ! -x "$tool_specified"; then
11014             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11015 $as_echo "not found" >&6; }
11016             as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5
11017           fi
11018           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11019 $as_echo "$tool_specified" >&6; }
11020         fi
11021       fi
11022     fi
11023 
11024   fi
11025 
11026 
11027 
11028   if test "x$TAR" = x; then
11029     as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5
11030   fi
11031 
11032 
11033 
11034 
11035 
11036   # Publish this variable in the help.
11037 
11038 
11039   if [ -z "${TEE+x}" ]; then
11040     # The variable is not set by user, try to locate tool using the code snippet
11041     for ac_prog in tee
11042 do
11043   # Extract the first word of "$ac_prog", so it can be a program name with args.
11044 set dummy $ac_prog; ac_word=$2
11045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11046 $as_echo_n "checking for $ac_word... " >&6; }
11047 if ${ac_cv_path_TEE+:} false; then :
11048   $as_echo_n "(cached) " >&6
11049 else
11050   case $TEE in
11051   [\\/]* | ?:[\\/]*)
11052   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
11053   ;;
11054   *)
11055   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11056 for as_dir in $PATH
11057 do
11058   IFS=$as_save_IFS
11059   test -z "$as_dir" && as_dir=.
11060     for ac_exec_ext in '' $ac_executable_extensions; do
11061   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11062     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
11063     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11064     break 2
11065   fi
11066 done
11067   done
11068 IFS=$as_save_IFS
11069 
11070   ;;
11071 esac
11072 fi
11073 TEE=$ac_cv_path_TEE
11074 if test -n "$TEE"; then
11075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
11076 $as_echo "$TEE" >&6; }
11077 else
11078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11079 $as_echo "no" >&6; }
11080 fi
11081 
11082 
11083   test -n "$TEE" && break
11084 done
11085 
11086   else
11087     # The variable is set, but is it from the command line or the environment?
11088 
11089     # Try to remove the string !TEE! from our list.
11090     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/}
11091     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11092       # If it failed, the variable was not from the command line. Ignore it,
11093       # but warn the user (except for BASH, which is always set by the calling BASH).
11094       if test "xTEE" != xBASH; then
11095         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5
11096 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;}
11097       fi
11098       # Try to locate tool using the code snippet
11099       for ac_prog in tee
11100 do
11101   # Extract the first word of "$ac_prog", so it can be a program name with args.
11102 set dummy $ac_prog; ac_word=$2
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11104 $as_echo_n "checking for $ac_word... " >&6; }
11105 if ${ac_cv_path_TEE+:} false; then :
11106   $as_echo_n "(cached) " >&6
11107 else
11108   case $TEE in
11109   [\\/]* | ?:[\\/]*)
11110   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
11111   ;;
11112   *)
11113   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11114 for as_dir in $PATH
11115 do
11116   IFS=$as_save_IFS
11117   test -z "$as_dir" && as_dir=.
11118     for ac_exec_ext in '' $ac_executable_extensions; do
11119   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11120     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
11121     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11122     break 2
11123   fi
11124 done
11125   done
11126 IFS=$as_save_IFS
11127 
11128   ;;
11129 esac
11130 fi
11131 TEE=$ac_cv_path_TEE
11132 if test -n "$TEE"; then
11133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
11134 $as_echo "$TEE" >&6; }
11135 else
11136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11137 $as_echo "no" >&6; }
11138 fi
11139 
11140 
11141   test -n "$TEE" && break
11142 done
11143 
11144     else
11145       # If it succeeded, then it was overridden by the user. We will use it
11146       # for the tool.
11147 
11148       # First remove it from the list of overridden variables, so we can test
11149       # for unknown variables in the end.
11150       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11151 
11152       # Check if we try to supply an empty value
11153       if test "x$TEE" = x; then
11154         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TEE= (no value)" >&5
11155 $as_echo "$as_me: Setting user supplied tool TEE= (no value)" >&6;}
11156         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5
11157 $as_echo_n "checking for TEE... " >&6; }
11158         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11159 $as_echo "disabled" >&6; }
11160       else
11161         # Check if the provided tool contains a complete path.
11162         tool_specified="$TEE"
11163         tool_basename="${tool_specified##*/}"
11164         if test "x$tool_basename" = "x$tool_specified"; then
11165           # A command without a complete path is provided, search $PATH.
11166           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5
11167 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;}
11168           # Extract the first word of "$tool_basename", so it can be a program name with args.
11169 set dummy $tool_basename; ac_word=$2
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11171 $as_echo_n "checking for $ac_word... " >&6; }
11172 if ${ac_cv_path_TEE+:} false; then :
11173   $as_echo_n "(cached) " >&6
11174 else
11175   case $TEE in
11176   [\\/]* | ?:[\\/]*)
11177   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
11178   ;;
11179   *)
11180   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11181 for as_dir in $PATH
11182 do
11183   IFS=$as_save_IFS
11184   test -z "$as_dir" && as_dir=.
11185     for ac_exec_ext in '' $ac_executable_extensions; do
11186   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11187     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
11188     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11189     break 2
11190   fi
11191 done
11192   done
11193 IFS=$as_save_IFS
11194 
11195   ;;
11196 esac
11197 fi
11198 TEE=$ac_cv_path_TEE
11199 if test -n "$TEE"; then
11200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
11201 $as_echo "$TEE" >&6; }
11202 else
11203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11204 $as_echo "no" >&6; }
11205 fi
11206 
11207 
11208           if test "x$TEE" = x; then
11209             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11210           fi
11211         else
11212           # Otherwise we believe it is a complete path. Use it as it is.
11213           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5
11214 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;}
11215           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5
11216 $as_echo_n "checking for TEE... " >&6; }
11217           if test ! -x "$tool_specified"; then
11218             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11219 $as_echo "not found" >&6; }
11220             as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5
11221           fi
11222           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11223 $as_echo "$tool_specified" >&6; }
11224         fi
11225       fi
11226     fi
11227 
11228   fi
11229 
11230 
11231 
11232   if test "x$TEE" = x; then
11233     as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5
11234   fi
11235 
11236 
11237 
11238 
11239 
11240   # Publish this variable in the help.
11241 
11242 
11243   if [ -z "${TOUCH+x}" ]; then
11244     # The variable is not set by user, try to locate tool using the code snippet
11245     for ac_prog in touch
11246 do
11247   # Extract the first word of "$ac_prog", so it can be a program name with args.
11248 set dummy $ac_prog; ac_word=$2
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11250 $as_echo_n "checking for $ac_word... " >&6; }
11251 if ${ac_cv_path_TOUCH+:} false; then :
11252   $as_echo_n "(cached) " >&6
11253 else
11254   case $TOUCH in
11255   [\\/]* | ?:[\\/]*)
11256   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
11257   ;;
11258   *)
11259   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11260 for as_dir in $PATH
11261 do
11262   IFS=$as_save_IFS
11263   test -z "$as_dir" && as_dir=.
11264     for ac_exec_ext in '' $ac_executable_extensions; do
11265   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11266     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
11267     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11268     break 2
11269   fi
11270 done
11271   done
11272 IFS=$as_save_IFS
11273 
11274   ;;
11275 esac
11276 fi
11277 TOUCH=$ac_cv_path_TOUCH
11278 if test -n "$TOUCH"; then
11279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
11280 $as_echo "$TOUCH" >&6; }
11281 else
11282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11283 $as_echo "no" >&6; }
11284 fi
11285 
11286 
11287   test -n "$TOUCH" && break
11288 done
11289 
11290   else
11291     # The variable is set, but is it from the command line or the environment?
11292 
11293     # Try to remove the string !TOUCH! from our list.
11294     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/}
11295     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11296       # If it failed, the variable was not from the command line. Ignore it,
11297       # but warn the user (except for BASH, which is always set by the calling BASH).
11298       if test "xTOUCH" != xBASH; then
11299         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5
11300 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;}
11301       fi
11302       # Try to locate tool using the code snippet
11303       for ac_prog in touch
11304 do
11305   # Extract the first word of "$ac_prog", so it can be a program name with args.
11306 set dummy $ac_prog; ac_word=$2
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11308 $as_echo_n "checking for $ac_word... " >&6; }
11309 if ${ac_cv_path_TOUCH+:} false; then :
11310   $as_echo_n "(cached) " >&6
11311 else
11312   case $TOUCH in
11313   [\\/]* | ?:[\\/]*)
11314   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
11315   ;;
11316   *)
11317   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11318 for as_dir in $PATH
11319 do
11320   IFS=$as_save_IFS
11321   test -z "$as_dir" && as_dir=.
11322     for ac_exec_ext in '' $ac_executable_extensions; do
11323   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11324     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
11325     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11326     break 2
11327   fi
11328 done
11329   done
11330 IFS=$as_save_IFS
11331 
11332   ;;
11333 esac
11334 fi
11335 TOUCH=$ac_cv_path_TOUCH
11336 if test -n "$TOUCH"; then
11337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
11338 $as_echo "$TOUCH" >&6; }
11339 else
11340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11341 $as_echo "no" >&6; }
11342 fi
11343 
11344 
11345   test -n "$TOUCH" && break
11346 done
11347 
11348     else
11349       # If it succeeded, then it was overridden by the user. We will use it
11350       # for the tool.
11351 
11352       # First remove it from the list of overridden variables, so we can test
11353       # for unknown variables in the end.
11354       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11355 
11356       # Check if we try to supply an empty value
11357       if test "x$TOUCH" = x; then
11358         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TOUCH= (no value)" >&5
11359 $as_echo "$as_me: Setting user supplied tool TOUCH= (no value)" >&6;}
11360         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5
11361 $as_echo_n "checking for TOUCH... " >&6; }
11362         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11363 $as_echo "disabled" >&6; }
11364       else
11365         # Check if the provided tool contains a complete path.
11366         tool_specified="$TOUCH"
11367         tool_basename="${tool_specified##*/}"
11368         if test "x$tool_basename" = "x$tool_specified"; then
11369           # A command without a complete path is provided, search $PATH.
11370           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5
11371 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;}
11372           # Extract the first word of "$tool_basename", so it can be a program name with args.
11373 set dummy $tool_basename; ac_word=$2
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11375 $as_echo_n "checking for $ac_word... " >&6; }
11376 if ${ac_cv_path_TOUCH+:} false; then :
11377   $as_echo_n "(cached) " >&6
11378 else
11379   case $TOUCH in
11380   [\\/]* | ?:[\\/]*)
11381   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
11382   ;;
11383   *)
11384   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11385 for as_dir in $PATH
11386 do
11387   IFS=$as_save_IFS
11388   test -z "$as_dir" && as_dir=.
11389     for ac_exec_ext in '' $ac_executable_extensions; do
11390   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11391     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
11392     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11393     break 2
11394   fi
11395 done
11396   done
11397 IFS=$as_save_IFS
11398 
11399   ;;
11400 esac
11401 fi
11402 TOUCH=$ac_cv_path_TOUCH
11403 if test -n "$TOUCH"; then
11404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
11405 $as_echo "$TOUCH" >&6; }
11406 else
11407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11408 $as_echo "no" >&6; }
11409 fi
11410 
11411 
11412           if test "x$TOUCH" = x; then
11413             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11414           fi
11415         else
11416           # Otherwise we believe it is a complete path. Use it as it is.
11417           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5
11418 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;}
11419           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5
11420 $as_echo_n "checking for TOUCH... " >&6; }
11421           if test ! -x "$tool_specified"; then
11422             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11423 $as_echo "not found" >&6; }
11424             as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5
11425           fi
11426           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11427 $as_echo "$tool_specified" >&6; }
11428         fi
11429       fi
11430     fi
11431 
11432   fi
11433 
11434 
11435 
11436   if test "x$TOUCH" = x; then
11437     as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5
11438   fi
11439 
11440 
11441 
11442 
11443 
11444   # Publish this variable in the help.
11445 
11446 
11447   if [ -z "${TR+x}" ]; then
11448     # The variable is not set by user, try to locate tool using the code snippet
11449     for ac_prog in tr
11450 do
11451   # Extract the first word of "$ac_prog", so it can be a program name with args.
11452 set dummy $ac_prog; ac_word=$2
11453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11454 $as_echo_n "checking for $ac_word... " >&6; }
11455 if ${ac_cv_path_TR+:} false; then :
11456   $as_echo_n "(cached) " >&6
11457 else
11458   case $TR in
11459   [\\/]* | ?:[\\/]*)
11460   ac_cv_path_TR="$TR" # Let the user override the test with a path.
11461   ;;
11462   *)
11463   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11464 for as_dir in $PATH
11465 do
11466   IFS=$as_save_IFS
11467   test -z "$as_dir" && as_dir=.
11468     for ac_exec_ext in '' $ac_executable_extensions; do
11469   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11470     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
11471     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11472     break 2
11473   fi
11474 done
11475   done
11476 IFS=$as_save_IFS
11477 
11478   ;;
11479 esac
11480 fi
11481 TR=$ac_cv_path_TR
11482 if test -n "$TR"; then
11483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
11484 $as_echo "$TR" >&6; }
11485 else
11486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11487 $as_echo "no" >&6; }
11488 fi
11489 
11490 
11491   test -n "$TR" && break
11492 done
11493 
11494   else
11495     # The variable is set, but is it from the command line or the environment?
11496 
11497     # Try to remove the string !TR! from our list.
11498     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/}
11499     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11500       # If it failed, the variable was not from the command line. Ignore it,
11501       # but warn the user (except for BASH, which is always set by the calling BASH).
11502       if test "xTR" != xBASH; then
11503         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5
11504 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;}
11505       fi
11506       # Try to locate tool using the code snippet
11507       for ac_prog in tr
11508 do
11509   # Extract the first word of "$ac_prog", so it can be a program name with args.
11510 set dummy $ac_prog; ac_word=$2
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11512 $as_echo_n "checking for $ac_word... " >&6; }
11513 if ${ac_cv_path_TR+:} false; then :
11514   $as_echo_n "(cached) " >&6
11515 else
11516   case $TR in
11517   [\\/]* | ?:[\\/]*)
11518   ac_cv_path_TR="$TR" # Let the user override the test with a path.
11519   ;;
11520   *)
11521   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11522 for as_dir in $PATH
11523 do
11524   IFS=$as_save_IFS
11525   test -z "$as_dir" && as_dir=.
11526     for ac_exec_ext in '' $ac_executable_extensions; do
11527   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11528     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
11529     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11530     break 2
11531   fi
11532 done
11533   done
11534 IFS=$as_save_IFS
11535 
11536   ;;
11537 esac
11538 fi
11539 TR=$ac_cv_path_TR
11540 if test -n "$TR"; then
11541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
11542 $as_echo "$TR" >&6; }
11543 else
11544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11545 $as_echo "no" >&6; }
11546 fi
11547 
11548 
11549   test -n "$TR" && break
11550 done
11551 
11552     else
11553       # If it succeeded, then it was overridden by the user. We will use it
11554       # for the tool.
11555 
11556       # First remove it from the list of overridden variables, so we can test
11557       # for unknown variables in the end.
11558       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11559 
11560       # Check if we try to supply an empty value
11561       if test "x$TR" = x; then
11562         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TR= (no value)" >&5
11563 $as_echo "$as_me: Setting user supplied tool TR= (no value)" >&6;}
11564         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5
11565 $as_echo_n "checking for TR... " >&6; }
11566         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11567 $as_echo "disabled" >&6; }
11568       else
11569         # Check if the provided tool contains a complete path.
11570         tool_specified="$TR"
11571         tool_basename="${tool_specified##*/}"
11572         if test "x$tool_basename" = "x$tool_specified"; then
11573           # A command without a complete path is provided, search $PATH.
11574           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5
11575 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;}
11576           # Extract the first word of "$tool_basename", so it can be a program name with args.
11577 set dummy $tool_basename; ac_word=$2
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11579 $as_echo_n "checking for $ac_word... " >&6; }
11580 if ${ac_cv_path_TR+:} false; then :
11581   $as_echo_n "(cached) " >&6
11582 else
11583   case $TR in
11584   [\\/]* | ?:[\\/]*)
11585   ac_cv_path_TR="$TR" # Let the user override the test with a path.
11586   ;;
11587   *)
11588   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11589 for as_dir in $PATH
11590 do
11591   IFS=$as_save_IFS
11592   test -z "$as_dir" && as_dir=.
11593     for ac_exec_ext in '' $ac_executable_extensions; do
11594   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11595     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
11596     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11597     break 2
11598   fi
11599 done
11600   done
11601 IFS=$as_save_IFS
11602 
11603   ;;
11604 esac
11605 fi
11606 TR=$ac_cv_path_TR
11607 if test -n "$TR"; then
11608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
11609 $as_echo "$TR" >&6; }
11610 else
11611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11612 $as_echo "no" >&6; }
11613 fi
11614 
11615 
11616           if test "x$TR" = x; then
11617             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11618           fi
11619         else
11620           # Otherwise we believe it is a complete path. Use it as it is.
11621           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5
11622 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;}
11623           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5
11624 $as_echo_n "checking for TR... " >&6; }
11625           if test ! -x "$tool_specified"; then
11626             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11627 $as_echo "not found" >&6; }
11628             as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5
11629           fi
11630           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11631 $as_echo "$tool_specified" >&6; }
11632         fi
11633       fi
11634     fi
11635 
11636   fi
11637 
11638 
11639 
11640   if test "x$TR" = x; then
11641     as_fn_error $? "Could not find required tool for TR" "$LINENO" 5
11642   fi
11643 
11644 
11645 
11646 
11647 
11648   # Publish this variable in the help.
11649 
11650 
11651   if [ -z "${UNAME+x}" ]; then
11652     # The variable is not set by user, try to locate tool using the code snippet
11653     for ac_prog in uname
11654 do
11655   # Extract the first word of "$ac_prog", so it can be a program name with args.
11656 set dummy $ac_prog; ac_word=$2
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11658 $as_echo_n "checking for $ac_word... " >&6; }
11659 if ${ac_cv_path_UNAME+:} false; then :
11660   $as_echo_n "(cached) " >&6
11661 else
11662   case $UNAME in
11663   [\\/]* | ?:[\\/]*)
11664   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
11665   ;;
11666   *)
11667   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11668 for as_dir in $PATH
11669 do
11670   IFS=$as_save_IFS
11671   test -z "$as_dir" && as_dir=.
11672     for ac_exec_ext in '' $ac_executable_extensions; do
11673   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11674     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
11675     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11676     break 2
11677   fi
11678 done
11679   done
11680 IFS=$as_save_IFS
11681 
11682   ;;
11683 esac
11684 fi
11685 UNAME=$ac_cv_path_UNAME
11686 if test -n "$UNAME"; then
11687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
11688 $as_echo "$UNAME" >&6; }
11689 else
11690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11691 $as_echo "no" >&6; }
11692 fi
11693 
11694 
11695   test -n "$UNAME" && break
11696 done
11697 
11698   else
11699     # The variable is set, but is it from the command line or the environment?
11700 
11701     # Try to remove the string !UNAME! from our list.
11702     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/}
11703     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11704       # If it failed, the variable was not from the command line. Ignore it,
11705       # but warn the user (except for BASH, which is always set by the calling BASH).
11706       if test "xUNAME" != xBASH; then
11707         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5
11708 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;}
11709       fi
11710       # Try to locate tool using the code snippet
11711       for ac_prog in uname
11712 do
11713   # Extract the first word of "$ac_prog", so it can be a program name with args.
11714 set dummy $ac_prog; ac_word=$2
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11716 $as_echo_n "checking for $ac_word... " >&6; }
11717 if ${ac_cv_path_UNAME+:} false; then :
11718   $as_echo_n "(cached) " >&6
11719 else
11720   case $UNAME in
11721   [\\/]* | ?:[\\/]*)
11722   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
11723   ;;
11724   *)
11725   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11726 for as_dir in $PATH
11727 do
11728   IFS=$as_save_IFS
11729   test -z "$as_dir" && as_dir=.
11730     for ac_exec_ext in '' $ac_executable_extensions; do
11731   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11732     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
11733     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11734     break 2
11735   fi
11736 done
11737   done
11738 IFS=$as_save_IFS
11739 
11740   ;;
11741 esac
11742 fi
11743 UNAME=$ac_cv_path_UNAME
11744 if test -n "$UNAME"; then
11745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
11746 $as_echo "$UNAME" >&6; }
11747 else
11748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11749 $as_echo "no" >&6; }
11750 fi
11751 
11752 
11753   test -n "$UNAME" && break
11754 done
11755 
11756     else
11757       # If it succeeded, then it was overridden by the user. We will use it
11758       # for the tool.
11759 
11760       # First remove it from the list of overridden variables, so we can test
11761       # for unknown variables in the end.
11762       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11763 
11764       # Check if we try to supply an empty value
11765       if test "x$UNAME" = x; then
11766         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNAME= (no value)" >&5
11767 $as_echo "$as_me: Setting user supplied tool UNAME= (no value)" >&6;}
11768         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5
11769 $as_echo_n "checking for UNAME... " >&6; }
11770         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11771 $as_echo "disabled" >&6; }
11772       else
11773         # Check if the provided tool contains a complete path.
11774         tool_specified="$UNAME"
11775         tool_basename="${tool_specified##*/}"
11776         if test "x$tool_basename" = "x$tool_specified"; then
11777           # A command without a complete path is provided, search $PATH.
11778           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5
11779 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;}
11780           # Extract the first word of "$tool_basename", so it can be a program name with args.
11781 set dummy $tool_basename; ac_word=$2
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11783 $as_echo_n "checking for $ac_word... " >&6; }
11784 if ${ac_cv_path_UNAME+:} false; then :
11785   $as_echo_n "(cached) " >&6
11786 else
11787   case $UNAME in
11788   [\\/]* | ?:[\\/]*)
11789   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
11790   ;;
11791   *)
11792   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11793 for as_dir in $PATH
11794 do
11795   IFS=$as_save_IFS
11796   test -z "$as_dir" && as_dir=.
11797     for ac_exec_ext in '' $ac_executable_extensions; do
11798   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11799     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
11800     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11801     break 2
11802   fi
11803 done
11804   done
11805 IFS=$as_save_IFS
11806 
11807   ;;
11808 esac
11809 fi
11810 UNAME=$ac_cv_path_UNAME
11811 if test -n "$UNAME"; then
11812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
11813 $as_echo "$UNAME" >&6; }
11814 else
11815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11816 $as_echo "no" >&6; }
11817 fi
11818 
11819 
11820           if test "x$UNAME" = x; then
11821             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11822           fi
11823         else
11824           # Otherwise we believe it is a complete path. Use it as it is.
11825           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5
11826 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;}
11827           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5
11828 $as_echo_n "checking for UNAME... " >&6; }
11829           if test ! -x "$tool_specified"; then
11830             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11831 $as_echo "not found" >&6; }
11832             as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
11833           fi
11834           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11835 $as_echo "$tool_specified" >&6; }
11836         fi
11837       fi
11838     fi
11839 
11840   fi
11841 
11842 
11843 
11844   if test "x$UNAME" = x; then
11845     as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5
11846   fi
11847 
11848 
11849 
11850 
11851 
11852   # Publish this variable in the help.
11853 
11854 
11855   if [ -z "${UNIQ+x}" ]; then
11856     # The variable is not set by user, try to locate tool using the code snippet
11857     for ac_prog in uniq
11858 do
11859   # Extract the first word of "$ac_prog", so it can be a program name with args.
11860 set dummy $ac_prog; ac_word=$2
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11862 $as_echo_n "checking for $ac_word... " >&6; }
11863 if ${ac_cv_path_UNIQ+:} false; then :
11864   $as_echo_n "(cached) " >&6
11865 else
11866   case $UNIQ in
11867   [\\/]* | ?:[\\/]*)
11868   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
11869   ;;
11870   *)
11871   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11872 for as_dir in $PATH
11873 do
11874   IFS=$as_save_IFS
11875   test -z "$as_dir" && as_dir=.
11876     for ac_exec_ext in '' $ac_executable_extensions; do
11877   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11878     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
11879     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11880     break 2
11881   fi
11882 done
11883   done
11884 IFS=$as_save_IFS
11885 
11886   ;;
11887 esac
11888 fi
11889 UNIQ=$ac_cv_path_UNIQ
11890 if test -n "$UNIQ"; then
11891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
11892 $as_echo "$UNIQ" >&6; }
11893 else
11894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11895 $as_echo "no" >&6; }
11896 fi
11897 
11898 
11899   test -n "$UNIQ" && break
11900 done
11901 
11902   else
11903     # The variable is set, but is it from the command line or the environment?
11904 
11905     # Try to remove the string !UNIQ! from our list.
11906     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/}
11907     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11908       # If it failed, the variable was not from the command line. Ignore it,
11909       # but warn the user (except for BASH, which is always set by the calling BASH).
11910       if test "xUNIQ" != xBASH; then
11911         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5
11912 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;}
11913       fi
11914       # Try to locate tool using the code snippet
11915       for ac_prog in uniq
11916 do
11917   # Extract the first word of "$ac_prog", so it can be a program name with args.
11918 set dummy $ac_prog; ac_word=$2
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11920 $as_echo_n "checking for $ac_word... " >&6; }
11921 if ${ac_cv_path_UNIQ+:} false; then :
11922   $as_echo_n "(cached) " >&6
11923 else
11924   case $UNIQ in
11925   [\\/]* | ?:[\\/]*)
11926   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
11927   ;;
11928   *)
11929   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11930 for as_dir in $PATH
11931 do
11932   IFS=$as_save_IFS
11933   test -z "$as_dir" && as_dir=.
11934     for ac_exec_ext in '' $ac_executable_extensions; do
11935   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11936     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
11937     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11938     break 2
11939   fi
11940 done
11941   done
11942 IFS=$as_save_IFS
11943 
11944   ;;
11945 esac
11946 fi
11947 UNIQ=$ac_cv_path_UNIQ
11948 if test -n "$UNIQ"; then
11949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
11950 $as_echo "$UNIQ" >&6; }
11951 else
11952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11953 $as_echo "no" >&6; }
11954 fi
11955 
11956 
11957   test -n "$UNIQ" && break
11958 done
11959 
11960     else
11961       # If it succeeded, then it was overridden by the user. We will use it
11962       # for the tool.
11963 
11964       # First remove it from the list of overridden variables, so we can test
11965       # for unknown variables in the end.
11966       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11967 
11968       # Check if we try to supply an empty value
11969       if test "x$UNIQ" = x; then
11970         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNIQ= (no value)" >&5
11971 $as_echo "$as_me: Setting user supplied tool UNIQ= (no value)" >&6;}
11972         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5
11973 $as_echo_n "checking for UNIQ... " >&6; }
11974         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11975 $as_echo "disabled" >&6; }
11976       else
11977         # Check if the provided tool contains a complete path.
11978         tool_specified="$UNIQ"
11979         tool_basename="${tool_specified##*/}"
11980         if test "x$tool_basename" = "x$tool_specified"; then
11981           # A command without a complete path is provided, search $PATH.
11982           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5
11983 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;}
11984           # Extract the first word of "$tool_basename", so it can be a program name with args.
11985 set dummy $tool_basename; ac_word=$2
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11987 $as_echo_n "checking for $ac_word... " >&6; }
11988 if ${ac_cv_path_UNIQ+:} false; then :
11989   $as_echo_n "(cached) " >&6
11990 else
11991   case $UNIQ in
11992   [\\/]* | ?:[\\/]*)
11993   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
11994   ;;
11995   *)
11996   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11997 for as_dir in $PATH
11998 do
11999   IFS=$as_save_IFS
12000   test -z "$as_dir" && as_dir=.
12001     for ac_exec_ext in '' $ac_executable_extensions; do
12002   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12003     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
12004     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12005     break 2
12006   fi
12007 done
12008   done
12009 IFS=$as_save_IFS
12010 
12011   ;;
12012 esac
12013 fi
12014 UNIQ=$ac_cv_path_UNIQ
12015 if test -n "$UNIQ"; then
12016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
12017 $as_echo "$UNIQ" >&6; }
12018 else
12019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12020 $as_echo "no" >&6; }
12021 fi
12022 
12023 
12024           if test "x$UNIQ" = x; then
12025             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12026           fi
12027         else
12028           # Otherwise we believe it is a complete path. Use it as it is.
12029           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5
12030 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;}
12031           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5
12032 $as_echo_n "checking for UNIQ... " >&6; }
12033           if test ! -x "$tool_specified"; then
12034             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12035 $as_echo "not found" >&6; }
12036             as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5
12037           fi
12038           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12039 $as_echo "$tool_specified" >&6; }
12040         fi
12041       fi
12042     fi
12043 
12044   fi
12045 
12046 
12047 
12048   if test "x$UNIQ" = x; then
12049     as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5
12050   fi
12051 
12052 
12053 
12054 
12055 
12056   # Publish this variable in the help.
12057 
12058 
12059   if [ -z "${WC+x}" ]; then
12060     # The variable is not set by user, try to locate tool using the code snippet
12061     for ac_prog in wc
12062 do
12063   # Extract the first word of "$ac_prog", so it can be a program name with args.
12064 set dummy $ac_prog; ac_word=$2
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12066 $as_echo_n "checking for $ac_word... " >&6; }
12067 if ${ac_cv_path_WC+:} false; then :
12068   $as_echo_n "(cached) " >&6
12069 else
12070   case $WC in
12071   [\\/]* | ?:[\\/]*)
12072   ac_cv_path_WC="$WC" # Let the user override the test with a path.
12073   ;;
12074   *)
12075   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12076 for as_dir in $PATH
12077 do
12078   IFS=$as_save_IFS
12079   test -z "$as_dir" && as_dir=.
12080     for ac_exec_ext in '' $ac_executable_extensions; do
12081   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12082     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
12083     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12084     break 2
12085   fi
12086 done
12087   done
12088 IFS=$as_save_IFS
12089 
12090   ;;
12091 esac
12092 fi
12093 WC=$ac_cv_path_WC
12094 if test -n "$WC"; then
12095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
12096 $as_echo "$WC" >&6; }
12097 else
12098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12099 $as_echo "no" >&6; }
12100 fi
12101 
12102 
12103   test -n "$WC" && break
12104 done
12105 
12106   else
12107     # The variable is set, but is it from the command line or the environment?
12108 
12109     # Try to remove the string !WC! from our list.
12110     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/}
12111     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12112       # If it failed, the variable was not from the command line. Ignore it,
12113       # but warn the user (except for BASH, which is always set by the calling BASH).
12114       if test "xWC" != xBASH; then
12115         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5
12116 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;}
12117       fi
12118       # Try to locate tool using the code snippet
12119       for ac_prog in wc
12120 do
12121   # Extract the first word of "$ac_prog", so it can be a program name with args.
12122 set dummy $ac_prog; ac_word=$2
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12124 $as_echo_n "checking for $ac_word... " >&6; }
12125 if ${ac_cv_path_WC+:} false; then :
12126   $as_echo_n "(cached) " >&6
12127 else
12128   case $WC in
12129   [\\/]* | ?:[\\/]*)
12130   ac_cv_path_WC="$WC" # Let the user override the test with a path.
12131   ;;
12132   *)
12133   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12134 for as_dir in $PATH
12135 do
12136   IFS=$as_save_IFS
12137   test -z "$as_dir" && as_dir=.
12138     for ac_exec_ext in '' $ac_executable_extensions; do
12139   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12140     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
12141     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12142     break 2
12143   fi
12144 done
12145   done
12146 IFS=$as_save_IFS
12147 
12148   ;;
12149 esac
12150 fi
12151 WC=$ac_cv_path_WC
12152 if test -n "$WC"; then
12153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
12154 $as_echo "$WC" >&6; }
12155 else
12156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12157 $as_echo "no" >&6; }
12158 fi
12159 
12160 
12161   test -n "$WC" && break
12162 done
12163 
12164     else
12165       # If it succeeded, then it was overridden by the user. We will use it
12166       # for the tool.
12167 
12168       # First remove it from the list of overridden variables, so we can test
12169       # for unknown variables in the end.
12170       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12171 
12172       # Check if we try to supply an empty value
12173       if test "x$WC" = x; then
12174         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool WC= (no value)" >&5
12175 $as_echo "$as_me: Setting user supplied tool WC= (no value)" >&6;}
12176         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5
12177 $as_echo_n "checking for WC... " >&6; }
12178         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12179 $as_echo "disabled" >&6; }
12180       else
12181         # Check if the provided tool contains a complete path.
12182         tool_specified="$WC"
12183         tool_basename="${tool_specified##*/}"
12184         if test "x$tool_basename" = "x$tool_specified"; then
12185           # A command without a complete path is provided, search $PATH.
12186           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5
12187 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;}
12188           # Extract the first word of "$tool_basename", so it can be a program name with args.
12189 set dummy $tool_basename; ac_word=$2
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12191 $as_echo_n "checking for $ac_word... " >&6; }
12192 if ${ac_cv_path_WC+:} false; then :
12193   $as_echo_n "(cached) " >&6
12194 else
12195   case $WC in
12196   [\\/]* | ?:[\\/]*)
12197   ac_cv_path_WC="$WC" # Let the user override the test with a path.
12198   ;;
12199   *)
12200   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12201 for as_dir in $PATH
12202 do
12203   IFS=$as_save_IFS
12204   test -z "$as_dir" && as_dir=.
12205     for ac_exec_ext in '' $ac_executable_extensions; do
12206   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12207     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
12208     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12209     break 2
12210   fi
12211 done
12212   done
12213 IFS=$as_save_IFS
12214 
12215   ;;
12216 esac
12217 fi
12218 WC=$ac_cv_path_WC
12219 if test -n "$WC"; then
12220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
12221 $as_echo "$WC" >&6; }
12222 else
12223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12224 $as_echo "no" >&6; }
12225 fi
12226 
12227 
12228           if test "x$WC" = x; then
12229             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12230           fi
12231         else
12232           # Otherwise we believe it is a complete path. Use it as it is.
12233           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5
12234 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;}
12235           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5
12236 $as_echo_n "checking for WC... " >&6; }
12237           if test ! -x "$tool_specified"; then
12238             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12239 $as_echo "not found" >&6; }
12240             as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5
12241           fi
12242           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12243 $as_echo "$tool_specified" >&6; }
12244         fi
12245       fi
12246     fi
12247 
12248   fi
12249 
12250 
12251 
12252   if test "x$WC" = x; then
12253     as_fn_error $? "Could not find required tool for WC" "$LINENO" 5
12254   fi
12255 
12256 
12257 
12258 
12259 
12260   # Publish this variable in the help.
12261 
12262 
12263   if [ -z "${WHICH+x}" ]; then
12264     # The variable is not set by user, try to locate tool using the code snippet
12265     for ac_prog in which
12266 do
12267   # Extract the first word of "$ac_prog", so it can be a program name with args.
12268 set dummy $ac_prog; ac_word=$2
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12270 $as_echo_n "checking for $ac_word... " >&6; }
12271 if ${ac_cv_path_WHICH+:} false; then :
12272   $as_echo_n "(cached) " >&6
12273 else
12274   case $WHICH in
12275   [\\/]* | ?:[\\/]*)
12276   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
12277   ;;
12278   *)
12279   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12280 for as_dir in $PATH
12281 do
12282   IFS=$as_save_IFS
12283   test -z "$as_dir" && as_dir=.
12284     for ac_exec_ext in '' $ac_executable_extensions; do
12285   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12286     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
12287     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12288     break 2
12289   fi
12290 done
12291   done
12292 IFS=$as_save_IFS
12293 
12294   ;;
12295 esac
12296 fi
12297 WHICH=$ac_cv_path_WHICH
12298 if test -n "$WHICH"; then
12299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
12300 $as_echo "$WHICH" >&6; }
12301 else
12302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12303 $as_echo "no" >&6; }
12304 fi
12305 
12306 
12307   test -n "$WHICH" && break
12308 done
12309 
12310   else
12311     # The variable is set, but is it from the command line or the environment?
12312 
12313     # Try to remove the string !WHICH! from our list.
12314     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/}
12315     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12316       # If it failed, the variable was not from the command line. Ignore it,
12317       # but warn the user (except for BASH, which is always set by the calling BASH).
12318       if test "xWHICH" != xBASH; then
12319         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5
12320 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;}
12321       fi
12322       # Try to locate tool using the code snippet
12323       for ac_prog in which
12324 do
12325   # Extract the first word of "$ac_prog", so it can be a program name with args.
12326 set dummy $ac_prog; ac_word=$2
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12328 $as_echo_n "checking for $ac_word... " >&6; }
12329 if ${ac_cv_path_WHICH+:} false; then :
12330   $as_echo_n "(cached) " >&6
12331 else
12332   case $WHICH in
12333   [\\/]* | ?:[\\/]*)
12334   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
12335   ;;
12336   *)
12337   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12338 for as_dir in $PATH
12339 do
12340   IFS=$as_save_IFS
12341   test -z "$as_dir" && as_dir=.
12342     for ac_exec_ext in '' $ac_executable_extensions; do
12343   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12344     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
12345     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12346     break 2
12347   fi
12348 done
12349   done
12350 IFS=$as_save_IFS
12351 
12352   ;;
12353 esac
12354 fi
12355 WHICH=$ac_cv_path_WHICH
12356 if test -n "$WHICH"; then
12357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
12358 $as_echo "$WHICH" >&6; }
12359 else
12360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12361 $as_echo "no" >&6; }
12362 fi
12363 
12364 
12365   test -n "$WHICH" && break
12366 done
12367 
12368     else
12369       # If it succeeded, then it was overridden by the user. We will use it
12370       # for the tool.
12371 
12372       # First remove it from the list of overridden variables, so we can test
12373       # for unknown variables in the end.
12374       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12375 
12376       # Check if we try to supply an empty value
12377       if test "x$WHICH" = x; then
12378         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool WHICH= (no value)" >&5
12379 $as_echo "$as_me: Setting user supplied tool WHICH= (no value)" >&6;}
12380         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5
12381 $as_echo_n "checking for WHICH... " >&6; }
12382         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12383 $as_echo "disabled" >&6; }
12384       else
12385         # Check if the provided tool contains a complete path.
12386         tool_specified="$WHICH"
12387         tool_basename="${tool_specified##*/}"
12388         if test "x$tool_basename" = "x$tool_specified"; then
12389           # A command without a complete path is provided, search $PATH.
12390           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5
12391 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;}
12392           # Extract the first word of "$tool_basename", so it can be a program name with args.
12393 set dummy $tool_basename; ac_word=$2
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12395 $as_echo_n "checking for $ac_word... " >&6; }
12396 if ${ac_cv_path_WHICH+:} false; then :
12397   $as_echo_n "(cached) " >&6
12398 else
12399   case $WHICH in
12400   [\\/]* | ?:[\\/]*)
12401   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
12402   ;;
12403   *)
12404   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12405 for as_dir in $PATH
12406 do
12407   IFS=$as_save_IFS
12408   test -z "$as_dir" && as_dir=.
12409     for ac_exec_ext in '' $ac_executable_extensions; do
12410   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12411     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
12412     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12413     break 2
12414   fi
12415 done
12416   done
12417 IFS=$as_save_IFS
12418 
12419   ;;
12420 esac
12421 fi
12422 WHICH=$ac_cv_path_WHICH
12423 if test -n "$WHICH"; then
12424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
12425 $as_echo "$WHICH" >&6; }
12426 else
12427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12428 $as_echo "no" >&6; }
12429 fi
12430 
12431 
12432           if test "x$WHICH" = x; then
12433             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12434           fi
12435         else
12436           # Otherwise we believe it is a complete path. Use it as it is.
12437           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5
12438 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;}
12439           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5
12440 $as_echo_n "checking for WHICH... " >&6; }
12441           if test ! -x "$tool_specified"; then
12442             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12443 $as_echo "not found" >&6; }
12444             as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5
12445           fi
12446           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12447 $as_echo "$tool_specified" >&6; }
12448         fi
12449       fi
12450     fi
12451 
12452   fi
12453 
12454 
12455 
12456   if test "x$WHICH" = x; then
12457     as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5
12458   fi
12459 
12460 
12461 
12462 
12463 
12464   # Publish this variable in the help.
12465 
12466 
12467   if [ -z "${XARGS+x}" ]; then
12468     # The variable is not set by user, try to locate tool using the code snippet
12469     for ac_prog in xargs
12470 do
12471   # Extract the first word of "$ac_prog", so it can be a program name with args.
12472 set dummy $ac_prog; ac_word=$2
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12474 $as_echo_n "checking for $ac_word... " >&6; }
12475 if ${ac_cv_path_XARGS+:} false; then :
12476   $as_echo_n "(cached) " >&6
12477 else
12478   case $XARGS in
12479   [\\/]* | ?:[\\/]*)
12480   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
12481   ;;
12482   *)
12483   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12484 for as_dir in $PATH
12485 do
12486   IFS=$as_save_IFS
12487   test -z "$as_dir" && as_dir=.
12488     for ac_exec_ext in '' $ac_executable_extensions; do
12489   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12490     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
12491     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12492     break 2
12493   fi
12494 done
12495   done
12496 IFS=$as_save_IFS
12497 
12498   ;;
12499 esac
12500 fi
12501 XARGS=$ac_cv_path_XARGS
12502 if test -n "$XARGS"; then
12503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
12504 $as_echo "$XARGS" >&6; }
12505 else
12506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12507 $as_echo "no" >&6; }
12508 fi
12509 
12510 
12511   test -n "$XARGS" && break
12512 done
12513 
12514   else
12515     # The variable is set, but is it from the command line or the environment?
12516 
12517     # Try to remove the string !XARGS! from our list.
12518     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/}
12519     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12520       # If it failed, the variable was not from the command line. Ignore it,
12521       # but warn the user (except for BASH, which is always set by the calling BASH).
12522       if test "xXARGS" != xBASH; then
12523         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5
12524 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;}
12525       fi
12526       # Try to locate tool using the code snippet
12527       for ac_prog in xargs
12528 do
12529   # Extract the first word of "$ac_prog", so it can be a program name with args.
12530 set dummy $ac_prog; ac_word=$2
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12532 $as_echo_n "checking for $ac_word... " >&6; }
12533 if ${ac_cv_path_XARGS+:} false; then :
12534   $as_echo_n "(cached) " >&6
12535 else
12536   case $XARGS in
12537   [\\/]* | ?:[\\/]*)
12538   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
12539   ;;
12540   *)
12541   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12542 for as_dir in $PATH
12543 do
12544   IFS=$as_save_IFS
12545   test -z "$as_dir" && as_dir=.
12546     for ac_exec_ext in '' $ac_executable_extensions; do
12547   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12548     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
12549     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12550     break 2
12551   fi
12552 done
12553   done
12554 IFS=$as_save_IFS
12555 
12556   ;;
12557 esac
12558 fi
12559 XARGS=$ac_cv_path_XARGS
12560 if test -n "$XARGS"; then
12561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
12562 $as_echo "$XARGS" >&6; }
12563 else
12564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12565 $as_echo "no" >&6; }
12566 fi
12567 
12568 
12569   test -n "$XARGS" && break
12570 done
12571 
12572     else
12573       # If it succeeded, then it was overridden by the user. We will use it
12574       # for the tool.
12575 
12576       # First remove it from the list of overridden variables, so we can test
12577       # for unknown variables in the end.
12578       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12579 
12580       # Check if we try to supply an empty value
12581       if test "x$XARGS" = x; then
12582         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool XARGS= (no value)" >&5
12583 $as_echo "$as_me: Setting user supplied tool XARGS= (no value)" >&6;}
12584         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5
12585 $as_echo_n "checking for XARGS... " >&6; }
12586         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12587 $as_echo "disabled" >&6; }
12588       else
12589         # Check if the provided tool contains a complete path.
12590         tool_specified="$XARGS"
12591         tool_basename="${tool_specified##*/}"
12592         if test "x$tool_basename" = "x$tool_specified"; then
12593           # A command without a complete path is provided, search $PATH.
12594           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5
12595 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;}
12596           # Extract the first word of "$tool_basename", so it can be a program name with args.
12597 set dummy $tool_basename; ac_word=$2
12598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12599 $as_echo_n "checking for $ac_word... " >&6; }
12600 if ${ac_cv_path_XARGS+:} false; then :
12601   $as_echo_n "(cached) " >&6
12602 else
12603   case $XARGS in
12604   [\\/]* | ?:[\\/]*)
12605   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
12606   ;;
12607   *)
12608   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12609 for as_dir in $PATH
12610 do
12611   IFS=$as_save_IFS
12612   test -z "$as_dir" && as_dir=.
12613     for ac_exec_ext in '' $ac_executable_extensions; do
12614   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12615     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
12616     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12617     break 2
12618   fi
12619 done
12620   done
12621 IFS=$as_save_IFS
12622 
12623   ;;
12624 esac
12625 fi
12626 XARGS=$ac_cv_path_XARGS
12627 if test -n "$XARGS"; then
12628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
12629 $as_echo "$XARGS" >&6; }
12630 else
12631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12632 $as_echo "no" >&6; }
12633 fi
12634 
12635 
12636           if test "x$XARGS" = x; then
12637             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12638           fi
12639         else
12640           # Otherwise we believe it is a complete path. Use it as it is.
12641           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5
12642 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;}
12643           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5
12644 $as_echo_n "checking for XARGS... " >&6; }
12645           if test ! -x "$tool_specified"; then
12646             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12647 $as_echo "not found" >&6; }
12648             as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5
12649           fi
12650           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12651 $as_echo "$tool_specified" >&6; }
12652         fi
12653       fi
12654     fi
12655 
12656   fi
12657 
12658 
12659 
12660   if test "x$XARGS" = x; then
12661     as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5
12662   fi
12663 
12664 
12665 
12666   # Then required tools that require some special treatment.
12667 
12668 
12669   # Publish this variable in the help.
12670 
12671 
12672   if [ -z "${AWK+x}" ]; then
12673     # The variable is not set by user, try to locate tool using the code snippet
12674     for ac_prog in gawk mawk nawk awk
12675 do
12676   # Extract the first word of "$ac_prog", so it can be a program name with args.
12677 set dummy $ac_prog; 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_prog_AWK+:} false; then :
12681   $as_echo_n "(cached) " >&6
12682 else
12683   if test -n "$AWK"; then
12684   ac_cv_prog_AWK="$AWK" # Let the user override the test.
12685 else
12686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12687 for as_dir in $PATH
12688 do
12689   IFS=$as_save_IFS
12690   test -z "$as_dir" && as_dir=.
12691     for ac_exec_ext in '' $ac_executable_extensions; do
12692   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12693     ac_cv_prog_AWK="$ac_prog"
12694     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12695     break 2
12696   fi
12697 done
12698   done
12699 IFS=$as_save_IFS
12700 
12701 fi
12702 fi
12703 AWK=$ac_cv_prog_AWK
12704 if test -n "$AWK"; then
12705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
12706 $as_echo "$AWK" >&6; }
12707 else
12708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12709 $as_echo "no" >&6; }
12710 fi
12711 
12712 
12713   test -n "$AWK" && break
12714 done
12715 
12716   else
12717     # The variable is set, but is it from the command line or the environment?
12718 
12719     # Try to remove the string !AWK! from our list.
12720     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/}
12721     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12722       # If it failed, the variable was not from the command line. Ignore it,
12723       # but warn the user (except for BASH, which is always set by the calling BASH).
12724       if test "xAWK" != xBASH; then
12725         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5
12726 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;}
12727       fi
12728       # Try to locate tool using the code snippet
12729       for ac_prog in gawk mawk nawk awk
12730 do
12731   # Extract the first word of "$ac_prog", so it can be a program name with args.
12732 set dummy $ac_prog; ac_word=$2
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12734 $as_echo_n "checking for $ac_word... " >&6; }
12735 if ${ac_cv_prog_AWK+:} false; then :
12736   $as_echo_n "(cached) " >&6
12737 else
12738   if test -n "$AWK"; then
12739   ac_cv_prog_AWK="$AWK" # Let the user override the test.
12740 else
12741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12742 for as_dir in $PATH
12743 do
12744   IFS=$as_save_IFS
12745   test -z "$as_dir" && as_dir=.
12746     for ac_exec_ext in '' $ac_executable_extensions; do
12747   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12748     ac_cv_prog_AWK="$ac_prog"
12749     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12750     break 2
12751   fi
12752 done
12753   done
12754 IFS=$as_save_IFS
12755 
12756 fi
12757 fi
12758 AWK=$ac_cv_prog_AWK
12759 if test -n "$AWK"; then
12760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
12761 $as_echo "$AWK" >&6; }
12762 else
12763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12764 $as_echo "no" >&6; }
12765 fi
12766 
12767 
12768   test -n "$AWK" && break
12769 done
12770 
12771     else
12772       # If it succeeded, then it was overridden by the user. We will use it
12773       # for the tool.
12774 
12775       # First remove it from the list of overridden variables, so we can test
12776       # for unknown variables in the end.
12777       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12778 
12779       # Check if we try to supply an empty value
12780       if test "x$AWK" = x; then
12781         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AWK= (no value)" >&5
12782 $as_echo "$as_me: Setting user supplied tool AWK= (no value)" >&6;}
12783         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5
12784 $as_echo_n "checking for AWK... " >&6; }
12785         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12786 $as_echo "disabled" >&6; }
12787       else
12788         # Check if the provided tool contains a complete path.
12789         tool_specified="$AWK"
12790         tool_basename="${tool_specified##*/}"
12791         if test "x$tool_basename" = "x$tool_specified"; then
12792           # A command without a complete path is provided, search $PATH.
12793           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5
12794 $as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;}
12795           # Extract the first word of "$tool_basename", so it can be a program name with args.
12796 set dummy $tool_basename; ac_word=$2
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12798 $as_echo_n "checking for $ac_word... " >&6; }
12799 if ${ac_cv_path_AWK+:} false; then :
12800   $as_echo_n "(cached) " >&6
12801 else
12802   case $AWK in
12803   [\\/]* | ?:[\\/]*)
12804   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
12805   ;;
12806   *)
12807   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12808 for as_dir in $PATH
12809 do
12810   IFS=$as_save_IFS
12811   test -z "$as_dir" && as_dir=.
12812     for ac_exec_ext in '' $ac_executable_extensions; do
12813   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12814     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
12815     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12816     break 2
12817   fi
12818 done
12819   done
12820 IFS=$as_save_IFS
12821 
12822   ;;
12823 esac
12824 fi
12825 AWK=$ac_cv_path_AWK
12826 if test -n "$AWK"; then
12827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
12828 $as_echo "$AWK" >&6; }
12829 else
12830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12831 $as_echo "no" >&6; }
12832 fi
12833 
12834 
12835           if test "x$AWK" = x; then
12836             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12837           fi
12838         else
12839           # Otherwise we believe it is a complete path. Use it as it is.
12840           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5
12841 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;}
12842           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5
12843 $as_echo_n "checking for AWK... " >&6; }
12844           if test ! -x "$tool_specified"; then
12845             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12846 $as_echo "not found" >&6; }
12847             as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5
12848           fi
12849           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12850 $as_echo "$tool_specified" >&6; }
12851         fi
12852       fi
12853     fi
12854 
12855   fi
12856 
12857 
12858   if test "x$AWK" = x; then
12859     as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5
12860   fi
12861 
12862 
12863 
12864 
12865   # Publish this variable in the help.
12866 
12867 
12868   if [ -z "${GREP+x}" ]; then
12869     # The variable is not set by user, try to locate tool using the code snippet
12870     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
12871 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
12872 if ${ac_cv_path_GREP+:} false; then :
12873   $as_echo_n "(cached) " >&6
12874 else
12875   if test -z "$GREP"; then
12876   ac_path_GREP_found=false
12877   # Loop through the user's path and test for each of PROGNAME-LIST
12878   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12879 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12880 do
12881   IFS=$as_save_IFS
12882   test -z "$as_dir" && as_dir=.
12883     for ac_prog in grep ggrep; do
12884     for ac_exec_ext in '' $ac_executable_extensions; do
12885       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
12886       as_fn_executable_p "$ac_path_GREP" || continue
12887 # Check for GNU ac_path_GREP and select it if it is found.
12888   # Check for GNU $ac_path_GREP
12889 case `"$ac_path_GREP" --version 2>&1` in
12890 *GNU*)
12891   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
12892 *)
12893   ac_count=0
12894   $as_echo_n 0123456789 >"conftest.in"
12895   while :
12896   do
12897     cat "conftest.in" "conftest.in" >"conftest.tmp"
12898     mv "conftest.tmp" "conftest.in"
12899     cp "conftest.in" "conftest.nl"
12900     $as_echo 'GREP' >> "conftest.nl"
12901     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
12902     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12903     as_fn_arith $ac_count + 1 && ac_count=$as_val
12904     if test $ac_count -gt ${ac_path_GREP_max-0}; then
12905       # Best one so far, save it but keep looking for a better one
12906       ac_cv_path_GREP="$ac_path_GREP"
12907       ac_path_GREP_max=$ac_count
12908     fi
12909     # 10*(2^10) chars as input seems more than enough
12910     test $ac_count -gt 10 && break
12911   done
12912   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12913 esac
12914 
12915       $ac_path_GREP_found && break 3
12916     done
12917   done
12918   done
12919 IFS=$as_save_IFS
12920   if test -z "$ac_cv_path_GREP"; then
12921     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12922   fi
12923 else
12924   ac_cv_path_GREP=$GREP
12925 fi
12926 
12927 fi
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
12929 $as_echo "$ac_cv_path_GREP" >&6; }
12930  GREP="$ac_cv_path_GREP"
12931 
12932 
12933   else
12934     # The variable is set, but is it from the command line or the environment?
12935 
12936     # Try to remove the string !GREP! from our list.
12937     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/}
12938     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12939       # If it failed, the variable was not from the command line. Ignore it,
12940       # but warn the user (except for BASH, which is always set by the calling BASH).
12941       if test "xGREP" != xBASH; then
12942         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5
12943 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;}
12944       fi
12945       # Try to locate tool using the code snippet
12946       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
12947 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
12948 if ${ac_cv_path_GREP+:} false; then :
12949   $as_echo_n "(cached) " >&6
12950 else
12951   if test -z "$GREP"; then
12952   ac_path_GREP_found=false
12953   # Loop through the user's path and test for each of PROGNAME-LIST
12954   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12955 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12956 do
12957   IFS=$as_save_IFS
12958   test -z "$as_dir" && as_dir=.
12959     for ac_prog in grep ggrep; do
12960     for ac_exec_ext in '' $ac_executable_extensions; do
12961       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
12962       as_fn_executable_p "$ac_path_GREP" || continue
12963 # Check for GNU ac_path_GREP and select it if it is found.
12964   # Check for GNU $ac_path_GREP
12965 case `"$ac_path_GREP" --version 2>&1` in
12966 *GNU*)
12967   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
12968 *)
12969   ac_count=0
12970   $as_echo_n 0123456789 >"conftest.in"
12971   while :
12972   do
12973     cat "conftest.in" "conftest.in" >"conftest.tmp"
12974     mv "conftest.tmp" "conftest.in"
12975     cp "conftest.in" "conftest.nl"
12976     $as_echo 'GREP' >> "conftest.nl"
12977     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
12978     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12979     as_fn_arith $ac_count + 1 && ac_count=$as_val
12980     if test $ac_count -gt ${ac_path_GREP_max-0}; then
12981       # Best one so far, save it but keep looking for a better one
12982       ac_cv_path_GREP="$ac_path_GREP"
12983       ac_path_GREP_max=$ac_count
12984     fi
12985     # 10*(2^10) chars as input seems more than enough
12986     test $ac_count -gt 10 && break
12987   done
12988   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12989 esac
12990 
12991       $ac_path_GREP_found && break 3
12992     done
12993   done
12994   done
12995 IFS=$as_save_IFS
12996   if test -z "$ac_cv_path_GREP"; then
12997     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12998   fi
12999 else
13000   ac_cv_path_GREP=$GREP
13001 fi
13002 
13003 fi
13004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
13005 $as_echo "$ac_cv_path_GREP" >&6; }
13006  GREP="$ac_cv_path_GREP"
13007 
13008 
13009     else
13010       # If it succeeded, then it was overridden by the user. We will use it
13011       # for the tool.
13012 
13013       # First remove it from the list of overridden variables, so we can test
13014       # for unknown variables in the end.
13015       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13016 
13017       # Check if we try to supply an empty value
13018       if test "x$GREP" = x; then
13019         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GREP= (no value)" >&5
13020 $as_echo "$as_me: Setting user supplied tool GREP= (no value)" >&6;}
13021         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5
13022 $as_echo_n "checking for GREP... " >&6; }
13023         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13024 $as_echo "disabled" >&6; }
13025       else
13026         # Check if the provided tool contains a complete path.
13027         tool_specified="$GREP"
13028         tool_basename="${tool_specified##*/}"
13029         if test "x$tool_basename" = "x$tool_specified"; then
13030           # A command without a complete path is provided, search $PATH.
13031           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5
13032 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;}
13033           # Extract the first word of "$tool_basename", so it can be a program name with args.
13034 set dummy $tool_basename; ac_word=$2
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13036 $as_echo_n "checking for $ac_word... " >&6; }
13037 if ${ac_cv_path_GREP+:} false; then :
13038   $as_echo_n "(cached) " >&6
13039 else
13040   case $GREP in
13041   [\\/]* | ?:[\\/]*)
13042   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
13043   ;;
13044   *)
13045   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13046 for as_dir in $PATH
13047 do
13048   IFS=$as_save_IFS
13049   test -z "$as_dir" && as_dir=.
13050     for ac_exec_ext in '' $ac_executable_extensions; do
13051   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13052     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
13053     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13054     break 2
13055   fi
13056 done
13057   done
13058 IFS=$as_save_IFS
13059 
13060   ;;
13061 esac
13062 fi
13063 GREP=$ac_cv_path_GREP
13064 if test -n "$GREP"; then
13065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
13066 $as_echo "$GREP" >&6; }
13067 else
13068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13069 $as_echo "no" >&6; }
13070 fi
13071 
13072 
13073           if test "x$GREP" = x; then
13074             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13075           fi
13076         else
13077           # Otherwise we believe it is a complete path. Use it as it is.
13078           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5
13079 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;}
13080           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5
13081 $as_echo_n "checking for GREP... " >&6; }
13082           if test ! -x "$tool_specified"; then
13083             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13084 $as_echo "not found" >&6; }
13085             as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5
13086           fi
13087           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13088 $as_echo "$tool_specified" >&6; }
13089         fi
13090       fi
13091     fi
13092 
13093   fi
13094 
13095 
13096   if test "x$GREP" = x; then
13097     as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5
13098   fi
13099 
13100 
13101 
13102 
13103   # Publish this variable in the help.
13104 
13105 
13106   if [ -z "${EGREP+x}" ]; then
13107     # The variable is not set by user, try to locate tool using the code snippet
13108     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
13109 $as_echo_n "checking for egrep... " >&6; }
13110 if ${ac_cv_path_EGREP+:} false; then :
13111   $as_echo_n "(cached) " >&6
13112 else
13113   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
13114    then ac_cv_path_EGREP="$GREP -E"
13115    else
13116      if test -z "$EGREP"; then
13117   ac_path_EGREP_found=false
13118   # Loop through the user's path and test for each of PROGNAME-LIST
13119   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13120 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13121 do
13122   IFS=$as_save_IFS
13123   test -z "$as_dir" && as_dir=.
13124     for ac_prog in egrep; do
13125     for ac_exec_ext in '' $ac_executable_extensions; do
13126       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
13127       as_fn_executable_p "$ac_path_EGREP" || continue
13128 # Check for GNU ac_path_EGREP and select it if it is found.
13129   # Check for GNU $ac_path_EGREP
13130 case `"$ac_path_EGREP" --version 2>&1` in
13131 *GNU*)
13132   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
13133 *)
13134   ac_count=0
13135   $as_echo_n 0123456789 >"conftest.in"
13136   while :
13137   do
13138     cat "conftest.in" "conftest.in" >"conftest.tmp"
13139     mv "conftest.tmp" "conftest.in"
13140     cp "conftest.in" "conftest.nl"
13141     $as_echo 'EGREP' >> "conftest.nl"
13142     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13143     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13144     as_fn_arith $ac_count + 1 && ac_count=$as_val
13145     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
13146       # Best one so far, save it but keep looking for a better one
13147       ac_cv_path_EGREP="$ac_path_EGREP"
13148       ac_path_EGREP_max=$ac_count
13149     fi
13150     # 10*(2^10) chars as input seems more than enough
13151     test $ac_count -gt 10 && break
13152   done
13153   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13154 esac
13155 
13156       $ac_path_EGREP_found && break 3
13157     done
13158   done
13159   done
13160 IFS=$as_save_IFS
13161   if test -z "$ac_cv_path_EGREP"; then
13162     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13163   fi
13164 else
13165   ac_cv_path_EGREP=$EGREP
13166 fi
13167 
13168    fi
13169 fi
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
13171 $as_echo "$ac_cv_path_EGREP" >&6; }
13172  EGREP="$ac_cv_path_EGREP"
13173 
13174 
13175   else
13176     # The variable is set, but is it from the command line or the environment?
13177 
13178     # Try to remove the string !EGREP! from our list.
13179     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/}
13180     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13181       # If it failed, the variable was not from the command line. Ignore it,
13182       # but warn the user (except for BASH, which is always set by the calling BASH).
13183       if test "xEGREP" != xBASH; then
13184         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5
13185 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;}
13186       fi
13187       # Try to locate tool using the code snippet
13188       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
13189 $as_echo_n "checking for egrep... " >&6; }
13190 if ${ac_cv_path_EGREP+:} false; then :
13191   $as_echo_n "(cached) " >&6
13192 else
13193   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
13194    then ac_cv_path_EGREP="$GREP -E"
13195    else
13196      if test -z "$EGREP"; then
13197   ac_path_EGREP_found=false
13198   # Loop through the user's path and test for each of PROGNAME-LIST
13199   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13200 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13201 do
13202   IFS=$as_save_IFS
13203   test -z "$as_dir" && as_dir=.
13204     for ac_prog in egrep; do
13205     for ac_exec_ext in '' $ac_executable_extensions; do
13206       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
13207       as_fn_executable_p "$ac_path_EGREP" || continue
13208 # Check for GNU ac_path_EGREP and select it if it is found.
13209   # Check for GNU $ac_path_EGREP
13210 case `"$ac_path_EGREP" --version 2>&1` in
13211 *GNU*)
13212   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
13213 *)
13214   ac_count=0
13215   $as_echo_n 0123456789 >"conftest.in"
13216   while :
13217   do
13218     cat "conftest.in" "conftest.in" >"conftest.tmp"
13219     mv "conftest.tmp" "conftest.in"
13220     cp "conftest.in" "conftest.nl"
13221     $as_echo 'EGREP' >> "conftest.nl"
13222     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13223     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13224     as_fn_arith $ac_count + 1 && ac_count=$as_val
13225     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
13226       # Best one so far, save it but keep looking for a better one
13227       ac_cv_path_EGREP="$ac_path_EGREP"
13228       ac_path_EGREP_max=$ac_count
13229     fi
13230     # 10*(2^10) chars as input seems more than enough
13231     test $ac_count -gt 10 && break
13232   done
13233   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13234 esac
13235 
13236       $ac_path_EGREP_found && break 3
13237     done
13238   done
13239   done
13240 IFS=$as_save_IFS
13241   if test -z "$ac_cv_path_EGREP"; then
13242     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13243   fi
13244 else
13245   ac_cv_path_EGREP=$EGREP
13246 fi
13247 
13248    fi
13249 fi
13250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
13251 $as_echo "$ac_cv_path_EGREP" >&6; }
13252  EGREP="$ac_cv_path_EGREP"
13253 
13254 
13255     else
13256       # If it succeeded, then it was overridden by the user. We will use it
13257       # for the tool.
13258 
13259       # First remove it from the list of overridden variables, so we can test
13260       # for unknown variables in the end.
13261       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13262 
13263       # Check if we try to supply an empty value
13264       if test "x$EGREP" = x; then
13265         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool EGREP= (no value)" >&5
13266 $as_echo "$as_me: Setting user supplied tool EGREP= (no value)" >&6;}
13267         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5
13268 $as_echo_n "checking for EGREP... " >&6; }
13269         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13270 $as_echo "disabled" >&6; }
13271       else
13272         # Check if the provided tool contains a complete path.
13273         tool_specified="$EGREP"
13274         tool_basename="${tool_specified##*/}"
13275         if test "x$tool_basename" = "x$tool_specified"; then
13276           # A command without a complete path is provided, search $PATH.
13277           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5
13278 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;}
13279           # Extract the first word of "$tool_basename", so it can be a program name with args.
13280 set dummy $tool_basename; ac_word=$2
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13282 $as_echo_n "checking for $ac_word... " >&6; }
13283 if ${ac_cv_path_EGREP+:} false; then :
13284   $as_echo_n "(cached) " >&6
13285 else
13286   case $EGREP in
13287   [\\/]* | ?:[\\/]*)
13288   ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
13289   ;;
13290   *)
13291   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13292 for as_dir in $PATH
13293 do
13294   IFS=$as_save_IFS
13295   test -z "$as_dir" && as_dir=.
13296     for ac_exec_ext in '' $ac_executable_extensions; do
13297   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13298     ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
13299     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13300     break 2
13301   fi
13302 done
13303   done
13304 IFS=$as_save_IFS
13305 
13306   ;;
13307 esac
13308 fi
13309 EGREP=$ac_cv_path_EGREP
13310 if test -n "$EGREP"; then
13311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
13312 $as_echo "$EGREP" >&6; }
13313 else
13314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13315 $as_echo "no" >&6; }
13316 fi
13317 
13318 
13319           if test "x$EGREP" = x; then
13320             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13321           fi
13322         else
13323           # Otherwise we believe it is a complete path. Use it as it is.
13324           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5
13325 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;}
13326           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5
13327 $as_echo_n "checking for EGREP... " >&6; }
13328           if test ! -x "$tool_specified"; then
13329             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13330 $as_echo "not found" >&6; }
13331             as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
13332           fi
13333           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13334 $as_echo "$tool_specified" >&6; }
13335         fi
13336       fi
13337     fi
13338 
13339   fi
13340 
13341 
13342   if test "x$EGREP" = x; then
13343     as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5
13344   fi
13345 
13346 
13347 
13348 
13349   # Publish this variable in the help.
13350 
13351 
13352   if [ -z "${FGREP+x}" ]; then
13353     # The variable is not set by user, try to locate tool using the code snippet
13354     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13355 $as_echo_n "checking for fgrep... " >&6; }
13356 if ${ac_cv_path_FGREP+:} false; then :
13357   $as_echo_n "(cached) " >&6
13358 else
13359   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
13360    then ac_cv_path_FGREP="$GREP -F"
13361    else
13362      if test -z "$FGREP"; then
13363   ac_path_FGREP_found=false
13364   # Loop through the user's path and test for each of PROGNAME-LIST
13365   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13366 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13367 do
13368   IFS=$as_save_IFS
13369   test -z "$as_dir" && as_dir=.
13370     for ac_prog in fgrep; do
13371     for ac_exec_ext in '' $ac_executable_extensions; do
13372       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
13373       as_fn_executable_p "$ac_path_FGREP" || continue
13374 # Check for GNU ac_path_FGREP and select it if it is found.
13375   # Check for GNU $ac_path_FGREP
13376 case `"$ac_path_FGREP" --version 2>&1` in
13377 *GNU*)
13378   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
13379 *)
13380   ac_count=0
13381   $as_echo_n 0123456789 >"conftest.in"
13382   while :
13383   do
13384     cat "conftest.in" "conftest.in" >"conftest.tmp"
13385     mv "conftest.tmp" "conftest.in"
13386     cp "conftest.in" "conftest.nl"
13387     $as_echo 'FGREP' >> "conftest.nl"
13388     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
13389     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13390     as_fn_arith $ac_count + 1 && ac_count=$as_val
13391     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13392       # Best one so far, save it but keep looking for a better one
13393       ac_cv_path_FGREP="$ac_path_FGREP"
13394       ac_path_FGREP_max=$ac_count
13395     fi
13396     # 10*(2^10) chars as input seems more than enough
13397     test $ac_count -gt 10 && break
13398   done
13399   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13400 esac
13401 
13402       $ac_path_FGREP_found && break 3
13403     done
13404   done
13405   done
13406 IFS=$as_save_IFS
13407   if test -z "$ac_cv_path_FGREP"; then
13408     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13409   fi
13410 else
13411   ac_cv_path_FGREP=$FGREP
13412 fi
13413 
13414    fi
13415 fi
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13417 $as_echo "$ac_cv_path_FGREP" >&6; }
13418  FGREP="$ac_cv_path_FGREP"
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 !FGREP! from our list.
13425     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/}
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 "xFGREP" != xBASH; then
13430         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5
13431 $as_echo "$as_me: WARNING: Ignoring value of FGREP 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 fgrep" >&5
13435 $as_echo_n "checking for fgrep... " >&6; }
13436 if ${ac_cv_path_FGREP+:} false; then :
13437   $as_echo_n "(cached) " >&6
13438 else
13439   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
13440    then ac_cv_path_FGREP="$GREP -F"
13441    else
13442      if test -z "$FGREP"; then
13443   ac_path_FGREP_found=false
13444   # Loop through the user's path and test for each of PROGNAME-LIST
13445   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13446 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13447 do
13448   IFS=$as_save_IFS
13449   test -z "$as_dir" && as_dir=.
13450     for ac_prog in fgrep; do
13451     for ac_exec_ext in '' $ac_executable_extensions; do
13452       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
13453       as_fn_executable_p "$ac_path_FGREP" || continue
13454 # Check for GNU ac_path_FGREP and select it if it is found.
13455   # Check for GNU $ac_path_FGREP
13456 case `"$ac_path_FGREP" --version 2>&1` in
13457 *GNU*)
13458   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
13459 *)
13460   ac_count=0
13461   $as_echo_n 0123456789 >"conftest.in"
13462   while :
13463   do
13464     cat "conftest.in" "conftest.in" >"conftest.tmp"
13465     mv "conftest.tmp" "conftest.in"
13466     cp "conftest.in" "conftest.nl"
13467     $as_echo 'FGREP' >> "conftest.nl"
13468     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
13469     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13470     as_fn_arith $ac_count + 1 && ac_count=$as_val
13471     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13472       # Best one so far, save it but keep looking for a better one
13473       ac_cv_path_FGREP="$ac_path_FGREP"
13474       ac_path_FGREP_max=$ac_count
13475     fi
13476     # 10*(2^10) chars as input seems more than enough
13477     test $ac_count -gt 10 && break
13478   done
13479   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13480 esac
13481 
13482       $ac_path_FGREP_found && break 3
13483     done
13484   done
13485   done
13486 IFS=$as_save_IFS
13487   if test -z "$ac_cv_path_FGREP"; then
13488     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13489   fi
13490 else
13491   ac_cv_path_FGREP=$FGREP
13492 fi
13493 
13494    fi
13495 fi
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13497 $as_echo "$ac_cv_path_FGREP" >&6; }
13498  FGREP="$ac_cv_path_FGREP"
13499 
13500 
13501     else
13502       # If it succeeded, then it was overridden by the user. We will use it
13503       # for the tool.
13504 
13505       # First remove it from the list of overridden variables, so we can test
13506       # for unknown variables in the end.
13507       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13508 
13509       # Check if we try to supply an empty value
13510       if test "x$FGREP" = x; then
13511         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FGREP= (no value)" >&5
13512 $as_echo "$as_me: Setting user supplied tool FGREP= (no value)" >&6;}
13513         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5
13514 $as_echo_n "checking for FGREP... " >&6; }
13515         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13516 $as_echo "disabled" >&6; }
13517       else
13518         # Check if the provided tool contains a complete path.
13519         tool_specified="$FGREP"
13520         tool_basename="${tool_specified##*/}"
13521         if test "x$tool_basename" = "x$tool_specified"; then
13522           # A command without a complete path is provided, search $PATH.
13523           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5
13524 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;}
13525           # Extract the first word of "$tool_basename", so it can be a program name with args.
13526 set dummy $tool_basename; ac_word=$2
13527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13528 $as_echo_n "checking for $ac_word... " >&6; }
13529 if ${ac_cv_path_FGREP+:} false; then :
13530   $as_echo_n "(cached) " >&6
13531 else
13532   case $FGREP in
13533   [\\/]* | ?:[\\/]*)
13534   ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path.
13535   ;;
13536   *)
13537   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13538 for as_dir in $PATH
13539 do
13540   IFS=$as_save_IFS
13541   test -z "$as_dir" && as_dir=.
13542     for ac_exec_ext in '' $ac_executable_extensions; do
13543   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13544     ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext"
13545     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13546     break 2
13547   fi
13548 done
13549   done
13550 IFS=$as_save_IFS
13551 
13552   ;;
13553 esac
13554 fi
13555 FGREP=$ac_cv_path_FGREP
13556 if test -n "$FGREP"; then
13557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5
13558 $as_echo "$FGREP" >&6; }
13559 else
13560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13561 $as_echo "no" >&6; }
13562 fi
13563 
13564 
13565           if test "x$FGREP" = x; then
13566             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13567           fi
13568         else
13569           # Otherwise we believe it is a complete path. Use it as it is.
13570           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5
13571 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;}
13572           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5
13573 $as_echo_n "checking for FGREP... " >&6; }
13574           if test ! -x "$tool_specified"; then
13575             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13576 $as_echo "not found" >&6; }
13577             as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
13578           fi
13579           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13580 $as_echo "$tool_specified" >&6; }
13581         fi
13582       fi
13583     fi
13584 
13585   fi
13586 
13587 
13588   if test "x$FGREP" = x; then
13589     as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5
13590   fi
13591 
13592 
13593 
13594 
13595   # Publish this variable in the help.
13596 
13597 
13598   if [ -z "${SED+x}" ]; then
13599     # The variable is not set by user, try to locate tool using the code snippet
13600     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13601 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
13602 if ${ac_cv_path_SED+:} false; then :
13603   $as_echo_n "(cached) " >&6
13604 else
13605             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
13606      for ac_i in 1 2 3 4 5 6 7; do
13607        ac_script="$ac_script$as_nl$ac_script"
13608      done
13609      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
13610      { ac_script=; unset ac_script;}
13611      if test -z "$SED"; then
13612   ac_path_SED_found=false
13613   # Loop through the user's path and test for each of PROGNAME-LIST
13614   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13615 for as_dir in $PATH
13616 do
13617   IFS=$as_save_IFS
13618   test -z "$as_dir" && as_dir=.
13619     for ac_prog in sed gsed; do
13620     for ac_exec_ext in '' $ac_executable_extensions; do
13621       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
13622       as_fn_executable_p "$ac_path_SED" || continue
13623 # Check for GNU ac_path_SED and select it if it is found.
13624   # Check for GNU $ac_path_SED
13625 case `"$ac_path_SED" --version 2>&1` in
13626 *GNU*)
13627   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
13628 *)
13629   ac_count=0
13630   $as_echo_n 0123456789 >"conftest.in"
13631   while :
13632   do
13633     cat "conftest.in" "conftest.in" >"conftest.tmp"
13634     mv "conftest.tmp" "conftest.in"
13635     cp "conftest.in" "conftest.nl"
13636     $as_echo '' >> "conftest.nl"
13637     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
13638     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13639     as_fn_arith $ac_count + 1 && ac_count=$as_val
13640     if test $ac_count -gt ${ac_path_SED_max-0}; then
13641       # Best one so far, save it but keep looking for a better one
13642       ac_cv_path_SED="$ac_path_SED"
13643       ac_path_SED_max=$ac_count
13644     fi
13645     # 10*(2^10) chars as input seems more than enough
13646     test $ac_count -gt 10 && break
13647   done
13648   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13649 esac
13650 
13651       $ac_path_SED_found && break 3
13652     done
13653   done
13654   done
13655 IFS=$as_save_IFS
13656   if test -z "$ac_cv_path_SED"; then
13657     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
13658   fi
13659 else
13660   ac_cv_path_SED=$SED
13661 fi
13662 
13663 fi
13664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13665 $as_echo "$ac_cv_path_SED" >&6; }
13666  SED="$ac_cv_path_SED"
13667   rm -f conftest.sed
13668 
13669   else
13670     # The variable is set, but is it from the command line or the environment?
13671 
13672     # Try to remove the string !SED! from our list.
13673     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/}
13674     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13675       # If it failed, the variable was not from the command line. Ignore it,
13676       # but warn the user (except for BASH, which is always set by the calling BASH).
13677       if test "xSED" != xBASH; then
13678         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5
13679 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;}
13680       fi
13681       # Try to locate tool using the code snippet
13682       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13683 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
13684 if ${ac_cv_path_SED+:} false; then :
13685   $as_echo_n "(cached) " >&6
13686 else
13687             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
13688      for ac_i in 1 2 3 4 5 6 7; do
13689        ac_script="$ac_script$as_nl$ac_script"
13690      done
13691      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
13692      { ac_script=; unset ac_script;}
13693      if test -z "$SED"; then
13694   ac_path_SED_found=false
13695   # Loop through the user's path and test for each of PROGNAME-LIST
13696   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13697 for as_dir in $PATH
13698 do
13699   IFS=$as_save_IFS
13700   test -z "$as_dir" && as_dir=.
13701     for ac_prog in sed gsed; do
13702     for ac_exec_ext in '' $ac_executable_extensions; do
13703       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
13704       as_fn_executable_p "$ac_path_SED" || continue
13705 # Check for GNU ac_path_SED and select it if it is found.
13706   # Check for GNU $ac_path_SED
13707 case `"$ac_path_SED" --version 2>&1` in
13708 *GNU*)
13709   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
13710 *)
13711   ac_count=0
13712   $as_echo_n 0123456789 >"conftest.in"
13713   while :
13714   do
13715     cat "conftest.in" "conftest.in" >"conftest.tmp"
13716     mv "conftest.tmp" "conftest.in"
13717     cp "conftest.in" "conftest.nl"
13718     $as_echo '' >> "conftest.nl"
13719     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
13720     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13721     as_fn_arith $ac_count + 1 && ac_count=$as_val
13722     if test $ac_count -gt ${ac_path_SED_max-0}; then
13723       # Best one so far, save it but keep looking for a better one
13724       ac_cv_path_SED="$ac_path_SED"
13725       ac_path_SED_max=$ac_count
13726     fi
13727     # 10*(2^10) chars as input seems more than enough
13728     test $ac_count -gt 10 && break
13729   done
13730   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13731 esac
13732 
13733       $ac_path_SED_found && break 3
13734     done
13735   done
13736   done
13737 IFS=$as_save_IFS
13738   if test -z "$ac_cv_path_SED"; then
13739     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
13740   fi
13741 else
13742   ac_cv_path_SED=$SED
13743 fi
13744 
13745 fi
13746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13747 $as_echo "$ac_cv_path_SED" >&6; }
13748  SED="$ac_cv_path_SED"
13749   rm -f conftest.sed
13750 
13751     else
13752       # If it succeeded, then it was overridden by the user. We will use it
13753       # for the tool.
13754 
13755       # First remove it from the list of overridden variables, so we can test
13756       # for unknown variables in the end.
13757       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13758 
13759       # Check if we try to supply an empty value
13760       if test "x$SED" = x; then
13761         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SED= (no value)" >&5
13762 $as_echo "$as_me: Setting user supplied tool SED= (no value)" >&6;}
13763         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5
13764 $as_echo_n "checking for SED... " >&6; }
13765         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13766 $as_echo "disabled" >&6; }
13767       else
13768         # Check if the provided tool contains a complete path.
13769         tool_specified="$SED"
13770         tool_basename="${tool_specified##*/}"
13771         if test "x$tool_basename" = "x$tool_specified"; then
13772           # A command without a complete path is provided, search $PATH.
13773           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5
13774 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;}
13775           # Extract the first word of "$tool_basename", so it can be a program name with args.
13776 set dummy $tool_basename; ac_word=$2
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13778 $as_echo_n "checking for $ac_word... " >&6; }
13779 if ${ac_cv_path_SED+:} false; then :
13780   $as_echo_n "(cached) " >&6
13781 else
13782   case $SED in
13783   [\\/]* | ?:[\\/]*)
13784   ac_cv_path_SED="$SED" # Let the user override the test with a path.
13785   ;;
13786   *)
13787   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13788 for as_dir in $PATH
13789 do
13790   IFS=$as_save_IFS
13791   test -z "$as_dir" && as_dir=.
13792     for ac_exec_ext in '' $ac_executable_extensions; do
13793   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13794     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
13795     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13796     break 2
13797   fi
13798 done
13799   done
13800 IFS=$as_save_IFS
13801 
13802   ;;
13803 esac
13804 fi
13805 SED=$ac_cv_path_SED
13806 if test -n "$SED"; then
13807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
13808 $as_echo "$SED" >&6; }
13809 else
13810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13811 $as_echo "no" >&6; }
13812 fi
13813 
13814 
13815           if test "x$SED" = x; then
13816             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13817           fi
13818         else
13819           # Otherwise we believe it is a complete path. Use it as it is.
13820           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5
13821 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;}
13822           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5
13823 $as_echo_n "checking for SED... " >&6; }
13824           if test ! -x "$tool_specified"; then
13825             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13826 $as_echo "not found" >&6; }
13827             as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5
13828           fi
13829           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13830 $as_echo "$tool_specified" >&6; }
13831         fi
13832       fi
13833     fi
13834 
13835   fi
13836 
13837 
13838   if test "x$SED" = x; then
13839     as_fn_error $? "Could not find required tool for SED" "$LINENO" 5
13840   fi
13841 
13842 
13843 
13844   # Always force rm.
13845   RM="$RM -f"
13846 
13847   # pwd behaves differently on various platforms and some don't support the -L flag.
13848   # Always use the bash builtin pwd to get uniform behavior.
13849   THEPWDCMD=pwd
13850 
13851   # These are not required on all platforms
13852 
13853 
13854   # Publish this variable in the help.
13855 
13856 
13857   if [ -z "${CYGPATH+x}" ]; then
13858     # The variable is not set by user, try to locate tool using the code snippet
13859     for ac_prog in cygpath
13860 do
13861   # Extract the first word of "$ac_prog", so it can be a program name with args.
13862 set dummy $ac_prog; ac_word=$2
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13864 $as_echo_n "checking for $ac_word... " >&6; }
13865 if ${ac_cv_path_CYGPATH+:} false; then :
13866   $as_echo_n "(cached) " >&6
13867 else
13868   case $CYGPATH in
13869   [\\/]* | ?:[\\/]*)
13870   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
13871   ;;
13872   *)
13873   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13874 for as_dir in $PATH
13875 do
13876   IFS=$as_save_IFS
13877   test -z "$as_dir" && as_dir=.
13878     for ac_exec_ext in '' $ac_executable_extensions; do
13879   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13880     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
13881     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13882     break 2
13883   fi
13884 done
13885   done
13886 IFS=$as_save_IFS
13887 
13888   ;;
13889 esac
13890 fi
13891 CYGPATH=$ac_cv_path_CYGPATH
13892 if test -n "$CYGPATH"; then
13893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
13894 $as_echo "$CYGPATH" >&6; }
13895 else
13896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13897 $as_echo "no" >&6; }
13898 fi
13899 
13900 
13901   test -n "$CYGPATH" && break
13902 done
13903 
13904   else
13905     # The variable is set, but is it from the command line or the environment?
13906 
13907     # Try to remove the string !CYGPATH! from our list.
13908     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/}
13909     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13910       # If it failed, the variable was not from the command line. Ignore it,
13911       # but warn the user (except for BASH, which is always set by the calling BASH).
13912       if test "xCYGPATH" != xBASH; then
13913         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5
13914 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;}
13915       fi
13916       # Try to locate tool using the code snippet
13917       for ac_prog in cygpath
13918 do
13919   # Extract the first word of "$ac_prog", so it can be a program name with args.
13920 set dummy $ac_prog; ac_word=$2
13921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13922 $as_echo_n "checking for $ac_word... " >&6; }
13923 if ${ac_cv_path_CYGPATH+:} false; then :
13924   $as_echo_n "(cached) " >&6
13925 else
13926   case $CYGPATH in
13927   [\\/]* | ?:[\\/]*)
13928   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
13929   ;;
13930   *)
13931   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13932 for as_dir in $PATH
13933 do
13934   IFS=$as_save_IFS
13935   test -z "$as_dir" && as_dir=.
13936     for ac_exec_ext in '' $ac_executable_extensions; do
13937   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13938     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
13939     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13940     break 2
13941   fi
13942 done
13943   done
13944 IFS=$as_save_IFS
13945 
13946   ;;
13947 esac
13948 fi
13949 CYGPATH=$ac_cv_path_CYGPATH
13950 if test -n "$CYGPATH"; then
13951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
13952 $as_echo "$CYGPATH" >&6; }
13953 else
13954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13955 $as_echo "no" >&6; }
13956 fi
13957 
13958 
13959   test -n "$CYGPATH" && break
13960 done
13961 
13962     else
13963       # If it succeeded, then it was overridden by the user. We will use it
13964       # for the tool.
13965 
13966       # First remove it from the list of overridden variables, so we can test
13967       # for unknown variables in the end.
13968       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13969 
13970       # Check if we try to supply an empty value
13971       if test "x$CYGPATH" = x; then
13972         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CYGPATH= (no value)" >&5
13973 $as_echo "$as_me: Setting user supplied tool CYGPATH= (no value)" >&6;}
13974         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5
13975 $as_echo_n "checking for CYGPATH... " >&6; }
13976         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13977 $as_echo "disabled" >&6; }
13978       else
13979         # Check if the provided tool contains a complete path.
13980         tool_specified="$CYGPATH"
13981         tool_basename="${tool_specified##*/}"
13982         if test "x$tool_basename" = "x$tool_specified"; then
13983           # A command without a complete path is provided, search $PATH.
13984           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5
13985 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;}
13986           # Extract the first word of "$tool_basename", so it can be a program name with args.
13987 set dummy $tool_basename; ac_word=$2
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13989 $as_echo_n "checking for $ac_word... " >&6; }
13990 if ${ac_cv_path_CYGPATH+:} false; then :
13991   $as_echo_n "(cached) " >&6
13992 else
13993   case $CYGPATH in
13994   [\\/]* | ?:[\\/]*)
13995   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
13996   ;;
13997   *)
13998   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13999 for as_dir in $PATH
14000 do
14001   IFS=$as_save_IFS
14002   test -z "$as_dir" && as_dir=.
14003     for ac_exec_ext in '' $ac_executable_extensions; do
14004   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14005     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
14006     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14007     break 2
14008   fi
14009 done
14010   done
14011 IFS=$as_save_IFS
14012 
14013   ;;
14014 esac
14015 fi
14016 CYGPATH=$ac_cv_path_CYGPATH
14017 if test -n "$CYGPATH"; then
14018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
14019 $as_echo "$CYGPATH" >&6; }
14020 else
14021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14022 $as_echo "no" >&6; }
14023 fi
14024 
14025 
14026           if test "x$CYGPATH" = x; then
14027             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14028           fi
14029         else
14030           # Otherwise we believe it is a complete path. Use it as it is.
14031           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5
14032 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;}
14033           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5
14034 $as_echo_n "checking for CYGPATH... " >&6; }
14035           if test ! -x "$tool_specified"; then
14036             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14037 $as_echo "not found" >&6; }
14038             as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5
14039           fi
14040           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14041 $as_echo "$tool_specified" >&6; }
14042         fi
14043       fi
14044     fi
14045 
14046   fi
14047 
14048 
14049 
14050 
14051   # Publish this variable in the help.
14052 
14053 
14054   if [ -z "${READLINK+x}" ]; then
14055     # The variable is not set by user, try to locate tool using the code snippet
14056     for ac_prog in greadlink readlink
14057 do
14058   # Extract the first word of "$ac_prog", so it can be a program name with args.
14059 set dummy $ac_prog; ac_word=$2
14060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14061 $as_echo_n "checking for $ac_word... " >&6; }
14062 if ${ac_cv_path_READLINK+:} false; then :
14063   $as_echo_n "(cached) " >&6
14064 else
14065   case $READLINK in
14066   [\\/]* | ?:[\\/]*)
14067   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
14068   ;;
14069   *)
14070   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14071 for as_dir in $PATH
14072 do
14073   IFS=$as_save_IFS
14074   test -z "$as_dir" && as_dir=.
14075     for ac_exec_ext in '' $ac_executable_extensions; do
14076   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14077     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
14078     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14079     break 2
14080   fi
14081 done
14082   done
14083 IFS=$as_save_IFS
14084 
14085   ;;
14086 esac
14087 fi
14088 READLINK=$ac_cv_path_READLINK
14089 if test -n "$READLINK"; then
14090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
14091 $as_echo "$READLINK" >&6; }
14092 else
14093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14094 $as_echo "no" >&6; }
14095 fi
14096 
14097 
14098   test -n "$READLINK" && break
14099 done
14100 
14101   else
14102     # The variable is set, but is it from the command line or the environment?
14103 
14104     # Try to remove the string !READLINK! from our list.
14105     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/}
14106     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14107       # If it failed, the variable was not from the command line. Ignore it,
14108       # but warn the user (except for BASH, which is always set by the calling BASH).
14109       if test "xREADLINK" != xBASH; then
14110         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5
14111 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;}
14112       fi
14113       # Try to locate tool using the code snippet
14114       for ac_prog in greadlink readlink
14115 do
14116   # Extract the first word of "$ac_prog", so it can be a program name with args.
14117 set dummy $ac_prog; ac_word=$2
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14119 $as_echo_n "checking for $ac_word... " >&6; }
14120 if ${ac_cv_path_READLINK+:} false; then :
14121   $as_echo_n "(cached) " >&6
14122 else
14123   case $READLINK in
14124   [\\/]* | ?:[\\/]*)
14125   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
14126   ;;
14127   *)
14128   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14129 for as_dir in $PATH
14130 do
14131   IFS=$as_save_IFS
14132   test -z "$as_dir" && as_dir=.
14133     for ac_exec_ext in '' $ac_executable_extensions; do
14134   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14135     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
14136     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14137     break 2
14138   fi
14139 done
14140   done
14141 IFS=$as_save_IFS
14142 
14143   ;;
14144 esac
14145 fi
14146 READLINK=$ac_cv_path_READLINK
14147 if test -n "$READLINK"; then
14148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
14149 $as_echo "$READLINK" >&6; }
14150 else
14151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14152 $as_echo "no" >&6; }
14153 fi
14154 
14155 
14156   test -n "$READLINK" && break
14157 done
14158 
14159     else
14160       # If it succeeded, then it was overridden by the user. We will use it
14161       # for the tool.
14162 
14163       # First remove it from the list of overridden variables, so we can test
14164       # for unknown variables in the end.
14165       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14166 
14167       # Check if we try to supply an empty value
14168       if test "x$READLINK" = x; then
14169         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool READLINK= (no value)" >&5
14170 $as_echo "$as_me: Setting user supplied tool READLINK= (no value)" >&6;}
14171         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5
14172 $as_echo_n "checking for READLINK... " >&6; }
14173         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14174 $as_echo "disabled" >&6; }
14175       else
14176         # Check if the provided tool contains a complete path.
14177         tool_specified="$READLINK"
14178         tool_basename="${tool_specified##*/}"
14179         if test "x$tool_basename" = "x$tool_specified"; then
14180           # A command without a complete path is provided, search $PATH.
14181           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5
14182 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;}
14183           # Extract the first word of "$tool_basename", so it can be a program name with args.
14184 set dummy $tool_basename; ac_word=$2
14185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14186 $as_echo_n "checking for $ac_word... " >&6; }
14187 if ${ac_cv_path_READLINK+:} false; then :
14188   $as_echo_n "(cached) " >&6
14189 else
14190   case $READLINK in
14191   [\\/]* | ?:[\\/]*)
14192   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
14193   ;;
14194   *)
14195   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14196 for as_dir in $PATH
14197 do
14198   IFS=$as_save_IFS
14199   test -z "$as_dir" && as_dir=.
14200     for ac_exec_ext in '' $ac_executable_extensions; do
14201   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14202     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
14203     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14204     break 2
14205   fi
14206 done
14207   done
14208 IFS=$as_save_IFS
14209 
14210   ;;
14211 esac
14212 fi
14213 READLINK=$ac_cv_path_READLINK
14214 if test -n "$READLINK"; then
14215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
14216 $as_echo "$READLINK" >&6; }
14217 else
14218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14219 $as_echo "no" >&6; }
14220 fi
14221 
14222 
14223           if test "x$READLINK" = x; then
14224             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14225           fi
14226         else
14227           # Otherwise we believe it is a complete path. Use it as it is.
14228           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5
14229 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;}
14230           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5
14231 $as_echo_n "checking for READLINK... " >&6; }
14232           if test ! -x "$tool_specified"; then
14233             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14234 $as_echo "not found" >&6; }
14235             as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5
14236           fi
14237           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14238 $as_echo "$tool_specified" >&6; }
14239         fi
14240       fi
14241     fi
14242 
14243   fi
14244 
14245 
14246 
14247 
14248   # Publish this variable in the help.
14249 
14250 
14251   if [ -z "${DF+x}" ]; then
14252     # The variable is not set by user, try to locate tool using the code snippet
14253     for ac_prog in df
14254 do
14255   # Extract the first word of "$ac_prog", so it can be a program name with args.
14256 set dummy $ac_prog; ac_word=$2
14257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14258 $as_echo_n "checking for $ac_word... " >&6; }
14259 if ${ac_cv_path_DF+:} false; then :
14260   $as_echo_n "(cached) " >&6
14261 else
14262   case $DF in
14263   [\\/]* | ?:[\\/]*)
14264   ac_cv_path_DF="$DF" # Let the user override the test with a path.
14265   ;;
14266   *)
14267   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14268 for as_dir in $PATH
14269 do
14270   IFS=$as_save_IFS
14271   test -z "$as_dir" && as_dir=.
14272     for ac_exec_ext in '' $ac_executable_extensions; do
14273   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14274     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
14275     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14276     break 2
14277   fi
14278 done
14279   done
14280 IFS=$as_save_IFS
14281 
14282   ;;
14283 esac
14284 fi
14285 DF=$ac_cv_path_DF
14286 if test -n "$DF"; then
14287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
14288 $as_echo "$DF" >&6; }
14289 else
14290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14291 $as_echo "no" >&6; }
14292 fi
14293 
14294 
14295   test -n "$DF" && break
14296 done
14297 
14298   else
14299     # The variable is set, but is it from the command line or the environment?
14300 
14301     # Try to remove the string !DF! from our list.
14302     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/}
14303     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14304       # If it failed, the variable was not from the command line. Ignore it,
14305       # but warn the user (except for BASH, which is always set by the calling BASH).
14306       if test "xDF" != xBASH; then
14307         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5
14308 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;}
14309       fi
14310       # Try to locate tool using the code snippet
14311       for ac_prog in df
14312 do
14313   # Extract the first word of "$ac_prog", so it can be a program name with args.
14314 set dummy $ac_prog; ac_word=$2
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14316 $as_echo_n "checking for $ac_word... " >&6; }
14317 if ${ac_cv_path_DF+:} false; then :
14318   $as_echo_n "(cached) " >&6
14319 else
14320   case $DF in
14321   [\\/]* | ?:[\\/]*)
14322   ac_cv_path_DF="$DF" # Let the user override the test with a path.
14323   ;;
14324   *)
14325   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14326 for as_dir in $PATH
14327 do
14328   IFS=$as_save_IFS
14329   test -z "$as_dir" && as_dir=.
14330     for ac_exec_ext in '' $ac_executable_extensions; do
14331   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14332     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
14333     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14334     break 2
14335   fi
14336 done
14337   done
14338 IFS=$as_save_IFS
14339 
14340   ;;
14341 esac
14342 fi
14343 DF=$ac_cv_path_DF
14344 if test -n "$DF"; then
14345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
14346 $as_echo "$DF" >&6; }
14347 else
14348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14349 $as_echo "no" >&6; }
14350 fi
14351 
14352 
14353   test -n "$DF" && break
14354 done
14355 
14356     else
14357       # If it succeeded, then it was overridden by the user. We will use it
14358       # for the tool.
14359 
14360       # First remove it from the list of overridden variables, so we can test
14361       # for unknown variables in the end.
14362       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14363 
14364       # Check if we try to supply an empty value
14365       if test "x$DF" = x; then
14366         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DF= (no value)" >&5
14367 $as_echo "$as_me: Setting user supplied tool DF= (no value)" >&6;}
14368         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5
14369 $as_echo_n "checking for DF... " >&6; }
14370         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14371 $as_echo "disabled" >&6; }
14372       else
14373         # Check if the provided tool contains a complete path.
14374         tool_specified="$DF"
14375         tool_basename="${tool_specified##*/}"
14376         if test "x$tool_basename" = "x$tool_specified"; then
14377           # A command without a complete path is provided, search $PATH.
14378           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5
14379 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;}
14380           # Extract the first word of "$tool_basename", so it can be a program name with args.
14381 set dummy $tool_basename; ac_word=$2
14382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14383 $as_echo_n "checking for $ac_word... " >&6; }
14384 if ${ac_cv_path_DF+:} false; then :
14385   $as_echo_n "(cached) " >&6
14386 else
14387   case $DF in
14388   [\\/]* | ?:[\\/]*)
14389   ac_cv_path_DF="$DF" # Let the user override the test with a path.
14390   ;;
14391   *)
14392   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14393 for as_dir in $PATH
14394 do
14395   IFS=$as_save_IFS
14396   test -z "$as_dir" && as_dir=.
14397     for ac_exec_ext in '' $ac_executable_extensions; do
14398   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14399     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
14400     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14401     break 2
14402   fi
14403 done
14404   done
14405 IFS=$as_save_IFS
14406 
14407   ;;
14408 esac
14409 fi
14410 DF=$ac_cv_path_DF
14411 if test -n "$DF"; then
14412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
14413 $as_echo "$DF" >&6; }
14414 else
14415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14416 $as_echo "no" >&6; }
14417 fi
14418 
14419 
14420           if test "x$DF" = x; then
14421             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14422           fi
14423         else
14424           # Otherwise we believe it is a complete path. Use it as it is.
14425           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5
14426 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;}
14427           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5
14428 $as_echo_n "checking for DF... " >&6; }
14429           if test ! -x "$tool_specified"; then
14430             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14431 $as_echo "not found" >&6; }
14432             as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5
14433           fi
14434           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14435 $as_echo "$tool_specified" >&6; }
14436         fi
14437       fi
14438     fi
14439 
14440   fi
14441 
14442 
14443 
14444 
14445   # Publish this variable in the help.
14446 
14447 
14448   if [ -z "${CPIO+x}" ]; then
14449     # The variable is not set by user, try to locate tool using the code snippet
14450     for ac_prog in cpio bsdcpio
14451 do
14452   # Extract the first word of "$ac_prog", so it can be a program name with args.
14453 set dummy $ac_prog; ac_word=$2
14454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14455 $as_echo_n "checking for $ac_word... " >&6; }
14456 if ${ac_cv_path_CPIO+:} false; then :
14457   $as_echo_n "(cached) " >&6
14458 else
14459   case $CPIO in
14460   [\\/]* | ?:[\\/]*)
14461   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
14462   ;;
14463   *)
14464   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14465 for as_dir in $PATH
14466 do
14467   IFS=$as_save_IFS
14468   test -z "$as_dir" && as_dir=.
14469     for ac_exec_ext in '' $ac_executable_extensions; do
14470   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14471     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
14472     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14473     break 2
14474   fi
14475 done
14476   done
14477 IFS=$as_save_IFS
14478 
14479   ;;
14480 esac
14481 fi
14482 CPIO=$ac_cv_path_CPIO
14483 if test -n "$CPIO"; then
14484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
14485 $as_echo "$CPIO" >&6; }
14486 else
14487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14488 $as_echo "no" >&6; }
14489 fi
14490 
14491 
14492   test -n "$CPIO" && break
14493 done
14494 
14495   else
14496     # The variable is set, but is it from the command line or the environment?
14497 
14498     # Try to remove the string !CPIO! from our list.
14499     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/}
14500     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14501       # If it failed, the variable was not from the command line. Ignore it,
14502       # but warn the user (except for BASH, which is always set by the calling BASH).
14503       if test "xCPIO" != xBASH; then
14504         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5
14505 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;}
14506       fi
14507       # Try to locate tool using the code snippet
14508       for ac_prog in cpio bsdcpio
14509 do
14510   # Extract the first word of "$ac_prog", so it can be a program name with args.
14511 set dummy $ac_prog; ac_word=$2
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14513 $as_echo_n "checking for $ac_word... " >&6; }
14514 if ${ac_cv_path_CPIO+:} false; then :
14515   $as_echo_n "(cached) " >&6
14516 else
14517   case $CPIO in
14518   [\\/]* | ?:[\\/]*)
14519   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
14520   ;;
14521   *)
14522   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14523 for as_dir in $PATH
14524 do
14525   IFS=$as_save_IFS
14526   test -z "$as_dir" && as_dir=.
14527     for ac_exec_ext in '' $ac_executable_extensions; do
14528   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14529     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
14530     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14531     break 2
14532   fi
14533 done
14534   done
14535 IFS=$as_save_IFS
14536 
14537   ;;
14538 esac
14539 fi
14540 CPIO=$ac_cv_path_CPIO
14541 if test -n "$CPIO"; then
14542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
14543 $as_echo "$CPIO" >&6; }
14544 else
14545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14546 $as_echo "no" >&6; }
14547 fi
14548 
14549 
14550   test -n "$CPIO" && break
14551 done
14552 
14553     else
14554       # If it succeeded, then it was overridden by the user. We will use it
14555       # for the tool.
14556 
14557       # First remove it from the list of overridden variables, so we can test
14558       # for unknown variables in the end.
14559       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14560 
14561       # Check if we try to supply an empty value
14562       if test "x$CPIO" = x; then
14563         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CPIO= (no value)" >&5
14564 $as_echo "$as_me: Setting user supplied tool CPIO= (no value)" >&6;}
14565         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5
14566 $as_echo_n "checking for CPIO... " >&6; }
14567         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14568 $as_echo "disabled" >&6; }
14569       else
14570         # Check if the provided tool contains a complete path.
14571         tool_specified="$CPIO"
14572         tool_basename="${tool_specified##*/}"
14573         if test "x$tool_basename" = "x$tool_specified"; then
14574           # A command without a complete path is provided, search $PATH.
14575           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5
14576 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;}
14577           # Extract the first word of "$tool_basename", so it can be a program name with args.
14578 set dummy $tool_basename; ac_word=$2
14579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14580 $as_echo_n "checking for $ac_word... " >&6; }
14581 if ${ac_cv_path_CPIO+:} false; then :
14582   $as_echo_n "(cached) " >&6
14583 else
14584   case $CPIO in
14585   [\\/]* | ?:[\\/]*)
14586   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
14587   ;;
14588   *)
14589   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14590 for as_dir in $PATH
14591 do
14592   IFS=$as_save_IFS
14593   test -z "$as_dir" && as_dir=.
14594     for ac_exec_ext in '' $ac_executable_extensions; do
14595   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14596     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
14597     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14598     break 2
14599   fi
14600 done
14601   done
14602 IFS=$as_save_IFS
14603 
14604   ;;
14605 esac
14606 fi
14607 CPIO=$ac_cv_path_CPIO
14608 if test -n "$CPIO"; then
14609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
14610 $as_echo "$CPIO" >&6; }
14611 else
14612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14613 $as_echo "no" >&6; }
14614 fi
14615 
14616 
14617           if test "x$CPIO" = x; then
14618             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14619           fi
14620         else
14621           # Otherwise we believe it is a complete path. Use it as it is.
14622           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5
14623 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;}
14624           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5
14625 $as_echo_n "checking for CPIO... " >&6; }
14626           if test ! -x "$tool_specified"; then
14627             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14628 $as_echo "not found" >&6; }
14629             as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5
14630           fi
14631           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14632 $as_echo "$tool_specified" >&6; }
14633         fi
14634       fi
14635     fi
14636 
14637   fi
14638 
14639 
14640 
14641 
14642   # Publish this variable in the help.
14643 
14644 
14645   if [ -z "${NICE+x}" ]; then
14646     # The variable is not set by user, try to locate tool using the code snippet
14647     for ac_prog in nice
14648 do
14649   # Extract the first word of "$ac_prog", so it can be a program name with args.
14650 set dummy $ac_prog; ac_word=$2
14651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14652 $as_echo_n "checking for $ac_word... " >&6; }
14653 if ${ac_cv_path_NICE+:} false; then :
14654   $as_echo_n "(cached) " >&6
14655 else
14656   case $NICE in
14657   [\\/]* | ?:[\\/]*)
14658   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
14659   ;;
14660   *)
14661   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14662 for as_dir in $PATH
14663 do
14664   IFS=$as_save_IFS
14665   test -z "$as_dir" && as_dir=.
14666     for ac_exec_ext in '' $ac_executable_extensions; do
14667   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14668     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
14669     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14670     break 2
14671   fi
14672 done
14673   done
14674 IFS=$as_save_IFS
14675 
14676   ;;
14677 esac
14678 fi
14679 NICE=$ac_cv_path_NICE
14680 if test -n "$NICE"; then
14681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5
14682 $as_echo "$NICE" >&6; }
14683 else
14684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14685 $as_echo "no" >&6; }
14686 fi
14687 
14688 
14689   test -n "$NICE" && break
14690 done
14691 
14692   else
14693     # The variable is set, but is it from the command line or the environment?
14694 
14695     # Try to remove the string !NICE! from our list.
14696     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NICE!/}
14697     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14698       # If it failed, the variable was not from the command line. Ignore it,
14699       # but warn the user (except for BASH, which is always set by the calling BASH).
14700       if test "xNICE" != xBASH; then
14701         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NICE from the environment. Use command line variables instead." >&5
14702 $as_echo "$as_me: WARNING: Ignoring value of NICE from the environment. Use command line variables instead." >&2;}
14703       fi
14704       # Try to locate tool using the code snippet
14705       for ac_prog in nice
14706 do
14707   # Extract the first word of "$ac_prog", so it can be a program name with args.
14708 set dummy $ac_prog; ac_word=$2
14709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14710 $as_echo_n "checking for $ac_word... " >&6; }
14711 if ${ac_cv_path_NICE+:} false; then :
14712   $as_echo_n "(cached) " >&6
14713 else
14714   case $NICE in
14715   [\\/]* | ?:[\\/]*)
14716   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
14717   ;;
14718   *)
14719   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14720 for as_dir in $PATH
14721 do
14722   IFS=$as_save_IFS
14723   test -z "$as_dir" && as_dir=.
14724     for ac_exec_ext in '' $ac_executable_extensions; do
14725   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14726     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
14727     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14728     break 2
14729   fi
14730 done
14731   done
14732 IFS=$as_save_IFS
14733 
14734   ;;
14735 esac
14736 fi
14737 NICE=$ac_cv_path_NICE
14738 if test -n "$NICE"; then
14739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5
14740 $as_echo "$NICE" >&6; }
14741 else
14742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14743 $as_echo "no" >&6; }
14744 fi
14745 
14746 
14747   test -n "$NICE" && break
14748 done
14749 
14750     else
14751       # If it succeeded, then it was overridden by the user. We will use it
14752       # for the tool.
14753 
14754       # First remove it from the list of overridden variables, so we can test
14755       # for unknown variables in the end.
14756       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14757 
14758       # Check if we try to supply an empty value
14759       if test "x$NICE" = x; then
14760         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NICE= (no value)" >&5
14761 $as_echo "$as_me: Setting user supplied tool NICE= (no value)" >&6;}
14762         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NICE" >&5
14763 $as_echo_n "checking for NICE... " >&6; }
14764         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14765 $as_echo "disabled" >&6; }
14766       else
14767         # Check if the provided tool contains a complete path.
14768         tool_specified="$NICE"
14769         tool_basename="${tool_specified##*/}"
14770         if test "x$tool_basename" = "x$tool_specified"; then
14771           # A command without a complete path is provided, search $PATH.
14772           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NICE=$tool_basename" >&5
14773 $as_echo "$as_me: Will search for user supplied tool NICE=$tool_basename" >&6;}
14774           # Extract the first word of "$tool_basename", so it can be a program name with args.
14775 set dummy $tool_basename; ac_word=$2
14776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14777 $as_echo_n "checking for $ac_word... " >&6; }
14778 if ${ac_cv_path_NICE+:} false; then :
14779   $as_echo_n "(cached) " >&6
14780 else
14781   case $NICE in
14782   [\\/]* | ?:[\\/]*)
14783   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
14784   ;;
14785   *)
14786   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14787 for as_dir in $PATH
14788 do
14789   IFS=$as_save_IFS
14790   test -z "$as_dir" && as_dir=.
14791     for ac_exec_ext in '' $ac_executable_extensions; do
14792   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14793     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
14794     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14795     break 2
14796   fi
14797 done
14798   done
14799 IFS=$as_save_IFS
14800 
14801   ;;
14802 esac
14803 fi
14804 NICE=$ac_cv_path_NICE
14805 if test -n "$NICE"; then
14806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5
14807 $as_echo "$NICE" >&6; }
14808 else
14809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14810 $as_echo "no" >&6; }
14811 fi
14812 
14813 
14814           if test "x$NICE" = x; then
14815             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14816           fi
14817         else
14818           # Otherwise we believe it is a complete path. Use it as it is.
14819           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NICE=$tool_specified" >&5
14820 $as_echo "$as_me: Will use user supplied tool NICE=$tool_specified" >&6;}
14821           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NICE" >&5
14822 $as_echo_n "checking for NICE... " >&6; }
14823           if test ! -x "$tool_specified"; then
14824             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14825 $as_echo "not found" >&6; }
14826             as_fn_error $? "User supplied tool NICE=$tool_specified does not exist or is not executable" "$LINENO" 5
14827           fi
14828           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14829 $as_echo "$tool_specified" >&6; }
14830         fi
14831       fi
14832     fi
14833 
14834   fi
14835 
14836 
14837 
14838 
14839 # Now we can determine OpenJDK build and target platforms. This is required to
14840 # have early on.
14841 # Make sure we can run config.sub.
14842 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
14843   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
14844 
14845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
14846 $as_echo_n "checking build system type... " >&6; }
14847 if ${ac_cv_build+:} false; then :
14848   $as_echo_n "(cached) " >&6
14849 else
14850   ac_build_alias=$build_alias
14851 test "x$ac_build_alias" = x &&
14852   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
14853 test "x$ac_build_alias" = x &&
14854   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
14855 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
14856   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
14857 
14858 fi
14859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
14860 $as_echo "$ac_cv_build" >&6; }
14861 case $ac_cv_build in
14862 *-*-*) ;;
14863 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
14864 esac
14865 build=$ac_cv_build
14866 ac_save_IFS=$IFS; IFS='-'
14867 set x $ac_cv_build
14868 shift
14869 build_cpu=$1
14870 build_vendor=$2
14871 shift; shift
14872 # Remember, the first character of IFS is used to create $*,
14873 # except with old shells:
14874 build_os=$*
14875 IFS=$ac_save_IFS
14876 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
14877 
14878 
14879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
14880 $as_echo_n "checking host system type... " >&6; }
14881 if ${ac_cv_host+:} false; then :
14882   $as_echo_n "(cached) " >&6
14883 else
14884   if test "x$host_alias" = x; then
14885   ac_cv_host=$ac_cv_build
14886 else
14887   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
14888     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
14889 fi
14890 
14891 fi
14892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
14893 $as_echo "$ac_cv_host" >&6; }
14894 case $ac_cv_host in
14895 *-*-*) ;;
14896 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
14897 esac
14898 host=$ac_cv_host
14899 ac_save_IFS=$IFS; IFS='-'
14900 set x $ac_cv_host
14901 shift
14902 host_cpu=$1
14903 host_vendor=$2
14904 shift; shift
14905 # Remember, the first character of IFS is used to create $*,
14906 # except with old shells:
14907 host_os=$*
14908 IFS=$ac_save_IFS
14909 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
14910 
14911 
14912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
14913 $as_echo_n "checking target system type... " >&6; }
14914 if ${ac_cv_target+:} false; then :
14915   $as_echo_n "(cached) " >&6
14916 else
14917   if test "x$target_alias" = x; then
14918   ac_cv_target=$ac_cv_host
14919 else
14920   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
14921     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
14922 fi
14923 
14924 fi
14925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
14926 $as_echo "$ac_cv_target" >&6; }
14927 case $ac_cv_target in
14928 *-*-*) ;;
14929 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
14930 esac
14931 target=$ac_cv_target
14932 ac_save_IFS=$IFS; IFS='-'
14933 set x $ac_cv_target
14934 shift
14935 target_cpu=$1
14936 target_vendor=$2
14937 shift; shift
14938 # Remember, the first character of IFS is used to create $*,
14939 # except with old shells:
14940 target_os=$*
14941 IFS=$ac_save_IFS
14942 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
14943 
14944 
14945 # The aliases save the names the user supplied, while $host etc.
14946 # will get canonicalized.
14947 test -n "$target_alias" &&
14948   test "$program_prefix$program_suffix$program_transform_name" = \
14949     NONENONEs,x,x, &&
14950   program_prefix=${target_alias}-
14951 
14952   # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target"
14953   # is confusing; it assumes you are cross-compiling a cross-compiler (!)  and "target" is thus the target of the
14954   # product you're building. The target of this build is called "host". Since this is confusing to most people, we
14955   # have not adopted that system, but use "target" as the platform we are building for. In some places though we need
14956   # to use the configure naming style.
14957 
14958 
14959 
14960 
14961 
14962   # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME
14963   # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME
14964   # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build,
14965   # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME.
14966   OPENJDK_TARGET_AUTOCONF_NAME="$host"
14967   OPENJDK_BUILD_AUTOCONF_NAME="$build"
14968 
14969 
14970 
14971   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
14972 
14973   case "$build_os" in
14974     *linux*)
14975       VAR_OS=linux
14976       VAR_OS_TYPE=unix
14977       ;;
14978     *solaris*)
14979       VAR_OS=solaris
14980       VAR_OS_TYPE=unix
14981       ;;
14982     *darwin*)
14983       VAR_OS=macosx
14984       VAR_OS_TYPE=unix
14985       ;;
14986     *bsd*)
14987       VAR_OS=bsd
14988       VAR_OS_TYPE=unix
14989       ;;
14990     *cygwin*)
14991       VAR_OS=windows
14992       VAR_OS_ENV=windows.cygwin
14993       ;;
14994     *mingw*)
14995       VAR_OS=windows
14996       VAR_OS_ENV=windows.msys
14997       ;;
14998     *aix*)
14999       VAR_OS=aix
15000       VAR_OS_TYPE=unix
15001       ;;
15002     *)
15003       as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5
15004       ;;
15005   esac
15006 
15007 
15008   # First argument is the cpu name from the trip/quad
15009   case "$build_cpu" in
15010     x86_64)
15011       VAR_CPU=x86_64
15012       VAR_CPU_ARCH=x86
15013       VAR_CPU_BITS=64
15014       VAR_CPU_ENDIAN=little
15015       ;;
15016     i?86)
15017       VAR_CPU=x86
15018       VAR_CPU_ARCH=x86
15019       VAR_CPU_BITS=32
15020       VAR_CPU_ENDIAN=little
15021       ;;
15022     arm*)
15023       VAR_CPU=arm
15024       VAR_CPU_ARCH=arm
15025       VAR_CPU_BITS=32
15026       VAR_CPU_ENDIAN=little
15027       ;;
15028     aarch64)
15029       VAR_CPU=aarch64
15030       VAR_CPU_ARCH=aarch64
15031       VAR_CPU_BITS=64
15032       VAR_CPU_ENDIAN=little
15033       ;;
15034     powerpc)
15035       VAR_CPU=ppc
15036       VAR_CPU_ARCH=ppc
15037       VAR_CPU_BITS=32
15038       VAR_CPU_ENDIAN=big
15039       ;;
15040     powerpc64)
15041       VAR_CPU=ppc64
15042       VAR_CPU_ARCH=ppc
15043       VAR_CPU_BITS=64
15044       VAR_CPU_ENDIAN=big
15045       ;;
15046     powerpc64le)
15047       VAR_CPU=ppc64le
15048       VAR_CPU_ARCH=ppc
15049       VAR_CPU_BITS=64
15050       VAR_CPU_ENDIAN=little
15051       ;;
15052     s390)
15053       VAR_CPU=s390
15054       VAR_CPU_ARCH=s390
15055       VAR_CPU_BITS=32
15056       VAR_CPU_ENDIAN=big
15057       ;;
15058     s390x)
15059       VAR_CPU=s390x
15060       VAR_CPU_ARCH=s390
15061       VAR_CPU_BITS=64
15062       VAR_CPU_ENDIAN=big
15063       ;;
15064     sparc)
15065       VAR_CPU=sparc
15066       VAR_CPU_ARCH=sparc
15067       VAR_CPU_BITS=32
15068       VAR_CPU_ENDIAN=big
15069       ;;
15070     sparcv9|sparc64)
15071       VAR_CPU=sparcv9
15072       VAR_CPU_ARCH=sparc
15073       VAR_CPU_BITS=64
15074       VAR_CPU_ENDIAN=big
15075       ;;
15076     *)
15077       as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5
15078       ;;
15079   esac
15080 
15081   # ..and setup our own variables. (Do this explicitely to facilitate searching)
15082   OPENJDK_BUILD_OS="$VAR_OS"
15083   if test "x$VAR_OS_TYPE" != x; then
15084     OPENJDK_BUILD_OS_TYPE="$VAR_OS_TYPE"
15085   else
15086     OPENJDK_BUILD_OS_TYPE="$VAR_OS"
15087   fi
15088   if test "x$VAR_OS_ENV" != x; then
15089     OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV"
15090   else
15091     OPENJDK_BUILD_OS_ENV="$VAR_OS"
15092   fi
15093   OPENJDK_BUILD_CPU="$VAR_CPU"
15094   OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH"
15095   OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS"
15096   OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN"
15097 
15098 
15099 
15100 
15101 
15102 
15103 
15104 
15105   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5
15106 $as_echo_n "checking openjdk-build os-cpu... " >&6; }
15107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5
15108 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; }
15109 
15110   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
15111 
15112   case "$host_os" in
15113     *linux*)
15114       VAR_OS=linux
15115       VAR_OS_TYPE=unix
15116       ;;
15117     *solaris*)
15118       VAR_OS=solaris
15119       VAR_OS_TYPE=unix
15120       ;;
15121     *darwin*)
15122       VAR_OS=macosx
15123       VAR_OS_TYPE=unix
15124       ;;
15125     *bsd*)
15126       VAR_OS=bsd
15127       VAR_OS_TYPE=unix
15128       ;;
15129     *cygwin*)
15130       VAR_OS=windows
15131       VAR_OS_ENV=windows.cygwin
15132       ;;
15133     *mingw*)
15134       VAR_OS=windows
15135       VAR_OS_ENV=windows.msys
15136       ;;
15137     *aix*)
15138       VAR_OS=aix
15139       VAR_OS_TYPE=unix
15140       ;;
15141     *)
15142       as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5
15143       ;;
15144   esac
15145 
15146 
15147   # First argument is the cpu name from the trip/quad
15148   case "$host_cpu" in
15149     x86_64)
15150       VAR_CPU=x86_64
15151       VAR_CPU_ARCH=x86
15152       VAR_CPU_BITS=64
15153       VAR_CPU_ENDIAN=little
15154       ;;
15155     i?86)
15156       VAR_CPU=x86
15157       VAR_CPU_ARCH=x86
15158       VAR_CPU_BITS=32
15159       VAR_CPU_ENDIAN=little
15160       ;;
15161     arm*)
15162       VAR_CPU=arm
15163       VAR_CPU_ARCH=arm
15164       VAR_CPU_BITS=32
15165       VAR_CPU_ENDIAN=little
15166       ;;
15167     aarch64)
15168       VAR_CPU=aarch64
15169       VAR_CPU_ARCH=aarch64
15170       VAR_CPU_BITS=64
15171       VAR_CPU_ENDIAN=little
15172       ;;
15173     powerpc)
15174       VAR_CPU=ppc
15175       VAR_CPU_ARCH=ppc
15176       VAR_CPU_BITS=32
15177       VAR_CPU_ENDIAN=big
15178       ;;
15179     powerpc64)
15180       VAR_CPU=ppc64
15181       VAR_CPU_ARCH=ppc
15182       VAR_CPU_BITS=64
15183       VAR_CPU_ENDIAN=big
15184       ;;
15185     powerpc64le)
15186       VAR_CPU=ppc64le
15187       VAR_CPU_ARCH=ppc
15188       VAR_CPU_BITS=64
15189       VAR_CPU_ENDIAN=little
15190       ;;
15191     s390)
15192       VAR_CPU=s390
15193       VAR_CPU_ARCH=s390
15194       VAR_CPU_BITS=32
15195       VAR_CPU_ENDIAN=big
15196       ;;
15197     s390x)
15198       VAR_CPU=s390x
15199       VAR_CPU_ARCH=s390
15200       VAR_CPU_BITS=64
15201       VAR_CPU_ENDIAN=big
15202       ;;
15203     sparc)
15204       VAR_CPU=sparc
15205       VAR_CPU_ARCH=sparc
15206       VAR_CPU_BITS=32
15207       VAR_CPU_ENDIAN=big
15208       ;;
15209     sparcv9|sparc64)
15210       VAR_CPU=sparcv9
15211       VAR_CPU_ARCH=sparc
15212       VAR_CPU_BITS=64
15213       VAR_CPU_ENDIAN=big
15214       ;;
15215     *)
15216       as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5
15217       ;;
15218   esac
15219 
15220   # ... and setup our own variables. (Do this explicitely to facilitate searching)
15221   OPENJDK_TARGET_OS="$VAR_OS"
15222   if test "x$VAR_OS_TYPE" != x; then
15223     OPENJDK_TARGET_OS_TYPE="$VAR_OS_TYPE"
15224   else
15225     OPENJDK_TARGET_OS_TYPE="$VAR_OS"
15226   fi
15227   if test "x$VAR_OS_ENV" != x; then
15228     OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV"
15229   else
15230     OPENJDK_TARGET_OS_ENV="$VAR_OS"
15231   fi
15232   OPENJDK_TARGET_CPU="$VAR_CPU"
15233   OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH"
15234   OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS"
15235   OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN"
15236 
15237 
15238 
15239 
15240 
15241 
15242 
15243 
15244   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5
15245 $as_echo_n "checking openjdk-target os-cpu... " >&6; }
15246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5
15247 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; }
15248 
15249 
15250 
15251 # Check whether --with-target-bits was given.
15252 if test "${with_target_bits+set}" = set; then :
15253   withval=$with_target_bits;
15254 fi
15255 
15256 
15257   # We have three types of compiles:
15258   # native  == normal compilation, target system == build system
15259   # cross   == traditional cross compilation, target system != build system; special toolchain needed
15260   # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines
15261   #
15262   if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then
15263     # We're doing a proper cross-compilation
15264     COMPILE_TYPE="cross"
15265   else
15266     COMPILE_TYPE="native"
15267   fi
15268 
15269   if test "x$with_target_bits" != x; then
15270     if test "x$COMPILE_TYPE" = "xcross"; then
15271       as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5
15272     fi
15273 
15274     if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
15275       # A reduced build is requested
15276       COMPILE_TYPE="reduced"
15277       OPENJDK_TARGET_CPU_BITS=32
15278       if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then
15279         OPENJDK_TARGET_CPU=x86
15280       elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then
15281         OPENJDK_TARGET_CPU=sparc
15282       else
15283         as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5
15284       fi
15285     elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
15286       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
15287     elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then
15288       { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5
15289 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;}
15290     else
15291       as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5
15292     fi
15293   fi
15294 
15295 
15296   { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5
15297 $as_echo_n "checking compilation type... " >&6; }
15298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5
15299 $as_echo "$COMPILE_TYPE" >&6; }
15300 
15301 
15302   if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
15303     REQUIRED_OS_NAME=SunOS
15304     REQUIRED_OS_VERSION=5.10
15305   fi
15306   if test "x$OPENJDK_TARGET_OS" = "xlinux"; then
15307     REQUIRED_OS_NAME=Linux
15308     REQUIRED_OS_VERSION=2.6
15309   fi
15310   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
15311     REQUIRED_OS_NAME=Windows
15312     if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then
15313       REQUIRED_OS_VERSION=5.2
15314     else
15315       REQUIRED_OS_VERSION=5.1
15316     fi
15317   fi
15318   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
15319     REQUIRED_OS_NAME=Darwin
15320     REQUIRED_OS_VERSION=11.2
15321   fi
15322   if test "x$OPENJDK_TARGET_OS" = "xaix"; then
15323     REQUIRED_OS_NAME=AIX
15324     REQUIRED_OS_VERSION=7.1
15325   fi
15326 
15327 
15328 
15329 
15330 
15331 
15332   # Also store the legacy naming of the cpu.
15333   # Ie i586 and amd64 instead of x86 and x86_64
15334   OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU"
15335   if test "x$OPENJDK_TARGET_CPU" = xx86; then
15336     OPENJDK_TARGET_CPU_LEGACY="i586"
15337   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
15338     # On all platforms except MacOSX replace x86_64 with amd64.
15339     OPENJDK_TARGET_CPU_LEGACY="amd64"
15340   fi
15341 
15342 
15343   # And the second legacy naming of the cpu.
15344   # Ie i386 and amd64 instead of x86 and x86_64.
15345   OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU"
15346   if test "x$OPENJDK_TARGET_CPU" = xx86; then
15347     OPENJDK_TARGET_CPU_LEGACY_LIB="i386"
15348   elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then
15349     OPENJDK_TARGET_CPU_LEGACY_LIB="amd64"
15350   fi
15351 
15352 
15353   # This is the name of the cpu (but using i386 and amd64 instead of
15354   # x86 and x86_64, respectively), preceeded by a /, to be used when
15355   # locating libraries. On macosx, it's empty, though.
15356   OPENJDK_TARGET_CPU_LIBDIR="/$OPENJDK_TARGET_CPU_LEGACY_LIB"
15357   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
15358     OPENJDK_TARGET_CPU_LIBDIR=""
15359   fi
15360 
15361 
15362   # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to
15363   # /amd64 or /sparcv9. This string is appended to some library paths, like this:
15364   # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so
15365   OPENJDK_TARGET_CPU_ISADIR=""
15366   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
15367     if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
15368       OPENJDK_TARGET_CPU_ISADIR="/amd64"
15369     elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
15370       OPENJDK_TARGET_CPU_ISADIR="/sparcv9"
15371     fi
15372   fi
15373 
15374 
15375   # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property
15376   OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU"
15377   if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then
15378     # On linux only, we replace x86 with i386.
15379     OPENJDK_TARGET_CPU_OSARCH="i386"
15380   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
15381     # On all platforms except macosx, we replace x86_64 with amd64.
15382     OPENJDK_TARGET_CPU_OSARCH="amd64"
15383   fi
15384 
15385 
15386   OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU"
15387   if test "x$OPENJDK_TARGET_CPU" = xx86; then
15388     OPENJDK_TARGET_CPU_JLI="i386"
15389   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
15390     # On all platforms except macosx, we replace x86_64 with amd64.
15391     OPENJDK_TARGET_CPU_JLI="amd64"
15392   fi
15393   # Now setup the -D flags for building libjli.
15394   OPENJDK_TARGET_CPU_JLI_CFLAGS="-DLIBARCHNAME='\"$OPENJDK_TARGET_CPU_JLI\"'"
15395   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
15396     if test "x$OPENJDK_TARGET_CPU_ARCH" = xsparc; then
15397       OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"sparc\"' -DLIBARCH64NAME='\"sparcv9\"'"
15398     elif test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then
15399       OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"i386\"' -DLIBARCH64NAME='\"amd64\"'"
15400     fi
15401   fi
15402 
15403 
15404   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
15405       OPENJDK_TARGET_OS_EXPORT_DIR=macosx
15406   else
15407       OPENJDK_TARGET_OS_EXPORT_DIR=${OPENJDK_TARGET_OS_TYPE}
15408   fi
15409 
15410 
15411   if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
15412     A_LP64="LP64:="
15413     # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in
15414     # unpack200.exe
15415     if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then
15416       OPENJDK_TARGET_ADD_LP64="-D_LP64=1"
15417     fi
15418   fi
15419   LP64=$A_LP64
15420 
15421 
15422   if test "x$COMPILE_TYPE" = "xcross"; then
15423     # FIXME: ... or should this include reduced builds..?
15424     DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY"
15425   else
15426     DEFINE_CROSS_COMPILE_ARCH=""
15427   fi
15428 
15429 
15430   # Convert openjdk platform names to hotspot names
15431 
15432   HOTSPOT_TARGET_OS=${OPENJDK_TARGET_OS}
15433   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
15434     HOTSPOT_TARGET_OS=bsd
15435   fi
15436 
15437 
15438   HOTSPOT_TARGET_OS_TYPE=${OPENJDK_TARGET_OS_TYPE}
15439   if test "x$OPENJDK_TARGET_OS_TYPE" = xunix; then
15440     HOTSPOT_TARGET_OS_TYPE=posix
15441   fi
15442 
15443 
15444   HOTSPOT_TARGET_CPU=${OPENJDK_TARGET_CPU}
15445   if test "x$OPENJDK_TARGET_CPU" = xx86; then
15446     HOTSPOT_TARGET_CPU=x86_32
15447   elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
15448     HOTSPOT_TARGET_CPU=sparc
15449   elif test "x$OPENJDK_TARGET_CPU" = xppc64; then
15450     HOTSPOT_TARGET_CPU=ppc_64
15451   elif test "x$OPENJDK_TARGET_CPU" = xppc64le; then
15452     HOTSPOT_TARGET_CPU=ppc_64
15453   fi
15454 
15455 
15456   # This is identical with OPENJDK_*, but define anyway for consistency.
15457   HOTSPOT_TARGET_CPU_ARCH=${OPENJDK_TARGET_CPU_ARCH}
15458 
15459 
15460   # Setup HOTSPOT_TARGET_CPU_DEFINE
15461   if test "x$OPENJDK_TARGET_CPU" = xx86; then
15462     HOTSPOT_TARGET_CPU_DEFINE=IA32
15463   elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then
15464     HOTSPOT_TARGET_CPU_DEFINE=AMD64
15465   elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
15466     HOTSPOT_TARGET_CPU_DEFINE=SPARC
15467   elif test "x$OPENJDK_TARGET_CPU" = xaarch64; then
15468     HOTSPOT_TARGET_CPU_DEFINE=AARCH64
15469   elif test "x$OPENJDK_TARGET_CPU" = xppc64; then
15470     HOTSPOT_TARGET_CPU_DEFINE=PPC64
15471   elif test "x$OPENJDK_TARGET_CPU" = xppc64le; then
15472     HOTSPOT_TARGET_CPU_DEFINE=PPC64
15473 
15474   # The cpu defines below are for zero, we don't support them directly.
15475   elif test "x$OPENJDK_TARGET_CPU" = xsparc; then
15476     HOTSPOT_TARGET_CPU_DEFINE=SPARC
15477   elif test "x$OPENJDK_TARGET_CPU" = xppc; then
15478     HOTSPOT_TARGET_CPU_DEFINE=PPC32
15479   elif test "x$OPENJDK_TARGET_CPU" = xs390; then
15480     HOTSPOT_TARGET_CPU_DEFINE=S390
15481   elif test "x$OPENJDK_TARGET_CPU" = ss390x; then
15482     HOTSPOT_TARGET_CPU_DEFINE=S390
15483   fi
15484 
15485 
15486 
15487 
15488   # Also store the legacy naming of the cpu.
15489   # Ie i586 and amd64 instead of x86 and x86_64
15490   OPENJDK_BUILD_CPU_LEGACY="$OPENJDK_BUILD_CPU"
15491   if test "x$OPENJDK_BUILD_CPU" = xx86; then
15492     OPENJDK_BUILD_CPU_LEGACY="i586"
15493   elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then
15494     # On all platforms except MacOSX replace x86_64 with amd64.
15495     OPENJDK_BUILD_CPU_LEGACY="amd64"
15496   fi
15497 
15498 
15499   # And the second legacy naming of the cpu.
15500   # Ie i386 and amd64 instead of x86 and x86_64.
15501   OPENJDK_BUILD_CPU_LEGACY_LIB="$OPENJDK_BUILD_CPU"
15502   if test "x$OPENJDK_BUILD_CPU" = xx86; then
15503     OPENJDK_BUILD_CPU_LEGACY_LIB="i386"
15504   elif test "x$OPENJDK_BUILD_CPU" = xx86_64; then
15505     OPENJDK_BUILD_CPU_LEGACY_LIB="amd64"
15506   fi
15507 
15508 
15509   # This is the name of the cpu (but using i386 and amd64 instead of
15510   # x86 and x86_64, respectively), preceeded by a /, to be used when
15511   # locating libraries. On macosx, it's empty, though.
15512   OPENJDK_BUILD_CPU_LIBDIR="/$OPENJDK_BUILD_CPU_LEGACY_LIB"
15513   if test "x$OPENJDK_BUILD_OS" = xmacosx; then
15514     OPENJDK_BUILD_CPU_LIBDIR=""
15515   fi
15516 
15517 
15518   # OPENJDK_BUILD_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to
15519   # /amd64 or /sparcv9. This string is appended to some library paths, like this:
15520   # /usr/lib${OPENJDK_BUILD_CPU_ISADIR}/libexample.so
15521   OPENJDK_BUILD_CPU_ISADIR=""
15522   if test "x$OPENJDK_BUILD_OS" = xsolaris; then
15523     if test "x$OPENJDK_BUILD_CPU" = xx86_64; then
15524       OPENJDK_BUILD_CPU_ISADIR="/amd64"
15525     elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then
15526       OPENJDK_BUILD_CPU_ISADIR="/sparcv9"
15527     fi
15528   fi
15529 
15530 
15531   # Setup OPENJDK_BUILD_CPU_OSARCH, which is used to set the os.arch Java system property
15532   OPENJDK_BUILD_CPU_OSARCH="$OPENJDK_BUILD_CPU"
15533   if test "x$OPENJDK_BUILD_OS" = xlinux && test "x$OPENJDK_BUILD_CPU" = xx86; then
15534     # On linux only, we replace x86 with i386.
15535     OPENJDK_BUILD_CPU_OSARCH="i386"
15536   elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then
15537     # On all platforms except macosx, we replace x86_64 with amd64.
15538     OPENJDK_BUILD_CPU_OSARCH="amd64"
15539   fi
15540 
15541 
15542   OPENJDK_BUILD_CPU_JLI="$OPENJDK_BUILD_CPU"
15543   if test "x$OPENJDK_BUILD_CPU" = xx86; then
15544     OPENJDK_BUILD_CPU_JLI="i386"
15545   elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then
15546     # On all platforms except macosx, we replace x86_64 with amd64.
15547     OPENJDK_BUILD_CPU_JLI="amd64"
15548   fi
15549   # Now setup the -D flags for building libjli.
15550   OPENJDK_BUILD_CPU_JLI_CFLAGS="-DLIBARCHNAME='\"$OPENJDK_BUILD_CPU_JLI\"'"
15551   if test "x$OPENJDK_BUILD_OS" = xsolaris; then
15552     if test "x$OPENJDK_BUILD_CPU_ARCH" = xsparc; then
15553       OPENJDK_BUILD_CPU_JLI_CFLAGS="$OPENJDK_BUILD_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"sparc\"' -DLIBARCH64NAME='\"sparcv9\"'"
15554     elif test "x$OPENJDK_BUILD_CPU_ARCH" = xx86; then
15555       OPENJDK_BUILD_CPU_JLI_CFLAGS="$OPENJDK_BUILD_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"i386\"' -DLIBARCH64NAME='\"amd64\"'"
15556     fi
15557   fi
15558 
15559 
15560   if test "x$OPENJDK_BUILD_OS" = xmacosx; then
15561       OPENJDK_BUILD_OS_EXPORT_DIR=macosx
15562   else
15563       OPENJDK_BUILD_OS_EXPORT_DIR=${OPENJDK_BUILD_OS_TYPE}
15564   fi
15565 
15566 
15567   if test "x$OPENJDK_BUILD_CPU_BITS" = x64; then
15568     A_LP64="LP64:="
15569     # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in
15570     # unpack200.exe
15571     if test "x$OPENJDK_BUILD_OS" = xlinux || test "x$OPENJDK_BUILD_OS" = xmacosx; then
15572       OPENJDK_BUILD_ADD_LP64="-D_LP64=1"
15573     fi
15574   fi
15575   LP64=$A_LP64
15576 
15577 
15578   if test "x$COMPILE_TYPE" = "xcross"; then
15579     # FIXME: ... or should this include reduced builds..?
15580     DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_BUILD_CPU_LEGACY"
15581   else
15582     DEFINE_CROSS_COMPILE_ARCH=""
15583   fi
15584 
15585 
15586   # Convert openjdk platform names to hotspot names
15587 
15588   HOTSPOT_BUILD_OS=${OPENJDK_BUILD_OS}
15589   if test "x$OPENJDK_BUILD_OS" = xmacosx; then
15590     HOTSPOT_BUILD_OS=bsd
15591   fi
15592 
15593 
15594   HOTSPOT_BUILD_OS_TYPE=${OPENJDK_BUILD_OS_TYPE}
15595   if test "x$OPENJDK_BUILD_OS_TYPE" = xunix; then
15596     HOTSPOT_BUILD_OS_TYPE=posix
15597   fi
15598 
15599 
15600   HOTSPOT_BUILD_CPU=${OPENJDK_BUILD_CPU}
15601   if test "x$OPENJDK_BUILD_CPU" = xx86; then
15602     HOTSPOT_BUILD_CPU=x86_32
15603   elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then
15604     HOTSPOT_BUILD_CPU=sparc
15605   elif test "x$OPENJDK_BUILD_CPU" = xppc64; then
15606     HOTSPOT_BUILD_CPU=ppc_64
15607   elif test "x$OPENJDK_BUILD_CPU" = xppc64le; then
15608     HOTSPOT_BUILD_CPU=ppc_64
15609   fi
15610 
15611 
15612   # This is identical with OPENJDK_*, but define anyway for consistency.
15613   HOTSPOT_BUILD_CPU_ARCH=${OPENJDK_BUILD_CPU_ARCH}
15614 
15615 
15616   # Setup HOTSPOT_BUILD_CPU_DEFINE
15617   if test "x$OPENJDK_BUILD_CPU" = xx86; then
15618     HOTSPOT_BUILD_CPU_DEFINE=IA32
15619   elif test "x$OPENJDK_BUILD_CPU" = xx86_64; then
15620     HOTSPOT_BUILD_CPU_DEFINE=AMD64
15621   elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then
15622     HOTSPOT_BUILD_CPU_DEFINE=SPARC
15623   elif test "x$OPENJDK_BUILD_CPU" = xaarch64; then
15624     HOTSPOT_BUILD_CPU_DEFINE=AARCH64
15625   elif test "x$OPENJDK_BUILD_CPU" = xppc64; then
15626     HOTSPOT_BUILD_CPU_DEFINE=PPC64
15627   elif test "x$OPENJDK_BUILD_CPU" = xppc64le; then
15628     HOTSPOT_BUILD_CPU_DEFINE=PPC64
15629 
15630   # The cpu defines below are for zero, we don't support them directly.
15631   elif test "x$OPENJDK_BUILD_CPU" = xsparc; then
15632     HOTSPOT_BUILD_CPU_DEFINE=SPARC
15633   elif test "x$OPENJDK_BUILD_CPU" = xppc; then
15634     HOTSPOT_BUILD_CPU_DEFINE=PPC32
15635   elif test "x$OPENJDK_BUILD_CPU" = xs390; then
15636     HOTSPOT_BUILD_CPU_DEFINE=S390
15637   elif test "x$OPENJDK_BUILD_CPU" = ss390x; then
15638     HOTSPOT_BUILD_CPU_DEFINE=S390
15639   fi
15640 
15641 
15642 
15643 
15644   # ZERO_ARCHDEF is used to enable architecture-specific code.
15645   # This is used in legacy hotspot build.
15646   ZERO_ARCHDEF="$HOTSPOT_TARGET_CPU_DEFINE"
15647 
15648 
15649 
15650 
15651 
15652 # Continue setting up basic stuff. Most remaining code require fundamental tools.
15653 
15654   # Save the current directory this script was started from
15655   CURDIR="$PWD"
15656 
15657   # We might need to rewrite ORIGINAL_PATH, if it includes "#", to quote them
15658   # for make. We couldn't do this when we retrieved ORIGINAL_PATH, since SED
15659   # was not available at that time.
15660   REWRITTEN_PATH=`$ECHO "$ORIGINAL_PATH" | $SED -e 's/#/\\\\#/g'`
15661   if test "x$REWRITTEN_PATH" != "x$ORIGINAL_PATH"; then
15662     ORIGINAL_PATH="$REWRITTEN_PATH"
15663     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&5
15664 $as_echo "$as_me: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&6;}
15665   fi
15666 
15667   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
15668     PATH_SEP=";"
15669 
15670   SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m`
15671   if test $SRC_ROOT_LENGTH -gt 100; then
15672     as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5
15673   fi
15674 
15675   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15676     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5
15677 $as_echo_n "checking cygwin release... " >&6; }
15678     CYGWIN_VERSION=`$UNAME -r`
15679     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5
15680 $as_echo "$CYGWIN_VERSION" >&6; }
15681     WINDOWS_ENV_VENDOR='cygwin'
15682     WINDOWS_ENV_VERSION="$CYGWIN_VERSION"
15683 
15684     CYGWIN_VERSION_OLD=`$ECHO $CYGWIN_VERSION | $GREP -e '^1\.0-6'`
15685     if test "x$CYGWIN_VERSION_OLD" != x; then
15686       { $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
15687 $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;}
15688       as_fn_error $? "Cannot continue" "$LINENO" 5
15689     fi
15690     if test "x$CYGPATH" = x; then
15691       as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5
15692     fi
15693     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5
15694 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; }
15695     # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
15696     cygwin_winpath_root=`cd / ; cmd /c cd | grep ".*"`
15697     # Force cygpath to report the proper root by including a trailing space, and then stripping it off again.
15698     CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "`
15699     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5
15700 $as_echo "$CYGWIN_ROOT_PATH" >&6; }
15701     WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH"
15702     test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/`
15703     if test "x$test_cygdrive_prefix" = x; then
15704       as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5
15705     fi
15706   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15707     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5
15708 $as_echo_n "checking msys release... " >&6; }
15709     MSYS_VERSION=`$UNAME -r`
15710     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5
15711 $as_echo "$MSYS_VERSION" >&6; }
15712 
15713     WINDOWS_ENV_VENDOR='msys'
15714     WINDOWS_ENV_VERSION="$MSYS_VERSION"
15715 
15716     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5
15717 $as_echo_n "checking msys root directory as unix-style path... " >&6; }
15718     # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
15719     MSYS_ROOT_PATH=`cd / ; cmd /c cd | grep ".*"`
15720 
15721   windows_path="$MSYS_ROOT_PATH"
15722   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15723     unix_path=`$CYGPATH -u "$windows_path"`
15724     MSYS_ROOT_PATH="$unix_path"
15725   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15726     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15727     MSYS_ROOT_PATH="$unix_path"
15728   fi
15729 
15730     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5
15731 $as_echo "$MSYS_ROOT_PATH" >&6; }
15732     WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH"
15733   else
15734     as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5
15735   fi
15736 
15737   # Test if windows or unix (cygwin/msys) find is first in path.
15738   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5
15739 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; }
15740   FIND_BINARY_OUTPUT=`find --version 2>&1`
15741   if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then
15742     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5
15743 $as_echo "unix style" >&6; }
15744   elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then
15745     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5
15746 $as_echo "Windows" >&6; }
15747     { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5
15748 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;}
15749     { $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
15750 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;}
15751     as_fn_error $? "Cannot continue" "$LINENO" 5
15752   else
15753     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
15754 $as_echo "unknown" >&6; }
15755     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5
15756 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;}
15757   fi
15758 
15759   else
15760     PATH_SEP=":"
15761   fi
15762 
15763 
15764   # We get the top-level directory from the supporting wrappers.
15765   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for top-level directory" >&5
15766 $as_echo_n "checking for top-level directory... " >&6; }
15767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5
15768 $as_echo "$TOPDIR" >&6; }
15769 
15770 
15771   # Save the original version of TOPDIR for string comparisons
15772   ORIGINAL_TOPDIR="$TOPDIR"
15773 
15774 
15775   # We can only call BASIC_FIXUP_PATH after BASIC_CHECK_PATHS_WINDOWS.
15776 
15777   # Only process if variable expands to non-empty
15778 
15779   if test "x$CURDIR" != x; then
15780     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15781 
15782   # Input might be given as Windows format, start by converting to
15783   # unix format.
15784   path="$CURDIR"
15785   new_path=`$CYGPATH -u "$path"`
15786 
15787   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15788   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15789   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15790   # "foo.exe" is OK but "foo" is an error.
15791   #
15792   # This test is therefore slightly more accurate than "test -f" to check for file precense.
15793   # It is also a way to make sure we got the proper file name for the real test later on.
15794   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15795   if test "x$test_shortpath" = x; then
15796     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
15797 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
15798     as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5
15799   fi
15800 
15801   # Call helper function which possibly converts this using DOS-style short mode.
15802   # If so, the updated path is stored in $new_path.
15803 
15804   input_path="$new_path"
15805   # Check if we need to convert this using DOS-style short mode. If the path
15806   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15807   # take no chances and rewrite it.
15808   # Note: m4 eats our [], so we need to use [ and ] instead.
15809   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15810   if test "x$has_forbidden_chars" != x; then
15811     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15812     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15813     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15814     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15815       # Going to short mode and back again did indeed matter. Since short mode is
15816       # case insensitive, let's make it lowercase to improve readability.
15817       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15818       # Now convert it back to Unix-style (cygpath)
15819       input_path=`$CYGPATH -u "$shortmode_path"`
15820       new_path="$input_path"
15821     fi
15822   fi
15823 
15824   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15825   if test "x$test_cygdrive_prefix" = x; then
15826     # As a simple fix, exclude /usr/bin since it's not a real path.
15827     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
15828       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15829       # a path prefixed by /cygdrive for fixpath to work.
15830       new_path="$CYGWIN_ROOT_PATH$input_path"
15831     fi
15832   fi
15833 
15834 
15835   if test "x$path" != "x$new_path"; then
15836     CURDIR="$new_path"
15837     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
15838 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
15839   fi
15840 
15841     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15842 
15843   path="$CURDIR"
15844   has_colon=`$ECHO $path | $GREP ^.:`
15845   new_path="$path"
15846   if test "x$has_colon" = x; then
15847     # Not in mixed or Windows style, start by that.
15848     new_path=`cmd //c echo $path`
15849   fi
15850 
15851 
15852   input_path="$new_path"
15853   # Check if we need to convert this using DOS-style short mode. If the path
15854   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15855   # take no chances and rewrite it.
15856   # Note: m4 eats our [], so we need to use [ and ] instead.
15857   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15858   if test "x$has_forbidden_chars" != x; then
15859     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15860     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15861   fi
15862 
15863 
15864   windows_path="$new_path"
15865   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15866     unix_path=`$CYGPATH -u "$windows_path"`
15867     new_path="$unix_path"
15868   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15869     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15870     new_path="$unix_path"
15871   fi
15872 
15873   if test "x$path" != "x$new_path"; then
15874     CURDIR="$new_path"
15875     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
15876 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
15877   fi
15878 
15879   # Save the first 10 bytes of this path to the storage, so fixpath can work.
15880   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15881 
15882     else
15883       # We're on a unix platform. Hooray! :)
15884       path="$CURDIR"
15885       has_space=`$ECHO "$path" | $GREP " "`
15886       if test "x$has_space" != x; then
15887         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
15888 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
15889         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
15890       fi
15891 
15892       # Use eval to expand a potential ~
15893       eval path="$path"
15894       if test ! -f "$path" && test ! -d "$path"; then
15895         as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5
15896       fi
15897 
15898       if test -d "$path"; then
15899         CURDIR="`cd "$path"; $THEPWDCMD -L`"
15900       else
15901         dir="`$DIRNAME "$path"`"
15902         base="`$BASENAME "$path"`"
15903         CURDIR="`cd "$dir"; $THEPWDCMD -L`/$base"
15904       fi
15905     fi
15906   fi
15907 
15908 
15909   # Only process if variable expands to non-empty
15910 
15911   if test "x$TOPDIR" != x; then
15912     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15913 
15914   # Input might be given as Windows format, start by converting to
15915   # unix format.
15916   path="$TOPDIR"
15917   new_path=`$CYGPATH -u "$path"`
15918 
15919   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15920   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15921   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15922   # "foo.exe" is OK but "foo" is an error.
15923   #
15924   # This test is therefore slightly more accurate than "test -f" to check for file precense.
15925   # It is also a way to make sure we got the proper file name for the real test later on.
15926   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15927   if test "x$test_shortpath" = x; then
15928     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
15929 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
15930     as_fn_error $? "Cannot locate the the path of TOPDIR" "$LINENO" 5
15931   fi
15932 
15933   # Call helper function which possibly converts this using DOS-style short mode.
15934   # If so, the updated path is stored in $new_path.
15935 
15936   input_path="$new_path"
15937   # Check if we need to convert this using DOS-style short mode. If the path
15938   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15939   # take no chances and rewrite it.
15940   # Note: m4 eats our [], so we need to use [ and ] instead.
15941   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15942   if test "x$has_forbidden_chars" != x; then
15943     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15944     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15945     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15946     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15947       # Going to short mode and back again did indeed matter. Since short mode is
15948       # case insensitive, let's make it lowercase to improve readability.
15949       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15950       # Now convert it back to Unix-style (cygpath)
15951       input_path=`$CYGPATH -u "$shortmode_path"`
15952       new_path="$input_path"
15953     fi
15954   fi
15955 
15956   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15957   if test "x$test_cygdrive_prefix" = x; then
15958     # As a simple fix, exclude /usr/bin since it's not a real path.
15959     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
15960       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15961       # a path prefixed by /cygdrive for fixpath to work.
15962       new_path="$CYGWIN_ROOT_PATH$input_path"
15963     fi
15964   fi
15965 
15966 
15967   if test "x$path" != "x$new_path"; then
15968     TOPDIR="$new_path"
15969     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
15970 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
15971   fi
15972 
15973     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15974 
15975   path="$TOPDIR"
15976   has_colon=`$ECHO $path | $GREP ^.:`
15977   new_path="$path"
15978   if test "x$has_colon" = x; then
15979     # Not in mixed or Windows style, start by that.
15980     new_path=`cmd //c echo $path`
15981   fi
15982 
15983 
15984   input_path="$new_path"
15985   # Check if we need to convert this using DOS-style short mode. If the path
15986   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15987   # take no chances and rewrite it.
15988   # Note: m4 eats our [], so we need to use [ and ] instead.
15989   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15990   if test "x$has_forbidden_chars" != x; then
15991     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15992     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15993   fi
15994 
15995 
15996   windows_path="$new_path"
15997   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15998     unix_path=`$CYGPATH -u "$windows_path"`
15999     new_path="$unix_path"
16000   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16001     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16002     new_path="$unix_path"
16003   fi
16004 
16005   if test "x$path" != "x$new_path"; then
16006     TOPDIR="$new_path"
16007     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
16008 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
16009   fi
16010 
16011   # Save the first 10 bytes of this path to the storage, so fixpath can work.
16012   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16013 
16014     else
16015       # We're on a unix platform. Hooray! :)
16016       path="$TOPDIR"
16017       has_space=`$ECHO "$path" | $GREP " "`
16018       if test "x$has_space" != x; then
16019         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
16020 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
16021         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
16022       fi
16023 
16024       # Use eval to expand a potential ~
16025       eval path="$path"
16026       if test ! -f "$path" && test ! -d "$path"; then
16027         as_fn_error $? "The path of TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5
16028       fi
16029 
16030       if test -d "$path"; then
16031         TOPDIR="`cd "$path"; $THEPWDCMD -L`"
16032       else
16033         dir="`$DIRNAME "$path"`"
16034         base="`$BASENAME "$path"`"
16035         TOPDIR="`cd "$dir"; $THEPWDCMD -L`/$base"
16036       fi
16037     fi
16038   fi
16039 
16040   # SRC_ROOT is a traditional alias for TOPDIR.
16041   SRC_ROOT=$TOPDIR
16042 
16043   # Calculate a canonical version of TOPDIR for string comparisons
16044   CANONICAL_TOPDIR=$TOPDIR
16045 
16046   if test "x$OPENJDK_BUILD_OS" != xwindows; then
16047     # Follow a chain of symbolic links. Use readlink
16048     # where it exists, else fall back to horribly
16049     # complicated shell code.
16050     if test "x$READLINK_TESTED" != yes; then
16051       # On MacOSX there is a readlink tool with a different
16052       # purpose than the GNU readlink tool. Check the found readlink.
16053       ISGNU=`$READLINK --version 2>&1 | $GREP GNU`
16054       if test "x$ISGNU" = x; then
16055         # A readlink that we do not know how to use.
16056         # Are there other non-GNU readlinks out there?
16057         READLINK_TESTED=yes
16058         READLINK=
16059       fi
16060     fi
16061 
16062     if test "x$READLINK" != x; then
16063       CANONICAL_TOPDIR=`$READLINK -f $CANONICAL_TOPDIR`
16064     else
16065       # Save the current directory for restoring afterwards
16066       STARTDIR=$PWD
16067       COUNTER=0
16068       sym_link_dir=`$DIRNAME $CANONICAL_TOPDIR`
16069       sym_link_file=`$BASENAME $CANONICAL_TOPDIR`
16070       cd $sym_link_dir
16071       # Use -P flag to resolve symlinks in directories.
16072       cd `$THEPWDCMD -P`
16073       sym_link_dir=`$THEPWDCMD -P`
16074       # Resolve file symlinks
16075       while test $COUNTER -lt 20; do
16076         ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'`
16077         if test "x$ISLINK" == x; then
16078           # This is not a symbolic link! We are done!
16079           break
16080         fi
16081         # Again resolve directory symlinks since the target of the just found
16082         # link could be in a different directory
16083         cd `$DIRNAME $ISLINK`
16084         sym_link_dir=`$THEPWDCMD -P`
16085         sym_link_file=`$BASENAME $ISLINK`
16086         let COUNTER=COUNTER+1
16087       done
16088       cd $STARTDIR
16089       CANONICAL_TOPDIR=$sym_link_dir/$sym_link_file
16090     fi
16091   fi
16092 
16093 
16094 
16095   # Locate the directory of this script.
16096   AUTOCONF_DIR=$TOPDIR/common/autoconf
16097 
16098   # Setup username (for use in adhoc version strings etc)
16099   # Outer [ ] to quote m4.
16100    USERNAME=`$ECHO "$USER" | $TR -d -c '[a-z][A-Z][0-9]'`
16101 
16102 
16103 
16104 # Check if it's a pure open build or if custom sources are to be used.
16105 
16106   # Check whether --enable-openjdk-only was given.
16107 if test "${enable_openjdk_only+set}" = set; then :
16108   enableval=$enable_openjdk_only;
16109 else
16110   enable_openjdk_only="no"
16111 fi
16112 
16113 
16114   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of closed sources" >&5
16115 $as_echo_n "checking for presence of closed sources... " >&6; }
16116   if test -d "$SRC_ROOT/jdk/src/closed"; then
16117     CLOSED_SOURCE_PRESENT=yes
16118   else
16119     CLOSED_SOURCE_PRESENT=no
16120   fi
16121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLOSED_SOURCE_PRESENT" >&5
16122 $as_echo "$CLOSED_SOURCE_PRESENT" >&6; }
16123 
16124   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closed source is suppressed (openjdk-only)" >&5
16125 $as_echo_n "checking if closed source is suppressed (openjdk-only)... " >&6; }
16126   SUPPRESS_CLOSED_SOURCE="$enable_openjdk_only"
16127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SUPPRESS_CLOSED_SOURCE" >&5
16128 $as_echo "$SUPPRESS_CLOSED_SOURCE" >&6; }
16129 
16130   if test "x$CLOSED_SOURCE_PRESENT" = xno; then
16131     OPENJDK=true
16132     if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then
16133       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&5
16134 $as_echo "$as_me: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&2;}
16135     fi
16136   else
16137     if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then
16138       OPENJDK=true
16139     else
16140       OPENJDK=false
16141     fi
16142   fi
16143 
16144   if test "x$OPENJDK" = "xtrue"; then
16145     SET_OPENJDK="OPENJDK=true"
16146   fi
16147 
16148 
16149 
16150   # custom-make-dir is deprecated. Please use your custom-hook.m4 to override
16151   # the IncludeCustomExtension macro.
16152 
16153 
16154 # Check whether --with-custom-make-dir was given.
16155 if test "${with_custom_make_dir+set}" = set; then :
16156   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
16157 $as_echo "$as_me: WARNING: Option --with-custom-make-dir is deprecated and will be ignored." >&2;}
16158 fi
16159 
16160 
16161 
16162 
16163 # These are needed to be able to create a configuration name (and thus the output directory)
16164 
16165   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5
16166 $as_echo_n "checking which variant of the JDK to build... " >&6; }
16167 
16168 # Check whether --with-jdk-variant was given.
16169 if test "${with_jdk_variant+set}" = set; then :
16170   withval=$with_jdk_variant;
16171 fi
16172 
16173 
16174   if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then
16175     JDK_VARIANT="normal"
16176   else
16177     as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5
16178   fi
16179 
16180 
16181 
16182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5
16183 $as_echo "$JDK_VARIANT" >&6; }
16184 
16185 
16186   DEBUG_LEVEL="release"
16187   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5
16188 $as_echo_n "checking which debug level to use... " >&6; }
16189   # Check whether --enable-debug was given.
16190 if test "${enable_debug+set}" = set; then :
16191   enableval=$enable_debug;
16192         ENABLE_DEBUG="${enableval}"
16193         DEBUG_LEVEL="fastdebug"
16194 
16195 else
16196   ENABLE_DEBUG="no"
16197 fi
16198 
16199 
16200 
16201 # Check whether --with-debug-level was given.
16202 if test "${with_debug_level+set}" = set; then :
16203   withval=$with_debug_level;
16204         DEBUG_LEVEL="${withval}"
16205         if test "x$ENABLE_DEBUG" = xyes; then
16206           as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5
16207         fi
16208 
16209 fi
16210 
16211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5
16212 $as_echo "$DEBUG_LEVEL" >&6; }
16213 
16214   if test "x$DEBUG_LEVEL" != xrelease && \
16215       test "x$DEBUG_LEVEL" != xoptimized && \
16216       test "x$DEBUG_LEVEL" != xfastdebug && \
16217       test "x$DEBUG_LEVEL" != xslowdebug; then
16218     as_fn_error $? "Allowed debug levels are: release, fastdebug, slowdebug and optimized" "$LINENO" 5
16219   fi
16220 
16221   # Translate DEBUG_LEVEL to debug level used by Hotspot
16222   HOTSPOT_DEBUG_LEVEL="$DEBUG_LEVEL"
16223   if test "x$DEBUG_LEVEL" = xrelease; then
16224     HOTSPOT_DEBUG_LEVEL="product"
16225   elif test "x$DEBUG_LEVEL" = xslowdebug; then
16226     HOTSPOT_DEBUG_LEVEL="debug"
16227   fi
16228 
16229   if test "x$DEBUG_LEVEL" = xoptimized; then
16230     # The debug level 'optimized' is a little special because it is currently only
16231     # applicable to the HotSpot build where it means to build a completely
16232     # optimized version of the VM without any debugging code (like for the
16233     # 'release' debug level which is called 'product' in the HotSpot build) but
16234     # with the exception that it can contain additional code which is otherwise
16235     # protected by '#ifndef PRODUCT' macros. These 'optimized' builds are used to
16236     # test new and/or experimental features which are not intended for customer
16237     # shipment. Because these new features need to be tested and benchmarked in
16238     # real world scenarios, we want to build the containing JDK at the 'release'
16239     # debug level.
16240     DEBUG_LEVEL="release"
16241   fi
16242 
16243 
16244 
16245 
16246 
16247 
16248 # Check whether --with-jvm-variants was given.
16249 if test "${with_jvm_variants+set}" = set; then :
16250   withval=$with_jvm_variants;
16251 fi
16252 
16253 
16254   if test "x$with_jvm_variants" = x; then
16255     with_jvm_variants="server"
16256   fi
16257   JVM_VARIANTS_OPT="$with_jvm_variants"
16258 
16259   # Has the user listed more than one variant?
16260   # Additional [] needed to keep m4 from mangling shell constructs.
16261   if  [[ "$JVM_VARIANTS_OPT" =~ "," ]] ; then
16262     BUILDING_MULTIPLE_JVM_VARIANTS=true
16263   else
16264     BUILDING_MULTIPLE_JVM_VARIANTS=false
16265   fi
16266   # Replace the commas with AND for use in the build directory name.
16267   JVM_VARIANTS_WITH_AND=`$ECHO "$JVM_VARIANTS_OPT" | $SED -e 's/,/AND/g'`
16268 
16269   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5
16270 $as_echo_n "checking which variants of the JVM to build... " >&6; }
16271   # JVM_VARIANTS is a space-separated list.
16272   # Also use minimal, not minimal1 (which is kept for backwards compatibility).
16273   JVM_VARIANTS=`$ECHO $JVM_VARIANTS_OPT | $SED -e 's/,/ /g' -e 's/minimal1/minimal/'`
16274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JVM_VARIANTS" >&5
16275 $as_echo "$JVM_VARIANTS" >&6; }
16276 
16277   # Check that the selected variants are valid
16278 
16279   # grep filter function inspired by a comment to http://stackoverflow.com/a/1617326
16280   # Notice that the original variant failes on SLES 10 and 11
16281   NEEDLE=${VALID_JVM_VARIANTS// /$'\n'}
16282   STACK=${JVM_VARIANTS// /$'\n'}
16283   INVALID_VARIANTS=`$GREP -Fvx "${NEEDLE}" <<< "${STACK}"`
16284   if test "x$INVALID_VARIANTS" != x; then
16285     { $as_echo "$as_me:${as_lineno-$LINENO}: Unknown variant(s) specified: $INVALID_VARIANTS" >&5
16286 $as_echo "$as_me: Unknown variant(s) specified: $INVALID_VARIANTS" >&6;}
16287     as_fn_error $? "The available JVM variants are: $VALID_JVM_VARIANTS" "$LINENO" 5
16288   fi
16289 
16290   # All "special" variants share the same output directory ("server")
16291   VALID_MULTIPLE_JVM_VARIANTS="server client minimal"
16292   NEEDLE=${VALID_MULTIPLE_JVM_VARIANTS// /$'\n'}
16293   STACK=${JVM_VARIANTS// /$'\n'}
16294   INVALID_MULTIPLE_VARIANTS=`$GREP -Fvx "${NEEDLE}" <<< "${STACK}"`
16295   if  test "x$INVALID_MULTIPLE_VARIANTS" != x && test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = xtrue; then
16296     as_fn_error $? "You cannot build multiple variants with anything else than $VALID_MULTIPLE_JVM_VARIANTS." "$LINENO" 5
16297   fi
16298 
16299 
16300 
16301 
16302   if   [[ " $JVM_VARIANTS " =~ " zero " ]]   ||   [[ " $JVM_VARIANTS " =~ " zeroshark " ]]  ; then
16303     # zero behaves as a platform and rewrites these values. This is really weird. :(
16304     # We are guaranteed that we do not build any other variants when building zero.
16305     HOTSPOT_TARGET_CPU=zero
16306     HOTSPOT_TARGET_CPU_ARCH=zero
16307   fi
16308 
16309 
16310 # With basic setup done, call the custom early hook.
16311 
16312 
16313 # Check if we have devkits, extra paths or sysroot set.
16314 
16315 
16316 # Check whether --with-devkit was given.
16317 if test "${with_devkit+set}" = set; then :
16318   withval=$with_devkit;
16319 
16320   # Only process if variable expands to non-empty
16321 
16322   if test "x$with_devkit" != x; then
16323     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16324 
16325   # Input might be given as Windows format, start by converting to
16326   # unix format.
16327   path="$with_devkit"
16328   new_path=`$CYGPATH -u "$path"`
16329 
16330   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16331   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16332   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16333   # "foo.exe" is OK but "foo" is an error.
16334   #
16335   # This test is therefore slightly more accurate than "test -f" to check for file precense.
16336   # It is also a way to make sure we got the proper file name for the real test later on.
16337   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16338   if test "x$test_shortpath" = x; then
16339     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
16340 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
16341     as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5
16342   fi
16343 
16344   # Call helper function which possibly converts this using DOS-style short mode.
16345   # If so, the updated path is stored in $new_path.
16346 
16347   input_path="$new_path"
16348   # Check if we need to convert this using DOS-style short mode. If the path
16349   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16350   # take no chances and rewrite it.
16351   # Note: m4 eats our [], so we need to use [ and ] instead.
16352   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16353   if test "x$has_forbidden_chars" != x; then
16354     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16355     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16356     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16357     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16358       # Going to short mode and back again did indeed matter. Since short mode is
16359       # case insensitive, let's make it lowercase to improve readability.
16360       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16361       # Now convert it back to Unix-style (cygpath)
16362       input_path=`$CYGPATH -u "$shortmode_path"`
16363       new_path="$input_path"
16364     fi
16365   fi
16366 
16367   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16368   if test "x$test_cygdrive_prefix" = x; then
16369     # As a simple fix, exclude /usr/bin since it's not a real path.
16370     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
16371       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16372       # a path prefixed by /cygdrive for fixpath to work.
16373       new_path="$CYGWIN_ROOT_PATH$input_path"
16374     fi
16375   fi
16376 
16377 
16378   if test "x$path" != "x$new_path"; then
16379     with_devkit="$new_path"
16380     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
16381 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
16382   fi
16383 
16384     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16385 
16386   path="$with_devkit"
16387   has_colon=`$ECHO $path | $GREP ^.:`
16388   new_path="$path"
16389   if test "x$has_colon" = x; then
16390     # Not in mixed or Windows style, start by that.
16391     new_path=`cmd //c echo $path`
16392   fi
16393 
16394 
16395   input_path="$new_path"
16396   # Check if we need to convert this using DOS-style short mode. If the path
16397   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16398   # take no chances and rewrite it.
16399   # Note: m4 eats our [], so we need to use [ and ] instead.
16400   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16401   if test "x$has_forbidden_chars" != x; then
16402     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16403     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16404   fi
16405 
16406 
16407   windows_path="$new_path"
16408   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16409     unix_path=`$CYGPATH -u "$windows_path"`
16410     new_path="$unix_path"
16411   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16412     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16413     new_path="$unix_path"
16414   fi
16415 
16416   if test "x$path" != "x$new_path"; then
16417     with_devkit="$new_path"
16418     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
16419 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
16420   fi
16421 
16422   # Save the first 10 bytes of this path to the storage, so fixpath can work.
16423   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16424 
16425     else
16426       # We're on a unix platform. Hooray! :)
16427       path="$with_devkit"
16428       has_space=`$ECHO "$path" | $GREP " "`
16429       if test "x$has_space" != x; then
16430         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
16431 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
16432         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
16433       fi
16434 
16435       # Use eval to expand a potential ~
16436       eval path="$path"
16437       if test ! -f "$path" && test ! -d "$path"; then
16438         as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5
16439       fi
16440 
16441       if test -d "$path"; then
16442         with_devkit="`cd "$path"; $THEPWDCMD -L`"
16443       else
16444         dir="`$DIRNAME "$path"`"
16445         base="`$BASENAME "$path"`"
16446         with_devkit="`cd "$dir"; $THEPWDCMD -L`/$base"
16447       fi
16448     fi
16449   fi
16450 
16451         DEVKIT_ROOT="$with_devkit"
16452         # Check for a meta data info file in the root of the devkit
16453         if test -f "$DEVKIT_ROOT/devkit.info"; then
16454           . $DEVKIT_ROOT/devkit.info
16455           # This potentially sets the following:
16456           # A descriptive name of the devkit
16457 
16458   if test "x$DEVKIT_NAME" = x; then
16459     eval DEVKIT_NAME="\${DEVKIT_NAME_${OPENJDK_TARGET_CPU}}"
16460   fi
16461 
16462           # Corresponds to --with-extra-path
16463 
16464   if test "x$DEVKIT_EXTRA_PATH" = x; then
16465     eval DEVKIT_EXTRA_PATH="\${DEVKIT_EXTRA_PATH_${OPENJDK_TARGET_CPU}}"
16466   fi
16467 
16468           # Corresponds to --with-toolchain-path
16469 
16470   if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then
16471     eval DEVKIT_TOOLCHAIN_PATH="\${DEVKIT_TOOLCHAIN_PATH_${OPENJDK_TARGET_CPU}}"
16472   fi
16473 
16474           # Corresponds to --with-sysroot
16475 
16476   if test "x$DEVKIT_SYSROOT" = x; then
16477     eval DEVKIT_SYSROOT="\${DEVKIT_SYSROOT_${OPENJDK_TARGET_CPU}}"
16478   fi
16479 
16480 
16481           # Identifies the Visual Studio version in the devkit
16482 
16483   if test "x$DEVKIT_VS_VERSION" = x; then
16484     eval DEVKIT_VS_VERSION="\${DEVKIT_VS_VERSION_${OPENJDK_TARGET_CPU}}"
16485   fi
16486 
16487           # The Visual Studio include environment variable
16488 
16489   if test "x$DEVKIT_VS_INCLUDE" = x; then
16490     eval DEVKIT_VS_INCLUDE="\${DEVKIT_VS_INCLUDE_${OPENJDK_TARGET_CPU}}"
16491   fi
16492 
16493           # The Visual Studio lib environment variable
16494 
16495   if test "x$DEVKIT_VS_LIB" = x; then
16496     eval DEVKIT_VS_LIB="\${DEVKIT_VS_LIB_${OPENJDK_TARGET_CPU}}"
16497   fi
16498 
16499           # Corresponds to --with-msvcr-dll
16500 
16501   if test "x$DEVKIT_MSVCR_DLL" = x; then
16502     eval DEVKIT_MSVCR_DLL="\${DEVKIT_MSVCR_DLL_${OPENJDK_TARGET_CPU}}"
16503   fi
16504 
16505           # Corresponds to --with-msvcp-dll
16506 
16507   if test "x$DEVKIT_MSVCP_DLL" = x; then
16508     eval DEVKIT_MSVCP_DLL="\${DEVKIT_MSVCP_DLL_${OPENJDK_TARGET_CPU}}"
16509   fi
16510 
16511         fi
16512 
16513         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devkit" >&5
16514 $as_echo_n "checking for devkit... " >&6; }
16515         if test "x$DEVKIT_NAME" != x; then
16516           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_NAME in $DEVKIT_ROOT" >&5
16517 $as_echo "$DEVKIT_NAME in $DEVKIT_ROOT" >&6; }
16518         else
16519           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_ROOT" >&5
16520 $as_echo "$DEVKIT_ROOT" >&6; }
16521         fi
16522 
16523 
16524   if test "x$DEVKIT_EXTRA_PATH" != x; then
16525     if test "x$EXTRA_PATH" = x; then
16526       EXTRA_PATH="$DEVKIT_EXTRA_PATH"
16527     else
16528       EXTRA_PATH="$DEVKIT_EXTRA_PATH:$EXTRA_PATH"
16529     fi
16530   fi
16531 
16532 
16533         # Fallback default of just /bin if DEVKIT_PATH is not defined
16534         if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then
16535           DEVKIT_TOOLCHAIN_PATH="$DEVKIT_ROOT/bin"
16536         fi
16537 
16538   if test "x$DEVKIT_TOOLCHAIN_PATH" != x; then
16539     if test "x$TOOLCHAIN_PATH" = x; then
16540       TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH"
16541     else
16542       TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH:$TOOLCHAIN_PATH"
16543     fi
16544   fi
16545 
16546 
16547         # If DEVKIT_SYSROOT is set, use that, otherwise try a couple of known
16548         # places for backwards compatiblity.
16549         if test "x$DEVKIT_SYSROOT" != x; then
16550           SYSROOT="$DEVKIT_SYSROOT"
16551         elif test -d "$DEVKIT_ROOT/$host_alias/libc"; then
16552           SYSROOT="$DEVKIT_ROOT/$host_alias/libc"
16553         elif test -d "$DEVKIT_ROOT/$host/sys-root"; then
16554           SYSROOT="$DEVKIT_ROOT/$host/sys-root"
16555         fi
16556 
16557 
16558 fi
16559 
16560 
16561   # You can force the sysroot if the sysroot encoded into the compiler tools
16562   # is not correct.
16563 
16564 # Check whether --with-sys-root was given.
16565 if test "${with_sys_root+set}" = set; then :
16566   withval=$with_sys_root; SYSROOT=$with_sys_root
16567 
16568 fi
16569 
16570 
16571 
16572 # Check whether --with-sysroot was given.
16573 if test "${with_sysroot+set}" = set; then :
16574   withval=$with_sysroot; SYSROOT=$with_sysroot
16575 
16576 fi
16577 
16578 
16579 
16580 # Check whether --with-tools-dir was given.
16581 if test "${with_tools_dir+set}" = set; then :
16582   withval=$with_tools_dir;
16583   if test "x$with_tools_dir" != x; then
16584     if test "x$TOOLCHAIN_PATH" = x; then
16585       TOOLCHAIN_PATH="$with_tools_dir"
16586     else
16587       TOOLCHAIN_PATH="$with_tools_dir:$TOOLCHAIN_PATH"
16588     fi
16589   fi
16590 
16591 
16592 fi
16593 
16594 
16595 
16596 # Check whether --with-toolchain-path was given.
16597 if test "${with_toolchain_path+set}" = set; then :
16598   withval=$with_toolchain_path;
16599   if test "x$with_toolchain_path" != x; then
16600     if test "x$TOOLCHAIN_PATH" = x; then
16601       TOOLCHAIN_PATH="$with_toolchain_path"
16602     else
16603       TOOLCHAIN_PATH="$with_toolchain_path:$TOOLCHAIN_PATH"
16604     fi
16605   fi
16606 
16607 
16608 fi
16609 
16610 
16611 
16612 # Check whether --with-extra-path was given.
16613 if test "${with_extra_path+set}" = set; then :
16614   withval=$with_extra_path;
16615   if test "x$with_extra_path" != x; then
16616     if test "x$EXTRA_PATH" = x; then
16617       EXTRA_PATH="$with_extra_path"
16618     else
16619       EXTRA_PATH="$with_extra_path:$EXTRA_PATH"
16620     fi
16621   fi
16622 
16623 
16624 fi
16625 
16626 
16627   if test "x$OPENJDK_BUILD_OS" = "xmacosx"; then
16628     # If a devkit has been supplied, find xcodebuild in the toolchain_path.
16629     # If not, detect if Xcode is installed by running xcodebuild -version
16630     # if no Xcode installed, xcodebuild exits with 1
16631     # if Xcode is installed, even if xcode-select is misconfigured, then it exits with 0
16632     if test "x$DEVKIT_ROOT" != x || /usr/bin/xcodebuild -version >/dev/null 2>&1; then
16633       # We need to use xcodebuild in the toolchain dir provided by the user, this will
16634       # fall back on the stub binary in /usr/bin/xcodebuild
16635       # Extract the first word of "xcodebuild", so it can be a program name with args.
16636 set dummy xcodebuild; ac_word=$2
16637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16638 $as_echo_n "checking for $ac_word... " >&6; }
16639 if ${ac_cv_path_XCODEBUILD+:} false; then :
16640   $as_echo_n "(cached) " >&6
16641 else
16642   case $XCODEBUILD in
16643   [\\/]* | ?:[\\/]*)
16644   ac_cv_path_XCODEBUILD="$XCODEBUILD" # Let the user override the test with a path.
16645   ;;
16646   *)
16647   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16648 for as_dir in $TOOLCHAIN_PATH
16649 do
16650   IFS=$as_save_IFS
16651   test -z "$as_dir" && as_dir=.
16652     for ac_exec_ext in '' $ac_executable_extensions; do
16653   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16654     ac_cv_path_XCODEBUILD="$as_dir/$ac_word$ac_exec_ext"
16655     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16656     break 2
16657   fi
16658 done
16659   done
16660 IFS=$as_save_IFS
16661 
16662   test -z "$ac_cv_path_XCODEBUILD" && ac_cv_path_XCODEBUILD="/usr/bin/xcodebuild"
16663   ;;
16664 esac
16665 fi
16666 XCODEBUILD=$ac_cv_path_XCODEBUILD
16667 if test -n "$XCODEBUILD"; then
16668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODEBUILD" >&5
16669 $as_echo "$XCODEBUILD" >&6; }
16670 else
16671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16672 $as_echo "no" >&6; }
16673 fi
16674 
16675 
16676     else
16677       # this should result in SYSROOT being empty, unless --with-sysroot is provided
16678       # when only the command line tools are installed there are no SDKs, so headers
16679       # are copied into the system frameworks
16680       XCODEBUILD=
16681 
16682     fi
16683 
16684     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdk name" >&5
16685 $as_echo_n "checking for sdk name... " >&6; }
16686 
16687 # Check whether --with-sdk-name was given.
16688 if test "${with_sdk_name+set}" = set; then :
16689   withval=$with_sdk_name; SDKNAME=$with_sdk_name
16690 
16691 fi
16692 
16693     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDKNAME" >&5
16694 $as_echo "$SDKNAME" >&6; }
16695 
16696     # if toolchain path is specified then don't rely on system headers, they may not compile
16697     HAVE_SYSTEM_FRAMEWORK_HEADERS=0
16698     test -z "$TOOLCHAIN_PATH" && \
16699       HAVE_SYSTEM_FRAMEWORK_HEADERS=`test ! -f /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h; echo $?`
16700 
16701     if test -z "$SYSROOT"; then
16702       if test -n "$XCODEBUILD"; then
16703         # if we don't have system headers, use default SDK name (last resort)
16704         if test -z "$SDKNAME" -a $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then
16705           SDKNAME=${SDKNAME:-macosx}
16706         fi
16707 
16708         if test -n "$SDKNAME"; then
16709           # Call xcodebuild to determine SYSROOT
16710           SYSROOT=`"$XCODEBUILD" -sdk $SDKNAME -version | grep '^Path: ' | sed 's/Path: //'`
16711         fi
16712       else
16713         if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then
16714           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
16715         fi
16716       fi
16717     else
16718       # warn user if --with-sdk-name was also set
16719       if test -n "$with_sdk_name"; then
16720         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&5
16721 $as_echo "$as_me: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&2;}
16722       fi
16723     fi
16724 
16725     if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0 -a -z "$SYSROOT"; then
16726       # If no system framework headers, then SYSROOT must be set, or we won't build
16727       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
16728     fi
16729 
16730     # Perform a basic sanity test
16731     if test ! -f "$SYSROOT/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h"; then
16732       if test -z "$SYSROOT"; then
16733         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
16734       else
16735         as_fn_error $? "Invalid SDK or SYSROOT path, dependent framework headers not found" "$LINENO" 5
16736       fi
16737     fi
16738 
16739     # set SDKROOT too, Xcode tools will pick it up
16740     SDKROOT=$SYSROOT
16741 
16742   fi
16743 
16744   # Prepend the extra path to the global path
16745 
16746   if test "x$EXTRA_PATH" != x; then
16747     if test "x$PATH" = x; then
16748       PATH="$EXTRA_PATH"
16749     else
16750       PATH="$EXTRA_PATH:$PATH"
16751     fi
16752   fi
16753 
16754 
16755   if test "x$OPENJDK_BUILD_OS" = "xsolaris"; then
16756     # Add extra search paths on solaris for utilities like ar, as, dtrace etc...
16757     PATH="$PATH:/usr/ccs/bin:/usr/sfw/bin:/opt/csw/bin:/usr/sbin"
16758   fi
16759 
16760   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
16761 $as_echo_n "checking for sysroot... " >&6; }
16762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSROOT" >&5
16763 $as_echo "$SYSROOT" >&6; }
16764   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for toolchain path" >&5
16765 $as_echo_n "checking for toolchain path... " >&6; }
16766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH" >&5
16767 $as_echo "$TOOLCHAIN_PATH" >&6; }
16768   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra path" >&5
16769 $as_echo_n "checking for extra path... " >&6; }
16770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_PATH" >&5
16771 $as_echo "$EXTRA_PATH" >&6; }
16772 
16773 
16774 # To properly create a configuration name, we need to have the OpenJDK target
16775 # and options (variants and debug level) parsed.
16776 
16777 
16778 
16779 # Check whether --with-conf-name was given.
16780 if test "${with_conf_name+set}" = set; then :
16781   withval=$with_conf_name;  CONF_NAME=${with_conf_name}
16782 fi
16783 
16784 
16785   # Test from where we are running configure, in or outside of src root.
16786   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to store configuration" >&5
16787 $as_echo_n "checking where to store configuration... " >&6; }
16788   if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" \
16789       || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" \
16790       || test "x$CURDIR" = "x$SRC_ROOT/make" ; then
16791     # We are running configure from the src root.
16792     # Create a default ./build/target-variant-debuglevel output root.
16793     if test "x${CONF_NAME}" = x; then
16794       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default location" >&5
16795 $as_echo "in default location" >&6; }
16796       CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${JVM_VARIANTS_WITH_AND}-${DEBUG_LEVEL}"
16797     else
16798       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5
16799 $as_echo "in build directory with custom name" >&6; }
16800     fi
16801     OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}"
16802     $MKDIR -p "$OUTPUT_ROOT"
16803     if test ! -d "$OUTPUT_ROOT"; then
16804       as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5
16805     fi
16806   else
16807     # We are running configure from outside of the src dir.
16808     # Then use the current directory as output dir!
16809     # If configuration is situated in normal build directory, just use the build
16810     # directory name as configuration name, otherwise use the complete path.
16811     if test "x${CONF_NAME}" = x; then
16812       CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${SRC_ROOT}/build/!!"`
16813     fi
16814     OUTPUT_ROOT="$CURDIR"
16815     { $as_echo "$as_me:${as_lineno-$LINENO}: result: in current directory" >&5
16816 $as_echo "in current directory" >&6; }
16817 
16818     # WARNING: This might be a bad thing to do. You need to be sure you want to
16819     # have a configuration in this directory. Do some sanity checks!
16820 
16821     if test ! -e "$OUTPUT_ROOT/spec.gmk"; then
16822       # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for
16823       # other files
16824       files_present=`$LS $OUTPUT_ROOT`
16825       # Configure has already touched config.log and confdefs.h in the current dir when this check
16826       # is performed.
16827       filtered_files=`$ECHO "$files_present" \
16828           | $SED -e 's/config.log//g' \
16829               -e 's/configure.log//g' \
16830               -e 's/confdefs.h//g' \
16831               -e 's/ //g' \
16832           | $TR -d '\n'`
16833       if test "x$filtered_files" != x; then
16834         { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5
16835 $as_echo "$as_me: Current directory is $CURDIR." >&6;}
16836         { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5
16837 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;}
16838         { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5
16839 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;}
16840         { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5
16841 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;}
16842         { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5
16843 $as_echo "$as_me: seriously mess up just about everything." >&6;}
16844         { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $SRC_ROOT' and restart configure" >&5
16845 $as_echo "$as_me: Try 'cd $SRC_ROOT' and restart configure" >&6;}
16846         { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5
16847 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;}
16848         as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5
16849       fi
16850     fi
16851   fi
16852   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5
16853 $as_echo_n "checking what configuration name to use... " >&6; }
16854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5
16855 $as_echo "$CONF_NAME" >&6; }
16856 
16857 
16858   # Only process if variable expands to non-empty
16859 
16860   if test "x$OUTPUT_ROOT" != x; then
16861     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16862 
16863   # Input might be given as Windows format, start by converting to
16864   # unix format.
16865   path="$OUTPUT_ROOT"
16866   new_path=`$CYGPATH -u "$path"`
16867 
16868   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16869   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16870   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16871   # "foo.exe" is OK but "foo" is an error.
16872   #
16873   # This test is therefore slightly more accurate than "test -f" to check for file precense.
16874   # It is also a way to make sure we got the proper file name for the real test later on.
16875   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16876   if test "x$test_shortpath" = x; then
16877     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
16878 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
16879     as_fn_error $? "Cannot locate the the path of OUTPUT_ROOT" "$LINENO" 5
16880   fi
16881 
16882   # Call helper function which possibly converts this using DOS-style short mode.
16883   # If so, the updated path is stored in $new_path.
16884 
16885   input_path="$new_path"
16886   # Check if we need to convert this using DOS-style short mode. If the path
16887   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16888   # take no chances and rewrite it.
16889   # Note: m4 eats our [], so we need to use [ and ] instead.
16890   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16891   if test "x$has_forbidden_chars" != x; then
16892     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16893     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16894     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16895     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16896       # Going to short mode and back again did indeed matter. Since short mode is
16897       # case insensitive, let's make it lowercase to improve readability.
16898       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16899       # Now convert it back to Unix-style (cygpath)
16900       input_path=`$CYGPATH -u "$shortmode_path"`
16901       new_path="$input_path"
16902     fi
16903   fi
16904 
16905   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16906   if test "x$test_cygdrive_prefix" = x; then
16907     # As a simple fix, exclude /usr/bin since it's not a real path.
16908     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
16909       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16910       # a path prefixed by /cygdrive for fixpath to work.
16911       new_path="$CYGWIN_ROOT_PATH$input_path"
16912     fi
16913   fi
16914 
16915 
16916   if test "x$path" != "x$new_path"; then
16917     OUTPUT_ROOT="$new_path"
16918     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
16919 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
16920   fi
16921 
16922     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16923 
16924   path="$OUTPUT_ROOT"
16925   has_colon=`$ECHO $path | $GREP ^.:`
16926   new_path="$path"
16927   if test "x$has_colon" = x; then
16928     # Not in mixed or Windows style, start by that.
16929     new_path=`cmd //c echo $path`
16930   fi
16931 
16932 
16933   input_path="$new_path"
16934   # Check if we need to convert this using DOS-style short mode. If the path
16935   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16936   # take no chances and rewrite it.
16937   # Note: m4 eats our [], so we need to use [ and ] instead.
16938   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16939   if test "x$has_forbidden_chars" != x; then
16940     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16941     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16942   fi
16943 
16944 
16945   windows_path="$new_path"
16946   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16947     unix_path=`$CYGPATH -u "$windows_path"`
16948     new_path="$unix_path"
16949   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16950     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16951     new_path="$unix_path"
16952   fi
16953 
16954   if test "x$path" != "x$new_path"; then
16955     OUTPUT_ROOT="$new_path"
16956     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
16957 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
16958   fi
16959 
16960   # Save the first 10 bytes of this path to the storage, so fixpath can work.
16961   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16962 
16963     else
16964       # We're on a unix platform. Hooray! :)
16965       path="$OUTPUT_ROOT"
16966       has_space=`$ECHO "$path" | $GREP " "`
16967       if test "x$has_space" != x; then
16968         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
16969 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
16970         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
16971       fi
16972 
16973       # Use eval to expand a potential ~
16974       eval path="$path"
16975       if test ! -f "$path" && test ! -d "$path"; then
16976         as_fn_error $? "The path of OUTPUT_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5
16977       fi
16978 
16979       if test -d "$path"; then
16980         OUTPUT_ROOT="`cd "$path"; $THEPWDCMD -L`"
16981       else
16982         dir="`$DIRNAME "$path"`"
16983         base="`$BASENAME "$path"`"
16984         OUTPUT_ROOT="`cd "$dir"; $THEPWDCMD -L`/$base"
16985       fi
16986     fi
16987   fi
16988 
16989 
16990   CONFIGURESUPPORT_OUTPUTDIR="$OUTPUT_ROOT/configure-support"
16991   $MKDIR -p "$CONFIGURESUPPORT_OUTPUTDIR"
16992 
16993   SPEC=$OUTPUT_ROOT/spec.gmk
16994 
16995   CONF_NAME=$CONF_NAME
16996 
16997   OUTPUT_ROOT=$OUTPUT_ROOT
16998 
16999 
17000 
17001   # The spec.gmk file contains all variables for the make system.
17002   ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in"
17003 
17004   # The hotspot-spec.gmk file contains legacy variables for the hotspot make system.
17005   ac_config_files="$ac_config_files $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in"
17006 
17007   # The bootcycle-spec.gmk file contains support for boot cycle builds.
17008   ac_config_files="$ac_config_files $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in"
17009 
17010   # The buildjdk-spec.gmk file contains support for building a buildjdk when cross compiling.
17011   ac_config_files="$ac_config_files $OUTPUT_ROOT/buildjdk-spec.gmk:$AUTOCONF_DIR/buildjdk-spec.gmk.in"
17012 
17013   # The compare.sh is used to compare the build output to other builds.
17014   ac_config_files="$ac_config_files $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in"
17015 
17016   # The generated Makefile knows where the spec.gmk is and where the source is.
17017   # You can run make from the OUTPUT_ROOT, or from the top-level Makefile
17018   # which will look for generated configurations
17019   ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in"
17020 
17021 
17022 
17023 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY.
17024 
17025   for ac_prog in apt-get yum port pkgutil pkgadd
17026 do
17027   # Extract the first word of "$ac_prog", so it can be a program name with args.
17028 set dummy $ac_prog; ac_word=$2
17029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17030 $as_echo_n "checking for $ac_word... " >&6; }
17031 if ${ac_cv_prog_PKGHANDLER+:} false; then :
17032   $as_echo_n "(cached) " >&6
17033 else
17034   if test -n "$PKGHANDLER"; then
17035   ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test.
17036 else
17037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17038 for as_dir in $PATH
17039 do
17040   IFS=$as_save_IFS
17041   test -z "$as_dir" && as_dir=.
17042     for ac_exec_ext in '' $ac_executable_extensions; do
17043   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17044     ac_cv_prog_PKGHANDLER="$ac_prog"
17045     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17046     break 2
17047   fi
17048 done
17049   done
17050 IFS=$as_save_IFS
17051 
17052 fi
17053 fi
17054 PKGHANDLER=$ac_cv_prog_PKGHANDLER
17055 if test -n "$PKGHANDLER"; then
17056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5
17057 $as_echo "$PKGHANDLER" >&6; }
17058 else
17059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17060 $as_echo "no" >&6; }
17061 fi
17062 
17063 
17064   test -n "$PKGHANDLER" && break
17065 done
17066 
17067 
17068 
17069 # Setup tools that requires more complex handling, or that is not needed by the configure script.
17070 
17071 
17072 
17073   # Publish this variable in the help.
17074 
17075 
17076   if [ -z "${MAKE+x}" ]; then
17077     # The variable is not set by user, try to locate tool using the code snippet
17078 
17079     # Try our hardest to locate a correct version of GNU make
17080     for ac_prog in gmake
17081 do
17082   # Extract the first word of "$ac_prog", so it can be a program name with args.
17083 set dummy $ac_prog; ac_word=$2
17084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17085 $as_echo_n "checking for $ac_word... " >&6; }
17086 if ${ac_cv_path_CHECK_GMAKE+:} false; then :
17087   $as_echo_n "(cached) " >&6
17088 else
17089   case $CHECK_GMAKE in
17090   [\\/]* | ?:[\\/]*)
17091   ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
17092   ;;
17093   *)
17094   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17095 for as_dir in $PATH
17096 do
17097   IFS=$as_save_IFS
17098   test -z "$as_dir" && as_dir=.
17099     for ac_exec_ext in '' $ac_executable_extensions; do
17100   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17101     ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
17102     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17103     break 2
17104   fi
17105 done
17106   done
17107 IFS=$as_save_IFS
17108 
17109   ;;
17110 esac
17111 fi
17112 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE
17113 if test -n "$CHECK_GMAKE"; then
17114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5
17115 $as_echo "$CHECK_GMAKE" >&6; }
17116 else
17117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17118 $as_echo "no" >&6; }
17119 fi
17120 
17121 
17122   test -n "$CHECK_GMAKE" && break
17123 done
17124 
17125 
17126   MAKE_CANDIDATE=""$CHECK_GMAKE""
17127   DESCRIPTION="gmake in PATH"
17128 
17129   # On Cygwin, we require a newer version of make than on other platforms
17130   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17131     MAKE_VERSION_EXPR="-e 4\."
17132     MAKE_REQUIRED_VERSION="4.0"
17133    else
17134     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
17135     MAKE_REQUIRED_VERSION="3.81"
17136   fi
17137 
17138   if test "x$MAKE_CANDIDATE" != x; then
17139     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
17140 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
17141     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
17142     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
17143     if test "x$IS_GNU_MAKE" = x; then
17144       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
17145 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
17146     else
17147       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
17148       if test "x$IS_MODERN_MAKE" = x; then
17149         { $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
17150 $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;}
17151       else
17152         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
17153           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17154             MAKE_EXPECTED_ENV='cygwin'
17155           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17156             MAKE_EXPECTED_ENV='msys'
17157           else
17158             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
17159           fi
17160           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
17161           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
17162         else
17163           # Not relevant for non-Windows
17164           IS_MAKE_CORRECT_ENV=true
17165         fi
17166         if test "x$IS_MAKE_CORRECT_ENV" = x; then
17167           { $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
17168 $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;}
17169         else
17170           FOUND_MAKE=$MAKE_CANDIDATE
17171 
17172   # Only process if variable expands to non-empty
17173 
17174   if test "x$FOUND_MAKE" != x; then
17175     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17176 
17177   # First separate the path from the arguments. This will split at the first
17178   # space.
17179   complete="$FOUND_MAKE"
17180   path="${complete%% *}"
17181   tmp="$complete EOL"
17182   arguments="${tmp#* }"
17183 
17184   # Input might be given as Windows format, start by converting to
17185   # unix format.
17186   new_path=`$CYGPATH -u "$path"`
17187 
17188   # Now try to locate executable using which
17189   new_path=`$WHICH "$new_path" 2> /dev/null`
17190   # bat and cmd files are not always considered executable in cygwin causing which
17191   # to not find them
17192   if test "x$new_path" = x \
17193       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17194       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17195     new_path=`$CYGPATH -u "$path"`
17196   fi
17197   if test "x$new_path" = x; then
17198     # Oops. Which didn't find the executable.
17199     # The splitting of arguments from the executable at a space might have been incorrect,
17200     # since paths with space are more likely in Windows. Give it another try with the whole
17201     # argument.
17202     path="$complete"
17203     arguments="EOL"
17204     new_path=`$CYGPATH -u "$path"`
17205     new_path=`$WHICH "$new_path" 2> /dev/null`
17206     # bat and cmd files are not always considered executable in cygwin causing which
17207     # to not find them
17208     if test "x$new_path" = x \
17209         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17210         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17211       new_path=`$CYGPATH -u "$path"`
17212     fi
17213     if test "x$new_path" = x; then
17214       # It's still not found. Now this is an unrecoverable error.
17215       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17216 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17217       has_space=`$ECHO "$complete" | $GREP " "`
17218       if test "x$has_space" != x; then
17219         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17220 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17221       fi
17222       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17223     fi
17224   fi
17225 
17226   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
17227   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
17228   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
17229   # "foo.exe" is OK but "foo" is an error.
17230   #
17231   # This test is therefore slightly more accurate than "test -f" to check for file presence.
17232   # It is also a way to make sure we got the proper file name for the real test later on.
17233   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
17234   if test "x$test_shortpath" = x; then
17235     # Short path failed, file does not exist as specified.
17236     # Try adding .exe or .cmd
17237     if test -f "${new_path}.exe"; then
17238       input_to_shortpath="${new_path}.exe"
17239     elif test -f "${new_path}.cmd"; then
17240       input_to_shortpath="${new_path}.cmd"
17241     else
17242       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
17243 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
17244       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
17245 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
17246       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17247     fi
17248   else
17249     input_to_shortpath="$new_path"
17250   fi
17251 
17252   # Call helper function which possibly converts this using DOS-style short mode.
17253   # If so, the updated path is stored in $new_path.
17254   new_path="$input_to_shortpath"
17255 
17256   input_path="$input_to_shortpath"
17257   # Check if we need to convert this using DOS-style short mode. If the path
17258   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17259   # take no chances and rewrite it.
17260   # Note: m4 eats our [], so we need to use [ and ] instead.
17261   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
17262   if test "x$has_forbidden_chars" != x; then
17263     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17264     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
17265     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
17266     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
17267       # Going to short mode and back again did indeed matter. Since short mode is
17268       # case insensitive, let's make it lowercase to improve readability.
17269       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17270       # Now convert it back to Unix-style (cygpath)
17271       input_path=`$CYGPATH -u "$shortmode_path"`
17272       new_path="$input_path"
17273     fi
17274   fi
17275 
17276   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
17277   if test "x$test_cygdrive_prefix" = x; then
17278     # As a simple fix, exclude /usr/bin since it's not a real path.
17279     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
17280       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
17281       # a path prefixed by /cygdrive for fixpath to work.
17282       new_path="$CYGWIN_ROOT_PATH$input_path"
17283     fi
17284   fi
17285 
17286   # remove trailing .exe if any
17287   new_path="${new_path/%.exe/}"
17288 
17289     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17290 
17291   # First separate the path from the arguments. This will split at the first
17292   # space.
17293   complete="$FOUND_MAKE"
17294   path="${complete%% *}"
17295   tmp="$complete EOL"
17296   arguments="${tmp#* }"
17297 
17298   # Input might be given as Windows format, start by converting to
17299   # unix format.
17300   new_path="$path"
17301 
17302   windows_path="$new_path"
17303   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17304     unix_path=`$CYGPATH -u "$windows_path"`
17305     new_path="$unix_path"
17306   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17307     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17308     new_path="$unix_path"
17309   fi
17310 
17311 
17312   # Now try to locate executable using which
17313   new_path=`$WHICH "$new_path" 2> /dev/null`
17314 
17315   if test "x$new_path" = x; then
17316     # Oops. Which didn't find the executable.
17317     # The splitting of arguments from the executable at a space might have been incorrect,
17318     # since paths with space are more likely in Windows. Give it another try with the whole
17319     # argument.
17320     path="$complete"
17321     arguments="EOL"
17322     new_path="$path"
17323 
17324   windows_path="$new_path"
17325   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17326     unix_path=`$CYGPATH -u "$windows_path"`
17327     new_path="$unix_path"
17328   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17329     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17330     new_path="$unix_path"
17331   fi
17332 
17333 
17334     new_path=`$WHICH "$new_path" 2> /dev/null`
17335     # bat and cmd files are not always considered executable in MSYS causing which
17336     # to not find them
17337     if test "x$new_path" = x \
17338         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17339         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17340       new_path="$path"
17341 
17342   windows_path="$new_path"
17343   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17344     unix_path=`$CYGPATH -u "$windows_path"`
17345     new_path="$unix_path"
17346   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17347     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17348     new_path="$unix_path"
17349   fi
17350 
17351     fi
17352 
17353     if test "x$new_path" = x; then
17354       # It's still not found. Now this is an unrecoverable error.
17355       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17356 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17357       has_space=`$ECHO "$complete" | $GREP " "`
17358       if test "x$has_space" != x; then
17359         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17360 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17361       fi
17362       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17363     fi
17364   fi
17365 
17366   # Now new_path has a complete unix path to the binary
17367   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
17368     # Keep paths in /bin as-is, but remove trailing .exe if any
17369     new_path="${new_path/%.exe/}"
17370     # Do not save /bin paths to all_fixpath_prefixes!
17371   else
17372     # Not in mixed or Windows style, start by that.
17373     new_path=`cmd //c echo $new_path`
17374 
17375   input_path="$new_path"
17376   # Check if we need to convert this using DOS-style short mode. If the path
17377   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17378   # take no chances and rewrite it.
17379   # Note: m4 eats our [], so we need to use [ and ] instead.
17380   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
17381   if test "x$has_forbidden_chars" != x; then
17382     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17383     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17384   fi
17385 
17386     # Output is in $new_path
17387 
17388   windows_path="$new_path"
17389   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17390     unix_path=`$CYGPATH -u "$windows_path"`
17391     new_path="$unix_path"
17392   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17393     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17394     new_path="$unix_path"
17395   fi
17396 
17397     # remove trailing .exe if any
17398     new_path="${new_path/%.exe/}"
17399 
17400     # Save the first 10 bytes of this path to the storage, so fixpath can work.
17401     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
17402   fi
17403 
17404     else
17405       # We're on a unix platform. Hooray! :)
17406       # First separate the path from the arguments. This will split at the first
17407       # space.
17408       complete="$FOUND_MAKE"
17409       path="${complete%% *}"
17410       tmp="$complete EOL"
17411       arguments="${tmp#* }"
17412 
17413       # Cannot rely on the command "which" here since it doesn't always work.
17414       is_absolute_path=`$ECHO "$path" | $GREP ^/`
17415       if test -z "$is_absolute_path"; then
17416         # Path to executable is not absolute. Find it.
17417         IFS_save="$IFS"
17418         IFS=:
17419         for p in $PATH; do
17420           if test -f "$p/$path" && test -x "$p/$path"; then
17421             new_path="$p/$path"
17422             break
17423           fi
17424         done
17425         IFS="$IFS_save"
17426       else
17427         # This is an absolute path, we can use it without further modifications.
17428         new_path="$path"
17429       fi
17430 
17431       if test "x$new_path" = x; then
17432         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17433 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17434         has_space=`$ECHO "$complete" | $GREP " "`
17435         if test "x$has_space" != x; then
17436           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
17437 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
17438         fi
17439         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17440       fi
17441     fi
17442 
17443     # Now join together the path and the arguments once again
17444     if test "x$arguments" != xEOL; then
17445       new_complete="$new_path ${arguments% *}"
17446     else
17447       new_complete="$new_path"
17448     fi
17449 
17450     if test "x$complete" != "x$new_complete"; then
17451       FOUND_MAKE="$new_complete"
17452       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
17453 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
17454     fi
17455   fi
17456 
17457         fi
17458       fi
17459     fi
17460   fi
17461 
17462 
17463     if test "x$FOUND_MAKE" = x; then
17464       for ac_prog in make
17465 do
17466   # Extract the first word of "$ac_prog", so it can be a program name with args.
17467 set dummy $ac_prog; ac_word=$2
17468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17469 $as_echo_n "checking for $ac_word... " >&6; }
17470 if ${ac_cv_path_CHECK_MAKE+:} false; then :
17471   $as_echo_n "(cached) " >&6
17472 else
17473   case $CHECK_MAKE in
17474   [\\/]* | ?:[\\/]*)
17475   ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
17476   ;;
17477   *)
17478   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17479 for as_dir in $PATH
17480 do
17481   IFS=$as_save_IFS
17482   test -z "$as_dir" && as_dir=.
17483     for ac_exec_ext in '' $ac_executable_extensions; do
17484   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17485     ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
17486     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17487     break 2
17488   fi
17489 done
17490   done
17491 IFS=$as_save_IFS
17492 
17493   ;;
17494 esac
17495 fi
17496 CHECK_MAKE=$ac_cv_path_CHECK_MAKE
17497 if test -n "$CHECK_MAKE"; then
17498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5
17499 $as_echo "$CHECK_MAKE" >&6; }
17500 else
17501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17502 $as_echo "no" >&6; }
17503 fi
17504 
17505 
17506   test -n "$CHECK_MAKE" && break
17507 done
17508 
17509 
17510   MAKE_CANDIDATE=""$CHECK_MAKE""
17511   DESCRIPTION="make in PATH"
17512 
17513   # On Cygwin, we require a newer version of make than on other platforms
17514   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17515     MAKE_VERSION_EXPR="-e 4\."
17516     MAKE_REQUIRED_VERSION="4.0"
17517    else
17518     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
17519     MAKE_REQUIRED_VERSION="3.81"
17520   fi
17521 
17522   if test "x$MAKE_CANDIDATE" != x; then
17523     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
17524 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
17525     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
17526     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
17527     if test "x$IS_GNU_MAKE" = x; then
17528       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
17529 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
17530     else
17531       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
17532       if test "x$IS_MODERN_MAKE" = x; then
17533         { $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
17534 $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;}
17535       else
17536         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
17537           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17538             MAKE_EXPECTED_ENV='cygwin'
17539           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17540             MAKE_EXPECTED_ENV='msys'
17541           else
17542             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
17543           fi
17544           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
17545           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
17546         else
17547           # Not relevant for non-Windows
17548           IS_MAKE_CORRECT_ENV=true
17549         fi
17550         if test "x$IS_MAKE_CORRECT_ENV" = x; then
17551           { $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
17552 $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;}
17553         else
17554           FOUND_MAKE=$MAKE_CANDIDATE
17555 
17556   # Only process if variable expands to non-empty
17557 
17558   if test "x$FOUND_MAKE" != x; then
17559     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17560 
17561   # First separate the path from the arguments. This will split at the first
17562   # space.
17563   complete="$FOUND_MAKE"
17564   path="${complete%% *}"
17565   tmp="$complete EOL"
17566   arguments="${tmp#* }"
17567 
17568   # Input might be given as Windows format, start by converting to
17569   # unix format.
17570   new_path=`$CYGPATH -u "$path"`
17571 
17572   # Now try to locate executable using which
17573   new_path=`$WHICH "$new_path" 2> /dev/null`
17574   # bat and cmd files are not always considered executable in cygwin causing which
17575   # to not find them
17576   if test "x$new_path" = x \
17577       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17578       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17579     new_path=`$CYGPATH -u "$path"`
17580   fi
17581   if test "x$new_path" = x; then
17582     # Oops. Which didn't find the executable.
17583     # The splitting of arguments from the executable at a space might have been incorrect,
17584     # since paths with space are more likely in Windows. Give it another try with the whole
17585     # argument.
17586     path="$complete"
17587     arguments="EOL"
17588     new_path=`$CYGPATH -u "$path"`
17589     new_path=`$WHICH "$new_path" 2> /dev/null`
17590     # bat and cmd files are not always considered executable in cygwin causing which
17591     # to not find them
17592     if test "x$new_path" = x \
17593         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17594         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17595       new_path=`$CYGPATH -u "$path"`
17596     fi
17597     if test "x$new_path" = x; then
17598       # It's still not found. Now this is an unrecoverable error.
17599       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17600 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17601       has_space=`$ECHO "$complete" | $GREP " "`
17602       if test "x$has_space" != x; then
17603         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17604 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17605       fi
17606       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17607     fi
17608   fi
17609 
17610   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
17611   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
17612   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
17613   # "foo.exe" is OK but "foo" is an error.
17614   #
17615   # This test is therefore slightly more accurate than "test -f" to check for file presence.
17616   # It is also a way to make sure we got the proper file name for the real test later on.
17617   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
17618   if test "x$test_shortpath" = x; then
17619     # Short path failed, file does not exist as specified.
17620     # Try adding .exe or .cmd
17621     if test -f "${new_path}.exe"; then
17622       input_to_shortpath="${new_path}.exe"
17623     elif test -f "${new_path}.cmd"; then
17624       input_to_shortpath="${new_path}.cmd"
17625     else
17626       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
17627 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
17628       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
17629 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
17630       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17631     fi
17632   else
17633     input_to_shortpath="$new_path"
17634   fi
17635 
17636   # Call helper function which possibly converts this using DOS-style short mode.
17637   # If so, the updated path is stored in $new_path.
17638   new_path="$input_to_shortpath"
17639 
17640   input_path="$input_to_shortpath"
17641   # Check if we need to convert this using DOS-style short mode. If the path
17642   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17643   # take no chances and rewrite it.
17644   # Note: m4 eats our [], so we need to use [ and ] instead.
17645   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
17646   if test "x$has_forbidden_chars" != x; then
17647     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17648     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
17649     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
17650     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
17651       # Going to short mode and back again did indeed matter. Since short mode is
17652       # case insensitive, let's make it lowercase to improve readability.
17653       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17654       # Now convert it back to Unix-style (cygpath)
17655       input_path=`$CYGPATH -u "$shortmode_path"`
17656       new_path="$input_path"
17657     fi
17658   fi
17659 
17660   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
17661   if test "x$test_cygdrive_prefix" = x; then
17662     # As a simple fix, exclude /usr/bin since it's not a real path.
17663     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
17664       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
17665       # a path prefixed by /cygdrive for fixpath to work.
17666       new_path="$CYGWIN_ROOT_PATH$input_path"
17667     fi
17668   fi
17669 
17670   # remove trailing .exe if any
17671   new_path="${new_path/%.exe/}"
17672 
17673     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17674 
17675   # First separate the path from the arguments. This will split at the first
17676   # space.
17677   complete="$FOUND_MAKE"
17678   path="${complete%% *}"
17679   tmp="$complete EOL"
17680   arguments="${tmp#* }"
17681 
17682   # Input might be given as Windows format, start by converting to
17683   # unix format.
17684   new_path="$path"
17685 
17686   windows_path="$new_path"
17687   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17688     unix_path=`$CYGPATH -u "$windows_path"`
17689     new_path="$unix_path"
17690   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17691     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17692     new_path="$unix_path"
17693   fi
17694 
17695 
17696   # Now try to locate executable using which
17697   new_path=`$WHICH "$new_path" 2> /dev/null`
17698 
17699   if test "x$new_path" = x; then
17700     # Oops. Which didn't find the executable.
17701     # The splitting of arguments from the executable at a space might have been incorrect,
17702     # since paths with space are more likely in Windows. Give it another try with the whole
17703     # argument.
17704     path="$complete"
17705     arguments="EOL"
17706     new_path="$path"
17707 
17708   windows_path="$new_path"
17709   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17710     unix_path=`$CYGPATH -u "$windows_path"`
17711     new_path="$unix_path"
17712   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17713     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17714     new_path="$unix_path"
17715   fi
17716 
17717 
17718     new_path=`$WHICH "$new_path" 2> /dev/null`
17719     # bat and cmd files are not always considered executable in MSYS causing which
17720     # to not find them
17721     if test "x$new_path" = x \
17722         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17723         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17724       new_path="$path"
17725 
17726   windows_path="$new_path"
17727   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17728     unix_path=`$CYGPATH -u "$windows_path"`
17729     new_path="$unix_path"
17730   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17731     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17732     new_path="$unix_path"
17733   fi
17734 
17735     fi
17736 
17737     if test "x$new_path" = x; then
17738       # It's still not found. Now this is an unrecoverable error.
17739       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17740 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17741       has_space=`$ECHO "$complete" | $GREP " "`
17742       if test "x$has_space" != x; then
17743         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17744 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17745       fi
17746       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17747     fi
17748   fi
17749 
17750   # Now new_path has a complete unix path to the binary
17751   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
17752     # Keep paths in /bin as-is, but remove trailing .exe if any
17753     new_path="${new_path/%.exe/}"
17754     # Do not save /bin paths to all_fixpath_prefixes!
17755   else
17756     # Not in mixed or Windows style, start by that.
17757     new_path=`cmd //c echo $new_path`
17758 
17759   input_path="$new_path"
17760   # Check if we need to convert this using DOS-style short mode. If the path
17761   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17762   # take no chances and rewrite it.
17763   # Note: m4 eats our [], so we need to use [ and ] instead.
17764   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
17765   if test "x$has_forbidden_chars" != x; then
17766     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17767     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17768   fi
17769 
17770     # Output is in $new_path
17771 
17772   windows_path="$new_path"
17773   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17774     unix_path=`$CYGPATH -u "$windows_path"`
17775     new_path="$unix_path"
17776   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17777     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17778     new_path="$unix_path"
17779   fi
17780 
17781     # remove trailing .exe if any
17782     new_path="${new_path/%.exe/}"
17783 
17784     # Save the first 10 bytes of this path to the storage, so fixpath can work.
17785     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
17786   fi
17787 
17788     else
17789       # We're on a unix platform. Hooray! :)
17790       # First separate the path from the arguments. This will split at the first
17791       # space.
17792       complete="$FOUND_MAKE"
17793       path="${complete%% *}"
17794       tmp="$complete EOL"
17795       arguments="${tmp#* }"
17796 
17797       # Cannot rely on the command "which" here since it doesn't always work.
17798       is_absolute_path=`$ECHO "$path" | $GREP ^/`
17799       if test -z "$is_absolute_path"; then
17800         # Path to executable is not absolute. Find it.
17801         IFS_save="$IFS"
17802         IFS=:
17803         for p in $PATH; do
17804           if test -f "$p/$path" && test -x "$p/$path"; then
17805             new_path="$p/$path"
17806             break
17807           fi
17808         done
17809         IFS="$IFS_save"
17810       else
17811         # This is an absolute path, we can use it without further modifications.
17812         new_path="$path"
17813       fi
17814 
17815       if test "x$new_path" = x; then
17816         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17817 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17818         has_space=`$ECHO "$complete" | $GREP " "`
17819         if test "x$has_space" != x; then
17820           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
17821 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
17822         fi
17823         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17824       fi
17825     fi
17826 
17827     # Now join together the path and the arguments once again
17828     if test "x$arguments" != xEOL; then
17829       new_complete="$new_path ${arguments% *}"
17830     else
17831       new_complete="$new_path"
17832     fi
17833 
17834     if test "x$complete" != "x$new_complete"; then
17835       FOUND_MAKE="$new_complete"
17836       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
17837 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
17838     fi
17839   fi
17840 
17841         fi
17842       fi
17843     fi
17844   fi
17845 
17846     fi
17847 
17848     if test "x$FOUND_MAKE" = x; then
17849       if test "x$TOOLCHAIN_PATH" != x; then
17850         # We have a toolchain path, check that as well before giving up.
17851         OLD_PATH=$PATH
17852         PATH=$TOOLCHAIN_PATH:$PATH
17853         for ac_prog in gmake
17854 do
17855   # Extract the first word of "$ac_prog", so it can be a program name with args.
17856 set dummy $ac_prog; ac_word=$2
17857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17858 $as_echo_n "checking for $ac_word... " >&6; }
17859 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then :
17860   $as_echo_n "(cached) " >&6
17861 else
17862   case $CHECK_TOOLSDIR_GMAKE in
17863   [\\/]* | ?:[\\/]*)
17864   ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
17865   ;;
17866   *)
17867   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17868 for as_dir in $PATH
17869 do
17870   IFS=$as_save_IFS
17871   test -z "$as_dir" && as_dir=.
17872     for ac_exec_ext in '' $ac_executable_extensions; do
17873   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17874     ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
17875     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17876     break 2
17877   fi
17878 done
17879   done
17880 IFS=$as_save_IFS
17881 
17882   ;;
17883 esac
17884 fi
17885 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE
17886 if test -n "$CHECK_TOOLSDIR_GMAKE"; then
17887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5
17888 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; }
17889 else
17890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17891 $as_echo "no" >&6; }
17892 fi
17893 
17894 
17895   test -n "$CHECK_TOOLSDIR_GMAKE" && break
17896 done
17897 
17898 
17899   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE""
17900   DESCRIPTION="gmake in tools-dir"
17901 
17902   # On Cygwin, we require a newer version of make than on other platforms
17903   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17904     MAKE_VERSION_EXPR="-e 4\."
17905     MAKE_REQUIRED_VERSION="4.0"
17906    else
17907     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
17908     MAKE_REQUIRED_VERSION="3.81"
17909   fi
17910 
17911   if test "x$MAKE_CANDIDATE" != x; then
17912     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
17913 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
17914     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
17915     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
17916     if test "x$IS_GNU_MAKE" = x; then
17917       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
17918 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
17919     else
17920       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
17921       if test "x$IS_MODERN_MAKE" = x; then
17922         { $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
17923 $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;}
17924       else
17925         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
17926           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17927             MAKE_EXPECTED_ENV='cygwin'
17928           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17929             MAKE_EXPECTED_ENV='msys'
17930           else
17931             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
17932           fi
17933           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
17934           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
17935         else
17936           # Not relevant for non-Windows
17937           IS_MAKE_CORRECT_ENV=true
17938         fi
17939         if test "x$IS_MAKE_CORRECT_ENV" = x; then
17940           { $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
17941 $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;}
17942         else
17943           FOUND_MAKE=$MAKE_CANDIDATE
17944 
17945   # Only process if variable expands to non-empty
17946 
17947   if test "x$FOUND_MAKE" != x; then
17948     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17949 
17950   # First separate the path from the arguments. This will split at the first
17951   # space.
17952   complete="$FOUND_MAKE"
17953   path="${complete%% *}"
17954   tmp="$complete EOL"
17955   arguments="${tmp#* }"
17956 
17957   # Input might be given as Windows format, start by converting to
17958   # unix format.
17959   new_path=`$CYGPATH -u "$path"`
17960 
17961   # Now try to locate executable using which
17962   new_path=`$WHICH "$new_path" 2> /dev/null`
17963   # bat and cmd files are not always considered executable in cygwin causing which
17964   # to not find them
17965   if test "x$new_path" = x \
17966       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17967       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17968     new_path=`$CYGPATH -u "$path"`
17969   fi
17970   if test "x$new_path" = x; then
17971     # Oops. Which didn't find the executable.
17972     # The splitting of arguments from the executable at a space might have been incorrect,
17973     # since paths with space are more likely in Windows. Give it another try with the whole
17974     # argument.
17975     path="$complete"
17976     arguments="EOL"
17977     new_path=`$CYGPATH -u "$path"`
17978     new_path=`$WHICH "$new_path" 2> /dev/null`
17979     # bat and cmd files are not always considered executable in cygwin causing which
17980     # to not find them
17981     if test "x$new_path" = x \
17982         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17983         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17984       new_path=`$CYGPATH -u "$path"`
17985     fi
17986     if test "x$new_path" = x; then
17987       # It's still not found. Now this is an unrecoverable error.
17988       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17989 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17990       has_space=`$ECHO "$complete" | $GREP " "`
17991       if test "x$has_space" != x; then
17992         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17993 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17994       fi
17995       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17996     fi
17997   fi
17998 
17999   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
18000   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
18001   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
18002   # "foo.exe" is OK but "foo" is an error.
18003   #
18004   # This test is therefore slightly more accurate than "test -f" to check for file presence.
18005   # It is also a way to make sure we got the proper file name for the real test later on.
18006   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
18007   if test "x$test_shortpath" = x; then
18008     # Short path failed, file does not exist as specified.
18009     # Try adding .exe or .cmd
18010     if test -f "${new_path}.exe"; then
18011       input_to_shortpath="${new_path}.exe"
18012     elif test -f "${new_path}.cmd"; then
18013       input_to_shortpath="${new_path}.cmd"
18014     else
18015       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
18016 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
18017       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
18018 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
18019       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18020     fi
18021   else
18022     input_to_shortpath="$new_path"
18023   fi
18024 
18025   # Call helper function which possibly converts this using DOS-style short mode.
18026   # If so, the updated path is stored in $new_path.
18027   new_path="$input_to_shortpath"
18028 
18029   input_path="$input_to_shortpath"
18030   # Check if we need to convert this using DOS-style short mode. If the path
18031   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18032   # take no chances and rewrite it.
18033   # Note: m4 eats our [], so we need to use [ and ] instead.
18034   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
18035   if test "x$has_forbidden_chars" != x; then
18036     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18037     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
18038     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
18039     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
18040       # Going to short mode and back again did indeed matter. Since short mode is
18041       # case insensitive, let's make it lowercase to improve readability.
18042       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18043       # Now convert it back to Unix-style (cygpath)
18044       input_path=`$CYGPATH -u "$shortmode_path"`
18045       new_path="$input_path"
18046     fi
18047   fi
18048 
18049   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
18050   if test "x$test_cygdrive_prefix" = x; then
18051     # As a simple fix, exclude /usr/bin since it's not a real path.
18052     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
18053       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
18054       # a path prefixed by /cygdrive for fixpath to work.
18055       new_path="$CYGWIN_ROOT_PATH$input_path"
18056     fi
18057   fi
18058 
18059   # remove trailing .exe if any
18060   new_path="${new_path/%.exe/}"
18061 
18062     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18063 
18064   # First separate the path from the arguments. This will split at the first
18065   # space.
18066   complete="$FOUND_MAKE"
18067   path="${complete%% *}"
18068   tmp="$complete EOL"
18069   arguments="${tmp#* }"
18070 
18071   # Input might be given as Windows format, start by converting to
18072   # unix format.
18073   new_path="$path"
18074 
18075   windows_path="$new_path"
18076   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18077     unix_path=`$CYGPATH -u "$windows_path"`
18078     new_path="$unix_path"
18079   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18080     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18081     new_path="$unix_path"
18082   fi
18083 
18084 
18085   # Now try to locate executable using which
18086   new_path=`$WHICH "$new_path" 2> /dev/null`
18087 
18088   if test "x$new_path" = x; then
18089     # Oops. Which didn't find the executable.
18090     # The splitting of arguments from the executable at a space might have been incorrect,
18091     # since paths with space are more likely in Windows. Give it another try with the whole
18092     # argument.
18093     path="$complete"
18094     arguments="EOL"
18095     new_path="$path"
18096 
18097   windows_path="$new_path"
18098   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18099     unix_path=`$CYGPATH -u "$windows_path"`
18100     new_path="$unix_path"
18101   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18102     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18103     new_path="$unix_path"
18104   fi
18105 
18106 
18107     new_path=`$WHICH "$new_path" 2> /dev/null`
18108     # bat and cmd files are not always considered executable in MSYS causing which
18109     # to not find them
18110     if test "x$new_path" = x \
18111         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18112         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18113       new_path="$path"
18114 
18115   windows_path="$new_path"
18116   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18117     unix_path=`$CYGPATH -u "$windows_path"`
18118     new_path="$unix_path"
18119   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18120     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18121     new_path="$unix_path"
18122   fi
18123 
18124     fi
18125 
18126     if test "x$new_path" = x; then
18127       # It's still not found. Now this is an unrecoverable error.
18128       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18129 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18130       has_space=`$ECHO "$complete" | $GREP " "`
18131       if test "x$has_space" != x; then
18132         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18133 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18134       fi
18135       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18136     fi
18137   fi
18138 
18139   # Now new_path has a complete unix path to the binary
18140   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
18141     # Keep paths in /bin as-is, but remove trailing .exe if any
18142     new_path="${new_path/%.exe/}"
18143     # Do not save /bin paths to all_fixpath_prefixes!
18144   else
18145     # Not in mixed or Windows style, start by that.
18146     new_path=`cmd //c echo $new_path`
18147 
18148   input_path="$new_path"
18149   # Check if we need to convert this using DOS-style short mode. If the path
18150   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18151   # take no chances and rewrite it.
18152   # Note: m4 eats our [], so we need to use [ and ] instead.
18153   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
18154   if test "x$has_forbidden_chars" != x; then
18155     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18156     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18157   fi
18158 
18159     # Output is in $new_path
18160 
18161   windows_path="$new_path"
18162   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18163     unix_path=`$CYGPATH -u "$windows_path"`
18164     new_path="$unix_path"
18165   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18166     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18167     new_path="$unix_path"
18168   fi
18169 
18170     # remove trailing .exe if any
18171     new_path="${new_path/%.exe/}"
18172 
18173     # Save the first 10 bytes of this path to the storage, so fixpath can work.
18174     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
18175   fi
18176 
18177     else
18178       # We're on a unix platform. Hooray! :)
18179       # First separate the path from the arguments. This will split at the first
18180       # space.
18181       complete="$FOUND_MAKE"
18182       path="${complete%% *}"
18183       tmp="$complete EOL"
18184       arguments="${tmp#* }"
18185 
18186       # Cannot rely on the command "which" here since it doesn't always work.
18187       is_absolute_path=`$ECHO "$path" | $GREP ^/`
18188       if test -z "$is_absolute_path"; then
18189         # Path to executable is not absolute. Find it.
18190         IFS_save="$IFS"
18191         IFS=:
18192         for p in $PATH; do
18193           if test -f "$p/$path" && test -x "$p/$path"; then
18194             new_path="$p/$path"
18195             break
18196           fi
18197         done
18198         IFS="$IFS_save"
18199       else
18200         # This is an absolute path, we can use it without further modifications.
18201         new_path="$path"
18202       fi
18203 
18204       if test "x$new_path" = x; then
18205         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18206 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18207         has_space=`$ECHO "$complete" | $GREP " "`
18208         if test "x$has_space" != x; then
18209           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
18210 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
18211         fi
18212         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18213       fi
18214     fi
18215 
18216     # Now join together the path and the arguments once again
18217     if test "x$arguments" != xEOL; then
18218       new_complete="$new_path ${arguments% *}"
18219     else
18220       new_complete="$new_path"
18221     fi
18222 
18223     if test "x$complete" != "x$new_complete"; then
18224       FOUND_MAKE="$new_complete"
18225       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
18226 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
18227     fi
18228   fi
18229 
18230         fi
18231       fi
18232     fi
18233   fi
18234 
18235         if test "x$FOUND_MAKE" = x; then
18236           for ac_prog in make
18237 do
18238   # Extract the first word of "$ac_prog", so it can be a program name with args.
18239 set dummy $ac_prog; ac_word=$2
18240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18241 $as_echo_n "checking for $ac_word... " >&6; }
18242 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then :
18243   $as_echo_n "(cached) " >&6
18244 else
18245   case $CHECK_TOOLSDIR_MAKE in
18246   [\\/]* | ?:[\\/]*)
18247   ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
18248   ;;
18249   *)
18250   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18251 for as_dir in $PATH
18252 do
18253   IFS=$as_save_IFS
18254   test -z "$as_dir" && as_dir=.
18255     for ac_exec_ext in '' $ac_executable_extensions; do
18256   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18257     ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
18258     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18259     break 2
18260   fi
18261 done
18262   done
18263 IFS=$as_save_IFS
18264 
18265   ;;
18266 esac
18267 fi
18268 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE
18269 if test -n "$CHECK_TOOLSDIR_MAKE"; then
18270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5
18271 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; }
18272 else
18273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18274 $as_echo "no" >&6; }
18275 fi
18276 
18277 
18278   test -n "$CHECK_TOOLSDIR_MAKE" && break
18279 done
18280 
18281 
18282   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE""
18283   DESCRIPTION="make in tools-dir"
18284 
18285   # On Cygwin, we require a newer version of make than on other platforms
18286   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18287     MAKE_VERSION_EXPR="-e 4\."
18288     MAKE_REQUIRED_VERSION="4.0"
18289    else
18290     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
18291     MAKE_REQUIRED_VERSION="3.81"
18292   fi
18293 
18294   if test "x$MAKE_CANDIDATE" != x; then
18295     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
18296 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
18297     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
18298     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
18299     if test "x$IS_GNU_MAKE" = x; then
18300       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
18301 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
18302     else
18303       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
18304       if test "x$IS_MODERN_MAKE" = x; then
18305         { $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
18306 $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;}
18307       else
18308         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
18309           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18310             MAKE_EXPECTED_ENV='cygwin'
18311           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18312             MAKE_EXPECTED_ENV='msys'
18313           else
18314             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
18315           fi
18316           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
18317           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
18318         else
18319           # Not relevant for non-Windows
18320           IS_MAKE_CORRECT_ENV=true
18321         fi
18322         if test "x$IS_MAKE_CORRECT_ENV" = x; then
18323           { $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
18324 $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;}
18325         else
18326           FOUND_MAKE=$MAKE_CANDIDATE
18327 
18328   # Only process if variable expands to non-empty
18329 
18330   if test "x$FOUND_MAKE" != x; then
18331     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18332 
18333   # First separate the path from the arguments. This will split at the first
18334   # space.
18335   complete="$FOUND_MAKE"
18336   path="${complete%% *}"
18337   tmp="$complete EOL"
18338   arguments="${tmp#* }"
18339 
18340   # Input might be given as Windows format, start by converting to
18341   # unix format.
18342   new_path=`$CYGPATH -u "$path"`
18343 
18344   # Now try to locate executable using which
18345   new_path=`$WHICH "$new_path" 2> /dev/null`
18346   # bat and cmd files are not always considered executable in cygwin causing which
18347   # to not find them
18348   if test "x$new_path" = x \
18349       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18350       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18351     new_path=`$CYGPATH -u "$path"`
18352   fi
18353   if test "x$new_path" = x; then
18354     # Oops. Which didn't find the executable.
18355     # The splitting of arguments from the executable at a space might have been incorrect,
18356     # since paths with space are more likely in Windows. Give it another try with the whole
18357     # argument.
18358     path="$complete"
18359     arguments="EOL"
18360     new_path=`$CYGPATH -u "$path"`
18361     new_path=`$WHICH "$new_path" 2> /dev/null`
18362     # bat and cmd files are not always considered executable in cygwin causing which
18363     # to not find them
18364     if test "x$new_path" = x \
18365         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18366         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18367       new_path=`$CYGPATH -u "$path"`
18368     fi
18369     if test "x$new_path" = x; then
18370       # It's still not found. Now this is an unrecoverable error.
18371       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18372 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18373       has_space=`$ECHO "$complete" | $GREP " "`
18374       if test "x$has_space" != x; then
18375         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18376 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18377       fi
18378       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18379     fi
18380   fi
18381 
18382   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
18383   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
18384   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
18385   # "foo.exe" is OK but "foo" is an error.
18386   #
18387   # This test is therefore slightly more accurate than "test -f" to check for file presence.
18388   # It is also a way to make sure we got the proper file name for the real test later on.
18389   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
18390   if test "x$test_shortpath" = x; then
18391     # Short path failed, file does not exist as specified.
18392     # Try adding .exe or .cmd
18393     if test -f "${new_path}.exe"; then
18394       input_to_shortpath="${new_path}.exe"
18395     elif test -f "${new_path}.cmd"; then
18396       input_to_shortpath="${new_path}.cmd"
18397     else
18398       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
18399 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
18400       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
18401 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
18402       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18403     fi
18404   else
18405     input_to_shortpath="$new_path"
18406   fi
18407 
18408   # Call helper function which possibly converts this using DOS-style short mode.
18409   # If so, the updated path is stored in $new_path.
18410   new_path="$input_to_shortpath"
18411 
18412   input_path="$input_to_shortpath"
18413   # Check if we need to convert this using DOS-style short mode. If the path
18414   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18415   # take no chances and rewrite it.
18416   # Note: m4 eats our [], so we need to use [ and ] instead.
18417   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
18418   if test "x$has_forbidden_chars" != x; then
18419     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18420     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
18421     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
18422     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
18423       # Going to short mode and back again did indeed matter. Since short mode is
18424       # case insensitive, let's make it lowercase to improve readability.
18425       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18426       # Now convert it back to Unix-style (cygpath)
18427       input_path=`$CYGPATH -u "$shortmode_path"`
18428       new_path="$input_path"
18429     fi
18430   fi
18431 
18432   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
18433   if test "x$test_cygdrive_prefix" = x; then
18434     # As a simple fix, exclude /usr/bin since it's not a real path.
18435     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
18436       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
18437       # a path prefixed by /cygdrive for fixpath to work.
18438       new_path="$CYGWIN_ROOT_PATH$input_path"
18439     fi
18440   fi
18441 
18442   # remove trailing .exe if any
18443   new_path="${new_path/%.exe/}"
18444 
18445     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18446 
18447   # First separate the path from the arguments. This will split at the first
18448   # space.
18449   complete="$FOUND_MAKE"
18450   path="${complete%% *}"
18451   tmp="$complete EOL"
18452   arguments="${tmp#* }"
18453 
18454   # Input might be given as Windows format, start by converting to
18455   # unix format.
18456   new_path="$path"
18457 
18458   windows_path="$new_path"
18459   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18460     unix_path=`$CYGPATH -u "$windows_path"`
18461     new_path="$unix_path"
18462   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18463     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18464     new_path="$unix_path"
18465   fi
18466 
18467 
18468   # Now try to locate executable using which
18469   new_path=`$WHICH "$new_path" 2> /dev/null`
18470 
18471   if test "x$new_path" = x; then
18472     # Oops. Which didn't find the executable.
18473     # The splitting of arguments from the executable at a space might have been incorrect,
18474     # since paths with space are more likely in Windows. Give it another try with the whole
18475     # argument.
18476     path="$complete"
18477     arguments="EOL"
18478     new_path="$path"
18479 
18480   windows_path="$new_path"
18481   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18482     unix_path=`$CYGPATH -u "$windows_path"`
18483     new_path="$unix_path"
18484   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18485     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18486     new_path="$unix_path"
18487   fi
18488 
18489 
18490     new_path=`$WHICH "$new_path" 2> /dev/null`
18491     # bat and cmd files are not always considered executable in MSYS causing which
18492     # to not find them
18493     if test "x$new_path" = x \
18494         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18495         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18496       new_path="$path"
18497 
18498   windows_path="$new_path"
18499   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18500     unix_path=`$CYGPATH -u "$windows_path"`
18501     new_path="$unix_path"
18502   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18503     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18504     new_path="$unix_path"
18505   fi
18506 
18507     fi
18508 
18509     if test "x$new_path" = x; then
18510       # It's still not found. Now this is an unrecoverable error.
18511       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18512 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18513       has_space=`$ECHO "$complete" | $GREP " "`
18514       if test "x$has_space" != x; then
18515         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18516 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18517       fi
18518       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18519     fi
18520   fi
18521 
18522   # Now new_path has a complete unix path to the binary
18523   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
18524     # Keep paths in /bin as-is, but remove trailing .exe if any
18525     new_path="${new_path/%.exe/}"
18526     # Do not save /bin paths to all_fixpath_prefixes!
18527   else
18528     # Not in mixed or Windows style, start by that.
18529     new_path=`cmd //c echo $new_path`
18530 
18531   input_path="$new_path"
18532   # Check if we need to convert this using DOS-style short mode. If the path
18533   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18534   # take no chances and rewrite it.
18535   # Note: m4 eats our [], so we need to use [ and ] instead.
18536   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
18537   if test "x$has_forbidden_chars" != x; then
18538     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18539     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18540   fi
18541 
18542     # Output is in $new_path
18543 
18544   windows_path="$new_path"
18545   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18546     unix_path=`$CYGPATH -u "$windows_path"`
18547     new_path="$unix_path"
18548   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18549     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18550     new_path="$unix_path"
18551   fi
18552 
18553     # remove trailing .exe if any
18554     new_path="${new_path/%.exe/}"
18555 
18556     # Save the first 10 bytes of this path to the storage, so fixpath can work.
18557     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
18558   fi
18559 
18560     else
18561       # We're on a unix platform. Hooray! :)
18562       # First separate the path from the arguments. This will split at the first
18563       # space.
18564       complete="$FOUND_MAKE"
18565       path="${complete%% *}"
18566       tmp="$complete EOL"
18567       arguments="${tmp#* }"
18568 
18569       # Cannot rely on the command "which" here since it doesn't always work.
18570       is_absolute_path=`$ECHO "$path" | $GREP ^/`
18571       if test -z "$is_absolute_path"; then
18572         # Path to executable is not absolute. Find it.
18573         IFS_save="$IFS"
18574         IFS=:
18575         for p in $PATH; do
18576           if test -f "$p/$path" && test -x "$p/$path"; then
18577             new_path="$p/$path"
18578             break
18579           fi
18580         done
18581         IFS="$IFS_save"
18582       else
18583         # This is an absolute path, we can use it without further modifications.
18584         new_path="$path"
18585       fi
18586 
18587       if test "x$new_path" = x; then
18588         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18589 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18590         has_space=`$ECHO "$complete" | $GREP " "`
18591         if test "x$has_space" != x; then
18592           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
18593 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
18594         fi
18595         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18596       fi
18597     fi
18598 
18599     # Now join together the path and the arguments once again
18600     if test "x$arguments" != xEOL; then
18601       new_complete="$new_path ${arguments% *}"
18602     else
18603       new_complete="$new_path"
18604     fi
18605 
18606     if test "x$complete" != "x$new_complete"; then
18607       FOUND_MAKE="$new_complete"
18608       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
18609 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
18610     fi
18611   fi
18612 
18613         fi
18614       fi
18615     fi
18616   fi
18617 
18618         fi
18619         PATH=$OLD_PATH
18620       fi
18621     fi
18622 
18623     if test "x$FOUND_MAKE" = x; then
18624       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
18625     fi
18626 
18627   else
18628     # The variable is set, but is it from the command line or the environment?
18629 
18630     # Try to remove the string !MAKE! from our list.
18631     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MAKE!/}
18632     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18633       # If it failed, the variable was not from the command line. Ignore it,
18634       # but warn the user (except for BASH, which is always set by the calling BASH).
18635       if test "xMAKE" != xBASH; then
18636         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MAKE from the environment. Use command line variables instead." >&5
18637 $as_echo "$as_me: WARNING: Ignoring value of MAKE from the environment. Use command line variables instead." >&2;}
18638       fi
18639       # Try to locate tool using the code snippet
18640 
18641     # Try our hardest to locate a correct version of GNU make
18642     for ac_prog in gmake
18643 do
18644   # Extract the first word of "$ac_prog", so it can be a program name with args.
18645 set dummy $ac_prog; ac_word=$2
18646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18647 $as_echo_n "checking for $ac_word... " >&6; }
18648 if ${ac_cv_path_CHECK_GMAKE+:} false; then :
18649   $as_echo_n "(cached) " >&6
18650 else
18651   case $CHECK_GMAKE in
18652   [\\/]* | ?:[\\/]*)
18653   ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
18654   ;;
18655   *)
18656   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18657 for as_dir in $PATH
18658 do
18659   IFS=$as_save_IFS
18660   test -z "$as_dir" && as_dir=.
18661     for ac_exec_ext in '' $ac_executable_extensions; do
18662   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18663     ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
18664     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18665     break 2
18666   fi
18667 done
18668   done
18669 IFS=$as_save_IFS
18670 
18671   ;;
18672 esac
18673 fi
18674 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE
18675 if test -n "$CHECK_GMAKE"; then
18676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5
18677 $as_echo "$CHECK_GMAKE" >&6; }
18678 else
18679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18680 $as_echo "no" >&6; }
18681 fi
18682 
18683 
18684   test -n "$CHECK_GMAKE" && break
18685 done
18686 
18687 
18688   MAKE_CANDIDATE=""$CHECK_GMAKE""
18689   DESCRIPTION="gmake in PATH"
18690 
18691   # On Cygwin, we require a newer version of make than on other platforms
18692   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18693     MAKE_VERSION_EXPR="-e 4\."
18694     MAKE_REQUIRED_VERSION="4.0"
18695    else
18696     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
18697     MAKE_REQUIRED_VERSION="3.81"
18698   fi
18699 
18700   if test "x$MAKE_CANDIDATE" != x; then
18701     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
18702 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
18703     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
18704     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
18705     if test "x$IS_GNU_MAKE" = x; then
18706       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
18707 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
18708     else
18709       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
18710       if test "x$IS_MODERN_MAKE" = x; then
18711         { $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
18712 $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;}
18713       else
18714         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
18715           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18716             MAKE_EXPECTED_ENV='cygwin'
18717           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18718             MAKE_EXPECTED_ENV='msys'
18719           else
18720             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
18721           fi
18722           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
18723           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
18724         else
18725           # Not relevant for non-Windows
18726           IS_MAKE_CORRECT_ENV=true
18727         fi
18728         if test "x$IS_MAKE_CORRECT_ENV" = x; then
18729           { $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
18730 $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;}
18731         else
18732           FOUND_MAKE=$MAKE_CANDIDATE
18733 
18734   # Only process if variable expands to non-empty
18735 
18736   if test "x$FOUND_MAKE" != x; then
18737     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18738 
18739   # First separate the path from the arguments. This will split at the first
18740   # space.
18741   complete="$FOUND_MAKE"
18742   path="${complete%% *}"
18743   tmp="$complete EOL"
18744   arguments="${tmp#* }"
18745 
18746   # Input might be given as Windows format, start by converting to
18747   # unix format.
18748   new_path=`$CYGPATH -u "$path"`
18749 
18750   # Now try to locate executable using which
18751   new_path=`$WHICH "$new_path" 2> /dev/null`
18752   # bat and cmd files are not always considered executable in cygwin causing which
18753   # to not find them
18754   if test "x$new_path" = x \
18755       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18756       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18757     new_path=`$CYGPATH -u "$path"`
18758   fi
18759   if test "x$new_path" = x; then
18760     # Oops. Which didn't find the executable.
18761     # The splitting of arguments from the executable at a space might have been incorrect,
18762     # since paths with space are more likely in Windows. Give it another try with the whole
18763     # argument.
18764     path="$complete"
18765     arguments="EOL"
18766     new_path=`$CYGPATH -u "$path"`
18767     new_path=`$WHICH "$new_path" 2> /dev/null`
18768     # bat and cmd files are not always considered executable in cygwin causing which
18769     # to not find them
18770     if test "x$new_path" = x \
18771         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18772         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18773       new_path=`$CYGPATH -u "$path"`
18774     fi
18775     if test "x$new_path" = x; then
18776       # It's still not found. Now this is an unrecoverable error.
18777       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18778 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18779       has_space=`$ECHO "$complete" | $GREP " "`
18780       if test "x$has_space" != x; then
18781         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18782 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18783       fi
18784       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18785     fi
18786   fi
18787 
18788   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
18789   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
18790   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
18791   # "foo.exe" is OK but "foo" is an error.
18792   #
18793   # This test is therefore slightly more accurate than "test -f" to check for file presence.
18794   # It is also a way to make sure we got the proper file name for the real test later on.
18795   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
18796   if test "x$test_shortpath" = x; then
18797     # Short path failed, file does not exist as specified.
18798     # Try adding .exe or .cmd
18799     if test -f "${new_path}.exe"; then
18800       input_to_shortpath="${new_path}.exe"
18801     elif test -f "${new_path}.cmd"; then
18802       input_to_shortpath="${new_path}.cmd"
18803     else
18804       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
18805 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
18806       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
18807 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
18808       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18809     fi
18810   else
18811     input_to_shortpath="$new_path"
18812   fi
18813 
18814   # Call helper function which possibly converts this using DOS-style short mode.
18815   # If so, the updated path is stored in $new_path.
18816   new_path="$input_to_shortpath"
18817 
18818   input_path="$input_to_shortpath"
18819   # Check if we need to convert this using DOS-style short mode. If the path
18820   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18821   # take no chances and rewrite it.
18822   # Note: m4 eats our [], so we need to use [ and ] instead.
18823   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
18824   if test "x$has_forbidden_chars" != x; then
18825     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18826     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
18827     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
18828     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
18829       # Going to short mode and back again did indeed matter. Since short mode is
18830       # case insensitive, let's make it lowercase to improve readability.
18831       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18832       # Now convert it back to Unix-style (cygpath)
18833       input_path=`$CYGPATH -u "$shortmode_path"`
18834       new_path="$input_path"
18835     fi
18836   fi
18837 
18838   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
18839   if test "x$test_cygdrive_prefix" = x; then
18840     # As a simple fix, exclude /usr/bin since it's not a real path.
18841     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
18842       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
18843       # a path prefixed by /cygdrive for fixpath to work.
18844       new_path="$CYGWIN_ROOT_PATH$input_path"
18845     fi
18846   fi
18847 
18848   # remove trailing .exe if any
18849   new_path="${new_path/%.exe/}"
18850 
18851     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18852 
18853   # First separate the path from the arguments. This will split at the first
18854   # space.
18855   complete="$FOUND_MAKE"
18856   path="${complete%% *}"
18857   tmp="$complete EOL"
18858   arguments="${tmp#* }"
18859 
18860   # Input might be given as Windows format, start by converting to
18861   # unix format.
18862   new_path="$path"
18863 
18864   windows_path="$new_path"
18865   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18866     unix_path=`$CYGPATH -u "$windows_path"`
18867     new_path="$unix_path"
18868   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18869     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18870     new_path="$unix_path"
18871   fi
18872 
18873 
18874   # Now try to locate executable using which
18875   new_path=`$WHICH "$new_path" 2> /dev/null`
18876 
18877   if test "x$new_path" = x; then
18878     # Oops. Which didn't find the executable.
18879     # The splitting of arguments from the executable at a space might have been incorrect,
18880     # since paths with space are more likely in Windows. Give it another try with the whole
18881     # argument.
18882     path="$complete"
18883     arguments="EOL"
18884     new_path="$path"
18885 
18886   windows_path="$new_path"
18887   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18888     unix_path=`$CYGPATH -u "$windows_path"`
18889     new_path="$unix_path"
18890   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18891     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18892     new_path="$unix_path"
18893   fi
18894 
18895 
18896     new_path=`$WHICH "$new_path" 2> /dev/null`
18897     # bat and cmd files are not always considered executable in MSYS causing which
18898     # to not find them
18899     if test "x$new_path" = x \
18900         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18901         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18902       new_path="$path"
18903 
18904   windows_path="$new_path"
18905   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18906     unix_path=`$CYGPATH -u "$windows_path"`
18907     new_path="$unix_path"
18908   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18909     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18910     new_path="$unix_path"
18911   fi
18912 
18913     fi
18914 
18915     if test "x$new_path" = x; then
18916       # It's still not found. Now this is an unrecoverable error.
18917       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18918 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18919       has_space=`$ECHO "$complete" | $GREP " "`
18920       if test "x$has_space" != x; then
18921         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18922 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18923       fi
18924       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18925     fi
18926   fi
18927 
18928   # Now new_path has a complete unix path to the binary
18929   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
18930     # Keep paths in /bin as-is, but remove trailing .exe if any
18931     new_path="${new_path/%.exe/}"
18932     # Do not save /bin paths to all_fixpath_prefixes!
18933   else
18934     # Not in mixed or Windows style, start by that.
18935     new_path=`cmd //c echo $new_path`
18936 
18937   input_path="$new_path"
18938   # Check if we need to convert this using DOS-style short mode. If the path
18939   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18940   # take no chances and rewrite it.
18941   # Note: m4 eats our [], so we need to use [ and ] instead.
18942   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
18943   if test "x$has_forbidden_chars" != x; then
18944     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18945     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18946   fi
18947 
18948     # Output is in $new_path
18949 
18950   windows_path="$new_path"
18951   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18952     unix_path=`$CYGPATH -u "$windows_path"`
18953     new_path="$unix_path"
18954   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18955     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18956     new_path="$unix_path"
18957   fi
18958 
18959     # remove trailing .exe if any
18960     new_path="${new_path/%.exe/}"
18961 
18962     # Save the first 10 bytes of this path to the storage, so fixpath can work.
18963     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
18964   fi
18965 
18966     else
18967       # We're on a unix platform. Hooray! :)
18968       # First separate the path from the arguments. This will split at the first
18969       # space.
18970       complete="$FOUND_MAKE"
18971       path="${complete%% *}"
18972       tmp="$complete EOL"
18973       arguments="${tmp#* }"
18974 
18975       # Cannot rely on the command "which" here since it doesn't always work.
18976       is_absolute_path=`$ECHO "$path" | $GREP ^/`
18977       if test -z "$is_absolute_path"; then
18978         # Path to executable is not absolute. Find it.
18979         IFS_save="$IFS"
18980         IFS=:
18981         for p in $PATH; do
18982           if test -f "$p/$path" && test -x "$p/$path"; then
18983             new_path="$p/$path"
18984             break
18985           fi
18986         done
18987         IFS="$IFS_save"
18988       else
18989         # This is an absolute path, we can use it without further modifications.
18990         new_path="$path"
18991       fi
18992 
18993       if test "x$new_path" = x; then
18994         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18995 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18996         has_space=`$ECHO "$complete" | $GREP " "`
18997         if test "x$has_space" != x; then
18998           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
18999 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
19000         fi
19001         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19002       fi
19003     fi
19004 
19005     # Now join together the path and the arguments once again
19006     if test "x$arguments" != xEOL; then
19007       new_complete="$new_path ${arguments% *}"
19008     else
19009       new_complete="$new_path"
19010     fi
19011 
19012     if test "x$complete" != "x$new_complete"; then
19013       FOUND_MAKE="$new_complete"
19014       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
19015 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
19016     fi
19017   fi
19018 
19019         fi
19020       fi
19021     fi
19022   fi
19023 
19024 
19025     if test "x$FOUND_MAKE" = x; then
19026       for ac_prog in make
19027 do
19028   # Extract the first word of "$ac_prog", so it can be a program name with args.
19029 set dummy $ac_prog; ac_word=$2
19030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19031 $as_echo_n "checking for $ac_word... " >&6; }
19032 if ${ac_cv_path_CHECK_MAKE+:} false; then :
19033   $as_echo_n "(cached) " >&6
19034 else
19035   case $CHECK_MAKE in
19036   [\\/]* | ?:[\\/]*)
19037   ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
19038   ;;
19039   *)
19040   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19041 for as_dir in $PATH
19042 do
19043   IFS=$as_save_IFS
19044   test -z "$as_dir" && as_dir=.
19045     for ac_exec_ext in '' $ac_executable_extensions; do
19046   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19047     ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
19048     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19049     break 2
19050   fi
19051 done
19052   done
19053 IFS=$as_save_IFS
19054 
19055   ;;
19056 esac
19057 fi
19058 CHECK_MAKE=$ac_cv_path_CHECK_MAKE
19059 if test -n "$CHECK_MAKE"; then
19060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5
19061 $as_echo "$CHECK_MAKE" >&6; }
19062 else
19063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19064 $as_echo "no" >&6; }
19065 fi
19066 
19067 
19068   test -n "$CHECK_MAKE" && break
19069 done
19070 
19071 
19072   MAKE_CANDIDATE=""$CHECK_MAKE""
19073   DESCRIPTION="make in PATH"
19074 
19075   # On Cygwin, we require a newer version of make than on other platforms
19076   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19077     MAKE_VERSION_EXPR="-e 4\."
19078     MAKE_REQUIRED_VERSION="4.0"
19079    else
19080     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
19081     MAKE_REQUIRED_VERSION="3.81"
19082   fi
19083 
19084   if test "x$MAKE_CANDIDATE" != x; then
19085     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
19086 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
19087     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
19088     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
19089     if test "x$IS_GNU_MAKE" = x; then
19090       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
19091 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
19092     else
19093       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
19094       if test "x$IS_MODERN_MAKE" = x; then
19095         { $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
19096 $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;}
19097       else
19098         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
19099           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19100             MAKE_EXPECTED_ENV='cygwin'
19101           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19102             MAKE_EXPECTED_ENV='msys'
19103           else
19104             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
19105           fi
19106           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
19107           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
19108         else
19109           # Not relevant for non-Windows
19110           IS_MAKE_CORRECT_ENV=true
19111         fi
19112         if test "x$IS_MAKE_CORRECT_ENV" = x; then
19113           { $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
19114 $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;}
19115         else
19116           FOUND_MAKE=$MAKE_CANDIDATE
19117 
19118   # Only process if variable expands to non-empty
19119 
19120   if test "x$FOUND_MAKE" != x; then
19121     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19122 
19123   # First separate the path from the arguments. This will split at the first
19124   # space.
19125   complete="$FOUND_MAKE"
19126   path="${complete%% *}"
19127   tmp="$complete EOL"
19128   arguments="${tmp#* }"
19129 
19130   # Input might be given as Windows format, start by converting to
19131   # unix format.
19132   new_path=`$CYGPATH -u "$path"`
19133 
19134   # Now try to locate executable using which
19135   new_path=`$WHICH "$new_path" 2> /dev/null`
19136   # bat and cmd files are not always considered executable in cygwin causing which
19137   # to not find them
19138   if test "x$new_path" = x \
19139       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19140       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19141     new_path=`$CYGPATH -u "$path"`
19142   fi
19143   if test "x$new_path" = x; then
19144     # Oops. Which didn't find the executable.
19145     # The splitting of arguments from the executable at a space might have been incorrect,
19146     # since paths with space are more likely in Windows. Give it another try with the whole
19147     # argument.
19148     path="$complete"
19149     arguments="EOL"
19150     new_path=`$CYGPATH -u "$path"`
19151     new_path=`$WHICH "$new_path" 2> /dev/null`
19152     # bat and cmd files are not always considered executable in cygwin causing which
19153     # to not find them
19154     if test "x$new_path" = x \
19155         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19156         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19157       new_path=`$CYGPATH -u "$path"`
19158     fi
19159     if test "x$new_path" = x; then
19160       # It's still not found. Now this is an unrecoverable error.
19161       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19162 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19163       has_space=`$ECHO "$complete" | $GREP " "`
19164       if test "x$has_space" != x; then
19165         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19166 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19167       fi
19168       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19169     fi
19170   fi
19171 
19172   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19173   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19174   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19175   # "foo.exe" is OK but "foo" is an error.
19176   #
19177   # This test is therefore slightly more accurate than "test -f" to check for file presence.
19178   # It is also a way to make sure we got the proper file name for the real test later on.
19179   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19180   if test "x$test_shortpath" = x; then
19181     # Short path failed, file does not exist as specified.
19182     # Try adding .exe or .cmd
19183     if test -f "${new_path}.exe"; then
19184       input_to_shortpath="${new_path}.exe"
19185     elif test -f "${new_path}.cmd"; then
19186       input_to_shortpath="${new_path}.cmd"
19187     else
19188       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
19189 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
19190       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
19191 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
19192       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19193     fi
19194   else
19195     input_to_shortpath="$new_path"
19196   fi
19197 
19198   # Call helper function which possibly converts this using DOS-style short mode.
19199   # If so, the updated path is stored in $new_path.
19200   new_path="$input_to_shortpath"
19201 
19202   input_path="$input_to_shortpath"
19203   # Check if we need to convert this using DOS-style short mode. If the path
19204   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19205   # take no chances and rewrite it.
19206   # Note: m4 eats our [], so we need to use [ and ] instead.
19207   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19208   if test "x$has_forbidden_chars" != x; then
19209     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19210     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19211     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19212     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19213       # Going to short mode and back again did indeed matter. Since short mode is
19214       # case insensitive, let's make it lowercase to improve readability.
19215       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19216       # Now convert it back to Unix-style (cygpath)
19217       input_path=`$CYGPATH -u "$shortmode_path"`
19218       new_path="$input_path"
19219     fi
19220   fi
19221 
19222   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
19223   if test "x$test_cygdrive_prefix" = x; then
19224     # As a simple fix, exclude /usr/bin since it's not a real path.
19225     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
19226       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
19227       # a path prefixed by /cygdrive for fixpath to work.
19228       new_path="$CYGWIN_ROOT_PATH$input_path"
19229     fi
19230   fi
19231 
19232   # remove trailing .exe if any
19233   new_path="${new_path/%.exe/}"
19234 
19235     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19236 
19237   # First separate the path from the arguments. This will split at the first
19238   # space.
19239   complete="$FOUND_MAKE"
19240   path="${complete%% *}"
19241   tmp="$complete EOL"
19242   arguments="${tmp#* }"
19243 
19244   # Input might be given as Windows format, start by converting to
19245   # unix format.
19246   new_path="$path"
19247 
19248   windows_path="$new_path"
19249   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19250     unix_path=`$CYGPATH -u "$windows_path"`
19251     new_path="$unix_path"
19252   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19253     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19254     new_path="$unix_path"
19255   fi
19256 
19257 
19258   # Now try to locate executable using which
19259   new_path=`$WHICH "$new_path" 2> /dev/null`
19260 
19261   if test "x$new_path" = x; then
19262     # Oops. Which didn't find the executable.
19263     # The splitting of arguments from the executable at a space might have been incorrect,
19264     # since paths with space are more likely in Windows. Give it another try with the whole
19265     # argument.
19266     path="$complete"
19267     arguments="EOL"
19268     new_path="$path"
19269 
19270   windows_path="$new_path"
19271   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19272     unix_path=`$CYGPATH -u "$windows_path"`
19273     new_path="$unix_path"
19274   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19275     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19276     new_path="$unix_path"
19277   fi
19278 
19279 
19280     new_path=`$WHICH "$new_path" 2> /dev/null`
19281     # bat and cmd files are not always considered executable in MSYS causing which
19282     # to not find them
19283     if test "x$new_path" = x \
19284         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19285         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19286       new_path="$path"
19287 
19288   windows_path="$new_path"
19289   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19290     unix_path=`$CYGPATH -u "$windows_path"`
19291     new_path="$unix_path"
19292   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19293     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19294     new_path="$unix_path"
19295   fi
19296 
19297     fi
19298 
19299     if test "x$new_path" = x; then
19300       # It's still not found. Now this is an unrecoverable error.
19301       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19302 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19303       has_space=`$ECHO "$complete" | $GREP " "`
19304       if test "x$has_space" != x; then
19305         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19306 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19307       fi
19308       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19309     fi
19310   fi
19311 
19312   # Now new_path has a complete unix path to the binary
19313   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
19314     # Keep paths in /bin as-is, but remove trailing .exe if any
19315     new_path="${new_path/%.exe/}"
19316     # Do not save /bin paths to all_fixpath_prefixes!
19317   else
19318     # Not in mixed or Windows style, start by that.
19319     new_path=`cmd //c echo $new_path`
19320 
19321   input_path="$new_path"
19322   # Check if we need to convert this using DOS-style short mode. If the path
19323   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19324   # take no chances and rewrite it.
19325   # Note: m4 eats our [], so we need to use [ and ] instead.
19326   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
19327   if test "x$has_forbidden_chars" != x; then
19328     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19329     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19330   fi
19331 
19332     # Output is in $new_path
19333 
19334   windows_path="$new_path"
19335   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19336     unix_path=`$CYGPATH -u "$windows_path"`
19337     new_path="$unix_path"
19338   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19339     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19340     new_path="$unix_path"
19341   fi
19342 
19343     # remove trailing .exe if any
19344     new_path="${new_path/%.exe/}"
19345 
19346     # Save the first 10 bytes of this path to the storage, so fixpath can work.
19347     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
19348   fi
19349 
19350     else
19351       # We're on a unix platform. Hooray! :)
19352       # First separate the path from the arguments. This will split at the first
19353       # space.
19354       complete="$FOUND_MAKE"
19355       path="${complete%% *}"
19356       tmp="$complete EOL"
19357       arguments="${tmp#* }"
19358 
19359       # Cannot rely on the command "which" here since it doesn't always work.
19360       is_absolute_path=`$ECHO "$path" | $GREP ^/`
19361       if test -z "$is_absolute_path"; then
19362         # Path to executable is not absolute. Find it.
19363         IFS_save="$IFS"
19364         IFS=:
19365         for p in $PATH; do
19366           if test -f "$p/$path" && test -x "$p/$path"; then
19367             new_path="$p/$path"
19368             break
19369           fi
19370         done
19371         IFS="$IFS_save"
19372       else
19373         # This is an absolute path, we can use it without further modifications.
19374         new_path="$path"
19375       fi
19376 
19377       if test "x$new_path" = x; then
19378         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19379 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19380         has_space=`$ECHO "$complete" | $GREP " "`
19381         if test "x$has_space" != x; then
19382           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
19383 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
19384         fi
19385         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19386       fi
19387     fi
19388 
19389     # Now join together the path and the arguments once again
19390     if test "x$arguments" != xEOL; then
19391       new_complete="$new_path ${arguments% *}"
19392     else
19393       new_complete="$new_path"
19394     fi
19395 
19396     if test "x$complete" != "x$new_complete"; then
19397       FOUND_MAKE="$new_complete"
19398       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
19399 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
19400     fi
19401   fi
19402 
19403         fi
19404       fi
19405     fi
19406   fi
19407 
19408     fi
19409 
19410     if test "x$FOUND_MAKE" = x; then
19411       if test "x$TOOLCHAIN_PATH" != x; then
19412         # We have a toolchain path, check that as well before giving up.
19413         OLD_PATH=$PATH
19414         PATH=$TOOLCHAIN_PATH:$PATH
19415         for ac_prog in gmake
19416 do
19417   # Extract the first word of "$ac_prog", so it can be a program name with args.
19418 set dummy $ac_prog; ac_word=$2
19419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19420 $as_echo_n "checking for $ac_word... " >&6; }
19421 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then :
19422   $as_echo_n "(cached) " >&6
19423 else
19424   case $CHECK_TOOLSDIR_GMAKE in
19425   [\\/]* | ?:[\\/]*)
19426   ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
19427   ;;
19428   *)
19429   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19430 for as_dir in $PATH
19431 do
19432   IFS=$as_save_IFS
19433   test -z "$as_dir" && as_dir=.
19434     for ac_exec_ext in '' $ac_executable_extensions; do
19435   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19436     ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
19437     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19438     break 2
19439   fi
19440 done
19441   done
19442 IFS=$as_save_IFS
19443 
19444   ;;
19445 esac
19446 fi
19447 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE
19448 if test -n "$CHECK_TOOLSDIR_GMAKE"; then
19449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5
19450 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; }
19451 else
19452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19453 $as_echo "no" >&6; }
19454 fi
19455 
19456 
19457   test -n "$CHECK_TOOLSDIR_GMAKE" && break
19458 done
19459 
19460 
19461   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE""
19462   DESCRIPTION="gmake in tools-dir"
19463 
19464   # On Cygwin, we require a newer version of make than on other platforms
19465   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19466     MAKE_VERSION_EXPR="-e 4\."
19467     MAKE_REQUIRED_VERSION="4.0"
19468    else
19469     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
19470     MAKE_REQUIRED_VERSION="3.81"
19471   fi
19472 
19473   if test "x$MAKE_CANDIDATE" != x; then
19474     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
19475 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
19476     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
19477     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
19478     if test "x$IS_GNU_MAKE" = x; then
19479       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
19480 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
19481     else
19482       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
19483       if test "x$IS_MODERN_MAKE" = x; then
19484         { $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
19485 $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;}
19486       else
19487         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
19488           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19489             MAKE_EXPECTED_ENV='cygwin'
19490           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19491             MAKE_EXPECTED_ENV='msys'
19492           else
19493             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
19494           fi
19495           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
19496           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
19497         else
19498           # Not relevant for non-Windows
19499           IS_MAKE_CORRECT_ENV=true
19500         fi
19501         if test "x$IS_MAKE_CORRECT_ENV" = x; then
19502           { $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
19503 $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;}
19504         else
19505           FOUND_MAKE=$MAKE_CANDIDATE
19506 
19507   # Only process if variable expands to non-empty
19508 
19509   if test "x$FOUND_MAKE" != x; then
19510     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19511 
19512   # First separate the path from the arguments. This will split at the first
19513   # space.
19514   complete="$FOUND_MAKE"
19515   path="${complete%% *}"
19516   tmp="$complete EOL"
19517   arguments="${tmp#* }"
19518 
19519   # Input might be given as Windows format, start by converting to
19520   # unix format.
19521   new_path=`$CYGPATH -u "$path"`
19522 
19523   # Now try to locate executable using which
19524   new_path=`$WHICH "$new_path" 2> /dev/null`
19525   # bat and cmd files are not always considered executable in cygwin causing which
19526   # to not find them
19527   if test "x$new_path" = x \
19528       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19529       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19530     new_path=`$CYGPATH -u "$path"`
19531   fi
19532   if test "x$new_path" = x; then
19533     # Oops. Which didn't find the executable.
19534     # The splitting of arguments from the executable at a space might have been incorrect,
19535     # since paths with space are more likely in Windows. Give it another try with the whole
19536     # argument.
19537     path="$complete"
19538     arguments="EOL"
19539     new_path=`$CYGPATH -u "$path"`
19540     new_path=`$WHICH "$new_path" 2> /dev/null`
19541     # bat and cmd files are not always considered executable in cygwin causing which
19542     # to not find them
19543     if test "x$new_path" = x \
19544         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19545         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19546       new_path=`$CYGPATH -u "$path"`
19547     fi
19548     if test "x$new_path" = x; then
19549       # It's still not found. Now this is an unrecoverable error.
19550       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19551 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19552       has_space=`$ECHO "$complete" | $GREP " "`
19553       if test "x$has_space" != x; then
19554         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19555 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19556       fi
19557       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19558     fi
19559   fi
19560 
19561   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19562   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19563   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19564   # "foo.exe" is OK but "foo" is an error.
19565   #
19566   # This test is therefore slightly more accurate than "test -f" to check for file presence.
19567   # It is also a way to make sure we got the proper file name for the real test later on.
19568   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19569   if test "x$test_shortpath" = x; then
19570     # Short path failed, file does not exist as specified.
19571     # Try adding .exe or .cmd
19572     if test -f "${new_path}.exe"; then
19573       input_to_shortpath="${new_path}.exe"
19574     elif test -f "${new_path}.cmd"; then
19575       input_to_shortpath="${new_path}.cmd"
19576     else
19577       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
19578 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
19579       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
19580 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
19581       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19582     fi
19583   else
19584     input_to_shortpath="$new_path"
19585   fi
19586 
19587   # Call helper function which possibly converts this using DOS-style short mode.
19588   # If so, the updated path is stored in $new_path.
19589   new_path="$input_to_shortpath"
19590 
19591   input_path="$input_to_shortpath"
19592   # Check if we need to convert this using DOS-style short mode. If the path
19593   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19594   # take no chances and rewrite it.
19595   # Note: m4 eats our [], so we need to use [ and ] instead.
19596   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19597   if test "x$has_forbidden_chars" != x; then
19598     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19599     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19600     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19601     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19602       # Going to short mode and back again did indeed matter. Since short mode is
19603       # case insensitive, let's make it lowercase to improve readability.
19604       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19605       # Now convert it back to Unix-style (cygpath)
19606       input_path=`$CYGPATH -u "$shortmode_path"`
19607       new_path="$input_path"
19608     fi
19609   fi
19610 
19611   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
19612   if test "x$test_cygdrive_prefix" = x; then
19613     # As a simple fix, exclude /usr/bin since it's not a real path.
19614     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
19615       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
19616       # a path prefixed by /cygdrive for fixpath to work.
19617       new_path="$CYGWIN_ROOT_PATH$input_path"
19618     fi
19619   fi
19620 
19621   # remove trailing .exe if any
19622   new_path="${new_path/%.exe/}"
19623 
19624     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19625 
19626   # First separate the path from the arguments. This will split at the first
19627   # space.
19628   complete="$FOUND_MAKE"
19629   path="${complete%% *}"
19630   tmp="$complete EOL"
19631   arguments="${tmp#* }"
19632 
19633   # Input might be given as Windows format, start by converting to
19634   # unix format.
19635   new_path="$path"
19636 
19637   windows_path="$new_path"
19638   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19639     unix_path=`$CYGPATH -u "$windows_path"`
19640     new_path="$unix_path"
19641   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19642     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19643     new_path="$unix_path"
19644   fi
19645 
19646 
19647   # Now try to locate executable using which
19648   new_path=`$WHICH "$new_path" 2> /dev/null`
19649 
19650   if test "x$new_path" = x; then
19651     # Oops. Which didn't find the executable.
19652     # The splitting of arguments from the executable at a space might have been incorrect,
19653     # since paths with space are more likely in Windows. Give it another try with the whole
19654     # argument.
19655     path="$complete"
19656     arguments="EOL"
19657     new_path="$path"
19658 
19659   windows_path="$new_path"
19660   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19661     unix_path=`$CYGPATH -u "$windows_path"`
19662     new_path="$unix_path"
19663   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19664     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19665     new_path="$unix_path"
19666   fi
19667 
19668 
19669     new_path=`$WHICH "$new_path" 2> /dev/null`
19670     # bat and cmd files are not always considered executable in MSYS causing which
19671     # to not find them
19672     if test "x$new_path" = x \
19673         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19674         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19675       new_path="$path"
19676 
19677   windows_path="$new_path"
19678   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19679     unix_path=`$CYGPATH -u "$windows_path"`
19680     new_path="$unix_path"
19681   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19682     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19683     new_path="$unix_path"
19684   fi
19685 
19686     fi
19687 
19688     if test "x$new_path" = x; then
19689       # It's still not found. Now this is an unrecoverable error.
19690       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19691 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19692       has_space=`$ECHO "$complete" | $GREP " "`
19693       if test "x$has_space" != x; then
19694         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19695 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19696       fi
19697       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19698     fi
19699   fi
19700 
19701   # Now new_path has a complete unix path to the binary
19702   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
19703     # Keep paths in /bin as-is, but remove trailing .exe if any
19704     new_path="${new_path/%.exe/}"
19705     # Do not save /bin paths to all_fixpath_prefixes!
19706   else
19707     # Not in mixed or Windows style, start by that.
19708     new_path=`cmd //c echo $new_path`
19709 
19710   input_path="$new_path"
19711   # Check if we need to convert this using DOS-style short mode. If the path
19712   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19713   # take no chances and rewrite it.
19714   # Note: m4 eats our [], so we need to use [ and ] instead.
19715   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
19716   if test "x$has_forbidden_chars" != x; then
19717     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19718     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19719   fi
19720 
19721     # Output is in $new_path
19722 
19723   windows_path="$new_path"
19724   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19725     unix_path=`$CYGPATH -u "$windows_path"`
19726     new_path="$unix_path"
19727   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19728     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19729     new_path="$unix_path"
19730   fi
19731 
19732     # remove trailing .exe if any
19733     new_path="${new_path/%.exe/}"
19734 
19735     # Save the first 10 bytes of this path to the storage, so fixpath can work.
19736     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
19737   fi
19738 
19739     else
19740       # We're on a unix platform. Hooray! :)
19741       # First separate the path from the arguments. This will split at the first
19742       # space.
19743       complete="$FOUND_MAKE"
19744       path="${complete%% *}"
19745       tmp="$complete EOL"
19746       arguments="${tmp#* }"
19747 
19748       # Cannot rely on the command "which" here since it doesn't always work.
19749       is_absolute_path=`$ECHO "$path" | $GREP ^/`
19750       if test -z "$is_absolute_path"; then
19751         # Path to executable is not absolute. Find it.
19752         IFS_save="$IFS"
19753         IFS=:
19754         for p in $PATH; do
19755           if test -f "$p/$path" && test -x "$p/$path"; then
19756             new_path="$p/$path"
19757             break
19758           fi
19759         done
19760         IFS="$IFS_save"
19761       else
19762         # This is an absolute path, we can use it without further modifications.
19763         new_path="$path"
19764       fi
19765 
19766       if test "x$new_path" = x; then
19767         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19768 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19769         has_space=`$ECHO "$complete" | $GREP " "`
19770         if test "x$has_space" != x; then
19771           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
19772 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
19773         fi
19774         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19775       fi
19776     fi
19777 
19778     # Now join together the path and the arguments once again
19779     if test "x$arguments" != xEOL; then
19780       new_complete="$new_path ${arguments% *}"
19781     else
19782       new_complete="$new_path"
19783     fi
19784 
19785     if test "x$complete" != "x$new_complete"; then
19786       FOUND_MAKE="$new_complete"
19787       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
19788 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
19789     fi
19790   fi
19791 
19792         fi
19793       fi
19794     fi
19795   fi
19796 
19797         if test "x$FOUND_MAKE" = x; then
19798           for ac_prog in make
19799 do
19800   # Extract the first word of "$ac_prog", so it can be a program name with args.
19801 set dummy $ac_prog; ac_word=$2
19802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19803 $as_echo_n "checking for $ac_word... " >&6; }
19804 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then :
19805   $as_echo_n "(cached) " >&6
19806 else
19807   case $CHECK_TOOLSDIR_MAKE in
19808   [\\/]* | ?:[\\/]*)
19809   ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
19810   ;;
19811   *)
19812   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19813 for as_dir in $PATH
19814 do
19815   IFS=$as_save_IFS
19816   test -z "$as_dir" && as_dir=.
19817     for ac_exec_ext in '' $ac_executable_extensions; do
19818   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19819     ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
19820     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19821     break 2
19822   fi
19823 done
19824   done
19825 IFS=$as_save_IFS
19826 
19827   ;;
19828 esac
19829 fi
19830 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE
19831 if test -n "$CHECK_TOOLSDIR_MAKE"; then
19832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5
19833 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; }
19834 else
19835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19836 $as_echo "no" >&6; }
19837 fi
19838 
19839 
19840   test -n "$CHECK_TOOLSDIR_MAKE" && break
19841 done
19842 
19843 
19844   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE""
19845   DESCRIPTION="make in tools-dir"
19846 
19847   # On Cygwin, we require a newer version of make than on other platforms
19848   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19849     MAKE_VERSION_EXPR="-e 4\."
19850     MAKE_REQUIRED_VERSION="4.0"
19851    else
19852     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
19853     MAKE_REQUIRED_VERSION="3.81"
19854   fi
19855 
19856   if test "x$MAKE_CANDIDATE" != x; then
19857     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
19858 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
19859     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
19860     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
19861     if test "x$IS_GNU_MAKE" = x; then
19862       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
19863 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
19864     else
19865       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
19866       if test "x$IS_MODERN_MAKE" = x; then
19867         { $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
19868 $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;}
19869       else
19870         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
19871           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19872             MAKE_EXPECTED_ENV='cygwin'
19873           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19874             MAKE_EXPECTED_ENV='msys'
19875           else
19876             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
19877           fi
19878           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
19879           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
19880         else
19881           # Not relevant for non-Windows
19882           IS_MAKE_CORRECT_ENV=true
19883         fi
19884         if test "x$IS_MAKE_CORRECT_ENV" = x; then
19885           { $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
19886 $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;}
19887         else
19888           FOUND_MAKE=$MAKE_CANDIDATE
19889 
19890   # Only process if variable expands to non-empty
19891 
19892   if test "x$FOUND_MAKE" != x; then
19893     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19894 
19895   # First separate the path from the arguments. This will split at the first
19896   # space.
19897   complete="$FOUND_MAKE"
19898   path="${complete%% *}"
19899   tmp="$complete EOL"
19900   arguments="${tmp#* }"
19901 
19902   # Input might be given as Windows format, start by converting to
19903   # unix format.
19904   new_path=`$CYGPATH -u "$path"`
19905 
19906   # Now try to locate executable using which
19907   new_path=`$WHICH "$new_path" 2> /dev/null`
19908   # bat and cmd files are not always considered executable in cygwin causing which
19909   # to not find them
19910   if test "x$new_path" = x \
19911       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19912       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19913     new_path=`$CYGPATH -u "$path"`
19914   fi
19915   if test "x$new_path" = x; then
19916     # Oops. Which didn't find the executable.
19917     # The splitting of arguments from the executable at a space might have been incorrect,
19918     # since paths with space are more likely in Windows. Give it another try with the whole
19919     # argument.
19920     path="$complete"
19921     arguments="EOL"
19922     new_path=`$CYGPATH -u "$path"`
19923     new_path=`$WHICH "$new_path" 2> /dev/null`
19924     # bat and cmd files are not always considered executable in cygwin causing which
19925     # to not find them
19926     if test "x$new_path" = x \
19927         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19928         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19929       new_path=`$CYGPATH -u "$path"`
19930     fi
19931     if test "x$new_path" = x; then
19932       # It's still not found. Now this is an unrecoverable error.
19933       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19934 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19935       has_space=`$ECHO "$complete" | $GREP " "`
19936       if test "x$has_space" != x; then
19937         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19938 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19939       fi
19940       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19941     fi
19942   fi
19943 
19944   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19945   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19946   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19947   # "foo.exe" is OK but "foo" is an error.
19948   #
19949   # This test is therefore slightly more accurate than "test -f" to check for file presence.
19950   # It is also a way to make sure we got the proper file name for the real test later on.
19951   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19952   if test "x$test_shortpath" = x; then
19953     # Short path failed, file does not exist as specified.
19954     # Try adding .exe or .cmd
19955     if test -f "${new_path}.exe"; then
19956       input_to_shortpath="${new_path}.exe"
19957     elif test -f "${new_path}.cmd"; then
19958       input_to_shortpath="${new_path}.cmd"
19959     else
19960       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
19961 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
19962       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
19963 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
19964       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19965     fi
19966   else
19967     input_to_shortpath="$new_path"
19968   fi
19969 
19970   # Call helper function which possibly converts this using DOS-style short mode.
19971   # If so, the updated path is stored in $new_path.
19972   new_path="$input_to_shortpath"
19973 
19974   input_path="$input_to_shortpath"
19975   # Check if we need to convert this using DOS-style short mode. If the path
19976   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19977   # take no chances and rewrite it.
19978   # Note: m4 eats our [], so we need to use [ and ] instead.
19979   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19980   if test "x$has_forbidden_chars" != x; then
19981     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19982     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19983     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19984     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19985       # Going to short mode and back again did indeed matter. Since short mode is
19986       # case insensitive, let's make it lowercase to improve readability.
19987       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19988       # Now convert it back to Unix-style (cygpath)
19989       input_path=`$CYGPATH -u "$shortmode_path"`
19990       new_path="$input_path"
19991     fi
19992   fi
19993 
19994   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
19995   if test "x$test_cygdrive_prefix" = x; then
19996     # As a simple fix, exclude /usr/bin since it's not a real path.
19997     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
19998       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
19999       # a path prefixed by /cygdrive for fixpath to work.
20000       new_path="$CYGWIN_ROOT_PATH$input_path"
20001     fi
20002   fi
20003 
20004   # remove trailing .exe if any
20005   new_path="${new_path/%.exe/}"
20006 
20007     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20008 
20009   # First separate the path from the arguments. This will split at the first
20010   # space.
20011   complete="$FOUND_MAKE"
20012   path="${complete%% *}"
20013   tmp="$complete EOL"
20014   arguments="${tmp#* }"
20015 
20016   # Input might be given as Windows format, start by converting to
20017   # unix format.
20018   new_path="$path"
20019 
20020   windows_path="$new_path"
20021   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20022     unix_path=`$CYGPATH -u "$windows_path"`
20023     new_path="$unix_path"
20024   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20025     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20026     new_path="$unix_path"
20027   fi
20028 
20029 
20030   # Now try to locate executable using which
20031   new_path=`$WHICH "$new_path" 2> /dev/null`
20032 
20033   if test "x$new_path" = x; then
20034     # Oops. Which didn't find the executable.
20035     # The splitting of arguments from the executable at a space might have been incorrect,
20036     # since paths with space are more likely in Windows. Give it another try with the whole
20037     # argument.
20038     path="$complete"
20039     arguments="EOL"
20040     new_path="$path"
20041 
20042   windows_path="$new_path"
20043   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20044     unix_path=`$CYGPATH -u "$windows_path"`
20045     new_path="$unix_path"
20046   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20047     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20048     new_path="$unix_path"
20049   fi
20050 
20051 
20052     new_path=`$WHICH "$new_path" 2> /dev/null`
20053     # bat and cmd files are not always considered executable in MSYS causing which
20054     # to not find them
20055     if test "x$new_path" = x \
20056         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20057         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20058       new_path="$path"
20059 
20060   windows_path="$new_path"
20061   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20062     unix_path=`$CYGPATH -u "$windows_path"`
20063     new_path="$unix_path"
20064   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20065     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20066     new_path="$unix_path"
20067   fi
20068 
20069     fi
20070 
20071     if test "x$new_path" = x; then
20072       # It's still not found. Now this is an unrecoverable error.
20073       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20074 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20075       has_space=`$ECHO "$complete" | $GREP " "`
20076       if test "x$has_space" != x; then
20077         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20078 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20079       fi
20080       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20081     fi
20082   fi
20083 
20084   # Now new_path has a complete unix path to the binary
20085   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
20086     # Keep paths in /bin as-is, but remove trailing .exe if any
20087     new_path="${new_path/%.exe/}"
20088     # Do not save /bin paths to all_fixpath_prefixes!
20089   else
20090     # Not in mixed or Windows style, start by that.
20091     new_path=`cmd //c echo $new_path`
20092 
20093   input_path="$new_path"
20094   # Check if we need to convert this using DOS-style short mode. If the path
20095   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20096   # take no chances and rewrite it.
20097   # Note: m4 eats our [], so we need to use [ and ] instead.
20098   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20099   if test "x$has_forbidden_chars" != x; then
20100     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20101     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20102   fi
20103 
20104     # Output is in $new_path
20105 
20106   windows_path="$new_path"
20107   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20108     unix_path=`$CYGPATH -u "$windows_path"`
20109     new_path="$unix_path"
20110   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20111     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20112     new_path="$unix_path"
20113   fi
20114 
20115     # remove trailing .exe if any
20116     new_path="${new_path/%.exe/}"
20117 
20118     # Save the first 10 bytes of this path to the storage, so fixpath can work.
20119     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20120   fi
20121 
20122     else
20123       # We're on a unix platform. Hooray! :)
20124       # First separate the path from the arguments. This will split at the first
20125       # space.
20126       complete="$FOUND_MAKE"
20127       path="${complete%% *}"
20128       tmp="$complete EOL"
20129       arguments="${tmp#* }"
20130 
20131       # Cannot rely on the command "which" here since it doesn't always work.
20132       is_absolute_path=`$ECHO "$path" | $GREP ^/`
20133       if test -z "$is_absolute_path"; then
20134         # Path to executable is not absolute. Find it.
20135         IFS_save="$IFS"
20136         IFS=:
20137         for p in $PATH; do
20138           if test -f "$p/$path" && test -x "$p/$path"; then
20139             new_path="$p/$path"
20140             break
20141           fi
20142         done
20143         IFS="$IFS_save"
20144       else
20145         # This is an absolute path, we can use it without further modifications.
20146         new_path="$path"
20147       fi
20148 
20149       if test "x$new_path" = x; then
20150         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20151 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20152         has_space=`$ECHO "$complete" | $GREP " "`
20153         if test "x$has_space" != x; then
20154           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
20155 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
20156         fi
20157         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20158       fi
20159     fi
20160 
20161     # Now join together the path and the arguments once again
20162     if test "x$arguments" != xEOL; then
20163       new_complete="$new_path ${arguments% *}"
20164     else
20165       new_complete="$new_path"
20166     fi
20167 
20168     if test "x$complete" != "x$new_complete"; then
20169       FOUND_MAKE="$new_complete"
20170       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
20171 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
20172     fi
20173   fi
20174 
20175         fi
20176       fi
20177     fi
20178   fi
20179 
20180         fi
20181         PATH=$OLD_PATH
20182       fi
20183     fi
20184 
20185     if test "x$FOUND_MAKE" = x; then
20186       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
20187     fi
20188 
20189     else
20190       # If it succeeded, then it was overridden by the user. We will use it
20191       # for the tool.
20192 
20193       # First remove it from the list of overridden variables, so we can test
20194       # for unknown variables in the end.
20195       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
20196 
20197       # Check if we try to supply an empty value
20198       if test "x$MAKE" = x; then
20199         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MAKE= (no value)" >&5
20200 $as_echo "$as_me: Setting user supplied tool MAKE= (no value)" >&6;}
20201         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAKE" >&5
20202 $as_echo_n "checking for MAKE... " >&6; }
20203         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
20204 $as_echo "disabled" >&6; }
20205       else
20206         # Check if the provided tool contains a complete path.
20207         tool_specified="$MAKE"
20208         tool_basename="${tool_specified##*/}"
20209         if test "x$tool_basename" = "x$tool_specified"; then
20210           # A command without a complete path is provided, search $PATH.
20211           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MAKE=$tool_basename" >&5
20212 $as_echo "$as_me: Will search for user supplied tool MAKE=$tool_basename" >&6;}
20213           # Extract the first word of "$tool_basename", so it can be a program name with args.
20214 set dummy $tool_basename; ac_word=$2
20215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20216 $as_echo_n "checking for $ac_word... " >&6; }
20217 if ${ac_cv_path_MAKE+:} false; then :
20218   $as_echo_n "(cached) " >&6
20219 else
20220   case $MAKE in
20221   [\\/]* | ?:[\\/]*)
20222   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
20223   ;;
20224   *)
20225   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20226 for as_dir in $PATH
20227 do
20228   IFS=$as_save_IFS
20229   test -z "$as_dir" && as_dir=.
20230     for ac_exec_ext in '' $ac_executable_extensions; do
20231   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20232     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
20233     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20234     break 2
20235   fi
20236 done
20237   done
20238 IFS=$as_save_IFS
20239 
20240   ;;
20241 esac
20242 fi
20243 MAKE=$ac_cv_path_MAKE
20244 if test -n "$MAKE"; then
20245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
20246 $as_echo "$MAKE" >&6; }
20247 else
20248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20249 $as_echo "no" >&6; }
20250 fi
20251 
20252 
20253           if test "x$MAKE" = x; then
20254             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
20255           fi
20256         else
20257           # Otherwise we believe it is a complete path. Use it as it is.
20258           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MAKE=$tool_specified" >&5
20259 $as_echo "$as_me: Will use user supplied tool MAKE=$tool_specified" >&6;}
20260           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAKE" >&5
20261 $as_echo_n "checking for MAKE... " >&6; }
20262           if test ! -x "$tool_specified"; then
20263             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20264 $as_echo "not found" >&6; }
20265             as_fn_error $? "User supplied tool MAKE=$tool_specified does not exist or is not executable" "$LINENO" 5
20266           fi
20267           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
20268 $as_echo "$tool_specified" >&6; }
20269         fi
20270       fi
20271     fi
20272 
20273     # If MAKE was set by user, verify the version
20274 
20275   MAKE_CANDIDATE=""$MAKE""
20276   DESCRIPTION="user supplied MAKE=$MAKE"
20277 
20278   # On Cygwin, we require a newer version of make than on other platforms
20279   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20280     MAKE_VERSION_EXPR="-e 4\."
20281     MAKE_REQUIRED_VERSION="4.0"
20282    else
20283     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
20284     MAKE_REQUIRED_VERSION="3.81"
20285   fi
20286 
20287   if test "x$MAKE_CANDIDATE" != x; then
20288     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
20289 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
20290     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
20291     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
20292     if test "x$IS_GNU_MAKE" = x; then
20293       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
20294 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
20295     else
20296       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
20297       if test "x$IS_MODERN_MAKE" = x; then
20298         { $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
20299 $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;}
20300       else
20301         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
20302           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20303             MAKE_EXPECTED_ENV='cygwin'
20304           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20305             MAKE_EXPECTED_ENV='msys'
20306           else
20307             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
20308           fi
20309           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
20310           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
20311         else
20312           # Not relevant for non-Windows
20313           IS_MAKE_CORRECT_ENV=true
20314         fi
20315         if test "x$IS_MAKE_CORRECT_ENV" = x; then
20316           { $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
20317 $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;}
20318         else
20319           FOUND_MAKE=$MAKE_CANDIDATE
20320 
20321   # Only process if variable expands to non-empty
20322 
20323   if test "x$FOUND_MAKE" != x; then
20324     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20325 
20326   # First separate the path from the arguments. This will split at the first
20327   # space.
20328   complete="$FOUND_MAKE"
20329   path="${complete%% *}"
20330   tmp="$complete EOL"
20331   arguments="${tmp#* }"
20332 
20333   # Input might be given as Windows format, start by converting to
20334   # unix format.
20335   new_path=`$CYGPATH -u "$path"`
20336 
20337   # Now try to locate executable using which
20338   new_path=`$WHICH "$new_path" 2> /dev/null`
20339   # bat and cmd files are not always considered executable in cygwin causing which
20340   # to not find them
20341   if test "x$new_path" = x \
20342       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20343       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20344     new_path=`$CYGPATH -u "$path"`
20345   fi
20346   if test "x$new_path" = x; then
20347     # Oops. Which didn't find the executable.
20348     # The splitting of arguments from the executable at a space might have been incorrect,
20349     # since paths with space are more likely in Windows. Give it another try with the whole
20350     # argument.
20351     path="$complete"
20352     arguments="EOL"
20353     new_path=`$CYGPATH -u "$path"`
20354     new_path=`$WHICH "$new_path" 2> /dev/null`
20355     # bat and cmd files are not always considered executable in cygwin causing which
20356     # to not find them
20357     if test "x$new_path" = x \
20358         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20359         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20360       new_path=`$CYGPATH -u "$path"`
20361     fi
20362     if test "x$new_path" = x; then
20363       # It's still not found. Now this is an unrecoverable error.
20364       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20365 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20366       has_space=`$ECHO "$complete" | $GREP " "`
20367       if test "x$has_space" != x; then
20368         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20369 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20370       fi
20371       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20372     fi
20373   fi
20374 
20375   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20376   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20377   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20378   # "foo.exe" is OK but "foo" is an error.
20379   #
20380   # This test is therefore slightly more accurate than "test -f" to check for file presence.
20381   # It is also a way to make sure we got the proper file name for the real test later on.
20382   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20383   if test "x$test_shortpath" = x; then
20384     # Short path failed, file does not exist as specified.
20385     # Try adding .exe or .cmd
20386     if test -f "${new_path}.exe"; then
20387       input_to_shortpath="${new_path}.exe"
20388     elif test -f "${new_path}.cmd"; then
20389       input_to_shortpath="${new_path}.cmd"
20390     else
20391       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
20392 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
20393       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
20394 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
20395       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20396     fi
20397   else
20398     input_to_shortpath="$new_path"
20399   fi
20400 
20401   # Call helper function which possibly converts this using DOS-style short mode.
20402   # If so, the updated path is stored in $new_path.
20403   new_path="$input_to_shortpath"
20404 
20405   input_path="$input_to_shortpath"
20406   # Check if we need to convert this using DOS-style short mode. If the path
20407   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20408   # take no chances and rewrite it.
20409   # Note: m4 eats our [], so we need to use [ and ] instead.
20410   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20411   if test "x$has_forbidden_chars" != x; then
20412     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20413     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20414     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20415     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20416       # Going to short mode and back again did indeed matter. Since short mode is
20417       # case insensitive, let's make it lowercase to improve readability.
20418       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20419       # Now convert it back to Unix-style (cygpath)
20420       input_path=`$CYGPATH -u "$shortmode_path"`
20421       new_path="$input_path"
20422     fi
20423   fi
20424 
20425   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20426   if test "x$test_cygdrive_prefix" = x; then
20427     # As a simple fix, exclude /usr/bin since it's not a real path.
20428     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
20429       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20430       # a path prefixed by /cygdrive for fixpath to work.
20431       new_path="$CYGWIN_ROOT_PATH$input_path"
20432     fi
20433   fi
20434 
20435   # remove trailing .exe if any
20436   new_path="${new_path/%.exe/}"
20437 
20438     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20439 
20440   # First separate the path from the arguments. This will split at the first
20441   # space.
20442   complete="$FOUND_MAKE"
20443   path="${complete%% *}"
20444   tmp="$complete EOL"
20445   arguments="${tmp#* }"
20446 
20447   # Input might be given as Windows format, start by converting to
20448   # unix format.
20449   new_path="$path"
20450 
20451   windows_path="$new_path"
20452   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20453     unix_path=`$CYGPATH -u "$windows_path"`
20454     new_path="$unix_path"
20455   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20456     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20457     new_path="$unix_path"
20458   fi
20459 
20460 
20461   # Now try to locate executable using which
20462   new_path=`$WHICH "$new_path" 2> /dev/null`
20463 
20464   if test "x$new_path" = x; then
20465     # Oops. Which didn't find the executable.
20466     # The splitting of arguments from the executable at a space might have been incorrect,
20467     # since paths with space are more likely in Windows. Give it another try with the whole
20468     # argument.
20469     path="$complete"
20470     arguments="EOL"
20471     new_path="$path"
20472 
20473   windows_path="$new_path"
20474   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20475     unix_path=`$CYGPATH -u "$windows_path"`
20476     new_path="$unix_path"
20477   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20478     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20479     new_path="$unix_path"
20480   fi
20481 
20482 
20483     new_path=`$WHICH "$new_path" 2> /dev/null`
20484     # bat and cmd files are not always considered executable in MSYS causing which
20485     # to not find them
20486     if test "x$new_path" = x \
20487         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20488         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20489       new_path="$path"
20490 
20491   windows_path="$new_path"
20492   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20493     unix_path=`$CYGPATH -u "$windows_path"`
20494     new_path="$unix_path"
20495   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20496     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20497     new_path="$unix_path"
20498   fi
20499 
20500     fi
20501 
20502     if test "x$new_path" = x; then
20503       # It's still not found. Now this is an unrecoverable error.
20504       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20505 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20506       has_space=`$ECHO "$complete" | $GREP " "`
20507       if test "x$has_space" != x; then
20508         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20509 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20510       fi
20511       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20512     fi
20513   fi
20514 
20515   # Now new_path has a complete unix path to the binary
20516   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
20517     # Keep paths in /bin as-is, but remove trailing .exe if any
20518     new_path="${new_path/%.exe/}"
20519     # Do not save /bin paths to all_fixpath_prefixes!
20520   else
20521     # Not in mixed or Windows style, start by that.
20522     new_path=`cmd //c echo $new_path`
20523 
20524   input_path="$new_path"
20525   # Check if we need to convert this using DOS-style short mode. If the path
20526   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20527   # take no chances and rewrite it.
20528   # Note: m4 eats our [], so we need to use [ and ] instead.
20529   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20530   if test "x$has_forbidden_chars" != x; then
20531     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20532     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20533   fi
20534 
20535     # Output is in $new_path
20536 
20537   windows_path="$new_path"
20538   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20539     unix_path=`$CYGPATH -u "$windows_path"`
20540     new_path="$unix_path"
20541   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20542     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20543     new_path="$unix_path"
20544   fi
20545 
20546     # remove trailing .exe if any
20547     new_path="${new_path/%.exe/}"
20548 
20549     # Save the first 10 bytes of this path to the storage, so fixpath can work.
20550     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20551   fi
20552 
20553     else
20554       # We're on a unix platform. Hooray! :)
20555       # First separate the path from the arguments. This will split at the first
20556       # space.
20557       complete="$FOUND_MAKE"
20558       path="${complete%% *}"
20559       tmp="$complete EOL"
20560       arguments="${tmp#* }"
20561 
20562       # Cannot rely on the command "which" here since it doesn't always work.
20563       is_absolute_path=`$ECHO "$path" | $GREP ^/`
20564       if test -z "$is_absolute_path"; then
20565         # Path to executable is not absolute. Find it.
20566         IFS_save="$IFS"
20567         IFS=:
20568         for p in $PATH; do
20569           if test -f "$p/$path" && test -x "$p/$path"; then
20570             new_path="$p/$path"
20571             break
20572           fi
20573         done
20574         IFS="$IFS_save"
20575       else
20576         # This is an absolute path, we can use it without further modifications.
20577         new_path="$path"
20578       fi
20579 
20580       if test "x$new_path" = x; then
20581         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20582 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20583         has_space=`$ECHO "$complete" | $GREP " "`
20584         if test "x$has_space" != x; then
20585           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
20586 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
20587         fi
20588         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20589       fi
20590     fi
20591 
20592     # Now join together the path and the arguments once again
20593     if test "x$arguments" != xEOL; then
20594       new_complete="$new_path ${arguments% *}"
20595     else
20596       new_complete="$new_path"
20597     fi
20598 
20599     if test "x$complete" != "x$new_complete"; then
20600       FOUND_MAKE="$new_complete"
20601       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
20602 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
20603     fi
20604   fi
20605 
20606         fi
20607       fi
20608     fi
20609   fi
20610 
20611     if test "x$FOUND_MAKE" = x; then
20612       as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make $MAKE_REQUIRED_VERSION or newer." "$LINENO" 5
20613     fi
20614 
20615   fi
20616 
20617 
20618   MAKE=$FOUND_MAKE
20619 
20620   { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5
20621 $as_echo "$as_me: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;}
20622 
20623 
20624   # Check if make supports the output sync option and if so, setup using it.
20625   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if make --output-sync is supported" >&5
20626 $as_echo_n "checking if make --output-sync is supported... " >&6; }
20627   if $MAKE --version -O > /dev/null 2>&1; then
20628     OUTPUT_SYNC_SUPPORTED=true
20629     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20630 $as_echo "yes" >&6; }
20631     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for output-sync value" >&5
20632 $as_echo_n "checking for output-sync value... " >&6; }
20633 
20634 # Check whether --with-output-sync was given.
20635 if test "${with_output_sync+set}" = set; then :
20636   withval=$with_output_sync; OUTPUT_SYNC=$with_output_sync
20637 fi
20638 
20639     if test "x$OUTPUT_SYNC" = "x"; then
20640       OUTPUT_SYNC=none
20641     fi
20642     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_SYNC" >&5
20643 $as_echo "$OUTPUT_SYNC" >&6; }
20644     if ! $MAKE --version -O$OUTPUT_SYNC > /dev/null 2>&1; then
20645       as_fn_error $? "Make did not the support the value $OUTPUT_SYNC as output sync type." "$LINENO" 5
20646     fi
20647   else
20648     OUTPUT_SYNC_SUPPORTED=false
20649     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20650 $as_echo "no" >&6; }
20651   fi
20652 
20653 
20654 
20655 
20656 
20657 
20658   # Test if find supports -delete
20659   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5
20660 $as_echo_n "checking if find supports -delete... " >&6; }
20661   FIND_DELETE="-delete"
20662 
20663   DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?)
20664 
20665   echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete
20666 
20667   TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1`
20668   if test -f $DELETEDIR/TestIfFindSupportsDelete; then
20669     # No, it does not.
20670     rm $DELETEDIR/TestIfFindSupportsDelete
20671     if test "x$OPENJDK_TARGET_OS" = "xaix"; then
20672       # AIX 'find' is buggy if called with '-exec {} \+' and an empty file list
20673       FIND_DELETE="-print | xargs rm"
20674     else
20675       FIND_DELETE="-exec rm \{\} \+"
20676     fi
20677     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20678 $as_echo "no" >&6; }
20679   else
20680     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20681 $as_echo "yes" >&6; }
20682   fi
20683   rmdir $DELETEDIR
20684 
20685 
20686 
20687   # These tools might not be installed by default,
20688   # need hint on how to install them.
20689 
20690 
20691 
20692   # Publish this variable in the help.
20693 
20694 
20695   if [ -z "${UNZIP+x}" ]; then
20696     # The variable is not set by user, try to locate tool using the code snippet
20697     for ac_prog in unzip
20698 do
20699   # Extract the first word of "$ac_prog", so it can be a program name with args.
20700 set dummy $ac_prog; ac_word=$2
20701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20702 $as_echo_n "checking for $ac_word... " >&6; }
20703 if ${ac_cv_path_UNZIP+:} false; then :
20704   $as_echo_n "(cached) " >&6
20705 else
20706   case $UNZIP in
20707   [\\/]* | ?:[\\/]*)
20708   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
20709   ;;
20710   *)
20711   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20712 for as_dir in $PATH
20713 do
20714   IFS=$as_save_IFS
20715   test -z "$as_dir" && as_dir=.
20716     for ac_exec_ext in '' $ac_executable_extensions; do
20717   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20718     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
20719     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20720     break 2
20721   fi
20722 done
20723   done
20724 IFS=$as_save_IFS
20725 
20726   ;;
20727 esac
20728 fi
20729 UNZIP=$ac_cv_path_UNZIP
20730 if test -n "$UNZIP"; then
20731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
20732 $as_echo "$UNZIP" >&6; }
20733 else
20734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20735 $as_echo "no" >&6; }
20736 fi
20737 
20738 
20739   test -n "$UNZIP" && break
20740 done
20741 
20742   else
20743     # The variable is set, but is it from the command line or the environment?
20744 
20745     # Try to remove the string !UNZIP! from our list.
20746     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/}
20747     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
20748       # If it failed, the variable was not from the command line. Ignore it,
20749       # but warn the user (except for BASH, which is always set by the calling BASH).
20750       if test "xUNZIP" != xBASH; then
20751         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5
20752 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;}
20753       fi
20754       # Try to locate tool using the code snippet
20755       for ac_prog in unzip
20756 do
20757   # Extract the first word of "$ac_prog", so it can be a program name with args.
20758 set dummy $ac_prog; ac_word=$2
20759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20760 $as_echo_n "checking for $ac_word... " >&6; }
20761 if ${ac_cv_path_UNZIP+:} false; then :
20762   $as_echo_n "(cached) " >&6
20763 else
20764   case $UNZIP in
20765   [\\/]* | ?:[\\/]*)
20766   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
20767   ;;
20768   *)
20769   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20770 for as_dir in $PATH
20771 do
20772   IFS=$as_save_IFS
20773   test -z "$as_dir" && as_dir=.
20774     for ac_exec_ext in '' $ac_executable_extensions; do
20775   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20776     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
20777     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20778     break 2
20779   fi
20780 done
20781   done
20782 IFS=$as_save_IFS
20783 
20784   ;;
20785 esac
20786 fi
20787 UNZIP=$ac_cv_path_UNZIP
20788 if test -n "$UNZIP"; then
20789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
20790 $as_echo "$UNZIP" >&6; }
20791 else
20792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20793 $as_echo "no" >&6; }
20794 fi
20795 
20796 
20797   test -n "$UNZIP" && break
20798 done
20799 
20800     else
20801       # If it succeeded, then it was overridden by the user. We will use it
20802       # for the tool.
20803 
20804       # First remove it from the list of overridden variables, so we can test
20805       # for unknown variables in the end.
20806       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
20807 
20808       # Check if we try to supply an empty value
20809       if test "x$UNZIP" = x; then
20810         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNZIP= (no value)" >&5
20811 $as_echo "$as_me: Setting user supplied tool UNZIP= (no value)" >&6;}
20812         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5
20813 $as_echo_n "checking for UNZIP... " >&6; }
20814         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
20815 $as_echo "disabled" >&6; }
20816       else
20817         # Check if the provided tool contains a complete path.
20818         tool_specified="$UNZIP"
20819         tool_basename="${tool_specified##*/}"
20820         if test "x$tool_basename" = "x$tool_specified"; then
20821           # A command without a complete path is provided, search $PATH.
20822           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5
20823 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;}
20824           # Extract the first word of "$tool_basename", so it can be a program name with args.
20825 set dummy $tool_basename; ac_word=$2
20826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20827 $as_echo_n "checking for $ac_word... " >&6; }
20828 if ${ac_cv_path_UNZIP+:} false; then :
20829   $as_echo_n "(cached) " >&6
20830 else
20831   case $UNZIP in
20832   [\\/]* | ?:[\\/]*)
20833   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
20834   ;;
20835   *)
20836   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20837 for as_dir in $PATH
20838 do
20839   IFS=$as_save_IFS
20840   test -z "$as_dir" && as_dir=.
20841     for ac_exec_ext in '' $ac_executable_extensions; do
20842   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20843     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
20844     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20845     break 2
20846   fi
20847 done
20848   done
20849 IFS=$as_save_IFS
20850 
20851   ;;
20852 esac
20853 fi
20854 UNZIP=$ac_cv_path_UNZIP
20855 if test -n "$UNZIP"; then
20856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
20857 $as_echo "$UNZIP" >&6; }
20858 else
20859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20860 $as_echo "no" >&6; }
20861 fi
20862 
20863 
20864           if test "x$UNZIP" = x; then
20865             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
20866           fi
20867         else
20868           # Otherwise we believe it is a complete path. Use it as it is.
20869           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5
20870 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;}
20871           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5
20872 $as_echo_n "checking for UNZIP... " >&6; }
20873           if test ! -x "$tool_specified"; then
20874             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20875 $as_echo "not found" >&6; }
20876             as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
20877           fi
20878           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
20879 $as_echo "$tool_specified" >&6; }
20880         fi
20881       fi
20882     fi
20883 
20884   fi
20885 
20886 
20887 
20888   if test "x$UNZIP" = x; then
20889     as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5
20890   fi
20891 
20892 
20893 
20894 
20895 
20896   # Publish this variable in the help.
20897 
20898 
20899   if [ -z "${ZIP+x}" ]; then
20900     # The variable is not set by user, try to locate tool using the code snippet
20901     for ac_prog in zip
20902 do
20903   # Extract the first word of "$ac_prog", so it can be a program name with args.
20904 set dummy $ac_prog; ac_word=$2
20905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20906 $as_echo_n "checking for $ac_word... " >&6; }
20907 if ${ac_cv_path_ZIP+:} false; then :
20908   $as_echo_n "(cached) " >&6
20909 else
20910   case $ZIP in
20911   [\\/]* | ?:[\\/]*)
20912   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
20913   ;;
20914   *)
20915   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20916 for as_dir in $PATH
20917 do
20918   IFS=$as_save_IFS
20919   test -z "$as_dir" && as_dir=.
20920     for ac_exec_ext in '' $ac_executable_extensions; do
20921   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20922     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
20923     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20924     break 2
20925   fi
20926 done
20927   done
20928 IFS=$as_save_IFS
20929 
20930   ;;
20931 esac
20932 fi
20933 ZIP=$ac_cv_path_ZIP
20934 if test -n "$ZIP"; then
20935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
20936 $as_echo "$ZIP" >&6; }
20937 else
20938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20939 $as_echo "no" >&6; }
20940 fi
20941 
20942 
20943   test -n "$ZIP" && break
20944 done
20945 
20946   else
20947     # The variable is set, but is it from the command line or the environment?
20948 
20949     # Try to remove the string !ZIP! from our list.
20950     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIP!/}
20951     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
20952       # If it failed, the variable was not from the command line. Ignore it,
20953       # but warn the user (except for BASH, which is always set by the calling BASH).
20954       if test "xZIP" != xBASH; then
20955         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&5
20956 $as_echo "$as_me: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&2;}
20957       fi
20958       # Try to locate tool using the code snippet
20959       for ac_prog in zip
20960 do
20961   # Extract the first word of "$ac_prog", so it can be a program name with args.
20962 set dummy $ac_prog; ac_word=$2
20963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20964 $as_echo_n "checking for $ac_word... " >&6; }
20965 if ${ac_cv_path_ZIP+:} false; then :
20966   $as_echo_n "(cached) " >&6
20967 else
20968   case $ZIP in
20969   [\\/]* | ?:[\\/]*)
20970   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
20971   ;;
20972   *)
20973   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20974 for as_dir in $PATH
20975 do
20976   IFS=$as_save_IFS
20977   test -z "$as_dir" && as_dir=.
20978     for ac_exec_ext in '' $ac_executable_extensions; do
20979   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20980     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
20981     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20982     break 2
20983   fi
20984 done
20985   done
20986 IFS=$as_save_IFS
20987 
20988   ;;
20989 esac
20990 fi
20991 ZIP=$ac_cv_path_ZIP
20992 if test -n "$ZIP"; then
20993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
20994 $as_echo "$ZIP" >&6; }
20995 else
20996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20997 $as_echo "no" >&6; }
20998 fi
20999 
21000 
21001   test -n "$ZIP" && break
21002 done
21003 
21004     else
21005       # If it succeeded, then it was overridden by the user. We will use it
21006       # for the tool.
21007 
21008       # First remove it from the list of overridden variables, so we can test
21009       # for unknown variables in the end.
21010       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21011 
21012       # Check if we try to supply an empty value
21013       if test "x$ZIP" = x; then
21014         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ZIP= (no value)" >&5
21015 $as_echo "$as_me: Setting user supplied tool ZIP= (no value)" >&6;}
21016         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5
21017 $as_echo_n "checking for ZIP... " >&6; }
21018         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21019 $as_echo "disabled" >&6; }
21020       else
21021         # Check if the provided tool contains a complete path.
21022         tool_specified="$ZIP"
21023         tool_basename="${tool_specified##*/}"
21024         if test "x$tool_basename" = "x$tool_specified"; then
21025           # A command without a complete path is provided, search $PATH.
21026           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIP=$tool_basename" >&5
21027 $as_echo "$as_me: Will search for user supplied tool ZIP=$tool_basename" >&6;}
21028           # Extract the first word of "$tool_basename", so it can be a program name with args.
21029 set dummy $tool_basename; ac_word=$2
21030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21031 $as_echo_n "checking for $ac_word... " >&6; }
21032 if ${ac_cv_path_ZIP+:} false; then :
21033   $as_echo_n "(cached) " >&6
21034 else
21035   case $ZIP in
21036   [\\/]* | ?:[\\/]*)
21037   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
21038   ;;
21039   *)
21040   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21041 for as_dir in $PATH
21042 do
21043   IFS=$as_save_IFS
21044   test -z "$as_dir" && as_dir=.
21045     for ac_exec_ext in '' $ac_executable_extensions; do
21046   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21047     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
21048     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21049     break 2
21050   fi
21051 done
21052   done
21053 IFS=$as_save_IFS
21054 
21055   ;;
21056 esac
21057 fi
21058 ZIP=$ac_cv_path_ZIP
21059 if test -n "$ZIP"; then
21060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
21061 $as_echo "$ZIP" >&6; }
21062 else
21063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21064 $as_echo "no" >&6; }
21065 fi
21066 
21067 
21068           if test "x$ZIP" = x; then
21069             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21070           fi
21071         else
21072           # Otherwise we believe it is a complete path. Use it as it is.
21073           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIP=$tool_specified" >&5
21074 $as_echo "$as_me: Will use user supplied tool ZIP=$tool_specified" >&6;}
21075           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5
21076 $as_echo_n "checking for ZIP... " >&6; }
21077           if test ! -x "$tool_specified"; then
21078             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21079 $as_echo "not found" >&6; }
21080             as_fn_error $? "User supplied tool ZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
21081           fi
21082           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21083 $as_echo "$tool_specified" >&6; }
21084         fi
21085       fi
21086     fi
21087 
21088   fi
21089 
21090 
21091 
21092   if test "x$ZIP" = x; then
21093     as_fn_error $? "Could not find required tool for ZIP" "$LINENO" 5
21094   fi
21095 
21096 
21097 
21098   # Non-required basic tools
21099 
21100 
21101 
21102   # Publish this variable in the help.
21103 
21104 
21105   if [ -z "${LDD+x}" ]; then
21106     # The variable is not set by user, try to locate tool using the code snippet
21107     for ac_prog in ldd
21108 do
21109   # Extract the first word of "$ac_prog", so it can be a program name with args.
21110 set dummy $ac_prog; ac_word=$2
21111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21112 $as_echo_n "checking for $ac_word... " >&6; }
21113 if ${ac_cv_path_LDD+:} false; then :
21114   $as_echo_n "(cached) " >&6
21115 else
21116   case $LDD in
21117   [\\/]* | ?:[\\/]*)
21118   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
21119   ;;
21120   *)
21121   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21122 for as_dir in $PATH
21123 do
21124   IFS=$as_save_IFS
21125   test -z "$as_dir" && as_dir=.
21126     for ac_exec_ext in '' $ac_executable_extensions; do
21127   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21128     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
21129     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21130     break 2
21131   fi
21132 done
21133   done
21134 IFS=$as_save_IFS
21135 
21136   ;;
21137 esac
21138 fi
21139 LDD=$ac_cv_path_LDD
21140 if test -n "$LDD"; then
21141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
21142 $as_echo "$LDD" >&6; }
21143 else
21144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21145 $as_echo "no" >&6; }
21146 fi
21147 
21148 
21149   test -n "$LDD" && break
21150 done
21151 
21152   else
21153     # The variable is set, but is it from the command line or the environment?
21154 
21155     # Try to remove the string !LDD! from our list.
21156     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/}
21157     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21158       # If it failed, the variable was not from the command line. Ignore it,
21159       # but warn the user (except for BASH, which is always set by the calling BASH).
21160       if test "xLDD" != xBASH; then
21161         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5
21162 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;}
21163       fi
21164       # Try to locate tool using the code snippet
21165       for ac_prog in ldd
21166 do
21167   # Extract the first word of "$ac_prog", so it can be a program name with args.
21168 set dummy $ac_prog; ac_word=$2
21169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21170 $as_echo_n "checking for $ac_word... " >&6; }
21171 if ${ac_cv_path_LDD+:} false; then :
21172   $as_echo_n "(cached) " >&6
21173 else
21174   case $LDD in
21175   [\\/]* | ?:[\\/]*)
21176   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
21177   ;;
21178   *)
21179   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21180 for as_dir in $PATH
21181 do
21182   IFS=$as_save_IFS
21183   test -z "$as_dir" && as_dir=.
21184     for ac_exec_ext in '' $ac_executable_extensions; do
21185   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21186     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
21187     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21188     break 2
21189   fi
21190 done
21191   done
21192 IFS=$as_save_IFS
21193 
21194   ;;
21195 esac
21196 fi
21197 LDD=$ac_cv_path_LDD
21198 if test -n "$LDD"; then
21199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
21200 $as_echo "$LDD" >&6; }
21201 else
21202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21203 $as_echo "no" >&6; }
21204 fi
21205 
21206 
21207   test -n "$LDD" && break
21208 done
21209 
21210     else
21211       # If it succeeded, then it was overridden by the user. We will use it
21212       # for the tool.
21213 
21214       # First remove it from the list of overridden variables, so we can test
21215       # for unknown variables in the end.
21216       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21217 
21218       # Check if we try to supply an empty value
21219       if test "x$LDD" = x; then
21220         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LDD= (no value)" >&5
21221 $as_echo "$as_me: Setting user supplied tool LDD= (no value)" >&6;}
21222         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5
21223 $as_echo_n "checking for LDD... " >&6; }
21224         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21225 $as_echo "disabled" >&6; }
21226       else
21227         # Check if the provided tool contains a complete path.
21228         tool_specified="$LDD"
21229         tool_basename="${tool_specified##*/}"
21230         if test "x$tool_basename" = "x$tool_specified"; then
21231           # A command without a complete path is provided, search $PATH.
21232           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5
21233 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;}
21234           # Extract the first word of "$tool_basename", so it can be a program name with args.
21235 set dummy $tool_basename; ac_word=$2
21236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21237 $as_echo_n "checking for $ac_word... " >&6; }
21238 if ${ac_cv_path_LDD+:} false; then :
21239   $as_echo_n "(cached) " >&6
21240 else
21241   case $LDD in
21242   [\\/]* | ?:[\\/]*)
21243   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
21244   ;;
21245   *)
21246   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21247 for as_dir in $PATH
21248 do
21249   IFS=$as_save_IFS
21250   test -z "$as_dir" && as_dir=.
21251     for ac_exec_ext in '' $ac_executable_extensions; do
21252   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21253     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
21254     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21255     break 2
21256   fi
21257 done
21258   done
21259 IFS=$as_save_IFS
21260 
21261   ;;
21262 esac
21263 fi
21264 LDD=$ac_cv_path_LDD
21265 if test -n "$LDD"; then
21266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
21267 $as_echo "$LDD" >&6; }
21268 else
21269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21270 $as_echo "no" >&6; }
21271 fi
21272 
21273 
21274           if test "x$LDD" = x; then
21275             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21276           fi
21277         else
21278           # Otherwise we believe it is a complete path. Use it as it is.
21279           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5
21280 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;}
21281           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5
21282 $as_echo_n "checking for LDD... " >&6; }
21283           if test ! -x "$tool_specified"; then
21284             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21285 $as_echo "not found" >&6; }
21286             as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5
21287           fi
21288           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21289 $as_echo "$tool_specified" >&6; }
21290         fi
21291       fi
21292     fi
21293 
21294   fi
21295 
21296 
21297   if test "x$LDD" = "x"; then
21298     # List shared lib dependencies is used for
21299     # debug output and checking for forbidden dependencies.
21300     # We can build without it.
21301     LDD="true"
21302   fi
21303 
21304 
21305   # Publish this variable in the help.
21306 
21307 
21308   if [ -z "${OTOOL+x}" ]; then
21309     # The variable is not set by user, try to locate tool using the code snippet
21310     for ac_prog in otool
21311 do
21312   # Extract the first word of "$ac_prog", so it can be a program name with args.
21313 set dummy $ac_prog; ac_word=$2
21314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21315 $as_echo_n "checking for $ac_word... " >&6; }
21316 if ${ac_cv_path_OTOOL+:} false; then :
21317   $as_echo_n "(cached) " >&6
21318 else
21319   case $OTOOL in
21320   [\\/]* | ?:[\\/]*)
21321   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
21322   ;;
21323   *)
21324   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21325 for as_dir in $PATH
21326 do
21327   IFS=$as_save_IFS
21328   test -z "$as_dir" && as_dir=.
21329     for ac_exec_ext in '' $ac_executable_extensions; do
21330   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21331     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
21332     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21333     break 2
21334   fi
21335 done
21336   done
21337 IFS=$as_save_IFS
21338 
21339   ;;
21340 esac
21341 fi
21342 OTOOL=$ac_cv_path_OTOOL
21343 if test -n "$OTOOL"; then
21344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
21345 $as_echo "$OTOOL" >&6; }
21346 else
21347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21348 $as_echo "no" >&6; }
21349 fi
21350 
21351 
21352   test -n "$OTOOL" && break
21353 done
21354 
21355   else
21356     # The variable is set, but is it from the command line or the environment?
21357 
21358     # Try to remove the string !OTOOL! from our list.
21359     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OTOOL!/}
21360     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21361       # If it failed, the variable was not from the command line. Ignore it,
21362       # but warn the user (except for BASH, which is always set by the calling BASH).
21363       if test "xOTOOL" != xBASH; then
21364         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&5
21365 $as_echo "$as_me: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&2;}
21366       fi
21367       # Try to locate tool using the code snippet
21368       for ac_prog in otool
21369 do
21370   # Extract the first word of "$ac_prog", so it can be a program name with args.
21371 set dummy $ac_prog; ac_word=$2
21372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21373 $as_echo_n "checking for $ac_word... " >&6; }
21374 if ${ac_cv_path_OTOOL+:} false; then :
21375   $as_echo_n "(cached) " >&6
21376 else
21377   case $OTOOL in
21378   [\\/]* | ?:[\\/]*)
21379   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
21380   ;;
21381   *)
21382   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21383 for as_dir in $PATH
21384 do
21385   IFS=$as_save_IFS
21386   test -z "$as_dir" && as_dir=.
21387     for ac_exec_ext in '' $ac_executable_extensions; do
21388   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21389     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
21390     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21391     break 2
21392   fi
21393 done
21394   done
21395 IFS=$as_save_IFS
21396 
21397   ;;
21398 esac
21399 fi
21400 OTOOL=$ac_cv_path_OTOOL
21401 if test -n "$OTOOL"; then
21402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
21403 $as_echo "$OTOOL" >&6; }
21404 else
21405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21406 $as_echo "no" >&6; }
21407 fi
21408 
21409 
21410   test -n "$OTOOL" && break
21411 done
21412 
21413     else
21414       # If it succeeded, then it was overridden by the user. We will use it
21415       # for the tool.
21416 
21417       # First remove it from the list of overridden variables, so we can test
21418       # for unknown variables in the end.
21419       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21420 
21421       # Check if we try to supply an empty value
21422       if test "x$OTOOL" = x; then
21423         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool OTOOL= (no value)" >&5
21424 $as_echo "$as_me: Setting user supplied tool OTOOL= (no value)" >&6;}
21425         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5
21426 $as_echo_n "checking for OTOOL... " >&6; }
21427         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21428 $as_echo "disabled" >&6; }
21429       else
21430         # Check if the provided tool contains a complete path.
21431         tool_specified="$OTOOL"
21432         tool_basename="${tool_specified##*/}"
21433         if test "x$tool_basename" = "x$tool_specified"; then
21434           # A command without a complete path is provided, search $PATH.
21435           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OTOOL=$tool_basename" >&5
21436 $as_echo "$as_me: Will search for user supplied tool OTOOL=$tool_basename" >&6;}
21437           # Extract the first word of "$tool_basename", so it can be a program name with args.
21438 set dummy $tool_basename; ac_word=$2
21439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21440 $as_echo_n "checking for $ac_word... " >&6; }
21441 if ${ac_cv_path_OTOOL+:} false; then :
21442   $as_echo_n "(cached) " >&6
21443 else
21444   case $OTOOL in
21445   [\\/]* | ?:[\\/]*)
21446   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
21447   ;;
21448   *)
21449   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21450 for as_dir in $PATH
21451 do
21452   IFS=$as_save_IFS
21453   test -z "$as_dir" && as_dir=.
21454     for ac_exec_ext in '' $ac_executable_extensions; do
21455   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21456     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
21457     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21458     break 2
21459   fi
21460 done
21461   done
21462 IFS=$as_save_IFS
21463 
21464   ;;
21465 esac
21466 fi
21467 OTOOL=$ac_cv_path_OTOOL
21468 if test -n "$OTOOL"; then
21469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
21470 $as_echo "$OTOOL" >&6; }
21471 else
21472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21473 $as_echo "no" >&6; }
21474 fi
21475 
21476 
21477           if test "x$OTOOL" = x; then
21478             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21479           fi
21480         else
21481           # Otherwise we believe it is a complete path. Use it as it is.
21482           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OTOOL=$tool_specified" >&5
21483 $as_echo "$as_me: Will use user supplied tool OTOOL=$tool_specified" >&6;}
21484           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5
21485 $as_echo_n "checking for OTOOL... " >&6; }
21486           if test ! -x "$tool_specified"; then
21487             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21488 $as_echo "not found" >&6; }
21489             as_fn_error $? "User supplied tool OTOOL=$tool_specified does not exist or is not executable" "$LINENO" 5
21490           fi
21491           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21492 $as_echo "$tool_specified" >&6; }
21493         fi
21494       fi
21495     fi
21496 
21497   fi
21498 
21499 
21500   if test "x$OTOOL" = "x"; then
21501     OTOOL="true"
21502   fi
21503 
21504 
21505   # Publish this variable in the help.
21506 
21507 
21508   if [ -z "${READELF+x}" ]; then
21509     # The variable is not set by user, try to locate tool using the code snippet
21510     for ac_prog in greadelf readelf
21511 do
21512   # Extract the first word of "$ac_prog", so it can be a program name with args.
21513 set dummy $ac_prog; ac_word=$2
21514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21515 $as_echo_n "checking for $ac_word... " >&6; }
21516 if ${ac_cv_path_READELF+:} false; then :
21517   $as_echo_n "(cached) " >&6
21518 else
21519   case $READELF in
21520   [\\/]* | ?:[\\/]*)
21521   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
21522   ;;
21523   *)
21524   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21525 for as_dir in $PATH
21526 do
21527   IFS=$as_save_IFS
21528   test -z "$as_dir" && as_dir=.
21529     for ac_exec_ext in '' $ac_executable_extensions; do
21530   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21531     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
21532     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21533     break 2
21534   fi
21535 done
21536   done
21537 IFS=$as_save_IFS
21538 
21539   ;;
21540 esac
21541 fi
21542 READELF=$ac_cv_path_READELF
21543 if test -n "$READELF"; then
21544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
21545 $as_echo "$READELF" >&6; }
21546 else
21547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21548 $as_echo "no" >&6; }
21549 fi
21550 
21551 
21552   test -n "$READELF" && break
21553 done
21554 
21555   else
21556     # The variable is set, but is it from the command line or the environment?
21557 
21558     # Try to remove the string !READELF! from our list.
21559     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/}
21560     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21561       # If it failed, the variable was not from the command line. Ignore it,
21562       # but warn the user (except for BASH, which is always set by the calling BASH).
21563       if test "xREADELF" != xBASH; then
21564         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5
21565 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;}
21566       fi
21567       # Try to locate tool using the code snippet
21568       for ac_prog in greadelf readelf
21569 do
21570   # Extract the first word of "$ac_prog", so it can be a program name with args.
21571 set dummy $ac_prog; ac_word=$2
21572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21573 $as_echo_n "checking for $ac_word... " >&6; }
21574 if ${ac_cv_path_READELF+:} false; then :
21575   $as_echo_n "(cached) " >&6
21576 else
21577   case $READELF in
21578   [\\/]* | ?:[\\/]*)
21579   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
21580   ;;
21581   *)
21582   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21583 for as_dir in $PATH
21584 do
21585   IFS=$as_save_IFS
21586   test -z "$as_dir" && as_dir=.
21587     for ac_exec_ext in '' $ac_executable_extensions; do
21588   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21589     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
21590     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21591     break 2
21592   fi
21593 done
21594   done
21595 IFS=$as_save_IFS
21596 
21597   ;;
21598 esac
21599 fi
21600 READELF=$ac_cv_path_READELF
21601 if test -n "$READELF"; then
21602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
21603 $as_echo "$READELF" >&6; }
21604 else
21605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21606 $as_echo "no" >&6; }
21607 fi
21608 
21609 
21610   test -n "$READELF" && break
21611 done
21612 
21613     else
21614       # If it succeeded, then it was overridden by the user. We will use it
21615       # for the tool.
21616 
21617       # First remove it from the list of overridden variables, so we can test
21618       # for unknown variables in the end.
21619       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21620 
21621       # Check if we try to supply an empty value
21622       if test "x$READELF" = x; then
21623         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool READELF= (no value)" >&5
21624 $as_echo "$as_me: Setting user supplied tool READELF= (no value)" >&6;}
21625         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5
21626 $as_echo_n "checking for READELF... " >&6; }
21627         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21628 $as_echo "disabled" >&6; }
21629       else
21630         # Check if the provided tool contains a complete path.
21631         tool_specified="$READELF"
21632         tool_basename="${tool_specified##*/}"
21633         if test "x$tool_basename" = "x$tool_specified"; then
21634           # A command without a complete path is provided, search $PATH.
21635           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5
21636 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;}
21637           # Extract the first word of "$tool_basename", so it can be a program name with args.
21638 set dummy $tool_basename; ac_word=$2
21639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21640 $as_echo_n "checking for $ac_word... " >&6; }
21641 if ${ac_cv_path_READELF+:} false; then :
21642   $as_echo_n "(cached) " >&6
21643 else
21644   case $READELF in
21645   [\\/]* | ?:[\\/]*)
21646   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
21647   ;;
21648   *)
21649   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21650 for as_dir in $PATH
21651 do
21652   IFS=$as_save_IFS
21653   test -z "$as_dir" && as_dir=.
21654     for ac_exec_ext in '' $ac_executable_extensions; do
21655   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21656     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
21657     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21658     break 2
21659   fi
21660 done
21661   done
21662 IFS=$as_save_IFS
21663 
21664   ;;
21665 esac
21666 fi
21667 READELF=$ac_cv_path_READELF
21668 if test -n "$READELF"; then
21669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
21670 $as_echo "$READELF" >&6; }
21671 else
21672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21673 $as_echo "no" >&6; }
21674 fi
21675 
21676 
21677           if test "x$READELF" = x; then
21678             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21679           fi
21680         else
21681           # Otherwise we believe it is a complete path. Use it as it is.
21682           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5
21683 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;}
21684           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5
21685 $as_echo_n "checking for READELF... " >&6; }
21686           if test ! -x "$tool_specified"; then
21687             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21688 $as_echo "not found" >&6; }
21689             as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5
21690           fi
21691           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21692 $as_echo "$tool_specified" >&6; }
21693         fi
21694       fi
21695     fi
21696 
21697   fi
21698 
21699 
21700 
21701 
21702   # Publish this variable in the help.
21703 
21704 
21705   if [ -z "${HG+x}" ]; then
21706     # The variable is not set by user, try to locate tool using the code snippet
21707     for ac_prog in hg
21708 do
21709   # Extract the first word of "$ac_prog", so it can be a program name with args.
21710 set dummy $ac_prog; ac_word=$2
21711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21712 $as_echo_n "checking for $ac_word... " >&6; }
21713 if ${ac_cv_path_HG+:} false; then :
21714   $as_echo_n "(cached) " >&6
21715 else
21716   case $HG in
21717   [\\/]* | ?:[\\/]*)
21718   ac_cv_path_HG="$HG" # Let the user override the test with a path.
21719   ;;
21720   *)
21721   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21722 for as_dir in $PATH
21723 do
21724   IFS=$as_save_IFS
21725   test -z "$as_dir" && as_dir=.
21726     for ac_exec_ext in '' $ac_executable_extensions; do
21727   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21728     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
21729     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21730     break 2
21731   fi
21732 done
21733   done
21734 IFS=$as_save_IFS
21735 
21736   ;;
21737 esac
21738 fi
21739 HG=$ac_cv_path_HG
21740 if test -n "$HG"; then
21741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
21742 $as_echo "$HG" >&6; }
21743 else
21744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21745 $as_echo "no" >&6; }
21746 fi
21747 
21748 
21749   test -n "$HG" && break
21750 done
21751 
21752   else
21753     # The variable is set, but is it from the command line or the environment?
21754 
21755     # Try to remove the string !HG! from our list.
21756     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/}
21757     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21758       # If it failed, the variable was not from the command line. Ignore it,
21759       # but warn the user (except for BASH, which is always set by the calling BASH).
21760       if test "xHG" != xBASH; then
21761         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5
21762 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;}
21763       fi
21764       # Try to locate tool using the code snippet
21765       for ac_prog in hg
21766 do
21767   # Extract the first word of "$ac_prog", so it can be a program name with args.
21768 set dummy $ac_prog; ac_word=$2
21769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21770 $as_echo_n "checking for $ac_word... " >&6; }
21771 if ${ac_cv_path_HG+:} false; then :
21772   $as_echo_n "(cached) " >&6
21773 else
21774   case $HG in
21775   [\\/]* | ?:[\\/]*)
21776   ac_cv_path_HG="$HG" # Let the user override the test with a path.
21777   ;;
21778   *)
21779   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21780 for as_dir in $PATH
21781 do
21782   IFS=$as_save_IFS
21783   test -z "$as_dir" && as_dir=.
21784     for ac_exec_ext in '' $ac_executable_extensions; do
21785   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21786     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
21787     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21788     break 2
21789   fi
21790 done
21791   done
21792 IFS=$as_save_IFS
21793 
21794   ;;
21795 esac
21796 fi
21797 HG=$ac_cv_path_HG
21798 if test -n "$HG"; then
21799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
21800 $as_echo "$HG" >&6; }
21801 else
21802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21803 $as_echo "no" >&6; }
21804 fi
21805 
21806 
21807   test -n "$HG" && break
21808 done
21809 
21810     else
21811       # If it succeeded, then it was overridden by the user. We will use it
21812       # for the tool.
21813 
21814       # First remove it from the list of overridden variables, so we can test
21815       # for unknown variables in the end.
21816       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21817 
21818       # Check if we try to supply an empty value
21819       if test "x$HG" = x; then
21820         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool HG= (no value)" >&5
21821 $as_echo "$as_me: Setting user supplied tool HG= (no value)" >&6;}
21822         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5
21823 $as_echo_n "checking for HG... " >&6; }
21824         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21825 $as_echo "disabled" >&6; }
21826       else
21827         # Check if the provided tool contains a complete path.
21828         tool_specified="$HG"
21829         tool_basename="${tool_specified##*/}"
21830         if test "x$tool_basename" = "x$tool_specified"; then
21831           # A command without a complete path is provided, search $PATH.
21832           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5
21833 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;}
21834           # Extract the first word of "$tool_basename", so it can be a program name with args.
21835 set dummy $tool_basename; ac_word=$2
21836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21837 $as_echo_n "checking for $ac_word... " >&6; }
21838 if ${ac_cv_path_HG+:} false; then :
21839   $as_echo_n "(cached) " >&6
21840 else
21841   case $HG in
21842   [\\/]* | ?:[\\/]*)
21843   ac_cv_path_HG="$HG" # Let the user override the test with a path.
21844   ;;
21845   *)
21846   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21847 for as_dir in $PATH
21848 do
21849   IFS=$as_save_IFS
21850   test -z "$as_dir" && as_dir=.
21851     for ac_exec_ext in '' $ac_executable_extensions; do
21852   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21853     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
21854     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21855     break 2
21856   fi
21857 done
21858   done
21859 IFS=$as_save_IFS
21860 
21861   ;;
21862 esac
21863 fi
21864 HG=$ac_cv_path_HG
21865 if test -n "$HG"; then
21866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
21867 $as_echo "$HG" >&6; }
21868 else
21869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21870 $as_echo "no" >&6; }
21871 fi
21872 
21873 
21874           if test "x$HG" = x; then
21875             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21876           fi
21877         else
21878           # Otherwise we believe it is a complete path. Use it as it is.
21879           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5
21880 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;}
21881           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5
21882 $as_echo_n "checking for HG... " >&6; }
21883           if test ! -x "$tool_specified"; then
21884             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21885 $as_echo "not found" >&6; }
21886             as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5
21887           fi
21888           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21889 $as_echo "$tool_specified" >&6; }
21890         fi
21891       fi
21892     fi
21893 
21894   fi
21895 
21896 
21897 
21898 
21899   # Publish this variable in the help.
21900 
21901 
21902   if [ -z "${STAT+x}" ]; then
21903     # The variable is not set by user, try to locate tool using the code snippet
21904     for ac_prog in stat
21905 do
21906   # Extract the first word of "$ac_prog", so it can be a program name with args.
21907 set dummy $ac_prog; ac_word=$2
21908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21909 $as_echo_n "checking for $ac_word... " >&6; }
21910 if ${ac_cv_path_STAT+:} false; then :
21911   $as_echo_n "(cached) " >&6
21912 else
21913   case $STAT in
21914   [\\/]* | ?:[\\/]*)
21915   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
21916   ;;
21917   *)
21918   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21919 for as_dir in $PATH
21920 do
21921   IFS=$as_save_IFS
21922   test -z "$as_dir" && as_dir=.
21923     for ac_exec_ext in '' $ac_executable_extensions; do
21924   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21925     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
21926     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21927     break 2
21928   fi
21929 done
21930   done
21931 IFS=$as_save_IFS
21932 
21933   ;;
21934 esac
21935 fi
21936 STAT=$ac_cv_path_STAT
21937 if test -n "$STAT"; then
21938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
21939 $as_echo "$STAT" >&6; }
21940 else
21941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21942 $as_echo "no" >&6; }
21943 fi
21944 
21945 
21946   test -n "$STAT" && break
21947 done
21948 
21949   else
21950     # The variable is set, but is it from the command line or the environment?
21951 
21952     # Try to remove the string !STAT! from our list.
21953     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/}
21954     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21955       # If it failed, the variable was not from the command line. Ignore it,
21956       # but warn the user (except for BASH, which is always set by the calling BASH).
21957       if test "xSTAT" != xBASH; then
21958         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5
21959 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;}
21960       fi
21961       # Try to locate tool using the code snippet
21962       for ac_prog in stat
21963 do
21964   # Extract the first word of "$ac_prog", so it can be a program name with args.
21965 set dummy $ac_prog; ac_word=$2
21966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21967 $as_echo_n "checking for $ac_word... " >&6; }
21968 if ${ac_cv_path_STAT+:} false; then :
21969   $as_echo_n "(cached) " >&6
21970 else
21971   case $STAT in
21972   [\\/]* | ?:[\\/]*)
21973   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
21974   ;;
21975   *)
21976   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21977 for as_dir in $PATH
21978 do
21979   IFS=$as_save_IFS
21980   test -z "$as_dir" && as_dir=.
21981     for ac_exec_ext in '' $ac_executable_extensions; do
21982   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21983     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
21984     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21985     break 2
21986   fi
21987 done
21988   done
21989 IFS=$as_save_IFS
21990 
21991   ;;
21992 esac
21993 fi
21994 STAT=$ac_cv_path_STAT
21995 if test -n "$STAT"; then
21996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
21997 $as_echo "$STAT" >&6; }
21998 else
21999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22000 $as_echo "no" >&6; }
22001 fi
22002 
22003 
22004   test -n "$STAT" && break
22005 done
22006 
22007     else
22008       # If it succeeded, then it was overridden by the user. We will use it
22009       # for the tool.
22010 
22011       # First remove it from the list of overridden variables, so we can test
22012       # for unknown variables in the end.
22013       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22014 
22015       # Check if we try to supply an empty value
22016       if test "x$STAT" = x; then
22017         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool STAT= (no value)" >&5
22018 $as_echo "$as_me: Setting user supplied tool STAT= (no value)" >&6;}
22019         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5
22020 $as_echo_n "checking for STAT... " >&6; }
22021         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22022 $as_echo "disabled" >&6; }
22023       else
22024         # Check if the provided tool contains a complete path.
22025         tool_specified="$STAT"
22026         tool_basename="${tool_specified##*/}"
22027         if test "x$tool_basename" = "x$tool_specified"; then
22028           # A command without a complete path is provided, search $PATH.
22029           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5
22030 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;}
22031           # Extract the first word of "$tool_basename", so it can be a program name with args.
22032 set dummy $tool_basename; ac_word=$2
22033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22034 $as_echo_n "checking for $ac_word... " >&6; }
22035 if ${ac_cv_path_STAT+:} false; then :
22036   $as_echo_n "(cached) " >&6
22037 else
22038   case $STAT in
22039   [\\/]* | ?:[\\/]*)
22040   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
22041   ;;
22042   *)
22043   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22044 for as_dir in $PATH
22045 do
22046   IFS=$as_save_IFS
22047   test -z "$as_dir" && as_dir=.
22048     for ac_exec_ext in '' $ac_executable_extensions; do
22049   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22050     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
22051     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22052     break 2
22053   fi
22054 done
22055   done
22056 IFS=$as_save_IFS
22057 
22058   ;;
22059 esac
22060 fi
22061 STAT=$ac_cv_path_STAT
22062 if test -n "$STAT"; then
22063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
22064 $as_echo "$STAT" >&6; }
22065 else
22066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22067 $as_echo "no" >&6; }
22068 fi
22069 
22070 
22071           if test "x$STAT" = x; then
22072             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22073           fi
22074         else
22075           # Otherwise we believe it is a complete path. Use it as it is.
22076           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5
22077 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;}
22078           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5
22079 $as_echo_n "checking for STAT... " >&6; }
22080           if test ! -x "$tool_specified"; then
22081             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22082 $as_echo "not found" >&6; }
22083             as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5
22084           fi
22085           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22086 $as_echo "$tool_specified" >&6; }
22087         fi
22088       fi
22089     fi
22090 
22091   fi
22092 
22093 
22094 
22095 
22096   # Publish this variable in the help.
22097 
22098 
22099   if [ -z "${TIME+x}" ]; then
22100     # The variable is not set by user, try to locate tool using the code snippet
22101     for ac_prog in time
22102 do
22103   # Extract the first word of "$ac_prog", so it can be a program name with args.
22104 set dummy $ac_prog; ac_word=$2
22105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22106 $as_echo_n "checking for $ac_word... " >&6; }
22107 if ${ac_cv_path_TIME+:} false; then :
22108   $as_echo_n "(cached) " >&6
22109 else
22110   case $TIME in
22111   [\\/]* | ?:[\\/]*)
22112   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
22113   ;;
22114   *)
22115   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22116 for as_dir in $PATH
22117 do
22118   IFS=$as_save_IFS
22119   test -z "$as_dir" && as_dir=.
22120     for ac_exec_ext in '' $ac_executable_extensions; do
22121   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22122     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
22123     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22124     break 2
22125   fi
22126 done
22127   done
22128 IFS=$as_save_IFS
22129 
22130   ;;
22131 esac
22132 fi
22133 TIME=$ac_cv_path_TIME
22134 if test -n "$TIME"; then
22135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
22136 $as_echo "$TIME" >&6; }
22137 else
22138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22139 $as_echo "no" >&6; }
22140 fi
22141 
22142 
22143   test -n "$TIME" && break
22144 done
22145 
22146   else
22147     # The variable is set, but is it from the command line or the environment?
22148 
22149     # Try to remove the string !TIME! from our list.
22150     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/}
22151     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22152       # If it failed, the variable was not from the command line. Ignore it,
22153       # but warn the user (except for BASH, which is always set by the calling BASH).
22154       if test "xTIME" != xBASH; then
22155         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5
22156 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;}
22157       fi
22158       # Try to locate tool using the code snippet
22159       for ac_prog in time
22160 do
22161   # Extract the first word of "$ac_prog", so it can be a program name with args.
22162 set dummy $ac_prog; ac_word=$2
22163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22164 $as_echo_n "checking for $ac_word... " >&6; }
22165 if ${ac_cv_path_TIME+:} false; then :
22166   $as_echo_n "(cached) " >&6
22167 else
22168   case $TIME in
22169   [\\/]* | ?:[\\/]*)
22170   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
22171   ;;
22172   *)
22173   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22174 for as_dir in $PATH
22175 do
22176   IFS=$as_save_IFS
22177   test -z "$as_dir" && as_dir=.
22178     for ac_exec_ext in '' $ac_executable_extensions; do
22179   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22180     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
22181     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22182     break 2
22183   fi
22184 done
22185   done
22186 IFS=$as_save_IFS
22187 
22188   ;;
22189 esac
22190 fi
22191 TIME=$ac_cv_path_TIME
22192 if test -n "$TIME"; then
22193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
22194 $as_echo "$TIME" >&6; }
22195 else
22196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22197 $as_echo "no" >&6; }
22198 fi
22199 
22200 
22201   test -n "$TIME" && break
22202 done
22203 
22204     else
22205       # If it succeeded, then it was overridden by the user. We will use it
22206       # for the tool.
22207 
22208       # First remove it from the list of overridden variables, so we can test
22209       # for unknown variables in the end.
22210       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22211 
22212       # Check if we try to supply an empty value
22213       if test "x$TIME" = x; then
22214         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TIME= (no value)" >&5
22215 $as_echo "$as_me: Setting user supplied tool TIME= (no value)" >&6;}
22216         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5
22217 $as_echo_n "checking for TIME... " >&6; }
22218         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22219 $as_echo "disabled" >&6; }
22220       else
22221         # Check if the provided tool contains a complete path.
22222         tool_specified="$TIME"
22223         tool_basename="${tool_specified##*/}"
22224         if test "x$tool_basename" = "x$tool_specified"; then
22225           # A command without a complete path is provided, search $PATH.
22226           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5
22227 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;}
22228           # Extract the first word of "$tool_basename", so it can be a program name with args.
22229 set dummy $tool_basename; ac_word=$2
22230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22231 $as_echo_n "checking for $ac_word... " >&6; }
22232 if ${ac_cv_path_TIME+:} false; then :
22233   $as_echo_n "(cached) " >&6
22234 else
22235   case $TIME in
22236   [\\/]* | ?:[\\/]*)
22237   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
22238   ;;
22239   *)
22240   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22241 for as_dir in $PATH
22242 do
22243   IFS=$as_save_IFS
22244   test -z "$as_dir" && as_dir=.
22245     for ac_exec_ext in '' $ac_executable_extensions; do
22246   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22247     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
22248     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22249     break 2
22250   fi
22251 done
22252   done
22253 IFS=$as_save_IFS
22254 
22255   ;;
22256 esac
22257 fi
22258 TIME=$ac_cv_path_TIME
22259 if test -n "$TIME"; then
22260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
22261 $as_echo "$TIME" >&6; }
22262 else
22263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22264 $as_echo "no" >&6; }
22265 fi
22266 
22267 
22268           if test "x$TIME" = x; then
22269             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22270           fi
22271         else
22272           # Otherwise we believe it is a complete path. Use it as it is.
22273           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5
22274 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;}
22275           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5
22276 $as_echo_n "checking for TIME... " >&6; }
22277           if test ! -x "$tool_specified"; then
22278             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22279 $as_echo "not found" >&6; }
22280             as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5
22281           fi
22282           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22283 $as_echo "$tool_specified" >&6; }
22284         fi
22285       fi
22286     fi
22287 
22288   fi
22289 
22290 
22291 
22292 
22293   # Publish this variable in the help.
22294 
22295 
22296   if [ -z "${DTRACE+x}" ]; then
22297     # The variable is not set by user, try to locate tool using the code snippet
22298     for ac_prog in dtrace
22299 do
22300   # Extract the first word of "$ac_prog", so it can be a program name with args.
22301 set dummy $ac_prog; ac_word=$2
22302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22303 $as_echo_n "checking for $ac_word... " >&6; }
22304 if ${ac_cv_path_DTRACE+:} false; then :
22305   $as_echo_n "(cached) " >&6
22306 else
22307   case $DTRACE in
22308   [\\/]* | ?:[\\/]*)
22309   ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
22310   ;;
22311   *)
22312   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22313 for as_dir in $PATH
22314 do
22315   IFS=$as_save_IFS
22316   test -z "$as_dir" && as_dir=.
22317     for ac_exec_ext in '' $ac_executable_extensions; do
22318   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22319     ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
22320     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22321     break 2
22322   fi
22323 done
22324   done
22325 IFS=$as_save_IFS
22326 
22327   ;;
22328 esac
22329 fi
22330 DTRACE=$ac_cv_path_DTRACE
22331 if test -n "$DTRACE"; then
22332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
22333 $as_echo "$DTRACE" >&6; }
22334 else
22335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22336 $as_echo "no" >&6; }
22337 fi
22338 
22339 
22340   test -n "$DTRACE" && break
22341 done
22342 
22343   else
22344     # The variable is set, but is it from the command line or the environment?
22345 
22346     # Try to remove the string !DTRACE! from our list.
22347     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DTRACE!/}
22348     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22349       # If it failed, the variable was not from the command line. Ignore it,
22350       # but warn the user (except for BASH, which is always set by the calling BASH).
22351       if test "xDTRACE" != xBASH; then
22352         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DTRACE from the environment. Use command line variables instead." >&5
22353 $as_echo "$as_me: WARNING: Ignoring value of DTRACE from the environment. Use command line variables instead." >&2;}
22354       fi
22355       # Try to locate tool using the code snippet
22356       for ac_prog in dtrace
22357 do
22358   # Extract the first word of "$ac_prog", so it can be a program name with args.
22359 set dummy $ac_prog; ac_word=$2
22360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22361 $as_echo_n "checking for $ac_word... " >&6; }
22362 if ${ac_cv_path_DTRACE+:} false; then :
22363   $as_echo_n "(cached) " >&6
22364 else
22365   case $DTRACE in
22366   [\\/]* | ?:[\\/]*)
22367   ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
22368   ;;
22369   *)
22370   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22371 for as_dir in $PATH
22372 do
22373   IFS=$as_save_IFS
22374   test -z "$as_dir" && as_dir=.
22375     for ac_exec_ext in '' $ac_executable_extensions; do
22376   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22377     ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
22378     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22379     break 2
22380   fi
22381 done
22382   done
22383 IFS=$as_save_IFS
22384 
22385   ;;
22386 esac
22387 fi
22388 DTRACE=$ac_cv_path_DTRACE
22389 if test -n "$DTRACE"; then
22390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
22391 $as_echo "$DTRACE" >&6; }
22392 else
22393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22394 $as_echo "no" >&6; }
22395 fi
22396 
22397 
22398   test -n "$DTRACE" && break
22399 done
22400 
22401     else
22402       # If it succeeded, then it was overridden by the user. We will use it
22403       # for the tool.
22404 
22405       # First remove it from the list of overridden variables, so we can test
22406       # for unknown variables in the end.
22407       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22408 
22409       # Check if we try to supply an empty value
22410       if test "x$DTRACE" = x; then
22411         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DTRACE= (no value)" >&5
22412 $as_echo "$as_me: Setting user supplied tool DTRACE= (no value)" >&6;}
22413         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DTRACE" >&5
22414 $as_echo_n "checking for DTRACE... " >&6; }
22415         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22416 $as_echo "disabled" >&6; }
22417       else
22418         # Check if the provided tool contains a complete path.
22419         tool_specified="$DTRACE"
22420         tool_basename="${tool_specified##*/}"
22421         if test "x$tool_basename" = "x$tool_specified"; then
22422           # A command without a complete path is provided, search $PATH.
22423           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DTRACE=$tool_basename" >&5
22424 $as_echo "$as_me: Will search for user supplied tool DTRACE=$tool_basename" >&6;}
22425           # Extract the first word of "$tool_basename", so it can be a program name with args.
22426 set dummy $tool_basename; ac_word=$2
22427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22428 $as_echo_n "checking for $ac_word... " >&6; }
22429 if ${ac_cv_path_DTRACE+:} false; then :
22430   $as_echo_n "(cached) " >&6
22431 else
22432   case $DTRACE in
22433   [\\/]* | ?:[\\/]*)
22434   ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
22435   ;;
22436   *)
22437   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22438 for as_dir in $PATH
22439 do
22440   IFS=$as_save_IFS
22441   test -z "$as_dir" && as_dir=.
22442     for ac_exec_ext in '' $ac_executable_extensions; do
22443   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22444     ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
22445     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22446     break 2
22447   fi
22448 done
22449   done
22450 IFS=$as_save_IFS
22451 
22452   ;;
22453 esac
22454 fi
22455 DTRACE=$ac_cv_path_DTRACE
22456 if test -n "$DTRACE"; then
22457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
22458 $as_echo "$DTRACE" >&6; }
22459 else
22460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22461 $as_echo "no" >&6; }
22462 fi
22463 
22464 
22465           if test "x$DTRACE" = x; then
22466             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22467           fi
22468         else
22469           # Otherwise we believe it is a complete path. Use it as it is.
22470           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DTRACE=$tool_specified" >&5
22471 $as_echo "$as_me: Will use user supplied tool DTRACE=$tool_specified" >&6;}
22472           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DTRACE" >&5
22473 $as_echo_n "checking for DTRACE... " >&6; }
22474           if test ! -x "$tool_specified"; then
22475             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22476 $as_echo "not found" >&6; }
22477             as_fn_error $? "User supplied tool DTRACE=$tool_specified does not exist or is not executable" "$LINENO" 5
22478           fi
22479           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22480 $as_echo "$tool_specified" >&6; }
22481         fi
22482       fi
22483     fi
22484 
22485   fi
22486 
22487 
22488 
22489 
22490   # Publish this variable in the help.
22491 
22492 
22493   if [ -z "${PATCH+x}" ]; then
22494     # The variable is not set by user, try to locate tool using the code snippet
22495     for ac_prog in gpatch patch
22496 do
22497   # Extract the first word of "$ac_prog", so it can be a program name with args.
22498 set dummy $ac_prog; ac_word=$2
22499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22500 $as_echo_n "checking for $ac_word... " >&6; }
22501 if ${ac_cv_path_PATCH+:} false; then :
22502   $as_echo_n "(cached) " >&6
22503 else
22504   case $PATCH in
22505   [\\/]* | ?:[\\/]*)
22506   ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
22507   ;;
22508   *)
22509   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22510 for as_dir in $PATH
22511 do
22512   IFS=$as_save_IFS
22513   test -z "$as_dir" && as_dir=.
22514     for ac_exec_ext in '' $ac_executable_extensions; do
22515   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22516     ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
22517     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22518     break 2
22519   fi
22520 done
22521   done
22522 IFS=$as_save_IFS
22523 
22524   ;;
22525 esac
22526 fi
22527 PATCH=$ac_cv_path_PATCH
22528 if test -n "$PATCH"; then
22529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
22530 $as_echo "$PATCH" >&6; }
22531 else
22532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22533 $as_echo "no" >&6; }
22534 fi
22535 
22536 
22537   test -n "$PATCH" && break
22538 done
22539 
22540   else
22541     # The variable is set, but is it from the command line or the environment?
22542 
22543     # Try to remove the string !PATCH! from our list.
22544     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PATCH!/}
22545     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22546       # If it failed, the variable was not from the command line. Ignore it,
22547       # but warn the user (except for BASH, which is always set by the calling BASH).
22548       if test "xPATCH" != xBASH; then
22549         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PATCH from the environment. Use command line variables instead." >&5
22550 $as_echo "$as_me: WARNING: Ignoring value of PATCH from the environment. Use command line variables instead." >&2;}
22551       fi
22552       # Try to locate tool using the code snippet
22553       for ac_prog in gpatch patch
22554 do
22555   # Extract the first word of "$ac_prog", so it can be a program name with args.
22556 set dummy $ac_prog; ac_word=$2
22557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22558 $as_echo_n "checking for $ac_word... " >&6; }
22559 if ${ac_cv_path_PATCH+:} false; then :
22560   $as_echo_n "(cached) " >&6
22561 else
22562   case $PATCH in
22563   [\\/]* | ?:[\\/]*)
22564   ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
22565   ;;
22566   *)
22567   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22568 for as_dir in $PATH
22569 do
22570   IFS=$as_save_IFS
22571   test -z "$as_dir" && as_dir=.
22572     for ac_exec_ext in '' $ac_executable_extensions; do
22573   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22574     ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
22575     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22576     break 2
22577   fi
22578 done
22579   done
22580 IFS=$as_save_IFS
22581 
22582   ;;
22583 esac
22584 fi
22585 PATCH=$ac_cv_path_PATCH
22586 if test -n "$PATCH"; then
22587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
22588 $as_echo "$PATCH" >&6; }
22589 else
22590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22591 $as_echo "no" >&6; }
22592 fi
22593 
22594 
22595   test -n "$PATCH" && break
22596 done
22597 
22598     else
22599       # If it succeeded, then it was overridden by the user. We will use it
22600       # for the tool.
22601 
22602       # First remove it from the list of overridden variables, so we can test
22603       # for unknown variables in the end.
22604       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22605 
22606       # Check if we try to supply an empty value
22607       if test "x$PATCH" = x; then
22608         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PATCH= (no value)" >&5
22609 $as_echo "$as_me: Setting user supplied tool PATCH= (no value)" >&6;}
22610         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATCH" >&5
22611 $as_echo_n "checking for PATCH... " >&6; }
22612         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22613 $as_echo "disabled" >&6; }
22614       else
22615         # Check if the provided tool contains a complete path.
22616         tool_specified="$PATCH"
22617         tool_basename="${tool_specified##*/}"
22618         if test "x$tool_basename" = "x$tool_specified"; then
22619           # A command without a complete path is provided, search $PATH.
22620           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PATCH=$tool_basename" >&5
22621 $as_echo "$as_me: Will search for user supplied tool PATCH=$tool_basename" >&6;}
22622           # Extract the first word of "$tool_basename", so it can be a program name with args.
22623 set dummy $tool_basename; ac_word=$2
22624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22625 $as_echo_n "checking for $ac_word... " >&6; }
22626 if ${ac_cv_path_PATCH+:} false; then :
22627   $as_echo_n "(cached) " >&6
22628 else
22629   case $PATCH in
22630   [\\/]* | ?:[\\/]*)
22631   ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
22632   ;;
22633   *)
22634   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22635 for as_dir in $PATH
22636 do
22637   IFS=$as_save_IFS
22638   test -z "$as_dir" && as_dir=.
22639     for ac_exec_ext in '' $ac_executable_extensions; do
22640   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22641     ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
22642     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22643     break 2
22644   fi
22645 done
22646   done
22647 IFS=$as_save_IFS
22648 
22649   ;;
22650 esac
22651 fi
22652 PATCH=$ac_cv_path_PATCH
22653 if test -n "$PATCH"; then
22654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
22655 $as_echo "$PATCH" >&6; }
22656 else
22657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22658 $as_echo "no" >&6; }
22659 fi
22660 
22661 
22662           if test "x$PATCH" = x; then
22663             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22664           fi
22665         else
22666           # Otherwise we believe it is a complete path. Use it as it is.
22667           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PATCH=$tool_specified" >&5
22668 $as_echo "$as_me: Will use user supplied tool PATCH=$tool_specified" >&6;}
22669           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATCH" >&5
22670 $as_echo_n "checking for PATCH... " >&6; }
22671           if test ! -x "$tool_specified"; then
22672             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22673 $as_echo "not found" >&6; }
22674             as_fn_error $? "User supplied tool PATCH=$tool_specified does not exist or is not executable" "$LINENO" 5
22675           fi
22676           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22677 $as_echo "$tool_specified" >&6; }
22678         fi
22679       fi
22680     fi
22681 
22682   fi
22683 
22684 
22685   # Check if it's GNU time
22686   IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'`
22687   if test "x$IS_GNU_TIME" != x; then
22688     IS_GNU_TIME=yes
22689   else
22690     IS_GNU_TIME=no
22691   fi
22692 
22693 
22694   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
22695 
22696 
22697 
22698   # Publish this variable in the help.
22699 
22700 
22701   if [ -z "${DSYMUTIL+x}" ]; then
22702     # The variable is not set by user, try to locate tool using the code snippet
22703     for ac_prog in dsymutil
22704 do
22705   # Extract the first word of "$ac_prog", so it can be a program name with args.
22706 set dummy $ac_prog; ac_word=$2
22707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22708 $as_echo_n "checking for $ac_word... " >&6; }
22709 if ${ac_cv_path_DSYMUTIL+:} false; then :
22710   $as_echo_n "(cached) " >&6
22711 else
22712   case $DSYMUTIL in
22713   [\\/]* | ?:[\\/]*)
22714   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
22715   ;;
22716   *)
22717   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22718 for as_dir in $PATH
22719 do
22720   IFS=$as_save_IFS
22721   test -z "$as_dir" && as_dir=.
22722     for ac_exec_ext in '' $ac_executable_extensions; do
22723   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22724     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
22725     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22726     break 2
22727   fi
22728 done
22729   done
22730 IFS=$as_save_IFS
22731 
22732   ;;
22733 esac
22734 fi
22735 DSYMUTIL=$ac_cv_path_DSYMUTIL
22736 if test -n "$DSYMUTIL"; then
22737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
22738 $as_echo "$DSYMUTIL" >&6; }
22739 else
22740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22741 $as_echo "no" >&6; }
22742 fi
22743 
22744 
22745   test -n "$DSYMUTIL" && break
22746 done
22747 
22748   else
22749     # The variable is set, but is it from the command line or the environment?
22750 
22751     # Try to remove the string !DSYMUTIL! from our list.
22752     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/}
22753     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22754       # If it failed, the variable was not from the command line. Ignore it,
22755       # but warn the user (except for BASH, which is always set by the calling BASH).
22756       if test "xDSYMUTIL" != xBASH; then
22757         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5
22758 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;}
22759       fi
22760       # Try to locate tool using the code snippet
22761       for ac_prog in dsymutil
22762 do
22763   # Extract the first word of "$ac_prog", so it can be a program name with args.
22764 set dummy $ac_prog; ac_word=$2
22765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22766 $as_echo_n "checking for $ac_word... " >&6; }
22767 if ${ac_cv_path_DSYMUTIL+:} false; then :
22768   $as_echo_n "(cached) " >&6
22769 else
22770   case $DSYMUTIL in
22771   [\\/]* | ?:[\\/]*)
22772   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
22773   ;;
22774   *)
22775   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22776 for as_dir in $PATH
22777 do
22778   IFS=$as_save_IFS
22779   test -z "$as_dir" && as_dir=.
22780     for ac_exec_ext in '' $ac_executable_extensions; do
22781   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22782     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
22783     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22784     break 2
22785   fi
22786 done
22787   done
22788 IFS=$as_save_IFS
22789 
22790   ;;
22791 esac
22792 fi
22793 DSYMUTIL=$ac_cv_path_DSYMUTIL
22794 if test -n "$DSYMUTIL"; then
22795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
22796 $as_echo "$DSYMUTIL" >&6; }
22797 else
22798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22799 $as_echo "no" >&6; }
22800 fi
22801 
22802 
22803   test -n "$DSYMUTIL" && break
22804 done
22805 
22806     else
22807       # If it succeeded, then it was overridden by the user. We will use it
22808       # for the tool.
22809 
22810       # First remove it from the list of overridden variables, so we can test
22811       # for unknown variables in the end.
22812       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22813 
22814       # Check if we try to supply an empty value
22815       if test "x$DSYMUTIL" = x; then
22816         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DSYMUTIL= (no value)" >&5
22817 $as_echo "$as_me: Setting user supplied tool DSYMUTIL= (no value)" >&6;}
22818         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5
22819 $as_echo_n "checking for DSYMUTIL... " >&6; }
22820         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22821 $as_echo "disabled" >&6; }
22822       else
22823         # Check if the provided tool contains a complete path.
22824         tool_specified="$DSYMUTIL"
22825         tool_basename="${tool_specified##*/}"
22826         if test "x$tool_basename" = "x$tool_specified"; then
22827           # A command without a complete path is provided, search $PATH.
22828           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5
22829 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;}
22830           # Extract the first word of "$tool_basename", so it can be a program name with args.
22831 set dummy $tool_basename; ac_word=$2
22832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22833 $as_echo_n "checking for $ac_word... " >&6; }
22834 if ${ac_cv_path_DSYMUTIL+:} false; then :
22835   $as_echo_n "(cached) " >&6
22836 else
22837   case $DSYMUTIL in
22838   [\\/]* | ?:[\\/]*)
22839   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
22840   ;;
22841   *)
22842   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22843 for as_dir in $PATH
22844 do
22845   IFS=$as_save_IFS
22846   test -z "$as_dir" && as_dir=.
22847     for ac_exec_ext in '' $ac_executable_extensions; do
22848   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22849     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
22850     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22851     break 2
22852   fi
22853 done
22854   done
22855 IFS=$as_save_IFS
22856 
22857   ;;
22858 esac
22859 fi
22860 DSYMUTIL=$ac_cv_path_DSYMUTIL
22861 if test -n "$DSYMUTIL"; then
22862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
22863 $as_echo "$DSYMUTIL" >&6; }
22864 else
22865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22866 $as_echo "no" >&6; }
22867 fi
22868 
22869 
22870           if test "x$DSYMUTIL" = x; then
22871             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22872           fi
22873         else
22874           # Otherwise we believe it is a complete path. Use it as it is.
22875           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5
22876 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;}
22877           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5
22878 $as_echo_n "checking for DSYMUTIL... " >&6; }
22879           if test ! -x "$tool_specified"; then
22880             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22881 $as_echo "not found" >&6; }
22882             as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5
22883           fi
22884           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22885 $as_echo "$tool_specified" >&6; }
22886         fi
22887       fi
22888     fi
22889 
22890   fi
22891 
22892 
22893 
22894   if test "x$DSYMUTIL" = x; then
22895     as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5
22896   fi
22897 
22898 
22899 
22900 
22901 
22902   # Publish this variable in the help.
22903 
22904 
22905   if [ -z "${XATTR+x}" ]; then
22906     # The variable is not set by user, try to locate tool using the code snippet
22907     for ac_prog in xattr
22908 do
22909   # Extract the first word of "$ac_prog", so it can be a program name with args.
22910 set dummy $ac_prog; ac_word=$2
22911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22912 $as_echo_n "checking for $ac_word... " >&6; }
22913 if ${ac_cv_path_XATTR+:} false; then :
22914   $as_echo_n "(cached) " >&6
22915 else
22916   case $XATTR in
22917   [\\/]* | ?:[\\/]*)
22918   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
22919   ;;
22920   *)
22921   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22922 for as_dir in $PATH
22923 do
22924   IFS=$as_save_IFS
22925   test -z "$as_dir" && as_dir=.
22926     for ac_exec_ext in '' $ac_executable_extensions; do
22927   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22928     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
22929     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22930     break 2
22931   fi
22932 done
22933   done
22934 IFS=$as_save_IFS
22935 
22936   ;;
22937 esac
22938 fi
22939 XATTR=$ac_cv_path_XATTR
22940 if test -n "$XATTR"; then
22941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
22942 $as_echo "$XATTR" >&6; }
22943 else
22944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22945 $as_echo "no" >&6; }
22946 fi
22947 
22948 
22949   test -n "$XATTR" && break
22950 done
22951 
22952   else
22953     # The variable is set, but is it from the command line or the environment?
22954 
22955     # Try to remove the string !XATTR! from our list.
22956     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/}
22957     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22958       # If it failed, the variable was not from the command line. Ignore it,
22959       # but warn the user (except for BASH, which is always set by the calling BASH).
22960       if test "xXATTR" != xBASH; then
22961         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5
22962 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;}
22963       fi
22964       # Try to locate tool using the code snippet
22965       for ac_prog in xattr
22966 do
22967   # Extract the first word of "$ac_prog", so it can be a program name with args.
22968 set dummy $ac_prog; ac_word=$2
22969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22970 $as_echo_n "checking for $ac_word... " >&6; }
22971 if ${ac_cv_path_XATTR+:} false; then :
22972   $as_echo_n "(cached) " >&6
22973 else
22974   case $XATTR in
22975   [\\/]* | ?:[\\/]*)
22976   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
22977   ;;
22978   *)
22979   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22980 for as_dir in $PATH
22981 do
22982   IFS=$as_save_IFS
22983   test -z "$as_dir" && as_dir=.
22984     for ac_exec_ext in '' $ac_executable_extensions; do
22985   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22986     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
22987     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22988     break 2
22989   fi
22990 done
22991   done
22992 IFS=$as_save_IFS
22993 
22994   ;;
22995 esac
22996 fi
22997 XATTR=$ac_cv_path_XATTR
22998 if test -n "$XATTR"; then
22999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
23000 $as_echo "$XATTR" >&6; }
23001 else
23002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23003 $as_echo "no" >&6; }
23004 fi
23005 
23006 
23007   test -n "$XATTR" && break
23008 done
23009 
23010     else
23011       # If it succeeded, then it was overridden by the user. We will use it
23012       # for the tool.
23013 
23014       # First remove it from the list of overridden variables, so we can test
23015       # for unknown variables in the end.
23016       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
23017 
23018       # Check if we try to supply an empty value
23019       if test "x$XATTR" = x; then
23020         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool XATTR= (no value)" >&5
23021 $as_echo "$as_me: Setting user supplied tool XATTR= (no value)" >&6;}
23022         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5
23023 $as_echo_n "checking for XATTR... " >&6; }
23024         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
23025 $as_echo "disabled" >&6; }
23026       else
23027         # Check if the provided tool contains a complete path.
23028         tool_specified="$XATTR"
23029         tool_basename="${tool_specified##*/}"
23030         if test "x$tool_basename" = "x$tool_specified"; then
23031           # A command without a complete path is provided, search $PATH.
23032           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5
23033 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;}
23034           # Extract the first word of "$tool_basename", so it can be a program name with args.
23035 set dummy $tool_basename; ac_word=$2
23036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23037 $as_echo_n "checking for $ac_word... " >&6; }
23038 if ${ac_cv_path_XATTR+:} false; then :
23039   $as_echo_n "(cached) " >&6
23040 else
23041   case $XATTR in
23042   [\\/]* | ?:[\\/]*)
23043   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
23044   ;;
23045   *)
23046   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23047 for as_dir in $PATH
23048 do
23049   IFS=$as_save_IFS
23050   test -z "$as_dir" && as_dir=.
23051     for ac_exec_ext in '' $ac_executable_extensions; do
23052   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23053     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
23054     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23055     break 2
23056   fi
23057 done
23058   done
23059 IFS=$as_save_IFS
23060 
23061   ;;
23062 esac
23063 fi
23064 XATTR=$ac_cv_path_XATTR
23065 if test -n "$XATTR"; then
23066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
23067 $as_echo "$XATTR" >&6; }
23068 else
23069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23070 $as_echo "no" >&6; }
23071 fi
23072 
23073 
23074           if test "x$XATTR" = x; then
23075             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
23076           fi
23077         else
23078           # Otherwise we believe it is a complete path. Use it as it is.
23079           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5
23080 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;}
23081           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5
23082 $as_echo_n "checking for XATTR... " >&6; }
23083           if test ! -x "$tool_specified"; then
23084             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23085 $as_echo "not found" >&6; }
23086             as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5
23087           fi
23088           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
23089 $as_echo "$tool_specified" >&6; }
23090         fi
23091       fi
23092     fi
23093 
23094   fi
23095 
23096 
23097 
23098   if test "x$XATTR" = x; then
23099     as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5
23100   fi
23101 
23102 
23103 
23104 
23105   # Publish this variable in the help.
23106 
23107 
23108   if [ -z "${CODESIGN+x}" ]; then
23109     # The variable is not set by user, try to locate tool using the code snippet
23110     for ac_prog in codesign
23111 do
23112   # Extract the first word of "$ac_prog", so it can be a program name with args.
23113 set dummy $ac_prog; ac_word=$2
23114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23115 $as_echo_n "checking for $ac_word... " >&6; }
23116 if ${ac_cv_path_CODESIGN+:} false; then :
23117   $as_echo_n "(cached) " >&6
23118 else
23119   case $CODESIGN in
23120   [\\/]* | ?:[\\/]*)
23121   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
23122   ;;
23123   *)
23124   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23125 for as_dir in $PATH
23126 do
23127   IFS=$as_save_IFS
23128   test -z "$as_dir" && as_dir=.
23129     for ac_exec_ext in '' $ac_executable_extensions; do
23130   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23131     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
23132     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23133     break 2
23134   fi
23135 done
23136   done
23137 IFS=$as_save_IFS
23138 
23139   ;;
23140 esac
23141 fi
23142 CODESIGN=$ac_cv_path_CODESIGN
23143 if test -n "$CODESIGN"; then
23144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
23145 $as_echo "$CODESIGN" >&6; }
23146 else
23147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23148 $as_echo "no" >&6; }
23149 fi
23150 
23151 
23152   test -n "$CODESIGN" && break
23153 done
23154 
23155   else
23156     # The variable is set, but is it from the command line or the environment?
23157 
23158     # Try to remove the string !CODESIGN! from our list.
23159     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/}
23160     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
23161       # If it failed, the variable was not from the command line. Ignore it,
23162       # but warn the user (except for BASH, which is always set by the calling BASH).
23163       if test "xCODESIGN" != xBASH; then
23164         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5
23165 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;}
23166       fi
23167       # Try to locate tool using the code snippet
23168       for ac_prog in codesign
23169 do
23170   # Extract the first word of "$ac_prog", so it can be a program name with args.
23171 set dummy $ac_prog; ac_word=$2
23172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23173 $as_echo_n "checking for $ac_word... " >&6; }
23174 if ${ac_cv_path_CODESIGN+:} false; then :
23175   $as_echo_n "(cached) " >&6
23176 else
23177   case $CODESIGN in
23178   [\\/]* | ?:[\\/]*)
23179   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
23180   ;;
23181   *)
23182   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23183 for as_dir in $PATH
23184 do
23185   IFS=$as_save_IFS
23186   test -z "$as_dir" && as_dir=.
23187     for ac_exec_ext in '' $ac_executable_extensions; do
23188   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23189     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
23190     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23191     break 2
23192   fi
23193 done
23194   done
23195 IFS=$as_save_IFS
23196 
23197   ;;
23198 esac
23199 fi
23200 CODESIGN=$ac_cv_path_CODESIGN
23201 if test -n "$CODESIGN"; then
23202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
23203 $as_echo "$CODESIGN" >&6; }
23204 else
23205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23206 $as_echo "no" >&6; }
23207 fi
23208 
23209 
23210   test -n "$CODESIGN" && break
23211 done
23212 
23213     else
23214       # If it succeeded, then it was overridden by the user. We will use it
23215       # for the tool.
23216 
23217       # First remove it from the list of overridden variables, so we can test
23218       # for unknown variables in the end.
23219       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
23220 
23221       # Check if we try to supply an empty value
23222       if test "x$CODESIGN" = x; then
23223         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CODESIGN= (no value)" >&5
23224 $as_echo "$as_me: Setting user supplied tool CODESIGN= (no value)" >&6;}
23225         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5
23226 $as_echo_n "checking for CODESIGN... " >&6; }
23227         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
23228 $as_echo "disabled" >&6; }
23229       else
23230         # Check if the provided tool contains a complete path.
23231         tool_specified="$CODESIGN"
23232         tool_basename="${tool_specified##*/}"
23233         if test "x$tool_basename" = "x$tool_specified"; then
23234           # A command without a complete path is provided, search $PATH.
23235           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5
23236 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;}
23237           # Extract the first word of "$tool_basename", so it can be a program name with args.
23238 set dummy $tool_basename; ac_word=$2
23239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23240 $as_echo_n "checking for $ac_word... " >&6; }
23241 if ${ac_cv_path_CODESIGN+:} false; then :
23242   $as_echo_n "(cached) " >&6
23243 else
23244   case $CODESIGN in
23245   [\\/]* | ?:[\\/]*)
23246   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
23247   ;;
23248   *)
23249   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23250 for as_dir in $PATH
23251 do
23252   IFS=$as_save_IFS
23253   test -z "$as_dir" && as_dir=.
23254     for ac_exec_ext in '' $ac_executable_extensions; do
23255   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23256     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
23257     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23258     break 2
23259   fi
23260 done
23261   done
23262 IFS=$as_save_IFS
23263 
23264   ;;
23265 esac
23266 fi
23267 CODESIGN=$ac_cv_path_CODESIGN
23268 if test -n "$CODESIGN"; then
23269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
23270 $as_echo "$CODESIGN" >&6; }
23271 else
23272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23273 $as_echo "no" >&6; }
23274 fi
23275 
23276 
23277           if test "x$CODESIGN" = x; then
23278             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
23279           fi
23280         else
23281           # Otherwise we believe it is a complete path. Use it as it is.
23282           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5
23283 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;}
23284           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5
23285 $as_echo_n "checking for CODESIGN... " >&6; }
23286           if test ! -x "$tool_specified"; then
23287             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23288 $as_echo "not found" >&6; }
23289             as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5
23290           fi
23291           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
23292 $as_echo "$tool_specified" >&6; }
23293         fi
23294       fi
23295     fi
23296 
23297   fi
23298 
23299 
23300     if test "x$CODESIGN" != "x"; then
23301       # Verify that the openjdk_codesign certificate is present
23302       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5
23303 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; }
23304       rm -f codesign-testfile
23305       touch codesign-testfile
23306       codesign -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN=
23307       rm -f codesign-testfile
23308       if test "x$CODESIGN" = x; then
23309         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23310 $as_echo "no" >&6; }
23311       else
23312         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23313 $as_echo "yes" >&6; }
23314       fi
23315     fi
23316 
23317 
23318 
23319   # Publish this variable in the help.
23320 
23321 
23322   if [ -z "${SETFILE+x}" ]; then
23323     # The variable is not set by user, try to locate tool using the code snippet
23324     for ac_prog in SetFile
23325 do
23326   # Extract the first word of "$ac_prog", so it can be a program name with args.
23327 set dummy $ac_prog; ac_word=$2
23328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23329 $as_echo_n "checking for $ac_word... " >&6; }
23330 if ${ac_cv_path_SETFILE+:} false; then :
23331   $as_echo_n "(cached) " >&6
23332 else
23333   case $SETFILE in
23334   [\\/]* | ?:[\\/]*)
23335   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
23336   ;;
23337   *)
23338   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23339 for as_dir in $PATH
23340 do
23341   IFS=$as_save_IFS
23342   test -z "$as_dir" && as_dir=.
23343     for ac_exec_ext in '' $ac_executable_extensions; do
23344   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23345     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
23346     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23347     break 2
23348   fi
23349 done
23350   done
23351 IFS=$as_save_IFS
23352 
23353   ;;
23354 esac
23355 fi
23356 SETFILE=$ac_cv_path_SETFILE
23357 if test -n "$SETFILE"; then
23358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
23359 $as_echo "$SETFILE" >&6; }
23360 else
23361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23362 $as_echo "no" >&6; }
23363 fi
23364 
23365 
23366   test -n "$SETFILE" && break
23367 done
23368 
23369   else
23370     # The variable is set, but is it from the command line or the environment?
23371 
23372     # Try to remove the string !SETFILE! from our list.
23373     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/}
23374     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
23375       # If it failed, the variable was not from the command line. Ignore it,
23376       # but warn the user (except for BASH, which is always set by the calling BASH).
23377       if test "xSETFILE" != xBASH; then
23378         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5
23379 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;}
23380       fi
23381       # Try to locate tool using the code snippet
23382       for ac_prog in SetFile
23383 do
23384   # Extract the first word of "$ac_prog", so it can be a program name with args.
23385 set dummy $ac_prog; 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_SETFILE+:} false; then :
23389   $as_echo_n "(cached) " >&6
23390 else
23391   case $SETFILE in
23392   [\\/]* | ?:[\\/]*)
23393   ac_cv_path_SETFILE="$SETFILE" # 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_SETFILE="$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 SETFILE=$ac_cv_path_SETFILE
23415 if test -n "$SETFILE"; then
23416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
23417 $as_echo "$SETFILE" >&6; }
23418 else
23419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23420 $as_echo "no" >&6; }
23421 fi
23422 
23423 
23424   test -n "$SETFILE" && break
23425 done
23426 
23427     else
23428       # If it succeeded, then it was overridden by the user. We will use it
23429       # for the tool.
23430 
23431       # First remove it from the list of overridden variables, so we can test
23432       # for unknown variables in the end.
23433       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
23434 
23435       # Check if we try to supply an empty value
23436       if test "x$SETFILE" = x; then
23437         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SETFILE= (no value)" >&5
23438 $as_echo "$as_me: Setting user supplied tool SETFILE= (no value)" >&6;}
23439         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5
23440 $as_echo_n "checking for SETFILE... " >&6; }
23441         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
23442 $as_echo "disabled" >&6; }
23443       else
23444         # Check if the provided tool contains a complete path.
23445         tool_specified="$SETFILE"
23446         tool_basename="${tool_specified##*/}"
23447         if test "x$tool_basename" = "x$tool_specified"; then
23448           # A command without a complete path is provided, search $PATH.
23449           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5
23450 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;}
23451           # Extract the first word of "$tool_basename", so it can be a program name with args.
23452 set dummy $tool_basename; ac_word=$2
23453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23454 $as_echo_n "checking for $ac_word... " >&6; }
23455 if ${ac_cv_path_SETFILE+:} false; then :
23456   $as_echo_n "(cached) " >&6
23457 else
23458   case $SETFILE in
23459   [\\/]* | ?:[\\/]*)
23460   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
23461   ;;
23462   *)
23463   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23464 for as_dir in $PATH
23465 do
23466   IFS=$as_save_IFS
23467   test -z "$as_dir" && as_dir=.
23468     for ac_exec_ext in '' $ac_executable_extensions; do
23469   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23470     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
23471     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23472     break 2
23473   fi
23474 done
23475   done
23476 IFS=$as_save_IFS
23477 
23478   ;;
23479 esac
23480 fi
23481 SETFILE=$ac_cv_path_SETFILE
23482 if test -n "$SETFILE"; then
23483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
23484 $as_echo "$SETFILE" >&6; }
23485 else
23486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23487 $as_echo "no" >&6; }
23488 fi
23489 
23490 
23491           if test "x$SETFILE" = x; then
23492             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
23493           fi
23494         else
23495           # Otherwise we believe it is a complete path. Use it as it is.
23496           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5
23497 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;}
23498           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5
23499 $as_echo_n "checking for SETFILE... " >&6; }
23500           if test ! -x "$tool_specified"; then
23501             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23502 $as_echo "not found" >&6; }
23503             as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5
23504           fi
23505           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
23506 $as_echo "$tool_specified" >&6; }
23507         fi
23508       fi
23509     fi
23510 
23511   fi
23512 
23513 
23514 
23515   if test "x$SETFILE" = x; then
23516     as_fn_error $? "Could not find required tool for SETFILE" "$LINENO" 5
23517   fi
23518 
23519 
23520   fi
23521 
23522 
23523   # Test if bash supports pipefail.
23524   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports pipefail" >&5
23525 $as_echo_n "checking if bash supports pipefail... " >&6; }
23526   if ${BASH} -c 'set -o pipefail'; then
23527     BASH_ARGS="$BASH_ARGS -o pipefail"
23528     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23529 $as_echo "yes" >&6; }
23530   else
23531     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23532 $as_echo "no" >&6; }
23533   fi
23534 
23535   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports errexit (-e)" >&5
23536 $as_echo_n "checking if bash supports errexit (-e)... " >&6; }
23537   if ${BASH} -e -c 'true'; then
23538     BASH_ARGS="$BASH_ARGS -e"
23539     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23540 $as_echo "yes" >&6; }
23541   else
23542     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23543 $as_echo "no" >&6; }
23544   fi
23545 
23546 
23547 
23548 
23549 # Check if pkg-config is available.
23550 
23551 
23552 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
23553         if test -n "$ac_tool_prefix"; then
23554   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
23555 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
23556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23557 $as_echo_n "checking for $ac_word... " >&6; }
23558 if ${ac_cv_path_PKG_CONFIG+:} false; then :
23559   $as_echo_n "(cached) " >&6
23560 else
23561   case $PKG_CONFIG in
23562   [\\/]* | ?:[\\/]*)
23563   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23564   ;;
23565   *)
23566   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23567 for as_dir in $PATH
23568 do
23569   IFS=$as_save_IFS
23570   test -z "$as_dir" && as_dir=.
23571     for ac_exec_ext in '' $ac_executable_extensions; do
23572   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23573     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23574     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23575     break 2
23576   fi
23577 done
23578   done
23579 IFS=$as_save_IFS
23580 
23581   ;;
23582 esac
23583 fi
23584 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23585 if test -n "$PKG_CONFIG"; then
23586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
23587 $as_echo "$PKG_CONFIG" >&6; }
23588 else
23589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23590 $as_echo "no" >&6; }
23591 fi
23592 
23593 
23594 fi
23595 if test -z "$ac_cv_path_PKG_CONFIG"; then
23596   ac_pt_PKG_CONFIG=$PKG_CONFIG
23597   # Extract the first word of "pkg-config", so it can be a program name with args.
23598 set dummy pkg-config; ac_word=$2
23599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23600 $as_echo_n "checking for $ac_word... " >&6; }
23601 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
23602   $as_echo_n "(cached) " >&6
23603 else
23604   case $ac_pt_PKG_CONFIG in
23605   [\\/]* | ?:[\\/]*)
23606   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
23607   ;;
23608   *)
23609   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23610 for as_dir in $PATH
23611 do
23612   IFS=$as_save_IFS
23613   test -z "$as_dir" && as_dir=.
23614     for ac_exec_ext in '' $ac_executable_extensions; do
23615   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23616     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23617     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23618     break 2
23619   fi
23620 done
23621   done
23622 IFS=$as_save_IFS
23623 
23624   ;;
23625 esac
23626 fi
23627 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
23628 if test -n "$ac_pt_PKG_CONFIG"; then
23629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
23630 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
23631 else
23632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23633 $as_echo "no" >&6; }
23634 fi
23635 
23636   if test "x$ac_pt_PKG_CONFIG" = x; then
23637     PKG_CONFIG=""
23638   else
23639     case $cross_compiling:$ac_tool_warned in
23640 yes:)
23641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23642 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23643 ac_tool_warned=yes ;;
23644 esac
23645     PKG_CONFIG=$ac_pt_PKG_CONFIG
23646   fi
23647 else
23648   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
23649 fi
23650 
23651 fi
23652 if test -n "$PKG_CONFIG"; then
23653         _pkg_min_version=0.9.0
23654         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
23655 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
23656         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
23657                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23658 $as_echo "yes" >&6; }
23659         else
23660                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23661 $as_echo "no" >&6; }
23662                 PKG_CONFIG=""
23663         fi
23664 
23665 fi
23666 
23667 # After basic tools have been setup, we can check build os specific details.
23668 
23669   ###############################################################################
23670 
23671   # Note that this is the build platform OS version!
23672 
23673   OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`"
23674   OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`"
23675   OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`"
23676   OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`"
23677 
23678 
23679 
23680 
23681 
23682 # Misc basic settings
23683 
23684 
23685 # Check whether --with-default-make-target was given.
23686 if test "${with_default_make_target+set}" = set; then :
23687   withval=$with_default_make_target;
23688 fi
23689 
23690   if test "x$with_default_make_target" = "x" \
23691       || test "x$with_default_make_target" = "xyes"; then
23692     DEFAULT_MAKE_TARGET="exploded-image"
23693   elif test "x$with_default_make_target" = "xno"; then
23694     as_fn_error $? "--without-default-make-target is not a valid option" "$LINENO" 5
23695   else
23696     DEFAULT_MAKE_TARGET="$with_default_make_target"
23697   fi
23698 
23699 
23700 
23701 
23702 ###############################################################################
23703 #
23704 # Determine OpenJDK variants, options and version numbers.
23705 #
23706 ###############################################################################
23707 
23708 # We need build & target for this.
23709 
23710   # Should we build a JDK/JVM with headful support (ie a graphical ui)?
23711   # We always build headless support.
23712   { $as_echo "$as_me:${as_lineno-$LINENO}: checking headful support" >&5
23713 $as_echo_n "checking headful support... " >&6; }
23714   # Check whether --enable-headful was given.
23715 if test "${enable_headful+set}" = set; then :
23716   enableval=$enable_headful; SUPPORT_HEADFUL=${enable_headful}
23717 else
23718   SUPPORT_HEADFUL=yes
23719 fi
23720 
23721 
23722   SUPPORT_HEADLESS=yes
23723   BUILD_HEADLESS="BUILD_HEADLESS:=true"
23724 
23725   if test "x$SUPPORT_HEADFUL" = xyes; then
23726     # We are building both headful and headless.
23727     headful_msg="include support for both headful and headless"
23728   fi
23729 
23730   if test "x$SUPPORT_HEADFUL" = xno; then
23731     # Thus we are building headless only.
23732     BUILD_HEADLESS="BUILD_HEADLESS:=true"
23733     headful_msg="headless only"
23734   fi
23735 
23736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $headful_msg" >&5
23737 $as_echo "$headful_msg" >&6; }
23738 
23739 
23740 
23741 
23742 
23743   # Choose cacerts source file
23744 
23745 # Check whether --with-cacerts-file was given.
23746 if test "${with_cacerts_file+set}" = set; then :
23747   withval=$with_cacerts_file;
23748 fi
23749 
23750   if test "x$with_cacerts_file" != x; then
23751     CACERTS_FILE=$with_cacerts_file
23752   fi
23753 
23754 
23755   # Enable or disable unlimited crypto
23756   # Check whether --enable-unlimited-crypto was given.
23757 if test "${enable_unlimited_crypto+set}" = set; then :
23758   enableval=$enable_unlimited_crypto;
23759 else
23760   enable_unlimited_crypto=no
23761 fi
23762 
23763   if test "x$enable_unlimited_crypto" = "xyes"; then
23764     UNLIMITED_CRYPTO=true
23765   else
23766     UNLIMITED_CRYPTO=false
23767   fi
23768 
23769 
23770   # Should we build the serviceability agent (SA)?
23771   INCLUDE_SA=true
23772   if   [[ " $JVM_VARIANTS " =~ " zero " ]]   ||   [[ " $JVM_VARIANTS " =~ " zeroshark " ]]  ; then
23773     INCLUDE_SA=false
23774   fi
23775   if test "x$OPENJDK_TARGET_OS" = xaix ; then
23776     INCLUDE_SA=false
23777   fi
23778   if test "x$OPENJDK_TARGET_CPU" = xaarch64; then
23779     INCLUDE_SA=false
23780   fi
23781 
23782 
23783   # Compress jars
23784   COMPRESS_JARS=false
23785 
23786 
23787 
23788   # Setup default copyright year. Mostly overridden when building close to a new year.
23789 
23790 # Check whether --with-copyright-year was given.
23791 if test "${with_copyright_year+set}" = set; then :
23792   withval=$with_copyright_year;
23793 fi
23794 
23795   if test "x$with_copyright_year" = xyes; then
23796     as_fn_error $? "Copyright year must have a value" "$LINENO" 5
23797   elif test "x$with_copyright_year" != x; then
23798     COPYRIGHT_YEAR="$with_copyright_year"
23799   else
23800     COPYRIGHT_YEAR=`date +'%Y'`
23801   fi
23802 
23803 
23804 
23805   # Check whether --enable-keep-packaged-modules was given.
23806 if test "${enable_keep_packaged_modules+set}" = set; then :
23807   enableval=$enable_keep_packaged_modules;
23808 fi
23809 
23810 
23811   if test "x$enable_keep_packaged_modules" = "xyes"; then
23812     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if packaged modules are kept" >&5
23813 $as_echo_n "checking if packaged modules are kept... " >&6; }
23814     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23815 $as_echo "yes" >&6; }
23816     JLINK_KEEP_PACKAGED_MODULES=true
23817   elif test "x$enable_keep_packaged_modules" = "xno"; then
23818     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if packaged modules are kept" >&5
23819 $as_echo_n "checking if packaged modules are kept... " >&6; }
23820     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23821 $as_echo "no" >&6; }
23822     JLINK_KEEP_PACKAGED_MODULES=false
23823   elif test "x$enable_keep_packaged_modules" = "x"; then
23824     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5
23825 $as_echo "yes (default)" >&6; }
23826     JLINK_KEEP_PACKAGED_MODULES=true
23827   else
23828     as_fn_error $? "--enable-keep-packaged-modules accepts no argument" "$LINENO" 5
23829   fi
23830 
23831 
23832 
23833 
23834   # Warn user that old version arguments are deprecated.
23835 
23836 
23837 # Check whether --with-milestone was given.
23838 if test "${with_milestone+set}" = set; then :
23839   withval=$with_milestone; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-milestone is deprecated and will be ignored." >&5
23840 $as_echo "$as_me: WARNING: Option --with-milestone is deprecated and will be ignored." >&2;}
23841 fi
23842 
23843 
23844 
23845 
23846 # Check whether --with-update-version was given.
23847 if test "${with_update_version+set}" = set; then :
23848   withval=$with_update_version; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-update-version is deprecated and will be ignored." >&5
23849 $as_echo "$as_me: WARNING: Option --with-update-version is deprecated and will be ignored." >&2;}
23850 fi
23851 
23852 
23853 
23854 
23855 # Check whether --with-user-release-suffix was given.
23856 if test "${with_user_release_suffix+set}" = set; then :
23857   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
23858 $as_echo "$as_me: WARNING: Option --with-user-release-suffix is deprecated and will be ignored." >&2;}
23859 fi
23860 
23861 
23862 
23863 
23864 # Check whether --with-build-number was given.
23865 if test "${with_build_number+set}" = set; then :
23866   withval=$with_build_number; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-build-number is deprecated and will be ignored." >&5
23867 $as_echo "$as_me: WARNING: Option --with-build-number is deprecated and will be ignored." >&2;}
23868 fi
23869 
23870 
23871 
23872   # Source the version numbers file
23873   . $AUTOCONF_DIR/version-numbers
23874 
23875   # Some non-version number information is set in that file
23876 
23877 
23878 
23879 
23880 
23881 
23882 
23883 
23884 
23885   # Override version from arguments
23886 
23887   # If --with-version-string is set, process it first. It is possible to
23888   # override parts with more specific flags, since these are processed later.
23889 
23890 # Check whether --with-version-string was given.
23891 if test "${with_version_string+set}" = set; then :
23892   withval=$with_version_string;
23893 fi
23894 
23895   if test "x$with_version_string" = xyes; then
23896     as_fn_error $? "--with-version-string must have a value" "$LINENO" 5
23897   elif test "x$with_version_string" != x; then
23898     # Additional [] needed to keep m4 from mangling shell constructs.
23899     if  [[ $with_version_string =~ ^([0-9]+)(\.([0-9]+))?(\.([0-9]+))?(\.([0-9]+))?(-([a-zA-Z]+))?((\+)([0-9]+)?(-([-a-zA-Z0-9.]+))?)?$ ]] ; then
23900       VERSION_MAJOR=${BASH_REMATCH[1]}
23901       VERSION_MINOR=${BASH_REMATCH[3]}
23902       VERSION_SECURITY=${BASH_REMATCH[5]}
23903       VERSION_PATCH=${BASH_REMATCH[7]}
23904       VERSION_PRE=${BASH_REMATCH[9]}
23905       version_plus_separator=${BASH_REMATCH[11]}
23906       VERSION_BUILD=${BASH_REMATCH[12]}
23907       VERSION_OPT=${BASH_REMATCH[14]}
23908       # Unspecified numerical fields are interpreted as 0.
23909       if test "x$VERSION_MINOR" = x; then
23910         VERSION_MINOR=0
23911       fi
23912       if test "x$VERSION_SECURITY" = x; then
23913         VERSION_SECURITY=0
23914       fi
23915       if test "x$VERSION_PATCH" = x; then
23916         VERSION_PATCH=0
23917       fi
23918       if test "x$version_plus_separator" != x \
23919           && test "x$VERSION_BUILD$VERSION_OPT" = x; then
23920         as_fn_error $? "Version string contains + but both 'BUILD' and 'OPT' are missing" "$LINENO" 5
23921       fi
23922       # Stop the version part process from setting default values.
23923       # We still allow them to explicitely override though.
23924       NO_DEFAULT_VERSION_PARTS=true
23925     else
23926       as_fn_error $? "--with-version-string fails to parse as a valid version string: $with_version_string" "$LINENO" 5
23927     fi
23928   fi
23929 
23930 
23931 # Check whether --with-version-pre was given.
23932 if test "${with_version_pre+set}" = set; then :
23933   withval=$with_version_pre; with_version_pre_present=true
23934 else
23935   with_version_pre_present=false
23936 fi
23937 
23938 
23939   if test "x$with_version_pre_present" = xtrue; then
23940     if test "x$with_version_pre" = xyes; then
23941       as_fn_error $? "--with-version-pre must have a value" "$LINENO" 5
23942     elif test "x$with_version_pre" = xno; then
23943       # Interpret --without-* as empty string instead of the literal "no"
23944       VERSION_PRE=
23945     else
23946       # Only [a-zA-Z] is allowed in the VERSION_PRE. Outer [ ] to quote m4.
23947        VERSION_PRE=`$ECHO "$with_version_pre" | $TR -c -d '[a-z][A-Z]'`
23948       if test "x$VERSION_PRE" != "x$with_version_pre"; then
23949         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-version-pre value has been sanitized from '$with_version_pre' to '$VERSION_PRE'" >&5
23950 $as_echo "$as_me: WARNING: --with-version-pre value has been sanitized from '$with_version_pre' to '$VERSION_PRE'" >&2;}
23951       fi
23952     fi
23953   else
23954     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
23955       # Default is to use "internal" as pre
23956       VERSION_PRE="internal"
23957     fi
23958   fi
23959 
23960 
23961 # Check whether --with-version-opt was given.
23962 if test "${with_version_opt+set}" = set; then :
23963   withval=$with_version_opt; with_version_opt_present=true
23964 else
23965   with_version_opt_present=false
23966 fi
23967 
23968 
23969   if test "x$with_version_opt_present" = xtrue; then
23970     if test "x$with_version_opt" = xyes; then
23971       as_fn_error $? "--with-version-opt must have a value" "$LINENO" 5
23972     elif test "x$with_version_opt" = xno; then
23973       # Interpret --without-* as empty string instead of the literal "no"
23974       VERSION_OPT=
23975     else
23976       # Only [-.a-zA-Z0-9] is allowed in the VERSION_OPT. Outer [ ] to quote m4.
23977        VERSION_OPT=`$ECHO "$with_version_opt" | $TR -c -d '[a-z][A-Z][0-9].-'`
23978       if test "x$VERSION_OPT" != "x$with_version_opt"; then
23979         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-version-opt value has been sanitized from '$with_version_opt' to '$VERSION_OPT'" >&5
23980 $as_echo "$as_me: WARNING: --with-version-opt value has been sanitized from '$with_version_opt' to '$VERSION_OPT'" >&2;}
23981       fi
23982     fi
23983   else
23984     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
23985       # Default is to calculate a string like this <timestamp>.<username>.<base dir name>
23986       timestamp=`$DATE '+%Y-%m-%d-%H%M%S'`
23987       # Outer [ ] to quote m4.
23988        basedirname=`$BASENAME "$TOPDIR" | $TR -d -c '[a-z][A-Z][0-9].-'`
23989       VERSION_OPT="$timestamp.$USERNAME.$basedirname"
23990     fi
23991   fi
23992 
23993 
23994 # Check whether --with-version-build was given.
23995 if test "${with_version_build+set}" = set; then :
23996   withval=$with_version_build; with_version_build_present=true
23997 else
23998   with_version_build_present=false
23999 fi
24000 
24001 
24002   if test "x$with_version_build_present" = xtrue; then
24003     if test "x$with_version_build" = xyes; then
24004       as_fn_error $? "--with-version-build must have a value" "$LINENO" 5
24005     elif test "x$with_version_build" = xno; then
24006       # Interpret --without-* as empty string instead of the literal "no"
24007       VERSION_BUILD=
24008     elif test "x$with_version_build" = x; then
24009       VERSION_BUILD=
24010     else
24011 
24012   # Additional [] needed to keep m4 from mangling shell constructs.
24013   if  ! [[ "$with_version_build" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
24014     as_fn_error $? "\"$with_version_build\" is not a valid numerical value for VERSION_BUILD" "$LINENO" 5
24015   fi
24016   # Extract the version number without leading zeros.
24017   cleaned_value=${BASH_REMATCH[1]}
24018   if test "x$cleaned_value" = x; then
24019     # Special case for zero
24020     cleaned_value=${BASH_REMATCH[2]}
24021   fi
24022 
24023   if test $cleaned_value -gt 255; then
24024     as_fn_error $? "VERSION_BUILD is given as $with_version_build. This is greater than 255 which is not allowed." "$LINENO" 5
24025   fi
24026   if test "x$cleaned_value" != "x$with_version_build"; then
24027     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_BUILD has been sanitized from '$with_version_build' to '$cleaned_value'" >&5
24028 $as_echo "$as_me: WARNING: Value for VERSION_BUILD has been sanitized from '$with_version_build' to '$cleaned_value'" >&2;}
24029   fi
24030   VERSION_BUILD=$cleaned_value
24031 
24032     fi
24033   else
24034     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
24035       # Default is to not have a build number.
24036       VERSION_BUILD=""
24037       # FIXME: Until all code can cope with an empty VERSION_BUILD, set it to 0.
24038       VERSION_BUILD=0
24039     fi
24040   fi
24041 
24042 
24043 # Check whether --with-version-major was given.
24044 if test "${with_version_major+set}" = set; then :
24045   withval=$with_version_major; with_version_major_present=true
24046 else
24047   with_version_major_present=false
24048 fi
24049 
24050 
24051   if test "x$with_version_major_present" = xtrue; then
24052     if test "x$with_version_major" = xyes; then
24053       as_fn_error $? "--with-version-major must have a value" "$LINENO" 5
24054     else
24055 
24056   # Additional [] needed to keep m4 from mangling shell constructs.
24057   if  ! [[ "$with_version_major" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
24058     as_fn_error $? "\"$with_version_major\" is not a valid numerical value for VERSION_MAJOR" "$LINENO" 5
24059   fi
24060   # Extract the version number without leading zeros.
24061   cleaned_value=${BASH_REMATCH[1]}
24062   if test "x$cleaned_value" = x; then
24063     # Special case for zero
24064     cleaned_value=${BASH_REMATCH[2]}
24065   fi
24066 
24067   if test $cleaned_value -gt 255; then
24068     as_fn_error $? "VERSION_MAJOR is given as $with_version_major. This is greater than 255 which is not allowed." "$LINENO" 5
24069   fi
24070   if test "x$cleaned_value" != "x$with_version_major"; then
24071     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_MAJOR has been sanitized from '$with_version_major' to '$cleaned_value'" >&5
24072 $as_echo "$as_me: WARNING: Value for VERSION_MAJOR has been sanitized from '$with_version_major' to '$cleaned_value'" >&2;}
24073   fi
24074   VERSION_MAJOR=$cleaned_value
24075 
24076     fi
24077   else
24078     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
24079       # Default is to get value from version-numbers
24080       VERSION_MAJOR="$DEFAULT_VERSION_MAJOR"
24081     fi
24082   fi
24083 
24084 
24085 # Check whether --with-version-minor was given.
24086 if test "${with_version_minor+set}" = set; then :
24087   withval=$with_version_minor; with_version_minor_present=true
24088 else
24089   with_version_minor_present=false
24090 fi
24091 
24092 
24093   if test "x$with_version_minor_present" = xtrue; then
24094     if test "x$with_version_minor" = xyes; then
24095       as_fn_error $? "--with-version-minor must have a value" "$LINENO" 5
24096     elif test "x$with_version_minor" = xno; then
24097       # Interpret --without-* as empty string (i.e. 0) instead of the literal "no"
24098       VERSION_MINOR=0
24099     elif test "x$with_version_minor" = x; then
24100       VERSION_MINOR=0
24101     else
24102 
24103   # Additional [] needed to keep m4 from mangling shell constructs.
24104   if  ! [[ "$with_version_minor" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
24105     as_fn_error $? "\"$with_version_minor\" is not a valid numerical value for VERSION_MINOR" "$LINENO" 5
24106   fi
24107   # Extract the version number without leading zeros.
24108   cleaned_value=${BASH_REMATCH[1]}
24109   if test "x$cleaned_value" = x; then
24110     # Special case for zero
24111     cleaned_value=${BASH_REMATCH[2]}
24112   fi
24113 
24114   if test $cleaned_value -gt 255; then
24115     as_fn_error $? "VERSION_MINOR is given as $with_version_minor. This is greater than 255 which is not allowed." "$LINENO" 5
24116   fi
24117   if test "x$cleaned_value" != "x$with_version_minor"; then
24118     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_MINOR has been sanitized from '$with_version_minor' to '$cleaned_value'" >&5
24119 $as_echo "$as_me: WARNING: Value for VERSION_MINOR has been sanitized from '$with_version_minor' to '$cleaned_value'" >&2;}
24120   fi
24121   VERSION_MINOR=$cleaned_value
24122 
24123     fi
24124   else
24125     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
24126       # Default is 0, if unspecified
24127       VERSION_MINOR=0
24128     fi
24129   fi
24130 
24131 
24132 # Check whether --with-version-security was given.
24133 if test "${with_version_security+set}" = set; then :
24134   withval=$with_version_security; with_version_security_present=true
24135 else
24136   with_version_security_present=false
24137 fi
24138 
24139 
24140   if test "x$with_version_security_present" = xtrue; then
24141     if test "x$with_version_security" = xyes; then
24142       as_fn_error $? "--with-version-security must have a value" "$LINENO" 5
24143     elif test "x$with_version_security" = xno; then
24144       # Interpret --without-* as empty string (i.e. 0) instead of the literal "no"
24145       VERSION_SECURITY=0
24146     elif test "x$with_version_security" = x; then
24147       VERSION_SECURITY=0
24148     else
24149 
24150   # Additional [] needed to keep m4 from mangling shell constructs.
24151   if  ! [[ "$with_version_security" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
24152     as_fn_error $? "\"$with_version_security\" is not a valid numerical value for VERSION_SECURITY" "$LINENO" 5
24153   fi
24154   # Extract the version number without leading zeros.
24155   cleaned_value=${BASH_REMATCH[1]}
24156   if test "x$cleaned_value" = x; then
24157     # Special case for zero
24158     cleaned_value=${BASH_REMATCH[2]}
24159   fi
24160 
24161   if test $cleaned_value -gt 255; then
24162     as_fn_error $? "VERSION_SECURITY is given as $with_version_security. This is greater than 255 which is not allowed." "$LINENO" 5
24163   fi
24164   if test "x$cleaned_value" != "x$with_version_security"; then
24165     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_SECURITY has been sanitized from '$with_version_security' to '$cleaned_value'" >&5
24166 $as_echo "$as_me: WARNING: Value for VERSION_SECURITY has been sanitized from '$with_version_security' to '$cleaned_value'" >&2;}
24167   fi
24168   VERSION_SECURITY=$cleaned_value
24169 
24170     fi
24171   else
24172     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
24173       # Default is 0, if unspecified
24174       VERSION_SECURITY=0
24175     fi
24176   fi
24177 
24178 
24179 # Check whether --with-version-patch was given.
24180 if test "${with_version_patch+set}" = set; then :
24181   withval=$with_version_patch; with_version_patch_present=true
24182 else
24183   with_version_patch_present=false
24184 fi
24185 
24186 
24187   if test "x$with_version_patch_present" = xtrue; then
24188     if test "x$with_version_patch" = xyes; then
24189       as_fn_error $? "--with-version-patch must have a value" "$LINENO" 5
24190     elif test "x$with_version_patch" = xno; then
24191       # Interpret --without-* as empty string (i.e. 0) instead of the literal "no"
24192       VERSION_PATCH=0
24193     elif test "x$with_version_patch" = x; then
24194       VERSION_PATCH=0
24195     else
24196 
24197   # Additional [] needed to keep m4 from mangling shell constructs.
24198   if  ! [[ "$with_version_patch" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
24199     as_fn_error $? "\"$with_version_patch\" is not a valid numerical value for VERSION_PATCH" "$LINENO" 5
24200   fi
24201   # Extract the version number without leading zeros.
24202   cleaned_value=${BASH_REMATCH[1]}
24203   if test "x$cleaned_value" = x; then
24204     # Special case for zero
24205     cleaned_value=${BASH_REMATCH[2]}
24206   fi
24207 
24208   if test $cleaned_value -gt 255; then
24209     as_fn_error $? "VERSION_PATCH is given as $with_version_patch. This is greater than 255 which is not allowed." "$LINENO" 5
24210   fi
24211   if test "x$cleaned_value" != "x$with_version_patch"; then
24212     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_PATCH has been sanitized from '$with_version_patch' to '$cleaned_value'" >&5
24213 $as_echo "$as_me: WARNING: Value for VERSION_PATCH has been sanitized from '$with_version_patch' to '$cleaned_value'" >&2;}
24214   fi
24215   VERSION_PATCH=$cleaned_value
24216 
24217     fi
24218   else
24219     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
24220       # Default is 0, if unspecified
24221       VERSION_PATCH=0
24222     fi
24223   fi
24224 
24225   # Calculate derived version properties
24226 
24227   # Set VERSION_IS_GA based on if VERSION_PRE has a value
24228   if test "x$VERSION_PRE" = x; then
24229     VERSION_IS_GA=true
24230   else
24231     VERSION_IS_GA=false
24232   fi
24233 
24234   # VERSION_NUMBER but always with exactly 4 positions, with 0 for empty positions.
24235   VERSION_NUMBER_FOUR_POSITIONS=$VERSION_MAJOR.$VERSION_MINOR.$VERSION_SECURITY.$VERSION_PATCH
24236 
24237   stripped_version_number=$VERSION_NUMBER_FOUR_POSITIONS
24238   # Strip trailing zeroes from stripped_version_number
24239   for i in 1 2 3 ; do stripped_version_number=${stripped_version_number%.0} ; done
24240   VERSION_NUMBER=$stripped_version_number
24241 
24242   # The complete version string, with additional build information
24243   if test "x$VERSION_BUILD$VERSION_OPT" = x; then
24244     VERSION_STRING=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE}
24245   else
24246     # If either build or opt is set, we need a + separator
24247     VERSION_STRING=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE}+$VERSION_BUILD${VERSION_OPT:+-$VERSION_OPT}
24248   fi
24249 
24250   # The short version string, just VERSION_NUMBER and PRE, if present.
24251   VERSION_SHORT=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE}
24252 
24253   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version string" >&5
24254 $as_echo_n "checking for version string... " >&6; }
24255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VERSION_STRING" >&5
24256 $as_echo "$VERSION_STRING" >&6; }
24257 
24258 
24259 
24260 
24261 
24262 
24263 
24264 
24265 
24266 
24267 
24268 
24269 
24270 
24271 
24272 ###############################################################################
24273 #
24274 # Setup BootJDK, used to bootstrap the build.
24275 #
24276 ###############################################################################
24277 
24278 
24279   BOOT_JDK_FOUND=no
24280 
24281 # Check whether --with-boot-jdk was given.
24282 if test "${with_boot_jdk+set}" = set; then :
24283   withval=$with_boot_jdk;
24284 fi
24285 
24286 
24287   # We look for the Boot JDK through various means, going from more certain to
24288   # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if
24289   # we detected something (if so, the path to the jdk is in BOOT_JDK). But we
24290   # must check if this is indeed valid; otherwise we'll continue looking.
24291 
24292   # Test: Is bootjdk explicitely set by command line arguments?
24293 
24294   if test "x$BOOT_JDK_FOUND" = xno; then
24295     # Now execute the test
24296 
24297   if test "x$with_boot_jdk" != x; then
24298     BOOT_JDK=$with_boot_jdk
24299     BOOT_JDK_FOUND=maybe
24300     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5
24301 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;}
24302   fi
24303 
24304 
24305     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24306     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24307       # Do we have a bin/java?
24308       if test ! -x "$BOOT_JDK/bin/java"; then
24309         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24310 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24311         BOOT_JDK_FOUND=no
24312       else
24313         # Do we have a bin/javac?
24314         if test ! -x "$BOOT_JDK/bin/javac"; then
24315           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24316 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24317           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24318 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24319           BOOT_JDK_FOUND=no
24320         else
24321           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24322           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24323 
24324           # Extra M4 quote needed to protect [] in grep expression.
24325           FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'`
24326           if test "x$FOUND_CORRECT_VERSION" = x; then
24327             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24328 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24329             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
24330 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
24331             BOOT_JDK_FOUND=no
24332           else
24333             # We're done! :-)
24334             BOOT_JDK_FOUND=yes
24335 
24336   # Only process if variable expands to non-empty
24337 
24338   if test "x$BOOT_JDK" != x; then
24339     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24340 
24341   # Input might be given as Windows format, start by converting to
24342   # unix format.
24343   path="$BOOT_JDK"
24344   new_path=`$CYGPATH -u "$path"`
24345 
24346   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24347   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24348   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24349   # "foo.exe" is OK but "foo" is an error.
24350   #
24351   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24352   # It is also a way to make sure we got the proper file name for the real test later on.
24353   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24354   if test "x$test_shortpath" = x; then
24355     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24356 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24357     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24358   fi
24359 
24360   # Call helper function which possibly converts this using DOS-style short mode.
24361   # If so, the updated path is stored in $new_path.
24362 
24363   input_path="$new_path"
24364   # Check if we need to convert this using DOS-style short mode. If the path
24365   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24366   # take no chances and rewrite it.
24367   # Note: m4 eats our [], so we need to use [ and ] instead.
24368   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24369   if test "x$has_forbidden_chars" != x; then
24370     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24371     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24372     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24373     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24374       # Going to short mode and back again did indeed matter. Since short mode is
24375       # case insensitive, let's make it lowercase to improve readability.
24376       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24377       # Now convert it back to Unix-style (cygpath)
24378       input_path=`$CYGPATH -u "$shortmode_path"`
24379       new_path="$input_path"
24380     fi
24381   fi
24382 
24383   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24384   if test "x$test_cygdrive_prefix" = x; then
24385     # As a simple fix, exclude /usr/bin since it's not a real path.
24386     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24387       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24388       # a path prefixed by /cygdrive for fixpath to work.
24389       new_path="$CYGWIN_ROOT_PATH$input_path"
24390     fi
24391   fi
24392 
24393 
24394   if test "x$path" != "x$new_path"; then
24395     BOOT_JDK="$new_path"
24396     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24397 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24398   fi
24399 
24400     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24401 
24402   path="$BOOT_JDK"
24403   has_colon=`$ECHO $path | $GREP ^.:`
24404   new_path="$path"
24405   if test "x$has_colon" = x; then
24406     # Not in mixed or Windows style, start by that.
24407     new_path=`cmd //c echo $path`
24408   fi
24409 
24410 
24411   input_path="$new_path"
24412   # Check if we need to convert this using DOS-style short mode. If the path
24413   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24414   # take no chances and rewrite it.
24415   # Note: m4 eats our [], so we need to use [ and ] instead.
24416   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24417   if test "x$has_forbidden_chars" != x; then
24418     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24419     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24420   fi
24421 
24422 
24423   windows_path="$new_path"
24424   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24425     unix_path=`$CYGPATH -u "$windows_path"`
24426     new_path="$unix_path"
24427   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24428     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24429     new_path="$unix_path"
24430   fi
24431 
24432   if test "x$path" != "x$new_path"; then
24433     BOOT_JDK="$new_path"
24434     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24435 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24436   fi
24437 
24438   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24439   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24440 
24441     else
24442       # We're on a unix platform. Hooray! :)
24443       path="$BOOT_JDK"
24444       has_space=`$ECHO "$path" | $GREP " "`
24445       if test "x$has_space" != x; then
24446         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24447 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24448         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24449       fi
24450 
24451       # Use eval to expand a potential ~
24452       eval path="$path"
24453       if test ! -f "$path" && test ! -d "$path"; then
24454         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24455       fi
24456 
24457       if test -d "$path"; then
24458         BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24459       else
24460         dir="`$DIRNAME "$path"`"
24461         base="`$BASENAME "$path"`"
24462         BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base"
24463       fi
24464     fi
24465   fi
24466 
24467             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24468 $as_echo_n "checking for Boot JDK... " >&6; }
24469             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24470 $as_echo "$BOOT_JDK" >&6; }
24471             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24472 $as_echo_n "checking Boot JDK version... " >&6; }
24473             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24474             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24475 $as_echo "$BOOT_JDK_VERSION" >&6; }
24476           fi # end check jdk version
24477         fi # end check javac
24478       fi # end check java
24479     fi # end check boot jdk found
24480   fi
24481 
24482   if test "x$with_boot_jdk" != x && test "x$BOOT_JDK_FOUND" = xno; then
24483     # Having specified an argument which is incorrect will produce an instant failure;
24484     # we should not go on looking
24485     as_fn_error $? "The path given by --with-boot-jdk does not contain a valid Boot JDK" "$LINENO" 5
24486   fi
24487 
24488   # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home?
24489 
24490   if test "x$BOOT_JDK_FOUND" = xno; then
24491     # Now execute the test
24492 
24493   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
24494     # First check at user selected default
24495 
24496   if test "x$BOOT_JDK_FOUND" = xno; then
24497     # Now execute the test
24498 
24499   if test -x /usr/libexec/java_home; then
24500     BOOT_JDK=`/usr/libexec/java_home `
24501     BOOT_JDK_FOUND=maybe
24502     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home " >&5
24503 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home " >&6;}
24504   fi
24505 
24506 
24507     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24508     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24509       # Do we have a bin/java?
24510       if test ! -x "$BOOT_JDK/bin/java"; then
24511         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24512 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24513         BOOT_JDK_FOUND=no
24514       else
24515         # Do we have a bin/javac?
24516         if test ! -x "$BOOT_JDK/bin/javac"; then
24517           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24518 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24519           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24520 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24521           BOOT_JDK_FOUND=no
24522         else
24523           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24524           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24525 
24526           # Extra M4 quote needed to protect [] in grep expression.
24527           FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'`
24528           if test "x$FOUND_CORRECT_VERSION" = x; then
24529             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24530 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24531             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
24532 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
24533             BOOT_JDK_FOUND=no
24534           else
24535             # We're done! :-)
24536             BOOT_JDK_FOUND=yes
24537 
24538   # Only process if variable expands to non-empty
24539 
24540   if test "x$BOOT_JDK" != x; then
24541     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24542 
24543   # Input might be given as Windows format, start by converting to
24544   # unix format.
24545   path="$BOOT_JDK"
24546   new_path=`$CYGPATH -u "$path"`
24547 
24548   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24549   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24550   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24551   # "foo.exe" is OK but "foo" is an error.
24552   #
24553   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24554   # It is also a way to make sure we got the proper file name for the real test later on.
24555   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24556   if test "x$test_shortpath" = x; then
24557     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24558 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24559     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24560   fi
24561 
24562   # Call helper function which possibly converts this using DOS-style short mode.
24563   # If so, the updated path is stored in $new_path.
24564 
24565   input_path="$new_path"
24566   # Check if we need to convert this using DOS-style short mode. If the path
24567   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24568   # take no chances and rewrite it.
24569   # Note: m4 eats our [], so we need to use [ and ] instead.
24570   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24571   if test "x$has_forbidden_chars" != x; then
24572     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24573     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24574     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24575     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24576       # Going to short mode and back again did indeed matter. Since short mode is
24577       # case insensitive, let's make it lowercase to improve readability.
24578       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24579       # Now convert it back to Unix-style (cygpath)
24580       input_path=`$CYGPATH -u "$shortmode_path"`
24581       new_path="$input_path"
24582     fi
24583   fi
24584 
24585   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24586   if test "x$test_cygdrive_prefix" = x; then
24587     # As a simple fix, exclude /usr/bin since it's not a real path.
24588     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24589       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24590       # a path prefixed by /cygdrive for fixpath to work.
24591       new_path="$CYGWIN_ROOT_PATH$input_path"
24592     fi
24593   fi
24594 
24595 
24596   if test "x$path" != "x$new_path"; then
24597     BOOT_JDK="$new_path"
24598     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24599 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24600   fi
24601 
24602     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24603 
24604   path="$BOOT_JDK"
24605   has_colon=`$ECHO $path | $GREP ^.:`
24606   new_path="$path"
24607   if test "x$has_colon" = x; then
24608     # Not in mixed or Windows style, start by that.
24609     new_path=`cmd //c echo $path`
24610   fi
24611 
24612 
24613   input_path="$new_path"
24614   # Check if we need to convert this using DOS-style short mode. If the path
24615   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24616   # take no chances and rewrite it.
24617   # Note: m4 eats our [], so we need to use [ and ] instead.
24618   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24619   if test "x$has_forbidden_chars" != x; then
24620     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24621     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24622   fi
24623 
24624 
24625   windows_path="$new_path"
24626   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24627     unix_path=`$CYGPATH -u "$windows_path"`
24628     new_path="$unix_path"
24629   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24630     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24631     new_path="$unix_path"
24632   fi
24633 
24634   if test "x$path" != "x$new_path"; then
24635     BOOT_JDK="$new_path"
24636     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24637 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24638   fi
24639 
24640   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24641   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24642 
24643     else
24644       # We're on a unix platform. Hooray! :)
24645       path="$BOOT_JDK"
24646       has_space=`$ECHO "$path" | $GREP " "`
24647       if test "x$has_space" != x; then
24648         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24649 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24650         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24651       fi
24652 
24653       # Use eval to expand a potential ~
24654       eval path="$path"
24655       if test ! -f "$path" && test ! -d "$path"; then
24656         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24657       fi
24658 
24659       if test -d "$path"; then
24660         BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24661       else
24662         dir="`$DIRNAME "$path"`"
24663         base="`$BASENAME "$path"`"
24664         BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base"
24665       fi
24666     fi
24667   fi
24668 
24669             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24670 $as_echo_n "checking for Boot JDK... " >&6; }
24671             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24672 $as_echo "$BOOT_JDK" >&6; }
24673             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24674 $as_echo_n "checking Boot JDK version... " >&6; }
24675             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24676             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24677 $as_echo "$BOOT_JDK_VERSION" >&6; }
24678           fi # end check jdk version
24679         fi # end check javac
24680       fi # end check java
24681     fi # end check boot jdk found
24682   fi
24683 
24684     # If that did not work out (e.g. too old), try explicit versions instead
24685 
24686   if test "x$BOOT_JDK_FOUND" = xno; then
24687     # Now execute the test
24688 
24689   if test -x /usr/libexec/java_home; then
24690     BOOT_JDK=`/usr/libexec/java_home -v 1.9`
24691     BOOT_JDK_FOUND=maybe
24692     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&5
24693 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&6;}
24694   fi
24695 
24696 
24697     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24698     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24699       # Do we have a bin/java?
24700       if test ! -x "$BOOT_JDK/bin/java"; then
24701         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24702 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24703         BOOT_JDK_FOUND=no
24704       else
24705         # Do we have a bin/javac?
24706         if test ! -x "$BOOT_JDK/bin/javac"; then
24707           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24708 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24709           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24710 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24711           BOOT_JDK_FOUND=no
24712         else
24713           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24714           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24715 
24716           # Extra M4 quote needed to protect [] in grep expression.
24717           FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'`
24718           if test "x$FOUND_CORRECT_VERSION" = x; then
24719             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24720 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24721             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
24722 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
24723             BOOT_JDK_FOUND=no
24724           else
24725             # We're done! :-)
24726             BOOT_JDK_FOUND=yes
24727 
24728   # Only process if variable expands to non-empty
24729 
24730   if test "x$BOOT_JDK" != x; then
24731     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24732 
24733   # Input might be given as Windows format, start by converting to
24734   # unix format.
24735   path="$BOOT_JDK"
24736   new_path=`$CYGPATH -u "$path"`
24737 
24738   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24739   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24740   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24741   # "foo.exe" is OK but "foo" is an error.
24742   #
24743   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24744   # It is also a way to make sure we got the proper file name for the real test later on.
24745   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24746   if test "x$test_shortpath" = x; then
24747     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24748 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24749     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24750   fi
24751 
24752   # Call helper function which possibly converts this using DOS-style short mode.
24753   # If so, the updated path is stored in $new_path.
24754 
24755   input_path="$new_path"
24756   # Check if we need to convert this using DOS-style short mode. If the path
24757   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24758   # take no chances and rewrite it.
24759   # Note: m4 eats our [], so we need to use [ and ] instead.
24760   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24761   if test "x$has_forbidden_chars" != x; then
24762     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24763     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24764     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24765     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24766       # Going to short mode and back again did indeed matter. Since short mode is
24767       # case insensitive, let's make it lowercase to improve readability.
24768       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24769       # Now convert it back to Unix-style (cygpath)
24770       input_path=`$CYGPATH -u "$shortmode_path"`
24771       new_path="$input_path"
24772     fi
24773   fi
24774 
24775   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24776   if test "x$test_cygdrive_prefix" = x; then
24777     # As a simple fix, exclude /usr/bin since it's not a real path.
24778     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24779       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24780       # a path prefixed by /cygdrive for fixpath to work.
24781       new_path="$CYGWIN_ROOT_PATH$input_path"
24782     fi
24783   fi
24784 
24785 
24786   if test "x$path" != "x$new_path"; then
24787     BOOT_JDK="$new_path"
24788     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24789 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24790   fi
24791 
24792     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24793 
24794   path="$BOOT_JDK"
24795   has_colon=`$ECHO $path | $GREP ^.:`
24796   new_path="$path"
24797   if test "x$has_colon" = x; then
24798     # Not in mixed or Windows style, start by that.
24799     new_path=`cmd //c echo $path`
24800   fi
24801 
24802 
24803   input_path="$new_path"
24804   # Check if we need to convert this using DOS-style short mode. If the path
24805   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24806   # take no chances and rewrite it.
24807   # Note: m4 eats our [], so we need to use [ and ] instead.
24808   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24809   if test "x$has_forbidden_chars" != x; then
24810     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24811     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24812   fi
24813 
24814 
24815   windows_path="$new_path"
24816   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24817     unix_path=`$CYGPATH -u "$windows_path"`
24818     new_path="$unix_path"
24819   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24820     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24821     new_path="$unix_path"
24822   fi
24823 
24824   if test "x$path" != "x$new_path"; then
24825     BOOT_JDK="$new_path"
24826     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24827 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24828   fi
24829 
24830   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24831   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24832 
24833     else
24834       # We're on a unix platform. Hooray! :)
24835       path="$BOOT_JDK"
24836       has_space=`$ECHO "$path" | $GREP " "`
24837       if test "x$has_space" != x; then
24838         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24839 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24840         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24841       fi
24842 
24843       # Use eval to expand a potential ~
24844       eval path="$path"
24845       if test ! -f "$path" && test ! -d "$path"; then
24846         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24847       fi
24848 
24849       if test -d "$path"; then
24850         BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24851       else
24852         dir="`$DIRNAME "$path"`"
24853         base="`$BASENAME "$path"`"
24854         BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base"
24855       fi
24856     fi
24857   fi
24858 
24859             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24860 $as_echo_n "checking for Boot JDK... " >&6; }
24861             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24862 $as_echo "$BOOT_JDK" >&6; }
24863             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24864 $as_echo_n "checking Boot JDK version... " >&6; }
24865             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24866             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24867 $as_echo "$BOOT_JDK_VERSION" >&6; }
24868           fi # end check jdk version
24869         fi # end check javac
24870       fi # end check java
24871     fi # end check boot jdk found
24872   fi
24873 
24874 
24875   if test "x$BOOT_JDK_FOUND" = xno; then
24876     # Now execute the test
24877 
24878   if test -x /usr/libexec/java_home; then
24879     BOOT_JDK=`/usr/libexec/java_home -v 1.8`
24880     BOOT_JDK_FOUND=maybe
24881     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&5
24882 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&6;}
24883   fi
24884 
24885 
24886     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24887     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24888       # Do we have a bin/java?
24889       if test ! -x "$BOOT_JDK/bin/java"; then
24890         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24891 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24892         BOOT_JDK_FOUND=no
24893       else
24894         # Do we have a bin/javac?
24895         if test ! -x "$BOOT_JDK/bin/javac"; then
24896           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24897 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24898           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24899 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24900           BOOT_JDK_FOUND=no
24901         else
24902           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24903           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24904 
24905           # Extra M4 quote needed to protect [] in grep expression.
24906           FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'`
24907           if test "x$FOUND_CORRECT_VERSION" = x; then
24908             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24909 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24910             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
24911 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
24912             BOOT_JDK_FOUND=no
24913           else
24914             # We're done! :-)
24915             BOOT_JDK_FOUND=yes
24916 
24917   # Only process if variable expands to non-empty
24918 
24919   if test "x$BOOT_JDK" != x; then
24920     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24921 
24922   # Input might be given as Windows format, start by converting to
24923   # unix format.
24924   path="$BOOT_JDK"
24925   new_path=`$CYGPATH -u "$path"`
24926 
24927   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24928   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24929   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24930   # "foo.exe" is OK but "foo" is an error.
24931   #
24932   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24933   # It is also a way to make sure we got the proper file name for the real test later on.
24934   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24935   if test "x$test_shortpath" = x; then
24936     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24937 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24938     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24939   fi
24940 
24941   # Call helper function which possibly converts this using DOS-style short mode.
24942   # If so, the updated path is stored in $new_path.
24943 
24944   input_path="$new_path"
24945   # Check if we need to convert this using DOS-style short mode. If the path
24946   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24947   # take no chances and rewrite it.
24948   # Note: m4 eats our [], so we need to use [ and ] instead.
24949   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24950   if test "x$has_forbidden_chars" != x; then
24951     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24952     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24953     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24954     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24955       # Going to short mode and back again did indeed matter. Since short mode is
24956       # case insensitive, let's make it lowercase to improve readability.
24957       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24958       # Now convert it back to Unix-style (cygpath)
24959       input_path=`$CYGPATH -u "$shortmode_path"`
24960       new_path="$input_path"
24961     fi
24962   fi
24963 
24964   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24965   if test "x$test_cygdrive_prefix" = x; then
24966     # As a simple fix, exclude /usr/bin since it's not a real path.
24967     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24968       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24969       # a path prefixed by /cygdrive for fixpath to work.
24970       new_path="$CYGWIN_ROOT_PATH$input_path"
24971     fi
24972   fi
24973 
24974 
24975   if test "x$path" != "x$new_path"; then
24976     BOOT_JDK="$new_path"
24977     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24978 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24979   fi
24980 
24981     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24982 
24983   path="$BOOT_JDK"
24984   has_colon=`$ECHO $path | $GREP ^.:`
24985   new_path="$path"
24986   if test "x$has_colon" = x; then
24987     # Not in mixed or Windows style, start by that.
24988     new_path=`cmd //c echo $path`
24989   fi
24990 
24991 
24992   input_path="$new_path"
24993   # Check if we need to convert this using DOS-style short mode. If the path
24994   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24995   # take no chances and rewrite it.
24996   # Note: m4 eats our [], so we need to use [ and ] instead.
24997   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24998   if test "x$has_forbidden_chars" != x; then
24999     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
25000     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
25001   fi
25002 
25003 
25004   windows_path="$new_path"
25005   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
25006     unix_path=`$CYGPATH -u "$windows_path"`
25007     new_path="$unix_path"
25008   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
25009     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
25010     new_path="$unix_path"
25011   fi
25012 
25013   if test "x$path" != "x$new_path"; then
25014     BOOT_JDK="$new_path"
25015     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
25016 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
25017   fi
25018 
25019   # Save the first 10 bytes of this path to the storage, so fixpath can work.
25020   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
25021 
25022     else
25023       # We're on a unix platform. Hooray! :)
25024       path="$BOOT_JDK"
25025       has_space=`$ECHO "$path" | $GREP " "`
25026       if test "x$has_space" != x; then
25027         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
25028 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
25029         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
25030       fi
25031 
25032       # Use eval to expand a potential ~
25033       eval path="$path"
25034       if test ! -f "$path" && test ! -d "$path"; then
25035         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
25036       fi
25037 
25038       if test -d "$path"; then
25039         BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
25040       else
25041         dir="`$DIRNAME "$path"`"
25042         base="`$BASENAME "$path"`"
25043         BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base"
25044       fi
25045     fi
25046   fi
25047 
25048             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
25049 $as_echo_n "checking for Boot JDK... " >&6; }
25050             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
25051 $as_echo "$BOOT_JDK" >&6; }
25052             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
25053 $as_echo_n "checking Boot JDK version... " >&6; }
25054             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
25055             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
25056 $as_echo "$BOOT_JDK_VERSION" >&6; }
25057           fi # end check jdk version
25058         fi # end check javac
25059       fi # end check java
25060     fi # end check boot jdk found
25061   fi
25062 
25063 
25064   if test "x$BOOT_JDK_FOUND" = xno; then
25065     # Now execute the test
25066 
25067   if test -x /usr/libexec/java_home; then
25068     BOOT_JDK=`/usr/libexec/java_home -v 1.7`
25069     BOOT_JDK_FOUND=maybe
25070     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&5
25071 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&6;}
25072   fi
25073 
25074 
25075     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
25076     if test "x$BOOT_JDK_FOUND" = xmaybe; then
25077       # Do we have a bin/java?
25078       if test ! -x "$BOOT_JDK/bin/java"; then
25079         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
25080 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
25081         BOOT_JDK_FOUND=no
25082       else
25083         # Do we have a bin/javac?
25084         if test ! -x "$BOOT_JDK/bin/javac"; then
25085           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
25086 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
25087           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
25088 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
25089           BOOT_JDK_FOUND=no
25090         else
25091           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
25092           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
25093 
25094           # Extra M4 quote needed to protect [] in grep expression.
25095           FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'`
25096           if test "x$FOUND_CORRECT_VERSION" = x; then
25097             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
25098 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
25099             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
25100 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
25101             BOOT_JDK_FOUND=no
25102           else
25103             # We're done! :-)
25104             BOOT_JDK_FOUND=yes
25105 
25106   # Only process if variable expands to non-empty
25107 
25108   if test "x$BOOT_JDK" != x; then
25109     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
25110 
25111   # Input might be given as Windows format, start by converting to
25112   # unix format.
25113   path="$BOOT_JDK"
25114   new_path=`$CYGPATH -u "$path"`
25115 
25116   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
25117   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
25118   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
25119   # "foo.exe" is OK but "foo" is an error.
25120   #
25121   # This test is therefore slightly more accurate than "test -f" to check for file precense.
25122   # It is also a way to make sure we got the proper file name for the real test later on.
25123   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
25124   if test "x$test_shortpath" = x; then
25125     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
25126 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
25127     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
25128   fi
25129 
25130   # Call helper function which possibly converts this using DOS-style short mode.
25131   # If so, the updated path is stored in $new_path.
25132 
25133   input_path="$new_path"
25134   # Check if we need to convert this using DOS-style short mode. If the path
25135   # contains just simple characters, use it. Otherwise (spaces, weird characters),
25136   # take no chances and rewrite it.
25137   # Note: m4 eats our [], so we need to use [ and ] instead.
25138   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
25139   if test "x$has_forbidden_chars" != x; then
25140     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
25141     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
25142     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
25143     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
25144       # Going to short mode and back again did indeed matter. Since short mode is
25145       # case insensitive, let's make it lowercase to improve readability.
25146       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
25147       # Now convert it back to Unix-style (cygpath)
25148       input_path=`$CYGPATH -u "$shortmode_path"`
25149       new_path="$input_path"
25150     fi
25151   fi
25152 
25153   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
25154   if test "x$test_cygdrive_prefix" = x; then
25155     # As a simple fix, exclude /usr/bin since it's not a real path.
25156     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
25157       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
25158       # a path prefixed by /cygdrive for fixpath to work.
25159       new_path="$CYGWIN_ROOT_PATH$input_path"
25160     fi
25161   fi
25162 
25163 
25164   if test "x$path" != "x$new_path"; then
25165     BOOT_JDK="$new_path"
25166     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
25167 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
25168   fi
25169 
25170     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
25171 
25172   path="$BOOT_JDK"
25173   has_colon=`$ECHO $path | $GREP ^.:`
25174   new_path="$path"
25175   if test "x$has_colon" = x; then
25176     # Not in mixed or Windows style, start by that.
25177     new_path=`cmd //c echo $path`
25178   fi
25179 
25180 
25181   input_path="$new_path"
25182   # Check if we need to convert this using DOS-style short mode. If the path
25183   # contains just simple characters, use it. Otherwise (spaces, weird characters),
25184   # take no chances and rewrite it.
25185   # Note: m4 eats our [], so we need to use [ and ] instead.
25186   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
25187   if test "x$has_forbidden_chars" != x; then
25188     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
25189     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
25190   fi
25191 
25192 
25193   windows_path="$new_path"
25194   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
25195     unix_path=`$CYGPATH -u "$windows_path"`
25196     new_path="$unix_path"
25197   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
25198     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
25199     new_path="$unix_path"
25200   fi
25201 
25202   if test "x$path" != "x$new_path"; then
25203     BOOT_JDK="$new_path"
25204     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
25205 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
25206   fi
25207 
25208   # Save the first 10 bytes of this path to the storage, so fixpath can work.
25209   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
25210 
25211     else
25212       # We're on a unix platform. Hooray! :)
25213       path="$BOOT_JDK"
25214       has_space=`$ECHO "$path" | $GREP " "`
25215       if test "x$has_space" != x; then
25216         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
25217 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
25218         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
25219       fi
25220 
25221       # Use eval to expand a potential ~
25222       eval path="$path"
25223       if test ! -f "$path" && test ! -d "$path"; then
25224         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
25225       fi
25226 
25227       if test -d "$path"; then
25228         BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
25229       else
25230         dir="`$DIRNAME "$path"`"
25231         base="`$BASENAME "$path"`"
25232         BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base"
25233       fi
25234     fi
25235   fi
25236 
25237             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
25238 $as_echo_n "checking for Boot JDK... " >&6; }
25239             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
25240 $as_echo "$BOOT_JDK" >&6; }
25241             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
25242 $as_echo_n "checking Boot JDK version... " >&6; }
25243             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
25244             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
25245 $as_echo "$BOOT_JDK_VERSION" >&6; }
25246           fi # end check jdk version
25247         fi # end check javac
25248       fi # end check java
25249     fi # end check boot jdk found
25250   fi
25251 
25252   fi
25253 
25254 
25255     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
25256     if test "x$BOOT_JDK_FOUND" = xmaybe; then
25257       # Do we have a bin/java?
25258       if test ! -x "$BOOT_JDK/bin/java"; then
25259         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
25260 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
25261         BOOT_JDK_FOUND=no
25262       else
25263         # Do we