1 #!/bin/bash
   2 #
   3 # ##########################################################
   4 # ### THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. ###
   5 # ##########################################################
   6 #
   7 #! /bin/sh
   8 # Guess values for system-dependent variables and create Makefiles.
   9 # Generated by GNU Autoconf 2.69 for OpenJDK jdk9.
  10 #
  11 # Report bugs to <build-dev@openjdk.java.net>.
  12 #
  13 #
  14 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  15 #
  16 #
  17 # This configure script is free software; the Free Software Foundation
  18 # gives unlimited permission to copy, distribute and modify it.
  19 ## -------------------- ##
  20 ## M4sh Initialization. ##
  21 ## -------------------- ##
  22 
  23 # Be more Bourne compatible
  24 DUALCASE=1; export DUALCASE # for MKS sh
  25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  26   emulate sh
  27   NULLCMD=:
  28   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  29   # is contrary to our usage.  Disable this feature.
  30   alias -g '${1+"$@"}'='"$@"'
  31   setopt NO_GLOB_SUBST
  32 else
  33   case `(set -o) 2>/dev/null` in #(
  34   *posix*) :
  35     set -o posix ;; #(
  36   *) :
  37      ;;
  38 esac
  39 fi
  40 
  41 
  42 as_nl='
  43 '
  44 export as_nl
  45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
  46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  49 # Prefer a ksh shell builtin over an external printf program on Solaris,
  50 # but without wasting forks for bash or zsh.
  51 if test -z "$BASH_VERSION$ZSH_VERSION" \
  52     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  53   as_echo='print -r --'
  54   as_echo_n='print -rn --'
  55 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  56   as_echo='printf %s\n'
  57   as_echo_n='printf %s'
  58 else
  59   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  60     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  61     as_echo_n='/usr/ucb/echo -n'
  62   else
  63     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  64     as_echo_n_body='eval
  65       arg=$1;
  66       case $arg in #(
  67       *"$as_nl"*)
  68         expr "X$arg" : "X\\(.*\\)$as_nl";
  69         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  70       esac;
  71       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  72     '
  73     export as_echo_n_body
  74     as_echo_n='sh -c $as_echo_n_body as_echo'
  75   fi
  76   export as_echo_body
  77   as_echo='sh -c $as_echo_body as_echo'
  78 fi
  79 
  80 # The user is always right.
  81 if test "${PATH_SEPARATOR+set}" != set; then
  82   PATH_SEPARATOR=:
  83   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  84     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  85       PATH_SEPARATOR=';'
  86   }
  87 fi
  88 
  89 
  90 # IFS
  91 # We need space, tab and new line, in precisely that order.  Quoting is
  92 # there to prevent editors from complaining about space-tab.
  93 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  94 # splitting by setting IFS to empty value.)
  95 IFS=" ""        $as_nl"
  96 
  97 # Find who we are.  Look in the path if we contain no directory separator.
  98 as_myself=
  99 case $0 in #((
 100   *[\\/]* ) as_myself=$0 ;;
 101   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 102 for as_dir in $PATH
 103 do
 104   IFS=$as_save_IFS
 105   test -z "$as_dir" && as_dir=.
 106     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 107   done
 108 IFS=$as_save_IFS
 109 
 110      ;;
 111 esac
 112 # We did not find ourselves, most probably we were run as `sh COMMAND'
 113 # in which case we are not to be found in the path.
 114 if test "x$as_myself" = x; then
 115   as_myself=$0
 116 fi
 117 if test ! -f "$as_myself"; then
 118   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 119   exit 1
 120 fi
 121 
 122 # Unset variables that we do not need and which cause bugs (e.g. in
 123 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 124 # suppresses any "Segmentation fault" message there.  '((' could
 125 # trigger a bug in pdksh 5.2.14.
 126 for as_var in BASH_ENV ENV MAIL MAILPATH
 127 do eval test x\${$as_var+set} = xset \
 128   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 129 done
 130 PS1='$ '
 131 PS2='> '
 132 PS4='+ '
 133 
 134 # NLS nuisances.
 135 LC_ALL=C
 136 export LC_ALL
 137 LANGUAGE=C
 138 export LANGUAGE
 139 
 140 # CDPATH.
 141 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 142 
 143 # Use a proper internal environment variable to ensure we don't fall
 144   # into an infinite loop, continuously re-executing ourselves.
 145   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
 146     _as_can_reexec=no; export _as_can_reexec;
 147     # We cannot yet assume a decent shell, so we have to provide a
 148 # neutralization value for shells without unset; and this also
 149 # works around shells that cannot unset nonexistent variables.
 150 # Preserve -v and -x to the replacement shell.
 151 BASH_ENV=/dev/null
 152 ENV=/dev/null
 153 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 154 case $- in # ((((
 155   *v*x* | *x*v* ) as_opts=-vx ;;
 156   *v* ) as_opts=-v ;;
 157   *x* ) as_opts=-x ;;
 158   * ) as_opts= ;;
 159 esac
 160 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
 161 # Admittedly, this is quite paranoid, since all the known shells bail
 162 # out after a failed `exec'.
 163 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
 164 as_fn_exit 255
 165   fi
 166   # We don't want this to propagate to other subprocesses.
 167           { _as_can_reexec=; unset _as_can_reexec;}
 168 if test "x$CONFIG_SHELL" = x; then
 169   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
 170   emulate sh
 171   NULLCMD=:
 172   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
 173   # is contrary to our usage.  Disable this feature.
 174   alias -g '\${1+\"\$@\"}'='\"\$@\"'
 175   setopt NO_GLOB_SUBST
 176 else
 177   case \`(set -o) 2>/dev/null\` in #(
 178   *posix*) :
 179     set -o posix ;; #(
 180   *) :
 181      ;;
 182 esac
 183 fi
 184 "
 185   as_required="as_fn_return () { (exit \$1); }
 186 as_fn_success () { as_fn_return 0; }
 187 as_fn_failure () { as_fn_return 1; }
 188 as_fn_ret_success () { return 0; }
 189 as_fn_ret_failure () { return 1; }
 190 
 191 exitcode=0
 192 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
 193 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
 194 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
 195 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
 196 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
 197 
 198 else
 199   exitcode=1; echo positional parameters were not saved.
 200 fi
 201 test x\$exitcode = x0 || exit 1
 202 test -x / || exit 1"
 203   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
 204   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
 205   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
 206   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
 207 test \$(( 1 + 1 )) = 2 || exit 1"
 208   if (eval "$as_required") 2>/dev/null; then :
 209   as_have_required=yes
 210 else
 211   as_have_required=no
 212 fi
 213   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
 214 
 215 else
 216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 217 as_found=false
 218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 219 do
 220   IFS=$as_save_IFS
 221   test -z "$as_dir" && as_dir=.
 222   as_found=:
 223   case $as_dir in #(
 224          /*)
 225            for as_base in sh bash ksh sh5; do
 226              # Try only shells that exist, to save several forks.
 227              as_shell=$as_dir/$as_base
 228              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 229                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
 230   CONFIG_SHELL=$as_shell as_have_required=yes
 231                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
 232   break 2
 233 fi
 234 fi
 235            done;;
 236        esac
 237   as_found=false
 238 done
 239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
 240               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
 241   CONFIG_SHELL=$SHELL as_have_required=yes
 242 fi; }
 243 IFS=$as_save_IFS
 244 
 245 
 246       if test "x$CONFIG_SHELL" != x; then :
 247   export CONFIG_SHELL
 248              # We cannot yet assume a decent shell, so we have to provide a
 249 # neutralization value for shells without unset; and this also
 250 # works around shells that cannot unset nonexistent variables.
 251 # Preserve -v and -x to the replacement shell.
 252 BASH_ENV=/dev/null
 253 ENV=/dev/null
 254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 255 case $- in # ((((
 256   *v*x* | *x*v* ) as_opts=-vx ;;
 257   *v* ) as_opts=-v ;;
 258   *x* ) as_opts=-x ;;
 259   * ) as_opts= ;;
 260 esac
 261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
 262 # Admittedly, this is quite paranoid, since all the known shells bail
 263 # out after a failed `exec'.
 264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
 265 exit 255
 266 fi
 267 
 268     if test x$as_have_required = xno; then :
 269   $as_echo "$0: This script requires a shell more modern than all"
 270   $as_echo "$0: the shells that I found on your system."
 271   if test x${ZSH_VERSION+set} = xset ; then
 272     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
 273     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
 274   else
 275     $as_echo "$0: Please tell bug-autoconf@gnu.org and
 276 $0: build-dev@openjdk.java.net about your system, including
 277 $0: any error possibly output before this message. Then
 278 $0: install a modern shell, or manually run the script
 279 $0: under such a shell if you do have one."
 280   fi
 281   exit 1
 282 fi
 283 fi
 284 fi
 285 SHELL=${CONFIG_SHELL-/bin/sh}
 286 export SHELL
 287 # Unset more variables known to interfere with behavior of common tools.
 288 CLICOLOR_FORCE= GREP_OPTIONS=
 289 unset CLICOLOR_FORCE GREP_OPTIONS
 290 
 291 ## --------------------- ##
 292 ## M4sh Shell Functions. ##
 293 ## --------------------- ##
 294 # as_fn_unset VAR
 295 # ---------------
 296 # Portably unset VAR.
 297 as_fn_unset ()
 298 {
 299   { eval $1=; unset $1;}
 300 }
 301 as_unset=as_fn_unset
 302 
 303 # as_fn_set_status STATUS
 304 # -----------------------
 305 # Set $? to STATUS, without forking.
 306 as_fn_set_status ()
 307 {
 308   return $1
 309 } # as_fn_set_status
 310 
 311 # as_fn_exit STATUS
 312 # -----------------
 313 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 314 as_fn_exit ()
 315 {
 316   set +e
 317   as_fn_set_status $1
 318   exit $1
 319 } # as_fn_exit
 320 
 321 # as_fn_mkdir_p
 322 # -------------
 323 # Create "$as_dir" as a directory, including parents if necessary.
 324 as_fn_mkdir_p ()
 325 {
 326 
 327   case $as_dir in #(
 328   -*) as_dir=./$as_dir;;
 329   esac
 330   test -d "$as_dir" || eval $as_mkdir_p || {
 331     as_dirs=
 332     while :; do
 333       case $as_dir in #(
 334       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 335       *) as_qdir=$as_dir;;
 336       esac
 337       as_dirs="'$as_qdir' $as_dirs"
 338       as_dir=`$as_dirname -- "$as_dir" ||
 339 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 340          X"$as_dir" : 'X\(//\)[^/]' \| \
 341          X"$as_dir" : 'X\(//\)$' \| \
 342          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 343 $as_echo X"$as_dir" |
 344     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 345             s//\1/
 346             q
 347           }
 348           /^X\(\/\/\)[^/].*/{
 349             s//\1/
 350             q
 351           }
 352           /^X\(\/\/\)$/{
 353             s//\1/
 354             q
 355           }
 356           /^X\(\/\).*/{
 357             s//\1/
 358             q
 359           }
 360           s/.*/./; q'`
 361       test -d "$as_dir" && break
 362     done
 363     test -z "$as_dirs" || eval "mkdir $as_dirs"
 364   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 365 
 366 
 367 } # as_fn_mkdir_p
 368 
 369 # as_fn_executable_p FILE
 370 # -----------------------
 371 # Test if FILE is an executable regular file.
 372 as_fn_executable_p ()
 373 {
 374   test -f "$1" && test -x "$1"
 375 } # as_fn_executable_p
 376 # as_fn_append VAR VALUE
 377 # ----------------------
 378 # Append the text in VALUE to the end of the definition contained in VAR. Take
 379 # advantage of any shell optimizations that allow amortized linear growth over
 380 # repeated appends, instead of the typical quadratic growth present in naive
 381 # implementations.
 382 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 383   eval 'as_fn_append ()
 384   {
 385     eval $1+=\$2
 386   }'
 387 else
 388   as_fn_append ()
 389   {
 390     eval $1=\$$1\$2
 391   }
 392 fi # as_fn_append
 393 
 394 # as_fn_arith ARG...
 395 # ------------------
 396 # Perform arithmetic evaluation on the ARGs, and store the result in the
 397 # global $as_val. Take advantage of shells that can avoid forks. The arguments
 398 # must be portable across $(()) and expr.
 399 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 400   eval 'as_fn_arith ()
 401   {
 402     as_val=$(( $* ))
 403   }'
 404 else
 405   as_fn_arith ()
 406   {
 407     as_val=`expr "$@" || test $? -eq 1`
 408   }
 409 fi # as_fn_arith
 410 
 411 
 412 # as_fn_error STATUS ERROR [LINENO LOG_FD]
 413 # ----------------------------------------
 414 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 415 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 416 # script with STATUS, using 1 if that was 0.
 417 as_fn_error ()
 418 {
 419   as_status=$1; test $as_status -eq 0 && as_status=1
 420   if test "$4"; then
 421     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 422     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 423   fi
 424   $as_echo "$as_me: error: $2" >&2
 425   as_fn_exit $as_status
 426 } # as_fn_error
 427 
 428 if expr a : '\(a\)' >/dev/null 2>&1 &&
 429    test "X`expr 00001 : '.*\(...\)'`" = X001; then
 430   as_expr=expr
 431 else
 432   as_expr=false
 433 fi
 434 
 435 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 436   as_basename=basename
 437 else
 438   as_basename=false
 439 fi
 440 
 441 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 442   as_dirname=dirname
 443 else
 444   as_dirname=false
 445 fi
 446 
 447 as_me=`$as_basename -- "$0" ||
 448 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 449          X"$0" : 'X\(//\)$' \| \
 450          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 451 $as_echo X/"$0" |
 452     sed '/^.*\/\([^/][^/]*\)\/*$/{
 453             s//\1/
 454             q
 455           }
 456           /^X\/\(\/\/\)$/{
 457             s//\1/
 458             q
 459           }
 460           /^X\/\(\/\).*/{
 461             s//\1/
 462             q
 463           }
 464           s/.*/./; q'`
 465 
 466 # Avoid depending upon Character Ranges.
 467 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 468 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 469 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 470 as_cr_digits='0123456789'
 471 as_cr_alnum=$as_cr_Letters$as_cr_digits
 472 
 473 
 474   as_lineno_1=$LINENO as_lineno_1a=$LINENO
 475   as_lineno_2=$LINENO as_lineno_2a=$LINENO
 476   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
 477   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
 478   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
 479   sed -n '
 480     p
 481     /[$]LINENO/=
 482   ' <$as_myself |
 483     sed '
 484       s/[$]LINENO.*/&-/
 485       t lineno
 486       b
 487       :lineno
 488       N
 489       :loop
 490       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 491       t loop
 492       s/-\n.*//
 493     ' >$as_me.lineno &&
 494   chmod +x "$as_me.lineno" ||
 495     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
 496 
 497   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
 498   # already done that, so ensure we don't try to do so again and fall
 499   # in an infinite loop.  This has already happened in practice.
 500   _as_can_reexec=no; export _as_can_reexec
 501   # Don't try to exec as it changes $[0], causing all sort of problems
 502   # (the dirname of $[0] is not the place where we might find the
 503   # original and so on.  Autoconf is especially sensitive to this).
 504   . "./$as_me.lineno"
 505   # Exit status is that of the last command.
 506   exit
 507 }
 508 
 509 ECHO_C= ECHO_N= ECHO_T=
 510 case `echo -n x` in #(((((
 511 -n*)
 512   case `echo 'xy\c'` in
 513   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 514   xy)  ECHO_C='\c';;
 515   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 516        ECHO_T=' ';;
 517   esac;;
 518 *)
 519   ECHO_N='-n';;
 520 esac
 521 
 522 rm -f conf$$ conf$$.exe conf$$.file
 523 if test -d conf$$.dir; then
 524   rm -f conf$$.dir/conf$$.file
 525 else
 526   rm -f conf$$.dir
 527   mkdir conf$$.dir 2>/dev/null
 528 fi
 529 if (echo >conf$$.file) 2>/dev/null; then
 530   if ln -s conf$$.file conf$$ 2>/dev/null; then
 531     as_ln_s='ln -s'
 532     # ... but there are two gotchas:
 533     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 534     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 535     # In both cases, we have to default to `cp -pR'.
 536     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 537       as_ln_s='cp -pR'
 538   elif ln conf$$.file conf$$ 2>/dev/null; then
 539     as_ln_s=ln
 540   else
 541     as_ln_s='cp -pR'
 542   fi
 543 else
 544   as_ln_s='cp -pR'
 545 fi
 546 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 547 rmdir conf$$.dir 2>/dev/null
 548 
 549 if mkdir -p . 2>/dev/null; then
 550   as_mkdir_p='mkdir -p "$as_dir"'
 551 else
 552   test -d ./-p && rmdir ./-p
 553   as_mkdir_p=false
 554 fi
 555 
 556 as_test_x='test -x'
 557 as_executable_p=as_fn_executable_p
 558 
 559 # Sed expression to map a string onto a valid CPP name.
 560 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 561 
 562 # Sed expression to map a string onto a valid variable name.
 563 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 564 
 565 
 566 test -n "$DJDIR" || exec 7<&0 </dev/null
 567 exec 6>&1
 568 
 569 # Name of the host.
 570 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
 571 # so uname gets run too.
 572 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 573 
 574 #
 575 # Initializations.
 576 #
 577 ac_default_prefix=/usr/local
 578 ac_clean_files=
 579 ac_config_libobj_dir=.
 580 LIBOBJS=
 581 cross_compiling=no
 582 subdirs=
 583 MFLAGS=
 584 MAKEFLAGS=
 585 
 586 # Identity of this package.
 587 PACKAGE_NAME='OpenJDK'
 588 PACKAGE_TARNAME='openjdk'
 589 PACKAGE_VERSION='jdk9'
 590 PACKAGE_STRING='OpenJDK jdk9'
 591 PACKAGE_BUGREPORT='build-dev@openjdk.java.net'
 592 PACKAGE_URL='http://openjdk.java.net'
 593 
 594 # Factoring default headers for most tests.
 595 ac_includes_default="\
 596 #include <stdio.h>
 597 #ifdef HAVE_SYS_TYPES_H
 598 # include <sys/types.h>
 599 #endif
 600 #ifdef HAVE_SYS_STAT_H
 601 # include <sys/stat.h>
 602 #endif
 603 #ifdef STDC_HEADERS
 604 # include <stdlib.h>
 605 # include <stddef.h>
 606 #else
 607 # ifdef HAVE_STDLIB_H
 608 #  include <stdlib.h>
 609 # endif
 610 #endif
 611 #ifdef HAVE_STRING_H
 612 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 613 #  include <memory.h>
 614 # endif
 615 # include <string.h>
 616 #endif
 617 #ifdef HAVE_STRINGS_H
 618 # include <strings.h>
 619 #endif
 620 #ifdef HAVE_INTTYPES_H
 621 # include <inttypes.h>
 622 #endif
 623 #ifdef HAVE_STDINT_H
 624 # include <stdint.h>
 625 #endif
 626 #ifdef HAVE_UNISTD_H
 627 # include <unistd.h>
 628 #endif"
 629 
 630 ac_subst_vars='LTLIBOBJS
 631 LIBOBJS
 632 CFLAGS_CCACHE
 633 CCACHE
 634 USE_PRECOMPILED_HEADER
 635 BUILD_ICECC
 636 ICECC
 637 ICECC_WRAPPER
 638 ICECC_CREATE_ENV
 639 ICECC_CMD
 640 ENABLE_JAVAC_SERVER
 641 ENABLE_SJAVAC
 642 SJAVAC_SERVER_JAVA_FLAGS
 643 SJAVAC_SERVER_JAVA
 644 JAVA_TOOL_FLAGS_SMALL
 645 JAVA_FLAGS_SMALL
 646 JAVA_FLAGS_JAVAC
 647 BOOTCYCLE_JVM_ARGS_BIG
 648 JAVA_FLAGS_BIG
 649 JAVA_FLAGS
 650 TEST_JOBS
 651 JOBS
 652 MEMORY_SIZE
 653 NUM_CORES
 654 ENABLE_GENERATE_CLASSLIST
 655 BUILD_FAILURE_HANDLER
 656 ENABLE_INTREE_EC
 657 VALID_JVM_FEATURES
 658 JVM_FEATURES_custom
 659 JVM_FEATURES_zeroshark
 660 JVM_FEATURES_zero
 661 JVM_FEATURES_minimal
 662 JVM_FEATURES_core
 663 JVM_FEATURES_client
 664 JVM_FEATURES_server
 665 INCLUDE_GRAAL
 666 ELF_LIBS
 667 ELF_CFLAGS
 668 STLPORT_LIB
 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_LIB_FILE
 686 ENABLE_LIBFFI_BUNDLING
 687 LIBFFI_LIBS
 688 LIBFFI_CFLAGS
 689 ALSA_LIBS
 690 ALSA_CFLAGS
 691 FREETYPE_BUNDLE_LIB_PATH
 692 FREETYPE_LIBS
 693 FREETYPE_CFLAGS
 694 CUPS_CFLAGS
 695 X_EXTRA_LIBS
 696 X_LIBS
 697 X_PRE_LIBS
 698 X_CFLAGS
 699 XMKMF
 700 MSVCP_DLL
 701 MSVCR_DLL
 702 LIBCXX
 703 FIXPATH_DETACH_FLAG
 704 FIXPATH
 705 BUILD_GTEST
 706 ENABLE_AOT
 707 GCOV_ENABLED
 708 ZIP_EXTERNAL_DEBUG_SYMBOLS
 709 COPY_DEBUG_SYMBOLS
 710 COMPILE_WITH_DEBUG_SYMBOLS
 711 CFLAGS_WARNINGS_ARE_ERRORS
 712 BUILD_CC_DISABLE_WARNING_PREFIX
 713 DISABLE_WARNING_PREFIX
 714 WARNINGS_AS_ERRORS
 715 COMPILER_SUPPORTS_TARGET_BITS_FLAG
 716 LDFLAGS_TESTEXE
 717 LDFLAGS_TESTLIB
 718 CXXFLAGS_TESTEXE
 719 CXXFLAGS_TESTLIB
 720 CFLAGS_TESTEXE
 721 CFLAGS_TESTLIB
 722 OPENJDK_BUILD_JVM_LIBS
 723 OPENJDK_BUILD_JVM_ASFLAGS
 724 OPENJDK_BUILD_JVM_LDFLAGS
 725 OPENJDK_BUILD_JVM_CFLAGS
 726 OPENJDK_BUILD_LDFLAGS_HASH_STYLE
 727 OPENJDK_BUILD_LDFLAGS_CXX_JDK
 728 OPENJDK_BUILD_JDKEXE_LIBS
 729 OPENJDK_BUILD_JDKLIB_LIBS
 730 OPENJDK_BUILD_LDFLAGS_JDKEXE
 731 OPENJDK_BUILD_LDFLAGS_JDKLIB
 732 OPENJDK_BUILD_CXXFLAGS_JDKEXE
 733 OPENJDK_BUILD_CXXFLAGS_JDKLIB
 734 OPENJDK_BUILD_CFLAGS_JDKEXE
 735 OPENJDK_BUILD_CFLAGS_JDKLIB
 736 OPENJDK_BUILD_CXXSTD_CXXFLAG
 737 JVM_LIBS
 738 JVM_ASFLAGS
 739 JVM_LDFLAGS
 740 JVM_CFLAGS
 741 LDFLAGS_HASH_STYLE
 742 LDFLAGS_CXX_JDK
 743 JDKEXE_LIBS
 744 JDKLIB_LIBS
 745 LDFLAGS_JDKEXE
 746 LDFLAGS_JDKLIB
 747 CXXFLAGS_JDKEXE
 748 CXXFLAGS_JDKLIB
 749 CFLAGS_JDKEXE
 750 CFLAGS_JDKLIB
 751 MACOSX_VERSION_MIN
 752 CXXSTD_CXXFLAG
 753 JDK_ARCH_ABI_PROP_NAME
 754 CXX_O_FLAG_SIZE
 755 CXX_O_FLAG_NONE
 756 CXX_O_FLAG_DEBUG
 757 CXX_O_FLAG_NORM
 758 CXX_O_FLAG_HI
 759 CXX_O_FLAG_HIGHEST
 760 CXX_O_FLAG_HIGHEST_JVM
 761 C_O_FLAG_SIZE
 762 C_O_FLAG_NONE
 763 C_O_FLAG_DEBUG
 764 C_O_FLAG_NORM
 765 C_O_FLAG_HI
 766 C_O_FLAG_HIGHEST
 767 C_O_FLAG_HIGHEST_JVM
 768 JVM_CFLAGS_SYMBOLS
 769 CXXFLAGS_DEBUG_SYMBOLS
 770 CFLAGS_DEBUG_SYMBOLS
 771 CXX_FLAG_DEPS
 772 C_FLAG_DEPS
 773 SHARED_LIBRARY_FLAGS
 774 SET_SHARED_LIBRARY_MAPFILE
 775 SET_SHARED_LIBRARY_NAME
 776 SET_SHARED_LIBRARY_ORIGIN
 777 SET_EXECUTABLE_ORIGIN
 778 CXX_FLAG_REORDER
 779 C_FLAG_REORDER
 780 JVM_RCFLAGS
 781 RC_FLAGS
 782 AR_OUT_OPTION
 783 LD_OUT_OPTION
 784 EXE_OUT_OPTION
 785 CC_OUT_OPTION
 786 STRIPFLAGS
 787 ARFLAGS
 788 COMPILER_BINDCMD_FILE_FLAG
 789 COMPILER_COMMAND_FILE_FLAG
 790 COMPILER_TARGET_BITS_FLAG
 791 JT_HOME
 792 JTREGEXE
 793 HOTSPOT_TOOLCHAIN_TYPE
 794 USING_BROKEN_SUSE_LD
 795 PACKAGE_PATH
 796 BUILD_AS
 797 BUILD_LDCXX
 798 BUILD_LD
 799 BUILD_STRIP
 800 BUILD_OBJCOPY
 801 BUILD_AR
 802 BUILD_NM
 803 BUILD_CXX
 804 BUILD_CC
 805 BUILD_SYSROOT_LDFLAGS
 806 BUILD_SYSROOT_CFLAGS
 807 ac_ct_OBJDUMP
 808 OBJDUMP
 809 ac_ct_OBJCOPY
 810 OBJCOPY
 811 ac_ct_NM
 812 ac_ct_STRIP
 813 GNM
 814 NM
 815 STRIP
 816 MSBUILD
 817 DUMPBIN
 818 RC
 819 MT
 820 LIPO
 821 ac_ct_AR
 822 AR
 823 AS
 824 LDCXX
 825 LD
 826 CXXCPP
 827 CPP
 828 CXX_VERSION_NUMBER
 829 CC_VERSION_NUMBER
 830 ac_ct_CXX
 831 CXXFLAGS
 832 CXX
 833 TOOLCHAIN_PATH_CXX
 834 POTENTIAL_CXX
 835 OBJEXT
 836 EXEEXT
 837 ac_ct_CC
 838 CPPFLAGS
 839 LDFLAGS
 840 CFLAGS
 841 CC
 842 TOOLCHAIN_PATH_CC
 843 POTENTIAL_CC
 844 TOOLCHAIN_VERSION
 845 VS_LIB
 846 VS_INCLUDE
 847 VS_PATH
 848 CYGWIN_LINK
 849 SYSROOT_LDFLAGS
 850 SYSROOT_CFLAGS
 851 EXTRA_LDFLAGS
 852 EXTRA_CXXFLAGS
 853 EXTRA_CFLAGS
 854 EXE_SUFFIX
 855 OBJ_SUFFIX
 856 STATIC_LIBRARY
 857 SHARED_LIBRARY
 858 STATIC_LIBRARY_SUFFIX
 859 SHARED_LIBRARY_SUFFIX
 860 LIBRARY_PREFIX
 861 TOOLCHAIN_TYPE
 862 STATIC_BUILD
 863 IMPORT_MODULES_MAKE
 864 IMPORT_MODULES_SRC
 865 IMPORT_MODULES_MAN
 866 IMPORT_MODULES_LEGAL
 867 IMPORT_MODULES_CONF
 868 IMPORT_MODULES_LIBS
 869 IMPORT_MODULES_CMDS
 870 IMPORT_MODULES_CLASSES
 871 BUILD_OUTPUT
 872 JDK_TOPDIR
 873 NASHORN_TOPDIR
 874 HOTSPOT_TOPDIR
 875 JAXWS_TOPDIR
 876 JAXP_TOPDIR
 877 CORBA_TOPDIR
 878 LANGTOOLS_TOPDIR
 879 EXTERNAL_BUILDJDK
 880 BUILD_JDK
 881 CREATE_BUILDJDK
 882 JLINK
 883 JMOD
 884 JAVAC_FLAGS
 885 BOOT_JDK_MODULAR
 886 BOOT_JDK_SOURCETARGET
 887 JARSIGNER
 888 JAR
 889 JAVAH
 890 JAVAC
 891 JAVA
 892 BOOT_JDK
 893 JAVA_CHECK
 894 JAVAC_CHECK
 895 VERSION_IS_GA
 896 VERSION_SHORT
 897 VERSION_STRING
 898 VERSION_NUMBER_FOUR_POSITIONS
 899 VERSION_NUMBER
 900 VERSION_OPT
 901 VERSION_BUILD
 902 VERSION_PRE
 903 VERSION_PATCH
 904 VERSION_SECURITY
 905 VERSION_MINOR
 906 VERSION_MAJOR
 907 MACOSX_BUNDLE_ID_BASE
 908 MACOSX_BUNDLE_NAME_BASE
 909 HOTSPOT_VM_DISTRO
 910 COMPANY_NAME
 911 JDK_RC_PLATFORM_NAME
 912 PRODUCT_SUFFIX
 913 PRODUCT_NAME
 914 LAUNCHER_NAME
 915 JLINK_KEEP_PACKAGED_MODULES
 916 COPYRIGHT_YEAR
 917 COMPRESS_JARS
 918 INCLUDE_SA
 919 UNLIMITED_CRYPTO
 920 CACERTS_FILE
 921 ENABLE_HEADLESS_ONLY
 922 DEFAULT_MAKE_TARGET
 923 OS_VERSION_MICRO
 924 OS_VERSION_MINOR
 925 OS_VERSION_MAJOR
 926 PKG_CONFIG
 927 BASH_ARGS
 928 SETFILE
 929 CODESIGN
 930 XATTR
 931 DSYMUTIL
 932 IS_GNU_TIME
 933 PATCH
 934 DTRACE
 935 TIME
 936 STAT
 937 HG
 938 READELF
 939 OTOOL
 940 LDD
 941 ZIPEXE
 942 UNZIP
 943 TAR_SUPPORTS_TRANSFORM
 944 TAR_INCLUDE_PARAM
 945 TAR_CREATE_EXTRA_PARAM
 946 TAR_TYPE
 947 FIND_DELETE
 948 OUTPUT_SYNC
 949 OUTPUT_SYNC_SUPPORTED
 950 CHECK_TOOLSDIR_MAKE
 951 CHECK_TOOLSDIR_GMAKE
 952 CHECK_MAKE
 953 CHECK_GMAKE
 954 MAKE
 955 PKGHANDLER
 956 CONFIGURESUPPORT_OUTPUTDIR
 957 OUTPUT_ROOT
 958 CONF_NAME
 959 SPEC
 960 SDKROOT
 961 XCODEBUILD
 962 JVM_VARIANT_MAIN
 963 VALID_JVM_VARIANTS
 964 JVM_VARIANTS
 965 DEBUG_LEVEL
 966 HOTSPOT_DEBUG_LEVEL
 967 JDK_VARIANT
 968 USERNAME
 969 CANONICAL_TOPDIR
 970 ORIGINAL_TOPDIR
 971 TOPDIR
 972 PATH_SEP
 973 HOTSPOT_BUILD_CPU_DEFINE
 974 HOTSPOT_BUILD_CPU_ARCH
 975 HOTSPOT_BUILD_CPU
 976 HOTSPOT_BUILD_OS_TYPE
 977 HOTSPOT_BUILD_OS
 978 OPENJDK_BUILD_BUNDLE_PLATFORM
 979 OPENJDK_BUILD_OS_EXPORT_DIR
 980 OPENJDK_BUILD_CPU_OSARCH
 981 OPENJDK_BUILD_CPU_ISADIR
 982 OPENJDK_BUILD_CPU_LEGACY_LIB
 983 OPENJDK_BUILD_CPU_LEGACY
 984 HOTSPOT_TARGET_CPU_DEFINE
 985 HOTSPOT_TARGET_CPU_ARCH
 986 HOTSPOT_TARGET_CPU
 987 HOTSPOT_TARGET_OS_TYPE
 988 HOTSPOT_TARGET_OS
 989 DEFINE_CROSS_COMPILE_ARCH
 990 OPENJDK_TARGET_BUNDLE_PLATFORM
 991 OPENJDK_TARGET_OS_EXPORT_DIR
 992 OPENJDK_TARGET_CPU_OSARCH
 993 OPENJDK_TARGET_CPU_ISADIR
 994 OPENJDK_TARGET_CPU_LEGACY_LIB
 995 OPENJDK_TARGET_CPU_LEGACY
 996 OPENJDK_MODULE_TARGET_OS_ARCH
 997 OPENJDK_MODULE_TARGET_OS_NAME
 998 COMPILE_TYPE
 999 OPENJDK_TARGET_CPU_ENDIAN
1000 OPENJDK_TARGET_CPU_BITS
1001 OPENJDK_TARGET_CPU_ARCH
1002 OPENJDK_TARGET_CPU
1003 OPENJDK_TARGET_OS_ENV
1004 OPENJDK_TARGET_OS_TYPE
1005 OPENJDK_TARGET_OS
1006 OPENJDK_BUILD_CPU_ENDIAN
1007 OPENJDK_BUILD_CPU_BITS
1008 OPENJDK_BUILD_CPU_ARCH
1009 OPENJDK_BUILD_CPU
1010 OPENJDK_BUILD_OS_ENV
1011 OPENJDK_BUILD_OS_TYPE
1012 OPENJDK_BUILD_OS
1013 OPENJDK_BUILD_AUTOCONF_NAME
1014 OPENJDK_TARGET_AUTOCONF_NAME
1015 target_os
1016 target_vendor
1017 target_cpu
1018 target
1019 host_os
1020 host_vendor
1021 host_cpu
1022 host
1023 build_os
1024 build_vendor
1025 build_cpu
1026 build
1027 PANDOC
1028 NICE
1029 CPIO
1030 DF
1031 READLINK
1032 CYGPATH
1033 SED
1034 FGREP
1035 EGREP
1036 GREP
1037 AWK
1038 XARGS
1039 WHICH
1040 WC
1041 UNIQ
1042 UNAME
1043 TR
1044 TOUCH
1045 TEE
1046 TAR
1047 TAIL
1048 SORT
1049 SH
1050 RMDIR
1051 RM
1052 PRINTF
1053 NAWK
1054 MV
1055 MKTEMP
1056 MKDIR
1057 LS
1058 LN
1059 GZIP
1060 GUNZIP
1061 HEAD
1062 FIND
1063 FILE
1064 EXPR
1065 ECHO
1066 DIRNAME
1067 DIFF
1068 DATE
1069 CUT
1070 CP
1071 COMM
1072 CMP
1073 CHMOD
1074 CAT
1075 BASH
1076 BASENAME
1077 DATE_WHEN_CONFIGURED
1078 ORIGINAL_PATH
1079 CONFIGURE_COMMAND_LINE
1080 target_alias
1081 host_alias
1082 build_alias
1083 LIBS
1084 ECHO_T
1085 ECHO_N
1086 ECHO_C
1087 DEFS
1088 mandir
1089 localedir
1090 libdir
1091 psdir
1092 pdfdir
1093 dvidir
1094 htmldir
1095 infodir
1096 docdir
1097 oldincludedir
1098 includedir
1099 localstatedir
1100 sharedstatedir
1101 sysconfdir
1102 datadir
1103 datarootdir
1104 libexecdir
1105 sbindir
1106 bindir
1107 program_transform_name
1108 prefix
1109 exec_prefix
1110 PACKAGE_URL
1111 PACKAGE_BUGREPORT
1112 PACKAGE_STRING
1113 PACKAGE_VERSION
1114 PACKAGE_TARNAME
1115 PACKAGE_NAME
1116 PATH_SEPARATOR
1117 SHELL'
1118 ac_subst_files=''
1119 ac_user_opts='
1120 enable_option_checking
1121 with_target_bits
1122 enable_openjdk_only
1123 with_custom_make_dir
1124 with_jdk_variant
1125 enable_debug
1126 with_debug_level
1127 with_jvm_variants
1128 with_cpu_port
1129 with_devkit
1130 with_sys_root
1131 with_sysroot
1132 with_tools_dir
1133 with_toolchain_path
1134 with_extra_path
1135 with_sdk_name
1136 with_conf_name
1137 with_output_sync
1138 with_default_make_target
1139 enable_headless_only
1140 with_cacerts_file
1141 enable_unlimited_crypto
1142 with_copyright_year
1143 enable_keep_packaged_modules
1144 with_milestone
1145 with_update_version
1146 with_user_release_suffix
1147 with_build_number
1148 with_version_string
1149 with_version_pre
1150 with_version_opt
1151 with_version_build
1152 with_version_major
1153 with_version_minor
1154 with_version_security
1155 with_version_patch
1156 with_boot_jdk
1157 with_build_jdk
1158 with_add_source_root
1159 with_override_source_root
1160 with_adds_and_overrides
1161 with_override_langtools
1162 with_override_corba
1163 with_override_jaxp
1164 with_override_jaxws
1165 with_override_hotspot
1166 with_override_nashorn
1167 with_override_jdk
1168 with_import_hotspot
1169 with_import_modules
1170 enable_static_build
1171 with_toolchain_type
1172 with_extra_cflags
1173 with_extra_cxxflags
1174 with_extra_ldflags
1175 with_toolchain_version
1176 with_build_devkit
1177 with_jtreg
1178 with_abi_profile
1179 enable_warnings_as_errors
1180 with_native_debug_symbols
1181 enable_debug_symbols
1182 enable_zip_debug_info
1183 enable_native_coverage
1184 enable_dtrace
1185 enable_aot
1186 enable_hotspot_gtest
1187 with_stdc__lib
1188 with_msvcr_dll
1189 with_msvcp_dll
1190 with_x
1191 with_cups
1192 with_cups_include
1193 with_freetype
1194 with_freetype_include
1195 with_freetype_lib
1196 with_freetype_src
1197 enable_freetype_bundling
1198 with_alsa
1199 with_alsa_include
1200 with_alsa_lib
1201 with_libffi
1202 with_libffi_include
1203 with_libffi_lib
1204 enable_libffi_bundling
1205 with_libjpeg
1206 with_giflib
1207 with_libpng
1208 with_zlib
1209 with_lcms
1210 with_dxsdk
1211 with_dxsdk_lib
1212 with_dxsdk_include
1213 with_libelf
1214 with_libelf_include
1215 with_libelf_lib
1216 with_jvm_features
1217 with_jvm_interpreter
1218 enable_jtreg_failure_handler
1219 enable_generate_classlist
1220 with_num_cores
1221 with_memory_size
1222 with_jobs
1223 with_test_jobs
1224 with_boot_jdk_jvmargs
1225 with_sjavac_server_java
1226 enable_sjavac
1227 enable_javac_server
1228 enable_icecc
1229 enable_precompiled_headers
1230 enable_ccache
1231 with_ccache_dir
1232 '
1233       ac_precious_vars='build_alias
1234 host_alias
1235 target_alias
1236 BASENAME
1237 BASH
1238 CAT
1239 CHMOD
1240 CMP
1241 COMM
1242 CP
1243 CUT
1244 DATE
1245 DIFF
1246 DIRNAME
1247 ECHO
1248 EXPR
1249 FILE
1250 FIND
1251 HEAD
1252 GUNZIP
1253 GZIP
1254 LN
1255 LS
1256 MKDIR
1257 MKTEMP
1258 MV
1259 NAWK
1260 PRINTF
1261 RM
1262 RMDIR
1263 SH
1264 SORT
1265 TAIL
1266 TAR
1267 TEE
1268 TOUCH
1269 TR
1270 UNAME
1271 UNIQ
1272 WC
1273 WHICH
1274 XARGS
1275 AWK
1276 GREP
1277 EGREP
1278 FGREP
1279 SED
1280 CYGPATH
1281 READLINK
1282 DF
1283 CPIO
1284 NICE
1285 PANDOC
1286 MAKE
1287 UNZIP
1288 ZIPEXE
1289 LDD
1290 OTOOL
1291 READELF
1292 HG
1293 STAT
1294 TIME
1295 DTRACE
1296 PATCH
1297 DSYMUTIL
1298 XATTR
1299 CODESIGN
1300 SETFILE
1301 PKG_CONFIG
1302 JAVA
1303 JAVAC
1304 JAVAH
1305 JAR
1306 JARSIGNER
1307 CC
1308 CFLAGS
1309 LDFLAGS
1310 LIBS
1311 CPPFLAGS
1312 CXX
1313 CXXFLAGS
1314 CCC
1315 CPP
1316 CXXCPP
1317 AS
1318 AR
1319 LIPO
1320 STRIP
1321 NM
1322 GNM
1323 OBJCOPY
1324 OBJDUMP
1325 BUILD_CC
1326 BUILD_CXX
1327 BUILD_NM
1328 BUILD_AR
1329 BUILD_OBJCOPY
1330 BUILD_STRIP
1331 JTREGEXE
1332 XMKMF
1333 FREETYPE_CFLAGS
1334 FREETYPE_LIBS
1335 ALSA_CFLAGS
1336 ALSA_LIBS
1337 LIBFFI_CFLAGS
1338 LIBFFI_LIBS
1339 PNG_CFLAGS
1340 PNG_LIBS
1341 LCMS_CFLAGS
1342 LCMS_LIBS
1343 ELF_CFLAGS
1344 ELF_LIBS
1345 ICECC_CMD
1346 ICECC_CREATE_ENV
1347 ICECC_WRAPPER
1348 CCACHE'
1349 
1350 
1351 # Initialize some variables set by options.
1352 ac_init_help=
1353 ac_init_version=false
1354 ac_unrecognized_opts=
1355 ac_unrecognized_sep=
1356 # The variables have the same names as the options, with
1357 # dashes changed to underlines.
1358 cache_file=/dev/null
1359 exec_prefix=NONE
1360 no_create=
1361 no_recursion=
1362 prefix=NONE
1363 program_prefix=NONE
1364 program_suffix=NONE
1365 program_transform_name=s,x,x,
1366 silent=
1367 site=
1368 srcdir=
1369 verbose=
1370 x_includes=NONE
1371 x_libraries=NONE
1372 
1373 # Installation directory options.
1374 # These are left unexpanded so users can "make install exec_prefix=/foo"
1375 # and all the variables that are supposed to be based on exec_prefix
1376 # by default will actually change.
1377 # Use braces instead of parens because sh, perl, etc. also accept them.
1378 # (The list follows the same order as the GNU Coding Standards.)
1379 bindir='${exec_prefix}/bin'
1380 sbindir='${exec_prefix}/sbin'
1381 libexecdir='${exec_prefix}/libexec'
1382 datarootdir='${prefix}/share'
1383 datadir='${datarootdir}'
1384 sysconfdir='${prefix}/etc'
1385 sharedstatedir='${prefix}/com'
1386 localstatedir='${prefix}/var'
1387 includedir='${prefix}/include'
1388 oldincludedir='/usr/include'
1389 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1390 infodir='${datarootdir}/info'
1391 htmldir='${docdir}'
1392 dvidir='${docdir}'
1393 pdfdir='${docdir}'
1394 psdir='${docdir}'
1395 libdir='${exec_prefix}/lib'
1396 localedir='${datarootdir}/locale'
1397 mandir='${datarootdir}/man'
1398 
1399 ac_prev=
1400 ac_dashdash=
1401 for ac_option
1402 do
1403   # If the previous option needs an argument, assign it.
1404   if test -n "$ac_prev"; then
1405     eval $ac_prev=\$ac_option
1406     ac_prev=
1407     continue
1408   fi
1409 
1410   case $ac_option in
1411   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1412   *=)   ac_optarg= ;;
1413   *)    ac_optarg=yes ;;
1414   esac
1415 
1416   # Accept the important Cygnus configure options, so we can diagnose typos.
1417 
1418   case $ac_dashdash$ac_option in
1419   --)
1420     ac_dashdash=yes ;;
1421 
1422   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1423     ac_prev=bindir ;;
1424   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1425     bindir=$ac_optarg ;;
1426 
1427   -build | --build | --buil | --bui | --bu)
1428     ac_prev=build_alias ;;
1429   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1430     build_alias=$ac_optarg ;;
1431 
1432   -cache-file | --cache-file | --cache-fil | --cache-fi \
1433   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1434     ac_prev=cache_file ;;
1435   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1436   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1437     cache_file=$ac_optarg ;;
1438 
1439   --config-cache | -C)
1440     cache_file=config.cache ;;
1441 
1442   -datadir | --datadir | --datadi | --datad)
1443     ac_prev=datadir ;;
1444   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1445     datadir=$ac_optarg ;;
1446 
1447   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1448   | --dataroo | --dataro | --datar)
1449     ac_prev=datarootdir ;;
1450   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1451   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1452     datarootdir=$ac_optarg ;;
1453 
1454   -disable-* | --disable-*)
1455     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1456     # Reject names that are not valid shell variable names.
1457     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1458       as_fn_error $? "invalid feature name: $ac_useropt"
1459     ac_useropt_orig=$ac_useropt
1460     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1461     case $ac_user_opts in
1462       *"
1463 "enable_$ac_useropt"
1464 "*) ;;
1465       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1466          ac_unrecognized_sep=', ';;
1467     esac
1468     eval enable_$ac_useropt=no ;;
1469 
1470   -docdir | --docdir | --docdi | --doc | --do)
1471     ac_prev=docdir ;;
1472   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1473     docdir=$ac_optarg ;;
1474 
1475   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1476     ac_prev=dvidir ;;
1477   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1478     dvidir=$ac_optarg ;;
1479 
1480   -enable-* | --enable-*)
1481     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1482     # Reject names that are not valid shell variable names.
1483     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1484       as_fn_error $? "invalid feature name: $ac_useropt"
1485     ac_useropt_orig=$ac_useropt
1486     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1487     case $ac_user_opts in
1488       *"
1489 "enable_$ac_useropt"
1490 "*) ;;
1491       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1492          ac_unrecognized_sep=', ';;
1493     esac
1494     eval enable_$ac_useropt=\$ac_optarg ;;
1495 
1496   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1497   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1498   | --exec | --exe | --ex)
1499     ac_prev=exec_prefix ;;
1500   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1501   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1502   | --exec=* | --exe=* | --ex=*)
1503     exec_prefix=$ac_optarg ;;
1504 
1505   -gas | --gas | --ga | --g)
1506     # Obsolete; use --with-gas.
1507     with_gas=yes ;;
1508 
1509   -help | --help | --hel | --he | -h)
1510     ac_init_help=long ;;
1511   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1512     ac_init_help=recursive ;;
1513   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1514     ac_init_help=short ;;
1515 
1516   -host | --host | --hos | --ho)
1517     ac_prev=host_alias ;;
1518   -host=* | --host=* | --hos=* | --ho=*)
1519     host_alias=$ac_optarg ;;
1520 
1521   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1522     ac_prev=htmldir ;;
1523   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1524   | --ht=*)
1525     htmldir=$ac_optarg ;;
1526 
1527   -includedir | --includedir | --includedi | --included | --include \
1528   | --includ | --inclu | --incl | --inc)
1529     ac_prev=includedir ;;
1530   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1531   | --includ=* | --inclu=* | --incl=* | --inc=*)
1532     includedir=$ac_optarg ;;
1533 
1534   -infodir | --infodir | --infodi | --infod | --info | --inf)
1535     ac_prev=infodir ;;
1536   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1537     infodir=$ac_optarg ;;
1538 
1539   -libdir | --libdir | --libdi | --libd)
1540     ac_prev=libdir ;;
1541   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1542     libdir=$ac_optarg ;;
1543 
1544   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1545   | --libexe | --libex | --libe)
1546     ac_prev=libexecdir ;;
1547   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1548   | --libexe=* | --libex=* | --libe=*)
1549     libexecdir=$ac_optarg ;;
1550 
1551   -localedir | --localedir | --localedi | --localed | --locale)
1552     ac_prev=localedir ;;
1553   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1554     localedir=$ac_optarg ;;
1555 
1556   -localstatedir | --localstatedir | --localstatedi | --localstated \
1557   | --localstate | --localstat | --localsta | --localst | --locals)
1558     ac_prev=localstatedir ;;
1559   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1560   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1561     localstatedir=$ac_optarg ;;
1562 
1563   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1564     ac_prev=mandir ;;
1565   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1566     mandir=$ac_optarg ;;
1567 
1568   -nfp | --nfp | --nf)
1569     # Obsolete; use --without-fp.
1570     with_fp=no ;;
1571 
1572   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1573   | --no-cr | --no-c | -n)
1574     no_create=yes ;;
1575 
1576   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1577   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1578     no_recursion=yes ;;
1579 
1580   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1581   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1582   | --oldin | --oldi | --old | --ol | --o)
1583     ac_prev=oldincludedir ;;
1584   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1585   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1586   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1587     oldincludedir=$ac_optarg ;;
1588 
1589   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1590     ac_prev=prefix ;;
1591   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1592     prefix=$ac_optarg ;;
1593 
1594   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1595   | --program-pre | --program-pr | --program-p)
1596     ac_prev=program_prefix ;;
1597   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1598   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1599     program_prefix=$ac_optarg ;;
1600 
1601   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1602   | --program-suf | --program-su | --program-s)
1603     ac_prev=program_suffix ;;
1604   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1605   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1606     program_suffix=$ac_optarg ;;
1607 
1608   -program-transform-name | --program-transform-name \
1609   | --program-transform-nam | --program-transform-na \
1610   | --program-transform-n | --program-transform- \
1611   | --program-transform | --program-transfor \
1612   | --program-transfo | --program-transf \
1613   | --program-trans | --program-tran \
1614   | --progr-tra | --program-tr | --program-t)
1615     ac_prev=program_transform_name ;;
1616   -program-transform-name=* | --program-transform-name=* \
1617   | --program-transform-nam=* | --program-transform-na=* \
1618   | --program-transform-n=* | --program-transform-=* \
1619   | --program-transform=* | --program-transfor=* \
1620   | --program-transfo=* | --program-transf=* \
1621   | --program-trans=* | --program-tran=* \
1622   | --progr-tra=* | --program-tr=* | --program-t=*)
1623     program_transform_name=$ac_optarg ;;
1624 
1625   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1626     ac_prev=pdfdir ;;
1627   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1628     pdfdir=$ac_optarg ;;
1629 
1630   -psdir | --psdir | --psdi | --psd | --ps)
1631     ac_prev=psdir ;;
1632   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1633     psdir=$ac_optarg ;;
1634 
1635   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1636   | -silent | --silent | --silen | --sile | --sil)
1637     silent=yes ;;
1638 
1639   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1640     ac_prev=sbindir ;;
1641   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1642   | --sbi=* | --sb=*)
1643     sbindir=$ac_optarg ;;
1644 
1645   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1646   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1647   | --sharedst | --shareds | --shared | --share | --shar \
1648   | --sha | --sh)
1649     ac_prev=sharedstatedir ;;
1650   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1651   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1652   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1653   | --sha=* | --sh=*)
1654     sharedstatedir=$ac_optarg ;;
1655 
1656   -site | --site | --sit)
1657     ac_prev=site ;;
1658   -site=* | --site=* | --sit=*)
1659     site=$ac_optarg ;;
1660 
1661   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1662     ac_prev=srcdir ;;
1663   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1664     srcdir=$ac_optarg ;;
1665 
1666   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1667   | --syscon | --sysco | --sysc | --sys | --sy)
1668     ac_prev=sysconfdir ;;
1669   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1670   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1671     sysconfdir=$ac_optarg ;;
1672 
1673   -target | --target | --targe | --targ | --tar | --ta | --t)
1674     ac_prev=target_alias ;;
1675   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1676     target_alias=$ac_optarg ;;
1677 
1678   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1679     verbose=yes ;;
1680 
1681   -version | --version | --versio | --versi | --vers | -V)
1682     ac_init_version=: ;;
1683 
1684   -with-* | --with-*)
1685     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1686     # Reject names that are not valid shell variable names.
1687     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1688       as_fn_error $? "invalid package name: $ac_useropt"
1689     ac_useropt_orig=$ac_useropt
1690     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1691     case $ac_user_opts in
1692       *"
1693 "with_$ac_useropt"
1694 "*) ;;
1695       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1696          ac_unrecognized_sep=', ';;
1697     esac
1698     eval with_$ac_useropt=\$ac_optarg ;;
1699 
1700   -without-* | --without-*)
1701     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1702     # Reject names that are not valid shell variable names.
1703     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1704       as_fn_error $? "invalid package name: $ac_useropt"
1705     ac_useropt_orig=$ac_useropt
1706     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1707     case $ac_user_opts in
1708       *"
1709 "with_$ac_useropt"
1710 "*) ;;
1711       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1712          ac_unrecognized_sep=', ';;
1713     esac
1714     eval with_$ac_useropt=no ;;
1715 
1716   --x)
1717     # Obsolete; use --with-x.
1718     with_x=yes ;;
1719 
1720   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1721   | --x-incl | --x-inc | --x-in | --x-i)
1722     ac_prev=x_includes ;;
1723   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1724   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1725     x_includes=$ac_optarg ;;
1726 
1727   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1728   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1729     ac_prev=x_libraries ;;
1730   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1731   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1732     x_libraries=$ac_optarg ;;
1733 
1734   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1735 Try \`$0 --help' for more information"
1736     ;;
1737 
1738   *=*)
1739     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1740     # Reject names that are not valid shell variable names.
1741     case $ac_envvar in #(
1742       '' | [0-9]* | *[!_$as_cr_alnum]* )
1743       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1744     esac
1745     eval $ac_envvar=\$ac_optarg
1746     export $ac_envvar ;;
1747 
1748   *)
1749     # FIXME: should be removed in autoconf 3.0.
1750     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1751     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1752       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1753     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1754     ;;
1755 
1756   esac
1757 done
1758 
1759 if test -n "$ac_prev"; then
1760   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1761   as_fn_error $? "missing argument to $ac_option"
1762 fi
1763 
1764 if test -n "$ac_unrecognized_opts"; then
1765   case $enable_option_checking in
1766     no) ;;
1767     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1768     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1769   esac
1770 fi
1771 
1772 # Check all directory arguments for consistency.
1773 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1774                 datadir sysconfdir sharedstatedir localstatedir includedir \
1775                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1776                 libdir localedir mandir
1777 do
1778   eval ac_val=\$$ac_var
1779   # Remove trailing slashes.
1780   case $ac_val in
1781     */ )
1782       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1783       eval $ac_var=\$ac_val;;
1784   esac
1785   # Be sure to have absolute directory names.
1786   case $ac_val in
1787     [\\/$]* | ?:[\\/]* )  continue;;
1788     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1789   esac
1790   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1791 done
1792 
1793 # There might be people who depend on the old broken behavior: `$host'
1794 # used to hold the argument of --host etc.
1795 # FIXME: To remove some day.
1796 build=$build_alias
1797 host=$host_alias
1798 target=$target_alias
1799 
1800 # FIXME: To remove some day.
1801 if test "x$host_alias" != x; then
1802   if test "x$build_alias" = x; then
1803     cross_compiling=maybe
1804   elif test "x$build_alias" != "x$host_alias"; then
1805     cross_compiling=yes
1806   fi
1807 fi
1808 
1809 ac_tool_prefix=
1810 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1811 
1812 test "$silent" = yes && exec 6>/dev/null
1813 
1814 
1815 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1816 ac_ls_di=`ls -di .` &&
1817 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1818   as_fn_error $? "working directory cannot be determined"
1819 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1820   as_fn_error $? "pwd does not report name of working directory"
1821 
1822 
1823 # Find the source files, if location was not specified.
1824 if test -z "$srcdir"; then
1825   ac_srcdir_defaulted=yes
1826   # Try the directory containing this script, then the parent directory.
1827   ac_confdir=`$as_dirname -- "$as_myself" ||
1828 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1829          X"$as_myself" : 'X\(//\)[^/]' \| \
1830          X"$as_myself" : 'X\(//\)$' \| \
1831          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1832 $as_echo X"$as_myself" |
1833     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1834             s//\1/
1835             q
1836           }
1837           /^X\(\/\/\)[^/].*/{
1838             s//\1/
1839             q
1840           }
1841           /^X\(\/\/\)$/{
1842             s//\1/
1843             q
1844           }
1845           /^X\(\/\).*/{
1846             s//\1/
1847             q
1848           }
1849           s/.*/./; q'`
1850   srcdir=$ac_confdir
1851   if test ! -r "$srcdir/$ac_unique_file"; then
1852     srcdir=..
1853   fi
1854 else
1855   ac_srcdir_defaulted=no
1856 fi
1857 if test ! -r "$srcdir/$ac_unique_file"; then
1858   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1859   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1860 fi
1861 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1862 ac_abs_confdir=`(
1863         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1864         pwd)`
1865 # When building in place, set srcdir=.
1866 if test "$ac_abs_confdir" = "$ac_pwd"; then
1867   srcdir=.
1868 fi
1869 # Remove unnecessary trailing slashes from srcdir.
1870 # Double slashes in file names in object file debugging info
1871 # mess up M-x gdb in Emacs.
1872 case $srcdir in
1873 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1874 esac
1875 for ac_var in $ac_precious_vars; do
1876   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1877   eval ac_env_${ac_var}_value=\$${ac_var}
1878   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1879   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1880 done
1881 
1882 #
1883 # Report the --help message.
1884 #
1885 if test "$ac_init_help" = "long"; then
1886   # Omit some internal or obsolete options to make the list less imposing.
1887   # This message is too long to be a string in the A/UX 3.1 sh.
1888   cat <<_ACEOF
1889 \`configure' configures OpenJDK jdk9 to adapt to many kinds of systems.
1890 
1891 Usage: $0 [OPTION]... [VAR=VALUE]...
1892 
1893 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1894 VAR=VALUE.  See below for descriptions of some of the useful variables.
1895 
1896 Defaults for the options are specified in brackets.
1897 
1898 Configuration:
1899   -h, --help              display this help and exit
1900       --help=short        display options specific to this package
1901       --help=recursive    display the short help of all the included packages
1902   -V, --version           display version information and exit
1903   -q, --quiet, --silent   do not print \`checking ...' messages
1904       --cache-file=FILE   cache test results in FILE [disabled]
1905   -C, --config-cache      alias for \`--cache-file=config.cache'
1906   -n, --no-create         do not create output files
1907       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1908 
1909 Installation directories:
1910   --prefix=PREFIX         install architecture-independent files in PREFIX
1911                           [$ac_default_prefix]
1912   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1913                           [PREFIX]
1914 
1915 By default, \`make install' will install all the files in
1916 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1917 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1918 for instance \`--prefix=\$HOME'.
1919 
1920 For better control, use the options below.
1921 
1922 Fine tuning of the installation directories:
1923   --bindir=DIR            user executables [EPREFIX/bin]
1924   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1925   --libexecdir=DIR        program executables [EPREFIX/libexec]
1926   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1927   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1928   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1929   --libdir=DIR            object code libraries [EPREFIX/lib]
1930   --includedir=DIR        C header files [PREFIX/include]
1931   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1932   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1933   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1934   --infodir=DIR           info documentation [DATAROOTDIR/info]
1935   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1936   --mandir=DIR            man documentation [DATAROOTDIR/man]
1937   --docdir=DIR            documentation root [DATAROOTDIR/doc/openjdk]
1938   --htmldir=DIR           html documentation [DOCDIR]
1939   --dvidir=DIR            dvi documentation [DOCDIR]
1940   --pdfdir=DIR            pdf documentation [DOCDIR]
1941   --psdir=DIR             ps documentation [DOCDIR]
1942 _ACEOF
1943 
1944   cat <<\_ACEOF
1945 
1946 X features:
1947   --x-includes=DIR    X include files are in DIR
1948   --x-libraries=DIR   X library files are in DIR
1949 
1950 System types:
1951   --build=BUILD     configure for building on BUILD [guessed]
1952   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1953   --target=TARGET   configure for building compilers for TARGET [HOST]
1954 _ACEOF
1955 fi
1956 
1957 if test -n "$ac_init_help"; then
1958   case $ac_init_help in
1959      short | recursive ) echo "Configuration of OpenJDK jdk9:";;
1960    esac
1961   cat <<\_ACEOF
1962 
1963 Optional Features:
1964   --disable-option-checking  ignore unrecognized --enable/--with options
1965   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1966   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1967   --enable-openjdk-only   suppress building custom source even if present
1968                           [disabled]
1969   --enable-debug          set the debug level to fastdebug (shorthand for
1970                           --with-debug-level=fastdebug) [disabled]
1971   --enable-headless-only  only build headless (no GUI) support [disabled]
1972   --disable-unlimited-crypto
1973                           Disable unlimited crypto policy [enabled]
1974   --disable-keep-packaged-modules
1975                           Do not keep packaged modules in jdk image [enable]
1976   --enable-static-build   enable static library build [disabled]
1977   --disable-warnings-as-errors
1978                           do not consider native warnings to be an error
1979                           [enabled]
1980   --enable-debug-symbols  Deprecated. Option is kept for backwards
1981                           compatibility and is ignored
1982   --enable-zip-debug-info Deprecated. Option is kept for backwards
1983                           compatibility and is ignored
1984   --enable-native-coverage
1985                           enable native compilation with code coverage
1986                           data[disabled]
1987   --enable-dtrace[=yes/no/auto]
1988                           enable dtrace. Default is auto, where dtrace is
1989                           enabled if all dependencies are present.
1990   --enable-aot[=yes/no/auto]
1991                           enable ahead of time compilation feature. Default is
1992                           auto, where aot is enabled if all dependencies are
1993                           present.
1994   --disable-hotspot-gtest Disables building of the Hotspot unit tests
1995   --disable-freetype-bundling
1996                           disable bundling of the freetype library with the
1997                           build result [enabled on Windows or when using
1998                           --with-freetype, disabled otherwise]
1999   --enable-libffi-bundling
2000                           enable bundling of libffi.so to make the built JDK
2001                           runnable on more systems
2002   --enable-jtreg-failure-handler
2003                           forces build of the jtreg failure handler to be
2004                           enabled, missing dependencies become fatal errors.
2005                           Default is auto, where the failure handler is built
2006                           if all dependencies are present and otherwise just
2007                           disabled.
2008   --disable-generate-classlist
2009                           forces enabling or disabling of the generation of a
2010                           CDS classlist at build time. Default is to generate
2011                           it when either the server or client JVMs are built.
2012   --enable-sjavac         use sjavac to do fast incremental compiles
2013                           [disabled]
2014   --disable-javac-server  disable javac server [enabled]
2015   --enable-icecc          enable distribted compilation of native code using
2016                           icecc/icecream [disabled]
2017   --disable-precompiled-headers
2018                           disable using precompiled headers when compiling C++
2019                           [enabled]
2020   --enable-ccache         enable using ccache to speed up recompilations
2021                           [disabled]
2022 
2023 Optional Packages:
2024   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
2025   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
2026   --with-target-bits      build 32-bit or 64-bit binaries (for platforms that
2027                           support it), e.g. --with-target-bits=32 [guessed]
2028   --with-custom-make-dir  Deprecated. Option is kept for backwards
2029                           compatibility and is ignored
2030   --with-jdk-variant      JDK variant to build (normal) [normal]
2031   --with-debug-level      set the debug level (release, fastdebug, slowdebug,
2032                           optimized) [release]
2033   --with-jvm-variants     JVM variants (separated by commas) to build
2034                           (server,client,minimal,core,zero,zeroshark,custom)
2035                           [server]
2036   --with-cpu-port         specify sources to use for Hotspot 64-bit ARM port
2037                           (arm64,aarch64) [aarch64]
2038   --with-devkit           use this devkit for compilers, tools and resources
2039   --with-sys-root         alias for --with-sysroot for backwards compatability
2040   --with-sysroot          use this directory as sysroot
2041   --with-tools-dir        alias for --with-toolchain-path for backwards
2042                           compatibility
2043   --with-toolchain-path   prepend these directories when searching for
2044                           toolchain binaries (compilers etc)
2045   --with-extra-path       prepend these directories to the default path
2046   --with-sdk-name         use the platform SDK of the given name. [macosx]
2047   --with-conf-name        use this as the name of the configuration [generated
2048                           from important configuration options]
2049   --with-output-sync      set make output sync type if supported by make.
2050                           [recurse]
2051   --with-default-make-target
2052                           set the default make target [exploded-image]
2053   --with-cacerts-file     specify alternative cacerts file
2054   --with-copyright-year   Set copyright year value for build [current year]
2055   --with-milestone        Deprecated. Option is kept for backwards
2056                           compatibility and is ignored
2057   --with-update-version   Deprecated. Option is kept for backwards
2058                           compatibility and is ignored
2059   --with-user-release-suffix
2060                           Deprecated. Option is kept for backwards
2061                           compatibility and is ignored
2062   --with-build-number     Deprecated. Option is kept for backwards
2063                           compatibility and is ignored
2064   --with-version-string   Set version string [calculated]
2065   --with-version-pre      Set the base part of the version 'PRE' field
2066                           (pre-release identifier) ['internal']
2067   --with-version-opt      Set version 'OPT' field (build metadata)
2068                           [<timestamp>.<user>.<dirname>]
2069   --with-version-build    Set version 'BUILD' field (build number) [not
2070                           specified]
2071   --with-version-major    Set version 'MAJOR' field (first number) [current
2072                           source value]
2073   --with-version-minor    Set version 'MINOR' field (second number) [current
2074                           source value]
2075   --with-version-security Set version 'SECURITY' field (third number) [current
2076                           source value]
2077   --with-version-patch    Set version 'PATCH' field (fourth number) [not
2078                           specified]
2079   --with-boot-jdk         path to Boot JDK (used to bootstrap build) [probed]
2080   --with-build-jdk        path to JDK of same version as is being built[the
2081                           newly built JDK]
2082   --with-add-source-root  Deprecated. Option is kept for backwards
2083                           compatibility and is ignored
2084   --with-override-source-root
2085                           Deprecated. Option is kept for backwards
2086                           compatibility and is ignored
2087   --with-adds-and-overrides
2088                           Deprecated. Option is kept for backwards
2089                           compatibility and is ignored
2090   --with-override-langtools
2091                           Deprecated. Option is kept for backwards
2092                           compatibility and is ignored
2093   --with-override-corba   Deprecated. Option is kept for backwards
2094                           compatibility and is ignored
2095   --with-override-jaxp    Deprecated. Option is kept for backwards
2096                           compatibility and is ignored
2097   --with-override-jaxws   Deprecated. Option is kept for backwards
2098                           compatibility and is ignored
2099   --with-override-hotspot Deprecated. Option is kept for backwards
2100                           compatibility and is ignored
2101   --with-override-nashorn Deprecated. Option is kept for backwards
2102                           compatibility and is ignored
2103   --with-override-jdk     Deprecated. Option is kept for backwards
2104                           compatibility and is ignored
2105   --with-import_hotspot   Deprecated. Option is kept for backwards
2106                           compatibility and is ignored
2107   --with-import-modules   import a set of prebuilt modules either as a zip
2108                           file or an exploded directory
2109   --with-toolchain-type   the toolchain type (or family) to use, use '--help'
2110                           to show possible values [platform dependent]
2111   --with-extra-cflags     extra flags to be used when compiling jdk c-files
2112   --with-extra-cxxflags   extra flags to be used when compiling jdk c++-files
2113   --with-extra-ldflags    extra flags to be used when linking jdk
2114   --with-toolchain-version
2115                           the version of the toolchain to look for, use
2116                           '--help' to show possible values [platform
2117                           dependent]
2118   --with-build-devkit     Devkit to use for the build platform toolchain
2119   --with-jtreg            Regression Test Harness [probed]
2120   --with-abi-profile      specify ABI profile for ARM builds
2121                           (arm-vfp-sflt,arm-vfp-hflt,arm-sflt,
2122                           armv5-vfp-sflt,armv6-vfp-hflt,arm64,aarch64)
2123                           [toolchain dependent]
2124   --with-native-debug-symbols
2125                           set the native debug symbol configuration (none,
2126                           internal, external, zipped) [varying]
2127   --with-stdc++lib=<static>,<dynamic>,<default>
2128                           force linking of the C++ runtime on Linux to either
2129                           static or dynamic, default is static with dynamic as
2130                           fallback
2131   --with-msvcr-dll        path to microsoft C runtime dll (msvcr*.dll)
2132                           (Windows only) [probed]
2133   --with-msvcp-dll        path to microsoft C++ runtime dll (msvcp*.dll)
2134                           (Windows only) [probed]
2135   --with-x                use the X Window System
2136   --with-cups             specify prefix directory for the cups package
2137                           (expecting the headers under PATH/include)
2138   --with-cups-include     specify directory for the cups include files
2139   --with-freetype         specify prefix directory for the freetype package
2140                           (expecting the libraries under PATH/lib and the
2141                           headers under PATH/include)
2142   --with-freetype-include specify directory for the freetype include files
2143   --with-freetype-lib     specify directory for the freetype library
2144   --with-freetype-src     specify directory with freetype sources to
2145                           automatically build the library (experimental,
2146                           Windows-only)
2147   --with-alsa             specify prefix directory for the alsa package
2148                           (expecting the libraries under PATH/lib and the
2149                           headers under PATH/include)
2150   --with-alsa-include     specify directory for the alsa include files
2151   --with-alsa-lib         specify directory for the alsa library
2152   --with-libffi           specify prefix directory for the libffi package
2153                           (expecting the libraries under PATH/lib and the
2154                           headers under PATH/include)
2155   --with-libffi-include   specify directory for the libffi include files
2156   --with-libffi-lib       specify directory for the libffi library
2157   --with-libjpeg          use libjpeg from build system or OpenJDK source
2158                           (system, bundled) [bundled]
2159   --with-giflib           use giflib from build system or OpenJDK source
2160                           (system, bundled) [bundled]
2161   --with-libpng           use libpng from build system or OpenJDK source
2162                           (system, bundled) [bundled]
2163   --with-zlib             use zlib from build system or OpenJDK source
2164                           (system, bundled) [bundled]
2165   --with-lcms             use lcms2 from build system or OpenJDK source
2166                           (system, bundled) [bundled]
2167   --with-dxsdk            Deprecated. Option is kept for backwards
2168                           compatibility and is ignored
2169   --with-dxsdk-lib        Deprecated. Option is kept for backwards
2170                           compatibility and is ignored
2171   --with-dxsdk-include    Deprecated. Option is kept for backwards
2172                           compatibility and is ignored
2173   --with-libelf           specify prefix directory for the libelf package
2174                           (expecting the libraries under PATH/lib and the
2175                           headers under PATH/include)
2176   --with-libelf-include   specify directory for the libelf include files
2177   --with-libelf-lib       specify directory for the libelf library
2178   --with-jvm-features     additional JVM features to enable (separated by
2179                           comma), use '--help' to show possible values [none]
2180   --with-jvm-interpreter  Deprecated. Option is kept for backwards
2181                           compatibility and is ignored
2182   --with-num-cores        number of cores in the build system, e.g.
2183                           --with-num-cores=8 [probed]
2184   --with-memory-size      memory (in MB) available in the build system, e.g.
2185                           --with-memory-size=1024 [probed]
2186   --with-jobs             number of parallel jobs to let make run [calculated
2187                           based on cores and memory]
2188   --with-test-jobs        number of parallel tests jobs to run [based on build
2189                           jobs]
2190   --with-boot-jdk-jvmargs specify JVM arguments to be passed to all java
2191                           invocations of boot JDK, overriding the default
2192                           values, e.g --with-boot-jdk-jvmargs="-Xmx8G
2193                           -enableassertions"
2194   --with-sjavac-server-java
2195                           use this java binary for running the sjavac
2196                           background server [Boot JDK java]
2197   --with-ccache-dir       where to store ccache files [~/.ccache]
2198 
2199 Some influential environment variables:
2200   BASENAME    Override default value for BASENAME
2201   BASH        Override default value for BASH
2202   CAT         Override default value for CAT
2203   CHMOD       Override default value for CHMOD
2204   CMP         Override default value for CMP
2205   COMM        Override default value for COMM
2206   CP          Override default value for CP
2207   CUT         Override default value for CUT
2208   DATE        Override default value for DATE
2209   DIFF        Override default value for DIFF
2210   DIRNAME     Override default value for DIRNAME
2211   ECHO        Override default value for ECHO
2212   EXPR        Override default value for EXPR
2213   FILE        Override default value for FILE
2214   FIND        Override default value for FIND
2215   HEAD        Override default value for HEAD
2216   GUNZIP      Override default value for GUNZIP
2217   GZIP        Override default value for GZIP
2218   LN          Override default value for LN
2219   LS          Override default value for LS
2220   MKDIR       Override default value for MKDIR
2221   MKTEMP      Override default value for MKTEMP
2222   MV          Override default value for MV
2223   NAWK        Override default value for NAWK
2224   PRINTF      Override default value for PRINTF
2225   RM          Override default value for RM
2226   RMDIR       Override default value for RMDIR
2227   SH          Override default value for SH
2228   SORT        Override default value for SORT
2229   TAIL        Override default value for TAIL
2230   TAR         Override default value for TAR
2231   TEE         Override default value for TEE
2232   TOUCH       Override default value for TOUCH
2233   TR          Override default value for TR
2234   UNAME       Override default value for UNAME
2235   UNIQ        Override default value for UNIQ
2236   WC          Override default value for WC
2237   WHICH       Override default value for WHICH
2238   XARGS       Override default value for XARGS
2239   AWK         Override default value for AWK
2240   GREP        Override default value for GREP
2241   EGREP       Override default value for EGREP
2242   FGREP       Override default value for FGREP
2243   SED         Override default value for SED
2244   CYGPATH     Override default value for CYGPATH
2245   READLINK    Override default value for READLINK
2246   DF          Override default value for DF
2247   CPIO        Override default value for CPIO
2248   NICE        Override default value for NICE
2249   PANDOC      Override default value for PANDOC
2250   MAKE        Override default value for MAKE
2251   UNZIP       Override default value for UNZIP
2252   ZIPEXE      Override default value for ZIPEXE
2253   LDD         Override default value for LDD
2254   OTOOL       Override default value for OTOOL
2255   READELF     Override default value for READELF
2256   HG          Override default value for HG
2257   STAT        Override default value for STAT
2258   TIME        Override default value for TIME
2259   DTRACE      Override default value for DTRACE
2260   PATCH       Override default value for PATCH
2261   DSYMUTIL    Override default value for DSYMUTIL
2262   XATTR       Override default value for XATTR
2263   CODESIGN    Override default value for CODESIGN
2264   SETFILE     Override default value for SETFILE
2265   PKG_CONFIG  path to pkg-config utility
2266   JAVA        Override default value for JAVA
2267   JAVAC       Override default value for JAVAC
2268   JAVAH       Override default value for JAVAH
2269   JAR         Override default value for JAR
2270   JARSIGNER   Override default value for JARSIGNER
2271   CC          C compiler command
2272   CFLAGS      C compiler flags
2273   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2274               nonstandard directory <lib dir>
2275   LIBS        libraries to pass to the linker, e.g. -l<library>
2276   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2277               you have headers in a nonstandard directory <include dir>
2278   CXX         C++ compiler command
2279   CXXFLAGS    C++ compiler flags
2280   CPP         C preprocessor
2281   CXXCPP      C++ preprocessor
2282   AS          Override default value for AS
2283   AR          Override default value for AR
2284   LIPO        Override default value for LIPO
2285   STRIP       Override default value for STRIP
2286   NM          Override default value for NM
2287   GNM         Override default value for GNM
2288   OBJCOPY     Override default value for OBJCOPY
2289   OBJDUMP     Override default value for OBJDUMP
2290   BUILD_CC    Override default value for BUILD_CC
2291   BUILD_CXX   Override default value for BUILD_CXX
2292   BUILD_NM    Override default value for BUILD_NM
2293   BUILD_AR    Override default value for BUILD_AR
2294   BUILD_OBJCOPY
2295               Override default value for BUILD_OBJCOPY
2296   BUILD_STRIP Override default value for BUILD_STRIP
2297   JTREGEXE    Override default value for JTREGEXE
2298   XMKMF       Path to xmkmf, Makefile generator for X Window System
2299   FREETYPE_CFLAGS
2300               C compiler flags for FREETYPE, overriding pkg-config
2301   FREETYPE_LIBS
2302               linker flags for FREETYPE, overriding pkg-config
2303   ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
2304   ALSA_LIBS   linker flags for ALSA, overriding pkg-config
2305   LIBFFI_CFLAGS
2306               C compiler flags for LIBFFI, overriding pkg-config
2307   LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
2308   PNG_CFLAGS  C compiler flags for PNG, overriding pkg-config
2309   PNG_LIBS    linker flags for PNG, overriding pkg-config
2310   LCMS_CFLAGS C compiler flags for LCMS, overriding pkg-config
2311   LCMS_LIBS   linker flags for LCMS, overriding pkg-config
2312   ELF_CFLAGS  C compiler flags for ELF, overriding pkg-config
2313   ELF_LIBS    linker flags for ELF, overriding pkg-config
2314   ICECC_CMD   Override default value for ICECC_CMD
2315   ICECC_CREATE_ENV
2316               Override default value for ICECC_CREATE_ENV
2317   ICECC_WRAPPER
2318               Override default value for ICECC_WRAPPER
2319   CCACHE      Override default value for CCACHE
2320 
2321 Use these variables to override the choices made by `configure' or to help
2322 it to find libraries and programs with nonstandard names/locations.
2323 
2324 Report bugs to <build-dev@openjdk.java.net>.
2325 OpenJDK home page: <http://openjdk.java.net>.
2326 _ACEOF
2327 ac_status=$?
2328 fi
2329 
2330 if test "$ac_init_help" = "recursive"; then
2331   # If there are subdirs, report their specific --help.
2332   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2333     test -d "$ac_dir" ||
2334       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2335       continue
2336     ac_builddir=.
2337 
2338 case "$ac_dir" in
2339 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2340 *)
2341   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2342   # A ".." for each directory in $ac_dir_suffix.
2343   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2344   case $ac_top_builddir_sub in
2345   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2346   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2347   esac ;;
2348 esac
2349 ac_abs_top_builddir=$ac_pwd
2350 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2351 # for backward compatibility:
2352 ac_top_builddir=$ac_top_build_prefix
2353 
2354 case $srcdir in
2355   .)  # We are building in place.
2356     ac_srcdir=.
2357     ac_top_srcdir=$ac_top_builddir_sub
2358     ac_abs_top_srcdir=$ac_pwd ;;
2359   [\\/]* | ?:[\\/]* )  # Absolute name.
2360     ac_srcdir=$srcdir$ac_dir_suffix;
2361     ac_top_srcdir=$srcdir
2362     ac_abs_top_srcdir=$srcdir ;;
2363   *) # Relative name.
2364     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2365     ac_top_srcdir=$ac_top_build_prefix$srcdir
2366     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2367 esac
2368 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2369 
2370     cd "$ac_dir" || { ac_status=$?; continue; }
2371     # Check for guested configure.
2372     if test -f "$ac_srcdir/configure.gnu"; then
2373       echo &&
2374       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2375     elif test -f "$ac_srcdir/configure"; then
2376       echo &&
2377       $SHELL "$ac_srcdir/configure" --help=recursive
2378     else
2379       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2380     fi || ac_status=$?
2381     cd "$ac_pwd" || { ac_status=$?; break; }
2382   done
2383 fi
2384 
2385 test -n "$ac_init_help" && exit $ac_status
2386 if $ac_init_version; then
2387   cat <<\_ACEOF
2388 OpenJDK configure jdk9
2389 generated by GNU Autoconf 2.69
2390 
2391 Copyright (C) 2012 Free Software Foundation, Inc.
2392 This configure script is free software; the Free Software Foundation
2393 gives unlimited permission to copy, distribute and modify it.
2394 _ACEOF
2395   exit
2396 fi
2397 
2398 ## ------------------------ ##
2399 ## Autoconf initialization. ##
2400 ## ------------------------ ##
2401 
2402 # ac_fn_c_try_compile LINENO
2403 # --------------------------
2404 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2405 ac_fn_c_try_compile ()
2406 {
2407   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2408   rm -f conftest.$ac_objext
2409   if { { ac_try="$ac_compile"
2410 case "(($ac_try" in
2411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2412   *) ac_try_echo=$ac_try;;
2413 esac
2414 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2415 $as_echo "$ac_try_echo"; } >&5
2416   (eval "$ac_compile") 2>conftest.err
2417   ac_status=$?
2418   if test -s conftest.err; then
2419     grep -v '^ *+' conftest.err >conftest.er1
2420     cat conftest.er1 >&5
2421     mv -f conftest.er1 conftest.err
2422   fi
2423   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2424   test $ac_status = 0; } && {
2425          test -z "$ac_c_werror_flag" ||
2426          test ! -s conftest.err
2427        } && test -s conftest.$ac_objext; then :
2428   ac_retval=0
2429 else
2430   $as_echo "$as_me: failed program was:" >&5
2431 sed 's/^/| /' conftest.$ac_ext >&5
2432 
2433         ac_retval=1
2434 fi
2435   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2436   as_fn_set_status $ac_retval
2437 
2438 } # ac_fn_c_try_compile
2439 
2440 # ac_fn_cxx_try_compile LINENO
2441 # ----------------------------
2442 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2443 ac_fn_cxx_try_compile ()
2444 {
2445   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2446   rm -f conftest.$ac_objext
2447   if { { ac_try="$ac_compile"
2448 case "(($ac_try" in
2449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2450   *) ac_try_echo=$ac_try;;
2451 esac
2452 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2453 $as_echo "$ac_try_echo"; } >&5
2454   (eval "$ac_compile") 2>conftest.err
2455   ac_status=$?
2456   if test -s conftest.err; then
2457     grep -v '^ *+' conftest.err >conftest.er1
2458     cat conftest.er1 >&5
2459     mv -f conftest.er1 conftest.err
2460   fi
2461   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2462   test $ac_status = 0; } && {
2463          test -z "$ac_cxx_werror_flag" ||
2464          test ! -s conftest.err
2465        } && test -s conftest.$ac_objext; then :
2466   ac_retval=0
2467 else
2468   $as_echo "$as_me: failed program was:" >&5
2469 sed 's/^/| /' conftest.$ac_ext >&5
2470 
2471         ac_retval=1
2472 fi
2473   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2474   as_fn_set_status $ac_retval
2475 
2476 } # ac_fn_cxx_try_compile
2477 
2478 # ac_fn_c_try_cpp LINENO
2479 # ----------------------
2480 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2481 ac_fn_c_try_cpp ()
2482 {
2483   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2484   if { { ac_try="$ac_cpp conftest.$ac_ext"
2485 case "(($ac_try" in
2486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2487   *) ac_try_echo=$ac_try;;
2488 esac
2489 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2490 $as_echo "$ac_try_echo"; } >&5
2491   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2492   ac_status=$?
2493   if test -s conftest.err; then
2494     grep -v '^ *+' conftest.err >conftest.er1
2495     cat conftest.er1 >&5
2496     mv -f conftest.er1 conftest.err
2497   fi
2498   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2499   test $ac_status = 0; } > conftest.i && {
2500          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2501          test ! -s conftest.err
2502        }; then :
2503   ac_retval=0
2504 else
2505   $as_echo "$as_me: failed program was:" >&5
2506 sed 's/^/| /' conftest.$ac_ext >&5
2507 
2508     ac_retval=1
2509 fi
2510   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2511   as_fn_set_status $ac_retval
2512 
2513 } # ac_fn_c_try_cpp
2514 
2515 # ac_fn_cxx_try_cpp LINENO
2516 # ------------------------
2517 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2518 ac_fn_cxx_try_cpp ()
2519 {
2520   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2521   if { { ac_try="$ac_cpp conftest.$ac_ext"
2522 case "(($ac_try" in
2523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2524   *) ac_try_echo=$ac_try;;
2525 esac
2526 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2527 $as_echo "$ac_try_echo"; } >&5
2528   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2529   ac_status=$?
2530   if test -s conftest.err; then
2531     grep -v '^ *+' conftest.err >conftest.er1
2532     cat conftest.er1 >&5
2533     mv -f conftest.er1 conftest.err
2534   fi
2535   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2536   test $ac_status = 0; } > conftest.i && {
2537          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2538          test ! -s conftest.err
2539        }; then :
2540   ac_retval=0
2541 else
2542   $as_echo "$as_me: failed program was:" >&5
2543 sed 's/^/| /' conftest.$ac_ext >&5
2544 
2545     ac_retval=1
2546 fi
2547   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2548   as_fn_set_status $ac_retval
2549 
2550 } # ac_fn_cxx_try_cpp
2551 
2552 # ac_fn_c_try_link LINENO
2553 # -----------------------
2554 # Try to link conftest.$ac_ext, and return whether this succeeded.
2555 ac_fn_c_try_link ()
2556 {
2557   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2558   rm -f conftest.$ac_objext conftest$ac_exeext
2559   if { { ac_try="$ac_link"
2560 case "(($ac_try" in
2561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2562   *) ac_try_echo=$ac_try;;
2563 esac
2564 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2565 $as_echo "$ac_try_echo"; } >&5
2566   (eval "$ac_link") 2>conftest.err
2567   ac_status=$?
2568   if test -s conftest.err; then
2569     grep -v '^ *+' conftest.err >conftest.er1
2570     cat conftest.er1 >&5
2571     mv -f conftest.er1 conftest.err
2572   fi
2573   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2574   test $ac_status = 0; } && {
2575          test -z "$ac_c_werror_flag" ||
2576          test ! -s conftest.err
2577        } && test -s conftest$ac_exeext && {
2578          test "$cross_compiling" = yes ||
2579          test -x conftest$ac_exeext
2580        }; then :
2581   ac_retval=0
2582 else
2583   $as_echo "$as_me: failed program was:" >&5
2584 sed 's/^/| /' conftest.$ac_ext >&5
2585 
2586         ac_retval=1
2587 fi
2588   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2589   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2590   # interfere with the next link command; also delete a directory that is
2591   # left behind by Apple's compiler.  We do this before executing the actions.
2592   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2593   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2594   as_fn_set_status $ac_retval
2595 
2596 } # ac_fn_c_try_link
2597 
2598 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2599 # ---------------------------------------------------------
2600 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2601 # the include files in INCLUDES and setting the cache variable VAR
2602 # accordingly.
2603 ac_fn_cxx_check_header_mongrel ()
2604 {
2605   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2606   if eval \${$3+:} false; then :
2607   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2608 $as_echo_n "checking for $2... " >&6; }
2609 if eval \${$3+:} false; then :
2610   $as_echo_n "(cached) " >&6
2611 fi
2612 eval ac_res=\$$3
2613                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2614 $as_echo "$ac_res" >&6; }
2615 else
2616   # Is the header compilable?
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2618 $as_echo_n "checking $2 usability... " >&6; }
2619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2620 /* end confdefs.h.  */
2621 $4
2622 #include <$2>
2623 _ACEOF
2624 if ac_fn_cxx_try_compile "$LINENO"; then :
2625   ac_header_compiler=yes
2626 else
2627   ac_header_compiler=no
2628 fi
2629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2631 $as_echo "$ac_header_compiler" >&6; }
2632 
2633 # Is the header present?
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2635 $as_echo_n "checking $2 presence... " >&6; }
2636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2637 /* end confdefs.h.  */
2638 #include <$2>
2639 _ACEOF
2640 if ac_fn_cxx_try_cpp "$LINENO"; then :
2641   ac_header_preproc=yes
2642 else
2643   ac_header_preproc=no
2644 fi
2645 rm -f conftest.err conftest.i conftest.$ac_ext
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2647 $as_echo "$ac_header_preproc" >&6; }
2648 
2649 # So?  What about this header?
2650 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2651   yes:no: )
2652     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2653 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2654     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2655 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2656     ;;
2657   no:yes:* )
2658     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2659 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2660     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2661 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2662     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2663 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2664     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2665 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2666     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2667 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2668 ( $as_echo "## ----------------------------------------- ##
2669 ## Report this to build-dev@openjdk.java.net ##
2670 ## ----------------------------------------- ##"
2671      ) | sed "s/^/$as_me: WARNING:     /" >&2
2672     ;;
2673 esac
2674   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2675 $as_echo_n "checking for $2... " >&6; }
2676 if eval \${$3+:} false; then :
2677   $as_echo_n "(cached) " >&6
2678 else
2679   eval "$3=\$ac_header_compiler"
2680 fi
2681 eval ac_res=\$$3
2682                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2683 $as_echo "$ac_res" >&6; }
2684 fi
2685   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2686 
2687 } # ac_fn_cxx_check_header_mongrel
2688 
2689 # ac_fn_cxx_try_run LINENO
2690 # ------------------------
2691 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2692 # that executables *can* be run.
2693 ac_fn_cxx_try_run ()
2694 {
2695   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2696   if { { ac_try="$ac_link"
2697 case "(($ac_try" in
2698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2699   *) ac_try_echo=$ac_try;;
2700 esac
2701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2702 $as_echo "$ac_try_echo"; } >&5
2703   (eval "$ac_link") 2>&5
2704   ac_status=$?
2705   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2706   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2707   { { case "(($ac_try" in
2708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2709   *) ac_try_echo=$ac_try;;
2710 esac
2711 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2712 $as_echo "$ac_try_echo"; } >&5
2713   (eval "$ac_try") 2>&5
2714   ac_status=$?
2715   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2716   test $ac_status = 0; }; }; then :
2717   ac_retval=0
2718 else
2719   $as_echo "$as_me: program exited with status $ac_status" >&5
2720        $as_echo "$as_me: failed program was:" >&5
2721 sed 's/^/| /' conftest.$ac_ext >&5
2722 
2723        ac_retval=$ac_status
2724 fi
2725   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2726   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2727   as_fn_set_status $ac_retval
2728 
2729 } # ac_fn_cxx_try_run
2730 
2731 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2732 # ---------------------------------------------------------
2733 # Tests whether HEADER exists and can be compiled using the include files in
2734 # INCLUDES, setting the cache variable VAR accordingly.
2735 ac_fn_cxx_check_header_compile ()
2736 {
2737   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2738   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2739 $as_echo_n "checking for $2... " >&6; }
2740 if eval \${$3+:} false; then :
2741   $as_echo_n "(cached) " >&6
2742 else
2743   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2744 /* end confdefs.h.  */
2745 $4
2746 #include <$2>
2747 _ACEOF
2748 if ac_fn_cxx_try_compile "$LINENO"; then :
2749   eval "$3=yes"
2750 else
2751   eval "$3=no"
2752 fi
2753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2754 fi
2755 eval ac_res=\$$3
2756                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2757 $as_echo "$ac_res" >&6; }
2758   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2759 
2760 } # ac_fn_cxx_check_header_compile
2761 
2762 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2763 # ----------------------------------------------
2764 # Tries to find the compile-time value of EXPR in a program that includes
2765 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2766 # computed
2767 ac_fn_cxx_compute_int ()
2768 {
2769   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2770   if test "$cross_compiling" = yes; then
2771     # Depending upon the size, compute the lo and hi bounds.
2772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2773 /* end confdefs.h.  */
2774 $4
2775 int
2776 main ()
2777 {
2778 static int test_array [1 - 2 * !(($2) >= 0)];
2779 test_array [0] = 0;
2780 return test_array [0];
2781 
2782   ;
2783   return 0;
2784 }
2785 _ACEOF
2786 if ac_fn_cxx_try_compile "$LINENO"; then :
2787   ac_lo=0 ac_mid=0
2788   while :; do
2789     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2790 /* end confdefs.h.  */
2791 $4
2792 int
2793 main ()
2794 {
2795 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2796 test_array [0] = 0;
2797 return test_array [0];
2798 
2799   ;
2800   return 0;
2801 }
2802 _ACEOF
2803 if ac_fn_cxx_try_compile "$LINENO"; then :
2804   ac_hi=$ac_mid; break
2805 else
2806   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2807                         if test $ac_lo -le $ac_mid; then
2808                           ac_lo= ac_hi=
2809                           break
2810                         fi
2811                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2812 fi
2813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2814   done
2815 else
2816   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2817 /* end confdefs.h.  */
2818 $4
2819 int
2820 main ()
2821 {
2822 static int test_array [1 - 2 * !(($2) < 0)];
2823 test_array [0] = 0;
2824 return test_array [0];
2825 
2826   ;
2827   return 0;
2828 }
2829 _ACEOF
2830 if ac_fn_cxx_try_compile "$LINENO"; then :
2831   ac_hi=-1 ac_mid=-1
2832   while :; do
2833     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2834 /* end confdefs.h.  */
2835 $4
2836 int
2837 main ()
2838 {
2839 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2840 test_array [0] = 0;
2841 return test_array [0];
2842 
2843   ;
2844   return 0;
2845 }
2846 _ACEOF
2847 if ac_fn_cxx_try_compile "$LINENO"; then :
2848   ac_lo=$ac_mid; break
2849 else
2850   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2851                         if test $ac_mid -le $ac_hi; then
2852                           ac_lo= ac_hi=
2853                           break
2854                         fi
2855                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2856 fi
2857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2858   done
2859 else
2860   ac_lo= ac_hi=
2861 fi
2862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2863 fi
2864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2865 # Binary search between lo and hi bounds.
2866 while test "x$ac_lo" != "x$ac_hi"; do
2867   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2868   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2869 /* end confdefs.h.  */
2870 $4
2871 int
2872 main ()
2873 {
2874 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2875 test_array [0] = 0;
2876 return test_array [0];
2877 
2878   ;
2879   return 0;
2880 }
2881 _ACEOF
2882 if ac_fn_cxx_try_compile "$LINENO"; then :
2883   ac_hi=$ac_mid
2884 else
2885   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2886 fi
2887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2888 done
2889 case $ac_lo in #((
2890 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2891 '') ac_retval=1 ;;
2892 esac
2893   else
2894     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2895 /* end confdefs.h.  */
2896 $4
2897 static long int longval () { return $2; }
2898 static unsigned long int ulongval () { return $2; }
2899 #include <stdio.h>
2900 #include <stdlib.h>
2901 int
2902 main ()
2903 {
2904 
2905   FILE *f = fopen ("conftest.val", "w");
2906   if (! f)
2907     return 1;
2908   if (($2) < 0)
2909     {
2910       long int i = longval ();
2911       if (i != ($2))
2912         return 1;
2913       fprintf (f, "%ld", i);
2914     }
2915   else
2916     {
2917       unsigned long int i = ulongval ();
2918       if (i != ($2))
2919         return 1;
2920       fprintf (f, "%lu", i);
2921     }
2922   /* Do not output a trailing newline, as this causes \r\n confusion
2923      on some platforms.  */
2924   return ferror (f) || fclose (f) != 0;
2925 
2926   ;
2927   return 0;
2928 }
2929 _ACEOF
2930 if ac_fn_cxx_try_run "$LINENO"; then :
2931   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2932 else
2933   ac_retval=1
2934 fi
2935 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2936   conftest.$ac_objext conftest.beam conftest.$ac_ext
2937 rm -f conftest.val
2938 
2939   fi
2940   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2941   as_fn_set_status $ac_retval
2942 
2943 } # ac_fn_cxx_compute_int
2944 
2945 # ac_fn_cxx_try_link LINENO
2946 # -------------------------
2947 # Try to link conftest.$ac_ext, and return whether this succeeded.
2948 ac_fn_cxx_try_link ()
2949 {
2950   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2951   rm -f conftest.$ac_objext conftest$ac_exeext
2952   if { { ac_try="$ac_link"
2953 case "(($ac_try" in
2954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2955   *) ac_try_echo=$ac_try;;
2956 esac
2957 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2958 $as_echo "$ac_try_echo"; } >&5
2959   (eval "$ac_link") 2>conftest.err
2960   ac_status=$?
2961   if test -s conftest.err; then
2962     grep -v '^ *+' conftest.err >conftest.er1
2963     cat conftest.er1 >&5
2964     mv -f conftest.er1 conftest.err
2965   fi
2966   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2967   test $ac_status = 0; } && {
2968          test -z "$ac_cxx_werror_flag" ||
2969          test ! -s conftest.err
2970        } && test -s conftest$ac_exeext && {
2971          test "$cross_compiling" = yes ||
2972          test -x conftest$ac_exeext
2973        }; then :
2974   ac_retval=0
2975 else
2976   $as_echo "$as_me: failed program was:" >&5
2977 sed 's/^/| /' conftest.$ac_ext >&5
2978 
2979         ac_retval=1
2980 fi
2981   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2982   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2983   # interfere with the next link command; also delete a directory that is
2984   # left behind by Apple's compiler.  We do this before executing the actions.
2985   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2986   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2987   as_fn_set_status $ac_retval
2988 
2989 } # ac_fn_cxx_try_link
2990 
2991 # ac_fn_cxx_check_func LINENO FUNC VAR
2992 # ------------------------------------
2993 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2994 ac_fn_cxx_check_func ()
2995 {
2996   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2997   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2998 $as_echo_n "checking for $2... " >&6; }
2999 if eval \${$3+:} false; then :
3000   $as_echo_n "(cached) " >&6
3001 else
3002   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3003 /* end confdefs.h.  */
3004 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
3005    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3006 #define $2 innocuous_$2
3007 
3008 /* System header to define __stub macros and hopefully few prototypes,
3009     which can conflict with char $2 (); below.
3010     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3011     <limits.h> exists even on freestanding compilers.  */
3012 
3013 #ifdef __STDC__
3014 # include <limits.h>
3015 #else
3016 # include <assert.h>
3017 #endif
3018 
3019 #undef $2
3020 
3021 /* Override any GCC internal prototype to avoid an error.
3022    Use char because int might match the return type of a GCC
3023    builtin and then its argument prototype would still apply.  */
3024 #ifdef __cplusplus
3025 extern "C"
3026 #endif
3027 char $2 ();
3028 /* The GNU C library defines this for functions which it implements
3029     to always fail with ENOSYS.  Some functions are actually named
3030     something starting with __ and the normal name is an alias.  */
3031 #if defined __stub_$2 || defined __stub___$2
3032 choke me
3033 #endif
3034 
3035 int
3036 main ()
3037 {
3038 return $2 ();
3039   ;
3040   return 0;
3041 }
3042 _ACEOF
3043 if ac_fn_cxx_try_link "$LINENO"; then :
3044   eval "$3=yes"
3045 else
3046   eval "$3=no"
3047 fi
3048 rm -f core conftest.err conftest.$ac_objext \
3049     conftest$ac_exeext conftest.$ac_ext
3050 fi
3051 eval ac_res=\$$3
3052                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3053 $as_echo "$ac_res" >&6; }
3054   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3055 
3056 } # ac_fn_cxx_check_func
3057 
3058 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
3059 # -------------------------------------------------------
3060 # Tests whether HEADER exists and can be compiled using the include files in
3061 # INCLUDES, setting the cache variable VAR accordingly.
3062 ac_fn_c_check_header_compile ()
3063 {
3064   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3065   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3066 $as_echo_n "checking for $2... " >&6; }
3067 if eval \${$3+:} false; then :
3068   $as_echo_n "(cached) " >&6
3069 else
3070   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3071 /* end confdefs.h.  */
3072 $4
3073 #include <$2>
3074 _ACEOF
3075 if ac_fn_c_try_compile "$LINENO"; then :
3076   eval "$3=yes"
3077 else
3078   eval "$3=no"
3079 fi
3080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3081 fi
3082 eval ac_res=\$$3
3083                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3084 $as_echo "$ac_res" >&6; }
3085   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3086 
3087 } # ac_fn_c_check_header_compile
3088 cat >config.log <<_ACEOF
3089 This file contains any messages produced by compilers while
3090 running configure, to aid debugging if configure makes a mistake.
3091 
3092 It was created by OpenJDK $as_me jdk9, which was
3093 generated by GNU Autoconf 2.69.  Invocation command line was
3094 
3095   $ $0 $@
3096 
3097 _ACEOF
3098 exec 5>>config.log
3099 {
3100 cat <<_ASUNAME
3101 ## --------- ##
3102 ## Platform. ##
3103 ## --------- ##
3104 
3105 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3106 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3107 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3108 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3109 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3110 
3111 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3112 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
3113 
3114 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
3115 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
3116 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3117 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
3118 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
3119 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
3120 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
3121 
3122 _ASUNAME
3123 
3124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3125 for as_dir in $PATH
3126 do
3127   IFS=$as_save_IFS
3128   test -z "$as_dir" && as_dir=.
3129     $as_echo "PATH: $as_dir"
3130   done
3131 IFS=$as_save_IFS
3132 
3133 } >&5
3134 
3135 cat >&5 <<_ACEOF
3136 
3137 
3138 ## ----------- ##
3139 ## Core tests. ##
3140 ## ----------- ##
3141 
3142 _ACEOF
3143 
3144 
3145 # Keep a trace of the command line.
3146 # Strip out --no-create and --no-recursion so they do not pile up.
3147 # Strip out --silent because we don't want to record it for future runs.
3148 # Also quote any args containing shell meta-characters.
3149 # Make two passes to allow for proper duplicate-argument suppression.
3150 ac_configure_args=
3151 ac_configure_args0=
3152 ac_configure_args1=
3153 ac_must_keep_next=false
3154 for ac_pass in 1 2
3155 do
3156   for ac_arg
3157   do
3158     case $ac_arg in
3159     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3160     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3161     | -silent | --silent | --silen | --sile | --sil)
3162       continue ;;
3163     *\'*)
3164       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3165     esac
3166     case $ac_pass in
3167     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3168     2)
3169       as_fn_append ac_configure_args1 " '$ac_arg'"
3170       if test $ac_must_keep_next = true; then
3171         ac_must_keep_next=false # Got value, back to normal.
3172       else
3173         case $ac_arg in
3174           *=* | --config-cache | -C | -disable-* | --disable-* \
3175           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3176           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3177           | -with-* | --with-* | -without-* | --without-* | --x)
3178             case "$ac_configure_args0 " in
3179               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3180             esac
3181             ;;
3182           -* ) ac_must_keep_next=true ;;
3183         esac
3184       fi
3185       as_fn_append ac_configure_args " '$ac_arg'"
3186       ;;
3187     esac
3188   done
3189 done
3190 { ac_configure_args0=; unset ac_configure_args0;}
3191 { ac_configure_args1=; unset ac_configure_args1;}
3192 
3193 # When interrupted or exit'd, cleanup temporary files, and complete
3194 # config.log.  We remove comments because anyway the quotes in there
3195 # would cause problems or look ugly.
3196 # WARNING: Use '\'' to represent an apostrophe within the trap.
3197 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3198 trap 'exit_status=$?
3199   # Save into config.log some information that might help in debugging.
3200   {
3201     echo
3202 
3203     $as_echo "## ---------------- ##
3204 ## Cache variables. ##
3205 ## ---------------- ##"
3206     echo
3207     # The following way of writing the cache mishandles newlines in values,
3208 (
3209   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3210     eval ac_val=\$$ac_var
3211     case $ac_val in #(
3212     *${as_nl}*)
3213       case $ac_var in #(
3214       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3215 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3216       esac
3217       case $ac_var in #(
3218       _ | IFS | as_nl) ;; #(
3219       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3220       *) { eval $ac_var=; unset $ac_var;} ;;
3221       esac ;;
3222     esac
3223   done
3224   (set) 2>&1 |
3225     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3226     *${as_nl}ac_space=\ *)
3227       sed -n \
3228         "s/'\''/'\''\\\\'\'''\''/g;
3229           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3230       ;; #(
3231     *)
3232       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3233       ;;
3234     esac |
3235     sort
3236 )
3237     echo
3238 
3239     $as_echo "## ----------------- ##
3240 ## Output variables. ##
3241 ## ----------------- ##"
3242     echo
3243     for ac_var in $ac_subst_vars
3244     do
3245       eval ac_val=\$$ac_var
3246       case $ac_val in
3247       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3248       esac
3249       $as_echo "$ac_var='\''$ac_val'\''"
3250     done | sort
3251     echo
3252 
3253     if test -n "$ac_subst_files"; then
3254       $as_echo "## ------------------- ##
3255 ## File substitutions. ##
3256 ## ------------------- ##"
3257       echo
3258       for ac_var in $ac_subst_files
3259       do
3260         eval ac_val=\$$ac_var
3261         case $ac_val in
3262         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3263         esac
3264         $as_echo "$ac_var='\''$ac_val'\''"
3265       done | sort
3266       echo
3267     fi
3268 
3269     if test -s confdefs.h; then
3270       $as_echo "## ----------- ##
3271 ## confdefs.h. ##
3272 ## ----------- ##"
3273       echo
3274       cat confdefs.h
3275       echo
3276     fi
3277     test "$ac_signal" != 0 &&
3278       $as_echo "$as_me: caught signal $ac_signal"
3279     $as_echo "$as_me: exit $exit_status"
3280   } >&5
3281   rm -f core *.core core.conftest.* &&
3282     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3283     exit $exit_status
3284 ' 0
3285 for ac_signal in 1 2 13 15; do
3286   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3287 done
3288 ac_signal=0
3289 
3290 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3291 rm -f -r conftest* confdefs.h
3292 
3293 $as_echo "/* confdefs.h */" > confdefs.h
3294 
3295 # Predefined preprocessor variables.
3296 
3297 cat >>confdefs.h <<_ACEOF
3298 #define PACKAGE_NAME "$PACKAGE_NAME"
3299 _ACEOF
3300 
3301 cat >>confdefs.h <<_ACEOF
3302 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3303 _ACEOF
3304 
3305 cat >>confdefs.h <<_ACEOF
3306 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3307 _ACEOF
3308 
3309 cat >>confdefs.h <<_ACEOF
3310 #define PACKAGE_STRING "$PACKAGE_STRING"
3311 _ACEOF
3312 
3313 cat >>confdefs.h <<_ACEOF
3314 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3315 _ACEOF
3316 
3317 cat >>confdefs.h <<_ACEOF
3318 #define PACKAGE_URL "$PACKAGE_URL"
3319 _ACEOF
3320 
3321 
3322 # Let the site file select an alternate cache file if it wants to.
3323 # Prefer an explicitly selected file to automatically selected ones.
3324 ac_site_file1=NONE
3325 ac_site_file2=NONE
3326 if test -n "$CONFIG_SITE"; then
3327   # We do not want a PATH search for config.site.
3328   case $CONFIG_SITE in #((
3329     -*)  ac_site_file1=./$CONFIG_SITE;;
3330     */*) ac_site_file1=$CONFIG_SITE;;
3331     *)   ac_site_file1=./$CONFIG_SITE;;
3332   esac
3333 elif test "x$prefix" != xNONE; then
3334   ac_site_file1=$prefix/share/config.site
3335   ac_site_file2=$prefix/etc/config.site
3336 else
3337   ac_site_file1=$ac_default_prefix/share/config.site
3338   ac_site_file2=$ac_default_prefix/etc/config.site
3339 fi
3340 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3341 do
3342   test "x$ac_site_file" = xNONE && continue
3343   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3344     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3345 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3346     sed 's/^/| /' "$ac_site_file" >&5
3347     . "$ac_site_file" \
3348       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3349 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3350 as_fn_error $? "failed to load site script $ac_site_file
3351 See \`config.log' for more details" "$LINENO" 5; }
3352   fi
3353 done
3354 
3355 if test -r "$cache_file"; then
3356   # Some versions of bash will fail to source /dev/null (special files
3357   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3358   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3359     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3360 $as_echo "$as_me: loading cache $cache_file" >&6;}
3361     case $cache_file in
3362       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3363       *)                      . "./$cache_file";;
3364     esac
3365   fi
3366 else
3367   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3368 $as_echo "$as_me: creating cache $cache_file" >&6;}
3369   >$cache_file
3370 fi
3371 
3372 # Check that the precious variables saved in the cache have kept the same
3373 # value.
3374 ac_cache_corrupted=false
3375 for ac_var in $ac_precious_vars; do
3376   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3377   eval ac_new_set=\$ac_env_${ac_var}_set
3378   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3379   eval ac_new_val=\$ac_env_${ac_var}_value
3380   case $ac_old_set,$ac_new_set in
3381     set,)
3382       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3383 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3384       ac_cache_corrupted=: ;;
3385     ,set)
3386       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3387 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3388       ac_cache_corrupted=: ;;
3389     ,);;
3390     *)
3391       if test "x$ac_old_val" != "x$ac_new_val"; then
3392         # differences in whitespace do not lead to failure.
3393         ac_old_val_w=`echo x $ac_old_val`
3394         ac_new_val_w=`echo x $ac_new_val`
3395         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3396           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3397 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3398           ac_cache_corrupted=:
3399         else
3400           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3401 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3402           eval $ac_var=\$ac_old_val
3403         fi
3404         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3405 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3406         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3407 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3408       fi;;
3409   esac
3410   # Pass precious variables to config.status.
3411   if test "$ac_new_set" = set; then
3412     case $ac_new_val in
3413     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3414     *) ac_arg=$ac_var=$ac_new_val ;;
3415     esac
3416     case " $ac_configure_args " in
3417       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3418       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3419     esac
3420   fi
3421 done
3422 if $ac_cache_corrupted; then
3423   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3424 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3425   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3426 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3427   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3428 fi
3429 ## -------------------- ##
3430 ## Main body of script. ##
3431 ## -------------------- ##
3432 
3433 ac_ext=c
3434 ac_cpp='$CPP $CPPFLAGS'
3435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3438 
3439 
3440 
3441 ac_aux_dir=
3442 for ac_dir in $TOPDIR/common/autoconf/build-aux "$srcdir"/$TOPDIR/common/autoconf/build-aux; do
3443   if test -f "$ac_dir/install-sh"; then
3444     ac_aux_dir=$ac_dir
3445     ac_install_sh="$ac_aux_dir/install-sh -c"
3446     break
3447   elif test -f "$ac_dir/install.sh"; then
3448     ac_aux_dir=$ac_dir
3449     ac_install_sh="$ac_aux_dir/install.sh -c"
3450     break
3451   elif test -f "$ac_dir/shtool"; then
3452     ac_aux_dir=$ac_dir
3453     ac_install_sh="$ac_aux_dir/shtool install -c"
3454     break
3455   fi
3456 done
3457 if test -z "$ac_aux_dir"; then
3458   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
3459 fi
3460 
3461 # These three variables are undocumented and unsupported,
3462 # and are intended to be withdrawn in a future Autoconf release.
3463 # They can cause serious problems if a builder's source tree is in a directory
3464 # whose full name contains unusual characters.
3465 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3466 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3467 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3468 
3469 
3470 # pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
3471 
3472 #
3473 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
3474 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3475 #
3476 # This code is free software; you can redistribute it and/or modify it
3477 # under the terms of the GNU General Public License version 2 only, as
3478 # published by the Free Software Foundation.  Oracle designates this
3479 # particular file as subject to the "Classpath" exception as provided
3480 # by Oracle in the LICENSE file that accompanied this code.
3481 #
3482 # This code is distributed in the hope that it will be useful, but WITHOUT
3483 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3484 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3485 # version 2 for more details (a copy is included in the LICENSE file that
3486 # accompanied this code).
3487 #
3488 # You should have received a copy of the GNU General Public License version
3489 # 2 along with this work; if not, write to the Free Software Foundation,
3490 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3491 #
3492 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3493 # or visit www.oracle.com if you need additional information or have any
3494 # questions.
3495 #
3496 
3497 #
3498 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
3499 #
3500 # This program is free software; you can redistribute it and/or modify
3501 # it under the terms of the GNU General Public License as published by
3502 # the Free Software Foundation; either version 2 of the License, or
3503 # (at your option) any later version.
3504 #
3505 # This program is distributed in the hope that it will be useful, but
3506 # WITHOUT ANY WARRANTY; without even the implied warranty of
3507 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
3508 # General Public License for more details.
3509 #
3510 # You should have received a copy of the GNU General Public License
3511 # along with this program; if not, write to the Free Software
3512 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
3513 #
3514 # As a special exception to the GNU General Public License, if you
3515 # distribute this file as part of a program that contains a
3516 # configuration script generated by Autoconf, you may include it under
3517 # the same distribution terms that you use for the rest of that program.
3518 
3519 # PKG_PROG_PKG_CONFIG([MIN-VERSION])
3520 # ----------------------------------
3521 # PKG_PROG_PKG_CONFIG
3522 
3523 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
3524 #
3525 # Check to see whether a particular set of modules exists.  Similar
3526 # to PKG_CHECK_MODULES(), but does not set variables or print errors.
3527 #
3528 #
3529 # Similar to PKG_CHECK_MODULES, make sure that the first instance of
3530 # this or PKG_CHECK_MODULES is called, or make sure to call
3531 # PKG_CHECK_EXISTS manually
3532 # --------------------------------------------------------------
3533 
3534 
3535 
3536 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
3537 # ---------------------------------------------
3538 # _PKG_CONFIG
3539 
3540 # _PKG_SHORT_ERRORS_SUPPORTED
3541 # -----------------------------
3542 # _PKG_SHORT_ERRORS_SUPPORTED
3543 
3544 
3545 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
3546 # [ACTION-IF-NOT-FOUND])
3547 #
3548 #
3549 # Note that if there is a possibility the first call to
3550 # PKG_CHECK_MODULES might not happen, you should be sure to include an
3551 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
3552 #
3553 #
3554 # --------------------------------------------------------------
3555 # PKG_CHECK_MODULES
3556 
3557 
3558 # Include these first...
3559 #
3560 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
3561 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3562 #
3563 # This code is free software; you can redistribute it and/or modify it
3564 # under the terms of the GNU General Public License version 2 only, as
3565 # published by the Free Software Foundation.  Oracle designates this
3566 # particular file as subject to the "Classpath" exception as provided
3567 # by Oracle in the LICENSE file that accompanied this code.
3568 #
3569 # This code is distributed in the hope that it will be useful, but WITHOUT
3570 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3571 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3572 # version 2 for more details (a copy is included in the LICENSE file that
3573 # accompanied this code).
3574 #
3575 # You should have received a copy of the GNU General Public License version
3576 # 2 along with this work; if not, write to the Free Software Foundation,
3577 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3578 #
3579 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3580 # or visit www.oracle.com if you need additional information or have any
3581 # questions.
3582 #
3583 
3584 # Create a function/macro that takes a series of named arguments. The call is
3585 # similar to AC_DEFUN, but the setup of the function looks like this:
3586 # BASIC_DEFUN_NAMED([MYFUNC], [FOO *BAR], [$@], [
3587 # ... do something
3588 #   AC_MSG_NOTICE([Value of BAR is ARG_BAR])
3589 # ])
3590 # A star (*) in front of a named argument means that it is required and it's
3591 # presence will be verified. To pass e.g. the first value as a normal indexed
3592 # argument, use [m4_shift($@)] as the third argument instead of [$@]. These
3593 # arguments are referenced in the function by their name prefixed by ARG_, e.g.
3594 # "ARG_FOO".
3595 #
3596 # The generated function can be called like this:
3597 # MYFUNC(FOO: [foo-val],
3598 #     BAR: [
3599 #         $ECHO hello world
3600 #     ])
3601 # Note that the argument value must start on the same line as the argument name.
3602 #
3603 # Argument 1: Name of the function to define
3604 # Argument 2: List of legal named arguments, with a * prefix for required arguments
3605 # Argument 3: Argument array to treat as named, typically $@
3606 # Argument 4: The main function body
3607 
3608 
3609 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3)
3610 # If so, then append $1 to $2 \
3611 # Also set JVM_ARG_OK to true/false depending on outcome.
3612 
3613 
3614 # Appends a string to a path variable, only adding the : when needed.
3615 
3616 
3617 # Prepends a string to a path variable, only adding the : when needed.
3618 
3619 
3620 # This will make sure the given variable points to a full and proper
3621 # path. This means:
3622 # 1) There will be no spaces in the path. On unix platforms,
3623 #    spaces in the path will result in an error. On Windows,
3624 #    the path will be rewritten using short-style to be space-free.
3625 # 2) The path will be absolute, and it will be in unix-style (on
3626 #     cygwin).
3627 # $1: The name of the variable to fix
3628 
3629 
3630 # This will make sure the given variable points to a executable
3631 # with a full and proper path. This means:
3632 # 1) There will be no spaces in the path. On unix platforms,
3633 #    spaces in the path will result in an error. On Windows,
3634 #    the path will be rewritten using short-style to be space-free.
3635 # 2) The path will be absolute, and it will be in unix-style (on
3636 #     cygwin).
3637 # Any arguments given to the executable is preserved.
3638 # If the input variable does not have a directory specification, then
3639 # it need to be in the PATH.
3640 # $1: The name of the variable to fix
3641 
3642 
3643 
3644 
3645 # Register a --with argument but mark it as deprecated
3646 # $1: The name of the with argument to deprecate, not including --with-
3647 
3648 
3649 # Register a --enable argument but mark it as deprecated
3650 # $1: The name of the with argument to deprecate, not including --enable-
3651 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -)
3652 # $3: Messages to user.
3653 
3654 
3655 
3656 
3657 # Test that variable $1 denoting a program is not empty. If empty, exit with an error.
3658 # $1: variable to check
3659 
3660 
3661 # Check that there are no unprocessed overridden variables left.
3662 # If so, they are an incorrect argument and we will exit with an error.
3663 
3664 
3665 # Setup a tool for the given variable. If correctly specified by the user,
3666 # use that value, otherwise search for the tool using the supplied code snippet.
3667 # $1: variable to set
3668 # $2: code snippet to call to look for the tool
3669 # $3: code snippet to call if variable was used to find tool
3670 
3671 
3672 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool
3673 # $1: variable to set
3674 # $2: executable name (or list of names) to look for
3675 # $3: [path]
3676 
3677 
3678 # Call BASIC_SETUP_TOOL with AC_CHECK_TOOLS to locate the tool
3679 # $1: variable to set
3680 # $2: executable name (or list of names) to look for
3681 
3682 
3683 # Like BASIC_PATH_PROGS but fails if no tool was found.
3684 # $1: variable to set
3685 # $2: executable name (or list of names) to look for
3686 # $3: [path]
3687 
3688 
3689 # Like BASIC_SETUP_TOOL but fails if no tool was found.
3690 # $1: variable to set
3691 # $2: autoconf macro to call to look for the special tool
3692 
3693 
3694 # Setup the most fundamental tools that relies on not much else to set up,
3695 # but is used by much of the early bootstrap code.
3696 
3697 
3698 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3699 
3700 
3701 # Evaluates platform specific overrides for devkit variables.
3702 # $1: Name of variable
3703 
3704 
3705 
3706 
3707 
3708 
3709 #%%% Simple tools %%%
3710 
3711 # Check if we have found a usable version of make
3712 # $1: the path to a potential make binary (or empty)
3713 # $2: the description on how we found this
3714 
3715 
3716 
3717 
3718 # Goes looking for a usable version of GNU make.
3719 
3720 
3721 
3722 
3723 
3724 
3725 
3726 
3727 
3728 
3729 # Check if build directory is on local disk. If not possible to determine,
3730 # we prefer to claim it's local.
3731 # Argument 1: directory to test
3732 # Argument 2: what to do if it is on local disk
3733 # Argument 3: what to do otherwise (remote disk or failure)
3734 
3735 
3736 # Check that source files have basic read permissions set. This might
3737 # not be the case in cygwin in certain conditions.
3738 
3739 
3740 
3741 
3742 # Check for support for specific options in bash
3743 
3744 
3745 ################################################################################
3746 #
3747 # Default make target
3748 #
3749 
3750 
3751 # Code to run after AC_OUTPUT
3752 
3753 
3754 #
3755 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
3756 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3757 #
3758 # This code is free software; you can redistribute it and/or modify it
3759 # under the terms of the GNU General Public License version 2 only, as
3760 # published by the Free Software Foundation.  Oracle designates this
3761 # particular file as subject to the "Classpath" exception as provided
3762 # by Oracle in the LICENSE file that accompanied this code.
3763 #
3764 # This code is distributed in the hope that it will be useful, but WITHOUT
3765 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3766 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3767 # version 2 for more details (a copy is included in the LICENSE file that
3768 # accompanied this code).
3769 #
3770 # You should have received a copy of the GNU General Public License version
3771 # 2 along with this work; if not, write to the Free Software Foundation,
3772 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3773 #
3774 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3775 # or visit www.oracle.com if you need additional information or have any
3776 # questions.
3777 #
3778 
3779 
3780 
3781 
3782 
3783 # Helper function which possibly converts a path using DOS-style short mode.
3784 # If so, the updated path is stored in $new_path.
3785 # $1: The path to check
3786 
3787 
3788 # Helper function which possibly converts a path using DOS-style short mode.
3789 # If so, the updated path is stored in $new_path.
3790 # $1: The path to check
3791 
3792 
3793 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted
3794 # and could probably be heavily simplified. However, all changes in this
3795 # area tend to need lot of testing in different scenarios, and in lack of
3796 # proper unit testing, cleaning this up has not been deemed worth the effort
3797 # at the moment.
3798 
3799 
3800 
3801 
3802 
3803 
3804 
3805 
3806 
3807 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3808 
3809 
3810 
3811 
3812 # ... then the rest
3813 #
3814 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
3815 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3816 #
3817 # This code is free software; you can redistribute it and/or modify it
3818 # under the terms of the GNU General Public License version 2 only, as
3819 # published by the Free Software Foundation.  Oracle designates this
3820 # particular file as subject to the "Classpath" exception as provided
3821 # by Oracle in the LICENSE file that accompanied this code.
3822 #
3823 # This code is distributed in the hope that it will be useful, but WITHOUT
3824 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3825 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3826 # version 2 for more details (a copy is included in the LICENSE file that
3827 # accompanied this code).
3828 #
3829 # You should have received a copy of the GNU General Public License version
3830 # 2 along with this work; if not, write to the Free Software Foundation,
3831 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3832 #
3833 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3834 # or visit www.oracle.com if you need additional information or have any
3835 # questions.
3836 #
3837 
3838 ########################################################################
3839 # This file handles detection of the Boot JDK. The Boot JDK detection
3840 # process has been developed as a response to solve a complex real-world
3841 # problem. Initially, it was simple, but it has grown as platform after
3842 # platform, idiosyncracy after idiosyncracy has been supported.
3843 #
3844 # The basic idea is this:
3845 # 1) You need an acceptable *) JDK to use as a Boot JDK
3846 # 2) There are several ways to locate a JDK, that are mostly platform
3847 #    dependent **)
3848 # 3) You can have multiple JDKs installed
3849 # 4) If possible, configure should try to dig out an acceptable JDK
3850 #    automatically, without having to resort to command-line options
3851 #
3852 # *)  acceptable means e.g. JDK7 for building JDK8, a complete JDK (with
3853 #     javac) and not a JRE, etc.
3854 #
3855 # **) On Windows we typically use a well-known path.
3856 #     On MacOSX we typically use the tool java_home.
3857 #     On Linux we typically find javac in the $PATH, and then follow a
3858 #     chain of symlinks that often ends up in a real JDK.
3859 #
3860 # This leads to the code where we check in different ways to locate a
3861 # JDK, and if one is found, check if it is acceptable. If not, we print
3862 # our reasons for rejecting it (useful when debugging non-working
3863 # configure situations) and continue checking the next one.
3864 ########################################################################
3865 
3866 # Execute the check given as argument, and verify the result
3867 # If the Boot JDK was previously found, do nothing
3868 # $1 A command line (typically autoconf macro) to execute
3869 
3870 
3871 # Test: Is bootjdk explicitly set by command line arguments?
3872 
3873 
3874 # Test: Is $JAVA_HOME set?
3875 
3876 
3877 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
3878 
3879 
3880 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX)
3881 # $1: Argument to the java_home binary (optional)
3882 
3883 
3884 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home?
3885 
3886 
3887 # Look for a jdk in the given path. If there are multiple, try to select the newest.
3888 # If found, set BOOT_JDK and BOOT_JDK_FOUND.
3889 # $1 = Path to directory containing jdk installations.
3890 # $2 = String to append to the found JDK directory to get the proper JDK home
3891 
3892 
3893 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given
3894 # environmental variable as base for where to look.
3895 # $1 Name of an environmal variable, assumed to point to the Program Files directory.
3896 
3897 
3898 # Test: Is there a JDK installed in default, well-known locations?
3899 
3900 
3901 # Check that a command-line tool in the Boot JDK is correct
3902 # $1 = name of variable to assign
3903 # $2 = name of binary
3904 
3905 
3906 ###############################################################################
3907 #
3908 # We need a Boot JDK to bootstrap the build.
3909 #
3910 
3911 
3912 
3913 
3914 
3915 # BUILD_JDK: the location of the latest JDK that can run
3916 #   on the host system and supports the target class file version
3917 #   generated in this JDK build.  This variable should only be
3918 #   used after the launchers are built.
3919 #
3920 
3921 # Execute the check given as argument, and verify the result.
3922 # If the JDK was previously found, do nothing.
3923 # $1 A command line (typically autoconf macro) to execute
3924 
3925 
3926 # By default the BUILD_JDK is the JDK_OUTPUTDIR.  If the target architecture
3927 # is different than the host system doing the build (e.g. cross-compilation),
3928 # a special BUILD_JDK is built as part of the build process.  An external
3929 # prebuilt BUILD_JDK can also be supplied.
3930 
3931 
3932 #
3933 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
3934 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3935 #
3936 # This code is free software; you can redistribute it and/or modify it
3937 # under the terms of the GNU General Public License version 2 only, as
3938 # published by the Free Software Foundation.  Oracle designates this
3939 # particular file as subject to the "Classpath" exception as provided
3940 # by Oracle in the LICENSE file that accompanied this code.
3941 #
3942 # This code is distributed in the hope that it will be useful, but WITHOUT
3943 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3944 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3945 # version 2 for more details (a copy is included in the LICENSE file that
3946 # accompanied this code).
3947 #
3948 # You should have received a copy of the GNU General Public License version
3949 # 2 along with this work; if not, write to the Free Software Foundation,
3950 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3951 #
3952 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3953 # or visit www.oracle.com if you need additional information or have any
3954 # questions.
3955 #
3956 
3957 
3958 
3959 
3960 
3961 
3962 
3963 
3964 
3965 
3966 
3967 
3968 
3969 
3970 
3971 
3972 
3973 ################################################################################
3974 #
3975 # Runs icecc-create-env once and prints the error if it fails
3976 #
3977 # $1: arguments to icecc-create-env
3978 # $2: log file
3979 #
3980 
3981 
3982 ################################################################################
3983 #
3984 # Optionally enable distributed compilation of native code using icecc/icecream
3985 #
3986 
3987 
3988 
3989 
3990 
3991 
3992 
3993 #
3994 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
3995 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3996 #
3997 # This code is free software; you can redistribute it and/or modify it
3998 # under the terms of the GNU General Public License version 2 only, as
3999 # published by the Free Software Foundation.  Oracle designates this
4000 # particular file as subject to the "Classpath" exception as provided
4001 # by Oracle in the LICENSE file that accompanied this code.
4002 #
4003 # This code is distributed in the hope that it will be useful, but WITHOUT
4004 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4005 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4006 # version 2 for more details (a copy is included in the LICENSE file that
4007 # accompanied this code).
4008 #
4009 # You should have received a copy of the GNU General Public License version
4010 # 2 along with this work; if not, write to the Free Software Foundation,
4011 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4012 #
4013 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4014 # or visit www.oracle.com if you need additional information or have any
4015 # questions.
4016 #
4017 
4018 ################################################################################
4019 #
4020 # Setup ABI profile (for arm)
4021 #
4022 
4023 
4024 # Reset the global CFLAGS/LDFLAGS variables and initialize them with the
4025 # corresponding configure arguments instead
4026 
4027 
4028 # Setup the sysroot flags and add them to global CFLAGS and LDFLAGS so
4029 # that configure can use them while detecting compilers.
4030 # TOOLCHAIN_TYPE is available here.
4031 # Param 1 - Optional prefix to all variables. (e.g BUILD_)
4032 
4033 
4034 
4035 
4036 
4037 
4038 # Documentation on common flags used for solstudio in HIGHEST.
4039 #
4040 # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be
4041 #          done with care, there are some assumptions below that need to
4042 #          be understood about the use of pointers, and IEEE behavior.
4043 #
4044 # -fns: Use non-standard floating point mode (not IEEE 754)
4045 # -fsimple: Do some simplification of floating point arithmetic (not IEEE 754)
4046 # -fsingle: Use single precision floating point with 'float'
4047 # -xalias_level=basic: Assume memory references via basic pointer types do not alias
4048 #   (Source with excessing pointer casting and data access with mixed
4049 #    pointer types are not recommended)
4050 # -xbuiltin=%all: Use intrinsic or inline versions for math/std functions
4051 #   (If you expect perfect errno behavior, do not use this)
4052 # -xdepend: Loop data dependency optimizations (need -xO3 or higher)
4053 # -xrestrict: Pointer parameters to functions do not overlap
4054 #   (Similar to -xalias_level=basic usage, but less obvious sometimes.
4055 #    If you pass in multiple pointers to the same data, do not use this)
4056 # -xlibmil: Inline some library routines
4057 #   (If you expect perfect errno behavior, do not use this)
4058 # -xlibmopt: Use optimized math routines (CURRENTLY DISABLED)
4059 #   (If you expect perfect errno behavior, do not use this)
4060 #  Can cause undefined external on Solaris 8 X86 on __sincos, removing for now
4061 
4062     # FIXME: this will never happen since sparc != sparcv9, ie 32 bit, which we don't build anymore.
4063     # Bug?
4064     #if test "x$OPENJDK_TARGET_CPU" = xsparc; then
4065     #  CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s"
4066     #  CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s"
4067     #fi
4068 
4069 
4070 
4071 
4072 
4073 
4074 ################################################################################
4075 # $1 - Either BUILD or TARGET to pick the correct OS/CPU variables to check
4076 #      conditionals against.
4077 # $2 - Optional prefix for each variable defined.
4078 
4079 
4080 # FLAGS_C_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE],
4081 #                                  IF_FALSE: [RUN-IF-FALSE])
4082 # ------------------------------------------------------------
4083 # Check that the C compiler supports an argument
4084 
4085 
4086 
4087 
4088 # FLAGS_CXX_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE],
4089 #                                    IF_FALSE: [RUN-IF-FALSE])
4090 # ------------------------------------------------------------
4091 # Check that the C++ compiler supports an argument
4092 
4093 
4094 
4095 
4096 # FLAGS_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE],
4097 #                                IF_FALSE: [RUN-IF-FALSE])
4098 # ------------------------------------------------------------
4099 # Check that the C and C++ compilers support an argument
4100 
4101 
4102 
4103 
4104 # FLAGS_LINKER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE],
4105 #                                   IF_FALSE: [RUN-IF-FALSE])
4106 # ------------------------------------------------------------
4107 # Check that the linker support an argument
4108 
4109 
4110 
4111 
4112 
4113 
4114 # FLAGS_SETUP_GCC6_COMPILER_FLAGS([PREFIX])
4115 # Arguments:
4116 # $1 - Optional prefix for each variable defined.
4117 
4118 
4119 #
4120 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
4121 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4122 #
4123 # This code is free software; you can redistribute it and/or modify it
4124 # under the terms of the GNU General Public License version 2 only, as
4125 # published by the Free Software Foundation.  Oracle designates this
4126 # particular file as subject to the "Classpath" exception as provided
4127 # by Oracle in the LICENSE file that accompanied this code.
4128 #
4129 # This code is distributed in the hope that it will be useful, but WITHOUT
4130 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4131 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4132 # version 2 for more details (a copy is included in the LICENSE file that
4133 # accompanied this code).
4134 #
4135 # You should have received a copy of the GNU General Public License version
4136 # 2 along with this work; if not, write to the Free Software Foundation,
4137 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4138 #
4139 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4140 # or visit www.oracle.com if you need additional information or have any
4141 # questions.
4142 #
4143 
4144 
4145 
4146 
4147 
4148 cygwin_help() {
4149   case $1 in
4150     unzip)
4151       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )"
4152       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
4153       ;;
4154     zip)
4155       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )"
4156       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
4157       ;;
4158     make)
4159       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )"
4160       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
4161       ;;
4162     freetype)
4163       HELP_MSG="
4164 The freetype library can now be build during the configure process.
4165 Download the freetype sources and unpack them into an arbitrary directory:
4166 
4167 wget http://download.savannah.gnu.org/releases/freetype/freetype-2.5.3.tar.gz
4168 tar -xzf freetype-2.5.3.tar.gz
4169 
4170 Then run configure with '--with-freetype-src=<freetype_src>'. This will
4171 automatically build the freetype library into '<freetype_src>/lib64' for 64-bit
4172 builds or into '<freetype_src>/lib32' for 32-bit builds.
4173 Afterwards you can always use '--with-freetype-include=<freetype_src>/include'
4174 and '--with-freetype-lib=<freetype_src>/lib32|64' for other builds.
4175 
4176 Alternatively you can unpack the sources like this to use the default directory:
4177 
4178 tar --one-top-level=$HOME/freetype --strip-components=1 -xzf freetype-2.5.3.tar.gz"
4179       ;;
4180   esac
4181 }
4182 
4183 msys_help() {
4184   PKGHANDLER_COMMAND=""
4185 }
4186 
4187 apt_help() {
4188   case $1 in
4189     reduced)
4190       PKGHANDLER_COMMAND="sudo apt-get install gcc-multilib g++-multilib" ;;
4191     devkit)
4192       PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;;
4193     openjdk)
4194       PKGHANDLER_COMMAND="sudo apt-get install openjdk-8-jdk" ;;
4195     alsa)
4196       PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;;
4197     cups)
4198       PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;;
4199     freetype)
4200       PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;;
4201     ffi)
4202       PKGHANDLER_COMMAND="sudo apt-get install libffi-dev" ;;
4203     x11)
4204       PKGHANDLER_COMMAND="sudo apt-get install libx11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;;
4205     ccache)
4206       PKGHANDLER_COMMAND="sudo apt-get install ccache" ;;
4207     dtrace)
4208       PKGHANDLER_COMMAND="sudo apt-get install systemtap-sdt-dev" ;;
4209     elf)
4210       PKGHANDLER_COMMAND="sudo apt-get install libelf-dev" ;;
4211   esac
4212 }
4213 
4214 yum_help() {
4215   case $1 in
4216     devkit)
4217       PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;;
4218     openjdk)
4219       PKGHANDLER_COMMAND="sudo yum install java-1.8.0-openjdk-devel" ;;
4220     alsa)
4221       PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;;
4222     cups)
4223       PKGHANDLER_COMMAND="sudo yum install cups-devel" ;;
4224     freetype)
4225       PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;;
4226     x11)
4227       PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel libXi-devel" ;;
4228     ccache)
4229       PKGHANDLER_COMMAND="sudo yum install ccache" ;;
4230     elf)
4231       PKGHANDLER_COMMAND="sudo yum install elfutils-libelf-devel" ;;
4232   esac
4233 }
4234 
4235 brew_help() {
4236   case $1 in
4237     openjdk)
4238       PKGHANDLER_COMMAND="brew cask install java" ;;
4239     freetype)
4240       PKGHANDLER_COMMAND="brew install freetype" ;;
4241     ccache)
4242       PKGHANDLER_COMMAND="brew install ccache" ;;
4243   esac
4244 }
4245 
4246 port_help() {
4247   PKGHANDLER_COMMAND=""
4248 }
4249 
4250 pkgutil_help() {
4251   PKGHANDLER_COMMAND=""
4252 }
4253 
4254 pkgadd_help() {
4255   PKGHANDLER_COMMAND=""
4256 }
4257 
4258 # This function will check if we're called from the "configure" wrapper while
4259 # printing --help. If so, we will print out additional information that can
4260 # only be extracted within the autoconf script, and then exit. This must be
4261 # called at the very beginning in configure.ac.
4262 
4263 
4264 
4265 
4266 
4267 
4268 #
4269 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
4270 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4271 #
4272 # This code is free software; you can redistribute it and/or modify it
4273 # under the terms of the GNU General Public License version 2 only, as
4274 # published by the Free Software Foundation.  Oracle designates this
4275 # particular file as subject to the "Classpath" exception as provided
4276 # by Oracle in the LICENSE file that accompanied this code.
4277 #
4278 # This code is distributed in the hope that it will be useful, but WITHOUT
4279 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4280 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4281 # version 2 for more details (a copy is included in the LICENSE file that
4282 # accompanied this code).
4283 #
4284 # You should have received a copy of the GNU General Public License version
4285 # 2 along with this work; if not, write to the Free Software Foundation,
4286 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4287 #
4288 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4289 # or visit www.oracle.com if you need additional information or have any
4290 # questions.
4291 #
4292 
4293 # All valid JVM features, regardless of platform
4294 VALID_JVM_FEATURES="compiler1 compiler2 zero shark minimal dtrace jvmti jvmci \
4295     graal fprof vm-structs jni-check services management all-gcs nmt cds \
4296     static-build link-time-opt aot"
4297 
4298 # All valid JVM variants
4299 VALID_JVM_VARIANTS="server client minimal core zero zeroshark custom"
4300 
4301 ###############################################################################
4302 # Check if the specified JVM variant should be built. To be used in shell if
4303 # constructs, like this:
4304 # if HOTSPOT_CHECK_JVM_VARIANT(server); then
4305 #
4306 # Only valid to use after HOTSPOT_SETUP_JVM_VARIANTS has setup variants.
4307 
4308 # Definition kept in one line to allow inlining in if statements.
4309 # Additional [] needed to keep m4 from mangling shell constructs.
4310 
4311 
4312 ###############################################################################
4313 # Check if the specified JVM features are explicitly enabled. To be used in
4314 # shell if constructs, like this:
4315 # if HOTSPOT_CHECK_JVM_FEATURE(jvmti); then
4316 #
4317 # Only valid to use after HOTSPOT_SETUP_JVM_FEATURES has setup features.
4318 
4319 # Definition kept in one line to allow inlining in if statements.
4320 # Additional [] needed to keep m4 from mangling shell constructs.
4321 
4322 
4323 ###############################################################################
4324 # Check which variants of the JVM that we want to build. Available variants are:
4325 #   server: normal interpreter, and a tiered C1/C2 compiler
4326 #   client: normal interpreter, and C1 (no C2 compiler)
4327 #   minimal: reduced form of client with optional features stripped out
4328 #   core: normal interpreter only, no compiler
4329 #   zero: C++ based interpreter only, no compiler
4330 #   zeroshark: C++ based interpreter, and a llvm-based compiler
4331 #   custom: baseline JVM with no default features
4332 #
4333 
4334 
4335 ###############################################################################
4336 # Check if dtrace should be enabled and has all prerequisites present.
4337 #
4338 
4339 
4340 ################################################################################
4341 # Check if AOT should be enabled
4342 #
4343 
4344 
4345 ###############################################################################
4346 # Set up all JVM features for each JVM variant.
4347 #
4348 
4349 
4350 ###############################################################################
4351 # Validate JVM features once all setup is complete, including custom setup.
4352 #
4353 
4354 
4355 ################################################################################
4356 #
4357 # Specify which sources will be used to build the 64-bit ARM port
4358 #
4359 # --with-cpu-port=arm64   will use hotspot/src/cpu/arm
4360 # --with-cpu-port=aarch64 will use hotspot/src/cpu/aarch64
4361 #
4362 
4363 
4364 
4365 ################################################################################
4366 # Check if gtest should be built
4367 #
4368 
4369 
4370 #
4371 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
4372 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4373 #
4374 # This code is free software; you can redistribute it and/or modify it
4375 # under the terms of the GNU General Public License version 2 only, as
4376 # published by the Free Software Foundation.  Oracle designates this
4377 # particular file as subject to the "Classpath" exception as provided
4378 # by Oracle in the LICENSE file that accompanied this code.
4379 #
4380 # This code is distributed in the hope that it will be useful, but WITHOUT
4381 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4382 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4383 # version 2 for more details (a copy is included in the LICENSE file that
4384 # accompanied this code).
4385 #
4386 # You should have received a copy of the GNU General Public License version
4387 # 2 along with this work; if not, write to the Free Software Foundation,
4388 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4389 #
4390 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4391 # or visit www.oracle.com if you need additional information or have any
4392 # questions.
4393 #
4394 
4395 ###############################################################################
4396 # Check which variant of the JDK that we want to build.
4397 # Currently we have:
4398 #    normal:   standard edition
4399 # but the custom make system may add other variants
4400 #
4401 # Effectively the JDK variant gives a name to a specific set of
4402 # modules to compile into the JDK.
4403 
4404 
4405 ###############################################################################
4406 # Set the debug level
4407 #    release: no debug information, all optimizations, no asserts.
4408 #    optimized: no debug information, all optimizations, no asserts, HotSpot target is 'optimized'.
4409 #    fastdebug: debug information (-g), all optimizations, all asserts
4410 #    slowdebug: debug information (-g), no optimizations, all asserts
4411 
4412 
4413 ###############################################################################
4414 #
4415 # Should we build only OpenJDK even if closed sources are present?
4416 #
4417 
4418 
4419 
4420 
4421 ###############################################################################
4422 #
4423 # Enable or disable the elliptic curve crypto implementation
4424 #
4425 
4426 
4427 
4428 
4429 ################################################################################
4430 #
4431 # Gcov coverage data for hotspot
4432 #
4433 
4434 
4435 ################################################################################
4436 #
4437 # Static build support.  When enabled will generate static
4438 # libraries instead of shared libraries for all JDK libs.
4439 #
4440 
4441 
4442 ################################################################################
4443 #
4444 # jlink options.
4445 # We always keep packaged modules in JDK image.
4446 #
4447 
4448 
4449 ################################################################################
4450 #
4451 # Check if building of the jtreg failure handler should be enabled.
4452 #
4453 
4454 
4455 ################################################################################
4456 #
4457 # Enable or disable generation of the classlist at build time
4458 #
4459 
4460 
4461 #
4462 # Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
4463 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4464 #
4465 # This code is free software; you can redistribute it and/or modify it
4466 # under the terms of the GNU General Public License version 2 only, as
4467 # published by the Free Software Foundation.  Oracle designates this
4468 # particular file as subject to the "Classpath" exception as provided
4469 # by Oracle in the LICENSE file that accompanied this code.
4470 #
4471 # This code is distributed in the hope that it will be useful, but WITHOUT
4472 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4473 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4474 # version 2 for more details (a copy is included in the LICENSE file that
4475 # accompanied this code).
4476 #
4477 # You should have received a copy of the GNU General Public License version
4478 # 2 along with this work; if not, write to the Free Software Foundation,
4479 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4480 #
4481 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4482 # or visit www.oracle.com if you need additional information or have any
4483 # questions.
4484 #
4485 
4486 ###############################################################################
4487 #
4488 # Setup version numbers
4489 #
4490 
4491 # Verify that a given string represents a valid version number, and assign it
4492 # to a variable.
4493 
4494 # Argument 1: the variable to assign to
4495 # Argument 2: the value given by the user
4496 
4497 
4498 
4499 
4500 #
4501 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4502 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4503 #
4504 # This code is free software; you can redistribute it and/or modify it
4505 # under the terms of the GNU General Public License version 2 only, as
4506 # published by the Free Software Foundation.  Oracle designates this
4507 # particular file as subject to the "Classpath" exception as provided
4508 # by Oracle in the LICENSE file that accompanied this code.
4509 #
4510 # This code is distributed in the hope that it will be useful, but WITHOUT
4511 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4512 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4513 # version 2 for more details (a copy is included in the LICENSE file that
4514 # accompanied this code).
4515 #
4516 # You should have received a copy of the GNU General Public License version
4517 # 2 along with this work; if not, write to the Free Software Foundation,
4518 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4519 #
4520 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4521 # or visit www.oracle.com if you need additional information or have any
4522 # questions.
4523 #
4524 
4525 # Major library component reside in separate files.
4526 #
4527 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4528 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4529 #
4530 # This code is free software; you can redistribute it and/or modify it
4531 # under the terms of the GNU General Public License version 2 only, as
4532 # published by the Free Software Foundation.  Oracle designates this
4533 # particular file as subject to the "Classpath" exception as provided
4534 # by Oracle in the LICENSE file that accompanied this code.
4535 #
4536 # This code is distributed in the hope that it will be useful, but WITHOUT
4537 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4538 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4539 # version 2 for more details (a copy is included in the LICENSE file that
4540 # accompanied this code).
4541 #
4542 # You should have received a copy of the GNU General Public License version
4543 # 2 along with this work; if not, write to the Free Software Foundation,
4544 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4545 #
4546 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4547 # or visit www.oracle.com if you need additional information or have any
4548 # questions.
4549 #
4550 
4551 ################################################################################
4552 # Setup alsa (Advanced Linux Sound Architecture)
4553 ################################################################################
4554 
4555 
4556 #
4557 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
4558 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4559 #
4560 # This code is free software; you can redistribute it and/or modify it
4561 # under the terms of the GNU General Public License version 2 only, as
4562 # published by the Free Software Foundation.  Oracle designates this
4563 # particular file as subject to the "Classpath" exception as provided
4564 # by Oracle in the LICENSE file that accompanied this code.
4565 #
4566 # This code is distributed in the hope that it will be useful, but WITHOUT
4567 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4568 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4569 # version 2 for more details (a copy is included in the LICENSE file that
4570 # accompanied this code).
4571 #
4572 # You should have received a copy of the GNU General Public License version
4573 # 2 along with this work; if not, write to the Free Software Foundation,
4574 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4575 #
4576 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4577 # or visit www.oracle.com if you need additional information or have any
4578 # questions.
4579 #
4580 
4581 ################################################################################
4582 # Setup bundled libraries.
4583 #
4584 # For libjpeg, giflib, libpng, lcms2 and zlib, the source is present in the
4585 # OpenJDK repository. Default is to use these libraries as bundled, but they
4586 # might be replaced by en external version by the user.
4587 ################################################################################
4588 
4589 
4590 ################################################################################
4591 # Setup libjpeg
4592 ################################################################################
4593 
4594 
4595 ################################################################################
4596 # Setup giflib
4597 ################################################################################
4598 
4599 
4600 ################################################################################
4601 # Setup libpng
4602 ################################################################################
4603 
4604 
4605 ################################################################################
4606 # Setup zlib
4607 ################################################################################
4608 
4609 
4610 ################################################################################
4611 # Setup lcms (Little CMS)
4612 ################################################################################
4613 
4614 
4615 #
4616 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4617 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4618 #
4619 # This code is free software; you can redistribute it and/or modify it
4620 # under the terms of the GNU General Public License version 2 only, as
4621 # published by the Free Software Foundation.  Oracle designates this
4622 # particular file as subject to the "Classpath" exception as provided
4623 # by Oracle in the LICENSE file that accompanied this code.
4624 #
4625 # This code is distributed in the hope that it will be useful, but WITHOUT
4626 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4627 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4628 # version 2 for more details (a copy is included in the LICENSE file that
4629 # accompanied this code).
4630 #
4631 # You should have received a copy of the GNU General Public License version
4632 # 2 along with this work; if not, write to the Free Software Foundation,
4633 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4634 #
4635 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4636 # or visit www.oracle.com if you need additional information or have any
4637 # questions.
4638 #
4639 
4640 ################################################################################
4641 # Setup cups (Common Unix Printing System)
4642 ################################################################################
4643 
4644 
4645 #
4646 # Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
4647 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4648 #
4649 # This code is free software; you can redistribute it and/or modify it
4650 # under the terms of the GNU General Public License version 2 only, as
4651 # published by the Free Software Foundation.  Oracle designates this
4652 # particular file as subject to the "Classpath" exception as provided
4653 # by Oracle in the LICENSE file that accompanied this code.
4654 #
4655 # This code is distributed in the hope that it will be useful, but WITHOUT
4656 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4657 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4658 # version 2 for more details (a copy is included in the LICENSE file that
4659 # accompanied this code).
4660 #
4661 # You should have received a copy of the GNU General Public License version
4662 # 2 along with this work; if not, write to the Free Software Foundation,
4663 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4664 #
4665 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4666 # or visit www.oracle.com if you need additional information or have any
4667 # questions.
4668 #
4669 
4670 ################################################################################
4671 # Setup libffi (Foreign Function Interface)
4672 ################################################################################
4673 
4674 
4675 #
4676 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
4677 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4678 #
4679 # This code is free software; you can redistribute it and/or modify it
4680 # under the terms of the GNU General Public License version 2 only, as
4681 # published by the Free Software Foundation.  Oracle designates this
4682 # particular file as subject to the "Classpath" exception as provided
4683 # by Oracle in the LICENSE file that accompanied this code.
4684 #
4685 # This code is distributed in the hope that it will be useful, but WITHOUT
4686 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4687 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4688 # version 2 for more details (a copy is included in the LICENSE file that
4689 # accompanied this code).
4690 #
4691 # You should have received a copy of the GNU General Public License version
4692 # 2 along with this work; if not, write to the Free Software Foundation,
4693 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4694 #
4695 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4696 # or visit www.oracle.com if you need additional information or have any
4697 # questions.
4698 #
4699 
4700 ################################################################################
4701 # Build the freetype lib from source
4702 ################################################################################
4703 
4704 
4705 ################################################################################
4706 # Check if a potential freeype library match is correct and usable
4707 ################################################################################
4708 
4709 
4710 ################################################################################
4711 # Setup freetype (The FreeType2 font rendering library)
4712 ################################################################################
4713 
4714 
4715 #
4716 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4717 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4718 #
4719 # This code is free software; you can redistribute it and/or modify it
4720 # under the terms of the GNU General Public License version 2 only, as
4721 # published by the Free Software Foundation.  Oracle designates this
4722 # particular file as subject to the "Classpath" exception as provided
4723 # by Oracle in the LICENSE file that accompanied this code.
4724 #
4725 # This code is distributed in the hope that it will be useful, but WITHOUT
4726 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4727 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4728 # version 2 for more details (a copy is included in the LICENSE file that
4729 # accompanied this code).
4730 #
4731 # You should have received a copy of the GNU General Public License version
4732 # 2 along with this work; if not, write to the Free Software Foundation,
4733 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4734 #
4735 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4736 # or visit www.oracle.com if you need additional information or have any
4737 # questions.
4738 #
4739 
4740 ################################################################################
4741 # Setup the standard C/C++ runtime libraries.
4742 #
4743 # Most importantly, determine if stdc++ should be linked statically or
4744 # dynamically.
4745 ################################################################################
4746 
4747 
4748 #
4749 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4750 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4751 #
4752 # This code is free software; you can redistribute it and/or modify it
4753 # under the terms of the GNU General Public License version 2 only, as
4754 # published by the Free Software Foundation.  Oracle designates this
4755 # particular file as subject to the "Classpath" exception as provided
4756 # by Oracle in the LICENSE file that accompanied this code.
4757 #
4758 # This code is distributed in the hope that it will be useful, but WITHOUT
4759 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4760 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4761 # version 2 for more details (a copy is included in the LICENSE file that
4762 # accompanied this code).
4763 #
4764 # You should have received a copy of the GNU General Public License version
4765 # 2 along with this work; if not, write to the Free Software Foundation,
4766 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4767 #
4768 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4769 # or visit www.oracle.com if you need additional information or have any
4770 # questions.
4771 #
4772 
4773 ################################################################################
4774 # Setup X11 Windows system
4775 ################################################################################
4776 
4777 
4778 #
4779 # Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
4780 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4781 #
4782 # This code is free software; you can redistribute it and/or modify it
4783 # under the terms of the GNU General Public License version 2 only, as
4784 # published by the Free Software Foundation.  Oracle designates this
4785 # particular file as subject to the "Classpath" exception as provided
4786 # by Oracle in the LICENSE file that accompanied this code.
4787 #
4788 # This code is distributed in the hope that it will be useful, but WITHOUT
4789 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4790 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4791 # version 2 for more details (a copy is included in the LICENSE file that
4792 # accompanied this code).
4793 #
4794 # You should have received a copy of the GNU General Public License version
4795 # 2 along with this work; if not, write to the Free Software Foundation,
4796 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4797 #
4798 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4799 # or visit www.oracle.com if you need additional information or have any
4800 # questions.
4801 #
4802 
4803 ################################################################################
4804 # Setup libelf (ELF library)
4805 ################################################################################
4806 
4807 
4808 
4809 ################################################################################
4810 # Determine which libraries are needed for this configuration
4811 ################################################################################
4812 
4813 
4814 ################################################################################
4815 # Parse library options, and setup needed libraries
4816 ################################################################################
4817 
4818 
4819 ################################################################################
4820 # Setup llvm (Low-Level VM)
4821 ################################################################################
4822 
4823 
4824 ################################################################################
4825 # Setup various libraries, typically small system libraries
4826 ################################################################################
4827 
4828 
4829 ################################################################################
4830 # libstlport.so.1 is needed for running gtest on Solaris. Find it to
4831 # redistribute it in the test image.
4832 ################################################################################
4833 
4834 
4835 
4836 #
4837 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
4838 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4839 #
4840 # This code is free software; you can redistribute it and/or modify it
4841 # under the terms of the GNU General Public License version 2 only, as
4842 # published by the Free Software Foundation.  Oracle designates this
4843 # particular file as subject to the "Classpath" exception as provided
4844 # by Oracle in the LICENSE file that accompanied this code.
4845 #
4846 # This code is distributed in the hope that it will be useful, but WITHOUT
4847 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4848 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4849 # version 2 for more details (a copy is included in the LICENSE file that
4850 # accompanied this code).
4851 #
4852 # You should have received a copy of the GNU General Public License version
4853 # 2 along with this work; if not, write to the Free Software Foundation,
4854 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4855 #
4856 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4857 # or visit www.oracle.com if you need additional information or have any
4858 # questions.
4859 #
4860 
4861 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4862 # Converts autoconf style CPU name to OpenJDK style, into
4863 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN.
4864 
4865 
4866 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4867 # Converts autoconf style OS name to OpenJDK style, into
4868 # VAR_OS, VAR_OS_TYPE and VAR_OS_ENV.
4869 
4870 
4871 # Expects $host_os $host_cpu $build_os and $build_cpu
4872 # and $with_target_bits to have been setup!
4873 #
4874 # Translate the standard triplet(quadruplet) definition
4875 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU,
4876 # OPENJDK_BUILD_OS, etc.
4877 
4878 
4879 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour
4880 # accordingly. Must be done after setting up build and target system, but before
4881 # doing anything else with these values.
4882 
4883 
4884 # Setup the legacy variables, for controlling the old makefiles.
4885 #
4886 
4887 
4888 # $1 - Either TARGET or BUILD to setup the variables for.
4889 
4890 
4891 
4892 
4893 #%%% Build and target systems %%%
4894 
4895 
4896 
4897 
4898 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS.
4899 # Add -mX to various FLAGS variables.
4900 
4901 
4902 
4903 
4904 
4905 
4906 #
4907 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4908 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4909 #
4910 # This code is free software; you can redistribute it and/or modify it
4911 # under the terms of the GNU General Public License version 2 only, as
4912 # published by the Free Software Foundation.  Oracle designates this
4913 # particular file as subject to the "Classpath" exception as provided
4914 # by Oracle in the LICENSE file that accompanied this code.
4915 #
4916 # This code is distributed in the hope that it will be useful, but WITHOUT
4917 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4918 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4919 # version 2 for more details (a copy is included in the LICENSE file that
4920 # accompanied this code).
4921 #
4922 # You should have received a copy of the GNU General Public License version
4923 # 2 along with this work; if not, write to the Free Software Foundation,
4924 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4925 #
4926 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4927 # or visit www.oracle.com if you need additional information or have any
4928 # questions.
4929 #
4930 
4931 
4932 
4933 
4934 
4935 
4936 
4937 ################################################################################
4938 # Define a mechanism for importing extra prebuilt modules
4939 #
4940 
4941 
4942 
4943 #
4944 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4945 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4946 #
4947 # This code is free software; you can redistribute it and/or modify it
4948 # under the terms of the GNU General Public License version 2 only, as
4949 # published by the Free Software Foundation.  Oracle designates this
4950 # particular file as subject to the "Classpath" exception as provided
4951 # by Oracle in the LICENSE file that accompanied this code.
4952 #
4953 # This code is distributed in the hope that it will be useful, but WITHOUT
4954 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4955 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4956 # version 2 for more details (a copy is included in the LICENSE file that
4957 # accompanied this code).
4958 #
4959 # You should have received a copy of the GNU General Public License version
4960 # 2 along with this work; if not, write to the Free Software Foundation,
4961 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4962 #
4963 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4964 # or visit www.oracle.com if you need additional information or have any
4965 # questions.
4966 #
4967 
4968 ########################################################################
4969 # This file is responsible for detecting, verifying and setting up the
4970 # toolchain, i.e. the compiler, linker and related utilities. It will setup
4971 # proper paths to the binaries, but it will not setup any flags.
4972 #
4973 # The binaries used is determined by the toolchain type, which is the family of
4974 # compilers and related tools that are used.
4975 ########################################################################
4976 
4977 
4978 # All valid toolchains, regardless of platform (used by help.m4)
4979 VALID_TOOLCHAINS_all="gcc clang solstudio xlc microsoft"
4980 
4981 # These toolchains are valid on different platforms
4982 VALID_TOOLCHAINS_linux="gcc clang"
4983 VALID_TOOLCHAINS_solaris="solstudio"
4984 VALID_TOOLCHAINS_macosx="gcc clang"
4985 VALID_TOOLCHAINS_aix="xlc"
4986 VALID_TOOLCHAINS_windows="microsoft"
4987 
4988 # Toolchain descriptions
4989 TOOLCHAIN_DESCRIPTION_clang="clang/LLVM"
4990 TOOLCHAIN_DESCRIPTION_gcc="GNU Compiler Collection"
4991 TOOLCHAIN_DESCRIPTION_microsoft="Microsoft Visual Studio"
4992 TOOLCHAIN_DESCRIPTION_solstudio="Oracle Solaris Studio"
4993 TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++"
4994 
4995 # Minimum supported versions, empty means unspecified
4996 TOOLCHAIN_MINIMUM_VERSION_clang="3.2"
4997 TOOLCHAIN_MINIMUM_VERSION_gcc="4.3"
4998 TOOLCHAIN_MINIMUM_VERSION_microsoft="16.00.30319.01" # VS2010
4999 TOOLCHAIN_MINIMUM_VERSION_solstudio="5.13"
5000 TOOLCHAIN_MINIMUM_VERSION_xlc=""
5001 
5002 # Prepare the system so that TOOLCHAIN_CHECK_COMPILER_VERSION can be called.
5003 # Must have CC_VERSION_NUMBER and CXX_VERSION_NUMBER.
5004 # $1 - optional variable prefix for compiler and version variables (BUILD_)
5005 # $2 - optional variable prefix for comparable variable (OPENJDK_BUILD_)
5006 
5007 
5008 # Check if the configured compiler (C and C++) is of a specific version or
5009 # newer. TOOLCHAIN_PREPARE_FOR_VERSION_COMPARISONS must have been called before.
5010 #
5011 # Arguments:
5012 #   VERSION:   The version string to check against the found version
5013 #   IF_AT_LEAST:   block to run if the compiler is at least this version (>=)
5014 #   IF_OLDER_THAN:   block to run if the compiler is older than this version (<)
5015 #   PREFIX:   Optional variable prefix for compiler to compare version for (OPENJDK_BUILD_)
5016 
5017 
5018 
5019 
5020 # Setup a number of variables describing how native output files are
5021 # named on this platform/toolchain.
5022 
5023 
5024 # Determine which toolchain type to use, and make sure it is valid for this
5025 # platform. Setup various information about the selected toolchain.
5026 
5027 
5028 # Before we start detecting the toolchain executables, we might need some
5029 # special setup, e.g. additional paths etc.
5030 
5031 
5032 # Restore path, etc
5033 
5034 
5035 # Check if a compiler is of the toolchain type we expect, and save the version
5036 # information from it. If the compiler does not match the expected type,
5037 # this function will abort using AC_MSG_ERROR. If it matches, the version will
5038 # be stored in CC_VERSION_NUMBER/CXX_VERSION_NUMBER (as a dotted number), and
5039 # the full version string in CC_VERSION_STRING/CXX_VERSION_STRING.
5040 #
5041 # $1 = compiler to test (CC or CXX)
5042 # $2 = human readable name of compiler (C or C++)
5043 
5044 
5045 # Try to locate the given C or C++ compiler in the path, or otherwise.
5046 #
5047 # $1 = compiler to test (CC or CXX)
5048 # $2 = human readable name of compiler (C or C++)
5049 # $3 = compiler name to search for
5050 
5051 
5052 # Detect the core components of the toolchain, i.e. the compilers (CC and CXX),
5053 # preprocessor (CPP and CXXCPP), the linker (LD), the assembler (AS) and the
5054 # archiver (AR). Verify that the compilers are correct according to the
5055 # toolchain type.
5056 
5057 
5058 # Setup additional tools that is considered a part of the toolchain, but not the
5059 # core part. Many of these are highly platform-specific and do not exist,
5060 # and/or are not needed on all platforms.
5061 
5062 
5063 # Setup the build tools (i.e, the compiler and linker used to build programs
5064 # that should be run on the build platform, not the target platform, as a build
5065 # helper). Since the non-cross-compile case uses the normal, target compilers
5066 # for this, we can only do this after these have been setup.
5067 
5068 
5069 # Do some additional checks on the detected tools.
5070 
5071 
5072 # Setup the JTReg Regression Test Harness.
5073 
5074 
5075 #
5076 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
5077 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5078 #
5079 # This code is free software; you can redistribute it and/or modify it
5080 # under the terms of the GNU General Public License version 2 only, as
5081 # published by the Free Software Foundation.  Oracle designates this
5082 # particular file as subject to the "Classpath" exception as provided
5083 # by Oracle in the LICENSE file that accompanied this code.
5084 #
5085 # This code is distributed in the hope that it will be useful, but WITHOUT
5086 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
5087 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
5088 # version 2 for more details (a copy is included in the LICENSE file that
5089 # accompanied this code).
5090 #
5091 # You should have received a copy of the GNU General Public License version
5092 # 2 along with this work; if not, write to the Free Software Foundation,
5093 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
5094 #
5095 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
5096 # or visit www.oracle.com if you need additional information or have any
5097 # questions.
5098 #
5099 
5100 ################################################################################
5101 # The order of these defines the priority by which we try to find them.
5102 VALID_VS_VERSIONS="2013 2012 2010"
5103 
5104 VS_DESCRIPTION_2010="Microsoft Visual Studio 2010"
5105 VS_VERSION_INTERNAL_2010=100
5106 VS_MSVCR_2010=msvcr100.dll
5107 # We don't use msvcp on Visual Studio 2010
5108 #VS_MSVCP_2010=msvcp100.dll
5109 VS_ENVVAR_2010="VS100COMNTOOLS"
5110 VS_VS_INSTALLDIR_2010="Microsoft Visual Studio 10.0"
5111 VS_SDK_INSTALLDIR_2010="Microsoft SDKs/Windows/v7.1"
5112 VS_VS_PLATFORM_NAME_2010="v100"
5113 VS_SDK_PLATFORM_NAME_2010="Windows7.1SDK"
5114 
5115 VS_DESCRIPTION_2012="Microsoft Visual Studio 2012"
5116 VS_VERSION_INTERNAL_2012=110
5117 VS_MSVCR_2012=msvcr110.dll
5118 VS_MSVCP_2012=msvcp110.dll
5119 VS_ENVVAR_2012="VS110COMNTOOLS"
5120 VS_VS_INSTALLDIR_2012="Microsoft Visual Studio 11.0"
5121 VS_SDK_INSTALLDIR_2012=
5122 VS_VS_PLATFORM_NAME_2012="v110"
5123 VS_SDK_PLATFORM_NAME_2012=
5124 
5125 VS_DESCRIPTION_2013="Microsoft Visual Studio 2013"
5126 VS_VERSION_INTERNAL_2013=120
5127 VS_MSVCR_2013=msvcr120.dll
5128 VS_MSVCP_2013=msvcp120.dll
5129 VS_ENVVAR_2013="VS120COMNTOOLS"
5130 VS_VS_INSTALLDIR_2013="Microsoft Visual Studio 12.0"
5131 VS_SDK_INSTALLDIR_2013=
5132 VS_VS_PLATFORM_NAME_2013="v120"
5133 VS_SDK_PLATFORM_NAME_2013=
5134 
5135 ################################################################################
5136 
5137 
5138 
5139 ################################################################################
5140 
5141 
5142 
5143 ################################################################################
5144 # Finds the bat or cmd file in Visual Studio or the SDK that sets up a proper
5145 # build environment and assigns it to VS_ENV_CMD
5146 
5147 
5148 ################################################################################
5149 
5150 
5151 
5152 ################################################################################
5153 # Check if the VS env variables were setup prior to running configure.
5154 # If not, then find vcvarsall.bat and run it automatically, and integrate
5155 # the set env variables into the spec file.
5156 
5157 
5158 
5159 
5160 
5161 
5162 
5163 
5164 
5165 
5166 
5167 
5168 
5169 
5170 # This line needs to be here, verbatim, after all includes and the dummy hook
5171 # definitions. It is replaced with custom functionality when building
5172 # custom sources.
5173 #CUSTOM_AUTOCONF_INCLUDE
5174 
5175 # Do not change or remove the following line, it is needed for consistency checks:
5176 DATE_WHEN_GENERATED=1491256793
5177 
5178 ###############################################################################
5179 #
5180 # Initialization / Boot-strapping
5181 #
5182 # The bootstrapping process needs to solve the "chicken or the egg" problem,
5183 # thus it jumps back and forth, each time gaining something needed later on.
5184 #
5185 ###############################################################################
5186 
5187 # If we are requested to print additional help, do that and then exit.
5188 # This must be the very first call.
5189 
5190   if test "x$CONFIGURE_PRINT_ADDITIONAL_HELP" != x; then
5191 
5192     # Print available toolchains
5193     $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
5194     $PRINTF "Which are valid to use depends on the build platform.\n"
5195     for toolchain in $VALID_TOOLCHAINS_all; do
5196       # Use indirect variable referencing
5197       toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain
5198       TOOLCHAIN_DESCRIPTION=${!toolchain_var_name}
5199       $PRINTF "  %-10s  %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION"
5200     done
5201     $PRINTF "\n"
5202 
5203     # Print available jvm features
5204     $PRINTF "The following JVM features are available as arguments to --with-jvm-features.\n"
5205     $PRINTF "Which are valid to use depends on the target platform.\n  "
5206     $PRINTF "%s " $VALID_JVM_FEATURES
5207     $PRINTF "\n"
5208 
5209     # And now exit directly
5210     exit 0
5211   fi
5212 
5213 
5214 # Basic initialization that must happen first of all in the normal process.
5215 
5216   # Save the original command line. This is passed to us by the wrapper configure script.
5217 
5218   # Save the path variable before it gets changed
5219   ORIGINAL_PATH="$PATH"
5220 
5221   DATE_WHEN_CONFIGURED=`LANG=C date`
5222 
5223   { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5
5224 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;}
5225   { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5
5226 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;}
5227 
5228 
5229   # Start with tools that do not need have cross compilation support
5230   # and can be expected to be found in the default PATH. These tools are
5231   # used by configure.
5232 
5233   # First are all the simple required tools.
5234 
5235 
5236 
5237   # Publish this variable in the help.
5238 
5239 
5240   if [ -z "${BASENAME+x}" ]; then
5241     # The variable is not set by user, try to locate tool using the code snippet
5242     for ac_prog in basename
5243 do
5244   # Extract the first word of "$ac_prog", so it can be a program name with args.
5245 set dummy $ac_prog; ac_word=$2
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5247 $as_echo_n "checking for $ac_word... " >&6; }
5248 if ${ac_cv_path_BASENAME+:} false; then :
5249   $as_echo_n "(cached) " >&6
5250 else
5251   case $BASENAME in
5252   [\\/]* | ?:[\\/]*)
5253   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
5254   ;;
5255   *)
5256   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5257 for as_dir in $PATH
5258 do
5259   IFS=$as_save_IFS
5260   test -z "$as_dir" && as_dir=.
5261     for ac_exec_ext in '' $ac_executable_extensions; do
5262   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5263     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
5264     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5265     break 2
5266   fi
5267 done
5268   done
5269 IFS=$as_save_IFS
5270 
5271   ;;
5272 esac
5273 fi
5274 BASENAME=$ac_cv_path_BASENAME
5275 if test -n "$BASENAME"; then
5276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
5277 $as_echo "$BASENAME" >&6; }
5278 else
5279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5280 $as_echo "no" >&6; }
5281 fi
5282 
5283 
5284   test -n "$BASENAME" && break
5285 done
5286 
5287   else
5288     # The variable is set, but is it from the command line or the environment?
5289 
5290     # Try to remove the string !BASENAME! from our list.
5291     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/}
5292     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5293       # If it failed, the variable was not from the command line. Ignore it,
5294       # but warn the user (except for BASH, which is always set by the calling BASH).
5295       if test "xBASENAME" != xBASH; then
5296         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5
5297 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;}
5298       fi
5299       # Try to locate tool using the code snippet
5300       for ac_prog in basename
5301 do
5302   # Extract the first word of "$ac_prog", so it can be a program name with args.
5303 set dummy $ac_prog; ac_word=$2
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5305 $as_echo_n "checking for $ac_word... " >&6; }
5306 if ${ac_cv_path_BASENAME+:} false; then :
5307   $as_echo_n "(cached) " >&6
5308 else
5309   case $BASENAME in
5310   [\\/]* | ?:[\\/]*)
5311   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
5312   ;;
5313   *)
5314   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5315 for as_dir in $PATH
5316 do
5317   IFS=$as_save_IFS
5318   test -z "$as_dir" && as_dir=.
5319     for ac_exec_ext in '' $ac_executable_extensions; do
5320   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5321     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
5322     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5323     break 2
5324   fi
5325 done
5326   done
5327 IFS=$as_save_IFS
5328 
5329   ;;
5330 esac
5331 fi
5332 BASENAME=$ac_cv_path_BASENAME
5333 if test -n "$BASENAME"; then
5334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
5335 $as_echo "$BASENAME" >&6; }
5336 else
5337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5338 $as_echo "no" >&6; }
5339 fi
5340 
5341 
5342   test -n "$BASENAME" && break
5343 done
5344 
5345     else
5346       # If it succeeded, then it was overridden by the user. We will use it
5347       # for the tool.
5348 
5349       # First remove it from the list of overridden variables, so we can test
5350       # for unknown variables in the end.
5351       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5352 
5353       # Check if we try to supply an empty value
5354       if test "x$BASENAME" = x; then
5355         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BASENAME= (no value)" >&5
5356 $as_echo "$as_me: Setting user supplied tool BASENAME= (no value)" >&6;}
5357         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5
5358 $as_echo_n "checking for BASENAME... " >&6; }
5359         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5360 $as_echo "disabled" >&6; }
5361       else
5362         # Check if the provided tool contains a complete path.
5363         tool_specified="$BASENAME"
5364         tool_basename="${tool_specified##*/}"
5365         if test "x$tool_basename" = "x$tool_specified"; then
5366           # A command without a complete path is provided, search $PATH.
5367           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5
5368 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;}
5369           # Extract the first word of "$tool_basename", so it can be a program name with args.
5370 set dummy $tool_basename; ac_word=$2
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5372 $as_echo_n "checking for $ac_word... " >&6; }
5373 if ${ac_cv_path_BASENAME+:} false; then :
5374   $as_echo_n "(cached) " >&6
5375 else
5376   case $BASENAME in
5377   [\\/]* | ?:[\\/]*)
5378   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
5379   ;;
5380   *)
5381   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5382 for as_dir in $PATH
5383 do
5384   IFS=$as_save_IFS
5385   test -z "$as_dir" && as_dir=.
5386     for ac_exec_ext in '' $ac_executable_extensions; do
5387   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5388     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
5389     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5390     break 2
5391   fi
5392 done
5393   done
5394 IFS=$as_save_IFS
5395 
5396   ;;
5397 esac
5398 fi
5399 BASENAME=$ac_cv_path_BASENAME
5400 if test -n "$BASENAME"; then
5401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
5402 $as_echo "$BASENAME" >&6; }
5403 else
5404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5405 $as_echo "no" >&6; }
5406 fi
5407 
5408 
5409           if test "x$BASENAME" = x; then
5410             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5411           fi
5412         else
5413           # Otherwise we believe it is a complete path. Use it as it is.
5414           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5
5415 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;}
5416           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5
5417 $as_echo_n "checking for BASENAME... " >&6; }
5418           if test ! -x "$tool_specified"; then
5419             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5420 $as_echo "not found" >&6; }
5421             as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5
5422           fi
5423           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5424 $as_echo "$tool_specified" >&6; }
5425         fi
5426       fi
5427     fi
5428 
5429   fi
5430 
5431 
5432 
5433   if test "x$BASENAME" = x; then
5434     as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5
5435   fi
5436 
5437 
5438 
5439 
5440 
5441   # Publish this variable in the help.
5442 
5443 
5444   if [ -z "${BASH+x}" ]; then
5445     # The variable is not set by user, try to locate tool using the code snippet
5446     for ac_prog in bash
5447 do
5448   # Extract the first word of "$ac_prog", so it can be a program name with args.
5449 set dummy $ac_prog; ac_word=$2
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5451 $as_echo_n "checking for $ac_word... " >&6; }
5452 if ${ac_cv_path_BASH+:} false; then :
5453   $as_echo_n "(cached) " >&6
5454 else
5455   case $BASH in
5456   [\\/]* | ?:[\\/]*)
5457   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
5458   ;;
5459   *)
5460   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5461 for as_dir in $PATH
5462 do
5463   IFS=$as_save_IFS
5464   test -z "$as_dir" && as_dir=.
5465     for ac_exec_ext in '' $ac_executable_extensions; do
5466   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5467     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
5468     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5469     break 2
5470   fi
5471 done
5472   done
5473 IFS=$as_save_IFS
5474 
5475   ;;
5476 esac
5477 fi
5478 BASH=$ac_cv_path_BASH
5479 if test -n "$BASH"; then
5480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
5481 $as_echo "$BASH" >&6; }
5482 else
5483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5484 $as_echo "no" >&6; }
5485 fi
5486 
5487 
5488   test -n "$BASH" && break
5489 done
5490 
5491   else
5492     # The variable is set, but is it from the command line or the environment?
5493 
5494     # Try to remove the string !BASH! from our list.
5495     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/}
5496     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5497       # If it failed, the variable was not from the command line. Ignore it,
5498       # but warn the user (except for BASH, which is always set by the calling BASH).
5499       if test "xBASH" != xBASH; then
5500         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5
5501 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;}
5502       fi
5503       # Try to locate tool using the code snippet
5504       for ac_prog in bash
5505 do
5506   # Extract the first word of "$ac_prog", so it can be a program name with args.
5507 set dummy $ac_prog; ac_word=$2
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5509 $as_echo_n "checking for $ac_word... " >&6; }
5510 if ${ac_cv_path_BASH+:} false; then :
5511   $as_echo_n "(cached) " >&6
5512 else
5513   case $BASH in
5514   [\\/]* | ?:[\\/]*)
5515   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
5516   ;;
5517   *)
5518   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5519 for as_dir in $PATH
5520 do
5521   IFS=$as_save_IFS
5522   test -z "$as_dir" && as_dir=.
5523     for ac_exec_ext in '' $ac_executable_extensions; do
5524   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5525     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
5526     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5527     break 2
5528   fi
5529 done
5530   done
5531 IFS=$as_save_IFS
5532 
5533   ;;
5534 esac
5535 fi
5536 BASH=$ac_cv_path_BASH
5537 if test -n "$BASH"; then
5538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
5539 $as_echo "$BASH" >&6; }
5540 else
5541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5542 $as_echo "no" >&6; }
5543 fi
5544 
5545 
5546   test -n "$BASH" && break
5547 done
5548 
5549     else
5550       # If it succeeded, then it was overridden by the user. We will use it
5551       # for the tool.
5552 
5553       # First remove it from the list of overridden variables, so we can test
5554       # for unknown variables in the end.
5555       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5556 
5557       # Check if we try to supply an empty value
5558       if test "x$BASH" = x; then
5559         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BASH= (no value)" >&5
5560 $as_echo "$as_me: Setting user supplied tool BASH= (no value)" >&6;}
5561         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5
5562 $as_echo_n "checking for BASH... " >&6; }
5563         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5564 $as_echo "disabled" >&6; }
5565       else
5566         # Check if the provided tool contains a complete path.
5567         tool_specified="$BASH"
5568         tool_basename="${tool_specified##*/}"
5569         if test "x$tool_basename" = "x$tool_specified"; then
5570           # A command without a complete path is provided, search $PATH.
5571           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5
5572 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;}
5573           # Extract the first word of "$tool_basename", so it can be a program name with args.
5574 set dummy $tool_basename; ac_word=$2
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5576 $as_echo_n "checking for $ac_word... " >&6; }
5577 if ${ac_cv_path_BASH+:} false; then :
5578   $as_echo_n "(cached) " >&6
5579 else
5580   case $BASH in
5581   [\\/]* | ?:[\\/]*)
5582   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
5583   ;;
5584   *)
5585   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5586 for as_dir in $PATH
5587 do
5588   IFS=$as_save_IFS
5589   test -z "$as_dir" && as_dir=.
5590     for ac_exec_ext in '' $ac_executable_extensions; do
5591   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5592     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
5593     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5594     break 2
5595   fi
5596 done
5597   done
5598 IFS=$as_save_IFS
5599 
5600   ;;
5601 esac
5602 fi
5603 BASH=$ac_cv_path_BASH
5604 if test -n "$BASH"; then
5605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
5606 $as_echo "$BASH" >&6; }
5607 else
5608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5609 $as_echo "no" >&6; }
5610 fi
5611 
5612 
5613           if test "x$BASH" = x; then
5614             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5615           fi
5616         else
5617           # Otherwise we believe it is a complete path. Use it as it is.
5618           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5
5619 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;}
5620           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5
5621 $as_echo_n "checking for BASH... " >&6; }
5622           if test ! -x "$tool_specified"; then
5623             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5624 $as_echo "not found" >&6; }
5625             as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5
5626           fi
5627           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5628 $as_echo "$tool_specified" >&6; }
5629         fi
5630       fi
5631     fi
5632 
5633   fi
5634 
5635 
5636 
5637   if test "x$BASH" = x; then
5638     as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5
5639   fi
5640 
5641 
5642 
5643 
5644 
5645   # Publish this variable in the help.
5646 
5647 
5648   if [ -z "${CAT+x}" ]; then
5649     # The variable is not set by user, try to locate tool using the code snippet
5650     for ac_prog in cat
5651 do
5652   # Extract the first word of "$ac_prog", so it can be a program name with args.
5653 set dummy $ac_prog; ac_word=$2
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5655 $as_echo_n "checking for $ac_word... " >&6; }
5656 if ${ac_cv_path_CAT+:} false; then :
5657   $as_echo_n "(cached) " >&6
5658 else
5659   case $CAT in
5660   [\\/]* | ?:[\\/]*)
5661   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
5662   ;;
5663   *)
5664   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5665 for as_dir in $PATH
5666 do
5667   IFS=$as_save_IFS
5668   test -z "$as_dir" && as_dir=.
5669     for ac_exec_ext in '' $ac_executable_extensions; do
5670   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5671     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
5672     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5673     break 2
5674   fi
5675 done
5676   done
5677 IFS=$as_save_IFS
5678 
5679   ;;
5680 esac
5681 fi
5682 CAT=$ac_cv_path_CAT
5683 if test -n "$CAT"; then
5684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5685 $as_echo "$CAT" >&6; }
5686 else
5687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5688 $as_echo "no" >&6; }
5689 fi
5690 
5691 
5692   test -n "$CAT" && break
5693 done
5694 
5695   else
5696     # The variable is set, but is it from the command line or the environment?
5697 
5698     # Try to remove the string !CAT! from our list.
5699     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/}
5700     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5701       # If it failed, the variable was not from the command line. Ignore it,
5702       # but warn the user (except for BASH, which is always set by the calling BASH).
5703       if test "xCAT" != xBASH; then
5704         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5
5705 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;}
5706       fi
5707       # Try to locate tool using the code snippet
5708       for ac_prog in cat
5709 do
5710   # Extract the first word of "$ac_prog", so it can be a program name with args.
5711 set dummy $ac_prog; ac_word=$2
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5713 $as_echo_n "checking for $ac_word... " >&6; }
5714 if ${ac_cv_path_CAT+:} false; then :
5715   $as_echo_n "(cached) " >&6
5716 else
5717   case $CAT in
5718   [\\/]* | ?:[\\/]*)
5719   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
5720   ;;
5721   *)
5722   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5723 for as_dir in $PATH
5724 do
5725   IFS=$as_save_IFS
5726   test -z "$as_dir" && as_dir=.
5727     for ac_exec_ext in '' $ac_executable_extensions; do
5728   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5729     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
5730     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5731     break 2
5732   fi
5733 done
5734   done
5735 IFS=$as_save_IFS
5736 
5737   ;;
5738 esac
5739 fi
5740 CAT=$ac_cv_path_CAT
5741 if test -n "$CAT"; then
5742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5743 $as_echo "$CAT" >&6; }
5744 else
5745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5746 $as_echo "no" >&6; }
5747 fi
5748 
5749 
5750   test -n "$CAT" && break
5751 done
5752 
5753     else
5754       # If it succeeded, then it was overridden by the user. We will use it
5755       # for the tool.
5756 
5757       # First remove it from the list of overridden variables, so we can test
5758       # for unknown variables in the end.
5759       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5760 
5761       # Check if we try to supply an empty value
5762       if test "x$CAT" = x; then
5763         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CAT= (no value)" >&5
5764 $as_echo "$as_me: Setting user supplied tool CAT= (no value)" >&6;}
5765         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5
5766 $as_echo_n "checking for CAT... " >&6; }
5767         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5768 $as_echo "disabled" >&6; }
5769       else
5770         # Check if the provided tool contains a complete path.
5771         tool_specified="$CAT"
5772         tool_basename="${tool_specified##*/}"
5773         if test "x$tool_basename" = "x$tool_specified"; then
5774           # A command without a complete path is provided, search $PATH.
5775           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5
5776 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;}
5777           # Extract the first word of "$tool_basename", so it can be a program name with args.
5778 set dummy $tool_basename; ac_word=$2
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5780 $as_echo_n "checking for $ac_word... " >&6; }
5781 if ${ac_cv_path_CAT+:} false; then :
5782   $as_echo_n "(cached) " >&6
5783 else
5784   case $CAT in
5785   [\\/]* | ?:[\\/]*)
5786   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
5787   ;;
5788   *)
5789   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5790 for as_dir in $PATH
5791 do
5792   IFS=$as_save_IFS
5793   test -z "$as_dir" && as_dir=.
5794     for ac_exec_ext in '' $ac_executable_extensions; do
5795   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5796     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
5797     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5798     break 2
5799   fi
5800 done
5801   done
5802 IFS=$as_save_IFS
5803 
5804   ;;
5805 esac
5806 fi
5807 CAT=$ac_cv_path_CAT
5808 if test -n "$CAT"; then
5809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5810 $as_echo "$CAT" >&6; }
5811 else
5812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5813 $as_echo "no" >&6; }
5814 fi
5815 
5816 
5817           if test "x$CAT" = x; then
5818             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5819           fi
5820         else
5821           # Otherwise we believe it is a complete path. Use it as it is.
5822           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5
5823 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;}
5824           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5
5825 $as_echo_n "checking for CAT... " >&6; }
5826           if test ! -x "$tool_specified"; then
5827             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5828 $as_echo "not found" >&6; }
5829             as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5
5830           fi
5831           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5832 $as_echo "$tool_specified" >&6; }
5833         fi
5834       fi
5835     fi
5836 
5837   fi
5838 
5839 
5840 
5841   if test "x$CAT" = x; then
5842     as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5
5843   fi
5844 
5845 
5846 
5847 
5848 
5849   # Publish this variable in the help.
5850 
5851 
5852   if [ -z "${CHMOD+x}" ]; then
5853     # The variable is not set by user, try to locate tool using the code snippet
5854     for ac_prog in chmod
5855 do
5856   # Extract the first word of "$ac_prog", so it can be a program name with args.
5857 set dummy $ac_prog; ac_word=$2
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5859 $as_echo_n "checking for $ac_word... " >&6; }
5860 if ${ac_cv_path_CHMOD+:} false; then :
5861   $as_echo_n "(cached) " >&6
5862 else
5863   case $CHMOD in
5864   [\\/]* | ?:[\\/]*)
5865   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5866   ;;
5867   *)
5868   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5869 for as_dir in $PATH
5870 do
5871   IFS=$as_save_IFS
5872   test -z "$as_dir" && as_dir=.
5873     for ac_exec_ext in '' $ac_executable_extensions; do
5874   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5875     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5876     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5877     break 2
5878   fi
5879 done
5880   done
5881 IFS=$as_save_IFS
5882 
5883   ;;
5884 esac
5885 fi
5886 CHMOD=$ac_cv_path_CHMOD
5887 if test -n "$CHMOD"; then
5888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5889 $as_echo "$CHMOD" >&6; }
5890 else
5891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5892 $as_echo "no" >&6; }
5893 fi
5894 
5895 
5896   test -n "$CHMOD" && break
5897 done
5898 
5899   else
5900     # The variable is set, but is it from the command line or the environment?
5901 
5902     # Try to remove the string !CHMOD! from our list.
5903     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/}
5904     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5905       # If it failed, the variable was not from the command line. Ignore it,
5906       # but warn the user (except for BASH, which is always set by the calling BASH).
5907       if test "xCHMOD" != xBASH; then
5908         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5
5909 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;}
5910       fi
5911       # Try to locate tool using the code snippet
5912       for ac_prog in chmod
5913 do
5914   # Extract the first word of "$ac_prog", so it can be a program name with args.
5915 set dummy $ac_prog; ac_word=$2
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5917 $as_echo_n "checking for $ac_word... " >&6; }
5918 if ${ac_cv_path_CHMOD+:} false; then :
5919   $as_echo_n "(cached) " >&6
5920 else
5921   case $CHMOD in
5922   [\\/]* | ?:[\\/]*)
5923   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5924   ;;
5925   *)
5926   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5927 for as_dir in $PATH
5928 do
5929   IFS=$as_save_IFS
5930   test -z "$as_dir" && as_dir=.
5931     for ac_exec_ext in '' $ac_executable_extensions; do
5932   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5933     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5934     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5935     break 2
5936   fi
5937 done
5938   done
5939 IFS=$as_save_IFS
5940 
5941   ;;
5942 esac
5943 fi
5944 CHMOD=$ac_cv_path_CHMOD
5945 if test -n "$CHMOD"; then
5946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5947 $as_echo "$CHMOD" >&6; }
5948 else
5949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5950 $as_echo "no" >&6; }
5951 fi
5952 
5953 
5954   test -n "$CHMOD" && break
5955 done
5956 
5957     else
5958       # If it succeeded, then it was overridden by the user. We will use it
5959       # for the tool.
5960 
5961       # First remove it from the list of overridden variables, so we can test
5962       # for unknown variables in the end.
5963       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5964 
5965       # Check if we try to supply an empty value
5966       if test "x$CHMOD" = x; then
5967         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CHMOD= (no value)" >&5
5968 $as_echo "$as_me: Setting user supplied tool CHMOD= (no value)" >&6;}
5969         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5
5970 $as_echo_n "checking for CHMOD... " >&6; }
5971         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5972 $as_echo "disabled" >&6; }
5973       else
5974         # Check if the provided tool contains a complete path.
5975         tool_specified="$CHMOD"
5976         tool_basename="${tool_specified##*/}"
5977         if test "x$tool_basename" = "x$tool_specified"; then
5978           # A command without a complete path is provided, search $PATH.
5979           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5
5980 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;}
5981           # Extract the first word of "$tool_basename", so it can be a program name with args.
5982 set dummy $tool_basename; ac_word=$2
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5984 $as_echo_n "checking for $ac_word... " >&6; }
5985 if ${ac_cv_path_CHMOD+:} false; then :
5986   $as_echo_n "(cached) " >&6
5987 else
5988   case $CHMOD in
5989   [\\/]* | ?:[\\/]*)
5990   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5991   ;;
5992   *)
5993   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5994 for as_dir in $PATH
5995 do
5996   IFS=$as_save_IFS
5997   test -z "$as_dir" && as_dir=.
5998     for ac_exec_ext in '' $ac_executable_extensions; do
5999   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6000     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
6001     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6002     break 2
6003   fi
6004 done
6005   done
6006 IFS=$as_save_IFS
6007 
6008   ;;
6009 esac
6010 fi
6011 CHMOD=$ac_cv_path_CHMOD
6012 if test -n "$CHMOD"; then
6013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
6014 $as_echo "$CHMOD" >&6; }
6015 else
6016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6017 $as_echo "no" >&6; }
6018 fi
6019 
6020 
6021           if test "x$CHMOD" = x; then
6022             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6023           fi
6024         else
6025           # Otherwise we believe it is a complete path. Use it as it is.
6026           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5
6027 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;}
6028           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5
6029 $as_echo_n "checking for CHMOD... " >&6; }
6030           if test ! -x "$tool_specified"; then
6031             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6032 $as_echo "not found" >&6; }
6033             as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5
6034           fi
6035           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6036 $as_echo "$tool_specified" >&6; }
6037         fi
6038       fi
6039     fi
6040 
6041   fi
6042 
6043 
6044 
6045   if test "x$CHMOD" = x; then
6046     as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5
6047   fi
6048 
6049 
6050 
6051 
6052 
6053   # Publish this variable in the help.
6054 
6055 
6056   if [ -z "${CMP+x}" ]; then
6057     # The variable is not set by user, try to locate tool using the code snippet
6058     for ac_prog in cmp
6059 do
6060   # Extract the first word of "$ac_prog", so it can be a program name with args.
6061 set dummy $ac_prog; ac_word=$2
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6063 $as_echo_n "checking for $ac_word... " >&6; }
6064 if ${ac_cv_path_CMP+:} false; then :
6065   $as_echo_n "(cached) " >&6
6066 else
6067   case $CMP in
6068   [\\/]* | ?:[\\/]*)
6069   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6070   ;;
6071   *)
6072   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6073 for as_dir in $PATH
6074 do
6075   IFS=$as_save_IFS
6076   test -z "$as_dir" && as_dir=.
6077     for ac_exec_ext in '' $ac_executable_extensions; do
6078   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6079     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6080     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6081     break 2
6082   fi
6083 done
6084   done
6085 IFS=$as_save_IFS
6086 
6087   ;;
6088 esac
6089 fi
6090 CMP=$ac_cv_path_CMP
6091 if test -n "$CMP"; then
6092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
6093 $as_echo "$CMP" >&6; }
6094 else
6095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6096 $as_echo "no" >&6; }
6097 fi
6098 
6099 
6100   test -n "$CMP" && break
6101 done
6102 
6103   else
6104     # The variable is set, but is it from the command line or the environment?
6105 
6106     # Try to remove the string !CMP! from our list.
6107     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/}
6108     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6109       # If it failed, the variable was not from the command line. Ignore it,
6110       # but warn the user (except for BASH, which is always set by the calling BASH).
6111       if test "xCMP" != xBASH; then
6112         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5
6113 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;}
6114       fi
6115       # Try to locate tool using the code snippet
6116       for ac_prog in cmp
6117 do
6118   # Extract the first word of "$ac_prog", so it can be a program name with args.
6119 set dummy $ac_prog; ac_word=$2
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6121 $as_echo_n "checking for $ac_word... " >&6; }
6122 if ${ac_cv_path_CMP+:} false; then :
6123   $as_echo_n "(cached) " >&6
6124 else
6125   case $CMP in
6126   [\\/]* | ?:[\\/]*)
6127   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6128   ;;
6129   *)
6130   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6131 for as_dir in $PATH
6132 do
6133   IFS=$as_save_IFS
6134   test -z "$as_dir" && as_dir=.
6135     for ac_exec_ext in '' $ac_executable_extensions; do
6136   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6137     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6138     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6139     break 2
6140   fi
6141 done
6142   done
6143 IFS=$as_save_IFS
6144 
6145   ;;
6146 esac
6147 fi
6148 CMP=$ac_cv_path_CMP
6149 if test -n "$CMP"; then
6150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
6151 $as_echo "$CMP" >&6; }
6152 else
6153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6154 $as_echo "no" >&6; }
6155 fi
6156 
6157 
6158   test -n "$CMP" && break
6159 done
6160 
6161     else
6162       # If it succeeded, then it was overridden by the user. We will use it
6163       # for the tool.
6164 
6165       # First remove it from the list of overridden variables, so we can test
6166       # for unknown variables in the end.
6167       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6168 
6169       # Check if we try to supply an empty value
6170       if test "x$CMP" = x; then
6171         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CMP= (no value)" >&5
6172 $as_echo "$as_me: Setting user supplied tool CMP= (no value)" >&6;}
6173         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5
6174 $as_echo_n "checking for CMP... " >&6; }
6175         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6176 $as_echo "disabled" >&6; }
6177       else
6178         # Check if the provided tool contains a complete path.
6179         tool_specified="$CMP"
6180         tool_basename="${tool_specified##*/}"
6181         if test "x$tool_basename" = "x$tool_specified"; then
6182           # A command without a complete path is provided, search $PATH.
6183           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5
6184 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;}
6185           # Extract the first word of "$tool_basename", so it can be a program name with args.
6186 set dummy $tool_basename; ac_word=$2
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6188 $as_echo_n "checking for $ac_word... " >&6; }
6189 if ${ac_cv_path_CMP+:} false; then :
6190   $as_echo_n "(cached) " >&6
6191 else
6192   case $CMP in
6193   [\\/]* | ?:[\\/]*)
6194   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6195   ;;
6196   *)
6197   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6198 for as_dir in $PATH
6199 do
6200   IFS=$as_save_IFS
6201   test -z "$as_dir" && as_dir=.
6202     for ac_exec_ext in '' $ac_executable_extensions; do
6203   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6204     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6205     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6206     break 2
6207   fi
6208 done
6209   done
6210 IFS=$as_save_IFS
6211 
6212   ;;
6213 esac
6214 fi
6215 CMP=$ac_cv_path_CMP
6216 if test -n "$CMP"; then
6217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
6218 $as_echo "$CMP" >&6; }
6219 else
6220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6221 $as_echo "no" >&6; }
6222 fi
6223 
6224 
6225           if test "x$CMP" = x; then
6226             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6227           fi
6228         else
6229           # Otherwise we believe it is a complete path. Use it as it is.
6230           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5
6231 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;}
6232           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5
6233 $as_echo_n "checking for CMP... " >&6; }
6234           if test ! -x "$tool_specified"; then
6235             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6236 $as_echo "not found" >&6; }
6237             as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5
6238           fi
6239           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6240 $as_echo "$tool_specified" >&6; }
6241         fi
6242       fi
6243     fi
6244 
6245   fi
6246 
6247 
6248 
6249   if test "x$CMP" = x; then
6250     as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5
6251   fi
6252 
6253 
6254 
6255 
6256 
6257   # Publish this variable in the help.
6258 
6259 
6260   if [ -z "${COMM+x}" ]; then
6261     # The variable is not set by user, try to locate tool using the code snippet
6262     for ac_prog in comm
6263 do
6264   # Extract the first word of "$ac_prog", so it can be a program name with args.
6265 set dummy $ac_prog; ac_word=$2
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6267 $as_echo_n "checking for $ac_word... " >&6; }
6268 if ${ac_cv_path_COMM+:} false; then :
6269   $as_echo_n "(cached) " >&6
6270 else
6271   case $COMM in
6272   [\\/]* | ?:[\\/]*)
6273   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
6274   ;;
6275   *)
6276   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6277 for as_dir in $PATH
6278 do
6279   IFS=$as_save_IFS
6280   test -z "$as_dir" && as_dir=.
6281     for ac_exec_ext in '' $ac_executable_extensions; do
6282   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6283     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
6284     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6285     break 2
6286   fi
6287 done
6288   done
6289 IFS=$as_save_IFS
6290 
6291   ;;
6292 esac
6293 fi
6294 COMM=$ac_cv_path_COMM
6295 if test -n "$COMM"; then
6296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
6297 $as_echo "$COMM" >&6; }
6298 else
6299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6300 $as_echo "no" >&6; }
6301 fi
6302 
6303 
6304   test -n "$COMM" && break
6305 done
6306 
6307   else
6308     # The variable is set, but is it from the command line or the environment?
6309 
6310     # Try to remove the string !COMM! from our list.
6311     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/}
6312     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6313       # If it failed, the variable was not from the command line. Ignore it,
6314       # but warn the user (except for BASH, which is always set by the calling BASH).
6315       if test "xCOMM" != xBASH; then
6316         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5
6317 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;}
6318       fi
6319       # Try to locate tool using the code snippet
6320       for ac_prog in comm
6321 do
6322   # Extract the first word of "$ac_prog", so it can be a program name with args.
6323 set dummy $ac_prog; ac_word=$2
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6325 $as_echo_n "checking for $ac_word... " >&6; }
6326 if ${ac_cv_path_COMM+:} false; then :
6327   $as_echo_n "(cached) " >&6
6328 else
6329   case $COMM in
6330   [\\/]* | ?:[\\/]*)
6331   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
6332   ;;
6333   *)
6334   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6335 for as_dir in $PATH
6336 do
6337   IFS=$as_save_IFS
6338   test -z "$as_dir" && as_dir=.
6339     for ac_exec_ext in '' $ac_executable_extensions; do
6340   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6341     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
6342     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6343     break 2
6344   fi
6345 done
6346   done
6347 IFS=$as_save_IFS
6348 
6349   ;;
6350 esac
6351 fi
6352 COMM=$ac_cv_path_COMM
6353 if test -n "$COMM"; then
6354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
6355 $as_echo "$COMM" >&6; }
6356 else
6357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6358 $as_echo "no" >&6; }
6359 fi
6360 
6361 
6362   test -n "$COMM" && break
6363 done
6364 
6365     else
6366       # If it succeeded, then it was overridden by the user. We will use it
6367       # for the tool.
6368 
6369       # First remove it from the list of overridden variables, so we can test
6370       # for unknown variables in the end.
6371       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6372 
6373       # Check if we try to supply an empty value
6374       if test "x$COMM" = x; then
6375         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool COMM= (no value)" >&5
6376 $as_echo "$as_me: Setting user supplied tool COMM= (no value)" >&6;}
6377         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
6378 $as_echo_n "checking for COMM... " >&6; }
6379         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6380 $as_echo "disabled" >&6; }
6381       else
6382         # Check if the provided tool contains a complete path.
6383         tool_specified="$COMM"
6384         tool_basename="${tool_specified##*/}"
6385         if test "x$tool_basename" = "x$tool_specified"; then
6386           # A command without a complete path is provided, search $PATH.
6387           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5
6388 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;}
6389           # Extract the first word of "$tool_basename", so it can be a program name with args.
6390 set dummy $tool_basename; ac_word=$2
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6392 $as_echo_n "checking for $ac_word... " >&6; }
6393 if ${ac_cv_path_COMM+:} false; then :
6394   $as_echo_n "(cached) " >&6
6395 else
6396   case $COMM in
6397   [\\/]* | ?:[\\/]*)
6398   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
6399   ;;
6400   *)
6401   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6402 for as_dir in $PATH
6403 do
6404   IFS=$as_save_IFS
6405   test -z "$as_dir" && as_dir=.
6406     for ac_exec_ext in '' $ac_executable_extensions; do
6407   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6408     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
6409     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6410     break 2
6411   fi
6412 done
6413   done
6414 IFS=$as_save_IFS
6415 
6416   ;;
6417 esac
6418 fi
6419 COMM=$ac_cv_path_COMM
6420 if test -n "$COMM"; then
6421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
6422 $as_echo "$COMM" >&6; }
6423 else
6424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6425 $as_echo "no" >&6; }
6426 fi
6427 
6428 
6429           if test "x$COMM" = x; then
6430             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6431           fi
6432         else
6433           # Otherwise we believe it is a complete path. Use it as it is.
6434           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5
6435 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;}
6436           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
6437 $as_echo_n "checking for COMM... " >&6; }
6438           if test ! -x "$tool_specified"; then
6439             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6440 $as_echo "not found" >&6; }
6441             as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5
6442           fi
6443           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6444 $as_echo "$tool_specified" >&6; }
6445         fi
6446       fi
6447     fi
6448 
6449   fi
6450 
6451 
6452 
6453   if test "x$COMM" = x; then
6454     as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5
6455   fi
6456 
6457 
6458 
6459 
6460 
6461   # Publish this variable in the help.
6462 
6463 
6464   if [ -z "${CP+x}" ]; then
6465     # The variable is not set by user, try to locate tool using the code snippet
6466     for ac_prog in cp
6467 do
6468   # Extract the first word of "$ac_prog", so it can be a program name with args.
6469 set dummy $ac_prog; ac_word=$2
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6471 $as_echo_n "checking for $ac_word... " >&6; }
6472 if ${ac_cv_path_CP+:} false; then :
6473   $as_echo_n "(cached) " >&6
6474 else
6475   case $CP in
6476   [\\/]* | ?:[\\/]*)
6477   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6478   ;;
6479   *)
6480   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6481 for as_dir in $PATH
6482 do
6483   IFS=$as_save_IFS
6484   test -z "$as_dir" && as_dir=.
6485     for ac_exec_ext in '' $ac_executable_extensions; do
6486   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6487     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6488     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6489     break 2
6490   fi
6491 done
6492   done
6493 IFS=$as_save_IFS
6494 
6495   ;;
6496 esac
6497 fi
6498 CP=$ac_cv_path_CP
6499 if test -n "$CP"; then
6500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
6501 $as_echo "$CP" >&6; }
6502 else
6503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6504 $as_echo "no" >&6; }
6505 fi
6506 
6507 
6508   test -n "$CP" && break
6509 done
6510 
6511   else
6512     # The variable is set, but is it from the command line or the environment?
6513 
6514     # Try to remove the string !CP! from our list.
6515     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/}
6516     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6517       # If it failed, the variable was not from the command line. Ignore it,
6518       # but warn the user (except for BASH, which is always set by the calling BASH).
6519       if test "xCP" != xBASH; then
6520         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5
6521 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;}
6522       fi
6523       # Try to locate tool using the code snippet
6524       for ac_prog in cp
6525 do
6526   # Extract the first word of "$ac_prog", so it can be a program name with args.
6527 set dummy $ac_prog; ac_word=$2
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6529 $as_echo_n "checking for $ac_word... " >&6; }
6530 if ${ac_cv_path_CP+:} false; then :
6531   $as_echo_n "(cached) " >&6
6532 else
6533   case $CP in
6534   [\\/]* | ?:[\\/]*)
6535   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6536   ;;
6537   *)
6538   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6539 for as_dir in $PATH
6540 do
6541   IFS=$as_save_IFS
6542   test -z "$as_dir" && as_dir=.
6543     for ac_exec_ext in '' $ac_executable_extensions; do
6544   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6545     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6546     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6547     break 2
6548   fi
6549 done
6550   done
6551 IFS=$as_save_IFS
6552 
6553   ;;
6554 esac
6555 fi
6556 CP=$ac_cv_path_CP
6557 if test -n "$CP"; then
6558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
6559 $as_echo "$CP" >&6; }
6560 else
6561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6562 $as_echo "no" >&6; }
6563 fi
6564 
6565 
6566   test -n "$CP" && break
6567 done
6568 
6569     else
6570       # If it succeeded, then it was overridden by the user. We will use it
6571       # for the tool.
6572 
6573       # First remove it from the list of overridden variables, so we can test
6574       # for unknown variables in the end.
6575       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6576 
6577       # Check if we try to supply an empty value
6578       if test "x$CP" = x; then
6579         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CP= (no value)" >&5
6580 $as_echo "$as_me: Setting user supplied tool CP= (no value)" >&6;}
6581         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5
6582 $as_echo_n "checking for CP... " >&6; }
6583         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6584 $as_echo "disabled" >&6; }
6585       else
6586         # Check if the provided tool contains a complete path.
6587         tool_specified="$CP"
6588         tool_basename="${tool_specified##*/}"
6589         if test "x$tool_basename" = "x$tool_specified"; then
6590           # A command without a complete path is provided, search $PATH.
6591           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5
6592 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;}
6593           # Extract the first word of "$tool_basename", so it can be a program name with args.
6594 set dummy $tool_basename; ac_word=$2
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6596 $as_echo_n "checking for $ac_word... " >&6; }
6597 if ${ac_cv_path_CP+:} false; then :
6598   $as_echo_n "(cached) " >&6
6599 else
6600   case $CP in
6601   [\\/]* | ?:[\\/]*)
6602   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6603   ;;
6604   *)
6605   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6606 for as_dir in $PATH
6607 do
6608   IFS=$as_save_IFS
6609   test -z "$as_dir" && as_dir=.
6610     for ac_exec_ext in '' $ac_executable_extensions; do
6611   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6612     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6613     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6614     break 2
6615   fi
6616 done
6617   done
6618 IFS=$as_save_IFS
6619 
6620   ;;
6621 esac
6622 fi
6623 CP=$ac_cv_path_CP
6624 if test -n "$CP"; then
6625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
6626 $as_echo "$CP" >&6; }
6627 else
6628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6629 $as_echo "no" >&6; }
6630 fi
6631 
6632 
6633           if test "x$CP" = x; then
6634             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6635           fi
6636         else
6637           # Otherwise we believe it is a complete path. Use it as it is.
6638           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5
6639 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;}
6640           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5
6641 $as_echo_n "checking for CP... " >&6; }
6642           if test ! -x "$tool_specified"; then
6643             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6644 $as_echo "not found" >&6; }
6645             as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5
6646           fi
6647           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6648 $as_echo "$tool_specified" >&6; }
6649         fi
6650       fi
6651     fi
6652 
6653   fi
6654 
6655 
6656 
6657   if test "x$CP" = x; then
6658     as_fn_error $? "Could not find required tool for CP" "$LINENO" 5
6659   fi
6660 
6661 
6662 
6663 
6664 
6665   # Publish this variable in the help.
6666 
6667 
6668   if [ -z "${CUT+x}" ]; then
6669     # The variable is not set by user, try to locate tool using the code snippet
6670     for ac_prog in cut
6671 do
6672   # Extract the first word of "$ac_prog", so it can be a program name with args.
6673 set dummy $ac_prog; ac_word=$2
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6675 $as_echo_n "checking for $ac_word... " >&6; }
6676 if ${ac_cv_path_CUT+:} false; then :
6677   $as_echo_n "(cached) " >&6
6678 else
6679   case $CUT in
6680   [\\/]* | ?:[\\/]*)
6681   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
6682   ;;
6683   *)
6684   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6685 for as_dir in $PATH
6686 do
6687   IFS=$as_save_IFS
6688   test -z "$as_dir" && as_dir=.
6689     for ac_exec_ext in '' $ac_executable_extensions; do
6690   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6691     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
6692     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6693     break 2
6694   fi
6695 done
6696   done
6697 IFS=$as_save_IFS
6698 
6699   ;;
6700 esac
6701 fi
6702 CUT=$ac_cv_path_CUT
6703 if test -n "$CUT"; then
6704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
6705 $as_echo "$CUT" >&6; }
6706 else
6707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6708 $as_echo "no" >&6; }
6709 fi
6710 
6711 
6712   test -n "$CUT" && break
6713 done
6714 
6715   else
6716     # The variable is set, but is it from the command line or the environment?
6717 
6718     # Try to remove the string !CUT! from our list.
6719     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/}
6720     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6721       # If it failed, the variable was not from the command line. Ignore it,
6722       # but warn the user (except for BASH, which is always set by the calling BASH).
6723       if test "xCUT" != xBASH; then
6724         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5
6725 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;}
6726       fi
6727       # Try to locate tool using the code snippet
6728       for ac_prog in cut
6729 do
6730   # Extract the first word of "$ac_prog", so it can be a program name with args.
6731 set dummy $ac_prog; ac_word=$2
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6733 $as_echo_n "checking for $ac_word... " >&6; }
6734 if ${ac_cv_path_CUT+:} false; then :
6735   $as_echo_n "(cached) " >&6
6736 else
6737   case $CUT in
6738   [\\/]* | ?:[\\/]*)
6739   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
6740   ;;
6741   *)
6742   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6743 for as_dir in $PATH
6744 do
6745   IFS=$as_save_IFS
6746   test -z "$as_dir" && as_dir=.
6747     for ac_exec_ext in '' $ac_executable_extensions; do
6748   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6749     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
6750     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6751     break 2
6752   fi
6753 done
6754   done
6755 IFS=$as_save_IFS
6756 
6757   ;;
6758 esac
6759 fi
6760 CUT=$ac_cv_path_CUT
6761 if test -n "$CUT"; then
6762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
6763 $as_echo "$CUT" >&6; }
6764 else
6765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6766 $as_echo "no" >&6; }
6767 fi
6768 
6769 
6770   test -n "$CUT" && break
6771 done
6772 
6773     else
6774       # If it succeeded, then it was overridden by the user. We will use it
6775       # for the tool.
6776 
6777       # First remove it from the list of overridden variables, so we can test
6778       # for unknown variables in the end.
6779       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6780 
6781       # Check if we try to supply an empty value
6782       if test "x$CUT" = x; then
6783         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CUT= (no value)" >&5
6784 $as_echo "$as_me: Setting user supplied tool CUT= (no value)" >&6;}
6785         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5
6786 $as_echo_n "checking for CUT... " >&6; }
6787         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6788 $as_echo "disabled" >&6; }
6789       else
6790         # Check if the provided tool contains a complete path.
6791         tool_specified="$CUT"
6792         tool_basename="${tool_specified##*/}"
6793         if test "x$tool_basename" = "x$tool_specified"; then
6794           # A command without a complete path is provided, search $PATH.
6795           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5
6796 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;}
6797           # Extract the first word of "$tool_basename", so it can be a program name with args.
6798 set dummy $tool_basename; ac_word=$2
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6800 $as_echo_n "checking for $ac_word... " >&6; }
6801 if ${ac_cv_path_CUT+:} false; then :
6802   $as_echo_n "(cached) " >&6
6803 else
6804   case $CUT in
6805   [\\/]* | ?:[\\/]*)
6806   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
6807   ;;
6808   *)
6809   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6810 for as_dir in $PATH
6811 do
6812   IFS=$as_save_IFS
6813   test -z "$as_dir" && as_dir=.
6814     for ac_exec_ext in '' $ac_executable_extensions; do
6815   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6816     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
6817     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6818     break 2
6819   fi
6820 done
6821   done
6822 IFS=$as_save_IFS
6823 
6824   ;;
6825 esac
6826 fi
6827 CUT=$ac_cv_path_CUT
6828 if test -n "$CUT"; then
6829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
6830 $as_echo "$CUT" >&6; }
6831 else
6832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6833 $as_echo "no" >&6; }
6834 fi
6835 
6836 
6837           if test "x$CUT" = x; then
6838             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6839           fi
6840         else
6841           # Otherwise we believe it is a complete path. Use it as it is.
6842           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5
6843 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;}
6844           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5
6845 $as_echo_n "checking for CUT... " >&6; }
6846           if test ! -x "$tool_specified"; then
6847             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6848 $as_echo "not found" >&6; }
6849             as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5
6850           fi
6851           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6852 $as_echo "$tool_specified" >&6; }
6853         fi
6854       fi
6855     fi
6856 
6857   fi
6858 
6859 
6860 
6861   if test "x$CUT" = x; then
6862     as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5
6863   fi
6864 
6865 
6866 
6867 
6868 
6869   # Publish this variable in the help.
6870 
6871 
6872   if [ -z "${DATE+x}" ]; then
6873     # The variable is not set by user, try to locate tool using the code snippet
6874     for ac_prog in date
6875 do
6876   # Extract the first word of "$ac_prog", so it can be a program name with args.
6877 set dummy $ac_prog; ac_word=$2
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6879 $as_echo_n "checking for $ac_word... " >&6; }
6880 if ${ac_cv_path_DATE+:} false; then :
6881   $as_echo_n "(cached) " >&6
6882 else
6883   case $DATE in
6884   [\\/]* | ?:[\\/]*)
6885   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6886   ;;
6887   *)
6888   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6889 for as_dir in $PATH
6890 do
6891   IFS=$as_save_IFS
6892   test -z "$as_dir" && as_dir=.
6893     for ac_exec_ext in '' $ac_executable_extensions; do
6894   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6895     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6896     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6897     break 2
6898   fi
6899 done
6900   done
6901 IFS=$as_save_IFS
6902 
6903   ;;
6904 esac
6905 fi
6906 DATE=$ac_cv_path_DATE
6907 if test -n "$DATE"; then
6908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6909 $as_echo "$DATE" >&6; }
6910 else
6911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6912 $as_echo "no" >&6; }
6913 fi
6914 
6915 
6916   test -n "$DATE" && break
6917 done
6918 
6919   else
6920     # The variable is set, but is it from the command line or the environment?
6921 
6922     # Try to remove the string !DATE! from our list.
6923     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/}
6924     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6925       # If it failed, the variable was not from the command line. Ignore it,
6926       # but warn the user (except for BASH, which is always set by the calling BASH).
6927       if test "xDATE" != xBASH; then
6928         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5
6929 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;}
6930       fi
6931       # Try to locate tool using the code snippet
6932       for ac_prog in date
6933 do
6934   # Extract the first word of "$ac_prog", so it can be a program name with args.
6935 set dummy $ac_prog; ac_word=$2
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6937 $as_echo_n "checking for $ac_word... " >&6; }
6938 if ${ac_cv_path_DATE+:} false; then :
6939   $as_echo_n "(cached) " >&6
6940 else
6941   case $DATE in
6942   [\\/]* | ?:[\\/]*)
6943   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6944   ;;
6945   *)
6946   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6947 for as_dir in $PATH
6948 do
6949   IFS=$as_save_IFS
6950   test -z "$as_dir" && as_dir=.
6951     for ac_exec_ext in '' $ac_executable_extensions; do
6952   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6953     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6954     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6955     break 2
6956   fi
6957 done
6958   done
6959 IFS=$as_save_IFS
6960 
6961   ;;
6962 esac
6963 fi
6964 DATE=$ac_cv_path_DATE
6965 if test -n "$DATE"; then
6966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6967 $as_echo "$DATE" >&6; }
6968 else
6969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6970 $as_echo "no" >&6; }
6971 fi
6972 
6973 
6974   test -n "$DATE" && break
6975 done
6976 
6977     else
6978       # If it succeeded, then it was overridden by the user. We will use it
6979       # for the tool.
6980 
6981       # First remove it from the list of overridden variables, so we can test
6982       # for unknown variables in the end.
6983       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6984 
6985       # Check if we try to supply an empty value
6986       if test "x$DATE" = x; then
6987         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DATE= (no value)" >&5
6988 $as_echo "$as_me: Setting user supplied tool DATE= (no value)" >&6;}
6989         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5
6990 $as_echo_n "checking for DATE... " >&6; }
6991         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6992 $as_echo "disabled" >&6; }
6993       else
6994         # Check if the provided tool contains a complete path.
6995         tool_specified="$DATE"
6996         tool_basename="${tool_specified##*/}"
6997         if test "x$tool_basename" = "x$tool_specified"; then
6998           # A command without a complete path is provided, search $PATH.
6999           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5
7000 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;}
7001           # Extract the first word of "$tool_basename", so it can be a program name with args.
7002 set dummy $tool_basename; ac_word=$2
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7004 $as_echo_n "checking for $ac_word... " >&6; }
7005 if ${ac_cv_path_DATE+:} false; then :
7006   $as_echo_n "(cached) " >&6
7007 else
7008   case $DATE in
7009   [\\/]* | ?:[\\/]*)
7010   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
7011   ;;
7012   *)
7013   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7014 for as_dir in $PATH
7015 do
7016   IFS=$as_save_IFS
7017   test -z "$as_dir" && as_dir=.
7018     for ac_exec_ext in '' $ac_executable_extensions; do
7019   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7020     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
7021     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7022     break 2
7023   fi
7024 done
7025   done
7026 IFS=$as_save_IFS
7027 
7028   ;;
7029 esac
7030 fi
7031 DATE=$ac_cv_path_DATE
7032 if test -n "$DATE"; then
7033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
7034 $as_echo "$DATE" >&6; }
7035 else
7036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7037 $as_echo "no" >&6; }
7038 fi
7039 
7040 
7041           if test "x$DATE" = x; then
7042             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7043           fi
7044         else
7045           # Otherwise we believe it is a complete path. Use it as it is.
7046           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5
7047 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;}
7048           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5
7049 $as_echo_n "checking for DATE... " >&6; }
7050           if test ! -x "$tool_specified"; then
7051             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7052 $as_echo "not found" >&6; }
7053             as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5
7054           fi
7055           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7056 $as_echo "$tool_specified" >&6; }
7057         fi
7058       fi
7059     fi
7060 
7061   fi
7062 
7063 
7064 
7065   if test "x$DATE" = x; then
7066     as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5
7067   fi
7068 
7069 
7070 
7071 
7072 
7073   # Publish this variable in the help.
7074 
7075 
7076   if [ -z "${DIFF+x}" ]; then
7077     # The variable is not set by user, try to locate tool using the code snippet
7078     for ac_prog in gdiff diff
7079 do
7080   # Extract the first word of "$ac_prog", so it can be a program name with args.
7081 set dummy $ac_prog; ac_word=$2
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7083 $as_echo_n "checking for $ac_word... " >&6; }
7084 if ${ac_cv_path_DIFF+:} false; then :
7085   $as_echo_n "(cached) " >&6
7086 else
7087   case $DIFF in
7088   [\\/]* | ?:[\\/]*)
7089   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
7090   ;;
7091   *)
7092   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7093 for as_dir in $PATH
7094 do
7095   IFS=$as_save_IFS
7096   test -z "$as_dir" && as_dir=.
7097     for ac_exec_ext in '' $ac_executable_extensions; do
7098   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7099     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
7100     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7101     break 2
7102   fi
7103 done
7104   done
7105 IFS=$as_save_IFS
7106 
7107   ;;
7108 esac
7109 fi
7110 DIFF=$ac_cv_path_DIFF
7111 if test -n "$DIFF"; then
7112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
7113 $as_echo "$DIFF" >&6; }
7114 else
7115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7116 $as_echo "no" >&6; }
7117 fi
7118 
7119 
7120   test -n "$DIFF" && break
7121 done
7122 
7123   else
7124     # The variable is set, but is it from the command line or the environment?
7125 
7126     # Try to remove the string !DIFF! from our list.
7127     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/}
7128     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7129       # If it failed, the variable was not from the command line. Ignore it,
7130       # but warn the user (except for BASH, which is always set by the calling BASH).
7131       if test "xDIFF" != xBASH; then
7132         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5
7133 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;}
7134       fi
7135       # Try to locate tool using the code snippet
7136       for ac_prog in gdiff diff
7137 do
7138   # Extract the first word of "$ac_prog", so it can be a program name with args.
7139 set dummy $ac_prog; ac_word=$2
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7141 $as_echo_n "checking for $ac_word... " >&6; }
7142 if ${ac_cv_path_DIFF+:} false; then :
7143   $as_echo_n "(cached) " >&6
7144 else
7145   case $DIFF in
7146   [\\/]* | ?:[\\/]*)
7147   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
7148   ;;
7149   *)
7150   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7151 for as_dir in $PATH
7152 do
7153   IFS=$as_save_IFS
7154   test -z "$as_dir" && as_dir=.
7155     for ac_exec_ext in '' $ac_executable_extensions; do
7156   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7157     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
7158     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7159     break 2
7160   fi
7161 done
7162   done
7163 IFS=$as_save_IFS
7164 
7165   ;;
7166 esac
7167 fi
7168 DIFF=$ac_cv_path_DIFF
7169 if test -n "$DIFF"; then
7170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
7171 $as_echo "$DIFF" >&6; }
7172 else
7173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7174 $as_echo "no" >&6; }
7175 fi
7176 
7177 
7178   test -n "$DIFF" && break
7179 done
7180 
7181     else
7182       # If it succeeded, then it was overridden by the user. We will use it
7183       # for the tool.
7184 
7185       # First remove it from the list of overridden variables, so we can test
7186       # for unknown variables in the end.
7187       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7188 
7189       # Check if we try to supply an empty value
7190       if test "x$DIFF" = x; then
7191         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DIFF= (no value)" >&5
7192 $as_echo "$as_me: Setting user supplied tool DIFF= (no value)" >&6;}
7193         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5
7194 $as_echo_n "checking for DIFF... " >&6; }
7195         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7196 $as_echo "disabled" >&6; }
7197       else
7198         # Check if the provided tool contains a complete path.
7199         tool_specified="$DIFF"
7200         tool_basename="${tool_specified##*/}"
7201         if test "x$tool_basename" = "x$tool_specified"; then
7202           # A command without a complete path is provided, search $PATH.
7203           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5
7204 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;}
7205           # Extract the first word of "$tool_basename", so it can be a program name with args.
7206 set dummy $tool_basename; ac_word=$2
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7208 $as_echo_n "checking for $ac_word... " >&6; }
7209 if ${ac_cv_path_DIFF+:} false; then :
7210   $as_echo_n "(cached) " >&6
7211 else
7212   case $DIFF in
7213   [\\/]* | ?:[\\/]*)
7214   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
7215   ;;
7216   *)
7217   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7218 for as_dir in $PATH
7219 do
7220   IFS=$as_save_IFS
7221   test -z "$as_dir" && as_dir=.
7222     for ac_exec_ext in '' $ac_executable_extensions; do
7223   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7224     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
7225     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7226     break 2
7227   fi
7228 done
7229   done
7230 IFS=$as_save_IFS
7231 
7232   ;;
7233 esac
7234 fi
7235 DIFF=$ac_cv_path_DIFF
7236 if test -n "$DIFF"; then
7237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
7238 $as_echo "$DIFF" >&6; }
7239 else
7240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7241 $as_echo "no" >&6; }
7242 fi
7243 
7244 
7245           if test "x$DIFF" = x; then
7246             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7247           fi
7248         else
7249           # Otherwise we believe it is a complete path. Use it as it is.
7250           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5
7251 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;}
7252           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5
7253 $as_echo_n "checking for DIFF... " >&6; }
7254           if test ! -x "$tool_specified"; then
7255             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7256 $as_echo "not found" >&6; }
7257             as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5
7258           fi
7259           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7260 $as_echo "$tool_specified" >&6; }
7261         fi
7262       fi
7263     fi
7264 
7265   fi
7266 
7267 
7268 
7269   if test "x$DIFF" = x; then
7270     as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5
7271   fi
7272 
7273 
7274 
7275 
7276 
7277   # Publish this variable in the help.
7278 
7279 
7280   if [ -z "${DIRNAME+x}" ]; then
7281     # The variable is not set by user, try to locate tool using the code snippet
7282     for ac_prog in dirname
7283 do
7284   # Extract the first word of "$ac_prog", so it can be a program name with args.
7285 set dummy $ac_prog; ac_word=$2
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7287 $as_echo_n "checking for $ac_word... " >&6; }
7288 if ${ac_cv_path_DIRNAME+:} false; then :
7289   $as_echo_n "(cached) " >&6
7290 else
7291   case $DIRNAME in
7292   [\\/]* | ?:[\\/]*)
7293   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
7294   ;;
7295   *)
7296   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7297 for as_dir in $PATH
7298 do
7299   IFS=$as_save_IFS
7300   test -z "$as_dir" && as_dir=.
7301     for ac_exec_ext in '' $ac_executable_extensions; do
7302   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7303     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
7304     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7305     break 2
7306   fi
7307 done
7308   done
7309 IFS=$as_save_IFS
7310 
7311   ;;
7312 esac
7313 fi
7314 DIRNAME=$ac_cv_path_DIRNAME
7315 if test -n "$DIRNAME"; then
7316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
7317 $as_echo "$DIRNAME" >&6; }
7318 else
7319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7320 $as_echo "no" >&6; }
7321 fi
7322 
7323 
7324   test -n "$DIRNAME" && break
7325 done
7326 
7327   else
7328     # The variable is set, but is it from the command line or the environment?
7329 
7330     # Try to remove the string !DIRNAME! from our list.
7331     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/}
7332     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7333       # If it failed, the variable was not from the command line. Ignore it,
7334       # but warn the user (except for BASH, which is always set by the calling BASH).
7335       if test "xDIRNAME" != xBASH; then
7336         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5
7337 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;}
7338       fi
7339       # Try to locate tool using the code snippet
7340       for ac_prog in dirname
7341 do
7342   # Extract the first word of "$ac_prog", so it can be a program name with args.
7343 set dummy $ac_prog; ac_word=$2
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7345 $as_echo_n "checking for $ac_word... " >&6; }
7346 if ${ac_cv_path_DIRNAME+:} false; then :
7347   $as_echo_n "(cached) " >&6
7348 else
7349   case $DIRNAME in
7350   [\\/]* | ?:[\\/]*)
7351   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
7352   ;;
7353   *)
7354   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7355 for as_dir in $PATH
7356 do
7357   IFS=$as_save_IFS
7358   test -z "$as_dir" && as_dir=.
7359     for ac_exec_ext in '' $ac_executable_extensions; do
7360   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7361     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
7362     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7363     break 2
7364   fi
7365 done
7366   done
7367 IFS=$as_save_IFS
7368 
7369   ;;
7370 esac
7371 fi
7372 DIRNAME=$ac_cv_path_DIRNAME
7373 if test -n "$DIRNAME"; then
7374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
7375 $as_echo "$DIRNAME" >&6; }
7376 else
7377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7378 $as_echo "no" >&6; }
7379 fi
7380 
7381 
7382   test -n "$DIRNAME" && break
7383 done
7384 
7385     else
7386       # If it succeeded, then it was overridden by the user. We will use it
7387       # for the tool.
7388 
7389       # First remove it from the list of overridden variables, so we can test
7390       # for unknown variables in the end.
7391       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7392 
7393       # Check if we try to supply an empty value
7394       if test "x$DIRNAME" = x; then
7395         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DIRNAME= (no value)" >&5
7396 $as_echo "$as_me: Setting user supplied tool DIRNAME= (no value)" >&6;}
7397         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5
7398 $as_echo_n "checking for DIRNAME... " >&6; }
7399         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7400 $as_echo "disabled" >&6; }
7401       else
7402         # Check if the provided tool contains a complete path.
7403         tool_specified="$DIRNAME"
7404         tool_basename="${tool_specified##*/}"
7405         if test "x$tool_basename" = "x$tool_specified"; then
7406           # A command without a complete path is provided, search $PATH.
7407           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5
7408 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;}
7409           # Extract the first word of "$tool_basename", so it can be a program name with args.
7410 set dummy $tool_basename; ac_word=$2
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7412 $as_echo_n "checking for $ac_word... " >&6; }
7413 if ${ac_cv_path_DIRNAME+:} false; then :
7414   $as_echo_n "(cached) " >&6
7415 else
7416   case $DIRNAME in
7417   [\\/]* | ?:[\\/]*)
7418   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
7419   ;;
7420   *)
7421   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7422 for as_dir in $PATH
7423 do
7424   IFS=$as_save_IFS
7425   test -z "$as_dir" && as_dir=.
7426     for ac_exec_ext in '' $ac_executable_extensions; do
7427   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7428     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
7429     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7430     break 2
7431   fi
7432 done
7433   done
7434 IFS=$as_save_IFS
7435 
7436   ;;
7437 esac
7438 fi
7439 DIRNAME=$ac_cv_path_DIRNAME
7440 if test -n "$DIRNAME"; then
7441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
7442 $as_echo "$DIRNAME" >&6; }
7443 else
7444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7445 $as_echo "no" >&6; }
7446 fi
7447 
7448 
7449           if test "x$DIRNAME" = x; then
7450             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7451           fi
7452         else
7453           # Otherwise we believe it is a complete path. Use it as it is.
7454           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5
7455 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;}
7456           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5
7457 $as_echo_n "checking for DIRNAME... " >&6; }
7458           if test ! -x "$tool_specified"; then
7459             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7460 $as_echo "not found" >&6; }
7461             as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
7462           fi
7463           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7464 $as_echo "$tool_specified" >&6; }
7465         fi
7466       fi
7467     fi
7468 
7469   fi
7470 
7471 
7472 
7473   if test "x$DIRNAME" = x; then
7474     as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5
7475   fi
7476 
7477 
7478 
7479 
7480 
7481   # Publish this variable in the help.
7482 
7483 
7484   if [ -z "${ECHO+x}" ]; then
7485     # The variable is not set by user, try to locate tool using the code snippet
7486     for ac_prog in echo
7487 do
7488   # Extract the first word of "$ac_prog", so it can be a program name with args.
7489 set dummy $ac_prog; ac_word=$2
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7491 $as_echo_n "checking for $ac_word... " >&6; }
7492 if ${ac_cv_path_ECHO+:} false; then :
7493   $as_echo_n "(cached) " >&6
7494 else
7495   case $ECHO in
7496   [\\/]* | ?:[\\/]*)
7497   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
7498   ;;
7499   *)
7500   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7501 for as_dir in $PATH
7502 do
7503   IFS=$as_save_IFS
7504   test -z "$as_dir" && as_dir=.
7505     for ac_exec_ext in '' $ac_executable_extensions; do
7506   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7507     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
7508     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7509     break 2
7510   fi
7511 done
7512   done
7513 IFS=$as_save_IFS
7514 
7515   ;;
7516 esac
7517 fi
7518 ECHO=$ac_cv_path_ECHO
7519 if test -n "$ECHO"; then
7520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
7521 $as_echo "$ECHO" >&6; }
7522 else
7523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7524 $as_echo "no" >&6; }
7525 fi
7526 
7527 
7528   test -n "$ECHO" && break
7529 done
7530 
7531   else
7532     # The variable is set, but is it from the command line or the environment?
7533 
7534     # Try to remove the string !ECHO! from our list.
7535     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/}
7536     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7537       # If it failed, the variable was not from the command line. Ignore it,
7538       # but warn the user (except for BASH, which is always set by the calling BASH).
7539       if test "xECHO" != xBASH; then
7540         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5
7541 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;}
7542       fi
7543       # Try to locate tool using the code snippet
7544       for ac_prog in echo
7545 do
7546   # Extract the first word of "$ac_prog", so it can be a program name with args.
7547 set dummy $ac_prog; ac_word=$2
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7549 $as_echo_n "checking for $ac_word... " >&6; }
7550 if ${ac_cv_path_ECHO+:} false; then :
7551   $as_echo_n "(cached) " >&6
7552 else
7553   case $ECHO in
7554   [\\/]* | ?:[\\/]*)
7555   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
7556   ;;
7557   *)
7558   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7559 for as_dir in $PATH
7560 do
7561   IFS=$as_save_IFS
7562   test -z "$as_dir" && as_dir=.
7563     for ac_exec_ext in '' $ac_executable_extensions; do
7564   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7565     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
7566     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7567     break 2
7568   fi
7569 done
7570   done
7571 IFS=$as_save_IFS
7572 
7573   ;;
7574 esac
7575 fi
7576 ECHO=$ac_cv_path_ECHO
7577 if test -n "$ECHO"; then
7578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
7579 $as_echo "$ECHO" >&6; }
7580 else
7581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7582 $as_echo "no" >&6; }
7583 fi
7584 
7585 
7586   test -n "$ECHO" && break
7587 done
7588 
7589     else
7590       # If it succeeded, then it was overridden by the user. We will use it
7591       # for the tool.
7592 
7593       # First remove it from the list of overridden variables, so we can test
7594       # for unknown variables in the end.
7595       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7596 
7597       # Check if we try to supply an empty value
7598       if test "x$ECHO" = x; then
7599         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ECHO= (no value)" >&5
7600 $as_echo "$as_me: Setting user supplied tool ECHO= (no value)" >&6;}
7601         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5
7602 $as_echo_n "checking for ECHO... " >&6; }
7603         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7604 $as_echo "disabled" >&6; }
7605       else
7606         # Check if the provided tool contains a complete path.
7607         tool_specified="$ECHO"
7608         tool_basename="${tool_specified##*/}"
7609         if test "x$tool_basename" = "x$tool_specified"; then
7610           # A command without a complete path is provided, search $PATH.
7611           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5
7612 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;}
7613           # Extract the first word of "$tool_basename", so it can be a program name with args.
7614 set dummy $tool_basename; ac_word=$2
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7616 $as_echo_n "checking for $ac_word... " >&6; }
7617 if ${ac_cv_path_ECHO+:} false; then :
7618   $as_echo_n "(cached) " >&6
7619 else
7620   case $ECHO in
7621   [\\/]* | ?:[\\/]*)
7622   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
7623   ;;
7624   *)
7625   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7626 for as_dir in $PATH
7627 do
7628   IFS=$as_save_IFS
7629   test -z "$as_dir" && as_dir=.
7630     for ac_exec_ext in '' $ac_executable_extensions; do
7631   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7632     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
7633     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7634     break 2
7635   fi
7636 done
7637   done
7638 IFS=$as_save_IFS
7639 
7640   ;;
7641 esac
7642 fi
7643 ECHO=$ac_cv_path_ECHO
7644 if test -n "$ECHO"; then
7645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
7646 $as_echo "$ECHO" >&6; }
7647 else
7648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7649 $as_echo "no" >&6; }
7650 fi
7651 
7652 
7653           if test "x$ECHO" = x; then
7654             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7655           fi
7656         else
7657           # Otherwise we believe it is a complete path. Use it as it is.
7658           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5
7659 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;}
7660           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5
7661 $as_echo_n "checking for ECHO... " >&6; }
7662           if test ! -x "$tool_specified"; then
7663             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7664 $as_echo "not found" >&6; }
7665             as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5
7666           fi
7667           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7668 $as_echo "$tool_specified" >&6; }
7669         fi
7670       fi
7671     fi
7672 
7673   fi
7674 
7675 
7676 
7677   if test "x$ECHO" = x; then
7678     as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5
7679   fi
7680 
7681 
7682 
7683 
7684 
7685   # Publish this variable in the help.
7686 
7687 
7688   if [ -z "${EXPR+x}" ]; then
7689     # The variable is not set by user, try to locate tool using the code snippet
7690     for ac_prog in expr
7691 do
7692   # Extract the first word of "$ac_prog", so it can be a program name with args.
7693 set dummy $ac_prog; ac_word=$2
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7695 $as_echo_n "checking for $ac_word... " >&6; }
7696 if ${ac_cv_path_EXPR+:} false; then :
7697   $as_echo_n "(cached) " >&6
7698 else
7699   case $EXPR in
7700   [\\/]* | ?:[\\/]*)
7701   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
7702   ;;
7703   *)
7704   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7705 for as_dir in $PATH
7706 do
7707   IFS=$as_save_IFS
7708   test -z "$as_dir" && as_dir=.
7709     for ac_exec_ext in '' $ac_executable_extensions; do
7710   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7711     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
7712     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7713     break 2
7714   fi
7715 done
7716   done
7717 IFS=$as_save_IFS
7718 
7719   ;;
7720 esac
7721 fi
7722 EXPR=$ac_cv_path_EXPR
7723 if test -n "$EXPR"; then
7724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
7725 $as_echo "$EXPR" >&6; }
7726 else
7727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7728 $as_echo "no" >&6; }
7729 fi
7730 
7731 
7732   test -n "$EXPR" && break
7733 done
7734 
7735   else
7736     # The variable is set, but is it from the command line or the environment?
7737 
7738     # Try to remove the string !EXPR! from our list.
7739     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/}
7740     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7741       # If it failed, the variable was not from the command line. Ignore it,
7742       # but warn the user (except for BASH, which is always set by the calling BASH).
7743       if test "xEXPR" != xBASH; then
7744         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5
7745 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;}
7746       fi
7747       # Try to locate tool using the code snippet
7748       for ac_prog in expr
7749 do
7750   # Extract the first word of "$ac_prog", so it can be a program name with args.
7751 set dummy $ac_prog; ac_word=$2
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7753 $as_echo_n "checking for $ac_word... " >&6; }
7754 if ${ac_cv_path_EXPR+:} false; then :
7755   $as_echo_n "(cached) " >&6
7756 else
7757   case $EXPR in
7758   [\\/]* | ?:[\\/]*)
7759   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
7760   ;;
7761   *)
7762   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7763 for as_dir in $PATH
7764 do
7765   IFS=$as_save_IFS
7766   test -z "$as_dir" && as_dir=.
7767     for ac_exec_ext in '' $ac_executable_extensions; do
7768   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7769     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
7770     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7771     break 2
7772   fi
7773 done
7774   done
7775 IFS=$as_save_IFS
7776 
7777   ;;
7778 esac
7779 fi
7780 EXPR=$ac_cv_path_EXPR
7781 if test -n "$EXPR"; then
7782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
7783 $as_echo "$EXPR" >&6; }
7784 else
7785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7786 $as_echo "no" >&6; }
7787 fi
7788 
7789 
7790   test -n "$EXPR" && break
7791 done
7792 
7793     else
7794       # If it succeeded, then it was overridden by the user. We will use it
7795       # for the tool.
7796 
7797       # First remove it from the list of overridden variables, so we can test
7798       # for unknown variables in the end.
7799       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7800 
7801       # Check if we try to supply an empty value
7802       if test "x$EXPR" = x; then
7803         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool EXPR= (no value)" >&5
7804 $as_echo "$as_me: Setting user supplied tool EXPR= (no value)" >&6;}
7805         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5
7806 $as_echo_n "checking for EXPR... " >&6; }
7807         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7808 $as_echo "disabled" >&6; }
7809       else
7810         # Check if the provided tool contains a complete path.
7811         tool_specified="$EXPR"
7812         tool_basename="${tool_specified##*/}"
7813         if test "x$tool_basename" = "x$tool_specified"; then
7814           # A command without a complete path is provided, search $PATH.
7815           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5
7816 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;}
7817           # Extract the first word of "$tool_basename", so it can be a program name with args.
7818 set dummy $tool_basename; ac_word=$2
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7820 $as_echo_n "checking for $ac_word... " >&6; }
7821 if ${ac_cv_path_EXPR+:} false; then :
7822   $as_echo_n "(cached) " >&6
7823 else
7824   case $EXPR in
7825   [\\/]* | ?:[\\/]*)
7826   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
7827   ;;
7828   *)
7829   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7830 for as_dir in $PATH
7831 do
7832   IFS=$as_save_IFS
7833   test -z "$as_dir" && as_dir=.
7834     for ac_exec_ext in '' $ac_executable_extensions; do
7835   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7836     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
7837     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7838     break 2
7839   fi
7840 done
7841   done
7842 IFS=$as_save_IFS
7843 
7844   ;;
7845 esac
7846 fi
7847 EXPR=$ac_cv_path_EXPR
7848 if test -n "$EXPR"; then
7849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
7850 $as_echo "$EXPR" >&6; }
7851 else
7852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7853 $as_echo "no" >&6; }
7854 fi
7855 
7856 
7857           if test "x$EXPR" = x; then
7858             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7859           fi
7860         else
7861           # Otherwise we believe it is a complete path. Use it as it is.
7862           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5
7863 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;}
7864           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5
7865 $as_echo_n "checking for EXPR... " >&6; }
7866           if test ! -x "$tool_specified"; then
7867             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7868 $as_echo "not found" >&6; }
7869             as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5
7870           fi
7871           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7872 $as_echo "$tool_specified" >&6; }
7873         fi
7874       fi
7875     fi
7876 
7877   fi
7878 
7879 
7880 
7881   if test "x$EXPR" = x; then
7882     as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5
7883   fi
7884 
7885 
7886 
7887 
7888 
7889   # Publish this variable in the help.
7890 
7891 
7892   if [ -z "${FILE+x}" ]; then
7893     # The variable is not set by user, try to locate tool using the code snippet
7894     for ac_prog in file
7895 do
7896   # Extract the first word of "$ac_prog", so it can be a program name with args.
7897 set dummy $ac_prog; ac_word=$2
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7899 $as_echo_n "checking for $ac_word... " >&6; }
7900 if ${ac_cv_path_FILE+:} false; then :
7901   $as_echo_n "(cached) " >&6
7902 else
7903   case $FILE in
7904   [\\/]* | ?:[\\/]*)
7905   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7906   ;;
7907   *)
7908   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7909 for as_dir in $PATH
7910 do
7911   IFS=$as_save_IFS
7912   test -z "$as_dir" && as_dir=.
7913     for ac_exec_ext in '' $ac_executable_extensions; do
7914   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7915     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7916     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7917     break 2
7918   fi
7919 done
7920   done
7921 IFS=$as_save_IFS
7922 
7923   ;;
7924 esac
7925 fi
7926 FILE=$ac_cv_path_FILE
7927 if test -n "$FILE"; then
7928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7929 $as_echo "$FILE" >&6; }
7930 else
7931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7932 $as_echo "no" >&6; }
7933 fi
7934 
7935 
7936   test -n "$FILE" && break
7937 done
7938 
7939   else
7940     # The variable is set, but is it from the command line or the environment?
7941 
7942     # Try to remove the string !FILE! from our list.
7943     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/}
7944     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7945       # If it failed, the variable was not from the command line. Ignore it,
7946       # but warn the user (except for BASH, which is always set by the calling BASH).
7947       if test "xFILE" != xBASH; then
7948         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5
7949 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;}
7950       fi
7951       # Try to locate tool using the code snippet
7952       for ac_prog in file
7953 do
7954   # Extract the first word of "$ac_prog", so it can be a program name with args.
7955 set dummy $ac_prog; ac_word=$2
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7957 $as_echo_n "checking for $ac_word... " >&6; }
7958 if ${ac_cv_path_FILE+:} false; then :
7959   $as_echo_n "(cached) " >&6
7960 else
7961   case $FILE in
7962   [\\/]* | ?:[\\/]*)
7963   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7964   ;;
7965   *)
7966   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7967 for as_dir in $PATH
7968 do
7969   IFS=$as_save_IFS
7970   test -z "$as_dir" && as_dir=.
7971     for ac_exec_ext in '' $ac_executable_extensions; do
7972   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7973     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7974     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7975     break 2
7976   fi
7977 done
7978   done
7979 IFS=$as_save_IFS
7980 
7981   ;;
7982 esac
7983 fi
7984 FILE=$ac_cv_path_FILE
7985 if test -n "$FILE"; then
7986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7987 $as_echo "$FILE" >&6; }
7988 else
7989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7990 $as_echo "no" >&6; }
7991 fi
7992 
7993 
7994   test -n "$FILE" && break
7995 done
7996 
7997     else
7998       # If it succeeded, then it was overridden by the user. We will use it
7999       # for the tool.
8000 
8001       # First remove it from the list of overridden variables, so we can test
8002       # for unknown variables in the end.
8003       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8004 
8005       # Check if we try to supply an empty value
8006       if test "x$FILE" = x; then
8007         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FILE= (no value)" >&5
8008 $as_echo "$as_me: Setting user supplied tool FILE= (no value)" >&6;}
8009         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5
8010 $as_echo_n "checking for FILE... " >&6; }
8011         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8012 $as_echo "disabled" >&6; }
8013       else
8014         # Check if the provided tool contains a complete path.
8015         tool_specified="$FILE"
8016         tool_basename="${tool_specified##*/}"
8017         if test "x$tool_basename" = "x$tool_specified"; then
8018           # A command without a complete path is provided, search $PATH.
8019           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5
8020 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;}
8021           # Extract the first word of "$tool_basename", so it can be a program name with args.
8022 set dummy $tool_basename; ac_word=$2
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8024 $as_echo_n "checking for $ac_word... " >&6; }
8025 if ${ac_cv_path_FILE+:} false; then :
8026   $as_echo_n "(cached) " >&6
8027 else
8028   case $FILE in
8029   [\\/]* | ?:[\\/]*)
8030   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
8031   ;;
8032   *)
8033   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8034 for as_dir in $PATH
8035 do
8036   IFS=$as_save_IFS
8037   test -z "$as_dir" && as_dir=.
8038     for ac_exec_ext in '' $ac_executable_extensions; do
8039   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8040     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
8041     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8042     break 2
8043   fi
8044 done
8045   done
8046 IFS=$as_save_IFS
8047 
8048   ;;
8049 esac
8050 fi
8051 FILE=$ac_cv_path_FILE
8052 if test -n "$FILE"; then
8053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
8054 $as_echo "$FILE" >&6; }
8055 else
8056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8057 $as_echo "no" >&6; }
8058 fi
8059 
8060 
8061           if test "x$FILE" = x; then
8062             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8063           fi
8064         else
8065           # Otherwise we believe it is a complete path. Use it as it is.
8066           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5
8067 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;}
8068           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5
8069 $as_echo_n "checking for FILE... " >&6; }
8070           if test ! -x "$tool_specified"; then
8071             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8072 $as_echo "not found" >&6; }
8073             as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5
8074           fi
8075           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8076 $as_echo "$tool_specified" >&6; }
8077         fi
8078       fi
8079     fi
8080 
8081   fi
8082 
8083 
8084 
8085   if test "x$FILE" = x; then
8086     as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5
8087   fi
8088 
8089 
8090 
8091 
8092 
8093   # Publish this variable in the help.
8094 
8095 
8096   if [ -z "${FIND+x}" ]; then
8097     # The variable is not set by user, try to locate tool using the code snippet
8098     for ac_prog in find
8099 do
8100   # Extract the first word of "$ac_prog", so it can be a program name with args.
8101 set dummy $ac_prog; ac_word=$2
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8103 $as_echo_n "checking for $ac_word... " >&6; }
8104 if ${ac_cv_path_FIND+:} false; then :
8105   $as_echo_n "(cached) " >&6
8106 else
8107   case $FIND in
8108   [\\/]* | ?:[\\/]*)
8109   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
8110   ;;
8111   *)
8112   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8113 for as_dir in $PATH
8114 do
8115   IFS=$as_save_IFS
8116   test -z "$as_dir" && as_dir=.
8117     for ac_exec_ext in '' $ac_executable_extensions; do
8118   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8119     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
8120     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8121     break 2
8122   fi
8123 done
8124   done
8125 IFS=$as_save_IFS
8126 
8127   ;;
8128 esac
8129 fi
8130 FIND=$ac_cv_path_FIND
8131 if test -n "$FIND"; then
8132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
8133 $as_echo "$FIND" >&6; }
8134 else
8135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8136 $as_echo "no" >&6; }
8137 fi
8138 
8139 
8140   test -n "$FIND" && break
8141 done
8142 
8143   else
8144     # The variable is set, but is it from the command line or the environment?
8145 
8146     # Try to remove the string !FIND! from our list.
8147     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/}
8148     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8149       # If it failed, the variable was not from the command line. Ignore it,
8150       # but warn the user (except for BASH, which is always set by the calling BASH).
8151       if test "xFIND" != xBASH; then
8152         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5
8153 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;}
8154       fi
8155       # Try to locate tool using the code snippet
8156       for ac_prog in find
8157 do
8158   # Extract the first word of "$ac_prog", so it can be a program name with args.
8159 set dummy $ac_prog; ac_word=$2
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8161 $as_echo_n "checking for $ac_word... " >&6; }
8162 if ${ac_cv_path_FIND+:} false; then :
8163   $as_echo_n "(cached) " >&6
8164 else
8165   case $FIND in
8166   [\\/]* | ?:[\\/]*)
8167   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
8168   ;;
8169   *)
8170   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8171 for as_dir in $PATH
8172 do
8173   IFS=$as_save_IFS
8174   test -z "$as_dir" && as_dir=.
8175     for ac_exec_ext in '' $ac_executable_extensions; do
8176   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8177     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
8178     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8179     break 2
8180   fi
8181 done
8182   done
8183 IFS=$as_save_IFS
8184 
8185   ;;
8186 esac
8187 fi
8188 FIND=$ac_cv_path_FIND
8189 if test -n "$FIND"; then
8190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
8191 $as_echo "$FIND" >&6; }
8192 else
8193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8194 $as_echo "no" >&6; }
8195 fi
8196 
8197 
8198   test -n "$FIND" && break
8199 done
8200 
8201     else
8202       # If it succeeded, then it was overridden by the user. We will use it
8203       # for the tool.
8204 
8205       # First remove it from the list of overridden variables, so we can test
8206       # for unknown variables in the end.
8207       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8208 
8209       # Check if we try to supply an empty value
8210       if test "x$FIND" = x; then
8211         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FIND= (no value)" >&5
8212 $as_echo "$as_me: Setting user supplied tool FIND= (no value)" >&6;}
8213         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5
8214 $as_echo_n "checking for FIND... " >&6; }
8215         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8216 $as_echo "disabled" >&6; }
8217       else
8218         # Check if the provided tool contains a complete path.
8219         tool_specified="$FIND"
8220         tool_basename="${tool_specified##*/}"
8221         if test "x$tool_basename" = "x$tool_specified"; then
8222           # A command without a complete path is provided, search $PATH.
8223           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5
8224 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;}
8225           # Extract the first word of "$tool_basename", so it can be a program name with args.
8226 set dummy $tool_basename; ac_word=$2
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8228 $as_echo_n "checking for $ac_word... " >&6; }
8229 if ${ac_cv_path_FIND+:} false; then :
8230   $as_echo_n "(cached) " >&6
8231 else
8232   case $FIND in
8233   [\\/]* | ?:[\\/]*)
8234   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
8235   ;;
8236   *)
8237   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8238 for as_dir in $PATH
8239 do
8240   IFS=$as_save_IFS
8241   test -z "$as_dir" && as_dir=.
8242     for ac_exec_ext in '' $ac_executable_extensions; do
8243   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8244     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
8245     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8246     break 2
8247   fi
8248 done
8249   done
8250 IFS=$as_save_IFS
8251 
8252   ;;
8253 esac
8254 fi
8255 FIND=$ac_cv_path_FIND
8256 if test -n "$FIND"; then
8257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
8258 $as_echo "$FIND" >&6; }
8259 else
8260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8261 $as_echo "no" >&6; }
8262 fi
8263 
8264 
8265           if test "x$FIND" = x; then
8266             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8267           fi
8268         else
8269           # Otherwise we believe it is a complete path. Use it as it is.
8270           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5
8271 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;}
8272           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5
8273 $as_echo_n "checking for FIND... " >&6; }
8274           if test ! -x "$tool_specified"; then
8275             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8276 $as_echo "not found" >&6; }
8277             as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5
8278           fi
8279           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8280 $as_echo "$tool_specified" >&6; }
8281         fi
8282       fi
8283     fi
8284 
8285   fi
8286 
8287 
8288 
8289   if test "x$FIND" = x; then
8290     as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5
8291   fi
8292 
8293 
8294 
8295 
8296 
8297   # Publish this variable in the help.
8298 
8299 
8300   if [ -z "${HEAD+x}" ]; then
8301     # The variable is not set by user, try to locate tool using the code snippet
8302     for ac_prog in head
8303 do
8304   # Extract the first word of "$ac_prog", so it can be a program name with args.
8305 set dummy $ac_prog; ac_word=$2
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8307 $as_echo_n "checking for $ac_word... " >&6; }
8308 if ${ac_cv_path_HEAD+:} false; then :
8309   $as_echo_n "(cached) " >&6
8310 else
8311   case $HEAD in
8312   [\\/]* | ?:[\\/]*)
8313   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
8314   ;;
8315   *)
8316   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8317 for as_dir in $PATH
8318 do
8319   IFS=$as_save_IFS
8320   test -z "$as_dir" && as_dir=.
8321     for ac_exec_ext in '' $ac_executable_extensions; do
8322   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8323     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
8324     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8325     break 2
8326   fi
8327 done
8328   done
8329 IFS=$as_save_IFS
8330 
8331   ;;
8332 esac
8333 fi
8334 HEAD=$ac_cv_path_HEAD
8335 if test -n "$HEAD"; then
8336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
8337 $as_echo "$HEAD" >&6; }
8338 else
8339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8340 $as_echo "no" >&6; }
8341 fi
8342 
8343 
8344   test -n "$HEAD" && break
8345 done
8346 
8347   else
8348     # The variable is set, but is it from the command line or the environment?
8349 
8350     # Try to remove the string !HEAD! from our list.
8351     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/}
8352     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8353       # If it failed, the variable was not from the command line. Ignore it,
8354       # but warn the user (except for BASH, which is always set by the calling BASH).
8355       if test "xHEAD" != xBASH; then
8356         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5
8357 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;}
8358       fi
8359       # Try to locate tool using the code snippet
8360       for ac_prog in head
8361 do
8362   # Extract the first word of "$ac_prog", so it can be a program name with args.
8363 set dummy $ac_prog; ac_word=$2
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8365 $as_echo_n "checking for $ac_word... " >&6; }
8366 if ${ac_cv_path_HEAD+:} false; then :
8367   $as_echo_n "(cached) " >&6
8368 else
8369   case $HEAD in
8370   [\\/]* | ?:[\\/]*)
8371   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
8372   ;;
8373   *)
8374   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8375 for as_dir in $PATH
8376 do
8377   IFS=$as_save_IFS
8378   test -z "$as_dir" && as_dir=.
8379     for ac_exec_ext in '' $ac_executable_extensions; do
8380   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8381     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
8382     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8383     break 2
8384   fi
8385 done
8386   done
8387 IFS=$as_save_IFS
8388 
8389   ;;
8390 esac
8391 fi
8392 HEAD=$ac_cv_path_HEAD
8393 if test -n "$HEAD"; then
8394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
8395 $as_echo "$HEAD" >&6; }
8396 else
8397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8398 $as_echo "no" >&6; }
8399 fi
8400 
8401 
8402   test -n "$HEAD" && break
8403 done
8404 
8405     else
8406       # If it succeeded, then it was overridden by the user. We will use it
8407       # for the tool.
8408 
8409       # First remove it from the list of overridden variables, so we can test
8410       # for unknown variables in the end.
8411       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8412 
8413       # Check if we try to supply an empty value
8414       if test "x$HEAD" = x; then
8415         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool HEAD= (no value)" >&5
8416 $as_echo "$as_me: Setting user supplied tool HEAD= (no value)" >&6;}
8417         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5
8418 $as_echo_n "checking for HEAD... " >&6; }
8419         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8420 $as_echo "disabled" >&6; }
8421       else
8422         # Check if the provided tool contains a complete path.
8423         tool_specified="$HEAD"
8424         tool_basename="${tool_specified##*/}"
8425         if test "x$tool_basename" = "x$tool_specified"; then
8426           # A command without a complete path is provided, search $PATH.
8427           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5
8428 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;}
8429           # Extract the first word of "$tool_basename", so it can be a program name with args.
8430 set dummy $tool_basename; ac_word=$2
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8432 $as_echo_n "checking for $ac_word... " >&6; }
8433 if ${ac_cv_path_HEAD+:} false; then :
8434   $as_echo_n "(cached) " >&6
8435 else
8436   case $HEAD in
8437   [\\/]* | ?:[\\/]*)
8438   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
8439   ;;
8440   *)
8441   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8442 for as_dir in $PATH
8443 do
8444   IFS=$as_save_IFS
8445   test -z "$as_dir" && as_dir=.
8446     for ac_exec_ext in '' $ac_executable_extensions; do
8447   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8448     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
8449     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8450     break 2
8451   fi
8452 done
8453   done
8454 IFS=$as_save_IFS
8455 
8456   ;;
8457 esac
8458 fi
8459 HEAD=$ac_cv_path_HEAD
8460 if test -n "$HEAD"; then
8461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
8462 $as_echo "$HEAD" >&6; }
8463 else
8464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8465 $as_echo "no" >&6; }
8466 fi
8467 
8468 
8469           if test "x$HEAD" = x; then
8470             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8471           fi
8472         else
8473           # Otherwise we believe it is a complete path. Use it as it is.
8474           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5
8475 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;}
8476           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5
8477 $as_echo_n "checking for HEAD... " >&6; }
8478           if test ! -x "$tool_specified"; then
8479             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8480 $as_echo "not found" >&6; }
8481             as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5
8482           fi
8483           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8484 $as_echo "$tool_specified" >&6; }
8485         fi
8486       fi
8487     fi
8488 
8489   fi
8490 
8491 
8492 
8493   if test "x$HEAD" = x; then
8494     as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5
8495   fi
8496 
8497 
8498 
8499 
8500 
8501   # Publish this variable in the help.
8502 
8503 
8504   if [ -z "${GUNZIP+x}" ]; then
8505     # The variable is not set by user, try to locate tool using the code snippet
8506     for ac_prog in gunzip
8507 do
8508   # Extract the first word of "$ac_prog", so it can be a program name with args.
8509 set dummy $ac_prog; ac_word=$2
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8511 $as_echo_n "checking for $ac_word... " >&6; }
8512 if ${ac_cv_path_GUNZIP+:} false; then :
8513   $as_echo_n "(cached) " >&6
8514 else
8515   case $GUNZIP in
8516   [\\/]* | ?:[\\/]*)
8517   ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path.
8518   ;;
8519   *)
8520   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8521 for as_dir in $PATH
8522 do
8523   IFS=$as_save_IFS
8524   test -z "$as_dir" && as_dir=.
8525     for ac_exec_ext in '' $ac_executable_extensions; do
8526   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8527     ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext"
8528     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8529     break 2
8530   fi
8531 done
8532   done
8533 IFS=$as_save_IFS
8534 
8535   ;;
8536 esac
8537 fi
8538 GUNZIP=$ac_cv_path_GUNZIP
8539 if test -n "$GUNZIP"; then
8540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5
8541 $as_echo "$GUNZIP" >&6; }
8542 else
8543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8544 $as_echo "no" >&6; }
8545 fi
8546 
8547 
8548   test -n "$GUNZIP" && break
8549 done
8550 
8551   else
8552     # The variable is set, but is it from the command line or the environment?
8553 
8554     # Try to remove the string !GUNZIP! from our list.
8555     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GUNZIP!/}
8556     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8557       # If it failed, the variable was not from the command line. Ignore it,
8558       # but warn the user (except for BASH, which is always set by the calling BASH).
8559       if test "xGUNZIP" != xBASH; then
8560         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GUNZIP from the environment. Use command line variables instead." >&5
8561 $as_echo "$as_me: WARNING: Ignoring value of GUNZIP from the environment. Use command line variables instead." >&2;}
8562       fi
8563       # Try to locate tool using the code snippet
8564       for ac_prog in gunzip
8565 do
8566   # Extract the first word of "$ac_prog", so it can be a program name with args.
8567 set dummy $ac_prog; ac_word=$2
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8569 $as_echo_n "checking for $ac_word... " >&6; }
8570 if ${ac_cv_path_GUNZIP+:} false; then :
8571   $as_echo_n "(cached) " >&6
8572 else
8573   case $GUNZIP in
8574   [\\/]* | ?:[\\/]*)
8575   ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path.
8576   ;;
8577   *)
8578   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8579 for as_dir in $PATH
8580 do
8581   IFS=$as_save_IFS
8582   test -z "$as_dir" && as_dir=.
8583     for ac_exec_ext in '' $ac_executable_extensions; do
8584   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8585     ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext"
8586     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8587     break 2
8588   fi
8589 done
8590   done
8591 IFS=$as_save_IFS
8592 
8593   ;;
8594 esac
8595 fi
8596 GUNZIP=$ac_cv_path_GUNZIP
8597 if test -n "$GUNZIP"; then
8598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5
8599 $as_echo "$GUNZIP" >&6; }
8600 else
8601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8602 $as_echo "no" >&6; }
8603 fi
8604 
8605 
8606   test -n "$GUNZIP" && break
8607 done
8608 
8609     else
8610       # If it succeeded, then it was overridden by the user. We will use it
8611       # for the tool.
8612 
8613       # First remove it from the list of overridden variables, so we can test
8614       # for unknown variables in the end.
8615       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8616 
8617       # Check if we try to supply an empty value
8618       if test "x$GUNZIP" = x; then
8619         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GUNZIP= (no value)" >&5
8620 $as_echo "$as_me: Setting user supplied tool GUNZIP= (no value)" >&6;}
8621         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUNZIP" >&5
8622 $as_echo_n "checking for GUNZIP... " >&6; }
8623         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8624 $as_echo "disabled" >&6; }
8625       else
8626         # Check if the provided tool contains a complete path.
8627         tool_specified="$GUNZIP"
8628         tool_basename="${tool_specified##*/}"
8629         if test "x$tool_basename" = "x$tool_specified"; then
8630           # A command without a complete path is provided, search $PATH.
8631           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GUNZIP=$tool_basename" >&5
8632 $as_echo "$as_me: Will search for user supplied tool GUNZIP=$tool_basename" >&6;}
8633           # Extract the first word of "$tool_basename", so it can be a program name with args.
8634 set dummy $tool_basename; ac_word=$2
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8636 $as_echo_n "checking for $ac_word... " >&6; }
8637 if ${ac_cv_path_GUNZIP+:} false; then :
8638   $as_echo_n "(cached) " >&6
8639 else
8640   case $GUNZIP in
8641   [\\/]* | ?:[\\/]*)
8642   ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path.
8643   ;;
8644   *)
8645   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8646 for as_dir in $PATH
8647 do
8648   IFS=$as_save_IFS
8649   test -z "$as_dir" && as_dir=.
8650     for ac_exec_ext in '' $ac_executable_extensions; do
8651   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8652     ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext"
8653     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8654     break 2
8655   fi
8656 done
8657   done
8658 IFS=$as_save_IFS
8659 
8660   ;;
8661 esac
8662 fi
8663 GUNZIP=$ac_cv_path_GUNZIP
8664 if test -n "$GUNZIP"; then
8665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5
8666 $as_echo "$GUNZIP" >&6; }
8667 else
8668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8669 $as_echo "no" >&6; }
8670 fi
8671 
8672 
8673           if test "x$GUNZIP" = x; then
8674             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8675           fi
8676         else
8677           # Otherwise we believe it is a complete path. Use it as it is.
8678           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GUNZIP=$tool_specified" >&5
8679 $as_echo "$as_me: Will use user supplied tool GUNZIP=$tool_specified" >&6;}
8680           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUNZIP" >&5
8681 $as_echo_n "checking for GUNZIP... " >&6; }
8682           if test ! -x "$tool_specified"; then
8683             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8684 $as_echo "not found" >&6; }
8685             as_fn_error $? "User supplied tool GUNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
8686           fi
8687           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8688 $as_echo "$tool_specified" >&6; }
8689         fi
8690       fi
8691     fi
8692 
8693   fi
8694 
8695 
8696 
8697   if test "x$GUNZIP" = x; then
8698     as_fn_error $? "Could not find required tool for GUNZIP" "$LINENO" 5
8699   fi
8700 
8701 
8702 
8703 
8704 
8705   # Publish this variable in the help.
8706 
8707 
8708   if [ -z "${GZIP+x}" ]; then
8709     # The variable is not set by user, try to locate tool using the code snippet
8710     for ac_prog in pigz gzip
8711 do
8712   # Extract the first word of "$ac_prog", so it can be a program name with args.
8713 set dummy $ac_prog; ac_word=$2
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8715 $as_echo_n "checking for $ac_word... " >&6; }
8716 if ${ac_cv_path_GZIP+:} false; then :
8717   $as_echo_n "(cached) " >&6
8718 else
8719   case $GZIP in
8720   [\\/]* | ?:[\\/]*)
8721   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8722   ;;
8723   *)
8724   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8725 for as_dir in $PATH
8726 do
8727   IFS=$as_save_IFS
8728   test -z "$as_dir" && as_dir=.
8729     for ac_exec_ext in '' $ac_executable_extensions; do
8730   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8731     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8732     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8733     break 2
8734   fi
8735 done
8736   done
8737 IFS=$as_save_IFS
8738 
8739   ;;
8740 esac
8741 fi
8742 GZIP=$ac_cv_path_GZIP
8743 if test -n "$GZIP"; then
8744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
8745 $as_echo "$GZIP" >&6; }
8746 else
8747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8748 $as_echo "no" >&6; }
8749 fi
8750 
8751 
8752   test -n "$GZIP" && break
8753 done
8754 
8755   else
8756     # The variable is set, but is it from the command line or the environment?
8757 
8758     # Try to remove the string !GZIP! from our list.
8759     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GZIP!/}
8760     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8761       # If it failed, the variable was not from the command line. Ignore it,
8762       # but warn the user (except for BASH, which is always set by the calling BASH).
8763       if test "xGZIP" != xBASH; then
8764         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GZIP from the environment. Use command line variables instead." >&5
8765 $as_echo "$as_me: WARNING: Ignoring value of GZIP from the environment. Use command line variables instead." >&2;}
8766       fi
8767       # Try to locate tool using the code snippet
8768       for ac_prog in pigz gzip
8769 do
8770   # Extract the first word of "$ac_prog", so it can be a program name with args.
8771 set dummy $ac_prog; ac_word=$2
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8773 $as_echo_n "checking for $ac_word... " >&6; }
8774 if ${ac_cv_path_GZIP+:} false; then :
8775   $as_echo_n "(cached) " >&6
8776 else
8777   case $GZIP in
8778   [\\/]* | ?:[\\/]*)
8779   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8780   ;;
8781   *)
8782   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8783 for as_dir in $PATH
8784 do
8785   IFS=$as_save_IFS
8786   test -z "$as_dir" && as_dir=.
8787     for ac_exec_ext in '' $ac_executable_extensions; do
8788   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8789     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8790     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8791     break 2
8792   fi
8793 done
8794   done
8795 IFS=$as_save_IFS
8796 
8797   ;;
8798 esac
8799 fi
8800 GZIP=$ac_cv_path_GZIP
8801 if test -n "$GZIP"; then
8802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
8803 $as_echo "$GZIP" >&6; }
8804 else
8805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8806 $as_echo "no" >&6; }
8807 fi
8808 
8809 
8810   test -n "$GZIP" && break
8811 done
8812 
8813     else
8814       # If it succeeded, then it was overridden by the user. We will use it
8815       # for the tool.
8816 
8817       # First remove it from the list of overridden variables, so we can test
8818       # for unknown variables in the end.
8819       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8820 
8821       # Check if we try to supply an empty value
8822       if test "x$GZIP" = x; then
8823         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GZIP= (no value)" >&5
8824 $as_echo "$as_me: Setting user supplied tool GZIP= (no value)" >&6;}
8825         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GZIP" >&5
8826 $as_echo_n "checking for GZIP... " >&6; }
8827         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8828 $as_echo "disabled" >&6; }
8829       else
8830         # Check if the provided tool contains a complete path.
8831         tool_specified="$GZIP"
8832         tool_basename="${tool_specified##*/}"
8833         if test "x$tool_basename" = "x$tool_specified"; then
8834           # A command without a complete path is provided, search $PATH.
8835           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GZIP=$tool_basename" >&5
8836 $as_echo "$as_me: Will search for user supplied tool GZIP=$tool_basename" >&6;}
8837           # Extract the first word of "$tool_basename", so it can be a program name with args.
8838 set dummy $tool_basename; ac_word=$2
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8840 $as_echo_n "checking for $ac_word... " >&6; }
8841 if ${ac_cv_path_GZIP+:} false; then :
8842   $as_echo_n "(cached) " >&6
8843 else
8844   case $GZIP in
8845   [\\/]* | ?:[\\/]*)
8846   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8847   ;;
8848   *)
8849   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8850 for as_dir in $PATH
8851 do
8852   IFS=$as_save_IFS
8853   test -z "$as_dir" && as_dir=.
8854     for ac_exec_ext in '' $ac_executable_extensions; do
8855   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8856     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8857     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8858     break 2
8859   fi
8860 done
8861   done
8862 IFS=$as_save_IFS
8863 
8864   ;;
8865 esac
8866 fi
8867 GZIP=$ac_cv_path_GZIP
8868 if test -n "$GZIP"; then
8869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
8870 $as_echo "$GZIP" >&6; }
8871 else
8872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8873 $as_echo "no" >&6; }
8874 fi
8875 
8876 
8877           if test "x$GZIP" = x; then
8878             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8879           fi
8880         else
8881           # Otherwise we believe it is a complete path. Use it as it is.
8882           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GZIP=$tool_specified" >&5
8883 $as_echo "$as_me: Will use user supplied tool GZIP=$tool_specified" >&6;}
8884           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GZIP" >&5
8885 $as_echo_n "checking for GZIP... " >&6; }
8886           if test ! -x "$tool_specified"; then
8887             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8888 $as_echo "not found" >&6; }
8889             as_fn_error $? "User supplied tool GZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
8890           fi
8891           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8892 $as_echo "$tool_specified" >&6; }
8893         fi
8894       fi
8895     fi
8896 
8897   fi
8898 
8899 
8900 
8901   if test "x$GZIP" = x; then
8902     as_fn_error $? "Could not find required tool for GZIP" "$LINENO" 5
8903   fi
8904 
8905 
8906 
8907 
8908 
8909   # Publish this variable in the help.
8910 
8911 
8912   if [ -z "${LN+x}" ]; then
8913     # The variable is not set by user, try to locate tool using the code snippet
8914     for ac_prog in ln
8915 do
8916   # Extract the first word of "$ac_prog", so it can be a program name with args.
8917 set dummy $ac_prog; ac_word=$2
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8919 $as_echo_n "checking for $ac_word... " >&6; }
8920 if ${ac_cv_path_LN+:} false; then :
8921   $as_echo_n "(cached) " >&6
8922 else
8923   case $LN in
8924   [\\/]* | ?:[\\/]*)
8925   ac_cv_path_LN="$LN" # Let the user override the test with a path.
8926   ;;
8927   *)
8928   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8929 for as_dir in $PATH
8930 do
8931   IFS=$as_save_IFS
8932   test -z "$as_dir" && as_dir=.
8933     for ac_exec_ext in '' $ac_executable_extensions; do
8934   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8935     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
8936     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8937     break 2
8938   fi
8939 done
8940   done
8941 IFS=$as_save_IFS
8942 
8943   ;;
8944 esac
8945 fi
8946 LN=$ac_cv_path_LN
8947 if test -n "$LN"; then
8948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
8949 $as_echo "$LN" >&6; }
8950 else
8951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8952 $as_echo "no" >&6; }
8953 fi
8954 
8955 
8956   test -n "$LN" && break
8957 done
8958 
8959   else
8960     # The variable is set, but is it from the command line or the environment?
8961 
8962     # Try to remove the string !LN! from our list.
8963     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/}
8964     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8965       # If it failed, the variable was not from the command line. Ignore it,
8966       # but warn the user (except for BASH, which is always set by the calling BASH).
8967       if test "xLN" != xBASH; then
8968         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5
8969 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;}
8970       fi
8971       # Try to locate tool using the code snippet
8972       for ac_prog in ln
8973 do
8974   # Extract the first word of "$ac_prog", so it can be a program name with args.
8975 set dummy $ac_prog; ac_word=$2
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8977 $as_echo_n "checking for $ac_word... " >&6; }
8978 if ${ac_cv_path_LN+:} false; then :
8979   $as_echo_n "(cached) " >&6
8980 else
8981   case $LN in
8982   [\\/]* | ?:[\\/]*)
8983   ac_cv_path_LN="$LN" # Let the user override the test with a path.
8984   ;;
8985   *)
8986   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8987 for as_dir in $PATH
8988 do
8989   IFS=$as_save_IFS
8990   test -z "$as_dir" && as_dir=.
8991     for ac_exec_ext in '' $ac_executable_extensions; do
8992   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8993     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
8994     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8995     break 2
8996   fi
8997 done
8998   done
8999 IFS=$as_save_IFS
9000 
9001   ;;
9002 esac
9003 fi
9004 LN=$ac_cv_path_LN
9005 if test -n "$LN"; then
9006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
9007 $as_echo "$LN" >&6; }
9008 else
9009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9010 $as_echo "no" >&6; }
9011 fi
9012 
9013 
9014   test -n "$LN" && break
9015 done
9016 
9017     else
9018       # If it succeeded, then it was overridden by the user. We will use it
9019       # for the tool.
9020 
9021       # First remove it from the list of overridden variables, so we can test
9022       # for unknown variables in the end.
9023       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9024 
9025       # Check if we try to supply an empty value
9026       if test "x$LN" = x; then
9027         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LN= (no value)" >&5
9028 $as_echo "$as_me: Setting user supplied tool LN= (no value)" >&6;}
9029         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5
9030 $as_echo_n "checking for LN... " >&6; }
9031         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9032 $as_echo "disabled" >&6; }
9033       else
9034         # Check if the provided tool contains a complete path.
9035         tool_specified="$LN"
9036         tool_basename="${tool_specified##*/}"
9037         if test "x$tool_basename" = "x$tool_specified"; then
9038           # A command without a complete path is provided, search $PATH.
9039           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5
9040 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;}
9041           # Extract the first word of "$tool_basename", so it can be a program name with args.
9042 set dummy $tool_basename; ac_word=$2
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9044 $as_echo_n "checking for $ac_word... " >&6; }
9045 if ${ac_cv_path_LN+:} false; then :
9046   $as_echo_n "(cached) " >&6
9047 else
9048   case $LN in
9049   [\\/]* | ?:[\\/]*)
9050   ac_cv_path_LN="$LN" # Let the user override the test with a path.
9051   ;;
9052   *)
9053   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9054 for as_dir in $PATH
9055 do
9056   IFS=$as_save_IFS
9057   test -z "$as_dir" && as_dir=.
9058     for ac_exec_ext in '' $ac_executable_extensions; do
9059   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9060     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
9061     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9062     break 2
9063   fi
9064 done
9065   done
9066 IFS=$as_save_IFS
9067 
9068   ;;
9069 esac
9070 fi
9071 LN=$ac_cv_path_LN
9072 if test -n "$LN"; then
9073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
9074 $as_echo "$LN" >&6; }
9075 else
9076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9077 $as_echo "no" >&6; }
9078 fi
9079 
9080 
9081           if test "x$LN" = x; then
9082             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9083           fi
9084         else
9085           # Otherwise we believe it is a complete path. Use it as it is.
9086           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5
9087 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;}
9088           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5
9089 $as_echo_n "checking for LN... " >&6; }
9090           if test ! -x "$tool_specified"; then
9091             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9092 $as_echo "not found" >&6; }
9093             as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5
9094           fi
9095           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9096 $as_echo "$tool_specified" >&6; }
9097         fi
9098       fi
9099     fi
9100 
9101   fi
9102 
9103 
9104 
9105   if test "x$LN" = x; then
9106     as_fn_error $? "Could not find required tool for LN" "$LINENO" 5
9107   fi
9108 
9109 
9110 
9111 
9112 
9113   # Publish this variable in the help.
9114 
9115 
9116   if [ -z "${LS+x}" ]; then
9117     # The variable is not set by user, try to locate tool using the code snippet
9118     for ac_prog in ls
9119 do
9120   # Extract the first word of "$ac_prog", so it can be a program name with args.
9121 set dummy $ac_prog; ac_word=$2
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9123 $as_echo_n "checking for $ac_word... " >&6; }
9124 if ${ac_cv_path_LS+:} false; then :
9125   $as_echo_n "(cached) " >&6
9126 else
9127   case $LS in
9128   [\\/]* | ?:[\\/]*)
9129   ac_cv_path_LS="$LS" # Let the user override the test with a path.
9130   ;;
9131   *)
9132   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9133 for as_dir in $PATH
9134 do
9135   IFS=$as_save_IFS
9136   test -z "$as_dir" && as_dir=.
9137     for ac_exec_ext in '' $ac_executable_extensions; do
9138   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9139     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
9140     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9141     break 2
9142   fi
9143 done
9144   done
9145 IFS=$as_save_IFS
9146 
9147   ;;
9148 esac
9149 fi
9150 LS=$ac_cv_path_LS
9151 if test -n "$LS"; then
9152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
9153 $as_echo "$LS" >&6; }
9154 else
9155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9156 $as_echo "no" >&6; }
9157 fi
9158 
9159 
9160   test -n "$LS" && break
9161 done
9162 
9163   else
9164     # The variable is set, but is it from the command line or the environment?
9165 
9166     # Try to remove the string !LS! from our list.
9167     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/}
9168     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9169       # If it failed, the variable was not from the command line. Ignore it,
9170       # but warn the user (except for BASH, which is always set by the calling BASH).
9171       if test "xLS" != xBASH; then
9172         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5
9173 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;}
9174       fi
9175       # Try to locate tool using the code snippet
9176       for ac_prog in ls
9177 do
9178   # Extract the first word of "$ac_prog", so it can be a program name with args.
9179 set dummy $ac_prog; ac_word=$2
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9181 $as_echo_n "checking for $ac_word... " >&6; }
9182 if ${ac_cv_path_LS+:} false; then :
9183   $as_echo_n "(cached) " >&6
9184 else
9185   case $LS in
9186   [\\/]* | ?:[\\/]*)
9187   ac_cv_path_LS="$LS" # Let the user override the test with a path.
9188   ;;
9189   *)
9190   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9191 for as_dir in $PATH
9192 do
9193   IFS=$as_save_IFS
9194   test -z "$as_dir" && as_dir=.
9195     for ac_exec_ext in '' $ac_executable_extensions; do
9196   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9197     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
9198     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9199     break 2
9200   fi
9201 done
9202   done
9203 IFS=$as_save_IFS
9204 
9205   ;;
9206 esac
9207 fi
9208 LS=$ac_cv_path_LS
9209 if test -n "$LS"; then
9210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
9211 $as_echo "$LS" >&6; }
9212 else
9213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9214 $as_echo "no" >&6; }
9215 fi
9216 
9217 
9218   test -n "$LS" && break
9219 done
9220 
9221     else
9222       # If it succeeded, then it was overridden by the user. We will use it
9223       # for the tool.
9224 
9225       # First remove it from the list of overridden variables, so we can test
9226       # for unknown variables in the end.
9227       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9228 
9229       # Check if we try to supply an empty value
9230       if test "x$LS" = x; then
9231         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LS= (no value)" >&5
9232 $as_echo "$as_me: Setting user supplied tool LS= (no value)" >&6;}
9233         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5
9234 $as_echo_n "checking for LS... " >&6; }
9235         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9236 $as_echo "disabled" >&6; }
9237       else
9238         # Check if the provided tool contains a complete path.
9239         tool_specified="$LS"
9240         tool_basename="${tool_specified##*/}"
9241         if test "x$tool_basename" = "x$tool_specified"; then
9242           # A command without a complete path is provided, search $PATH.
9243           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5
9244 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;}
9245           # Extract the first word of "$tool_basename", so it can be a program name with args.
9246 set dummy $tool_basename; ac_word=$2
9247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9248 $as_echo_n "checking for $ac_word... " >&6; }
9249 if ${ac_cv_path_LS+:} false; then :
9250   $as_echo_n "(cached) " >&6
9251 else
9252   case $LS in
9253   [\\/]* | ?:[\\/]*)
9254   ac_cv_path_LS="$LS" # Let the user override the test with a path.
9255   ;;
9256   *)
9257   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9258 for as_dir in $PATH
9259 do
9260   IFS=$as_save_IFS
9261   test -z "$as_dir" && as_dir=.
9262     for ac_exec_ext in '' $ac_executable_extensions; do
9263   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9264     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
9265     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9266     break 2
9267   fi
9268 done
9269   done
9270 IFS=$as_save_IFS
9271 
9272   ;;
9273 esac
9274 fi
9275 LS=$ac_cv_path_LS
9276 if test -n "$LS"; then
9277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
9278 $as_echo "$LS" >&6; }
9279 else
9280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9281 $as_echo "no" >&6; }
9282 fi
9283 
9284 
9285           if test "x$LS" = x; then
9286             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9287           fi
9288         else
9289           # Otherwise we believe it is a complete path. Use it as it is.
9290           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5
9291 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;}
9292           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5
9293 $as_echo_n "checking for LS... " >&6; }
9294           if test ! -x "$tool_specified"; then
9295             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9296 $as_echo "not found" >&6; }
9297             as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5
9298           fi
9299           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9300 $as_echo "$tool_specified" >&6; }
9301         fi
9302       fi
9303     fi
9304 
9305   fi
9306 
9307 
9308 
9309   if test "x$LS" = x; then
9310     as_fn_error $? "Could not find required tool for LS" "$LINENO" 5
9311   fi
9312 
9313 
9314 
9315 
9316 
9317   # Publish this variable in the help.
9318 
9319 
9320   if [ -z "${MKDIR+x}" ]; then
9321     # The variable is not set by user, try to locate tool using the code snippet
9322     for ac_prog in mkdir
9323 do
9324   # Extract the first word of "$ac_prog", so it can be a program name with args.
9325 set dummy $ac_prog; ac_word=$2
9326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9327 $as_echo_n "checking for $ac_word... " >&6; }
9328 if ${ac_cv_path_MKDIR+:} false; then :
9329   $as_echo_n "(cached) " >&6
9330 else
9331   case $MKDIR in
9332   [\\/]* | ?:[\\/]*)
9333   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
9334   ;;
9335   *)
9336   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9337 for as_dir in $PATH
9338 do
9339   IFS=$as_save_IFS
9340   test -z "$as_dir" && as_dir=.
9341     for ac_exec_ext in '' $ac_executable_extensions; do
9342   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9343     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
9344     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9345     break 2
9346   fi
9347 done
9348   done
9349 IFS=$as_save_IFS
9350 
9351   ;;
9352 esac
9353 fi
9354 MKDIR=$ac_cv_path_MKDIR
9355 if test -n "$MKDIR"; then
9356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
9357 $as_echo "$MKDIR" >&6; }
9358 else
9359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9360 $as_echo "no" >&6; }
9361 fi
9362 
9363 
9364   test -n "$MKDIR" && break
9365 done
9366 
9367   else
9368     # The variable is set, but is it from the command line or the environment?
9369 
9370     # Try to remove the string !MKDIR! from our list.
9371     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/}
9372     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9373       # If it failed, the variable was not from the command line. Ignore it,
9374       # but warn the user (except for BASH, which is always set by the calling BASH).
9375       if test "xMKDIR" != xBASH; then
9376         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5
9377 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;}
9378       fi
9379       # Try to locate tool using the code snippet
9380       for ac_prog in mkdir
9381 do
9382   # Extract the first word of "$ac_prog", so it can be a program name with args.
9383 set dummy $ac_prog; ac_word=$2
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9385 $as_echo_n "checking for $ac_word... " >&6; }
9386 if ${ac_cv_path_MKDIR+:} false; then :
9387   $as_echo_n "(cached) " >&6
9388 else
9389   case $MKDIR in
9390   [\\/]* | ?:[\\/]*)
9391   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
9392   ;;
9393   *)
9394   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9395 for as_dir in $PATH
9396 do
9397   IFS=$as_save_IFS
9398   test -z "$as_dir" && as_dir=.
9399     for ac_exec_ext in '' $ac_executable_extensions; do
9400   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9401     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
9402     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9403     break 2
9404   fi
9405 done
9406   done
9407 IFS=$as_save_IFS
9408 
9409   ;;
9410 esac
9411 fi
9412 MKDIR=$ac_cv_path_MKDIR
9413 if test -n "$MKDIR"; then
9414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
9415 $as_echo "$MKDIR" >&6; }
9416 else
9417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9418 $as_echo "no" >&6; }
9419 fi
9420 
9421 
9422   test -n "$MKDIR" && break
9423 done
9424 
9425     else
9426       # If it succeeded, then it was overridden by the user. We will use it
9427       # for the tool.
9428 
9429       # First remove it from the list of overridden variables, so we can test
9430       # for unknown variables in the end.
9431       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9432 
9433       # Check if we try to supply an empty value
9434       if test "x$MKDIR" = x; then
9435         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MKDIR= (no value)" >&5
9436 $as_echo "$as_me: Setting user supplied tool MKDIR= (no value)" >&6;}
9437         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5
9438 $as_echo_n "checking for MKDIR... " >&6; }
9439         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9440 $as_echo "disabled" >&6; }
9441       else
9442         # Check if the provided tool contains a complete path.
9443         tool_specified="$MKDIR"
9444         tool_basename="${tool_specified##*/}"
9445         if test "x$tool_basename" = "x$tool_specified"; then
9446           # A command without a complete path is provided, search $PATH.
9447           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5
9448 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;}
9449           # Extract the first word of "$tool_basename", so it can be a program name with args.
9450 set dummy $tool_basename; ac_word=$2
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9452 $as_echo_n "checking for $ac_word... " >&6; }
9453 if ${ac_cv_path_MKDIR+:} false; then :
9454   $as_echo_n "(cached) " >&6
9455 else
9456   case $MKDIR in
9457   [\\/]* | ?:[\\/]*)
9458   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
9459   ;;
9460   *)
9461   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9462 for as_dir in $PATH
9463 do
9464   IFS=$as_save_IFS
9465   test -z "$as_dir" && as_dir=.
9466     for ac_exec_ext in '' $ac_executable_extensions; do
9467   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9468     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
9469     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9470     break 2
9471   fi
9472 done
9473   done
9474 IFS=$as_save_IFS
9475 
9476   ;;
9477 esac
9478 fi
9479 MKDIR=$ac_cv_path_MKDIR
9480 if test -n "$MKDIR"; then
9481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
9482 $as_echo "$MKDIR" >&6; }
9483 else
9484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9485 $as_echo "no" >&6; }
9486 fi
9487 
9488 
9489           if test "x$MKDIR" = x; then
9490             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9491           fi
9492         else
9493           # Otherwise we believe it is a complete path. Use it as it is.
9494           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5
9495 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;}
9496           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5
9497 $as_echo_n "checking for MKDIR... " >&6; }
9498           if test ! -x "$tool_specified"; then
9499             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9500 $as_echo "not found" >&6; }
9501             as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5
9502           fi
9503           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9504 $as_echo "$tool_specified" >&6; }
9505         fi
9506       fi
9507     fi
9508 
9509   fi
9510 
9511 
9512 
9513   if test "x$MKDIR" = x; then
9514     as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5
9515   fi
9516 
9517 
9518 
9519 
9520 
9521   # Publish this variable in the help.
9522 
9523 
9524   if [ -z "${MKTEMP+x}" ]; then
9525     # The variable is not set by user, try to locate tool using the code snippet
9526     for ac_prog in mktemp
9527 do
9528   # Extract the first word of "$ac_prog", so it can be a program name with args.
9529 set dummy $ac_prog; ac_word=$2
9530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9531 $as_echo_n "checking for $ac_word... " >&6; }
9532 if ${ac_cv_path_MKTEMP+:} false; then :
9533   $as_echo_n "(cached) " >&6
9534 else
9535   case $MKTEMP in
9536   [\\/]* | ?:[\\/]*)
9537   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
9538   ;;
9539   *)
9540   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9541 for as_dir in $PATH
9542 do
9543   IFS=$as_save_IFS
9544   test -z "$as_dir" && as_dir=.
9545     for ac_exec_ext in '' $ac_executable_extensions; do
9546   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9547     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
9548     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9549     break 2
9550   fi
9551 done
9552   done
9553 IFS=$as_save_IFS
9554 
9555   ;;
9556 esac
9557 fi
9558 MKTEMP=$ac_cv_path_MKTEMP
9559 if test -n "$MKTEMP"; then
9560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
9561 $as_echo "$MKTEMP" >&6; }
9562 else
9563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9564 $as_echo "no" >&6; }
9565 fi
9566 
9567 
9568   test -n "$MKTEMP" && break
9569 done
9570 
9571   else
9572     # The variable is set, but is it from the command line or the environment?
9573 
9574     # Try to remove the string !MKTEMP! from our list.
9575     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/}
9576     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9577       # If it failed, the variable was not from the command line. Ignore it,
9578       # but warn the user (except for BASH, which is always set by the calling BASH).
9579       if test "xMKTEMP" != xBASH; then
9580         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5
9581 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;}
9582       fi
9583       # Try to locate tool using the code snippet
9584       for ac_prog in mktemp
9585 do
9586   # Extract the first word of "$ac_prog", so it can be a program name with args.
9587 set dummy $ac_prog; ac_word=$2
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9589 $as_echo_n "checking for $ac_word... " >&6; }
9590 if ${ac_cv_path_MKTEMP+:} false; then :
9591   $as_echo_n "(cached) " >&6
9592 else
9593   case $MKTEMP in
9594   [\\/]* | ?:[\\/]*)
9595   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
9596   ;;
9597   *)
9598   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9599 for as_dir in $PATH
9600 do
9601   IFS=$as_save_IFS
9602   test -z "$as_dir" && as_dir=.
9603     for ac_exec_ext in '' $ac_executable_extensions; do
9604   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9605     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
9606     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9607     break 2
9608   fi
9609 done
9610   done
9611 IFS=$as_save_IFS
9612 
9613   ;;
9614 esac
9615 fi
9616 MKTEMP=$ac_cv_path_MKTEMP
9617 if test -n "$MKTEMP"; then
9618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
9619 $as_echo "$MKTEMP" >&6; }
9620 else
9621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9622 $as_echo "no" >&6; }
9623 fi
9624 
9625 
9626   test -n "$MKTEMP" && break
9627 done
9628 
9629     else
9630       # If it succeeded, then it was overridden by the user. We will use it
9631       # for the tool.
9632 
9633       # First remove it from the list of overridden variables, so we can test
9634       # for unknown variables in the end.
9635       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9636 
9637       # Check if we try to supply an empty value
9638       if test "x$MKTEMP" = x; then
9639         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MKTEMP= (no value)" >&5
9640 $as_echo "$as_me: Setting user supplied tool MKTEMP= (no value)" >&6;}
9641         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5
9642 $as_echo_n "checking for MKTEMP... " >&6; }
9643         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9644 $as_echo "disabled" >&6; }
9645       else
9646         # Check if the provided tool contains a complete path.
9647         tool_specified="$MKTEMP"
9648         tool_basename="${tool_specified##*/}"
9649         if test "x$tool_basename" = "x$tool_specified"; then
9650           # A command without a complete path is provided, search $PATH.
9651           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5
9652 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;}
9653           # Extract the first word of "$tool_basename", so it can be a program name with args.
9654 set dummy $tool_basename; ac_word=$2
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9656 $as_echo_n "checking for $ac_word... " >&6; }
9657 if ${ac_cv_path_MKTEMP+:} false; then :
9658   $as_echo_n "(cached) " >&6
9659 else
9660   case $MKTEMP in
9661   [\\/]* | ?:[\\/]*)
9662   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
9663   ;;
9664   *)
9665   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9666 for as_dir in $PATH
9667 do
9668   IFS=$as_save_IFS
9669   test -z "$as_dir" && as_dir=.
9670     for ac_exec_ext in '' $ac_executable_extensions; do
9671   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9672     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
9673     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9674     break 2
9675   fi
9676 done
9677   done
9678 IFS=$as_save_IFS
9679 
9680   ;;
9681 esac
9682 fi
9683 MKTEMP=$ac_cv_path_MKTEMP
9684 if test -n "$MKTEMP"; then
9685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
9686 $as_echo "$MKTEMP" >&6; }
9687 else
9688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9689 $as_echo "no" >&6; }
9690 fi
9691 
9692 
9693           if test "x$MKTEMP" = x; then
9694             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9695           fi
9696         else
9697           # Otherwise we believe it is a complete path. Use it as it is.
9698           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5
9699 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;}
9700           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5
9701 $as_echo_n "checking for MKTEMP... " >&6; }
9702           if test ! -x "$tool_specified"; then
9703             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9704 $as_echo "not found" >&6; }
9705             as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5
9706           fi
9707           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9708 $as_echo "$tool_specified" >&6; }
9709         fi
9710       fi
9711     fi
9712 
9713   fi
9714 
9715 
9716 
9717   if test "x$MKTEMP" = x; then
9718     as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5
9719   fi
9720 
9721 
9722 
9723 
9724 
9725   # Publish this variable in the help.
9726 
9727 
9728   if [ -z "${MV+x}" ]; then
9729     # The variable is not set by user, try to locate tool using the code snippet
9730     for ac_prog in mv
9731 do
9732   # Extract the first word of "$ac_prog", so it can be a program name with args.
9733 set dummy $ac_prog; ac_word=$2
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9735 $as_echo_n "checking for $ac_word... " >&6; }
9736 if ${ac_cv_path_MV+:} false; then :
9737   $as_echo_n "(cached) " >&6
9738 else
9739   case $MV in
9740   [\\/]* | ?:[\\/]*)
9741   ac_cv_path_MV="$MV" # Let the user override the test with a path.
9742   ;;
9743   *)
9744   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9745 for as_dir in $PATH
9746 do
9747   IFS=$as_save_IFS
9748   test -z "$as_dir" && as_dir=.
9749     for ac_exec_ext in '' $ac_executable_extensions; do
9750   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9751     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9752     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9753     break 2
9754   fi
9755 done
9756   done
9757 IFS=$as_save_IFS
9758 
9759   ;;
9760 esac
9761 fi
9762 MV=$ac_cv_path_MV
9763 if test -n "$MV"; then
9764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9765 $as_echo "$MV" >&6; }
9766 else
9767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9768 $as_echo "no" >&6; }
9769 fi
9770 
9771 
9772   test -n "$MV" && break
9773 done
9774 
9775   else
9776     # The variable is set, but is it from the command line or the environment?
9777 
9778     # Try to remove the string !MV! from our list.
9779     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/}
9780     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9781       # If it failed, the variable was not from the command line. Ignore it,
9782       # but warn the user (except for BASH, which is always set by the calling BASH).
9783       if test "xMV" != xBASH; then
9784         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5
9785 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;}
9786       fi
9787       # Try to locate tool using the code snippet
9788       for ac_prog in mv
9789 do
9790   # Extract the first word of "$ac_prog", so it can be a program name with args.
9791 set dummy $ac_prog; ac_word=$2
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9793 $as_echo_n "checking for $ac_word... " >&6; }
9794 if ${ac_cv_path_MV+:} false; then :
9795   $as_echo_n "(cached) " >&6
9796 else
9797   case $MV in
9798   [\\/]* | ?:[\\/]*)
9799   ac_cv_path_MV="$MV" # Let the user override the test with a path.
9800   ;;
9801   *)
9802   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9803 for as_dir in $PATH
9804 do
9805   IFS=$as_save_IFS
9806   test -z "$as_dir" && as_dir=.
9807     for ac_exec_ext in '' $ac_executable_extensions; do
9808   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9809     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9810     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9811     break 2
9812   fi
9813 done
9814   done
9815 IFS=$as_save_IFS
9816 
9817   ;;
9818 esac
9819 fi
9820 MV=$ac_cv_path_MV
9821 if test -n "$MV"; then
9822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9823 $as_echo "$MV" >&6; }
9824 else
9825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9826 $as_echo "no" >&6; }
9827 fi
9828 
9829 
9830   test -n "$MV" && break
9831 done
9832 
9833     else
9834       # If it succeeded, then it was overridden by the user. We will use it
9835       # for the tool.
9836 
9837       # First remove it from the list of overridden variables, so we can test
9838       # for unknown variables in the end.
9839       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9840 
9841       # Check if we try to supply an empty value
9842       if test "x$MV" = x; then
9843         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MV= (no value)" >&5
9844 $as_echo "$as_me: Setting user supplied tool MV= (no value)" >&6;}
9845         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5
9846 $as_echo_n "checking for MV... " >&6; }
9847         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9848 $as_echo "disabled" >&6; }
9849       else
9850         # Check if the provided tool contains a complete path.
9851         tool_specified="$MV"
9852         tool_basename="${tool_specified##*/}"
9853         if test "x$tool_basename" = "x$tool_specified"; then
9854           # A command without a complete path is provided, search $PATH.
9855           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5
9856 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;}
9857           # Extract the first word of "$tool_basename", so it can be a program name with args.
9858 set dummy $tool_basename; ac_word=$2
9859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9860 $as_echo_n "checking for $ac_word... " >&6; }
9861 if ${ac_cv_path_MV+:} false; then :
9862   $as_echo_n "(cached) " >&6
9863 else
9864   case $MV in
9865   [\\/]* | ?:[\\/]*)
9866   ac_cv_path_MV="$MV" # Let the user override the test with a path.
9867   ;;
9868   *)
9869   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9870 for as_dir in $PATH
9871 do
9872   IFS=$as_save_IFS
9873   test -z "$as_dir" && as_dir=.
9874     for ac_exec_ext in '' $ac_executable_extensions; do
9875   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9876     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9877     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9878     break 2
9879   fi
9880 done
9881   done
9882 IFS=$as_save_IFS
9883 
9884   ;;
9885 esac
9886 fi
9887 MV=$ac_cv_path_MV
9888 if test -n "$MV"; then
9889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9890 $as_echo "$MV" >&6; }
9891 else
9892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9893 $as_echo "no" >&6; }
9894 fi
9895 
9896 
9897           if test "x$MV" = x; then
9898             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9899           fi
9900         else
9901           # Otherwise we believe it is a complete path. Use it as it is.
9902           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5
9903 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;}
9904           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5
9905 $as_echo_n "checking for MV... " >&6; }
9906           if test ! -x "$tool_specified"; then
9907             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9908 $as_echo "not found" >&6; }
9909             as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5
9910           fi
9911           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9912 $as_echo "$tool_specified" >&6; }
9913         fi
9914       fi
9915     fi
9916 
9917   fi
9918 
9919 
9920 
9921   if test "x$MV" = x; then
9922     as_fn_error $? "Could not find required tool for MV" "$LINENO" 5
9923   fi
9924 
9925 
9926 
9927 
9928 
9929   # Publish this variable in the help.
9930 
9931 
9932   if [ -z "${NAWK+x}" ]; then
9933     # The variable is not set by user, try to locate tool using the code snippet
9934     for ac_prog in nawk gawk awk
9935 do
9936   # Extract the first word of "$ac_prog", so it can be a program name with args.
9937 set dummy $ac_prog; ac_word=$2
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9939 $as_echo_n "checking for $ac_word... " >&6; }
9940 if ${ac_cv_path_NAWK+:} false; then :
9941   $as_echo_n "(cached) " >&6
9942 else
9943   case $NAWK in
9944   [\\/]* | ?:[\\/]*)
9945   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
9946   ;;
9947   *)
9948   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9949 for as_dir in $PATH
9950 do
9951   IFS=$as_save_IFS
9952   test -z "$as_dir" && as_dir=.
9953     for ac_exec_ext in '' $ac_executable_extensions; do
9954   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9955     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
9956     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9957     break 2
9958   fi
9959 done
9960   done
9961 IFS=$as_save_IFS
9962 
9963   ;;
9964 esac
9965 fi
9966 NAWK=$ac_cv_path_NAWK
9967 if test -n "$NAWK"; then
9968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
9969 $as_echo "$NAWK" >&6; }
9970 else
9971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9972 $as_echo "no" >&6; }
9973 fi
9974 
9975 
9976   test -n "$NAWK" && break
9977 done
9978 
9979   else
9980     # The variable is set, but is it from the command line or the environment?
9981 
9982     # Try to remove the string !NAWK! from our list.
9983     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/}
9984     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9985       # If it failed, the variable was not from the command line. Ignore it,
9986       # but warn the user (except for BASH, which is always set by the calling BASH).
9987       if test "xNAWK" != xBASH; then
9988         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5
9989 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;}
9990       fi
9991       # Try to locate tool using the code snippet
9992       for ac_prog in nawk gawk awk
9993 do
9994   # Extract the first word of "$ac_prog", so it can be a program name with args.
9995 set dummy $ac_prog; ac_word=$2
9996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9997 $as_echo_n "checking for $ac_word... " >&6; }
9998 if ${ac_cv_path_NAWK+:} false; then :
9999   $as_echo_n "(cached) " >&6
10000 else
10001   case $NAWK in
10002   [\\/]* | ?:[\\/]*)
10003   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
10004   ;;
10005   *)
10006   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10007 for as_dir in $PATH
10008 do
10009   IFS=$as_save_IFS
10010   test -z "$as_dir" && as_dir=.
10011     for ac_exec_ext in '' $ac_executable_extensions; do
10012   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10013     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
10014     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10015     break 2
10016   fi
10017 done
10018   done
10019 IFS=$as_save_IFS
10020 
10021   ;;
10022 esac
10023 fi
10024 NAWK=$ac_cv_path_NAWK
10025 if test -n "$NAWK"; then
10026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
10027 $as_echo "$NAWK" >&6; }
10028 else
10029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10030 $as_echo "no" >&6; }
10031 fi
10032 
10033 
10034   test -n "$NAWK" && break
10035 done
10036 
10037     else
10038       # If it succeeded, then it was overridden by the user. We will use it
10039       # for the tool.
10040 
10041       # First remove it from the list of overridden variables, so we can test
10042       # for unknown variables in the end.
10043       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10044 
10045       # Check if we try to supply an empty value
10046       if test "x$NAWK" = x; then
10047         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NAWK= (no value)" >&5
10048 $as_echo "$as_me: Setting user supplied tool NAWK= (no value)" >&6;}
10049         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5
10050 $as_echo_n "checking for NAWK... " >&6; }
10051         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10052 $as_echo "disabled" >&6; }
10053       else
10054         # Check if the provided tool contains a complete path.
10055         tool_specified="$NAWK"
10056         tool_basename="${tool_specified##*/}"
10057         if test "x$tool_basename" = "x$tool_specified"; then
10058           # A command without a complete path is provided, search $PATH.
10059           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5
10060 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;}
10061           # Extract the first word of "$tool_basename", so it can be a program name with args.
10062 set dummy $tool_basename; ac_word=$2
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10064 $as_echo_n "checking for $ac_word... " >&6; }
10065 if ${ac_cv_path_NAWK+:} false; then :
10066   $as_echo_n "(cached) " >&6
10067 else
10068   case $NAWK in
10069   [\\/]* | ?:[\\/]*)
10070   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
10071   ;;
10072   *)
10073   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10074 for as_dir in $PATH
10075 do
10076   IFS=$as_save_IFS
10077   test -z "$as_dir" && as_dir=.
10078     for ac_exec_ext in '' $ac_executable_extensions; do
10079   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10080     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
10081     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10082     break 2
10083   fi
10084 done
10085   done
10086 IFS=$as_save_IFS
10087 
10088   ;;
10089 esac
10090 fi
10091 NAWK=$ac_cv_path_NAWK
10092 if test -n "$NAWK"; then
10093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
10094 $as_echo "$NAWK" >&6; }
10095 else
10096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10097 $as_echo "no" >&6; }
10098 fi
10099 
10100 
10101           if test "x$NAWK" = x; then
10102             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10103           fi
10104         else
10105           # Otherwise we believe it is a complete path. Use it as it is.
10106           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5
10107 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;}
10108           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5
10109 $as_echo_n "checking for NAWK... " >&6; }
10110           if test ! -x "$tool_specified"; then
10111             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10112 $as_echo "not found" >&6; }
10113             as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5
10114           fi
10115           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10116 $as_echo "$tool_specified" >&6; }
10117         fi
10118       fi
10119     fi
10120 
10121   fi
10122 
10123 
10124 
10125   if test "x$NAWK" = x; then
10126     as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5
10127   fi
10128 
10129 
10130 
10131 
10132 
10133   # Publish this variable in the help.
10134 
10135 
10136   if [ -z "${PRINTF+x}" ]; then
10137     # The variable is not set by user, try to locate tool using the code snippet
10138     for ac_prog in printf
10139 do
10140   # Extract the first word of "$ac_prog", so it can be a program name with args.
10141 set dummy $ac_prog; ac_word=$2
10142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10143 $as_echo_n "checking for $ac_word... " >&6; }
10144 if ${ac_cv_path_PRINTF+:} false; then :
10145   $as_echo_n "(cached) " >&6
10146 else
10147   case $PRINTF in
10148   [\\/]* | ?:[\\/]*)
10149   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
10150   ;;
10151   *)
10152   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10153 for as_dir in $PATH
10154 do
10155   IFS=$as_save_IFS
10156   test -z "$as_dir" && as_dir=.
10157     for ac_exec_ext in '' $ac_executable_extensions; do
10158   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10159     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
10160     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10161     break 2
10162   fi
10163 done
10164   done
10165 IFS=$as_save_IFS
10166 
10167   ;;
10168 esac
10169 fi
10170 PRINTF=$ac_cv_path_PRINTF
10171 if test -n "$PRINTF"; then
10172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
10173 $as_echo "$PRINTF" >&6; }
10174 else
10175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10176 $as_echo "no" >&6; }
10177 fi
10178 
10179 
10180   test -n "$PRINTF" && break
10181 done
10182 
10183   else
10184     # The variable is set, but is it from the command line or the environment?
10185 
10186     # Try to remove the string !PRINTF! from our list.
10187     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/}
10188     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10189       # If it failed, the variable was not from the command line. Ignore it,
10190       # but warn the user (except for BASH, which is always set by the calling BASH).
10191       if test "xPRINTF" != xBASH; then
10192         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5
10193 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;}
10194       fi
10195       # Try to locate tool using the code snippet
10196       for ac_prog in printf
10197 do
10198   # Extract the first word of "$ac_prog", so it can be a program name with args.
10199 set dummy $ac_prog; ac_word=$2
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10201 $as_echo_n "checking for $ac_word... " >&6; }
10202 if ${ac_cv_path_PRINTF+:} false; then :
10203   $as_echo_n "(cached) " >&6
10204 else
10205   case $PRINTF in
10206   [\\/]* | ?:[\\/]*)
10207   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
10208   ;;
10209   *)
10210   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10211 for as_dir in $PATH
10212 do
10213   IFS=$as_save_IFS
10214   test -z "$as_dir" && as_dir=.
10215     for ac_exec_ext in '' $ac_executable_extensions; do
10216   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10217     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
10218     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10219     break 2
10220   fi
10221 done
10222   done
10223 IFS=$as_save_IFS
10224 
10225   ;;
10226 esac
10227 fi
10228 PRINTF=$ac_cv_path_PRINTF
10229 if test -n "$PRINTF"; then
10230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
10231 $as_echo "$PRINTF" >&6; }
10232 else
10233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10234 $as_echo "no" >&6; }
10235 fi
10236 
10237 
10238   test -n "$PRINTF" && break
10239 done
10240 
10241     else
10242       # If it succeeded, then it was overridden by the user. We will use it
10243       # for the tool.
10244 
10245       # First remove it from the list of overridden variables, so we can test
10246       # for unknown variables in the end.
10247       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10248 
10249       # Check if we try to supply an empty value
10250       if test "x$PRINTF" = x; then
10251         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PRINTF= (no value)" >&5
10252 $as_echo "$as_me: Setting user supplied tool PRINTF= (no value)" >&6;}
10253         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5
10254 $as_echo_n "checking for PRINTF... " >&6; }
10255         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10256 $as_echo "disabled" >&6; }
10257       else
10258         # Check if the provided tool contains a complete path.
10259         tool_specified="$PRINTF"
10260         tool_basename="${tool_specified##*/}"
10261         if test "x$tool_basename" = "x$tool_specified"; then
10262           # A command without a complete path is provided, search $PATH.
10263           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5
10264 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;}
10265           # Extract the first word of "$tool_basename", so it can be a program name with args.
10266 set dummy $tool_basename; ac_word=$2
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10268 $as_echo_n "checking for $ac_word... " >&6; }
10269 if ${ac_cv_path_PRINTF+:} false; then :
10270   $as_echo_n "(cached) " >&6
10271 else
10272   case $PRINTF in
10273   [\\/]* | ?:[\\/]*)
10274   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
10275   ;;
10276   *)
10277   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10278 for as_dir in $PATH
10279 do
10280   IFS=$as_save_IFS
10281   test -z "$as_dir" && as_dir=.
10282     for ac_exec_ext in '' $ac_executable_extensions; do
10283   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10284     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
10285     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10286     break 2
10287   fi
10288 done
10289   done
10290 IFS=$as_save_IFS
10291 
10292   ;;
10293 esac
10294 fi
10295 PRINTF=$ac_cv_path_PRINTF
10296 if test -n "$PRINTF"; then
10297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
10298 $as_echo "$PRINTF" >&6; }
10299 else
10300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10301 $as_echo "no" >&6; }
10302 fi
10303 
10304 
10305           if test "x$PRINTF" = x; then
10306             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10307           fi
10308         else
10309           # Otherwise we believe it is a complete path. Use it as it is.
10310           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5
10311 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;}
10312           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5
10313 $as_echo_n "checking for PRINTF... " >&6; }
10314           if test ! -x "$tool_specified"; then
10315             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10316 $as_echo "not found" >&6; }
10317             as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5
10318           fi
10319           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10320 $as_echo "$tool_specified" >&6; }
10321         fi
10322       fi
10323     fi
10324 
10325   fi
10326 
10327 
10328 
10329   if test "x$PRINTF" = x; then
10330     as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5
10331   fi
10332 
10333 
10334 
10335 
10336 
10337   # Publish this variable in the help.
10338 
10339 
10340   if [ -z "${RM+x}" ]; then
10341     # The variable is not set by user, try to locate tool using the code snippet
10342     for ac_prog in rm
10343 do
10344   # Extract the first word of "$ac_prog", so it can be a program name with args.
10345 set dummy $ac_prog; ac_word=$2
10346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10347 $as_echo_n "checking for $ac_word... " >&6; }
10348 if ${ac_cv_path_RM+:} false; then :
10349   $as_echo_n "(cached) " >&6
10350 else
10351   case $RM in
10352   [\\/]* | ?:[\\/]*)
10353   ac_cv_path_RM="$RM" # Let the user override the test with a path.
10354   ;;
10355   *)
10356   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10357 for as_dir in $PATH
10358 do
10359   IFS=$as_save_IFS
10360   test -z "$as_dir" && as_dir=.
10361     for ac_exec_ext in '' $ac_executable_extensions; do
10362   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10363     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
10364     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10365     break 2
10366   fi
10367 done
10368   done
10369 IFS=$as_save_IFS
10370 
10371   ;;
10372 esac
10373 fi
10374 RM=$ac_cv_path_RM
10375 if test -n "$RM"; then
10376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
10377 $as_echo "$RM" >&6; }
10378 else
10379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10380 $as_echo "no" >&6; }
10381 fi
10382 
10383 
10384   test -n "$RM" && break
10385 done
10386 
10387   else
10388     # The variable is set, but is it from the command line or the environment?
10389 
10390     # Try to remove the string !RM! from our list.
10391     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/}
10392     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10393       # If it failed, the variable was not from the command line. Ignore it,
10394       # but warn the user (except for BASH, which is always set by the calling BASH).
10395       if test "xRM" != xBASH; then
10396         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5
10397 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;}
10398       fi
10399       # Try to locate tool using the code snippet
10400       for ac_prog in rm
10401 do
10402   # Extract the first word of "$ac_prog", so it can be a program name with args.
10403 set dummy $ac_prog; ac_word=$2
10404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10405 $as_echo_n "checking for $ac_word... " >&6; }
10406 if ${ac_cv_path_RM+:} false; then :
10407   $as_echo_n "(cached) " >&6
10408 else
10409   case $RM in
10410   [\\/]* | ?:[\\/]*)
10411   ac_cv_path_RM="$RM" # Let the user override the test with a path.
10412   ;;
10413   *)
10414   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10415 for as_dir in $PATH
10416 do
10417   IFS=$as_save_IFS
10418   test -z "$as_dir" && as_dir=.
10419     for ac_exec_ext in '' $ac_executable_extensions; do
10420   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10421     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
10422     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10423     break 2
10424   fi
10425 done
10426   done
10427 IFS=$as_save_IFS
10428 
10429   ;;
10430 esac
10431 fi
10432 RM=$ac_cv_path_RM
10433 if test -n "$RM"; then
10434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
10435 $as_echo "$RM" >&6; }
10436 else
10437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10438 $as_echo "no" >&6; }
10439 fi
10440 
10441 
10442   test -n "$RM" && break
10443 done
10444 
10445     else
10446       # If it succeeded, then it was overridden by the user. We will use it
10447       # for the tool.
10448 
10449       # First remove it from the list of overridden variables, so we can test
10450       # for unknown variables in the end.
10451       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10452 
10453       # Check if we try to supply an empty value
10454       if test "x$RM" = x; then
10455         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool RM= (no value)" >&5
10456 $as_echo "$as_me: Setting user supplied tool RM= (no value)" >&6;}
10457         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5
10458 $as_echo_n "checking for RM... " >&6; }
10459         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10460 $as_echo "disabled" >&6; }
10461       else
10462         # Check if the provided tool contains a complete path.
10463         tool_specified="$RM"
10464         tool_basename="${tool_specified##*/}"
10465         if test "x$tool_basename" = "x$tool_specified"; then
10466           # A command without a complete path is provided, search $PATH.
10467           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5
10468 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;}
10469           # Extract the first word of "$tool_basename", so it can be a program name with args.
10470 set dummy $tool_basename; ac_word=$2
10471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10472 $as_echo_n "checking for $ac_word... " >&6; }
10473 if ${ac_cv_path_RM+:} false; then :
10474   $as_echo_n "(cached) " >&6
10475 else
10476   case $RM in
10477   [\\/]* | ?:[\\/]*)
10478   ac_cv_path_RM="$RM" # Let the user override the test with a path.
10479   ;;
10480   *)
10481   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10482 for as_dir in $PATH
10483 do
10484   IFS=$as_save_IFS
10485   test -z "$as_dir" && as_dir=.
10486     for ac_exec_ext in '' $ac_executable_extensions; do
10487   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10488     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
10489     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10490     break 2
10491   fi
10492 done
10493   done
10494 IFS=$as_save_IFS
10495 
10496   ;;
10497 esac
10498 fi
10499 RM=$ac_cv_path_RM
10500 if test -n "$RM"; then
10501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
10502 $as_echo "$RM" >&6; }
10503 else
10504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10505 $as_echo "no" >&6; }
10506 fi
10507 
10508 
10509           if test "x$RM" = x; then
10510             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10511           fi
10512         else
10513           # Otherwise we believe it is a complete path. Use it as it is.
10514           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5
10515 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;}
10516           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5
10517 $as_echo_n "checking for RM... " >&6; }
10518           if test ! -x "$tool_specified"; then
10519             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10520 $as_echo "not found" >&6; }
10521             as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5
10522           fi
10523           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10524 $as_echo "$tool_specified" >&6; }
10525         fi
10526       fi
10527     fi
10528 
10529   fi
10530 
10531 
10532 
10533   if test "x$RM" = x; then
10534     as_fn_error $? "Could not find required tool for RM" "$LINENO" 5
10535   fi
10536 
10537 
10538 
10539 
10540 
10541   # Publish this variable in the help.
10542 
10543 
10544   if [ -z "${RMDIR+x}" ]; then
10545     # The variable is not set by user, try to locate tool using the code snippet
10546     for ac_prog in rmdir
10547 do
10548   # Extract the first word of "$ac_prog", so it can be a program name with args.
10549 set dummy $ac_prog; ac_word=$2
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10551 $as_echo_n "checking for $ac_word... " >&6; }
10552 if ${ac_cv_path_RMDIR+:} false; then :
10553   $as_echo_n "(cached) " >&6
10554 else
10555   case $RMDIR in
10556   [\\/]* | ?:[\\/]*)
10557   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
10558   ;;
10559   *)
10560   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10561 for as_dir in $PATH
10562 do
10563   IFS=$as_save_IFS
10564   test -z "$as_dir" && as_dir=.
10565     for ac_exec_ext in '' $ac_executable_extensions; do
10566   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10567     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
10568     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10569     break 2
10570   fi
10571 done
10572   done
10573 IFS=$as_save_IFS
10574 
10575   ;;
10576 esac
10577 fi
10578 RMDIR=$ac_cv_path_RMDIR
10579 if test -n "$RMDIR"; then
10580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
10581 $as_echo "$RMDIR" >&6; }
10582 else
10583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10584 $as_echo "no" >&6; }
10585 fi
10586 
10587 
10588   test -n "$RMDIR" && break
10589 done
10590 
10591   else
10592     # The variable is set, but is it from the command line or the environment?
10593 
10594     # Try to remove the string !RMDIR! from our list.
10595     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RMDIR!/}
10596     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10597       # If it failed, the variable was not from the command line. Ignore it,
10598       # but warn the user (except for BASH, which is always set by the calling BASH).
10599       if test "xRMDIR" != xBASH; then
10600         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RMDIR from the environment. Use command line variables instead." >&5
10601 $as_echo "$as_me: WARNING: Ignoring value of RMDIR from the environment. Use command line variables instead." >&2;}
10602       fi
10603       # Try to locate tool using the code snippet
10604       for ac_prog in rmdir
10605 do
10606   # Extract the first word of "$ac_prog", so it can be a program name with args.
10607 set dummy $ac_prog; ac_word=$2
10608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10609 $as_echo_n "checking for $ac_word... " >&6; }
10610 if ${ac_cv_path_RMDIR+:} false; then :
10611   $as_echo_n "(cached) " >&6
10612 else
10613   case $RMDIR in
10614   [\\/]* | ?:[\\/]*)
10615   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
10616   ;;
10617   *)
10618   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10619 for as_dir in $PATH
10620 do
10621   IFS=$as_save_IFS
10622   test -z "$as_dir" && as_dir=.
10623     for ac_exec_ext in '' $ac_executable_extensions; do
10624   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10625     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
10626     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10627     break 2
10628   fi
10629 done
10630   done
10631 IFS=$as_save_IFS
10632 
10633   ;;
10634 esac
10635 fi
10636 RMDIR=$ac_cv_path_RMDIR
10637 if test -n "$RMDIR"; then
10638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
10639 $as_echo "$RMDIR" >&6; }
10640 else
10641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10642 $as_echo "no" >&6; }
10643 fi
10644 
10645 
10646   test -n "$RMDIR" && break
10647 done
10648 
10649     else
10650       # If it succeeded, then it was overridden by the user. We will use it
10651       # for the tool.
10652 
10653       # First remove it from the list of overridden variables, so we can test
10654       # for unknown variables in the end.
10655       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10656 
10657       # Check if we try to supply an empty value
10658       if test "x$RMDIR" = x; then
10659         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool RMDIR= (no value)" >&5
10660 $as_echo "$as_me: Setting user supplied tool RMDIR= (no value)" >&6;}
10661         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RMDIR" >&5
10662 $as_echo_n "checking for RMDIR... " >&6; }
10663         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10664 $as_echo "disabled" >&6; }
10665       else
10666         # Check if the provided tool contains a complete path.
10667         tool_specified="$RMDIR"
10668         tool_basename="${tool_specified##*/}"
10669         if test "x$tool_basename" = "x$tool_specified"; then
10670           # A command without a complete path is provided, search $PATH.
10671           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RMDIR=$tool_basename" >&5
10672 $as_echo "$as_me: Will search for user supplied tool RMDIR=$tool_basename" >&6;}
10673           # Extract the first word of "$tool_basename", so it can be a program name with args.
10674 set dummy $tool_basename; ac_word=$2
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10676 $as_echo_n "checking for $ac_word... " >&6; }
10677 if ${ac_cv_path_RMDIR+:} false; then :
10678   $as_echo_n "(cached) " >&6
10679 else
10680   case $RMDIR in
10681   [\\/]* | ?:[\\/]*)
10682   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
10683   ;;
10684   *)
10685   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10686 for as_dir in $PATH
10687 do
10688   IFS=$as_save_IFS
10689   test -z "$as_dir" && as_dir=.
10690     for ac_exec_ext in '' $ac_executable_extensions; do
10691   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10692     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
10693     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10694     break 2
10695   fi
10696 done
10697   done
10698 IFS=$as_save_IFS
10699 
10700   ;;
10701 esac
10702 fi
10703 RMDIR=$ac_cv_path_RMDIR
10704 if test -n "$RMDIR"; then
10705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
10706 $as_echo "$RMDIR" >&6; }
10707 else
10708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10709 $as_echo "no" >&6; }
10710 fi
10711 
10712 
10713           if test "x$RMDIR" = x; then
10714             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10715           fi
10716         else
10717           # Otherwise we believe it is a complete path. Use it as it is.
10718           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RMDIR=$tool_specified" >&5
10719 $as_echo "$as_me: Will use user supplied tool RMDIR=$tool_specified" >&6;}
10720           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RMDIR" >&5
10721 $as_echo_n "checking for RMDIR... " >&6; }
10722           if test ! -x "$tool_specified"; then
10723             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10724 $as_echo "not found" >&6; }
10725             as_fn_error $? "User supplied tool RMDIR=$tool_specified does not exist or is not executable" "$LINENO" 5
10726           fi
10727           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10728 $as_echo "$tool_specified" >&6; }
10729         fi
10730       fi
10731     fi
10732 
10733   fi
10734 
10735 
10736 
10737   if test "x$RMDIR" = x; then
10738     as_fn_error $? "Could not find required tool for RMDIR" "$LINENO" 5
10739   fi
10740 
10741 
10742 
10743 
10744 
10745   # Publish this variable in the help.
10746 
10747 
10748   if [ -z "${SH+x}" ]; then
10749     # The variable is not set by user, try to locate tool using the code snippet
10750     for ac_prog in sh
10751 do
10752   # Extract the first word of "$ac_prog", so it can be a program name with args.
10753 set dummy $ac_prog; ac_word=$2
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10755 $as_echo_n "checking for $ac_word... " >&6; }
10756 if ${ac_cv_path_SH+:} false; then :
10757   $as_echo_n "(cached) " >&6
10758 else
10759   case $SH in
10760   [\\/]* | ?:[\\/]*)
10761   ac_cv_path_SH="$SH" # Let the user override the test with a path.
10762   ;;
10763   *)
10764   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10765 for as_dir in $PATH
10766 do
10767   IFS=$as_save_IFS
10768   test -z "$as_dir" && as_dir=.
10769     for ac_exec_ext in '' $ac_executable_extensions; do
10770   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10771     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
10772     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10773     break 2
10774   fi
10775 done
10776   done
10777 IFS=$as_save_IFS
10778 
10779   ;;
10780 esac
10781 fi
10782 SH=$ac_cv_path_SH
10783 if test -n "$SH"; then
10784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
10785 $as_echo "$SH" >&6; }
10786 else
10787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10788 $as_echo "no" >&6; }
10789 fi
10790 
10791 
10792   test -n "$SH" && break
10793 done
10794 
10795   else
10796     # The variable is set, but is it from the command line or the environment?
10797 
10798     # Try to remove the string !SH! from our list.
10799     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/}
10800     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10801       # If it failed, the variable was not from the command line. Ignore it,
10802       # but warn the user (except for BASH, which is always set by the calling BASH).
10803       if test "xSH" != xBASH; then
10804         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5
10805 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;}
10806       fi
10807       # Try to locate tool using the code snippet
10808       for ac_prog in sh
10809 do
10810   # Extract the first word of "$ac_prog", so it can be a program name with args.
10811 set dummy $ac_prog; ac_word=$2
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10813 $as_echo_n "checking for $ac_word... " >&6; }
10814 if ${ac_cv_path_SH+:} false; then :
10815   $as_echo_n "(cached) " >&6
10816 else
10817   case $SH in
10818   [\\/]* | ?:[\\/]*)
10819   ac_cv_path_SH="$SH" # Let the user override the test with a path.
10820   ;;
10821   *)
10822   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10823 for as_dir in $PATH
10824 do
10825   IFS=$as_save_IFS
10826   test -z "$as_dir" && as_dir=.
10827     for ac_exec_ext in '' $ac_executable_extensions; do
10828   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10829     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
10830     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10831     break 2
10832   fi
10833 done
10834   done
10835 IFS=$as_save_IFS
10836 
10837   ;;
10838 esac
10839 fi
10840 SH=$ac_cv_path_SH
10841 if test -n "$SH"; then
10842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
10843 $as_echo "$SH" >&6; }
10844 else
10845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10846 $as_echo "no" >&6; }
10847 fi
10848 
10849 
10850   test -n "$SH" && break
10851 done
10852 
10853     else
10854       # If it succeeded, then it was overridden by the user. We will use it
10855       # for the tool.
10856 
10857       # First remove it from the list of overridden variables, so we can test
10858       # for unknown variables in the end.
10859       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10860 
10861       # Check if we try to supply an empty value
10862       if test "x$SH" = x; then
10863         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SH= (no value)" >&5
10864 $as_echo "$as_me: Setting user supplied tool SH= (no value)" >&6;}
10865         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5
10866 $as_echo_n "checking for SH... " >&6; }
10867         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10868 $as_echo "disabled" >&6; }
10869       else
10870         # Check if the provided tool contains a complete path.
10871         tool_specified="$SH"
10872         tool_basename="${tool_specified##*/}"
10873         if test "x$tool_basename" = "x$tool_specified"; then
10874           # A command without a complete path is provided, search $PATH.
10875           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5
10876 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;}
10877           # Extract the first word of "$tool_basename", so it can be a program name with args.
10878 set dummy $tool_basename; ac_word=$2
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10880 $as_echo_n "checking for $ac_word... " >&6; }
10881 if ${ac_cv_path_SH+:} false; then :
10882   $as_echo_n "(cached) " >&6
10883 else
10884   case $SH in
10885   [\\/]* | ?:[\\/]*)
10886   ac_cv_path_SH="$SH" # Let the user override the test with a path.
10887   ;;
10888   *)
10889   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10890 for as_dir in $PATH
10891 do
10892   IFS=$as_save_IFS
10893   test -z "$as_dir" && as_dir=.
10894     for ac_exec_ext in '' $ac_executable_extensions; do
10895   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10896     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
10897     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10898     break 2
10899   fi
10900 done
10901   done
10902 IFS=$as_save_IFS
10903 
10904   ;;
10905 esac
10906 fi
10907 SH=$ac_cv_path_SH
10908 if test -n "$SH"; then
10909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
10910 $as_echo "$SH" >&6; }
10911 else
10912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10913 $as_echo "no" >&6; }
10914 fi
10915 
10916 
10917           if test "x$SH" = x; then
10918             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10919           fi
10920         else
10921           # Otherwise we believe it is a complete path. Use it as it is.
10922           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5
10923 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;}
10924           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5
10925 $as_echo_n "checking for SH... " >&6; }
10926           if test ! -x "$tool_specified"; then
10927             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10928 $as_echo "not found" >&6; }
10929             as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5
10930           fi
10931           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10932 $as_echo "$tool_specified" >&6; }
10933         fi
10934       fi
10935     fi
10936 
10937   fi
10938 
10939 
10940 
10941   if test "x$SH" = x; then
10942     as_fn_error $? "Could not find required tool for SH" "$LINENO" 5
10943   fi
10944 
10945 
10946 
10947 
10948 
10949   # Publish this variable in the help.
10950 
10951 
10952   if [ -z "${SORT+x}" ]; then
10953     # The variable is not set by user, try to locate tool using the code snippet
10954     for ac_prog in sort
10955 do
10956   # Extract the first word of "$ac_prog", so it can be a program name with args.
10957 set dummy $ac_prog; ac_word=$2
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10959 $as_echo_n "checking for $ac_word... " >&6; }
10960 if ${ac_cv_path_SORT+:} false; then :
10961   $as_echo_n "(cached) " >&6
10962 else
10963   case $SORT in
10964   [\\/]* | ?:[\\/]*)
10965   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
10966   ;;
10967   *)
10968   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10969 for as_dir in $PATH
10970 do
10971   IFS=$as_save_IFS
10972   test -z "$as_dir" && as_dir=.
10973     for ac_exec_ext in '' $ac_executable_extensions; do
10974   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10975     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
10976     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10977     break 2
10978   fi
10979 done
10980   done
10981 IFS=$as_save_IFS
10982 
10983   ;;
10984 esac
10985 fi
10986 SORT=$ac_cv_path_SORT
10987 if test -n "$SORT"; then
10988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
10989 $as_echo "$SORT" >&6; }
10990 else
10991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10992 $as_echo "no" >&6; }
10993 fi
10994 
10995 
10996   test -n "$SORT" && break
10997 done
10998 
10999   else
11000     # The variable is set, but is it from the command line or the environment?
11001 
11002     # Try to remove the string !SORT! from our list.
11003     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/}
11004     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11005       # If it failed, the variable was not from the command line. Ignore it,
11006       # but warn the user (except for BASH, which is always set by the calling BASH).
11007       if test "xSORT" != xBASH; then
11008         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5
11009 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;}
11010       fi
11011       # Try to locate tool using the code snippet
11012       for ac_prog in sort
11013 do
11014   # Extract the first word of "$ac_prog", so it can be a program name with args.
11015 set dummy $ac_prog; ac_word=$2
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11017 $as_echo_n "checking for $ac_word... " >&6; }
11018 if ${ac_cv_path_SORT+:} false; then :
11019   $as_echo_n "(cached) " >&6
11020 else
11021   case $SORT in
11022   [\\/]* | ?:[\\/]*)
11023   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
11024   ;;
11025   *)
11026   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11027 for as_dir in $PATH
11028 do
11029   IFS=$as_save_IFS
11030   test -z "$as_dir" && as_dir=.
11031     for ac_exec_ext in '' $ac_executable_extensions; do
11032   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11033     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
11034     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11035     break 2
11036   fi
11037 done
11038   done
11039 IFS=$as_save_IFS
11040 
11041   ;;
11042 esac
11043 fi
11044 SORT=$ac_cv_path_SORT
11045 if test -n "$SORT"; then
11046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
11047 $as_echo "$SORT" >&6; }
11048 else
11049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11050 $as_echo "no" >&6; }
11051 fi
11052 
11053 
11054   test -n "$SORT" && break
11055 done
11056 
11057     else
11058       # If it succeeded, then it was overridden by the user. We will use it
11059       # for the tool.
11060 
11061       # First remove it from the list of overridden variables, so we can test
11062       # for unknown variables in the end.
11063       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11064 
11065       # Check if we try to supply an empty value
11066       if test "x$SORT" = x; then
11067         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SORT= (no value)" >&5
11068 $as_echo "$as_me: Setting user supplied tool SORT= (no value)" >&6;}
11069         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5
11070 $as_echo_n "checking for SORT... " >&6; }
11071         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11072 $as_echo "disabled" >&6; }
11073       else
11074         # Check if the provided tool contains a complete path.
11075         tool_specified="$SORT"
11076         tool_basename="${tool_specified##*/}"
11077         if test "x$tool_basename" = "x$tool_specified"; then
11078           # A command without a complete path is provided, search $PATH.
11079           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5
11080 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;}
11081           # Extract the first word of "$tool_basename", so it can be a program name with args.
11082 set dummy $tool_basename; ac_word=$2
11083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11084 $as_echo_n "checking for $ac_word... " >&6; }
11085 if ${ac_cv_path_SORT+:} false; then :
11086   $as_echo_n "(cached) " >&6
11087 else
11088   case $SORT in
11089   [\\/]* | ?:[\\/]*)
11090   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
11091   ;;
11092   *)
11093   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11094 for as_dir in $PATH
11095 do
11096   IFS=$as_save_IFS
11097   test -z "$as_dir" && as_dir=.
11098     for ac_exec_ext in '' $ac_executable_extensions; do
11099   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11100     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
11101     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11102     break 2
11103   fi
11104 done
11105   done
11106 IFS=$as_save_IFS
11107 
11108   ;;
11109 esac
11110 fi
11111 SORT=$ac_cv_path_SORT
11112 if test -n "$SORT"; then
11113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
11114 $as_echo "$SORT" >&6; }
11115 else
11116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11117 $as_echo "no" >&6; }
11118 fi
11119 
11120 
11121           if test "x$SORT" = x; then
11122             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11123           fi
11124         else
11125           # Otherwise we believe it is a complete path. Use it as it is.
11126           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5
11127 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;}
11128           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5
11129 $as_echo_n "checking for SORT... " >&6; }
11130           if test ! -x "$tool_specified"; then
11131             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11132 $as_echo "not found" >&6; }
11133             as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5
11134           fi
11135           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11136 $as_echo "$tool_specified" >&6; }
11137         fi
11138       fi
11139     fi
11140 
11141   fi
11142 
11143 
11144 
11145   if test "x$SORT" = x; then
11146     as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5
11147   fi
11148 
11149 
11150 
11151 
11152 
11153   # Publish this variable in the help.
11154 
11155 
11156   if [ -z "${TAIL+x}" ]; then
11157     # The variable is not set by user, try to locate tool using the code snippet
11158     for ac_prog in tail
11159 do
11160   # Extract the first word of "$ac_prog", so it can be a program name with args.
11161 set dummy $ac_prog; ac_word=$2
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11163 $as_echo_n "checking for $ac_word... " >&6; }
11164 if ${ac_cv_path_TAIL+:} false; then :
11165   $as_echo_n "(cached) " >&6
11166 else
11167   case $TAIL in
11168   [\\/]* | ?:[\\/]*)
11169   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
11170   ;;
11171   *)
11172   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11173 for as_dir in $PATH
11174 do
11175   IFS=$as_save_IFS
11176   test -z "$as_dir" && as_dir=.
11177     for ac_exec_ext in '' $ac_executable_extensions; do
11178   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11179     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
11180     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11181     break 2
11182   fi
11183 done
11184   done
11185 IFS=$as_save_IFS
11186 
11187   ;;
11188 esac
11189 fi
11190 TAIL=$ac_cv_path_TAIL
11191 if test -n "$TAIL"; then
11192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
11193 $as_echo "$TAIL" >&6; }
11194 else
11195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11196 $as_echo "no" >&6; }
11197 fi
11198 
11199 
11200   test -n "$TAIL" && break
11201 done
11202 
11203   else
11204     # The variable is set, but is it from the command line or the environment?
11205 
11206     # Try to remove the string !TAIL! from our list.
11207     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/}
11208     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11209       # If it failed, the variable was not from the command line. Ignore it,
11210       # but warn the user (except for BASH, which is always set by the calling BASH).
11211       if test "xTAIL" != xBASH; then
11212         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5
11213 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;}
11214       fi
11215       # Try to locate tool using the code snippet
11216       for ac_prog in tail
11217 do
11218   # Extract the first word of "$ac_prog", so it can be a program name with args.
11219 set dummy $ac_prog; ac_word=$2
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11221 $as_echo_n "checking for $ac_word... " >&6; }
11222 if ${ac_cv_path_TAIL+:} false; then :
11223   $as_echo_n "(cached) " >&6
11224 else
11225   case $TAIL in
11226   [\\/]* | ?:[\\/]*)
11227   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
11228   ;;
11229   *)
11230   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11231 for as_dir in $PATH
11232 do
11233   IFS=$as_save_IFS
11234   test -z "$as_dir" && as_dir=.
11235     for ac_exec_ext in '' $ac_executable_extensions; do
11236   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11237     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
11238     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11239     break 2
11240   fi
11241 done
11242   done
11243 IFS=$as_save_IFS
11244 
11245   ;;
11246 esac
11247 fi
11248 TAIL=$ac_cv_path_TAIL
11249 if test -n "$TAIL"; then
11250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
11251 $as_echo "$TAIL" >&6; }
11252 else
11253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11254 $as_echo "no" >&6; }
11255 fi
11256 
11257 
11258   test -n "$TAIL" && break
11259 done
11260 
11261     else
11262       # If it succeeded, then it was overridden by the user. We will use it
11263       # for the tool.
11264 
11265       # First remove it from the list of overridden variables, so we can test
11266       # for unknown variables in the end.
11267       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11268 
11269       # Check if we try to supply an empty value
11270       if test "x$TAIL" = x; then
11271         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TAIL= (no value)" >&5
11272 $as_echo "$as_me: Setting user supplied tool TAIL= (no value)" >&6;}
11273         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5
11274 $as_echo_n "checking for TAIL... " >&6; }
11275         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11276 $as_echo "disabled" >&6; }
11277       else
11278         # Check if the provided tool contains a complete path.
11279         tool_specified="$TAIL"
11280         tool_basename="${tool_specified##*/}"
11281         if test "x$tool_basename" = "x$tool_specified"; then
11282           # A command without a complete path is provided, search $PATH.
11283           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5
11284 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;}
11285           # Extract the first word of "$tool_basename", so it can be a program name with args.
11286 set dummy $tool_basename; ac_word=$2
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11288 $as_echo_n "checking for $ac_word... " >&6; }
11289 if ${ac_cv_path_TAIL+:} false; then :
11290   $as_echo_n "(cached) " >&6
11291 else
11292   case $TAIL in
11293   [\\/]* | ?:[\\/]*)
11294   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
11295   ;;
11296   *)
11297   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11298 for as_dir in $PATH
11299 do
11300   IFS=$as_save_IFS
11301   test -z "$as_dir" && as_dir=.
11302     for ac_exec_ext in '' $ac_executable_extensions; do
11303   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11304     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
11305     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11306     break 2
11307   fi
11308 done
11309   done
11310 IFS=$as_save_IFS
11311 
11312   ;;
11313 esac
11314 fi
11315 TAIL=$ac_cv_path_TAIL
11316 if test -n "$TAIL"; then
11317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
11318 $as_echo "$TAIL" >&6; }
11319 else
11320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11321 $as_echo "no" >&6; }
11322 fi
11323 
11324 
11325           if test "x$TAIL" = x; then
11326             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11327           fi
11328         else
11329           # Otherwise we believe it is a complete path. Use it as it is.
11330           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5
11331 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;}
11332           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5
11333 $as_echo_n "checking for TAIL... " >&6; }
11334           if test ! -x "$tool_specified"; then
11335             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11336 $as_echo "not found" >&6; }
11337             as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5
11338           fi
11339           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11340 $as_echo "$tool_specified" >&6; }
11341         fi
11342       fi
11343     fi
11344 
11345   fi
11346 
11347 
11348 
11349   if test "x$TAIL" = x; then
11350     as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5
11351   fi
11352 
11353 
11354 
11355 
11356 
11357   # Publish this variable in the help.
11358 
11359 
11360   if [ -z "${TAR+x}" ]; then
11361     # The variable is not set by user, try to locate tool using the code snippet
11362     for ac_prog in gtar tar
11363 do
11364   # Extract the first word of "$ac_prog", so it can be a program name with args.
11365 set dummy $ac_prog; ac_word=$2
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11367 $as_echo_n "checking for $ac_word... " >&6; }
11368 if ${ac_cv_path_TAR+:} false; then :
11369   $as_echo_n "(cached) " >&6
11370 else
11371   case $TAR in
11372   [\\/]* | ?:[\\/]*)
11373   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
11374   ;;
11375   *)
11376   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11377 for as_dir in $PATH
11378 do
11379   IFS=$as_save_IFS
11380   test -z "$as_dir" && as_dir=.
11381     for ac_exec_ext in '' $ac_executable_extensions; do
11382   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11383     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
11384     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11385     break 2
11386   fi
11387 done
11388   done
11389 IFS=$as_save_IFS
11390 
11391   ;;
11392 esac
11393 fi
11394 TAR=$ac_cv_path_TAR
11395 if test -n "$TAR"; then
11396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
11397 $as_echo "$TAR" >&6; }
11398 else
11399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11400 $as_echo "no" >&6; }
11401 fi
11402 
11403 
11404   test -n "$TAR" && break
11405 done
11406 
11407   else
11408     # The variable is set, but is it from the command line or the environment?
11409 
11410     # Try to remove the string !TAR! from our list.
11411     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/}
11412     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11413       # If it failed, the variable was not from the command line. Ignore it,
11414       # but warn the user (except for BASH, which is always set by the calling BASH).
11415       if test "xTAR" != xBASH; then
11416         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5
11417 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;}
11418       fi
11419       # Try to locate tool using the code snippet
11420       for ac_prog in gtar tar
11421 do
11422   # Extract the first word of "$ac_prog", so it can be a program name with args.
11423 set dummy $ac_prog; ac_word=$2
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11425 $as_echo_n "checking for $ac_word... " >&6; }
11426 if ${ac_cv_path_TAR+:} false; then :
11427   $as_echo_n "(cached) " >&6
11428 else
11429   case $TAR in
11430   [\\/]* | ?:[\\/]*)
11431   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
11432   ;;
11433   *)
11434   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11435 for as_dir in $PATH
11436 do
11437   IFS=$as_save_IFS
11438   test -z "$as_dir" && as_dir=.
11439     for ac_exec_ext in '' $ac_executable_extensions; do
11440   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11441     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
11442     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11443     break 2
11444   fi
11445 done
11446   done
11447 IFS=$as_save_IFS
11448 
11449   ;;
11450 esac
11451 fi
11452 TAR=$ac_cv_path_TAR
11453 if test -n "$TAR"; then
11454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
11455 $as_echo "$TAR" >&6; }
11456 else
11457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11458 $as_echo "no" >&6; }
11459 fi
11460 
11461 
11462   test -n "$TAR" && break
11463 done
11464 
11465     else
11466       # If it succeeded, then it was overridden by the user. We will use it
11467       # for the tool.
11468 
11469       # First remove it from the list of overridden variables, so we can test
11470       # for unknown variables in the end.
11471       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11472 
11473       # Check if we try to supply an empty value
11474       if test "x$TAR" = x; then
11475         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TAR= (no value)" >&5
11476 $as_echo "$as_me: Setting user supplied tool TAR= (no value)" >&6;}
11477         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
11478 $as_echo_n "checking for TAR... " >&6; }
11479         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11480 $as_echo "disabled" >&6; }
11481       else
11482         # Check if the provided tool contains a complete path.
11483         tool_specified="$TAR"
11484         tool_basename="${tool_specified##*/}"
11485         if test "x$tool_basename" = "x$tool_specified"; then
11486           # A command without a complete path is provided, search $PATH.
11487           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5
11488 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;}
11489           # Extract the first word of "$tool_basename", so it can be a program name with args.
11490 set dummy $tool_basename; ac_word=$2
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11492 $as_echo_n "checking for $ac_word... " >&6; }
11493 if ${ac_cv_path_TAR+:} false; then :
11494   $as_echo_n "(cached) " >&6
11495 else
11496   case $TAR in
11497   [\\/]* | ?:[\\/]*)
11498   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
11499   ;;
11500   *)
11501   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11502 for as_dir in $PATH
11503 do
11504   IFS=$as_save_IFS
11505   test -z "$as_dir" && as_dir=.
11506     for ac_exec_ext in '' $ac_executable_extensions; do
11507   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11508     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
11509     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11510     break 2
11511   fi
11512 done
11513   done
11514 IFS=$as_save_IFS
11515 
11516   ;;
11517 esac
11518 fi
11519 TAR=$ac_cv_path_TAR
11520 if test -n "$TAR"; then
11521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
11522 $as_echo "$TAR" >&6; }
11523 else
11524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11525 $as_echo "no" >&6; }
11526 fi
11527 
11528 
11529           if test "x$TAR" = x; then
11530             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11531           fi
11532         else
11533           # Otherwise we believe it is a complete path. Use it as it is.
11534           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5
11535 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;}
11536           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
11537 $as_echo_n "checking for TAR... " >&6; }
11538           if test ! -x "$tool_specified"; then
11539             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11540 $as_echo "not found" >&6; }
11541             as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5
11542           fi
11543           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11544 $as_echo "$tool_specified" >&6; }
11545         fi
11546       fi
11547     fi
11548 
11549   fi
11550 
11551 
11552 
11553   if test "x$TAR" = x; then
11554     as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5
11555   fi
11556 
11557 
11558 
11559 
11560 
11561   # Publish this variable in the help.
11562 
11563 
11564   if [ -z "${TEE+x}" ]; then
11565     # The variable is not set by user, try to locate tool using the code snippet
11566     for ac_prog in tee
11567 do
11568   # Extract the first word of "$ac_prog", so it can be a program name with args.
11569 set dummy $ac_prog; ac_word=$2
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11571 $as_echo_n "checking for $ac_word... " >&6; }
11572 if ${ac_cv_path_TEE+:} false; then :
11573   $as_echo_n "(cached) " >&6
11574 else
11575   case $TEE in
11576   [\\/]* | ?:[\\/]*)
11577   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
11578   ;;
11579   *)
11580   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11581 for as_dir in $PATH
11582 do
11583   IFS=$as_save_IFS
11584   test -z "$as_dir" && as_dir=.
11585     for ac_exec_ext in '' $ac_executable_extensions; do
11586   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11587     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
11588     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11589     break 2
11590   fi
11591 done
11592   done
11593 IFS=$as_save_IFS
11594 
11595   ;;
11596 esac
11597 fi
11598 TEE=$ac_cv_path_TEE
11599 if test -n "$TEE"; then
11600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
11601 $as_echo "$TEE" >&6; }
11602 else
11603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11604 $as_echo "no" >&6; }
11605 fi
11606 
11607 
11608   test -n "$TEE" && break
11609 done
11610 
11611   else
11612     # The variable is set, but is it from the command line or the environment?
11613 
11614     # Try to remove the string !TEE! from our list.
11615     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/}
11616     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11617       # If it failed, the variable was not from the command line. Ignore it,
11618       # but warn the user (except for BASH, which is always set by the calling BASH).
11619       if test "xTEE" != xBASH; then
11620         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5
11621 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;}
11622       fi
11623       # Try to locate tool using the code snippet
11624       for ac_prog in tee
11625 do
11626   # Extract the first word of "$ac_prog", so it can be a program name with args.
11627 set dummy $ac_prog; ac_word=$2
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11629 $as_echo_n "checking for $ac_word... " >&6; }
11630 if ${ac_cv_path_TEE+:} false; then :
11631   $as_echo_n "(cached) " >&6
11632 else
11633   case $TEE in
11634   [\\/]* | ?:[\\/]*)
11635   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
11636   ;;
11637   *)
11638   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11639 for as_dir in $PATH
11640 do
11641   IFS=$as_save_IFS
11642   test -z "$as_dir" && as_dir=.
11643     for ac_exec_ext in '' $ac_executable_extensions; do
11644   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11645     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
11646     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11647     break 2
11648   fi
11649 done
11650   done
11651 IFS=$as_save_IFS
11652 
11653   ;;
11654 esac
11655 fi
11656 TEE=$ac_cv_path_TEE
11657 if test -n "$TEE"; then
11658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
11659 $as_echo "$TEE" >&6; }
11660 else
11661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11662 $as_echo "no" >&6; }
11663 fi
11664 
11665 
11666   test -n "$TEE" && break
11667 done
11668 
11669     else
11670       # If it succeeded, then it was overridden by the user. We will use it
11671       # for the tool.
11672 
11673       # First remove it from the list of overridden variables, so we can test
11674       # for unknown variables in the end.
11675       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11676 
11677       # Check if we try to supply an empty value
11678       if test "x$TEE" = x; then
11679         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TEE= (no value)" >&5
11680 $as_echo "$as_me: Setting user supplied tool TEE= (no value)" >&6;}
11681         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5
11682 $as_echo_n "checking for TEE... " >&6; }
11683         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11684 $as_echo "disabled" >&6; }
11685       else
11686         # Check if the provided tool contains a complete path.
11687         tool_specified="$TEE"
11688         tool_basename="${tool_specified##*/}"
11689         if test "x$tool_basename" = "x$tool_specified"; then
11690           # A command without a complete path is provided, search $PATH.
11691           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5
11692 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;}
11693           # Extract the first word of "$tool_basename", so it can be a program name with args.
11694 set dummy $tool_basename; ac_word=$2
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11696 $as_echo_n "checking for $ac_word... " >&6; }
11697 if ${ac_cv_path_TEE+:} false; then :
11698   $as_echo_n "(cached) " >&6
11699 else
11700   case $TEE in
11701   [\\/]* | ?:[\\/]*)
11702   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
11703   ;;
11704   *)
11705   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11706 for as_dir in $PATH
11707 do
11708   IFS=$as_save_IFS
11709   test -z "$as_dir" && as_dir=.
11710     for ac_exec_ext in '' $ac_executable_extensions; do
11711   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11712     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
11713     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11714     break 2
11715   fi
11716 done
11717   done
11718 IFS=$as_save_IFS
11719 
11720   ;;
11721 esac
11722 fi
11723 TEE=$ac_cv_path_TEE
11724 if test -n "$TEE"; then
11725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
11726 $as_echo "$TEE" >&6; }
11727 else
11728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11729 $as_echo "no" >&6; }
11730 fi
11731 
11732 
11733           if test "x$TEE" = x; then
11734             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11735           fi
11736         else
11737           # Otherwise we believe it is a complete path. Use it as it is.
11738           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5
11739 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;}
11740           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5
11741 $as_echo_n "checking for TEE... " >&6; }
11742           if test ! -x "$tool_specified"; then
11743             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11744 $as_echo "not found" >&6; }
11745             as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5
11746           fi
11747           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11748 $as_echo "$tool_specified" >&6; }
11749         fi
11750       fi
11751     fi
11752 
11753   fi
11754 
11755 
11756 
11757   if test "x$TEE" = x; then
11758     as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5
11759   fi
11760 
11761 
11762 
11763 
11764 
11765   # Publish this variable in the help.
11766 
11767 
11768   if [ -z "${TOUCH+x}" ]; then
11769     # The variable is not set by user, try to locate tool using the code snippet
11770     for ac_prog in touch
11771 do
11772   # Extract the first word of "$ac_prog", so it can be a program name with args.
11773 set dummy $ac_prog; ac_word=$2
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11775 $as_echo_n "checking for $ac_word... " >&6; }
11776 if ${ac_cv_path_TOUCH+:} false; then :
11777   $as_echo_n "(cached) " >&6
11778 else
11779   case $TOUCH in
11780   [\\/]* | ?:[\\/]*)
11781   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
11782   ;;
11783   *)
11784   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11785 for as_dir in $PATH
11786 do
11787   IFS=$as_save_IFS
11788   test -z "$as_dir" && as_dir=.
11789     for ac_exec_ext in '' $ac_executable_extensions; do
11790   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11791     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
11792     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11793     break 2
11794   fi
11795 done
11796   done
11797 IFS=$as_save_IFS
11798 
11799   ;;
11800 esac
11801 fi
11802 TOUCH=$ac_cv_path_TOUCH
11803 if test -n "$TOUCH"; then
11804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
11805 $as_echo "$TOUCH" >&6; }
11806 else
11807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11808 $as_echo "no" >&6; }
11809 fi
11810 
11811 
11812   test -n "$TOUCH" && break
11813 done
11814 
11815   else
11816     # The variable is set, but is it from the command line or the environment?
11817 
11818     # Try to remove the string !TOUCH! from our list.
11819     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/}
11820     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11821       # If it failed, the variable was not from the command line. Ignore it,
11822       # but warn the user (except for BASH, which is always set by the calling BASH).
11823       if test "xTOUCH" != xBASH; then
11824         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5
11825 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;}
11826       fi
11827       # Try to locate tool using the code snippet
11828       for ac_prog in touch
11829 do
11830   # Extract the first word of "$ac_prog", so it can be a program name with args.
11831 set dummy $ac_prog; ac_word=$2
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11833 $as_echo_n "checking for $ac_word... " >&6; }
11834 if ${ac_cv_path_TOUCH+:} false; then :
11835   $as_echo_n "(cached) " >&6
11836 else
11837   case $TOUCH in
11838   [\\/]* | ?:[\\/]*)
11839   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
11840   ;;
11841   *)
11842   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11843 for as_dir in $PATH
11844 do
11845   IFS=$as_save_IFS
11846   test -z "$as_dir" && as_dir=.
11847     for ac_exec_ext in '' $ac_executable_extensions; do
11848   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11849     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
11850     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11851     break 2
11852   fi
11853 done
11854   done
11855 IFS=$as_save_IFS
11856 
11857   ;;
11858 esac
11859 fi
11860 TOUCH=$ac_cv_path_TOUCH
11861 if test -n "$TOUCH"; then
11862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
11863 $as_echo "$TOUCH" >&6; }
11864 else
11865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11866 $as_echo "no" >&6; }
11867 fi
11868 
11869 
11870   test -n "$TOUCH" && break
11871 done
11872 
11873     else
11874       # If it succeeded, then it was overridden by the user. We will use it
11875       # for the tool.
11876 
11877       # First remove it from the list of overridden variables, so we can test
11878       # for unknown variables in the end.
11879       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11880 
11881       # Check if we try to supply an empty value
11882       if test "x$TOUCH" = x; then
11883         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TOUCH= (no value)" >&5
11884 $as_echo "$as_me: Setting user supplied tool TOUCH= (no value)" >&6;}
11885         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5
11886 $as_echo_n "checking for TOUCH... " >&6; }
11887         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11888 $as_echo "disabled" >&6; }
11889       else
11890         # Check if the provided tool contains a complete path.
11891         tool_specified="$TOUCH"
11892         tool_basename="${tool_specified##*/}"
11893         if test "x$tool_basename" = "x$tool_specified"; then
11894           # A command without a complete path is provided, search $PATH.
11895           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5
11896 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;}
11897           # Extract the first word of "$tool_basename", so it can be a program name with args.
11898 set dummy $tool_basename; ac_word=$2
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11900 $as_echo_n "checking for $ac_word... " >&6; }
11901 if ${ac_cv_path_TOUCH+:} false; then :
11902   $as_echo_n "(cached) " >&6
11903 else
11904   case $TOUCH in
11905   [\\/]* | ?:[\\/]*)
11906   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
11907   ;;
11908   *)
11909   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11910 for as_dir in $PATH
11911 do
11912   IFS=$as_save_IFS
11913   test -z "$as_dir" && as_dir=.
11914     for ac_exec_ext in '' $ac_executable_extensions; do
11915   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11916     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
11917     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11918     break 2
11919   fi
11920 done
11921   done
11922 IFS=$as_save_IFS
11923 
11924   ;;
11925 esac
11926 fi
11927 TOUCH=$ac_cv_path_TOUCH
11928 if test -n "$TOUCH"; then
11929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
11930 $as_echo "$TOUCH" >&6; }
11931 else
11932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11933 $as_echo "no" >&6; }
11934 fi
11935 
11936 
11937           if test "x$TOUCH" = x; then
11938             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11939           fi
11940         else
11941           # Otherwise we believe it is a complete path. Use it as it is.
11942           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5
11943 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;}
11944           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5
11945 $as_echo_n "checking for TOUCH... " >&6; }
11946           if test ! -x "$tool_specified"; then
11947             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11948 $as_echo "not found" >&6; }
11949             as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5
11950           fi
11951           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11952 $as_echo "$tool_specified" >&6; }
11953         fi
11954       fi
11955     fi
11956 
11957   fi
11958 
11959 
11960 
11961   if test "x$TOUCH" = x; then
11962     as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5
11963   fi
11964 
11965 
11966 
11967 
11968 
11969   # Publish this variable in the help.
11970 
11971 
11972   if [ -z "${TR+x}" ]; then
11973     # The variable is not set by user, try to locate tool using the code snippet
11974     for ac_prog in tr
11975 do
11976   # Extract the first word of "$ac_prog", so it can be a program name with args.
11977 set dummy $ac_prog; ac_word=$2
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11979 $as_echo_n "checking for $ac_word... " >&6; }
11980 if ${ac_cv_path_TR+:} false; then :
11981   $as_echo_n "(cached) " >&6
11982 else
11983   case $TR in
11984   [\\/]* | ?:[\\/]*)
11985   ac_cv_path_TR="$TR" # Let the user override the test with a path.
11986   ;;
11987   *)
11988   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11989 for as_dir in $PATH
11990 do
11991   IFS=$as_save_IFS
11992   test -z "$as_dir" && as_dir=.
11993     for ac_exec_ext in '' $ac_executable_extensions; do
11994   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11995     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
11996     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11997     break 2
11998   fi
11999 done
12000   done
12001 IFS=$as_save_IFS
12002 
12003   ;;
12004 esac
12005 fi
12006 TR=$ac_cv_path_TR
12007 if test -n "$TR"; then
12008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
12009 $as_echo "$TR" >&6; }
12010 else
12011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12012 $as_echo "no" >&6; }
12013 fi
12014 
12015 
12016   test -n "$TR" && break
12017 done
12018 
12019   else
12020     # The variable is set, but is it from the command line or the environment?
12021 
12022     # Try to remove the string !TR! from our list.
12023     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/}
12024     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12025       # If it failed, the variable was not from the command line. Ignore it,
12026       # but warn the user (except for BASH, which is always set by the calling BASH).
12027       if test "xTR" != xBASH; then
12028         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5
12029 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;}
12030       fi
12031       # Try to locate tool using the code snippet
12032       for ac_prog in tr
12033 do
12034   # Extract the first word of "$ac_prog", so it can be a program name with args.
12035 set dummy $ac_prog; ac_word=$2
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12037 $as_echo_n "checking for $ac_word... " >&6; }
12038 if ${ac_cv_path_TR+:} false; then :
12039   $as_echo_n "(cached) " >&6
12040 else
12041   case $TR in
12042   [\\/]* | ?:[\\/]*)
12043   ac_cv_path_TR="$TR" # Let the user override the test with a path.
12044   ;;
12045   *)
12046   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12047 for as_dir in $PATH
12048 do
12049   IFS=$as_save_IFS
12050   test -z "$as_dir" && as_dir=.
12051     for ac_exec_ext in '' $ac_executable_extensions; do
12052   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12053     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
12054     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12055     break 2
12056   fi
12057 done
12058   done
12059 IFS=$as_save_IFS
12060 
12061   ;;
12062 esac
12063 fi
12064 TR=$ac_cv_path_TR
12065 if test -n "$TR"; then
12066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
12067 $as_echo "$TR" >&6; }
12068 else
12069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12070 $as_echo "no" >&6; }
12071 fi
12072 
12073 
12074   test -n "$TR" && break
12075 done
12076 
12077     else
12078       # If it succeeded, then it was overridden by the user. We will use it
12079       # for the tool.
12080 
12081       # First remove it from the list of overridden variables, so we can test
12082       # for unknown variables in the end.
12083       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12084 
12085       # Check if we try to supply an empty value
12086       if test "x$TR" = x; then
12087         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TR= (no value)" >&5
12088 $as_echo "$as_me: Setting user supplied tool TR= (no value)" >&6;}
12089         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5
12090 $as_echo_n "checking for TR... " >&6; }
12091         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12092 $as_echo "disabled" >&6; }
12093       else
12094         # Check if the provided tool contains a complete path.
12095         tool_specified="$TR"
12096         tool_basename="${tool_specified##*/}"
12097         if test "x$tool_basename" = "x$tool_specified"; then
12098           # A command without a complete path is provided, search $PATH.
12099           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5
12100 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;}
12101           # Extract the first word of "$tool_basename", so it can be a program name with args.
12102 set dummy $tool_basename; ac_word=$2
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12104 $as_echo_n "checking for $ac_word... " >&6; }
12105 if ${ac_cv_path_TR+:} false; then :
12106   $as_echo_n "(cached) " >&6
12107 else
12108   case $TR in
12109   [\\/]* | ?:[\\/]*)
12110   ac_cv_path_TR="$TR" # Let the user override the test with a path.
12111   ;;
12112   *)
12113   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12114 for as_dir in $PATH
12115 do
12116   IFS=$as_save_IFS
12117   test -z "$as_dir" && as_dir=.
12118     for ac_exec_ext in '' $ac_executable_extensions; do
12119   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12120     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
12121     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12122     break 2
12123   fi
12124 done
12125   done
12126 IFS=$as_save_IFS
12127 
12128   ;;
12129 esac
12130 fi
12131 TR=$ac_cv_path_TR
12132 if test -n "$TR"; then
12133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
12134 $as_echo "$TR" >&6; }
12135 else
12136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12137 $as_echo "no" >&6; }
12138 fi
12139 
12140 
12141           if test "x$TR" = x; then
12142             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12143           fi
12144         else
12145           # Otherwise we believe it is a complete path. Use it as it is.
12146           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5
12147 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;}
12148           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5
12149 $as_echo_n "checking for TR... " >&6; }
12150           if test ! -x "$tool_specified"; then
12151             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12152 $as_echo "not found" >&6; }
12153             as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5
12154           fi
12155           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12156 $as_echo "$tool_specified" >&6; }
12157         fi
12158       fi
12159     fi
12160 
12161   fi
12162 
12163 
12164 
12165   if test "x$TR" = x; then
12166     as_fn_error $? "Could not find required tool for TR" "$LINENO" 5
12167   fi
12168 
12169 
12170 
12171 
12172 
12173   # Publish this variable in the help.
12174 
12175 
12176   if [ -z "${UNAME+x}" ]; then
12177     # The variable is not set by user, try to locate tool using the code snippet
12178     for ac_prog in uname
12179 do
12180   # Extract the first word of "$ac_prog", so it can be a program name with args.
12181 set dummy $ac_prog; ac_word=$2
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12183 $as_echo_n "checking for $ac_word... " >&6; }
12184 if ${ac_cv_path_UNAME+:} false; then :
12185   $as_echo_n "(cached) " >&6
12186 else
12187   case $UNAME in
12188   [\\/]* | ?:[\\/]*)
12189   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
12190   ;;
12191   *)
12192   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12193 for as_dir in $PATH
12194 do
12195   IFS=$as_save_IFS
12196   test -z "$as_dir" && as_dir=.
12197     for ac_exec_ext in '' $ac_executable_extensions; do
12198   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12199     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
12200     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12201     break 2
12202   fi
12203 done
12204   done
12205 IFS=$as_save_IFS
12206 
12207   ;;
12208 esac
12209 fi
12210 UNAME=$ac_cv_path_UNAME
12211 if test -n "$UNAME"; then
12212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
12213 $as_echo "$UNAME" >&6; }
12214 else
12215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12216 $as_echo "no" >&6; }
12217 fi
12218 
12219 
12220   test -n "$UNAME" && break
12221 done
12222 
12223   else
12224     # The variable is set, but is it from the command line or the environment?
12225 
12226     # Try to remove the string !UNAME! from our list.
12227     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/}
12228     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12229       # If it failed, the variable was not from the command line. Ignore it,
12230       # but warn the user (except for BASH, which is always set by the calling BASH).
12231       if test "xUNAME" != xBASH; then
12232         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5
12233 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;}
12234       fi
12235       # Try to locate tool using the code snippet
12236       for ac_prog in uname
12237 do
12238   # Extract the first word of "$ac_prog", so it can be a program name with args.
12239 set dummy $ac_prog; ac_word=$2
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12241 $as_echo_n "checking for $ac_word... " >&6; }
12242 if ${ac_cv_path_UNAME+:} false; then :
12243   $as_echo_n "(cached) " >&6
12244 else
12245   case $UNAME in
12246   [\\/]* | ?:[\\/]*)
12247   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
12248   ;;
12249   *)
12250   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12251 for as_dir in $PATH
12252 do
12253   IFS=$as_save_IFS
12254   test -z "$as_dir" && as_dir=.
12255     for ac_exec_ext in '' $ac_executable_extensions; do
12256   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12257     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
12258     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12259     break 2
12260   fi
12261 done
12262   done
12263 IFS=$as_save_IFS
12264 
12265   ;;
12266 esac
12267 fi
12268 UNAME=$ac_cv_path_UNAME
12269 if test -n "$UNAME"; then
12270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
12271 $as_echo "$UNAME" >&6; }
12272 else
12273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12274 $as_echo "no" >&6; }
12275 fi
12276 
12277 
12278   test -n "$UNAME" && break
12279 done
12280 
12281     else
12282       # If it succeeded, then it was overridden by the user. We will use it
12283       # for the tool.
12284 
12285       # First remove it from the list of overridden variables, so we can test
12286       # for unknown variables in the end.
12287       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12288 
12289       # Check if we try to supply an empty value
12290       if test "x$UNAME" = x; then
12291         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNAME= (no value)" >&5
12292 $as_echo "$as_me: Setting user supplied tool UNAME= (no value)" >&6;}
12293         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5
12294 $as_echo_n "checking for UNAME... " >&6; }
12295         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12296 $as_echo "disabled" >&6; }
12297       else
12298         # Check if the provided tool contains a complete path.
12299         tool_specified="$UNAME"
12300         tool_basename="${tool_specified##*/}"
12301         if test "x$tool_basename" = "x$tool_specified"; then
12302           # A command without a complete path is provided, search $PATH.
12303           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5
12304 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;}
12305           # Extract the first word of "$tool_basename", so it can be a program name with args.
12306 set dummy $tool_basename; ac_word=$2
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12308 $as_echo_n "checking for $ac_word... " >&6; }
12309 if ${ac_cv_path_UNAME+:} false; then :
12310   $as_echo_n "(cached) " >&6
12311 else
12312   case $UNAME in
12313   [\\/]* | ?:[\\/]*)
12314   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
12315   ;;
12316   *)
12317   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12318 for as_dir in $PATH
12319 do
12320   IFS=$as_save_IFS
12321   test -z "$as_dir" && as_dir=.
12322     for ac_exec_ext in '' $ac_executable_extensions; do
12323   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12324     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
12325     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12326     break 2
12327   fi
12328 done
12329   done
12330 IFS=$as_save_IFS
12331 
12332   ;;
12333 esac
12334 fi
12335 UNAME=$ac_cv_path_UNAME
12336 if test -n "$UNAME"; then
12337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
12338 $as_echo "$UNAME" >&6; }
12339 else
12340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12341 $as_echo "no" >&6; }
12342 fi
12343 
12344 
12345           if test "x$UNAME" = x; then
12346             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12347           fi
12348         else
12349           # Otherwise we believe it is a complete path. Use it as it is.
12350           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5
12351 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;}
12352           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5
12353 $as_echo_n "checking for UNAME... " >&6; }
12354           if test ! -x "$tool_specified"; then
12355             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12356 $as_echo "not found" >&6; }
12357             as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
12358           fi
12359           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12360 $as_echo "$tool_specified" >&6; }
12361         fi
12362       fi
12363     fi
12364 
12365   fi
12366 
12367 
12368 
12369   if test "x$UNAME" = x; then
12370     as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5
12371   fi
12372 
12373 
12374 
12375 
12376 
12377   # Publish this variable in the help.
12378 
12379 
12380   if [ -z "${UNIQ+x}" ]; then
12381     # The variable is not set by user, try to locate tool using the code snippet
12382     for ac_prog in uniq
12383 do
12384   # Extract the first word of "$ac_prog", so it can be a program name with args.
12385 set dummy $ac_prog; ac_word=$2
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12387 $as_echo_n "checking for $ac_word... " >&6; }
12388 if ${ac_cv_path_UNIQ+:} false; then :
12389   $as_echo_n "(cached) " >&6
12390 else
12391   case $UNIQ in
12392   [\\/]* | ?:[\\/]*)
12393   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
12394   ;;
12395   *)
12396   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12397 for as_dir in $PATH
12398 do
12399   IFS=$as_save_IFS
12400   test -z "$as_dir" && as_dir=.
12401     for ac_exec_ext in '' $ac_executable_extensions; do
12402   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12403     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
12404     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12405     break 2
12406   fi
12407 done
12408   done
12409 IFS=$as_save_IFS
12410 
12411   ;;
12412 esac
12413 fi
12414 UNIQ=$ac_cv_path_UNIQ
12415 if test -n "$UNIQ"; then
12416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
12417 $as_echo "$UNIQ" >&6; }
12418 else
12419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12420 $as_echo "no" >&6; }
12421 fi
12422 
12423 
12424   test -n "$UNIQ" && break
12425 done
12426 
12427   else
12428     # The variable is set, but is it from the command line or the environment?
12429 
12430     # Try to remove the string !UNIQ! from our list.
12431     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/}
12432     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12433       # If it failed, the variable was not from the command line. Ignore it,
12434       # but warn the user (except for BASH, which is always set by the calling BASH).
12435       if test "xUNIQ" != xBASH; then
12436         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5
12437 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;}
12438       fi
12439       # Try to locate tool using the code snippet
12440       for ac_prog in uniq
12441 do
12442   # Extract the first word of "$ac_prog", so it can be a program name with args.
12443 set dummy $ac_prog; ac_word=$2
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12445 $as_echo_n "checking for $ac_word... " >&6; }
12446 if ${ac_cv_path_UNIQ+:} false; then :
12447   $as_echo_n "(cached) " >&6
12448 else
12449   case $UNIQ in
12450   [\\/]* | ?:[\\/]*)
12451   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
12452   ;;
12453   *)
12454   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12455 for as_dir in $PATH
12456 do
12457   IFS=$as_save_IFS
12458   test -z "$as_dir" && as_dir=.
12459     for ac_exec_ext in '' $ac_executable_extensions; do
12460   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12461     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
12462     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12463     break 2
12464   fi
12465 done
12466   done
12467 IFS=$as_save_IFS
12468 
12469   ;;
12470 esac
12471 fi
12472 UNIQ=$ac_cv_path_UNIQ
12473 if test -n "$UNIQ"; then
12474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
12475 $as_echo "$UNIQ" >&6; }
12476 else
12477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12478 $as_echo "no" >&6; }
12479 fi
12480 
12481 
12482   test -n "$UNIQ" && break
12483 done
12484 
12485     else
12486       # If it succeeded, then it was overridden by the user. We will use it
12487       # for the tool.
12488 
12489       # First remove it from the list of overridden variables, so we can test
12490       # for unknown variables in the end.
12491       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12492 
12493       # Check if we try to supply an empty value
12494       if test "x$UNIQ" = x; then
12495         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNIQ= (no value)" >&5
12496 $as_echo "$as_me: Setting user supplied tool UNIQ= (no value)" >&6;}
12497         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5
12498 $as_echo_n "checking for UNIQ... " >&6; }
12499         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12500 $as_echo "disabled" >&6; }
12501       else
12502         # Check if the provided tool contains a complete path.
12503         tool_specified="$UNIQ"
12504         tool_basename="${tool_specified##*/}"
12505         if test "x$tool_basename" = "x$tool_specified"; then
12506           # A command without a complete path is provided, search $PATH.
12507           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5
12508 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;}
12509           # Extract the first word of "$tool_basename", so it can be a program name with args.
12510 set dummy $tool_basename; ac_word=$2
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12512 $as_echo_n "checking for $ac_word... " >&6; }
12513 if ${ac_cv_path_UNIQ+:} false; then :
12514   $as_echo_n "(cached) " >&6
12515 else
12516   case $UNIQ in
12517   [\\/]* | ?:[\\/]*)
12518   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
12519   ;;
12520   *)
12521   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12522 for as_dir in $PATH
12523 do
12524   IFS=$as_save_IFS
12525   test -z "$as_dir" && as_dir=.
12526     for ac_exec_ext in '' $ac_executable_extensions; do
12527   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12528     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
12529     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12530     break 2
12531   fi
12532 done
12533   done
12534 IFS=$as_save_IFS
12535 
12536   ;;
12537 esac
12538 fi
12539 UNIQ=$ac_cv_path_UNIQ
12540 if test -n "$UNIQ"; then
12541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
12542 $as_echo "$UNIQ" >&6; }
12543 else
12544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12545 $as_echo "no" >&6; }
12546 fi
12547 
12548 
12549           if test "x$UNIQ" = x; then
12550             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12551           fi
12552         else
12553           # Otherwise we believe it is a complete path. Use it as it is.
12554           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5
12555 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;}
12556           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5
12557 $as_echo_n "checking for UNIQ... " >&6; }
12558           if test ! -x "$tool_specified"; then
12559             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12560 $as_echo "not found" >&6; }
12561             as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5
12562           fi
12563           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12564 $as_echo "$tool_specified" >&6; }
12565         fi
12566       fi
12567     fi
12568 
12569   fi
12570 
12571 
12572 
12573   if test "x$UNIQ" = x; then
12574     as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5
12575   fi
12576 
12577 
12578 
12579 
12580 
12581   # Publish this variable in the help.
12582 
12583 
12584   if [ -z "${WC+x}" ]; then
12585     # The variable is not set by user, try to locate tool using the code snippet
12586     for ac_prog in wc
12587 do
12588   # Extract the first word of "$ac_prog", so it can be a program name with args.
12589 set dummy $ac_prog; ac_word=$2
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12591 $as_echo_n "checking for $ac_word... " >&6; }
12592 if ${ac_cv_path_WC+:} false; then :
12593   $as_echo_n "(cached) " >&6
12594 else
12595   case $WC in
12596   [\\/]* | ?:[\\/]*)
12597   ac_cv_path_WC="$WC" # Let the user override the test with a path.
12598   ;;
12599   *)
12600   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12601 for as_dir in $PATH
12602 do
12603   IFS=$as_save_IFS
12604   test -z "$as_dir" && as_dir=.
12605     for ac_exec_ext in '' $ac_executable_extensions; do
12606   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12607     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
12608     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12609     break 2
12610   fi
12611 done
12612   done
12613 IFS=$as_save_IFS
12614 
12615   ;;
12616 esac
12617 fi
12618 WC=$ac_cv_path_WC
12619 if test -n "$WC"; then
12620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
12621 $as_echo "$WC" >&6; }
12622 else
12623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12624 $as_echo "no" >&6; }
12625 fi
12626 
12627 
12628   test -n "$WC" && break
12629 done
12630 
12631   else
12632     # The variable is set, but is it from the command line or the environment?
12633 
12634     # Try to remove the string !WC! from our list.
12635     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/}
12636     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12637       # If it failed, the variable was not from the command line. Ignore it,
12638       # but warn the user (except for BASH, which is always set by the calling BASH).
12639       if test "xWC" != xBASH; then
12640         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5
12641 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;}
12642       fi
12643       # Try to locate tool using the code snippet
12644       for ac_prog in wc
12645 do
12646   # Extract the first word of "$ac_prog", so it can be a program name with args.
12647 set dummy $ac_prog; ac_word=$2
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12649 $as_echo_n "checking for $ac_word... " >&6; }
12650 if ${ac_cv_path_WC+:} false; then :
12651   $as_echo_n "(cached) " >&6
12652 else
12653   case $WC in
12654   [\\/]* | ?:[\\/]*)
12655   ac_cv_path_WC="$WC" # Let the user override the test with a path.
12656   ;;
12657   *)
12658   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12659 for as_dir in $PATH
12660 do
12661   IFS=$as_save_IFS
12662   test -z "$as_dir" && as_dir=.
12663     for ac_exec_ext in '' $ac_executable_extensions; do
12664   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12665     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
12666     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12667     break 2
12668   fi
12669 done
12670   done
12671 IFS=$as_save_IFS
12672 
12673   ;;
12674 esac
12675 fi
12676 WC=$ac_cv_path_WC
12677 if test -n "$WC"; then
12678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
12679 $as_echo "$WC" >&6; }
12680 else
12681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12682 $as_echo "no" >&6; }
12683 fi
12684 
12685 
12686   test -n "$WC" && break
12687 done
12688 
12689     else
12690       # If it succeeded, then it was overridden by the user. We will use it
12691       # for the tool.
12692 
12693       # First remove it from the list of overridden variables, so we can test
12694       # for unknown variables in the end.
12695       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12696 
12697       # Check if we try to supply an empty value
12698       if test "x$WC" = x; then
12699         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool WC= (no value)" >&5
12700 $as_echo "$as_me: Setting user supplied tool WC= (no value)" >&6;}
12701         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5
12702 $as_echo_n "checking for WC... " >&6; }
12703         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12704 $as_echo "disabled" >&6; }
12705       else
12706         # Check if the provided tool contains a complete path.
12707         tool_specified="$WC"
12708         tool_basename="${tool_specified##*/}"
12709         if test "x$tool_basename" = "x$tool_specified"; then
12710           # A command without a complete path is provided, search $PATH.
12711           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5
12712 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;}
12713           # Extract the first word of "$tool_basename", so it can be a program name with args.
12714 set dummy $tool_basename; ac_word=$2
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12716 $as_echo_n "checking for $ac_word... " >&6; }
12717 if ${ac_cv_path_WC+:} false; then :
12718   $as_echo_n "(cached) " >&6
12719 else
12720   case $WC in
12721   [\\/]* | ?:[\\/]*)
12722   ac_cv_path_WC="$WC" # Let the user override the test with a path.
12723   ;;
12724   *)
12725   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12726 for as_dir in $PATH
12727 do
12728   IFS=$as_save_IFS
12729   test -z "$as_dir" && as_dir=.
12730     for ac_exec_ext in '' $ac_executable_extensions; do
12731   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12732     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
12733     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12734     break 2
12735   fi
12736 done
12737   done
12738 IFS=$as_save_IFS
12739 
12740   ;;
12741 esac
12742 fi
12743 WC=$ac_cv_path_WC
12744 if test -n "$WC"; then
12745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
12746 $as_echo "$WC" >&6; }
12747 else
12748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12749 $as_echo "no" >&6; }
12750 fi
12751 
12752 
12753           if test "x$WC" = x; then
12754             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12755           fi
12756         else
12757           # Otherwise we believe it is a complete path. Use it as it is.
12758           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5
12759 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;}
12760           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5
12761 $as_echo_n "checking for WC... " >&6; }
12762           if test ! -x "$tool_specified"; then
12763             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12764 $as_echo "not found" >&6; }
12765             as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5
12766           fi
12767           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12768 $as_echo "$tool_specified" >&6; }
12769         fi
12770       fi
12771     fi
12772 
12773   fi
12774 
12775 
12776 
12777   if test "x$WC" = x; then
12778     as_fn_error $? "Could not find required tool for WC" "$LINENO" 5
12779   fi
12780 
12781 
12782 
12783 
12784 
12785   # Publish this variable in the help.
12786 
12787 
12788   if [ -z "${WHICH+x}" ]; then
12789     # The variable is not set by user, try to locate tool using the code snippet
12790     for ac_prog in which
12791 do
12792   # Extract the first word of "$ac_prog", so it can be a program name with args.
12793 set dummy $ac_prog; ac_word=$2
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12795 $as_echo_n "checking for $ac_word... " >&6; }
12796 if ${ac_cv_path_WHICH+:} false; then :
12797   $as_echo_n "(cached) " >&6
12798 else
12799   case $WHICH in
12800   [\\/]* | ?:[\\/]*)
12801   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
12802   ;;
12803   *)
12804   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12805 for as_dir in $PATH
12806 do
12807   IFS=$as_save_IFS
12808   test -z "$as_dir" && as_dir=.
12809     for ac_exec_ext in '' $ac_executable_extensions; do
12810   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12811     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
12812     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12813     break 2
12814   fi
12815 done
12816   done
12817 IFS=$as_save_IFS
12818 
12819   ;;
12820 esac
12821 fi
12822 WHICH=$ac_cv_path_WHICH
12823 if test -n "$WHICH"; then
12824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
12825 $as_echo "$WHICH" >&6; }
12826 else
12827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12828 $as_echo "no" >&6; }
12829 fi
12830 
12831 
12832   test -n "$WHICH" && break
12833 done
12834 
12835   else
12836     # The variable is set, but is it from the command line or the environment?
12837 
12838     # Try to remove the string !WHICH! from our list.
12839     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/}
12840     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12841       # If it failed, the variable was not from the command line. Ignore it,
12842       # but warn the user (except for BASH, which is always set by the calling BASH).
12843       if test "xWHICH" != xBASH; then
12844         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5
12845 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;}
12846       fi
12847       # Try to locate tool using the code snippet
12848       for ac_prog in which
12849 do
12850   # Extract the first word of "$ac_prog", so it can be a program name with args.
12851 set dummy $ac_prog; ac_word=$2
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12853 $as_echo_n "checking for $ac_word... " >&6; }
12854 if ${ac_cv_path_WHICH+:} false; then :
12855   $as_echo_n "(cached) " >&6
12856 else
12857   case $WHICH in
12858   [\\/]* | ?:[\\/]*)
12859   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
12860   ;;
12861   *)
12862   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12863 for as_dir in $PATH
12864 do
12865   IFS=$as_save_IFS
12866   test -z "$as_dir" && as_dir=.
12867     for ac_exec_ext in '' $ac_executable_extensions; do
12868   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12869     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
12870     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12871     break 2
12872   fi
12873 done
12874   done
12875 IFS=$as_save_IFS
12876 
12877   ;;
12878 esac
12879 fi
12880 WHICH=$ac_cv_path_WHICH
12881 if test -n "$WHICH"; then
12882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
12883 $as_echo "$WHICH" >&6; }
12884 else
12885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12886 $as_echo "no" >&6; }
12887 fi
12888 
12889 
12890   test -n "$WHICH" && break
12891 done
12892 
12893     else
12894       # If it succeeded, then it was overridden by the user. We will use it
12895       # for the tool.
12896 
12897       # First remove it from the list of overridden variables, so we can test
12898       # for unknown variables in the end.
12899       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12900 
12901       # Check if we try to supply an empty value
12902       if test "x$WHICH" = x; then
12903         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool WHICH= (no value)" >&5
12904 $as_echo "$as_me: Setting user supplied tool WHICH= (no value)" >&6;}
12905         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5
12906 $as_echo_n "checking for WHICH... " >&6; }
12907         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12908 $as_echo "disabled" >&6; }
12909       else
12910         # Check if the provided tool contains a complete path.
12911         tool_specified="$WHICH"
12912         tool_basename="${tool_specified##*/}"
12913         if test "x$tool_basename" = "x$tool_specified"; then
12914           # A command without a complete path is provided, search $PATH.
12915           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5
12916 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;}
12917           # Extract the first word of "$tool_basename", so it can be a program name with args.
12918 set dummy $tool_basename; ac_word=$2
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12920 $as_echo_n "checking for $ac_word... " >&6; }
12921 if ${ac_cv_path_WHICH+:} false; then :
12922   $as_echo_n "(cached) " >&6
12923 else
12924   case $WHICH in
12925   [\\/]* | ?:[\\/]*)
12926   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
12927   ;;
12928   *)
12929   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12930 for as_dir in $PATH
12931 do
12932   IFS=$as_save_IFS
12933   test -z "$as_dir" && as_dir=.
12934     for ac_exec_ext in '' $ac_executable_extensions; do
12935   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12936     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
12937     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12938     break 2
12939   fi
12940 done
12941   done
12942 IFS=$as_save_IFS
12943 
12944   ;;
12945 esac
12946 fi
12947 WHICH=$ac_cv_path_WHICH
12948 if test -n "$WHICH"; then
12949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
12950 $as_echo "$WHICH" >&6; }
12951 else
12952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12953 $as_echo "no" >&6; }
12954 fi
12955 
12956 
12957           if test "x$WHICH" = x; then
12958             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12959           fi
12960         else
12961           # Otherwise we believe it is a complete path. Use it as it is.
12962           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5
12963 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;}
12964           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5
12965 $as_echo_n "checking for WHICH... " >&6; }
12966           if test ! -x "$tool_specified"; then
12967             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12968 $as_echo "not found" >&6; }
12969             as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5
12970           fi
12971           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12972 $as_echo "$tool_specified" >&6; }
12973         fi
12974       fi
12975     fi
12976 
12977   fi
12978 
12979 
12980 
12981   if test "x$WHICH" = x; then
12982     as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5
12983   fi
12984 
12985 
12986 
12987 
12988 
12989   # Publish this variable in the help.
12990 
12991 
12992   if [ -z "${XARGS+x}" ]; then
12993     # The variable is not set by user, try to locate tool using the code snippet
12994     for ac_prog in xargs
12995 do
12996   # Extract the first word of "$ac_prog", so it can be a program name with args.
12997 set dummy $ac_prog; ac_word=$2
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12999 $as_echo_n "checking for $ac_word... " >&6; }
13000 if ${ac_cv_path_XARGS+:} false; then :
13001   $as_echo_n "(cached) " >&6
13002 else
13003   case $XARGS in
13004   [\\/]* | ?:[\\/]*)
13005   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
13006   ;;
13007   *)
13008   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13009 for as_dir in $PATH
13010 do
13011   IFS=$as_save_IFS
13012   test -z "$as_dir" && as_dir=.
13013     for ac_exec_ext in '' $ac_executable_extensions; do
13014   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13015     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
13016     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13017     break 2
13018   fi
13019 done
13020   done
13021 IFS=$as_save_IFS
13022 
13023   ;;
13024 esac
13025 fi
13026 XARGS=$ac_cv_path_XARGS
13027 if test -n "$XARGS"; then
13028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
13029 $as_echo "$XARGS" >&6; }
13030 else
13031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13032 $as_echo "no" >&6; }
13033 fi
13034 
13035 
13036   test -n "$XARGS" && break
13037 done
13038 
13039   else
13040     # The variable is set, but is it from the command line or the environment?
13041 
13042     # Try to remove the string !XARGS! from our list.
13043     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/}
13044     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13045       # If it failed, the variable was not from the command line. Ignore it,
13046       # but warn the user (except for BASH, which is always set by the calling BASH).
13047       if test "xXARGS" != xBASH; then
13048         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5
13049 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;}
13050       fi
13051       # Try to locate tool using the code snippet
13052       for ac_prog in xargs
13053 do
13054   # Extract the first word of "$ac_prog", so it can be a program name with args.
13055 set dummy $ac_prog; ac_word=$2
13056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13057 $as_echo_n "checking for $ac_word... " >&6; }
13058 if ${ac_cv_path_XARGS+:} false; then :
13059   $as_echo_n "(cached) " >&6
13060 else
13061   case $XARGS in
13062   [\\/]* | ?:[\\/]*)
13063   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
13064   ;;
13065   *)
13066   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13067 for as_dir in $PATH
13068 do
13069   IFS=$as_save_IFS
13070   test -z "$as_dir" && as_dir=.
13071     for ac_exec_ext in '' $ac_executable_extensions; do
13072   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13073     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
13074     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13075     break 2
13076   fi
13077 done
13078   done
13079 IFS=$as_save_IFS
13080 
13081   ;;
13082 esac
13083 fi
13084 XARGS=$ac_cv_path_XARGS
13085 if test -n "$XARGS"; then
13086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
13087 $as_echo "$XARGS" >&6; }
13088 else
13089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13090 $as_echo "no" >&6; }
13091 fi
13092 
13093 
13094   test -n "$XARGS" && break
13095 done
13096 
13097     else
13098       # If it succeeded, then it was overridden by the user. We will use it
13099       # for the tool.
13100 
13101       # First remove it from the list of overridden variables, so we can test
13102       # for unknown variables in the end.
13103       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13104 
13105       # Check if we try to supply an empty value
13106       if test "x$XARGS" = x; then
13107         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool XARGS= (no value)" >&5
13108 $as_echo "$as_me: Setting user supplied tool XARGS= (no value)" >&6;}
13109         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5
13110 $as_echo_n "checking for XARGS... " >&6; }
13111         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13112 $as_echo "disabled" >&6; }
13113       else
13114         # Check if the provided tool contains a complete path.
13115         tool_specified="$XARGS"
13116         tool_basename="${tool_specified##*/}"
13117         if test "x$tool_basename" = "x$tool_specified"; then
13118           # A command without a complete path is provided, search $PATH.
13119           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5
13120 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;}
13121           # Extract the first word of "$tool_basename", so it can be a program name with args.
13122 set dummy $tool_basename; ac_word=$2
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13124 $as_echo_n "checking for $ac_word... " >&6; }
13125 if ${ac_cv_path_XARGS+:} false; then :
13126   $as_echo_n "(cached) " >&6
13127 else
13128   case $XARGS in
13129   [\\/]* | ?:[\\/]*)
13130   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
13131   ;;
13132   *)
13133   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13134 for as_dir in $PATH
13135 do
13136   IFS=$as_save_IFS
13137   test -z "$as_dir" && as_dir=.
13138     for ac_exec_ext in '' $ac_executable_extensions; do
13139   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13140     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
13141     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13142     break 2
13143   fi
13144 done
13145   done
13146 IFS=$as_save_IFS
13147 
13148   ;;
13149 esac
13150 fi
13151 XARGS=$ac_cv_path_XARGS
13152 if test -n "$XARGS"; then
13153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
13154 $as_echo "$XARGS" >&6; }
13155 else
13156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13157 $as_echo "no" >&6; }
13158 fi
13159 
13160 
13161           if test "x$XARGS" = x; then
13162             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13163           fi
13164         else
13165           # Otherwise we believe it is a complete path. Use it as it is.
13166           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5
13167 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;}
13168           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5
13169 $as_echo_n "checking for XARGS... " >&6; }
13170           if test ! -x "$tool_specified"; then
13171             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13172 $as_echo "not found" >&6; }
13173             as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5
13174           fi
13175           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13176 $as_echo "$tool_specified" >&6; }
13177         fi
13178       fi
13179     fi
13180 
13181   fi
13182 
13183 
13184 
13185   if test "x$XARGS" = x; then
13186     as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5
13187   fi
13188 
13189 
13190 
13191   # Then required tools that require some special treatment.
13192 
13193 
13194   # Publish this variable in the help.
13195 
13196 
13197   if [ -z "${AWK+x}" ]; then
13198     # The variable is not set by user, try to locate tool using the code snippet
13199     for ac_prog in gawk mawk nawk awk
13200 do
13201   # Extract the first word of "$ac_prog", so it can be a program name with args.
13202 set dummy $ac_prog; ac_word=$2
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13204 $as_echo_n "checking for $ac_word... " >&6; }
13205 if ${ac_cv_prog_AWK+:} false; then :
13206   $as_echo_n "(cached) " >&6
13207 else
13208   if test -n "$AWK"; then
13209   ac_cv_prog_AWK="$AWK" # Let the user override the test.
13210 else
13211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13212 for as_dir in $PATH
13213 do
13214   IFS=$as_save_IFS
13215   test -z "$as_dir" && as_dir=.
13216     for ac_exec_ext in '' $ac_executable_extensions; do
13217   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13218     ac_cv_prog_AWK="$ac_prog"
13219     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13220     break 2
13221   fi
13222 done
13223   done
13224 IFS=$as_save_IFS
13225 
13226 fi
13227 fi
13228 AWK=$ac_cv_prog_AWK
13229 if test -n "$AWK"; then
13230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13231 $as_echo "$AWK" >&6; }
13232 else
13233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13234 $as_echo "no" >&6; }
13235 fi
13236 
13237 
13238   test -n "$AWK" && break
13239 done
13240 
13241   else
13242     # The variable is set, but is it from the command line or the environment?
13243 
13244     # Try to remove the string !AWK! from our list.
13245     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/}
13246     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13247       # If it failed, the variable was not from the command line. Ignore it,
13248       # but warn the user (except for BASH, which is always set by the calling BASH).
13249       if test "xAWK" != xBASH; then
13250         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5
13251 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;}
13252       fi
13253       # Try to locate tool using the code snippet
13254       for ac_prog in gawk mawk nawk awk
13255 do
13256   # Extract the first word of "$ac_prog", so it can be a program name with args.
13257 set dummy $ac_prog; ac_word=$2
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13259 $as_echo_n "checking for $ac_word... " >&6; }
13260 if ${ac_cv_prog_AWK+:} false; then :
13261   $as_echo_n "(cached) " >&6
13262 else
13263   if test -n "$AWK"; then
13264   ac_cv_prog_AWK="$AWK" # Let the user override the test.
13265 else
13266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13267 for as_dir in $PATH
13268 do
13269   IFS=$as_save_IFS
13270   test -z "$as_dir" && as_dir=.
13271     for ac_exec_ext in '' $ac_executable_extensions; do
13272   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13273     ac_cv_prog_AWK="$ac_prog"
13274     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13275     break 2
13276   fi
13277 done
13278   done
13279 IFS=$as_save_IFS
13280 
13281 fi
13282 fi
13283 AWK=$ac_cv_prog_AWK
13284 if test -n "$AWK"; then
13285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13286 $as_echo "$AWK" >&6; }
13287 else
13288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13289 $as_echo "no" >&6; }
13290 fi
13291 
13292 
13293   test -n "$AWK" && break
13294 done
13295 
13296     else
13297       # If it succeeded, then it was overridden by the user. We will use it
13298       # for the tool.
13299 
13300       # First remove it from the list of overridden variables, so we can test
13301       # for unknown variables in the end.
13302       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13303 
13304       # Check if we try to supply an empty value
13305       if test "x$AWK" = x; then
13306         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AWK= (no value)" >&5
13307 $as_echo "$as_me: Setting user supplied tool AWK= (no value)" >&6;}
13308         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5
13309 $as_echo_n "checking for AWK... " >&6; }
13310         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13311 $as_echo "disabled" >&6; }
13312       else
13313         # Check if the provided tool contains a complete path.
13314         tool_specified="$AWK"
13315         tool_basename="${tool_specified##*/}"
13316         if test "x$tool_basename" = "x$tool_specified"; then
13317           # A command without a complete path is provided, search $PATH.
13318           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5
13319 $as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;}
13320           # Extract the first word of "$tool_basename", so it can be a program name with args.
13321 set dummy $tool_basename; ac_word=$2
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13323 $as_echo_n "checking for $ac_word... " >&6; }
13324 if ${ac_cv_path_AWK+:} false; then :
13325   $as_echo_n "(cached) " >&6
13326 else
13327   case $AWK in
13328   [\\/]* | ?:[\\/]*)
13329   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
13330   ;;
13331   *)
13332   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13333 for as_dir in $PATH
13334 do
13335   IFS=$as_save_IFS
13336   test -z "$as_dir" && as_dir=.
13337     for ac_exec_ext in '' $ac_executable_extensions; do
13338   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13339     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
13340     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13341     break 2
13342   fi
13343 done
13344   done
13345 IFS=$as_save_IFS
13346 
13347   ;;
13348 esac
13349 fi
13350 AWK=$ac_cv_path_AWK
13351 if test -n "$AWK"; then
13352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13353 $as_echo "$AWK" >&6; }
13354 else
13355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13356 $as_echo "no" >&6; }
13357 fi
13358 
13359 
13360           if test "x$AWK" = x; then
13361             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13362           fi
13363         else
13364           # Otherwise we believe it is a complete path. Use it as it is.
13365           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5
13366 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;}
13367           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5
13368 $as_echo_n "checking for AWK... " >&6; }
13369           if test ! -x "$tool_specified"; then
13370             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13371 $as_echo "not found" >&6; }
13372             as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5
13373           fi
13374           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13375 $as_echo "$tool_specified" >&6; }
13376         fi
13377       fi
13378     fi
13379 
13380   fi
13381 
13382 
13383   if test "x$AWK" = x; then
13384     as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5
13385   fi
13386 
13387 
13388 
13389 
13390   # Publish this variable in the help.
13391 
13392 
13393   if [ -z "${GREP+x}" ]; then
13394     # The variable is not set by user, try to locate tool using the code snippet
13395     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
13396 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
13397 if ${ac_cv_path_GREP+:} false; then :
13398   $as_echo_n "(cached) " >&6
13399 else
13400   if test -z "$GREP"; then
13401   ac_path_GREP_found=false
13402   # Loop through the user's path and test for each of PROGNAME-LIST
13403   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13404 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13405 do
13406   IFS=$as_save_IFS
13407   test -z "$as_dir" && as_dir=.
13408     for ac_prog in grep ggrep; do
13409     for ac_exec_ext in '' $ac_executable_extensions; do
13410       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
13411       as_fn_executable_p "$ac_path_GREP" || continue
13412 # Check for GNU ac_path_GREP and select it if it is found.
13413   # Check for GNU $ac_path_GREP
13414 case `"$ac_path_GREP" --version 2>&1` in
13415 *GNU*)
13416   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
13417 *)
13418   ac_count=0
13419   $as_echo_n 0123456789 >"conftest.in"
13420   while :
13421   do
13422     cat "conftest.in" "conftest.in" >"conftest.tmp"
13423     mv "conftest.tmp" "conftest.in"
13424     cp "conftest.in" "conftest.nl"
13425     $as_echo 'GREP' >> "conftest.nl"
13426     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13427     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13428     as_fn_arith $ac_count + 1 && ac_count=$as_val
13429     if test $ac_count -gt ${ac_path_GREP_max-0}; then
13430       # Best one so far, save it but keep looking for a better one
13431       ac_cv_path_GREP="$ac_path_GREP"
13432       ac_path_GREP_max=$ac_count
13433     fi
13434     # 10*(2^10) chars as input seems more than enough
13435     test $ac_count -gt 10 && break
13436   done
13437   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13438 esac
13439 
13440       $ac_path_GREP_found && break 3
13441     done
13442   done
13443   done
13444 IFS=$as_save_IFS
13445   if test -z "$ac_cv_path_GREP"; then
13446     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13447   fi
13448 else
13449   ac_cv_path_GREP=$GREP
13450 fi
13451 
13452 fi
13453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
13454 $as_echo "$ac_cv_path_GREP" >&6; }
13455  GREP="$ac_cv_path_GREP"
13456 
13457 
13458   else
13459     # The variable is set, but is it from the command line or the environment?
13460 
13461     # Try to remove the string !GREP! from our list.
13462     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/}
13463     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13464       # If it failed, the variable was not from the command line. Ignore it,
13465       # but warn the user (except for BASH, which is always set by the calling BASH).
13466       if test "xGREP" != xBASH; then
13467         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5
13468 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;}
13469       fi
13470       # Try to locate tool using the code snippet
13471       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
13472 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
13473 if ${ac_cv_path_GREP+:} false; then :
13474   $as_echo_n "(cached) " >&6
13475 else
13476   if test -z "$GREP"; then
13477   ac_path_GREP_found=false
13478   # Loop through the user's path and test for each of PROGNAME-LIST
13479   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13480 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13481 do
13482   IFS=$as_save_IFS
13483   test -z "$as_dir" && as_dir=.
13484     for ac_prog in grep ggrep; do
13485     for ac_exec_ext in '' $ac_executable_extensions; do
13486       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
13487       as_fn_executable_p "$ac_path_GREP" || continue
13488 # Check for GNU ac_path_GREP and select it if it is found.
13489   # Check for GNU $ac_path_GREP
13490 case `"$ac_path_GREP" --version 2>&1` in
13491 *GNU*)
13492   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
13493 *)
13494   ac_count=0
13495   $as_echo_n 0123456789 >"conftest.in"
13496   while :
13497   do
13498     cat "conftest.in" "conftest.in" >"conftest.tmp"
13499     mv "conftest.tmp" "conftest.in"
13500     cp "conftest.in" "conftest.nl"
13501     $as_echo 'GREP' >> "conftest.nl"
13502     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13503     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13504     as_fn_arith $ac_count + 1 && ac_count=$as_val
13505     if test $ac_count -gt ${ac_path_GREP_max-0}; then
13506       # Best one so far, save it but keep looking for a better one
13507       ac_cv_path_GREP="$ac_path_GREP"
13508       ac_path_GREP_max=$ac_count
13509     fi
13510     # 10*(2^10) chars as input seems more than enough
13511     test $ac_count -gt 10 && break
13512   done
13513   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13514 esac
13515 
13516       $ac_path_GREP_found && break 3
13517     done
13518   done
13519   done
13520 IFS=$as_save_IFS
13521   if test -z "$ac_cv_path_GREP"; then
13522     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13523   fi
13524 else
13525   ac_cv_path_GREP=$GREP
13526 fi
13527 
13528 fi
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
13530 $as_echo "$ac_cv_path_GREP" >&6; }
13531  GREP="$ac_cv_path_GREP"
13532 
13533 
13534     else
13535       # If it succeeded, then it was overridden by the user. We will use it
13536       # for the tool.
13537 
13538       # First remove it from the list of overridden variables, so we can test
13539       # for unknown variables in the end.
13540       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13541 
13542       # Check if we try to supply an empty value
13543       if test "x$GREP" = x; then
13544         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GREP= (no value)" >&5
13545 $as_echo "$as_me: Setting user supplied tool GREP= (no value)" >&6;}
13546         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5
13547 $as_echo_n "checking for GREP... " >&6; }
13548         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13549 $as_echo "disabled" >&6; }
13550       else
13551         # Check if the provided tool contains a complete path.
13552         tool_specified="$GREP"
13553         tool_basename="${tool_specified##*/}"
13554         if test "x$tool_basename" = "x$tool_specified"; then
13555           # A command without a complete path is provided, search $PATH.
13556           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5
13557 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;}
13558           # Extract the first word of "$tool_basename", so it can be a program name with args.
13559 set dummy $tool_basename; ac_word=$2
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13561 $as_echo_n "checking for $ac_word... " >&6; }
13562 if ${ac_cv_path_GREP+:} false; then :
13563   $as_echo_n "(cached) " >&6
13564 else
13565   case $GREP in
13566   [\\/]* | ?:[\\/]*)
13567   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
13568   ;;
13569   *)
13570   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13571 for as_dir in $PATH
13572 do
13573   IFS=$as_save_IFS
13574   test -z "$as_dir" && as_dir=.
13575     for ac_exec_ext in '' $ac_executable_extensions; do
13576   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13577     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
13578     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13579     break 2
13580   fi
13581 done
13582   done
13583 IFS=$as_save_IFS
13584 
13585   ;;
13586 esac
13587 fi
13588 GREP=$ac_cv_path_GREP
13589 if test -n "$GREP"; then
13590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
13591 $as_echo "$GREP" >&6; }
13592 else
13593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13594 $as_echo "no" >&6; }
13595 fi
13596 
13597 
13598           if test "x$GREP" = x; then
13599             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13600           fi
13601         else
13602           # Otherwise we believe it is a complete path. Use it as it is.
13603           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5
13604 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;}
13605           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5
13606 $as_echo_n "checking for GREP... " >&6; }
13607           if test ! -x "$tool_specified"; then
13608             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13609 $as_echo "not found" >&6; }
13610             as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5
13611           fi
13612           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13613 $as_echo "$tool_specified" >&6; }
13614         fi
13615       fi
13616     fi
13617 
13618   fi
13619 
13620 
13621   if test "x$GREP" = x; then
13622     as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5
13623   fi
13624 
13625 
13626 
13627 
13628   # Publish this variable in the help.
13629 
13630 
13631   if [ -z "${EGREP+x}" ]; then
13632     # The variable is not set by user, try to locate tool using the code snippet
13633     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
13634 $as_echo_n "checking for egrep... " >&6; }
13635 if ${ac_cv_path_EGREP+:} false; then :
13636   $as_echo_n "(cached) " >&6
13637 else
13638   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
13639    then ac_cv_path_EGREP="$GREP -E"
13640    else
13641      if test -z "$EGREP"; then
13642   ac_path_EGREP_found=false
13643   # Loop through the user's path and test for each of PROGNAME-LIST
13644   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13645 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13646 do
13647   IFS=$as_save_IFS
13648   test -z "$as_dir" && as_dir=.
13649     for ac_prog in egrep; do
13650     for ac_exec_ext in '' $ac_executable_extensions; do
13651       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
13652       as_fn_executable_p "$ac_path_EGREP" || continue
13653 # Check for GNU ac_path_EGREP and select it if it is found.
13654   # Check for GNU $ac_path_EGREP
13655 case `"$ac_path_EGREP" --version 2>&1` in
13656 *GNU*)
13657   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
13658 *)
13659   ac_count=0
13660   $as_echo_n 0123456789 >"conftest.in"
13661   while :
13662   do
13663     cat "conftest.in" "conftest.in" >"conftest.tmp"
13664     mv "conftest.tmp" "conftest.in"
13665     cp "conftest.in" "conftest.nl"
13666     $as_echo 'EGREP' >> "conftest.nl"
13667     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13668     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13669     as_fn_arith $ac_count + 1 && ac_count=$as_val
13670     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
13671       # Best one so far, save it but keep looking for a better one
13672       ac_cv_path_EGREP="$ac_path_EGREP"
13673       ac_path_EGREP_max=$ac_count
13674     fi
13675     # 10*(2^10) chars as input seems more than enough
13676     test $ac_count -gt 10 && break
13677   done
13678   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13679 esac
13680 
13681       $ac_path_EGREP_found && break 3
13682     done
13683   done
13684   done
13685 IFS=$as_save_IFS
13686   if test -z "$ac_cv_path_EGREP"; then
13687     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13688   fi
13689 else
13690   ac_cv_path_EGREP=$EGREP
13691 fi
13692 
13693    fi
13694 fi
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
13696 $as_echo "$ac_cv_path_EGREP" >&6; }
13697  EGREP="$ac_cv_path_EGREP"
13698 
13699 
13700   else
13701     # The variable is set, but is it from the command line or the environment?
13702 
13703     # Try to remove the string !EGREP! from our list.
13704     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/}
13705     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13706       # If it failed, the variable was not from the command line. Ignore it,
13707       # but warn the user (except for BASH, which is always set by the calling BASH).
13708       if test "xEGREP" != xBASH; then
13709         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5
13710 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;}
13711       fi
13712       # Try to locate tool using the code snippet
13713       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
13714 $as_echo_n "checking for egrep... " >&6; }
13715 if ${ac_cv_path_EGREP+:} false; then :
13716   $as_echo_n "(cached) " >&6
13717 else
13718   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
13719    then ac_cv_path_EGREP="$GREP -E"
13720    else
13721      if test -z "$EGREP"; then
13722   ac_path_EGREP_found=false
13723   # Loop through the user's path and test for each of PROGNAME-LIST
13724   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13725 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13726 do
13727   IFS=$as_save_IFS
13728   test -z "$as_dir" && as_dir=.
13729     for ac_prog in egrep; do
13730     for ac_exec_ext in '' $ac_executable_extensions; do
13731       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
13732       as_fn_executable_p "$ac_path_EGREP" || continue
13733 # Check for GNU ac_path_EGREP and select it if it is found.
13734   # Check for GNU $ac_path_EGREP
13735 case `"$ac_path_EGREP" --version 2>&1` in
13736 *GNU*)
13737   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
13738 *)
13739   ac_count=0
13740   $as_echo_n 0123456789 >"conftest.in"
13741   while :
13742   do
13743     cat "conftest.in" "conftest.in" >"conftest.tmp"
13744     mv "conftest.tmp" "conftest.in"
13745     cp "conftest.in" "conftest.nl"
13746     $as_echo 'EGREP' >> "conftest.nl"
13747     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13748     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13749     as_fn_arith $ac_count + 1 && ac_count=$as_val
13750     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
13751       # Best one so far, save it but keep looking for a better one
13752       ac_cv_path_EGREP="$ac_path_EGREP"
13753       ac_path_EGREP_max=$ac_count
13754     fi
13755     # 10*(2^10) chars as input seems more than enough
13756     test $ac_count -gt 10 && break
13757   done
13758   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13759 esac
13760 
13761       $ac_path_EGREP_found && break 3
13762     done
13763   done
13764   done
13765 IFS=$as_save_IFS
13766   if test -z "$ac_cv_path_EGREP"; then
13767     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13768   fi
13769 else
13770   ac_cv_path_EGREP=$EGREP
13771 fi
13772 
13773    fi
13774 fi
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
13776 $as_echo "$ac_cv_path_EGREP" >&6; }
13777  EGREP="$ac_cv_path_EGREP"
13778 
13779 
13780     else
13781       # If it succeeded, then it was overridden by the user. We will use it
13782       # for the tool.
13783 
13784       # First remove it from the list of overridden variables, so we can test
13785       # for unknown variables in the end.
13786       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13787 
13788       # Check if we try to supply an empty value
13789       if test "x$EGREP" = x; then
13790         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool EGREP= (no value)" >&5
13791 $as_echo "$as_me: Setting user supplied tool EGREP= (no value)" >&6;}
13792         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5
13793 $as_echo_n "checking for EGREP... " >&6; }
13794         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13795 $as_echo "disabled" >&6; }
13796       else
13797         # Check if the provided tool contains a complete path.
13798         tool_specified="$EGREP"
13799         tool_basename="${tool_specified##*/}"
13800         if test "x$tool_basename" = "x$tool_specified"; then
13801           # A command without a complete path is provided, search $PATH.
13802           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5
13803 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;}
13804           # Extract the first word of "$tool_basename", so it can be a program name with args.
13805 set dummy $tool_basename; ac_word=$2
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13807 $as_echo_n "checking for $ac_word... " >&6; }
13808 if ${ac_cv_path_EGREP+:} false; then :
13809   $as_echo_n "(cached) " >&6
13810 else
13811   case $EGREP in
13812   [\\/]* | ?:[\\/]*)
13813   ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
13814   ;;
13815   *)
13816   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13817 for as_dir in $PATH
13818 do
13819   IFS=$as_save_IFS
13820   test -z "$as_dir" && as_dir=.
13821     for ac_exec_ext in '' $ac_executable_extensions; do
13822   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13823     ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
13824     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13825     break 2
13826   fi
13827 done
13828   done
13829 IFS=$as_save_IFS
13830 
13831   ;;
13832 esac
13833 fi
13834 EGREP=$ac_cv_path_EGREP
13835 if test -n "$EGREP"; then
13836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
13837 $as_echo "$EGREP" >&6; }
13838 else
13839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13840 $as_echo "no" >&6; }
13841 fi
13842 
13843 
13844           if test "x$EGREP" = x; then
13845             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13846           fi
13847         else
13848           # Otherwise we believe it is a complete path. Use it as it is.
13849           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5
13850 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;}
13851           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5
13852 $as_echo_n "checking for EGREP... " >&6; }
13853           if test ! -x "$tool_specified"; then
13854             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13855 $as_echo "not found" >&6; }
13856             as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
13857           fi
13858           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13859 $as_echo "$tool_specified" >&6; }
13860         fi
13861       fi
13862     fi
13863 
13864   fi
13865 
13866 
13867   if test "x$EGREP" = x; then
13868     as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5
13869   fi
13870 
13871 
13872 
13873 
13874   # Publish this variable in the help.
13875 
13876 
13877   if [ -z "${FGREP+x}" ]; then
13878     # The variable is not set by user, try to locate tool using the code snippet
13879     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13880 $as_echo_n "checking for fgrep... " >&6; }
13881 if ${ac_cv_path_FGREP+:} false; then :
13882   $as_echo_n "(cached) " >&6
13883 else
13884   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
13885    then ac_cv_path_FGREP="$GREP -F"
13886    else
13887      if test -z "$FGREP"; then
13888   ac_path_FGREP_found=false
13889   # Loop through the user's path and test for each of PROGNAME-LIST
13890   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13891 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13892 do
13893   IFS=$as_save_IFS
13894   test -z "$as_dir" && as_dir=.
13895     for ac_prog in fgrep; do
13896     for ac_exec_ext in '' $ac_executable_extensions; do
13897       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
13898       as_fn_executable_p "$ac_path_FGREP" || continue
13899 # Check for GNU ac_path_FGREP and select it if it is found.
13900   # Check for GNU $ac_path_FGREP
13901 case `"$ac_path_FGREP" --version 2>&1` in
13902 *GNU*)
13903   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
13904 *)
13905   ac_count=0
13906   $as_echo_n 0123456789 >"conftest.in"
13907   while :
13908   do
13909     cat "conftest.in" "conftest.in" >"conftest.tmp"
13910     mv "conftest.tmp" "conftest.in"
13911     cp "conftest.in" "conftest.nl"
13912     $as_echo 'FGREP' >> "conftest.nl"
13913     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
13914     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13915     as_fn_arith $ac_count + 1 && ac_count=$as_val
13916     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13917       # Best one so far, save it but keep looking for a better one
13918       ac_cv_path_FGREP="$ac_path_FGREP"
13919       ac_path_FGREP_max=$ac_count
13920     fi
13921     # 10*(2^10) chars as input seems more than enough
13922     test $ac_count -gt 10 && break
13923   done
13924   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13925 esac
13926 
13927       $ac_path_FGREP_found && break 3
13928     done
13929   done
13930   done
13931 IFS=$as_save_IFS
13932   if test -z "$ac_cv_path_FGREP"; then
13933     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13934   fi
13935 else
13936   ac_cv_path_FGREP=$FGREP
13937 fi
13938 
13939    fi
13940 fi
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13942 $as_echo "$ac_cv_path_FGREP" >&6; }
13943  FGREP="$ac_cv_path_FGREP"
13944 
13945 
13946   else
13947     # The variable is set, but is it from the command line or the environment?
13948 
13949     # Try to remove the string !FGREP! from our list.
13950     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/}
13951     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13952       # If it failed, the variable was not from the command line. Ignore it,
13953       # but warn the user (except for BASH, which is always set by the calling BASH).
13954       if test "xFGREP" != xBASH; then
13955         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5
13956 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;}
13957       fi
13958       # Try to locate tool using the code snippet
13959       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13960 $as_echo_n "checking for fgrep... " >&6; }
13961 if ${ac_cv_path_FGREP+:} false; then :
13962   $as_echo_n "(cached) " >&6
13963 else
13964   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
13965    then ac_cv_path_FGREP="$GREP -F"
13966    else
13967      if test -z "$FGREP"; then
13968   ac_path_FGREP_found=false
13969   # Loop through the user's path and test for each of PROGNAME-LIST
13970   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13971 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13972 do
13973   IFS=$as_save_IFS
13974   test -z "$as_dir" && as_dir=.
13975     for ac_prog in fgrep; do
13976     for ac_exec_ext in '' $ac_executable_extensions; do
13977       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
13978       as_fn_executable_p "$ac_path_FGREP" || continue
13979 # Check for GNU ac_path_FGREP and select it if it is found.
13980   # Check for GNU $ac_path_FGREP
13981 case `"$ac_path_FGREP" --version 2>&1` in
13982 *GNU*)
13983   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
13984 *)
13985   ac_count=0
13986   $as_echo_n 0123456789 >"conftest.in"
13987   while :
13988   do
13989     cat "conftest.in" "conftest.in" >"conftest.tmp"
13990     mv "conftest.tmp" "conftest.in"
13991     cp "conftest.in" "conftest.nl"
13992     $as_echo 'FGREP' >> "conftest.nl"
13993     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
13994     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13995     as_fn_arith $ac_count + 1 && ac_count=$as_val
13996     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13997       # Best one so far, save it but keep looking for a better one
13998       ac_cv_path_FGREP="$ac_path_FGREP"
13999       ac_path_FGREP_max=$ac_count
14000     fi
14001     # 10*(2^10) chars as input seems more than enough
14002     test $ac_count -gt 10 && break
14003   done
14004   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
14005 esac
14006 
14007       $ac_path_FGREP_found && break 3
14008     done
14009   done
14010   done
14011 IFS=$as_save_IFS
14012   if test -z "$ac_cv_path_FGREP"; then
14013     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
14014   fi
14015 else
14016   ac_cv_path_FGREP=$FGREP
14017 fi
14018 
14019    fi
14020 fi
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
14022 $as_echo "$ac_cv_path_FGREP" >&6; }
14023  FGREP="$ac_cv_path_FGREP"
14024 
14025 
14026     else
14027       # If it succeeded, then it was overridden by the user. We will use it
14028       # for the tool.
14029 
14030       # First remove it from the list of overridden variables, so we can test
14031       # for unknown variables in the end.
14032       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14033 
14034       # Check if we try to supply an empty value
14035       if test "x$FGREP" = x; then
14036         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FGREP= (no value)" >&5
14037 $as_echo "$as_me: Setting user supplied tool FGREP= (no value)" >&6;}
14038         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5
14039 $as_echo_n "checking for FGREP... " >&6; }
14040         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14041 $as_echo "disabled" >&6; }
14042       else
14043         # Check if the provided tool contains a complete path.
14044         tool_specified="$FGREP"
14045         tool_basename="${tool_specified##*/}"
14046         if test "x$tool_basename" = "x$tool_specified"; then
14047           # A command without a complete path is provided, search $PATH.
14048           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5
14049 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;}
14050           # Extract the first word of "$tool_basename", so it can be a program name with args.
14051 set dummy $tool_basename; ac_word=$2
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14053 $as_echo_n "checking for $ac_word... " >&6; }
14054 if ${ac_cv_path_FGREP+:} false; then :
14055   $as_echo_n "(cached) " >&6
14056 else
14057   case $FGREP in
14058   [\\/]* | ?:[\\/]*)
14059   ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path.
14060   ;;
14061   *)
14062   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14063 for as_dir in $PATH
14064 do
14065   IFS=$as_save_IFS
14066   test -z "$as_dir" && as_dir=.
14067     for ac_exec_ext in '' $ac_executable_extensions; do
14068   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14069     ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext"
14070     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14071     break 2
14072   fi
14073 done
14074   done
14075 IFS=$as_save_IFS
14076 
14077   ;;
14078 esac
14079 fi
14080 FGREP=$ac_cv_path_FGREP
14081 if test -n "$FGREP"; then
14082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5
14083 $as_echo "$FGREP" >&6; }
14084 else
14085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14086 $as_echo "no" >&6; }
14087 fi
14088 
14089 
14090           if test "x$FGREP" = x; then
14091             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14092           fi
14093         else
14094           # Otherwise we believe it is a complete path. Use it as it is.
14095           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5
14096 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;}
14097           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5
14098 $as_echo_n "checking for FGREP... " >&6; }
14099           if test ! -x "$tool_specified"; then
14100             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14101 $as_echo "not found" >&6; }
14102             as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
14103           fi
14104           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14105 $as_echo "$tool_specified" >&6; }
14106         fi
14107       fi
14108     fi
14109 
14110   fi
14111 
14112 
14113   if test "x$FGREP" = x; then
14114     as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5
14115   fi
14116 
14117 
14118 
14119 
14120   # Publish this variable in the help.
14121 
14122 
14123   if [ -z "${SED+x}" ]; then
14124     # The variable is not set by user, try to locate tool using the code snippet
14125     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
14126 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
14127 if ${ac_cv_path_SED+:} false; then :
14128   $as_echo_n "(cached) " >&6
14129 else
14130             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
14131      for ac_i in 1 2 3 4 5 6 7; do
14132        ac_script="$ac_script$as_nl$ac_script"
14133      done
14134      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
14135      { ac_script=; unset ac_script;}
14136      if test -z "$SED"; then
14137   ac_path_SED_found=false
14138   # Loop through the user's path and test for each of PROGNAME-LIST
14139   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14140 for as_dir in $PATH
14141 do
14142   IFS=$as_save_IFS
14143   test -z "$as_dir" && as_dir=.
14144     for ac_prog in sed gsed; do
14145     for ac_exec_ext in '' $ac_executable_extensions; do
14146       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
14147       as_fn_executable_p "$ac_path_SED" || continue
14148 # Check for GNU ac_path_SED and select it if it is found.
14149   # Check for GNU $ac_path_SED
14150 case `"$ac_path_SED" --version 2>&1` in
14151 *GNU*)
14152   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
14153 *)
14154   ac_count=0
14155   $as_echo_n 0123456789 >"conftest.in"
14156   while :
14157   do
14158     cat "conftest.in" "conftest.in" >"conftest.tmp"
14159     mv "conftest.tmp" "conftest.in"
14160     cp "conftest.in" "conftest.nl"
14161     $as_echo '' >> "conftest.nl"
14162     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
14163     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
14164     as_fn_arith $ac_count + 1 && ac_count=$as_val
14165     if test $ac_count -gt ${ac_path_SED_max-0}; then
14166       # Best one so far, save it but keep looking for a better one
14167       ac_cv_path_SED="$ac_path_SED"
14168       ac_path_SED_max=$ac_count
14169     fi
14170     # 10*(2^10) chars as input seems more than enough
14171     test $ac_count -gt 10 && break
14172   done
14173   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
14174 esac
14175 
14176       $ac_path_SED_found && break 3
14177     done
14178   done
14179   done
14180 IFS=$as_save_IFS
14181   if test -z "$ac_cv_path_SED"; then
14182     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
14183   fi
14184 else
14185   ac_cv_path_SED=$SED
14186 fi
14187 
14188 fi
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
14190 $as_echo "$ac_cv_path_SED" >&6; }
14191  SED="$ac_cv_path_SED"
14192   rm -f conftest.sed
14193 
14194   else
14195     # The variable is set, but is it from the command line or the environment?
14196 
14197     # Try to remove the string !SED! from our list.
14198     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/}
14199     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14200       # If it failed, the variable was not from the command line. Ignore it,
14201       # but warn the user (except for BASH, which is always set by the calling BASH).
14202       if test "xSED" != xBASH; then
14203         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5
14204 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;}
14205       fi
14206       # Try to locate tool using the code snippet
14207       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
14208 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
14209 if ${ac_cv_path_SED+:} false; then :
14210   $as_echo_n "(cached) " >&6
14211 else
14212             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
14213      for ac_i in 1 2 3 4 5 6 7; do
14214        ac_script="$ac_script$as_nl$ac_script"
14215      done
14216      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
14217      { ac_script=; unset ac_script;}
14218      if test -z "$SED"; then
14219   ac_path_SED_found=false
14220   # Loop through the user's path and test for each of PROGNAME-LIST
14221   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14222 for as_dir in $PATH
14223 do
14224   IFS=$as_save_IFS
14225   test -z "$as_dir" && as_dir=.
14226     for ac_prog in sed gsed; do
14227     for ac_exec_ext in '' $ac_executable_extensions; do
14228       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
14229       as_fn_executable_p "$ac_path_SED" || continue
14230 # Check for GNU ac_path_SED and select it if it is found.
14231   # Check for GNU $ac_path_SED
14232 case `"$ac_path_SED" --version 2>&1` in
14233 *GNU*)
14234   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
14235 *)
14236   ac_count=0
14237   $as_echo_n 0123456789 >"conftest.in"
14238   while :
14239   do
14240     cat "conftest.in" "conftest.in" >"conftest.tmp"
14241     mv "conftest.tmp" "conftest.in"
14242     cp "conftest.in" "conftest.nl"
14243     $as_echo '' >> "conftest.nl"
14244     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
14245     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
14246     as_fn_arith $ac_count + 1 && ac_count=$as_val
14247     if test $ac_count -gt ${ac_path_SED_max-0}; then
14248       # Best one so far, save it but keep looking for a better one
14249       ac_cv_path_SED="$ac_path_SED"
14250       ac_path_SED_max=$ac_count
14251     fi
14252     # 10*(2^10) chars as input seems more than enough
14253     test $ac_count -gt 10 && break
14254   done
14255   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
14256 esac
14257 
14258       $ac_path_SED_found && break 3
14259     done
14260   done
14261   done
14262 IFS=$as_save_IFS
14263   if test -z "$ac_cv_path_SED"; then
14264     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
14265   fi
14266 else
14267   ac_cv_path_SED=$SED
14268 fi
14269 
14270 fi
14271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
14272 $as_echo "$ac_cv_path_SED" >&6; }
14273  SED="$ac_cv_path_SED"
14274   rm -f conftest.sed
14275 
14276     else
14277       # If it succeeded, then it was overridden by the user. We will use it
14278       # for the tool.
14279 
14280       # First remove it from the list of overridden variables, so we can test
14281       # for unknown variables in the end.
14282       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14283 
14284       # Check if we try to supply an empty value
14285       if test "x$SED" = x; then
14286         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SED= (no value)" >&5
14287 $as_echo "$as_me: Setting user supplied tool SED= (no value)" >&6;}
14288         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5
14289 $as_echo_n "checking for SED... " >&6; }
14290         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14291 $as_echo "disabled" >&6; }
14292       else
14293         # Check if the provided tool contains a complete path.
14294         tool_specified="$SED"
14295         tool_basename="${tool_specified##*/}"
14296         if test "x$tool_basename" = "x$tool_specified"; then
14297           # A command without a complete path is provided, search $PATH.
14298           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5
14299 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;}
14300           # Extract the first word of "$tool_basename", so it can be a program name with args.
14301 set dummy $tool_basename; ac_word=$2
14302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14303 $as_echo_n "checking for $ac_word... " >&6; }
14304 if ${ac_cv_path_SED+:} false; then :
14305   $as_echo_n "(cached) " >&6
14306 else
14307   case $SED in
14308   [\\/]* | ?:[\\/]*)
14309   ac_cv_path_SED="$SED" # Let the user override the test with a path.
14310   ;;
14311   *)
14312   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14313 for as_dir in $PATH
14314 do
14315   IFS=$as_save_IFS
14316   test -z "$as_dir" && as_dir=.
14317     for ac_exec_ext in '' $ac_executable_extensions; do
14318   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14319     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
14320     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14321     break 2
14322   fi
14323 done
14324   done
14325 IFS=$as_save_IFS
14326 
14327   ;;
14328 esac
14329 fi
14330 SED=$ac_cv_path_SED
14331 if test -n "$SED"; then
14332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
14333 $as_echo "$SED" >&6; }
14334 else
14335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14336 $as_echo "no" >&6; }
14337 fi
14338 
14339 
14340           if test "x$SED" = x; then
14341             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14342           fi
14343         else
14344           # Otherwise we believe it is a complete path. Use it as it is.
14345           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5
14346 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;}
14347           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5
14348 $as_echo_n "checking for SED... " >&6; }
14349           if test ! -x "$tool_specified"; then
14350             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14351 $as_echo "not found" >&6; }
14352             as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5
14353           fi
14354           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14355 $as_echo "$tool_specified" >&6; }
14356         fi
14357       fi
14358     fi
14359 
14360   fi
14361 
14362 
14363   if test "x$SED" = x; then
14364     as_fn_error $? "Could not find required tool for SED" "$LINENO" 5
14365   fi
14366 
14367 
14368 
14369   # Always force rm.
14370   RM="$RM -f"
14371 
14372   # pwd behaves differently on various platforms and some don't support the -L flag.
14373   # Always use the bash builtin pwd to get uniform behavior.
14374   THEPWDCMD=pwd
14375 
14376   # These are not required on all platforms
14377 
14378 
14379   # Publish this variable in the help.
14380 
14381 
14382   if [ -z "${CYGPATH+x}" ]; then
14383     # The variable is not set by user, try to locate tool using the code snippet
14384     for ac_prog in cygpath
14385 do
14386   # Extract the first word of "$ac_prog", so it can be a program name with args.
14387 set dummy $ac_prog; ac_word=$2
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14389 $as_echo_n "checking for $ac_word... " >&6; }
14390 if ${ac_cv_path_CYGPATH+:} false; then :
14391   $as_echo_n "(cached) " >&6
14392 else
14393   case $CYGPATH in
14394   [\\/]* | ?:[\\/]*)
14395   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
14396   ;;
14397   *)
14398   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14399 for as_dir in $PATH
14400 do
14401   IFS=$as_save_IFS
14402   test -z "$as_dir" && as_dir=.
14403     for ac_exec_ext in '' $ac_executable_extensions; do
14404   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14405     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
14406     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14407     break 2
14408   fi
14409 done
14410   done
14411 IFS=$as_save_IFS
14412 
14413   ;;
14414 esac
14415 fi
14416 CYGPATH=$ac_cv_path_CYGPATH
14417 if test -n "$CYGPATH"; then
14418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
14419 $as_echo "$CYGPATH" >&6; }
14420 else
14421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14422 $as_echo "no" >&6; }
14423 fi
14424 
14425 
14426   test -n "$CYGPATH" && break
14427 done
14428 
14429   else
14430     # The variable is set, but is it from the command line or the environment?
14431 
14432     # Try to remove the string !CYGPATH! from our list.
14433     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/}
14434     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14435       # If it failed, the variable was not from the command line. Ignore it,
14436       # but warn the user (except for BASH, which is always set by the calling BASH).
14437       if test "xCYGPATH" != xBASH; then
14438         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5
14439 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;}
14440       fi
14441       # Try to locate tool using the code snippet
14442       for ac_prog in cygpath
14443 do
14444   # Extract the first word of "$ac_prog", so it can be a program name with args.
14445 set dummy $ac_prog; ac_word=$2
14446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14447 $as_echo_n "checking for $ac_word... " >&6; }
14448 if ${ac_cv_path_CYGPATH+:} false; then :
14449   $as_echo_n "(cached) " >&6
14450 else
14451   case $CYGPATH in
14452   [\\/]* | ?:[\\/]*)
14453   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
14454   ;;
14455   *)
14456   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14457 for as_dir in $PATH
14458 do
14459   IFS=$as_save_IFS
14460   test -z "$as_dir" && as_dir=.
14461     for ac_exec_ext in '' $ac_executable_extensions; do
14462   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14463     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
14464     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14465     break 2
14466   fi
14467 done
14468   done
14469 IFS=$as_save_IFS
14470 
14471   ;;
14472 esac
14473 fi
14474 CYGPATH=$ac_cv_path_CYGPATH
14475 if test -n "$CYGPATH"; then
14476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
14477 $as_echo "$CYGPATH" >&6; }
14478 else
14479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14480 $as_echo "no" >&6; }
14481 fi
14482 
14483 
14484   test -n "$CYGPATH" && break
14485 done
14486 
14487     else
14488       # If it succeeded, then it was overridden by the user. We will use it
14489       # for the tool.
14490 
14491       # First remove it from the list of overridden variables, so we can test
14492       # for unknown variables in the end.
14493       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14494 
14495       # Check if we try to supply an empty value
14496       if test "x$CYGPATH" = x; then
14497         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CYGPATH= (no value)" >&5
14498 $as_echo "$as_me: Setting user supplied tool CYGPATH= (no value)" >&6;}
14499         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5
14500 $as_echo_n "checking for CYGPATH... " >&6; }
14501         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14502 $as_echo "disabled" >&6; }
14503       else
14504         # Check if the provided tool contains a complete path.
14505         tool_specified="$CYGPATH"
14506         tool_basename="${tool_specified##*/}"
14507         if test "x$tool_basename" = "x$tool_specified"; then
14508           # A command without a complete path is provided, search $PATH.
14509           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5
14510 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;}
14511           # Extract the first word of "$tool_basename", so it can be a program name with args.
14512 set dummy $tool_basename; ac_word=$2
14513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14514 $as_echo_n "checking for $ac_word... " >&6; }
14515 if ${ac_cv_path_CYGPATH+:} false; then :
14516   $as_echo_n "(cached) " >&6
14517 else
14518   case $CYGPATH in
14519   [\\/]* | ?:[\\/]*)
14520   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
14521   ;;
14522   *)
14523   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14524 for as_dir in $PATH
14525 do
14526   IFS=$as_save_IFS
14527   test -z "$as_dir" && as_dir=.
14528     for ac_exec_ext in '' $ac_executable_extensions; do
14529   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14530     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
14531     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14532     break 2
14533   fi
14534 done
14535   done
14536 IFS=$as_save_IFS
14537 
14538   ;;
14539 esac
14540 fi
14541 CYGPATH=$ac_cv_path_CYGPATH
14542 if test -n "$CYGPATH"; then
14543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
14544 $as_echo "$CYGPATH" >&6; }
14545 else
14546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14547 $as_echo "no" >&6; }
14548 fi
14549 
14550 
14551           if test "x$CYGPATH" = x; then
14552             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14553           fi
14554         else
14555           # Otherwise we believe it is a complete path. Use it as it is.
14556           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5
14557 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;}
14558           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5
14559 $as_echo_n "checking for CYGPATH... " >&6; }
14560           if test ! -x "$tool_specified"; then
14561             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14562 $as_echo "not found" >&6; }
14563             as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5
14564           fi
14565           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14566 $as_echo "$tool_specified" >&6; }
14567         fi
14568       fi
14569     fi
14570 
14571   fi
14572 
14573 
14574 
14575 
14576   # Publish this variable in the help.
14577 
14578 
14579   if [ -z "${READLINK+x}" ]; then
14580     # The variable is not set by user, try to locate tool using the code snippet
14581     for ac_prog in greadlink readlink
14582 do
14583   # Extract the first word of "$ac_prog", so it can be a program name with args.
14584 set dummy $ac_prog; ac_word=$2
14585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14586 $as_echo_n "checking for $ac_word... " >&6; }
14587 if ${ac_cv_path_READLINK+:} false; then :
14588   $as_echo_n "(cached) " >&6
14589 else
14590   case $READLINK in
14591   [\\/]* | ?:[\\/]*)
14592   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
14593   ;;
14594   *)
14595   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14596 for as_dir in $PATH
14597 do
14598   IFS=$as_save_IFS
14599   test -z "$as_dir" && as_dir=.
14600     for ac_exec_ext in '' $ac_executable_extensions; do
14601   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14602     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
14603     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14604     break 2
14605   fi
14606 done
14607   done
14608 IFS=$as_save_IFS
14609 
14610   ;;
14611 esac
14612 fi
14613 READLINK=$ac_cv_path_READLINK
14614 if test -n "$READLINK"; then
14615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
14616 $as_echo "$READLINK" >&6; }
14617 else
14618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14619 $as_echo "no" >&6; }
14620 fi
14621 
14622 
14623   test -n "$READLINK" && break
14624 done
14625 
14626   else
14627     # The variable is set, but is it from the command line or the environment?
14628 
14629     # Try to remove the string !READLINK! from our list.
14630     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/}
14631     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14632       # If it failed, the variable was not from the command line. Ignore it,
14633       # but warn the user (except for BASH, which is always set by the calling BASH).
14634       if test "xREADLINK" != xBASH; then
14635         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5
14636 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;}
14637       fi
14638       # Try to locate tool using the code snippet
14639       for ac_prog in greadlink readlink
14640 do
14641   # Extract the first word of "$ac_prog", so it can be a program name with args.
14642 set dummy $ac_prog; ac_word=$2
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14644 $as_echo_n "checking for $ac_word... " >&6; }
14645 if ${ac_cv_path_READLINK+:} false; then :
14646   $as_echo_n "(cached) " >&6
14647 else
14648   case $READLINK in
14649   [\\/]* | ?:[\\/]*)
14650   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
14651   ;;
14652   *)
14653   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14654 for as_dir in $PATH
14655 do
14656   IFS=$as_save_IFS
14657   test -z "$as_dir" && as_dir=.
14658     for ac_exec_ext in '' $ac_executable_extensions; do
14659   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14660     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
14661     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14662     break 2
14663   fi
14664 done
14665   done
14666 IFS=$as_save_IFS
14667 
14668   ;;
14669 esac
14670 fi
14671 READLINK=$ac_cv_path_READLINK
14672 if test -n "$READLINK"; then
14673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
14674 $as_echo "$READLINK" >&6; }
14675 else
14676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14677 $as_echo "no" >&6; }
14678 fi
14679 
14680 
14681   test -n "$READLINK" && break
14682 done
14683 
14684     else
14685       # If it succeeded, then it was overridden by the user. We will use it
14686       # for the tool.
14687 
14688       # First remove it from the list of overridden variables, so we can test
14689       # for unknown variables in the end.
14690       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14691 
14692       # Check if we try to supply an empty value
14693       if test "x$READLINK" = x; then
14694         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool READLINK= (no value)" >&5
14695 $as_echo "$as_me: Setting user supplied tool READLINK= (no value)" >&6;}
14696         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5
14697 $as_echo_n "checking for READLINK... " >&6; }
14698         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14699 $as_echo "disabled" >&6; }
14700       else
14701         # Check if the provided tool contains a complete path.
14702         tool_specified="$READLINK"
14703         tool_basename="${tool_specified##*/}"
14704         if test "x$tool_basename" = "x$tool_specified"; then
14705           # A command without a complete path is provided, search $PATH.
14706           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5
14707 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;}
14708           # Extract the first word of "$tool_basename", so it can be a program name with args.
14709 set dummy $tool_basename; ac_word=$2
14710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14711 $as_echo_n "checking for $ac_word... " >&6; }
14712 if ${ac_cv_path_READLINK+:} false; then :
14713   $as_echo_n "(cached) " >&6
14714 else
14715   case $READLINK in
14716   [\\/]* | ?:[\\/]*)
14717   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
14718   ;;
14719   *)
14720   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14721 for as_dir in $PATH
14722 do
14723   IFS=$as_save_IFS
14724   test -z "$as_dir" && as_dir=.
14725     for ac_exec_ext in '' $ac_executable_extensions; do
14726   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14727     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
14728     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14729     break 2
14730   fi
14731 done
14732   done
14733 IFS=$as_save_IFS
14734 
14735   ;;
14736 esac
14737 fi
14738 READLINK=$ac_cv_path_READLINK
14739 if test -n "$READLINK"; then
14740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
14741 $as_echo "$READLINK" >&6; }
14742 else
14743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14744 $as_echo "no" >&6; }
14745 fi
14746 
14747 
14748           if test "x$READLINK" = x; then
14749             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14750           fi
14751         else
14752           # Otherwise we believe it is a complete path. Use it as it is.
14753           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5
14754 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;}
14755           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5
14756 $as_echo_n "checking for READLINK... " >&6; }
14757           if test ! -x "$tool_specified"; then
14758             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14759 $as_echo "not found" >&6; }
14760             as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5
14761           fi
14762           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14763 $as_echo "$tool_specified" >&6; }
14764         fi
14765       fi
14766     fi
14767 
14768   fi
14769 
14770 
14771 
14772 
14773   # Publish this variable in the help.
14774 
14775 
14776   if [ -z "${DF+x}" ]; then
14777     # The variable is not set by user, try to locate tool using the code snippet
14778     for ac_prog in df
14779 do
14780   # Extract the first word of "$ac_prog", so it can be a program name with args.
14781 set dummy $ac_prog; ac_word=$2
14782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14783 $as_echo_n "checking for $ac_word... " >&6; }
14784 if ${ac_cv_path_DF+:} false; then :
14785   $as_echo_n "(cached) " >&6
14786 else
14787   case $DF in
14788   [\\/]* | ?:[\\/]*)
14789   ac_cv_path_DF="$DF" # Let the user override the test with a path.
14790   ;;
14791   *)
14792   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14793 for as_dir in $PATH
14794 do
14795   IFS=$as_save_IFS
14796   test -z "$as_dir" && as_dir=.
14797     for ac_exec_ext in '' $ac_executable_extensions; do
14798   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14799     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
14800     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14801     break 2
14802   fi
14803 done
14804   done
14805 IFS=$as_save_IFS
14806 
14807   ;;
14808 esac
14809 fi
14810 DF=$ac_cv_path_DF
14811 if test -n "$DF"; then
14812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
14813 $as_echo "$DF" >&6; }
14814 else
14815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14816 $as_echo "no" >&6; }
14817 fi
14818 
14819 
14820   test -n "$DF" && break
14821 done
14822 
14823   else
14824     # The variable is set, but is it from the command line or the environment?
14825 
14826     # Try to remove the string !DF! from our list.
14827     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/}
14828     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14829       # If it failed, the variable was not from the command line. Ignore it,
14830       # but warn the user (except for BASH, which is always set by the calling BASH).
14831       if test "xDF" != xBASH; then
14832         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5
14833 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;}
14834       fi
14835       # Try to locate tool using the code snippet
14836       for ac_prog in df
14837 do
14838   # Extract the first word of "$ac_prog", so it can be a program name with args.
14839 set dummy $ac_prog; ac_word=$2
14840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14841 $as_echo_n "checking for $ac_word... " >&6; }
14842 if ${ac_cv_path_DF+:} false; then :
14843   $as_echo_n "(cached) " >&6
14844 else
14845   case $DF in
14846   [\\/]* | ?:[\\/]*)
14847   ac_cv_path_DF="$DF" # Let the user override the test with a path.
14848   ;;
14849   *)
14850   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14851 for as_dir in $PATH
14852 do
14853   IFS=$as_save_IFS
14854   test -z "$as_dir" && as_dir=.
14855     for ac_exec_ext in '' $ac_executable_extensions; do
14856   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14857     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
14858     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14859     break 2
14860   fi
14861 done
14862   done
14863 IFS=$as_save_IFS
14864 
14865   ;;
14866 esac
14867 fi
14868 DF=$ac_cv_path_DF
14869 if test -n "$DF"; then
14870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
14871 $as_echo "$DF" >&6; }
14872 else
14873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14874 $as_echo "no" >&6; }
14875 fi
14876 
14877 
14878   test -n "$DF" && break
14879 done
14880 
14881     else
14882       # If it succeeded, then it was overridden by the user. We will use it
14883       # for the tool.
14884 
14885       # First remove it from the list of overridden variables, so we can test
14886       # for unknown variables in the end.
14887       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14888 
14889       # Check if we try to supply an empty value
14890       if test "x$DF" = x; then
14891         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DF= (no value)" >&5
14892 $as_echo "$as_me: Setting user supplied tool DF= (no value)" >&6;}
14893         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5
14894 $as_echo_n "checking for DF... " >&6; }
14895         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14896 $as_echo "disabled" >&6; }
14897       else
14898         # Check if the provided tool contains a complete path.
14899         tool_specified="$DF"
14900         tool_basename="${tool_specified##*/}"
14901         if test "x$tool_basename" = "x$tool_specified"; then
14902           # A command without a complete path is provided, search $PATH.
14903           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5
14904 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;}
14905           # Extract the first word of "$tool_basename", so it can be a program name with args.
14906 set dummy $tool_basename; ac_word=$2
14907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14908 $as_echo_n "checking for $ac_word... " >&6; }
14909 if ${ac_cv_path_DF+:} false; then :
14910   $as_echo_n "(cached) " >&6
14911 else
14912   case $DF in
14913   [\\/]* | ?:[\\/]*)
14914   ac_cv_path_DF="$DF" # Let the user override the test with a path.
14915   ;;
14916   *)
14917   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14918 for as_dir in $PATH
14919 do
14920   IFS=$as_save_IFS
14921   test -z "$as_dir" && as_dir=.
14922     for ac_exec_ext in '' $ac_executable_extensions; do
14923   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14924     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
14925     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14926     break 2
14927   fi
14928 done
14929   done
14930 IFS=$as_save_IFS
14931 
14932   ;;
14933 esac
14934 fi
14935 DF=$ac_cv_path_DF
14936 if test -n "$DF"; then
14937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
14938 $as_echo "$DF" >&6; }
14939 else
14940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14941 $as_echo "no" >&6; }
14942 fi
14943 
14944 
14945           if test "x$DF" = x; then
14946             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14947           fi
14948         else
14949           # Otherwise we believe it is a complete path. Use it as it is.
14950           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5
14951 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;}
14952           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5
14953 $as_echo_n "checking for DF... " >&6; }
14954           if test ! -x "$tool_specified"; then
14955             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14956 $as_echo "not found" >&6; }
14957             as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5
14958           fi
14959           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14960 $as_echo "$tool_specified" >&6; }
14961         fi
14962       fi
14963     fi
14964 
14965   fi
14966 
14967 
14968 
14969 
14970   # Publish this variable in the help.
14971 
14972 
14973   if [ -z "${CPIO+x}" ]; then
14974     # The variable is not set by user, try to locate tool using the code snippet
14975     for ac_prog in cpio bsdcpio
14976 do
14977   # Extract the first word of "$ac_prog", so it can be a program name with args.
14978 set dummy $ac_prog; ac_word=$2
14979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14980 $as_echo_n "checking for $ac_word... " >&6; }
14981 if ${ac_cv_path_CPIO+:} false; then :
14982   $as_echo_n "(cached) " >&6
14983 else
14984   case $CPIO in
14985   [\\/]* | ?:[\\/]*)
14986   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
14987   ;;
14988   *)
14989   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14990 for as_dir in $PATH
14991 do
14992   IFS=$as_save_IFS
14993   test -z "$as_dir" && as_dir=.
14994     for ac_exec_ext in '' $ac_executable_extensions; do
14995   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14996     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
14997     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14998     break 2
14999   fi
15000 done
15001   done
15002 IFS=$as_save_IFS
15003 
15004   ;;
15005 esac
15006 fi
15007 CPIO=$ac_cv_path_CPIO
15008 if test -n "$CPIO"; then
15009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
15010 $as_echo "$CPIO" >&6; }
15011 else
15012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15013 $as_echo "no" >&6; }
15014 fi
15015 
15016 
15017   test -n "$CPIO" && break
15018 done
15019 
15020   else
15021     # The variable is set, but is it from the command line or the environment?
15022 
15023     # Try to remove the string !CPIO! from our list.
15024     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/}
15025     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
15026       # If it failed, the variable was not from the command line. Ignore it,
15027       # but warn the user (except for BASH, which is always set by the calling BASH).
15028       if test "xCPIO" != xBASH; then
15029         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5
15030 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;}
15031       fi
15032       # Try to locate tool using the code snippet
15033       for ac_prog in cpio bsdcpio
15034 do
15035   # Extract the first word of "$ac_prog", so it can be a program name with args.
15036 set dummy $ac_prog; ac_word=$2
15037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15038 $as_echo_n "checking for $ac_word... " >&6; }
15039 if ${ac_cv_path_CPIO+:} false; then :
15040   $as_echo_n "(cached) " >&6
15041 else
15042   case $CPIO in
15043   [\\/]* | ?:[\\/]*)
15044   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
15045   ;;
15046   *)
15047   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15048 for as_dir in $PATH
15049 do
15050   IFS=$as_save_IFS
15051   test -z "$as_dir" && as_dir=.
15052     for ac_exec_ext in '' $ac_executable_extensions; do
15053   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15054     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
15055     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15056     break 2
15057   fi
15058 done
15059   done
15060 IFS=$as_save_IFS
15061 
15062   ;;
15063 esac
15064 fi
15065 CPIO=$ac_cv_path_CPIO
15066 if test -n "$CPIO"; then
15067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
15068 $as_echo "$CPIO" >&6; }
15069 else
15070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15071 $as_echo "no" >&6; }
15072 fi
15073 
15074 
15075   test -n "$CPIO" && break
15076 done
15077 
15078     else
15079       # If it succeeded, then it was overridden by the user. We will use it
15080       # for the tool.
15081 
15082       # First remove it from the list of overridden variables, so we can test
15083       # for unknown variables in the end.
15084       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
15085 
15086       # Check if we try to supply an empty value
15087       if test "x$CPIO" = x; then
15088         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CPIO= (no value)" >&5
15089 $as_echo "$as_me: Setting user supplied tool CPIO= (no value)" >&6;}
15090         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5
15091 $as_echo_n "checking for CPIO... " >&6; }
15092         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
15093 $as_echo "disabled" >&6; }
15094       else
15095         # Check if the provided tool contains a complete path.
15096         tool_specified="$CPIO"
15097         tool_basename="${tool_specified##*/}"
15098         if test "x$tool_basename" = "x$tool_specified"; then
15099           # A command without a complete path is provided, search $PATH.
15100           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5
15101 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;}
15102           # Extract the first word of "$tool_basename", so it can be a program name with args.
15103 set dummy $tool_basename; ac_word=$2
15104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15105 $as_echo_n "checking for $ac_word... " >&6; }
15106 if ${ac_cv_path_CPIO+:} false; then :
15107   $as_echo_n "(cached) " >&6
15108 else
15109   case $CPIO in
15110   [\\/]* | ?:[\\/]*)
15111   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
15112   ;;
15113   *)
15114   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15115 for as_dir in $PATH
15116 do
15117   IFS=$as_save_IFS
15118   test -z "$as_dir" && as_dir=.
15119     for ac_exec_ext in '' $ac_executable_extensions; do
15120   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15121     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
15122     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15123     break 2
15124   fi
15125 done
15126   done
15127 IFS=$as_save_IFS
15128 
15129   ;;
15130 esac
15131 fi
15132 CPIO=$ac_cv_path_CPIO
15133 if test -n "$CPIO"; then
15134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
15135 $as_echo "$CPIO" >&6; }
15136 else
15137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15138 $as_echo "no" >&6; }
15139 fi
15140 
15141 
15142           if test "x$CPIO" = x; then
15143             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
15144           fi
15145         else
15146           # Otherwise we believe it is a complete path. Use it as it is.
15147           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5
15148 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;}
15149           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5
15150 $as_echo_n "checking for CPIO... " >&6; }
15151           if test ! -x "$tool_specified"; then
15152             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15153 $as_echo "not found" >&6; }
15154             as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5
15155           fi
15156           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
15157 $as_echo "$tool_specified" >&6; }
15158         fi
15159       fi
15160     fi
15161 
15162   fi
15163 
15164 
15165 
15166 
15167   # Publish this variable in the help.
15168 
15169 
15170   if [ -z "${NICE+x}" ]; then
15171     # The variable is not set by user, try to locate tool using the code snippet
15172     for ac_prog in nice
15173 do
15174   # Extract the first word of "$ac_prog", so it can be a program name with args.
15175 set dummy $ac_prog; ac_word=$2
15176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15177 $as_echo_n "checking for $ac_word... " >&6; }
15178 if ${ac_cv_path_NICE+:} false; then :
15179   $as_echo_n "(cached) " >&6
15180 else
15181   case $NICE in
15182   [\\/]* | ?:[\\/]*)
15183   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
15184   ;;
15185   *)
15186   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15187 for as_dir in $PATH
15188 do
15189   IFS=$as_save_IFS
15190   test -z "$as_dir" && as_dir=.
15191     for ac_exec_ext in '' $ac_executable_extensions; do
15192   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15193     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
15194     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15195     break 2
15196   fi
15197 done
15198   done
15199 IFS=$as_save_IFS
15200 
15201   ;;
15202 esac
15203 fi
15204 NICE=$ac_cv_path_NICE
15205 if test -n "$NICE"; then
15206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5
15207 $as_echo "$NICE" >&6; }
15208 else
15209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15210 $as_echo "no" >&6; }
15211 fi
15212 
15213 
15214   test -n "$NICE" && break
15215 done
15216 
15217   else
15218     # The variable is set, but is it from the command line or the environment?
15219 
15220     # Try to remove the string !NICE! from our list.
15221     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NICE!/}
15222     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
15223       # If it failed, the variable was not from the command line. Ignore it,
15224       # but warn the user (except for BASH, which is always set by the calling BASH).
15225       if test "xNICE" != xBASH; then
15226         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NICE from the environment. Use command line variables instead." >&5
15227 $as_echo "$as_me: WARNING: Ignoring value of NICE from the environment. Use command line variables instead." >&2;}
15228       fi
15229       # Try to locate tool using the code snippet
15230       for ac_prog in nice
15231 do
15232   # Extract the first word of "$ac_prog", so it can be a program name with args.
15233 set dummy $ac_prog; ac_word=$2
15234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15235 $as_echo_n "checking for $ac_word... " >&6; }
15236 if ${ac_cv_path_NICE+:} false; then :
15237   $as_echo_n "(cached) " >&6
15238 else
15239   case $NICE in
15240   [\\/]* | ?:[\\/]*)
15241   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
15242   ;;
15243   *)
15244   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15245 for as_dir in $PATH
15246 do
15247   IFS=$as_save_IFS
15248   test -z "$as_dir" && as_dir=.
15249     for ac_exec_ext in '' $ac_executable_extensions; do
15250   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15251     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
15252     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15253     break 2
15254   fi
15255 done
15256   done
15257 IFS=$as_save_IFS
15258 
15259   ;;
15260 esac
15261 fi
15262 NICE=$ac_cv_path_NICE
15263 if test -n "$NICE"; then
15264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5
15265 $as_echo "$NICE" >&6; }
15266 else
15267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15268 $as_echo "no" >&6; }
15269 fi
15270 
15271 
15272   test -n "$NICE" && break
15273 done
15274 
15275     else
15276       # If it succeeded, then it was overridden by the user. We will use it
15277       # for the tool.
15278 
15279       # First remove it from the list of overridden variables, so we can test
15280       # for unknown variables in the end.
15281       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
15282 
15283       # Check if we try to supply an empty value
15284       if test "x$NICE" = x; then
15285         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NICE= (no value)" >&5
15286 $as_echo "$as_me: Setting user supplied tool NICE= (no value)" >&6;}
15287         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NICE" >&5
15288 $as_echo_n "checking for NICE... " >&6; }
15289         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
15290 $as_echo "disabled" >&6; }
15291       else
15292         # Check if the provided tool contains a complete path.
15293         tool_specified="$NICE"
15294         tool_basename="${tool_specified##*/}"
15295         if test "x$tool_basename" = "x$tool_specified"; then
15296           # A command without a complete path is provided, search $PATH.
15297           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NICE=$tool_basename" >&5
15298 $as_echo "$as_me: Will search for user supplied tool NICE=$tool_basename" >&6;}
15299           # Extract the first word of "$tool_basename", so it can be a program name with args.
15300 set dummy $tool_basename; ac_word=$2
15301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15302 $as_echo_n "checking for $ac_word... " >&6; }
15303 if ${ac_cv_path_NICE+:} false; then :
15304   $as_echo_n "(cached) " >&6
15305 else
15306   case $NICE in
15307   [\\/]* | ?:[\\/]*)
15308   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
15309   ;;
15310   *)
15311   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15312 for as_dir in $PATH
15313 do
15314   IFS=$as_save_IFS
15315   test -z "$as_dir" && as_dir=.
15316     for ac_exec_ext in '' $ac_executable_extensions; do
15317   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15318     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
15319     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15320     break 2
15321   fi
15322 done
15323   done
15324 IFS=$as_save_IFS
15325 
15326   ;;
15327 esac
15328 fi
15329 NICE=$ac_cv_path_NICE
15330 if test -n "$NICE"; then
15331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5
15332 $as_echo "$NICE" >&6; }
15333 else
15334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15335 $as_echo "no" >&6; }
15336 fi
15337 
15338 
15339           if test "x$NICE" = x; then
15340             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
15341           fi
15342         else
15343           # Otherwise we believe it is a complete path. Use it as it is.
15344           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NICE=$tool_specified" >&5
15345 $as_echo "$as_me: Will use user supplied tool NICE=$tool_specified" >&6;}
15346           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NICE" >&5
15347 $as_echo_n "checking for NICE... " >&6; }
15348           if test ! -x "$tool_specified"; then
15349             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15350 $as_echo "not found" >&6; }
15351             as_fn_error $? "User supplied tool NICE=$tool_specified does not exist or is not executable" "$LINENO" 5
15352           fi
15353           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
15354 $as_echo "$tool_specified" >&6; }
15355         fi
15356       fi
15357     fi
15358 
15359   fi
15360 
15361 
15362 
15363 
15364   # Publish this variable in the help.
15365 
15366 
15367   if [ -z "${PANDOC+x}" ]; then
15368     # The variable is not set by user, try to locate tool using the code snippet
15369     for ac_prog in pandoc
15370 do
15371   # Extract the first word of "$ac_prog", so it can be a program name with args.
15372 set dummy $ac_prog; ac_word=$2
15373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15374 $as_echo_n "checking for $ac_word... " >&6; }
15375 if ${ac_cv_path_PANDOC+:} false; then :
15376   $as_echo_n "(cached) " >&6
15377 else
15378   case $PANDOC in
15379   [\\/]* | ?:[\\/]*)
15380   ac_cv_path_PANDOC="$PANDOC" # Let the user override the test with a path.
15381   ;;
15382   *)
15383   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15384 for as_dir in $PATH
15385 do
15386   IFS=$as_save_IFS
15387   test -z "$as_dir" && as_dir=.
15388     for ac_exec_ext in '' $ac_executable_extensions; do
15389   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15390     ac_cv_path_PANDOC="$as_dir/$ac_word$ac_exec_ext"
15391     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15392     break 2
15393   fi
15394 done
15395   done
15396 IFS=$as_save_IFS
15397 
15398   ;;
15399 esac
15400 fi
15401 PANDOC=$ac_cv_path_PANDOC
15402 if test -n "$PANDOC"; then
15403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANDOC" >&5
15404 $as_echo "$PANDOC" >&6; }
15405 else
15406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15407 $as_echo "no" >&6; }
15408 fi
15409 
15410 
15411   test -n "$PANDOC" && break
15412 done
15413 
15414   else
15415     # The variable is set, but is it from the command line or the environment?
15416 
15417     # Try to remove the string !PANDOC! from our list.
15418     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PANDOC!/}
15419     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
15420       # If it failed, the variable was not from the command line. Ignore it,
15421       # but warn the user (except for BASH, which is always set by the calling BASH).
15422       if test "xPANDOC" != xBASH; then
15423         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PANDOC from the environment. Use command line variables instead." >&5
15424 $as_echo "$as_me: WARNING: Ignoring value of PANDOC from the environment. Use command line variables instead." >&2;}
15425       fi
15426       # Try to locate tool using the code snippet
15427       for ac_prog in pandoc
15428 do
15429   # Extract the first word of "$ac_prog", so it can be a program name with args.
15430 set dummy $ac_prog; ac_word=$2
15431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15432 $as_echo_n "checking for $ac_word... " >&6; }
15433 if ${ac_cv_path_PANDOC+:} false; then :
15434   $as_echo_n "(cached) " >&6
15435 else
15436   case $PANDOC in
15437   [\\/]* | ?:[\\/]*)
15438   ac_cv_path_PANDOC="$PANDOC" # Let the user override the test with a path.
15439   ;;
15440   *)
15441   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15442 for as_dir in $PATH
15443 do
15444   IFS=$as_save_IFS
15445   test -z "$as_dir" && as_dir=.
15446     for ac_exec_ext in '' $ac_executable_extensions; do
15447   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15448     ac_cv_path_PANDOC="$as_dir/$ac_word$ac_exec_ext"
15449     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15450     break 2
15451   fi
15452 done
15453   done
15454 IFS=$as_save_IFS
15455 
15456   ;;
15457 esac
15458 fi
15459 PANDOC=$ac_cv_path_PANDOC
15460 if test -n "$PANDOC"; then
15461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANDOC" >&5
15462 $as_echo "$PANDOC" >&6; }
15463 else
15464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15465 $as_echo "no" >&6; }
15466 fi
15467 
15468 
15469   test -n "$PANDOC" && break
15470 done
15471 
15472     else
15473       # If it succeeded, then it was overridden by the user. We will use it
15474       # for the tool.
15475 
15476       # First remove it from the list of overridden variables, so we can test
15477       # for unknown variables in the end.
15478       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
15479 
15480       # Check if we try to supply an empty value
15481       if test "x$PANDOC" = x; then
15482         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PANDOC= (no value)" >&5
15483 $as_echo "$as_me: Setting user supplied tool PANDOC= (no value)" >&6;}
15484         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANDOC" >&5
15485 $as_echo_n "checking for PANDOC... " >&6; }
15486         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
15487 $as_echo "disabled" >&6; }
15488       else
15489         # Check if the provided tool contains a complete path.
15490         tool_specified="$PANDOC"
15491         tool_basename="${tool_specified##*/}"
15492         if test "x$tool_basename" = "x$tool_specified"; then
15493           # A command without a complete path is provided, search $PATH.
15494           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PANDOC=$tool_basename" >&5
15495 $as_echo "$as_me: Will search for user supplied tool PANDOC=$tool_basename" >&6;}
15496           # Extract the first word of "$tool_basename", so it can be a program name with args.
15497 set dummy $tool_basename; ac_word=$2
15498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15499 $as_echo_n "checking for $ac_word... " >&6; }
15500 if ${ac_cv_path_PANDOC+:} false; then :
15501   $as_echo_n "(cached) " >&6
15502 else
15503   case $PANDOC in
15504   [\\/]* | ?:[\\/]*)
15505   ac_cv_path_PANDOC="$PANDOC" # Let the user override the test with a path.
15506   ;;
15507   *)
15508   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15509 for as_dir in $PATH
15510 do
15511   IFS=$as_save_IFS
15512   test -z "$as_dir" && as_dir=.
15513     for ac_exec_ext in '' $ac_executable_extensions; do
15514   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15515     ac_cv_path_PANDOC="$as_dir/$ac_word$ac_exec_ext"
15516     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15517     break 2
15518   fi
15519 done
15520   done
15521 IFS=$as_save_IFS
15522 
15523   ;;
15524 esac
15525 fi
15526 PANDOC=$ac_cv_path_PANDOC
15527 if test -n "$PANDOC"; then
15528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANDOC" >&5
15529 $as_echo "$PANDOC" >&6; }
15530 else
15531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15532 $as_echo "no" >&6; }
15533 fi
15534 
15535 
15536           if test "x$PANDOC" = x; then
15537             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
15538           fi
15539         else
15540           # Otherwise we believe it is a complete path. Use it as it is.
15541           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PANDOC=$tool_specified" >&5
15542 $as_echo "$as_me: Will use user supplied tool PANDOC=$tool_specified" >&6;}
15543           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANDOC" >&5
15544 $as_echo_n "checking for PANDOC... " >&6; }
15545           if test ! -x "$tool_specified"; then
15546             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15547 $as_echo "not found" >&6; }
15548             as_fn_error $? "User supplied tool PANDOC=$tool_specified does not exist or is not executable" "$LINENO" 5
15549           fi
15550           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
15551 $as_echo "$tool_specified" >&6; }
15552         fi
15553       fi
15554     fi
15555 
15556   fi
15557 
15558 
15559 
15560 
15561 # Now we can determine OpenJDK build and target platforms. This is required to
15562 # have early on.
15563 # Make sure we can run config.sub.
15564 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
15565   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
15566 
15567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
15568 $as_echo_n "checking build system type... " >&6; }
15569 if ${ac_cv_build+:} false; then :
15570   $as_echo_n "(cached) " >&6
15571 else
15572   ac_build_alias=$build_alias
15573 test "x$ac_build_alias" = x &&
15574   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
15575 test "x$ac_build_alias" = x &&
15576   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
15577 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
15578   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
15579 
15580 fi
15581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
15582 $as_echo "$ac_cv_build" >&6; }
15583 case $ac_cv_build in
15584 *-*-*) ;;
15585 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
15586 esac
15587 build=$ac_cv_build
15588 ac_save_IFS=$IFS; IFS='-'
15589 set x $ac_cv_build
15590 shift
15591 build_cpu=$1
15592 build_vendor=$2
15593 shift; shift
15594 # Remember, the first character of IFS is used to create $*,
15595 # except with old shells:
15596 build_os=$*
15597 IFS=$ac_save_IFS
15598 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
15599 
15600 
15601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
15602 $as_echo_n "checking host system type... " >&6; }
15603 if ${ac_cv_host+:} false; then :
15604   $as_echo_n "(cached) " >&6
15605 else
15606   if test "x$host_alias" = x; then
15607   ac_cv_host=$ac_cv_build
15608 else
15609   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
15610     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
15611 fi
15612 
15613 fi
15614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
15615 $as_echo "$ac_cv_host" >&6; }
15616 case $ac_cv_host in
15617 *-*-*) ;;
15618 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
15619 esac
15620 host=$ac_cv_host
15621 ac_save_IFS=$IFS; IFS='-'
15622 set x $ac_cv_host
15623 shift
15624 host_cpu=$1
15625 host_vendor=$2
15626 shift; shift
15627 # Remember, the first character of IFS is used to create $*,
15628 # except with old shells:
15629 host_os=$*
15630 IFS=$ac_save_IFS
15631 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
15632 
15633 
15634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
15635 $as_echo_n "checking target system type... " >&6; }
15636 if ${ac_cv_target+:} false; then :
15637   $as_echo_n "(cached) " >&6
15638 else
15639   if test "x$target_alias" = x; then
15640   ac_cv_target=$ac_cv_host
15641 else
15642   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
15643     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
15644 fi
15645 
15646 fi
15647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
15648 $as_echo "$ac_cv_target" >&6; }
15649 case $ac_cv_target in
15650 *-*-*) ;;
15651 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
15652 esac
15653 target=$ac_cv_target
15654 ac_save_IFS=$IFS; IFS='-'
15655 set x $ac_cv_target
15656 shift
15657 target_cpu=$1
15658 target_vendor=$2
15659 shift; shift
15660 # Remember, the first character of IFS is used to create $*,
15661 # except with old shells:
15662 target_os=$*
15663 IFS=$ac_save_IFS
15664 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
15665 
15666 
15667 # The aliases save the names the user supplied, while $host etc.
15668 # will get canonicalized.
15669 test -n "$target_alias" &&
15670   test "$program_prefix$program_suffix$program_transform_name" = \
15671     NONENONEs,x,x, &&
15672   program_prefix=${target_alias}-
15673 
15674   # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target"
15675   # is confusing; it assumes you are cross-compiling a cross-compiler (!)  and "target" is thus the target of the
15676   # product you're building. The target of this build is called "host". Since this is confusing to most people, we
15677   # have not adopted that system, but use "target" as the platform we are building for. In some places though we need
15678   # to use the configure naming style.
15679 
15680 
15681 
15682 
15683 
15684   # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME
15685   # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME
15686   # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build,
15687   # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME.
15688   OPENJDK_TARGET_AUTOCONF_NAME="$host"
15689   OPENJDK_BUILD_AUTOCONF_NAME="$build"
15690 
15691 
15692 
15693   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
15694 
15695   case "$build_os" in
15696     *linux*)
15697       VAR_OS=linux
15698       VAR_OS_TYPE=unix
15699       ;;
15700     *solaris*)
15701       VAR_OS=solaris
15702       VAR_OS_TYPE=unix
15703       ;;
15704     *darwin*)
15705       VAR_OS=macosx
15706       VAR_OS_TYPE=unix
15707       ;;
15708     *bsd*)
15709       VAR_OS=bsd
15710       VAR_OS_TYPE=unix
15711       ;;
15712     *cygwin*)
15713       VAR_OS=windows
15714       VAR_OS_ENV=windows.cygwin
15715       ;;
15716     *mingw*)
15717       VAR_OS=windows
15718       VAR_OS_ENV=windows.msys
15719       ;;
15720     *aix*)
15721       VAR_OS=aix
15722       VAR_OS_TYPE=unix
15723       ;;
15724     *)
15725       as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5
15726       ;;
15727   esac
15728 
15729 
15730   # First argument is the cpu name from the trip/quad
15731   case "$build_cpu" in
15732     x86_64)
15733       VAR_CPU=x86_64
15734       VAR_CPU_ARCH=x86
15735       VAR_CPU_BITS=64
15736       VAR_CPU_ENDIAN=little
15737       ;;
15738     i?86)
15739       VAR_CPU=x86
15740       VAR_CPU_ARCH=x86
15741       VAR_CPU_BITS=32
15742       VAR_CPU_ENDIAN=little
15743       ;;
15744     arm*)
15745       VAR_CPU=arm
15746       VAR_CPU_ARCH=arm
15747       VAR_CPU_BITS=32
15748       VAR_CPU_ENDIAN=little
15749       ;;
15750     aarch64)
15751       VAR_CPU=aarch64
15752       VAR_CPU_ARCH=aarch64
15753       VAR_CPU_BITS=64
15754       VAR_CPU_ENDIAN=little
15755       ;;
15756     powerpc)
15757       VAR_CPU=ppc
15758       VAR_CPU_ARCH=ppc
15759       VAR_CPU_BITS=32
15760       VAR_CPU_ENDIAN=big
15761       ;;
15762     powerpc64)
15763       VAR_CPU=ppc64
15764       VAR_CPU_ARCH=ppc
15765       VAR_CPU_BITS=64
15766       VAR_CPU_ENDIAN=big
15767       ;;
15768     powerpc64le)
15769       VAR_CPU=ppc64le
15770       VAR_CPU_ARCH=ppc
15771       VAR_CPU_BITS=64
15772       VAR_CPU_ENDIAN=little
15773       ;;
15774     s390)
15775       VAR_CPU=s390
15776       VAR_CPU_ARCH=s390
15777       VAR_CPU_BITS=32
15778       VAR_CPU_ENDIAN=big
15779       ;;
15780     s390x)
15781       VAR_CPU=s390x
15782       VAR_CPU_ARCH=s390
15783       VAR_CPU_BITS=64
15784       VAR_CPU_ENDIAN=big
15785       ;;
15786     sparc)
15787       VAR_CPU=sparc
15788       VAR_CPU_ARCH=sparc
15789       VAR_CPU_BITS=32
15790       VAR_CPU_ENDIAN=big
15791       ;;
15792     sparcv9|sparc64)
15793       VAR_CPU=sparcv9
15794       VAR_CPU_ARCH=sparc
15795       VAR_CPU_BITS=64
15796       VAR_CPU_ENDIAN=big
15797       ;;
15798     *)
15799       as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5
15800       ;;
15801   esac
15802 
15803   # ..and setup our own variables. (Do this explicitly to facilitate searching)
15804   OPENJDK_BUILD_OS="$VAR_OS"
15805   if test "x$VAR_OS_TYPE" != x; then
15806     OPENJDK_BUILD_OS_TYPE="$VAR_OS_TYPE"
15807   else
15808     OPENJDK_BUILD_OS_TYPE="$VAR_OS"
15809   fi
15810   if test "x$VAR_OS_ENV" != x; then
15811     OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV"
15812   else
15813     OPENJDK_BUILD_OS_ENV="$VAR_OS"
15814   fi
15815   OPENJDK_BUILD_CPU="$VAR_CPU"
15816   OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH"
15817   OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS"
15818   OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN"
15819 
15820 
15821 
15822 
15823 
15824 
15825 
15826 
15827   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5
15828 $as_echo_n "checking openjdk-build os-cpu... " >&6; }
15829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5
15830 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; }
15831 
15832   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
15833 
15834   case "$host_os" in
15835     *linux*)
15836       VAR_OS=linux
15837       VAR_OS_TYPE=unix
15838       ;;
15839     *solaris*)
15840       VAR_OS=solaris
15841       VAR_OS_TYPE=unix
15842       ;;
15843     *darwin*)
15844       VAR_OS=macosx
15845       VAR_OS_TYPE=unix
15846       ;;
15847     *bsd*)
15848       VAR_OS=bsd
15849       VAR_OS_TYPE=unix
15850       ;;
15851     *cygwin*)
15852       VAR_OS=windows
15853       VAR_OS_ENV=windows.cygwin
15854       ;;
15855     *mingw*)
15856       VAR_OS=windows
15857       VAR_OS_ENV=windows.msys
15858       ;;
15859     *aix*)
15860       VAR_OS=aix
15861       VAR_OS_TYPE=unix
15862       ;;
15863     *)
15864       as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5
15865       ;;
15866   esac
15867 
15868 
15869   # First argument is the cpu name from the trip/quad
15870   case "$host_cpu" in
15871     x86_64)
15872       VAR_CPU=x86_64
15873       VAR_CPU_ARCH=x86
15874       VAR_CPU_BITS=64
15875       VAR_CPU_ENDIAN=little
15876       ;;
15877     i?86)
15878       VAR_CPU=x86
15879       VAR_CPU_ARCH=x86
15880       VAR_CPU_BITS=32
15881       VAR_CPU_ENDIAN=little
15882       ;;
15883     arm*)
15884       VAR_CPU=arm
15885       VAR_CPU_ARCH=arm
15886       VAR_CPU_BITS=32
15887       VAR_CPU_ENDIAN=little
15888       ;;
15889     aarch64)
15890       VAR_CPU=aarch64
15891       VAR_CPU_ARCH=aarch64
15892       VAR_CPU_BITS=64
15893       VAR_CPU_ENDIAN=little
15894       ;;
15895     powerpc)
15896       VAR_CPU=ppc
15897       VAR_CPU_ARCH=ppc
15898       VAR_CPU_BITS=32
15899       VAR_CPU_ENDIAN=big
15900       ;;
15901     powerpc64)
15902       VAR_CPU=ppc64
15903       VAR_CPU_ARCH=ppc
15904       VAR_CPU_BITS=64
15905       VAR_CPU_ENDIAN=big
15906       ;;
15907     powerpc64le)
15908       VAR_CPU=ppc64le
15909       VAR_CPU_ARCH=ppc
15910       VAR_CPU_BITS=64
15911       VAR_CPU_ENDIAN=little
15912       ;;
15913     s390)
15914       VAR_CPU=s390
15915       VAR_CPU_ARCH=s390
15916       VAR_CPU_BITS=32
15917       VAR_CPU_ENDIAN=big
15918       ;;
15919     s390x)
15920       VAR_CPU=s390x
15921       VAR_CPU_ARCH=s390
15922       VAR_CPU_BITS=64
15923       VAR_CPU_ENDIAN=big
15924       ;;
15925     sparc)
15926       VAR_CPU=sparc
15927       VAR_CPU_ARCH=sparc
15928       VAR_CPU_BITS=32
15929       VAR_CPU_ENDIAN=big
15930       ;;
15931     sparcv9|sparc64)
15932       VAR_CPU=sparcv9
15933       VAR_CPU_ARCH=sparc
15934       VAR_CPU_BITS=64
15935       VAR_CPU_ENDIAN=big
15936       ;;
15937     *)
15938       as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5
15939       ;;
15940   esac
15941 
15942   # ... and setup our own variables. (Do this explicitly to facilitate searching)
15943   OPENJDK_TARGET_OS="$VAR_OS"
15944   if test "x$VAR_OS_TYPE" != x; then
15945     OPENJDK_TARGET_OS_TYPE="$VAR_OS_TYPE"
15946   else
15947     OPENJDK_TARGET_OS_TYPE="$VAR_OS"
15948   fi
15949   if test "x$VAR_OS_ENV" != x; then
15950     OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV"
15951   else
15952     OPENJDK_TARGET_OS_ENV="$VAR_OS"
15953   fi
15954   OPENJDK_TARGET_CPU="$VAR_CPU"
15955   OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH"
15956   OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS"
15957   OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN"
15958 
15959 
15960 
15961 
15962 
15963 
15964 
15965 
15966   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5
15967 $as_echo_n "checking openjdk-target os-cpu... " >&6; }
15968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5
15969 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; }
15970 
15971 
15972 
15973 # Check whether --with-target-bits was given.
15974 if test "${with_target_bits+set}" = set; then :
15975   withval=$with_target_bits;
15976 fi
15977 
15978 
15979   # We have three types of compiles:
15980   # native  == normal compilation, target system == build system
15981   # cross   == traditional cross compilation, target system != build system; special toolchain needed
15982   # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines
15983   #
15984   if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then
15985     # We're doing a proper cross-compilation
15986     COMPILE_TYPE="cross"
15987   else
15988     COMPILE_TYPE="native"
15989   fi
15990 
15991   if test "x$with_target_bits" != x; then
15992     if test "x$COMPILE_TYPE" = "xcross"; then
15993       as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5
15994     fi
15995 
15996     if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
15997       # A reduced build is requested
15998       COMPILE_TYPE="reduced"
15999       OPENJDK_TARGET_CPU_BITS=32
16000       if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then
16001         OPENJDK_TARGET_CPU=x86
16002       elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then
16003         OPENJDK_TARGET_CPU=sparc
16004       else
16005         as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5
16006       fi
16007     elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
16008       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
16009     elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then
16010       { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5
16011 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;}
16012     else
16013       as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5
16014     fi
16015   fi
16016 
16017 
16018   { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5
16019 $as_echo_n "checking compilation type... " >&6; }
16020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5
16021 $as_echo "$COMPILE_TYPE" >&6; }
16022 
16023 
16024   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
16025     OPENJDK_MODULE_TARGET_OS_NAME="macos"
16026   else
16027     OPENJDK_MODULE_TARGET_OS_NAME="$OPENJDK_TARGET_OS"
16028   fi
16029 
16030   if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
16031     OPENJDK_MODULE_TARGET_OS_ARCH="amd64"
16032   else
16033     OPENJDK_MODULE_TARGET_OS_ARCH="$OPENJDK_TARGET_CPU"
16034   fi
16035 
16036 
16037 
16038 
16039 
16040 
16041   # Also store the legacy naming of the cpu.
16042   # Ie i586 and amd64 instead of x86 and x86_64
16043   OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU"
16044   if test "x$OPENJDK_TARGET_CPU" = xx86; then
16045     OPENJDK_TARGET_CPU_LEGACY="i586"
16046   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
16047     # On all platforms except MacOSX replace x86_64 with amd64.
16048     OPENJDK_TARGET_CPU_LEGACY="amd64"
16049   fi
16050 
16051 
16052   # And the second legacy naming of the cpu.
16053   # Ie i386 and amd64 instead of x86 and x86_64.
16054   OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU"
16055   if test "x$OPENJDK_TARGET_CPU" = xx86; then
16056     OPENJDK_TARGET_CPU_LEGACY_LIB="i386"
16057   elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then
16058     OPENJDK_TARGET_CPU_LEGACY_LIB="amd64"
16059   fi
16060 
16061 
16062   # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to
16063   # /amd64 or /sparcv9. This string is appended to some library paths, like this:
16064   # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so
16065   OPENJDK_TARGET_CPU_ISADIR=""
16066   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
16067     if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
16068       OPENJDK_TARGET_CPU_ISADIR="/amd64"
16069     elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
16070       OPENJDK_TARGET_CPU_ISADIR="/sparcv9"
16071     fi
16072   fi
16073 
16074 
16075   # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property
16076   OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU"
16077   if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then
16078     # On linux only, we replace x86 with i386.
16079     OPENJDK_TARGET_CPU_OSARCH="i386"
16080   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
16081     # On all platforms except macosx, we replace x86_64 with amd64.
16082     OPENJDK_TARGET_CPU_OSARCH="amd64"
16083   fi
16084 
16085 
16086   OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU"
16087   if test "x$OPENJDK_TARGET_CPU" = xx86; then
16088     OPENJDK_TARGET_CPU_JLI="i386"
16089   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
16090     # On all platforms except macosx, we replace x86_64 with amd64.
16091     OPENJDK_TARGET_CPU_JLI="amd64"
16092   fi
16093 
16094   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
16095       OPENJDK_TARGET_OS_EXPORT_DIR=macosx
16096   else
16097       OPENJDK_TARGET_OS_EXPORT_DIR=${OPENJDK_TARGET_OS_TYPE}
16098   fi
16099 
16100 
16101   # The new version string in JDK 9 also defined new naming of OS and ARCH for bundles
16102   # Macosx is osx and x86_64 is x64
16103   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
16104     OPENJDK_TARGET_OS_BUNDLE="osx"
16105   else
16106     OPENJDK_TARGET_OS_BUNDLE="$OPENJDK_TARGET_OS"
16107   fi
16108   if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
16109     OPENJDK_TARGET_CPU_BUNDLE="x64"
16110   else
16111     OPENJDK_TARGET_CPU_BUNDLE="$OPENJDK_TARGET_CPU"
16112   fi
16113   OPENJDK_TARGET_BUNDLE_PLATFORM="${OPENJDK_TARGET_OS_BUNDLE}-${OPENJDK_TARGET_CPU_BUNDLE}"
16114 
16115 
16116   if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
16117     # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in
16118     # unpack200.exe. This variable is used in
16119     # FLAGS_SETUP_COMPILER_FLAGS_FOR_JDK_HELPER.
16120     if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then
16121       OPENJDK_TARGET_ADD_LP64="-D_LP64=1"
16122     fi
16123   fi
16124 
16125   if test "x$COMPILE_TYPE" = "xcross"; then
16126     # FIXME: ... or should this include reduced builds..?
16127     DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY"
16128   else
16129     DEFINE_CROSS_COMPILE_ARCH=""
16130   fi
16131 
16132 
16133   # Convert openjdk platform names to hotspot names
16134 
16135   HOTSPOT_TARGET_OS=${OPENJDK_TARGET_OS}
16136   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
16137     HOTSPOT_TARGET_OS=bsd
16138   fi
16139 
16140 
16141   HOTSPOT_TARGET_OS_TYPE=${OPENJDK_TARGET_OS_TYPE}
16142   if test "x$OPENJDK_TARGET_OS_TYPE" = xunix; then
16143     HOTSPOT_TARGET_OS_TYPE=posix
16144   fi
16145 
16146 
16147   HOTSPOT_TARGET_CPU=${OPENJDK_TARGET_CPU}
16148   if test "x$OPENJDK_TARGET_CPU" = xx86; then
16149     HOTSPOT_TARGET_CPU=x86_32
16150   elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
16151     HOTSPOT_TARGET_CPU=sparc
16152   elif test "x$OPENJDK_TARGET_CPU" = xppc64; then
16153     HOTSPOT_TARGET_CPU=ppc_64
16154   elif test "x$OPENJDK_TARGET_CPU" = xppc64le; then
16155     HOTSPOT_TARGET_CPU=ppc_64
16156   fi
16157 
16158 
16159   # This is identical with OPENJDK_*, but define anyway for consistency.
16160   HOTSPOT_TARGET_CPU_ARCH=${OPENJDK_TARGET_CPU_ARCH}
16161 
16162 
16163   # Setup HOTSPOT_TARGET_CPU_DEFINE
16164   if test "x$OPENJDK_TARGET_CPU" = xx86; then
16165     HOTSPOT_TARGET_CPU_DEFINE=IA32
16166   elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then
16167     HOTSPOT_TARGET_CPU_DEFINE=AMD64
16168   elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
16169     HOTSPOT_TARGET_CPU_DEFINE=SPARC
16170   elif test "x$OPENJDK_TARGET_CPU" = xaarch64; then
16171     HOTSPOT_TARGET_CPU_DEFINE=AARCH64
16172   elif test "x$OPENJDK_TARGET_CPU" = xppc64; then
16173     HOTSPOT_TARGET_CPU_DEFINE=PPC64
16174   elif test "x$OPENJDK_TARGET_CPU" = xppc64le; then
16175     HOTSPOT_TARGET_CPU_DEFINE=PPC64
16176 
16177   # The cpu defines below are for zero, we don't support them directly.
16178   elif test "x$OPENJDK_TARGET_CPU" = xsparc; then
16179     HOTSPOT_TARGET_CPU_DEFINE=SPARC
16180   elif test "x$OPENJDK_TARGET_CPU" = xppc; then
16181     HOTSPOT_TARGET_CPU_DEFINE=PPC32
16182   elif test "x$OPENJDK_TARGET_CPU" = xs390; then
16183     HOTSPOT_TARGET_CPU_DEFINE=S390
16184   elif test "x$OPENJDK_TARGET_CPU" = xs390x; then
16185     HOTSPOT_TARGET_CPU_DEFINE=S390
16186   elif test "x$OPENJDK_TARGET_CPU" != x; then
16187     HOTSPOT_TARGET_CPU_DEFINE=$(echo $OPENJDK_TARGET_CPU | tr a-z A-Z)
16188   fi
16189 
16190 
16191 
16192 
16193   # Also store the legacy naming of the cpu.
16194   # Ie i586 and amd64 instead of x86 and x86_64
16195   OPENJDK_BUILD_CPU_LEGACY="$OPENJDK_BUILD_CPU"
16196   if test "x$OPENJDK_BUILD_CPU" = xx86; then
16197     OPENJDK_BUILD_CPU_LEGACY="i586"
16198   elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16199     # On all platforms except MacOSX replace x86_64 with amd64.
16200     OPENJDK_BUILD_CPU_LEGACY="amd64"
16201   fi
16202 
16203 
16204   # And the second legacy naming of the cpu.
16205   # Ie i386 and amd64 instead of x86 and x86_64.
16206   OPENJDK_BUILD_CPU_LEGACY_LIB="$OPENJDK_BUILD_CPU"
16207   if test "x$OPENJDK_BUILD_CPU" = xx86; then
16208     OPENJDK_BUILD_CPU_LEGACY_LIB="i386"
16209   elif test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16210     OPENJDK_BUILD_CPU_LEGACY_LIB="amd64"
16211   fi
16212 
16213 
16214   # OPENJDK_BUILD_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to
16215   # /amd64 or /sparcv9. This string is appended to some library paths, like this:
16216   # /usr/lib${OPENJDK_BUILD_CPU_ISADIR}/libexample.so
16217   OPENJDK_BUILD_CPU_ISADIR=""
16218   if test "x$OPENJDK_BUILD_OS" = xsolaris; then
16219     if test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16220       OPENJDK_BUILD_CPU_ISADIR="/amd64"
16221     elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then
16222       OPENJDK_BUILD_CPU_ISADIR="/sparcv9"
16223     fi
16224   fi
16225 
16226 
16227   # Setup OPENJDK_BUILD_CPU_OSARCH, which is used to set the os.arch Java system property
16228   OPENJDK_BUILD_CPU_OSARCH="$OPENJDK_BUILD_CPU"
16229   if test "x$OPENJDK_BUILD_OS" = xlinux && test "x$OPENJDK_BUILD_CPU" = xx86; then
16230     # On linux only, we replace x86 with i386.
16231     OPENJDK_BUILD_CPU_OSARCH="i386"
16232   elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16233     # On all platforms except macosx, we replace x86_64 with amd64.
16234     OPENJDK_BUILD_CPU_OSARCH="amd64"
16235   fi
16236 
16237 
16238   OPENJDK_BUILD_CPU_JLI="$OPENJDK_BUILD_CPU"
16239   if test "x$OPENJDK_BUILD_CPU" = xx86; then
16240     OPENJDK_BUILD_CPU_JLI="i386"
16241   elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16242     # On all platforms except macosx, we replace x86_64 with amd64.
16243     OPENJDK_BUILD_CPU_JLI="amd64"
16244   fi
16245 
16246   if test "x$OPENJDK_BUILD_OS" = xmacosx; then
16247       OPENJDK_BUILD_OS_EXPORT_DIR=macosx
16248   else
16249       OPENJDK_BUILD_OS_EXPORT_DIR=${OPENJDK_BUILD_OS_TYPE}
16250   fi
16251 
16252 
16253   # The new version string in JDK 9 also defined new naming of OS and ARCH for bundles
16254   # Macosx is osx and x86_64 is x64
16255   if test "x$OPENJDK_BUILD_OS" = xmacosx; then
16256     OPENJDK_BUILD_OS_BUNDLE="osx"
16257   else
16258     OPENJDK_BUILD_OS_BUNDLE="$OPENJDK_TARGET_OS"
16259   fi
16260   if test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16261     OPENJDK_BUILD_CPU_BUNDLE="x64"
16262   else
16263     OPENJDK_BUILD_CPU_BUNDLE="$OPENJDK_BUILD_CPU"
16264   fi
16265   OPENJDK_BUILD_BUNDLE_PLATFORM="${OPENJDK_BUILD_OS_BUNDLE}-${OPENJDK_BUILD_CPU_BUNDLE}"
16266 
16267 
16268   if test "x$OPENJDK_BUILD_CPU_BITS" = x64; then
16269     # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in
16270     # unpack200.exe. This variable is used in
16271     # FLAGS_SETUP_COMPILER_FLAGS_FOR_JDK_HELPER.
16272     if test "x$OPENJDK_BUILD_OS" = xlinux || test "x$OPENJDK_BUILD_OS" = xmacosx; then
16273       OPENJDK_BUILD_ADD_LP64="-D_LP64=1"
16274     fi
16275   fi
16276 
16277   if test "x$COMPILE_TYPE" = "xcross"; then
16278     # FIXME: ... or should this include reduced builds..?
16279     DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_BUILD_CPU_LEGACY"
16280   else
16281     DEFINE_CROSS_COMPILE_ARCH=""
16282   fi
16283 
16284 
16285   # Convert openjdk platform names to hotspot names
16286 
16287   HOTSPOT_BUILD_OS=${OPENJDK_BUILD_OS}
16288   if test "x$OPENJDK_BUILD_OS" = xmacosx; then
16289     HOTSPOT_BUILD_OS=bsd
16290   fi
16291 
16292 
16293   HOTSPOT_BUILD_OS_TYPE=${OPENJDK_BUILD_OS_TYPE}
16294   if test "x$OPENJDK_BUILD_OS_TYPE" = xunix; then
16295     HOTSPOT_BUILD_OS_TYPE=posix
16296   fi
16297 
16298 
16299   HOTSPOT_BUILD_CPU=${OPENJDK_BUILD_CPU}
16300   if test "x$OPENJDK_BUILD_CPU" = xx86; then
16301     HOTSPOT_BUILD_CPU=x86_32
16302   elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then
16303     HOTSPOT_BUILD_CPU=sparc
16304   elif test "x$OPENJDK_BUILD_CPU" = xppc64; then
16305     HOTSPOT_BUILD_CPU=ppc_64
16306   elif test "x$OPENJDK_BUILD_CPU" = xppc64le; then
16307     HOTSPOT_BUILD_CPU=ppc_64
16308   fi
16309 
16310 
16311   # This is identical with OPENJDK_*, but define anyway for consistency.
16312   HOTSPOT_BUILD_CPU_ARCH=${OPENJDK_BUILD_CPU_ARCH}
16313 
16314 
16315   # Setup HOTSPOT_BUILD_CPU_DEFINE
16316   if test "x$OPENJDK_BUILD_CPU" = xx86; then
16317     HOTSPOT_BUILD_CPU_DEFINE=IA32
16318   elif test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16319     HOTSPOT_BUILD_CPU_DEFINE=AMD64
16320   elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then
16321     HOTSPOT_BUILD_CPU_DEFINE=SPARC
16322   elif test "x$OPENJDK_BUILD_CPU" = xaarch64; then
16323     HOTSPOT_BUILD_CPU_DEFINE=AARCH64
16324   elif test "x$OPENJDK_BUILD_CPU" = xppc64; then
16325     HOTSPOT_BUILD_CPU_DEFINE=PPC64
16326   elif test "x$OPENJDK_BUILD_CPU" = xppc64le; then
16327     HOTSPOT_BUILD_CPU_DEFINE=PPC64
16328 
16329   # The cpu defines below are for zero, we don't support them directly.
16330   elif test "x$OPENJDK_BUILD_CPU" = xsparc; then
16331     HOTSPOT_BUILD_CPU_DEFINE=SPARC
16332   elif test "x$OPENJDK_BUILD_CPU" = xppc; then
16333     HOTSPOT_BUILD_CPU_DEFINE=PPC32
16334   elif test "x$OPENJDK_BUILD_CPU" = xs390; then
16335     HOTSPOT_BUILD_CPU_DEFINE=S390
16336   elif test "x$OPENJDK_BUILD_CPU" = xs390x; then
16337     HOTSPOT_BUILD_CPU_DEFINE=S390
16338   elif test "x$OPENJDK_BUILD_CPU" != x; then
16339     HOTSPOT_BUILD_CPU_DEFINE=$(echo $OPENJDK_BUILD_CPU | tr a-z A-Z)
16340   fi
16341 
16342 
16343 
16344 
16345 
16346 
16347 # Continue setting up basic stuff. Most remaining code require fundamental tools.
16348 
16349   # Save the current directory this script was started from
16350   CURDIR="$PWD"
16351 
16352   # We might need to rewrite ORIGINAL_PATH, if it includes "#", to quote them
16353   # for make. We couldn't do this when we retrieved ORIGINAL_PATH, since SED
16354   # was not available at that time.
16355   REWRITTEN_PATH=`$ECHO "$ORIGINAL_PATH" | $SED -e 's/#/\\\\#/g'`
16356   if test "x$REWRITTEN_PATH" != "x$ORIGINAL_PATH"; then
16357     ORIGINAL_PATH="$REWRITTEN_PATH"
16358     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&5
16359 $as_echo "$as_me: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&6;}
16360   fi
16361 
16362   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
16363     PATH_SEP=";"
16364 
16365   SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m`
16366   if test $SRC_ROOT_LENGTH -gt 100; then
16367     as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5
16368   fi
16369 
16370   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16371     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5
16372 $as_echo_n "checking cygwin release... " >&6; }
16373     CYGWIN_VERSION=`$UNAME -r`
16374     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5
16375 $as_echo "$CYGWIN_VERSION" >&6; }
16376     WINDOWS_ENV_VENDOR='cygwin'
16377     WINDOWS_ENV_VERSION="$CYGWIN_VERSION"
16378 
16379     CYGWIN_VERSION_OLD=`$ECHO $CYGWIN_VERSION | $GREP -e '^1\.0-6'`
16380     if test "x$CYGWIN_VERSION_OLD" != x; then
16381       { $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
16382 $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;}
16383       as_fn_error $? "Cannot continue" "$LINENO" 5
16384     fi
16385     if test "x$CYGPATH" = x; then
16386       as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5
16387     fi
16388     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5
16389 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; }
16390     # The cmd output ends with Windows line endings (CR/LF)
16391     cygwin_winpath_root=`cd / ; cmd /c cd | $TR -d '\r\n'`
16392     # Force cygpath to report the proper root by including a trailing space, and then stripping it off again.
16393     CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "`
16394     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5
16395 $as_echo "$CYGWIN_ROOT_PATH" >&6; }
16396     WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH"
16397     test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/`
16398     if test "x$test_cygdrive_prefix" = x; then
16399       as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5
16400     fi
16401   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16402     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5
16403 $as_echo_n "checking msys release... " >&6; }
16404     MSYS_VERSION=`$UNAME -r`
16405     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5
16406 $as_echo "$MSYS_VERSION" >&6; }
16407 
16408     WINDOWS_ENV_VENDOR='msys'
16409     WINDOWS_ENV_VERSION="$MSYS_VERSION"
16410 
16411     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5
16412 $as_echo_n "checking msys root directory as unix-style path... " >&6; }
16413     # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
16414     MSYS_ROOT_PATH=`cd / ; cmd /c cd | $GREP ".*"`
16415 
16416   windows_path="$MSYS_ROOT_PATH"
16417   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16418     unix_path=`$CYGPATH -u "$windows_path"`
16419     MSYS_ROOT_PATH="$unix_path"
16420   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16421     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16422     MSYS_ROOT_PATH="$unix_path"
16423   fi
16424 
16425     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5
16426 $as_echo "$MSYS_ROOT_PATH" >&6; }
16427     WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH"
16428   else
16429     as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5
16430   fi
16431 
16432   # Test if windows or unix (cygwin/msys) find is first in path.
16433   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5
16434 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; }
16435   FIND_BINARY_OUTPUT=`find --version 2>&1`
16436   if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then
16437     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5
16438 $as_echo "unix style" >&6; }
16439   elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then
16440     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5
16441 $as_echo "Windows" >&6; }
16442     { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5
16443 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;}
16444     { $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
16445 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;}
16446     as_fn_error $? "Cannot continue" "$LINENO" 5
16447   else
16448     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
16449 $as_echo "unknown" >&6; }
16450     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5
16451 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;}
16452   fi
16453 
16454   else
16455     PATH_SEP=":"
16456   fi
16457 
16458 
16459   # We get the top-level directory from the supporting wrappers.
16460   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for top-level directory" >&5
16461 $as_echo_n "checking for top-level directory... " >&6; }
16462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5
16463 $as_echo "$TOPDIR" >&6; }
16464 
16465 
16466   # Save the original version of TOPDIR for string comparisons
16467   ORIGINAL_TOPDIR="$TOPDIR"
16468 
16469 
16470   # We can only call BASIC_FIXUP_PATH after BASIC_CHECK_PATHS_WINDOWS.
16471 
16472   # Only process if variable expands to non-empty
16473 
16474   if test "x$CURDIR" != x; then
16475     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16476 
16477   # Input might be given as Windows format, start by converting to
16478   # unix format.
16479   path="$CURDIR"
16480   new_path=`$CYGPATH -u "$path"`
16481 
16482   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16483   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16484   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16485   # "foo.exe" is OK but "foo" is an error.
16486   #
16487   # This test is therefore slightly more accurate than "test -f" to check for file precense.
16488   # It is also a way to make sure we got the proper file name for the real test later on.
16489   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16490   if test "x$test_shortpath" = x; then
16491     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
16492 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
16493     as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5
16494   fi
16495 
16496   # Call helper function which possibly converts this using DOS-style short mode.
16497   # If so, the updated path is stored in $new_path.
16498 
16499   input_path="$new_path"
16500   # Check if we need to convert this using DOS-style short mode. If the path
16501   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16502   # take no chances and rewrite it.
16503   # Note: m4 eats our [], so we need to use [ and ] instead.
16504   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16505   if test "x$has_forbidden_chars" != x; then
16506     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16507     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16508     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16509     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16510       # Going to short mode and back again did indeed matter. Since short mode is
16511       # case insensitive, let's make it lowercase to improve readability.
16512       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16513       # Now convert it back to Unix-style (cygpath)
16514       input_path=`$CYGPATH -u "$shortmode_path"`
16515       new_path="$input_path"
16516     fi
16517   fi
16518 
16519   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16520   if test "x$test_cygdrive_prefix" = x; then
16521     # As a simple fix, exclude /usr/bin since it's not a real path.
16522     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
16523       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16524       # a path prefixed by /cygdrive for fixpath to work.
16525       new_path="$CYGWIN_ROOT_PATH$input_path"
16526     fi
16527   fi
16528 
16529 
16530   if test "x$path" != "x$new_path"; then
16531     CURDIR="$new_path"
16532     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
16533 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
16534   fi
16535 
16536     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16537 
16538   path="$CURDIR"
16539   has_colon=`$ECHO $path | $GREP ^.:`
16540   new_path="$path"
16541   if test "x$has_colon" = x; then
16542     # Not in mixed or Windows style, start by that.
16543     new_path=`cmd //c echo $path`
16544   fi
16545 
16546 
16547   input_path="$new_path"
16548   # Check if we need to convert this using DOS-style short mode. If the path
16549   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16550   # take no chances and rewrite it.
16551   # Note: m4 eats our [], so we need to use [ and ] instead.
16552   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16553   if test "x$has_forbidden_chars" != x; then
16554     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16555     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16556   fi
16557 
16558 
16559   windows_path="$new_path"
16560   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16561     unix_path=`$CYGPATH -u "$windows_path"`
16562     new_path="$unix_path"
16563   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16564     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16565     new_path="$unix_path"
16566   fi
16567 
16568   if test "x$path" != "x$new_path"; then
16569     CURDIR="$new_path"
16570     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
16571 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
16572   fi
16573 
16574   # Save the first 10 bytes of this path to the storage, so fixpath can work.
16575   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16576 
16577     else
16578       # We're on a unix platform. Hooray! :)
16579       path="$CURDIR"
16580       has_space=`$ECHO "$path" | $GREP " "`
16581       if test "x$has_space" != x; then
16582         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
16583 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
16584         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
16585       fi
16586 
16587       # Use eval to expand a potential ~
16588       eval path="$path"
16589       if test ! -f "$path" && test ! -d "$path"; then
16590         as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5
16591       fi
16592 
16593       if test -d "$path"; then
16594         CURDIR="`cd "$path"; $THEPWDCMD -L`"
16595       else
16596         dir="`$DIRNAME "$path"`"
16597         base="`$BASENAME "$path"`"
16598         CURDIR="`cd "$dir"; $THEPWDCMD -L`/$base"
16599       fi
16600     fi
16601   fi
16602 
16603 
16604   # Only process if variable expands to non-empty
16605 
16606   if test "x$TOPDIR" != x; then
16607     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16608 
16609   # Input might be given as Windows format, start by converting to
16610   # unix format.
16611   path="$TOPDIR"
16612   new_path=`$CYGPATH -u "$path"`
16613 
16614   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16615   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16616   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16617   # "foo.exe" is OK but "foo" is an error.
16618   #
16619   # This test is therefore slightly more accurate than "test -f" to check for file precense.
16620   # It is also a way to make sure we got the proper file name for the real test later on.
16621   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16622   if test "x$test_shortpath" = x; then
16623     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
16624 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
16625     as_fn_error $? "Cannot locate the the path of TOPDIR" "$LINENO" 5
16626   fi
16627 
16628   # Call helper function which possibly converts this using DOS-style short mode.
16629   # If so, the updated path is stored in $new_path.
16630 
16631   input_path="$new_path"
16632   # Check if we need to convert this using DOS-style short mode. If the path
16633   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16634   # take no chances and rewrite it.
16635   # Note: m4 eats our [], so we need to use [ and ] instead.
16636   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16637   if test "x$has_forbidden_chars" != x; then
16638     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16639     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16640     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16641     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16642       # Going to short mode and back again did indeed matter. Since short mode is
16643       # case insensitive, let's make it lowercase to improve readability.
16644       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16645       # Now convert it back to Unix-style (cygpath)
16646       input_path=`$CYGPATH -u "$shortmode_path"`
16647       new_path="$input_path"
16648     fi
16649   fi
16650 
16651   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16652   if test "x$test_cygdrive_prefix" = x; then
16653     # As a simple fix, exclude /usr/bin since it's not a real path.
16654     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
16655       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16656       # a path prefixed by /cygdrive for fixpath to work.
16657       new_path="$CYGWIN_ROOT_PATH$input_path"
16658     fi
16659   fi
16660 
16661 
16662   if test "x$path" != "x$new_path"; then
16663     TOPDIR="$new_path"
16664     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
16665 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
16666   fi
16667 
16668     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16669 
16670   path="$TOPDIR"
16671   has_colon=`$ECHO $path | $GREP ^.:`
16672   new_path="$path"
16673   if test "x$has_colon" = x; then
16674     # Not in mixed or Windows style, start by that.
16675     new_path=`cmd //c echo $path`
16676   fi
16677 
16678 
16679   input_path="$new_path"
16680   # Check if we need to convert this using DOS-style short mode. If the path
16681   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16682   # take no chances and rewrite it.
16683   # Note: m4 eats our [], so we need to use [ and ] instead.
16684   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16685   if test "x$has_forbidden_chars" != x; then
16686     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16687     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16688   fi
16689 
16690 
16691   windows_path="$new_path"
16692   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16693     unix_path=`$CYGPATH -u "$windows_path"`
16694     new_path="$unix_path"
16695   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16696     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16697     new_path="$unix_path"
16698   fi
16699 
16700   if test "x$path" != "x$new_path"; then
16701     TOPDIR="$new_path"
16702     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
16703 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
16704   fi
16705 
16706   # Save the first 10 bytes of this path to the storage, so fixpath can work.
16707   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16708 
16709     else
16710       # We're on a unix platform. Hooray! :)
16711       path="$TOPDIR"
16712       has_space=`$ECHO "$path" | $GREP " "`
16713       if test "x$has_space" != x; then
16714         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
16715 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
16716         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
16717       fi
16718 
16719       # Use eval to expand a potential ~
16720       eval path="$path"
16721       if test ! -f "$path" && test ! -d "$path"; then
16722         as_fn_error $? "The path of TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5
16723       fi
16724 
16725       if test -d "$path"; then
16726         TOPDIR="`cd "$path"; $THEPWDCMD -L`"
16727       else
16728         dir="`$DIRNAME "$path"`"
16729         base="`$BASENAME "$path"`"
16730         TOPDIR="`cd "$dir"; $THEPWDCMD -L`/$base"
16731       fi
16732     fi
16733   fi
16734 
16735   # SRC_ROOT is a traditional alias for TOPDIR.
16736   SRC_ROOT=$TOPDIR
16737 
16738   # Calculate a canonical version of TOPDIR for string comparisons
16739   CANONICAL_TOPDIR=$TOPDIR
16740 
16741   if test "x$OPENJDK_BUILD_OS" != xwindows; then
16742     # Follow a chain of symbolic links. Use readlink
16743     # where it exists, else fall back to horribly
16744     # complicated shell code.
16745     if test "x$READLINK_TESTED" != yes; then
16746       # On MacOSX there is a readlink tool with a different
16747       # purpose than the GNU readlink tool. Check the found readlink.
16748       ISGNU=`$READLINK --version 2>&1 | $GREP GNU`
16749       if test "x$ISGNU" = x; then
16750         # A readlink that we do not know how to use.
16751         # Are there other non-GNU readlinks out there?
16752         READLINK_TESTED=yes
16753         READLINK=
16754       fi
16755     fi
16756 
16757     if test "x$READLINK" != x; then
16758       CANONICAL_TOPDIR=`$READLINK -f $CANONICAL_TOPDIR`
16759     else
16760       # Save the current directory for restoring afterwards
16761       STARTDIR=$PWD
16762       COUNTER=0
16763       sym_link_dir=`$DIRNAME $CANONICAL_TOPDIR`
16764       sym_link_file=`$BASENAME $CANONICAL_TOPDIR`
16765       cd $sym_link_dir
16766       # Use -P flag to resolve symlinks in directories.
16767       cd `$THEPWDCMD -P`
16768       sym_link_dir=`$THEPWDCMD -P`
16769       # Resolve file symlinks
16770       while test $COUNTER -lt 20; do
16771         ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'`
16772         if test "x$ISLINK" == x; then
16773           # This is not a symbolic link! We are done!
16774           break
16775         fi
16776         # Again resolve directory symlinks since the target of the just found
16777         # link could be in a different directory
16778         cd `$DIRNAME $ISLINK`
16779         sym_link_dir=`$THEPWDCMD -P`
16780         sym_link_file=`$BASENAME $ISLINK`
16781         let COUNTER=COUNTER+1
16782       done
16783       cd $STARTDIR
16784       CANONICAL_TOPDIR=$sym_link_dir/$sym_link_file
16785     fi
16786   fi
16787 
16788 
16789 
16790   # Locate the directory of this script.
16791   AUTOCONF_DIR=$TOPDIR/common/autoconf
16792 
16793   # Setup username (for use in adhoc version strings etc)
16794   # Outer [ ] to quote m4.
16795    USERNAME=`$ECHO "$USER" | $TR -d -c '[a-z][A-Z][0-9]'`
16796 
16797 
16798 
16799 # Check if it's a pure open build or if custom sources are to be used.
16800 
16801   # Check whether --enable-openjdk-only was given.
16802 if test "${enable_openjdk_only+set}" = set; then :
16803   enableval=$enable_openjdk_only;
16804 else
16805   enable_openjdk_only="no"
16806 fi
16807 
16808 
16809   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if custom source is suppressed (openjdk-only)" >&5
16810 $as_echo_n "checking if custom source is suppressed (openjdk-only)... " >&6; }
16811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_openjdk_only" >&5
16812 $as_echo "$enable_openjdk_only" >&6; }
16813   if test "x$enable_openjdk_only" = "xyes"; then
16814     SUPPRESS_CUSTOM_EXTENSIONS="true"
16815   elif test "x$enable_openjdk_only" = "xno"; then
16816     SUPPRESS_CUSTOM_EXTENSIONS="false"
16817   else
16818     as_fn_error $? "Invalid value for --enable-openjdk-only: $enable_openjdk_only" "$LINENO" 5
16819   fi
16820 
16821   # custom-make-dir is deprecated. Please use your custom-hook.m4 to override
16822   # the IncludeCustomExtension macro.
16823 
16824 
16825 # Check whether --with-custom-make-dir was given.
16826 if test "${with_custom_make_dir+set}" = set; then :
16827   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
16828 $as_echo "$as_me: WARNING: Option --with-custom-make-dir is deprecated and will be ignored." >&2;}
16829 fi
16830 
16831 
16832 
16833 
16834 # These are needed to be able to create a configuration name (and thus the output directory)
16835 
16836   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5
16837 $as_echo_n "checking which variant of the JDK to build... " >&6; }
16838 
16839 # Check whether --with-jdk-variant was given.
16840 if test "${with_jdk_variant+set}" = set; then :
16841   withval=$with_jdk_variant;
16842 fi
16843 
16844 
16845   if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then
16846     JDK_VARIANT="normal"
16847   else
16848     as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5
16849   fi
16850 
16851 
16852 
16853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5
16854 $as_echo "$JDK_VARIANT" >&6; }
16855 
16856 
16857   DEBUG_LEVEL="release"
16858   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5
16859 $as_echo_n "checking which debug level to use... " >&6; }
16860   # Check whether --enable-debug was given.
16861 if test "${enable_debug+set}" = set; then :
16862   enableval=$enable_debug;
16863         ENABLE_DEBUG="${enableval}"
16864         DEBUG_LEVEL="fastdebug"
16865 
16866 else
16867   ENABLE_DEBUG="no"
16868 fi
16869 
16870 
16871 
16872 # Check whether --with-debug-level was given.
16873 if test "${with_debug_level+set}" = set; then :
16874   withval=$with_debug_level;
16875         DEBUG_LEVEL="${withval}"
16876         if test "x$ENABLE_DEBUG" = xyes; then
16877           as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5
16878         fi
16879 
16880 fi
16881 
16882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5
16883 $as_echo "$DEBUG_LEVEL" >&6; }
16884 
16885   if test "x$DEBUG_LEVEL" != xrelease && \
16886       test "x$DEBUG_LEVEL" != xoptimized && \
16887       test "x$DEBUG_LEVEL" != xfastdebug && \
16888       test "x$DEBUG_LEVEL" != xslowdebug; then
16889     as_fn_error $? "Allowed debug levels are: release, fastdebug, slowdebug and optimized" "$LINENO" 5
16890   fi
16891 
16892   # Translate DEBUG_LEVEL to debug level used by Hotspot
16893   HOTSPOT_DEBUG_LEVEL="$DEBUG_LEVEL"
16894   if test "x$DEBUG_LEVEL" = xrelease; then
16895     HOTSPOT_DEBUG_LEVEL="product"
16896   elif test "x$DEBUG_LEVEL" = xslowdebug; then
16897     HOTSPOT_DEBUG_LEVEL="debug"
16898   fi
16899 
16900   if test "x$DEBUG_LEVEL" = xoptimized; then
16901     # The debug level 'optimized' is a little special because it is currently only
16902     # applicable to the HotSpot build where it means to build a completely
16903     # optimized version of the VM without any debugging code (like for the
16904     # 'release' debug level which is called 'product' in the HotSpot build) but
16905     # with the exception that it can contain additional code which is otherwise
16906     # protected by '#ifndef PRODUCT' macros. These 'optimized' builds are used to
16907     # test new and/or experimental features which are not intended for customer
16908     # shipment. Because these new features need to be tested and benchmarked in
16909     # real world scenarios, we want to build the containing JDK at the 'release'
16910     # debug level.
16911     DEBUG_LEVEL="release"
16912   fi
16913 
16914 
16915 
16916 
16917 
16918 
16919 # Check whether --with-jvm-variants was given.
16920 if test "${with_jvm_variants+set}" = set; then :
16921   withval=$with_jvm_variants;
16922 fi
16923 
16924 
16925 
16926 
16927 # Check whether --with-cpu-port was given.
16928 if test "${with_cpu_port+set}" = set; then :
16929   withval=$with_cpu_port;
16930 fi
16931 
16932 
16933   if test "x$with_cpu_port" != x; then
16934     if test "x$OPENJDK_TARGET_CPU" != xaarch64; then
16935       as_fn_error $? "--with-cpu-port only available on aarch64" "$LINENO" 5
16936     fi
16937     if test "x$with_cpu_port" != xarm64 && \
16938         test "x$with_cpu_port" != xaarch64; then
16939       as_fn_error $? "--with-cpu-port must specify arm64 or aarch64" "$LINENO" 5
16940     fi
16941     HOTSPOT_TARGET_CPU_PORT="$with_cpu_port"
16942   fi
16943 
16944 
16945   if test "x$with_jvm_variants" = x; then
16946     with_jvm_variants="server"
16947   fi
16948   JVM_VARIANTS_OPT="$with_jvm_variants"
16949 
16950   # Has the user listed more than one variant?
16951   # Additional [] needed to keep m4 from mangling shell constructs.
16952   if  [[ "$JVM_VARIANTS_OPT" =~ "," ]] ; then
16953     BUILDING_MULTIPLE_JVM_VARIANTS=true
16954   else
16955     BUILDING_MULTIPLE_JVM_VARIANTS=false
16956   fi
16957   # Replace the commas with AND for use in the build directory name.
16958   JVM_VARIANTS_WITH_AND=`$ECHO "$JVM_VARIANTS_OPT" | $SED -e 's/,/AND/g'`
16959 
16960   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5
16961 $as_echo_n "checking which variants of the JVM to build... " >&6; }
16962   # JVM_VARIANTS is a space-separated list.
16963   # Also use minimal, not minimal1 (which is kept for backwards compatibility).
16964   JVM_VARIANTS=`$ECHO $JVM_VARIANTS_OPT | $SED -e 's/,/ /g' -e 's/minimal1/minimal/'`
16965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JVM_VARIANTS" >&5
16966 $as_echo "$JVM_VARIANTS" >&6; }
16967 
16968   # Check that the selected variants are valid
16969 
16970   # grep filter function inspired by a comment to http://stackoverflow.com/a/1617326
16971   # Notice that the original variant failes on SLES 10 and 11
16972   NEEDLE=${VALID_JVM_VARIANTS// /$'\n'}
16973   STACK=${JVM_VARIANTS// /$'\n'}
16974   INVALID_VARIANTS=`$GREP -Fvx "${NEEDLE}" <<< "${STACK}"`
16975   if test "x$INVALID_VARIANTS" != x; then
16976     { $as_echo "$as_me:${as_lineno-$LINENO}: Unknown variant(s) specified: $INVALID_VARIANTS" >&5
16977 $as_echo "$as_me: Unknown variant(s) specified: $INVALID_VARIANTS" >&6;}
16978     as_fn_error $? "The available JVM variants are: $VALID_JVM_VARIANTS" "$LINENO" 5
16979   fi
16980 
16981   # All "special" variants share the same output directory ("server")
16982   VALID_MULTIPLE_JVM_VARIANTS="server client minimal"
16983   NEEDLE=${VALID_MULTIPLE_JVM_VARIANTS// /$'\n'}
16984   STACK=${JVM_VARIANTS// /$'\n'}
16985   INVALID_MULTIPLE_VARIANTS=`$GREP -Fvx "${NEEDLE}" <<< "${STACK}"`
16986   if  test "x$INVALID_MULTIPLE_VARIANTS" != x && test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = xtrue; then
16987     as_fn_error $? "You cannot build multiple variants with anything else than $VALID_MULTIPLE_JVM_VARIANTS." "$LINENO" 5
16988   fi
16989 
16990   # The "main" variant is the one used by other libs to link against during the
16991   # build.
16992   if test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = "xtrue"; then
16993     MAIN_VARIANT_PRIO_ORDER="server client minimal"
16994     for variant in $MAIN_VARIANT_PRIO_ORDER; do
16995       if   [[ " $JVM_VARIANTS " =~ " $variant " ]]  ; then
16996         JVM_VARIANT_MAIN="$variant"
16997         break
16998       fi
16999     done
17000   else
17001     JVM_VARIANT_MAIN="$JVM_VARIANTS"
17002   fi
17003 
17004 
17005 
17006 
17007 
17008   if   [[ " $JVM_VARIANTS " =~ " zero " ]]   ||   [[ " $JVM_VARIANTS " =~ " zeroshark " ]]  ; then
17009     # zero behaves as a platform and rewrites these values. This is really weird. :(
17010     # We are guaranteed that we do not build any other variants when building zero.
17011     HOTSPOT_TARGET_CPU=zero
17012     HOTSPOT_TARGET_CPU_ARCH=zero
17013   fi
17014 
17015 
17016 # With basic setup done, call the custom early hook.
17017 
17018 
17019 # Check if we have devkits, extra paths or sysroot set.
17020 
17021 
17022 # Check whether --with-devkit was given.
17023 if test "${with_devkit+set}" = set; then :
17024   withval=$with_devkit;
17025 
17026   # Only process if variable expands to non-empty
17027 
17028   if test "x$with_devkit" != x; then
17029     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17030 
17031   # Input might be given as Windows format, start by converting to
17032   # unix format.
17033   path="$with_devkit"
17034   new_path=`$CYGPATH -u "$path"`
17035 
17036   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
17037   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
17038   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
17039   # "foo.exe" is OK but "foo" is an error.
17040   #
17041   # This test is therefore slightly more accurate than "test -f" to check for file precense.
17042   # It is also a way to make sure we got the proper file name for the real test later on.
17043   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
17044   if test "x$test_shortpath" = x; then
17045     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
17046 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
17047     as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5
17048   fi
17049 
17050   # Call helper function which possibly converts this using DOS-style short mode.
17051   # If so, the updated path is stored in $new_path.
17052 
17053   input_path="$new_path"
17054   # Check if we need to convert this using DOS-style short mode. If the path
17055   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17056   # take no chances and rewrite it.
17057   # Note: m4 eats our [], so we need to use [ and ] instead.
17058   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
17059   if test "x$has_forbidden_chars" != x; then
17060     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17061     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
17062     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
17063     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
17064       # Going to short mode and back again did indeed matter. Since short mode is
17065       # case insensitive, let's make it lowercase to improve readability.
17066       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17067       # Now convert it back to Unix-style (cygpath)
17068       input_path=`$CYGPATH -u "$shortmode_path"`
17069       new_path="$input_path"
17070     fi
17071   fi
17072 
17073   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
17074   if test "x$test_cygdrive_prefix" = x; then
17075     # As a simple fix, exclude /usr/bin since it's not a real path.
17076     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
17077       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
17078       # a path prefixed by /cygdrive for fixpath to work.
17079       new_path="$CYGWIN_ROOT_PATH$input_path"
17080     fi
17081   fi
17082 
17083 
17084   if test "x$path" != "x$new_path"; then
17085     with_devkit="$new_path"
17086     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
17087 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
17088   fi
17089 
17090     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17091 
17092   path="$with_devkit"
17093   has_colon=`$ECHO $path | $GREP ^.:`
17094   new_path="$path"
17095   if test "x$has_colon" = x; then
17096     # Not in mixed or Windows style, start by that.
17097     new_path=`cmd //c echo $path`
17098   fi
17099 
17100 
17101   input_path="$new_path"
17102   # Check if we need to convert this using DOS-style short mode. If the path
17103   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17104   # take no chances and rewrite it.
17105   # Note: m4 eats our [], so we need to use [ and ] instead.
17106   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
17107   if test "x$has_forbidden_chars" != x; then
17108     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17109     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17110   fi
17111 
17112 
17113   windows_path="$new_path"
17114   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17115     unix_path=`$CYGPATH -u "$windows_path"`
17116     new_path="$unix_path"
17117   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17118     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17119     new_path="$unix_path"
17120   fi
17121 
17122   if test "x$path" != "x$new_path"; then
17123     with_devkit="$new_path"
17124     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
17125 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
17126   fi
17127 
17128   # Save the first 10 bytes of this path to the storage, so fixpath can work.
17129   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
17130 
17131     else
17132       # We're on a unix platform. Hooray! :)
17133       path="$with_devkit"
17134       has_space=`$ECHO "$path" | $GREP " "`
17135       if test "x$has_space" != x; then
17136         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
17137 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
17138         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
17139       fi
17140 
17141       # Use eval to expand a potential ~
17142       eval path="$path"
17143       if test ! -f "$path" && test ! -d "$path"; then
17144         as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5
17145       fi
17146 
17147       if test -d "$path"; then
17148         with_devkit="`cd "$path"; $THEPWDCMD -L`"
17149       else
17150         dir="`$DIRNAME "$path"`"
17151         base="`$BASENAME "$path"`"
17152         with_devkit="`cd "$dir"; $THEPWDCMD -L`/$base"
17153       fi
17154     fi
17155   fi
17156 
17157         DEVKIT_ROOT="$with_devkit"
17158         # Check for a meta data info file in the root of the devkit
17159         if test -f "$DEVKIT_ROOT/devkit.info"; then
17160           . $DEVKIT_ROOT/devkit.info
17161           # This potentially sets the following:
17162           # A descriptive name of the devkit
17163 
17164   if test "x$DEVKIT_NAME" = x; then
17165     eval DEVKIT_NAME="\${DEVKIT_NAME_${OPENJDK_TARGET_CPU}}"
17166   fi
17167 
17168           # Corresponds to --with-extra-path
17169 
17170   if test "x$DEVKIT_EXTRA_PATH" = x; then
17171     eval DEVKIT_EXTRA_PATH="\${DEVKIT_EXTRA_PATH_${OPENJDK_TARGET_CPU}}"
17172   fi
17173 
17174           # Corresponds to --with-toolchain-path
17175 
17176   if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then
17177     eval DEVKIT_TOOLCHAIN_PATH="\${DEVKIT_TOOLCHAIN_PATH_${OPENJDK_TARGET_CPU}}"
17178   fi
17179 
17180           # Corresponds to --with-sysroot
17181 
17182   if test "x$DEVKIT_SYSROOT" = x; then
17183     eval DEVKIT_SYSROOT="\${DEVKIT_SYSROOT_${OPENJDK_TARGET_CPU}}"
17184   fi
17185 
17186 
17187           # Identifies the Visual Studio version in the devkit
17188 
17189   if test "x$DEVKIT_VS_VERSION" = x; then
17190     eval DEVKIT_VS_VERSION="\${DEVKIT_VS_VERSION_${OPENJDK_TARGET_CPU}}"
17191   fi
17192 
17193           # The Visual Studio include environment variable
17194 
17195   if test "x$DEVKIT_VS_INCLUDE" = x; then
17196     eval DEVKIT_VS_INCLUDE="\${DEVKIT_VS_INCLUDE_${OPENJDK_TARGET_CPU}}"
17197   fi
17198 
17199           # The Visual Studio lib environment variable
17200 
17201   if test "x$DEVKIT_VS_LIB" = x; then
17202     eval DEVKIT_VS_LIB="\${DEVKIT_VS_LIB_${OPENJDK_TARGET_CPU}}"
17203   fi
17204 
17205           # Corresponds to --with-msvcr-dll
17206 
17207   if test "x$DEVKIT_MSVCR_DLL" = x; then
17208     eval DEVKIT_MSVCR_DLL="\${DEVKIT_MSVCR_DLL_${OPENJDK_TARGET_CPU}}"
17209   fi
17210 
17211           # Corresponds to --with-msvcp-dll
17212 
17213   if test "x$DEVKIT_MSVCP_DLL" = x; then
17214     eval DEVKIT_MSVCP_DLL="\${DEVKIT_MSVCP_DLL_${OPENJDK_TARGET_CPU}}"
17215   fi
17216 
17217         fi
17218 
17219         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devkit" >&5
17220 $as_echo_n "checking for devkit... " >&6; }
17221         if test "x$DEVKIT_NAME" != x; then
17222           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_NAME in $DEVKIT_ROOT" >&5
17223 $as_echo "$DEVKIT_NAME in $DEVKIT_ROOT" >&6; }
17224         else
17225           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_ROOT" >&5
17226 $as_echo "$DEVKIT_ROOT" >&6; }
17227         fi
17228 
17229 
17230   if test "x$DEVKIT_EXTRA_PATH" != x; then
17231     if test "x$EXTRA_PATH" = x; then
17232       EXTRA_PATH="$DEVKIT_EXTRA_PATH"
17233     else
17234       EXTRA_PATH="$DEVKIT_EXTRA_PATH:$EXTRA_PATH"
17235     fi
17236   fi
17237 
17238 
17239         # Fallback default of just /bin if DEVKIT_PATH is not defined
17240         if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then
17241           DEVKIT_TOOLCHAIN_PATH="$DEVKIT_ROOT/bin"
17242         fi
17243 
17244   if test "x$DEVKIT_TOOLCHAIN_PATH" != x; then
17245     if test "x$TOOLCHAIN_PATH" = x; then
17246       TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH"
17247     else
17248       TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH:$TOOLCHAIN_PATH"
17249     fi
17250   fi
17251 
17252 
17253         # If DEVKIT_SYSROOT is set, use that, otherwise try a couple of known
17254         # places for backwards compatiblity.
17255         if test "x$DEVKIT_SYSROOT" != x; then
17256           SYSROOT="$DEVKIT_SYSROOT"
17257         elif test -d "$DEVKIT_ROOT/$host_alias/libc"; then
17258           SYSROOT="$DEVKIT_ROOT/$host_alias/libc"
17259         elif test -d "$DEVKIT_ROOT/$host/sys-root"; then
17260           SYSROOT="$DEVKIT_ROOT/$host/sys-root"
17261         fi
17262 
17263 
17264 fi
17265 
17266 
17267   # You can force the sysroot if the sysroot encoded into the compiler tools
17268   # is not correct.
17269 
17270 # Check whether --with-sys-root was given.
17271 if test "${with_sys_root+set}" = set; then :
17272   withval=$with_sys_root; SYSROOT=$with_sys_root
17273 
17274 fi
17275 
17276 
17277 
17278 # Check whether --with-sysroot was given.
17279 if test "${with_sysroot+set}" = set; then :
17280   withval=$with_sysroot; SYSROOT=$with_sysroot
17281 
17282 fi
17283 
17284 
17285 
17286 # Check whether --with-tools-dir was given.
17287 if test "${with_tools_dir+set}" = set; then :
17288   withval=$with_tools_dir;
17289   if test "x$with_tools_dir" != x; then
17290     if test "x$TOOLCHAIN_PATH" = x; then
17291       TOOLCHAIN_PATH="$with_tools_dir"
17292     else
17293       TOOLCHAIN_PATH="$with_tools_dir:$TOOLCHAIN_PATH"
17294     fi
17295   fi
17296 
17297 
17298 fi
17299 
17300 
17301 
17302 # Check whether --with-toolchain-path was given.
17303 if test "${with_toolchain_path+set}" = set; then :
17304   withval=$with_toolchain_path;
17305   if test "x$with_toolchain_path" != x; then
17306     if test "x$TOOLCHAIN_PATH" = x; then
17307       TOOLCHAIN_PATH="$with_toolchain_path"
17308     else
17309       TOOLCHAIN_PATH="$with_toolchain_path:$TOOLCHAIN_PATH"
17310     fi
17311   fi
17312 
17313 
17314 fi
17315 
17316 
17317 
17318 # Check whether --with-extra-path was given.
17319 if test "${with_extra_path+set}" = set; then :
17320   withval=$with_extra_path;
17321   if test "x$with_extra_path" != x; then
17322     if test "x$EXTRA_PATH" = x; then
17323       EXTRA_PATH="$with_extra_path"
17324     else
17325       EXTRA_PATH="$with_extra_path:$EXTRA_PATH"
17326     fi
17327   fi
17328 
17329 
17330 fi
17331 
17332 
17333   if test "x$OPENJDK_BUILD_OS" = "xmacosx"; then
17334     # If a devkit has been supplied, find xcodebuild in the toolchain_path.
17335     # If not, detect if Xcode is installed by running xcodebuild -version
17336     # if no Xcode installed, xcodebuild exits with 1
17337     # if Xcode is installed, even if xcode-select is misconfigured, then it exits with 0
17338     if test "x$DEVKIT_ROOT" != x || /usr/bin/xcodebuild -version >/dev/null 2>&1; then
17339       # We need to use xcodebuild in the toolchain dir provided by the user, this will
17340       # fall back on the stub binary in /usr/bin/xcodebuild
17341       # Extract the first word of "xcodebuild", so it can be a program name with args.
17342 set dummy xcodebuild; ac_word=$2
17343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17344 $as_echo_n "checking for $ac_word... " >&6; }
17345 if ${ac_cv_path_XCODEBUILD+:} false; then :
17346   $as_echo_n "(cached) " >&6
17347 else
17348   case $XCODEBUILD in
17349   [\\/]* | ?:[\\/]*)
17350   ac_cv_path_XCODEBUILD="$XCODEBUILD" # Let the user override the test with a path.
17351   ;;
17352   *)
17353   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17354 for as_dir in $TOOLCHAIN_PATH
17355 do
17356   IFS=$as_save_IFS
17357   test -z "$as_dir" && as_dir=.
17358     for ac_exec_ext in '' $ac_executable_extensions; do
17359   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17360     ac_cv_path_XCODEBUILD="$as_dir/$ac_word$ac_exec_ext"
17361     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17362     break 2
17363   fi
17364 done
17365   done
17366 IFS=$as_save_IFS
17367 
17368   test -z "$ac_cv_path_XCODEBUILD" && ac_cv_path_XCODEBUILD="/usr/bin/xcodebuild"
17369   ;;
17370 esac
17371 fi
17372 XCODEBUILD=$ac_cv_path_XCODEBUILD
17373 if test -n "$XCODEBUILD"; then
17374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODEBUILD" >&5
17375 $as_echo "$XCODEBUILD" >&6; }
17376 else
17377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17378 $as_echo "no" >&6; }
17379 fi
17380 
17381 
17382     else
17383       # this should result in SYSROOT being empty, unless --with-sysroot is provided
17384       # when only the command line tools are installed there are no SDKs, so headers
17385       # are copied into the system frameworks
17386       XCODEBUILD=
17387 
17388     fi
17389 
17390     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdk name" >&5
17391 $as_echo_n "checking for sdk name... " >&6; }
17392 
17393 # Check whether --with-sdk-name was given.
17394 if test "${with_sdk_name+set}" = set; then :
17395   withval=$with_sdk_name; SDKNAME=$with_sdk_name
17396 
17397 fi
17398 
17399     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDKNAME" >&5
17400 $as_echo "$SDKNAME" >&6; }
17401 
17402     # if toolchain path is specified then don't rely on system headers, they may not compile
17403     HAVE_SYSTEM_FRAMEWORK_HEADERS=0
17404     test -z "$TOOLCHAIN_PATH" && \
17405       HAVE_SYSTEM_FRAMEWORK_HEADERS=`test ! -f /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h; echo $?`
17406 
17407     if test -z "$SYSROOT"; then
17408       if test -n "$XCODEBUILD"; then
17409         # if we don't have system headers, use default SDK name (last resort)
17410         if test -z "$SDKNAME" -a $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then
17411           SDKNAME=${SDKNAME:-macosx}
17412         fi
17413 
17414         if test -n "$SDKNAME"; then
17415           # Call xcodebuild to determine SYSROOT
17416           SYSROOT=`"$XCODEBUILD" -sdk $SDKNAME -version | $GREP '^Path: ' | $SED 's/Path: //'`
17417         fi
17418       else
17419         if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then
17420           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
17421         fi
17422       fi
17423     else
17424       # warn user if --with-sdk-name was also set
17425       if test -n "$with_sdk_name"; then
17426         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&5
17427 $as_echo "$as_me: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&2;}
17428       fi
17429     fi
17430 
17431     if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0 -a -z "$SYSROOT"; then
17432       # If no system framework headers, then SYSROOT must be set, or we won't build
17433       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
17434     fi
17435 
17436     # Perform a basic sanity test
17437     if test ! -f "$SYSROOT/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h"; then
17438       if test -z "$SYSROOT"; then
17439         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
17440       else
17441         as_fn_error $? "Invalid SDK or SYSROOT path, dependent framework headers not found" "$LINENO" 5
17442       fi
17443     fi
17444 
17445     # set SDKROOT too, Xcode tools will pick it up
17446     SDKROOT="$SYSROOT"
17447 
17448   fi
17449 
17450   # Prepend the extra path to the global path
17451 
17452   if test "x$EXTRA_PATH" != x; then
17453     if test "x$PATH" = x; then
17454       PATH="$EXTRA_PATH"
17455     else
17456       PATH="$EXTRA_PATH:$PATH"
17457     fi
17458   fi
17459 
17460 
17461   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
17462 $as_echo_n "checking for sysroot... " >&6; }
17463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSROOT" >&5
17464 $as_echo "$SYSROOT" >&6; }
17465   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for toolchain path" >&5
17466 $as_echo_n "checking for toolchain path... " >&6; }
17467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH" >&5
17468 $as_echo "$TOOLCHAIN_PATH" >&6; }
17469   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra path" >&5
17470 $as_echo_n "checking for extra path... " >&6; }
17471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_PATH" >&5
17472 $as_echo "$EXTRA_PATH" >&6; }
17473 
17474 
17475 # To properly create a configuration name, we need to have the OpenJDK target
17476 # and options (variants and debug level) parsed.
17477 
17478 
17479 
17480 # Check whether --with-conf-name was given.
17481 if test "${with_conf_name+set}" = set; then :
17482   withval=$with_conf_name;  CONF_NAME=${with_conf_name}
17483 fi
17484 
17485 
17486   # Test from where we are running configure, in or outside of src root.
17487   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to store configuration" >&5
17488 $as_echo_n "checking where to store configuration... " >&6; }
17489   if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" \
17490       || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" \
17491       || test "x$CURDIR" = "x$SRC_ROOT/make" ; then
17492     # We are running configure from the src root.
17493     # Create a default ./build/target-variant-debuglevel output root.
17494     if test "x${CONF_NAME}" = x; then
17495       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default location" >&5
17496 $as_echo "in default location" >&6; }
17497       CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${JVM_VARIANTS_WITH_AND}-${DEBUG_LEVEL}"
17498     else
17499       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5
17500 $as_echo "in build directory with custom name" >&6; }
17501     fi
17502     OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}"
17503     $MKDIR -p "$OUTPUT_ROOT"
17504     if test ! -d "$OUTPUT_ROOT"; then
17505       as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5
17506     fi
17507   else
17508     # We are running configure from outside of the src dir.
17509     # Then use the current directory as output dir!
17510     # If configuration is situated in normal build directory, just use the build
17511     # directory name as configuration name, otherwise use the complete path.
17512     if test "x${CONF_NAME}" = x; then
17513       CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${SRC_ROOT}/build/!!"`
17514     fi
17515     OUTPUT_ROOT="$CURDIR"
17516     { $as_echo "$as_me:${as_lineno-$LINENO}: result: in current directory" >&5
17517 $as_echo "in current directory" >&6; }
17518 
17519     # WARNING: This might be a bad thing to do. You need to be sure you want to
17520     # have a configuration in this directory. Do some sanity checks!
17521 
17522     if test ! -e "$OUTPUT_ROOT/spec.gmk"; then
17523       # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for
17524       # other files
17525       files_present=`$LS $OUTPUT_ROOT`
17526       # Configure has already touched config.log and confdefs.h in the current dir when this check
17527       # is performed.
17528       filtered_files=`$ECHO "$files_present" \
17529           | $SED -e 's/config.log//g' \
17530               -e 's/configure.log//g' \
17531               -e 's/confdefs.h//g' \
17532               -e 's/ //g' \
17533           | $TR -d '\n'`
17534       if test "x$filtered_files" != x; then
17535         { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5
17536 $as_echo "$as_me: Current directory is $CURDIR." >&6;}
17537         { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5
17538 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;}
17539         { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5
17540 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;}
17541         { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5
17542 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;}
17543         { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5
17544 $as_echo "$as_me: seriously mess up just about everything." >&6;}
17545         { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $SRC_ROOT' and restart configure" >&5
17546 $as_echo "$as_me: Try 'cd $SRC_ROOT' and restart configure" >&6;}
17547         { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5
17548 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;}
17549         as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5
17550       fi
17551     fi
17552   fi
17553   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5
17554 $as_echo_n "checking what configuration name to use... " >&6; }
17555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5
17556 $as_echo "$CONF_NAME" >&6; }
17557 
17558 
17559   # Only process if variable expands to non-empty
17560 
17561   if test "x$OUTPUT_ROOT" != x; then
17562     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17563 
17564   # Input might be given as Windows format, start by converting to
17565   # unix format.
17566   path="$OUTPUT_ROOT"
17567   new_path=`$CYGPATH -u "$path"`
17568 
17569   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
17570   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
17571   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
17572   # "foo.exe" is OK but "foo" is an error.
17573   #
17574   # This test is therefore slightly more accurate than "test -f" to check for file precense.
17575   # It is also a way to make sure we got the proper file name for the real test later on.
17576   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
17577   if test "x$test_shortpath" = x; then
17578     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
17579 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
17580     as_fn_error $? "Cannot locate the the path of OUTPUT_ROOT" "$LINENO" 5
17581   fi
17582 
17583   # Call helper function which possibly converts this using DOS-style short mode.
17584   # If so, the updated path is stored in $new_path.
17585 
17586   input_path="$new_path"
17587   # Check if we need to convert this using DOS-style short mode. If the path
17588   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17589   # take no chances and rewrite it.
17590   # Note: m4 eats our [], so we need to use [ and ] instead.
17591   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
17592   if test "x$has_forbidden_chars" != x; then
17593     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17594     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
17595     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
17596     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
17597       # Going to short mode and back again did indeed matter. Since short mode is
17598       # case insensitive, let's make it lowercase to improve readability.
17599       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17600       # Now convert it back to Unix-style (cygpath)
17601       input_path=`$CYGPATH -u "$shortmode_path"`
17602       new_path="$input_path"
17603     fi
17604   fi
17605 
17606   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
17607   if test "x$test_cygdrive_prefix" = x; then
17608     # As a simple fix, exclude /usr/bin since it's not a real path.
17609     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
17610       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
17611       # a path prefixed by /cygdrive for fixpath to work.
17612       new_path="$CYGWIN_ROOT_PATH$input_path"
17613     fi
17614   fi
17615 
17616 
17617   if test "x$path" != "x$new_path"; then
17618     OUTPUT_ROOT="$new_path"
17619     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
17620 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
17621   fi
17622 
17623     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17624 
17625   path="$OUTPUT_ROOT"
17626   has_colon=`$ECHO $path | $GREP ^.:`
17627   new_path="$path"
17628   if test "x$has_colon" = x; then
17629     # Not in mixed or Windows style, start by that.
17630     new_path=`cmd //c echo $path`
17631   fi
17632 
17633 
17634   input_path="$new_path"
17635   # Check if we need to convert this using DOS-style short mode. If the path
17636   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17637   # take no chances and rewrite it.
17638   # Note: m4 eats our [], so we need to use [ and ] instead.
17639   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
17640   if test "x$has_forbidden_chars" != x; then
17641     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17642     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17643   fi
17644 
17645 
17646   windows_path="$new_path"
17647   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17648     unix_path=`$CYGPATH -u "$windows_path"`
17649     new_path="$unix_path"
17650   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17651     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17652     new_path="$unix_path"
17653   fi
17654 
17655   if test "x$path" != "x$new_path"; then
17656     OUTPUT_ROOT="$new_path"
17657     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
17658 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
17659   fi
17660 
17661   # Save the first 10 bytes of this path to the storage, so fixpath can work.
17662   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
17663 
17664     else
17665       # We're on a unix platform. Hooray! :)
17666       path="$OUTPUT_ROOT"
17667       has_space=`$ECHO "$path" | $GREP " "`
17668       if test "x$has_space" != x; then
17669         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
17670 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
17671         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
17672       fi
17673 
17674       # Use eval to expand a potential ~
17675       eval path="$path"
17676       if test ! -f "$path" && test ! -d "$path"; then
17677         as_fn_error $? "The path of OUTPUT_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5
17678       fi
17679 
17680       if test -d "$path"; then
17681         OUTPUT_ROOT="`cd "$path"; $THEPWDCMD -L`"
17682       else
17683         dir="`$DIRNAME "$path"`"
17684         base="`$BASENAME "$path"`"
17685         OUTPUT_ROOT="`cd "$dir"; $THEPWDCMD -L`/$base"
17686       fi
17687     fi
17688   fi
17689 
17690 
17691   CONFIGURESUPPORT_OUTPUTDIR="$OUTPUT_ROOT/configure-support"
17692   $MKDIR -p "$CONFIGURESUPPORT_OUTPUTDIR"
17693 
17694   SPEC="$OUTPUT_ROOT/spec.gmk"
17695 
17696 
17697 
17698 
17699 
17700   # The spec.gmk file contains all variables for the make system.
17701   ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in"
17702 
17703   # The bootcycle-spec.gmk file contains support for boot cycle builds.
17704   ac_config_files="$ac_config_files $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in"
17705 
17706   # The buildjdk-spec.gmk file contains support for building a buildjdk when cross compiling.
17707   ac_config_files="$ac_config_files $OUTPUT_ROOT/buildjdk-spec.gmk:$AUTOCONF_DIR/buildjdk-spec.gmk.in"
17708 
17709   # The compare.sh is used to compare the build output to other builds.
17710   ac_config_files="$ac_config_files $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in"
17711 
17712   # The generated Makefile knows where the spec.gmk is and where the source is.
17713   # You can run make from the OUTPUT_ROOT, or from the top-level Makefile
17714   # which will look for generated configurations
17715   ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in"
17716 
17717 
17718 
17719 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY.
17720 
17721   for ac_prog in apt-get yum brew port pkgutil pkgadd
17722 do
17723   # Extract the first word of "$ac_prog", so it can be a program name with args.
17724 set dummy $ac_prog; ac_word=$2
17725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17726 $as_echo_n "checking for $ac_word... " >&6; }
17727 if ${ac_cv_prog_PKGHANDLER+:} false; then :
17728   $as_echo_n "(cached) " >&6
17729 else
17730   if test -n "$PKGHANDLER"; then
17731   ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test.
17732 else
17733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17734 for as_dir in $PATH
17735 do
17736   IFS=$as_save_IFS
17737   test -z "$as_dir" && as_dir=.
17738     for ac_exec_ext in '' $ac_executable_extensions; do
17739   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17740     ac_cv_prog_PKGHANDLER="$ac_prog"
17741     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17742     break 2
17743   fi
17744 done
17745   done
17746 IFS=$as_save_IFS
17747 
17748 fi
17749 fi
17750 PKGHANDLER=$ac_cv_prog_PKGHANDLER
17751 if test -n "$PKGHANDLER"; then
17752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5
17753 $as_echo "$PKGHANDLER" >&6; }
17754 else
17755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17756 $as_echo "no" >&6; }
17757 fi
17758 
17759 
17760   test -n "$PKGHANDLER" && break
17761 done
17762 
17763 
17764 
17765 # Setup tools that requires more complex handling, or that is not needed by the configure script.
17766 
17767 
17768 
17769   # Publish this variable in the help.
17770 
17771 
17772   if [ -z "${MAKE+x}" ]; then
17773     # The variable is not set by user, try to locate tool using the code snippet
17774 
17775     # Try our hardest to locate a correct version of GNU make
17776     for ac_prog in gmake
17777 do
17778   # Extract the first word of "$ac_prog", so it can be a program name with args.
17779 set dummy $ac_prog; ac_word=$2
17780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17781 $as_echo_n "checking for $ac_word... " >&6; }
17782 if ${ac_cv_path_CHECK_GMAKE+:} false; then :
17783   $as_echo_n "(cached) " >&6
17784 else
17785   case $CHECK_GMAKE in
17786   [\\/]* | ?:[\\/]*)
17787   ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
17788   ;;
17789   *)
17790   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17791 for as_dir in $PATH
17792 do
17793   IFS=$as_save_IFS
17794   test -z "$as_dir" && as_dir=.
17795     for ac_exec_ext in '' $ac_executable_extensions; do
17796   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17797     ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
17798     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17799     break 2
17800   fi
17801 done
17802   done
17803 IFS=$as_save_IFS
17804 
17805   ;;
17806 esac
17807 fi
17808 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE
17809 if test -n "$CHECK_GMAKE"; then
17810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5
17811 $as_echo "$CHECK_GMAKE" >&6; }
17812 else
17813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17814 $as_echo "no" >&6; }
17815 fi
17816 
17817 
17818   test -n "$CHECK_GMAKE" && break
17819 done
17820 
17821 
17822   MAKE_CANDIDATE=""$CHECK_GMAKE""
17823   DESCRIPTION="gmake in PATH"
17824 
17825   # On Cygwin, we require a newer version of make than on other platforms
17826   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17827     MAKE_VERSION_EXPR="-e 4\."
17828     MAKE_REQUIRED_VERSION="4.0"
17829    else
17830     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
17831     MAKE_REQUIRED_VERSION="3.81"
17832   fi
17833 
17834   if test "x$MAKE_CANDIDATE" != x; then
17835     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
17836 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
17837     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
17838     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
17839     if test "x$IS_GNU_MAKE" = x; then
17840       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
17841 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
17842     else
17843       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
17844       if test "x$IS_MODERN_MAKE" = x; then
17845         { $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
17846 $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;}
17847       else
17848         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
17849           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17850             MAKE_EXPECTED_ENV='cygwin'
17851           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17852             MAKE_EXPECTED_ENV='msys'
17853           else
17854             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
17855           fi
17856           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
17857           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
17858         else
17859           # Not relevant for non-Windows
17860           IS_MAKE_CORRECT_ENV=true
17861         fi
17862         if test "x$IS_MAKE_CORRECT_ENV" = x; then
17863           { $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
17864 $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;}
17865         else
17866           FOUND_MAKE=$MAKE_CANDIDATE
17867 
17868   # Only process if variable expands to non-empty
17869 
17870   if test "x$FOUND_MAKE" != x; then
17871     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17872 
17873   # First separate the path from the arguments. This will split at the first
17874   # space.
17875   complete="$FOUND_MAKE"
17876   path="${complete%% *}"
17877   tmp="$complete EOL"
17878   arguments="${tmp#* }"
17879 
17880   # Input might be given as Windows format, start by converting to
17881   # unix format.
17882   new_path=`$CYGPATH -u "$path"`
17883 
17884   # Now try to locate executable using which
17885   new_path=`$WHICH "$new_path" 2> /dev/null`
17886   # bat and cmd files are not always considered executable in cygwin causing which
17887   # to not find them
17888   if test "x$new_path" = x \
17889       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17890       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17891     new_path=`$CYGPATH -u "$path"`
17892   fi
17893   if test "x$new_path" = x; then
17894     # Oops. Which didn't find the executable.
17895     # The splitting of arguments from the executable at a space might have been incorrect,
17896     # since paths with space are more likely in Windows. Give it another try with the whole
17897     # argument.
17898     path="$complete"
17899     arguments="EOL"
17900     new_path=`$CYGPATH -u "$path"`
17901     new_path=`$WHICH "$new_path" 2> /dev/null`
17902     # bat and cmd files are not always considered executable in cygwin causing which
17903     # to not find them
17904     if test "x$new_path" = x \
17905         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17906         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17907       new_path=`$CYGPATH -u "$path"`
17908     fi
17909     if test "x$new_path" = x; then
17910       # It's still not found. Now this is an unrecoverable error.
17911       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17912 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17913       has_space=`$ECHO "$complete" | $GREP " "`
17914       if test "x$has_space" != x; then
17915         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17916 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17917       fi
17918       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17919     fi
17920   fi
17921 
17922   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
17923   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
17924   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
17925   # "foo.exe" is OK but "foo" is an error.
17926   #
17927   # This test is therefore slightly more accurate than "test -f" to check for file presence.
17928   # It is also a way to make sure we got the proper file name for the real test later on.
17929   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
17930   if test "x$test_shortpath" = x; then
17931     # Short path failed, file does not exist as specified.
17932     # Try adding .exe or .cmd
17933     if test -f "${new_path}.exe"; then
17934       input_to_shortpath="${new_path}.exe"
17935     elif test -f "${new_path}.cmd"; then
17936       input_to_shortpath="${new_path}.cmd"
17937     else
17938       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
17939 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
17940       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
17941 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
17942       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17943     fi
17944   else
17945     input_to_shortpath="$new_path"
17946   fi
17947 
17948   # Call helper function which possibly converts this using DOS-style short mode.
17949   # If so, the updated path is stored in $new_path.
17950   new_path="$input_to_shortpath"
17951 
17952   input_path="$input_to_shortpath"
17953   # Check if we need to convert this using DOS-style short mode. If the path
17954   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17955   # take no chances and rewrite it.
17956   # Note: m4 eats our [], so we need to use [ and ] instead.
17957   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
17958   if test "x$has_forbidden_chars" != x; then
17959     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17960     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
17961     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
17962     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
17963       # Going to short mode and back again did indeed matter. Since short mode is
17964       # case insensitive, let's make it lowercase to improve readability.
17965       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17966       # Now convert it back to Unix-style (cygpath)
17967       input_path=`$CYGPATH -u "$shortmode_path"`
17968       new_path="$input_path"
17969     fi
17970   fi
17971 
17972   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
17973   if test "x$test_cygdrive_prefix" = x; then
17974     # As a simple fix, exclude /usr/bin since it's not a real path.
17975     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
17976       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
17977       # a path prefixed by /cygdrive for fixpath to work.
17978       new_path="$CYGWIN_ROOT_PATH$input_path"
17979     fi
17980   fi
17981 
17982   # remove trailing .exe if any
17983   new_path="${new_path/%.exe/}"
17984 
17985     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17986 
17987   # First separate the path from the arguments. This will split at the first
17988   # space.
17989   complete="$FOUND_MAKE"
17990   path="${complete%% *}"
17991   tmp="$complete EOL"
17992   arguments="${tmp#* }"
17993 
17994   # Input might be given as Windows format, start by converting to
17995   # unix format.
17996   new_path="$path"
17997 
17998   windows_path="$new_path"
17999   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18000     unix_path=`$CYGPATH -u "$windows_path"`
18001     new_path="$unix_path"
18002   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18003     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18004     new_path="$unix_path"
18005   fi
18006 
18007 
18008   # Now try to locate executable using which
18009   new_path=`$WHICH "$new_path" 2> /dev/null`
18010 
18011   if test "x$new_path" = x; then
18012     # Oops. Which didn't find the executable.
18013     # The splitting of arguments from the executable at a space might have been incorrect,
18014     # since paths with space are more likely in Windows. Give it another try with the whole
18015     # argument.
18016     path="$complete"
18017     arguments="EOL"
18018     new_path="$path"
18019 
18020   windows_path="$new_path"
18021   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18022     unix_path=`$CYGPATH -u "$windows_path"`
18023     new_path="$unix_path"
18024   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18025     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18026     new_path="$unix_path"
18027   fi
18028 
18029 
18030     new_path=`$WHICH "$new_path" 2> /dev/null`
18031     # bat and cmd files are not always considered executable in MSYS causing which
18032     # to not find them
18033     if test "x$new_path" = x \
18034         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18035         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18036       new_path="$path"
18037 
18038   windows_path="$new_path"
18039   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18040     unix_path=`$CYGPATH -u "$windows_path"`
18041     new_path="$unix_path"
18042   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18043     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18044     new_path="$unix_path"
18045   fi
18046 
18047     fi
18048 
18049     if test "x$new_path" = x; then
18050       # It's still not found. Now this is an unrecoverable error.
18051       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18052 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18053       has_space=`$ECHO "$complete" | $GREP " "`
18054       if test "x$has_space" != x; then
18055         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18056 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18057       fi
18058       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18059     fi
18060   fi
18061 
18062   # Now new_path has a complete unix path to the binary
18063   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
18064     # Keep paths in /bin as-is, but remove trailing .exe if any
18065     new_path="${new_path/%.exe/}"
18066     # Do not save /bin paths to all_fixpath_prefixes!
18067   else
18068     # Not in mixed or Windows style, start by that.
18069     new_path=`cmd //c echo $new_path`
18070 
18071   input_path="$new_path"
18072   # Check if we need to convert this using DOS-style short mode. If the path
18073   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18074   # take no chances and rewrite it.
18075   # Note: m4 eats our [], so we need to use [ and ] instead.
18076   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
18077   if test "x$has_forbidden_chars" != x; then
18078     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18079     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18080   fi
18081 
18082     # Output is in $new_path
18083 
18084   windows_path="$new_path"
18085   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18086     unix_path=`$CYGPATH -u "$windows_path"`
18087     new_path="$unix_path"
18088   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18089     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18090     new_path="$unix_path"
18091   fi
18092 
18093     # remove trailing .exe if any
18094     new_path="${new_path/%.exe/}"
18095 
18096     # Save the first 10 bytes of this path to the storage, so fixpath can work.
18097     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
18098   fi
18099 
18100     else
18101       # We're on a unix platform. Hooray! :)
18102       # First separate the path from the arguments. This will split at the first
18103       # space.
18104       complete="$FOUND_MAKE"
18105       path="${complete%% *}"
18106       tmp="$complete EOL"
18107       arguments="${tmp#* }"
18108 
18109       # Cannot rely on the command "which" here since it doesn't always work.
18110       is_absolute_path=`$ECHO "$path" | $GREP ^/`
18111       if test -z "$is_absolute_path"; then
18112         # Path to executable is not absolute. Find it.
18113         IFS_save="$IFS"
18114         IFS=:
18115         for p in $PATH; do
18116           if test -f "$p/$path" && test -x "$p/$path"; then
18117             new_path="$p/$path"
18118             break
18119           fi
18120         done
18121         IFS="$IFS_save"
18122       else
18123         # This is an absolute path, we can use it without further modifications.
18124         new_path="$path"
18125       fi
18126 
18127       if test "x$new_path" = x; then
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}: This might be caused by spaces in the path, which is not allowed." >&5
18133 $as_echo "$as_me: This might be caused by spaces in the path, 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 join together the path and the arguments once again
18140     if test "x$arguments" != xEOL; then
18141       new_complete="$new_path ${arguments% *}"
18142     else
18143       new_complete="$new_path"
18144     fi
18145 
18146     if test "x$complete" != "x$new_complete"; then
18147       FOUND_MAKE="$new_complete"
18148       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
18149 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
18150     fi
18151   fi
18152 
18153         fi
18154       fi
18155     fi
18156   fi
18157 
18158 
18159     if test "x$FOUND_MAKE" = x; then
18160       for ac_prog in make
18161 do
18162   # Extract the first word of "$ac_prog", so it can be a program name with args.
18163 set dummy $ac_prog; ac_word=$2
18164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18165 $as_echo_n "checking for $ac_word... " >&6; }
18166 if ${ac_cv_path_CHECK_MAKE+:} false; then :
18167   $as_echo_n "(cached) " >&6
18168 else
18169   case $CHECK_MAKE in
18170   [\\/]* | ?:[\\/]*)
18171   ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
18172   ;;
18173   *)
18174   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18175 for as_dir in $PATH
18176 do
18177   IFS=$as_save_IFS
18178   test -z "$as_dir" && as_dir=.
18179     for ac_exec_ext in '' $ac_executable_extensions; do
18180   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18181     ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
18182     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18183     break 2
18184   fi
18185 done
18186   done
18187 IFS=$as_save_IFS
18188 
18189   ;;
18190 esac
18191 fi
18192 CHECK_MAKE=$ac_cv_path_CHECK_MAKE
18193 if test -n "$CHECK_MAKE"; then
18194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5
18195 $as_echo "$CHECK_MAKE" >&6; }
18196 else
18197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18198 $as_echo "no" >&6; }
18199 fi
18200 
18201 
18202   test -n "$CHECK_MAKE" && break
18203 done
18204 
18205 
18206   MAKE_CANDIDATE=""$CHECK_MAKE""
18207   DESCRIPTION="make in PATH"
18208 
18209   # On Cygwin, we require a newer version of make than on other platforms
18210   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18211     MAKE_VERSION_EXPR="-e 4\."
18212     MAKE_REQUIRED_VERSION="4.0"
18213    else
18214     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
18215     MAKE_REQUIRED_VERSION="3.81"
18216   fi
18217 
18218   if test "x$MAKE_CANDIDATE" != x; then
18219     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
18220 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
18221     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
18222     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
18223     if test "x$IS_GNU_MAKE" = x; then
18224       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
18225 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
18226     else
18227       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
18228       if test "x$IS_MODERN_MAKE" = x; then
18229         { $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
18230 $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;}
18231       else
18232         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
18233           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18234             MAKE_EXPECTED_ENV='cygwin'
18235           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18236             MAKE_EXPECTED_ENV='msys'
18237           else
18238             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
18239           fi
18240           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
18241           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
18242         else
18243           # Not relevant for non-Windows
18244           IS_MAKE_CORRECT_ENV=true
18245         fi
18246         if test "x$IS_MAKE_CORRECT_ENV" = x; then
18247           { $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
18248 $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;}
18249         else
18250           FOUND_MAKE=$MAKE_CANDIDATE
18251 
18252   # Only process if variable expands to non-empty
18253 
18254   if test "x$FOUND_MAKE" != x; then
18255     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18256 
18257   # First separate the path from the arguments. This will split at the first
18258   # space.
18259   complete="$FOUND_MAKE"
18260   path="${complete%% *}"
18261   tmp="$complete EOL"
18262   arguments="${tmp#* }"
18263 
18264   # Input might be given as Windows format, start by converting to
18265   # unix format.
18266   new_path=`$CYGPATH -u "$path"`
18267 
18268   # Now try to locate executable using which
18269   new_path=`$WHICH "$new_path" 2> /dev/null`
18270   # bat and cmd files are not always considered executable in cygwin causing which
18271   # to not find them
18272   if test "x$new_path" = x \
18273       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18274       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18275     new_path=`$CYGPATH -u "$path"`
18276   fi
18277   if test "x$new_path" = x; then
18278     # Oops. Which didn't find the executable.
18279     # The splitting of arguments from the executable at a space might have been incorrect,
18280     # since paths with space are more likely in Windows. Give it another try with the whole
18281     # argument.
18282     path="$complete"
18283     arguments="EOL"
18284     new_path=`$CYGPATH -u "$path"`
18285     new_path=`$WHICH "$new_path" 2> /dev/null`
18286     # bat and cmd files are not always considered executable in cygwin causing which
18287     # to not find them
18288     if test "x$new_path" = x \
18289         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18290         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18291       new_path=`$CYGPATH -u "$path"`
18292     fi
18293     if test "x$new_path" = x; then
18294       # It's still not found. Now this is an unrecoverable error.
18295       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18296 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18297       has_space=`$ECHO "$complete" | $GREP " "`
18298       if test "x$has_space" != x; then
18299         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18300 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18301       fi
18302       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18303     fi
18304   fi
18305 
18306   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
18307   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
18308   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
18309   # "foo.exe" is OK but "foo" is an error.
18310   #
18311   # This test is therefore slightly more accurate than "test -f" to check for file presence.
18312   # It is also a way to make sure we got the proper file name for the real test later on.
18313   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
18314   if test "x$test_shortpath" = x; then
18315     # Short path failed, file does not exist as specified.
18316     # Try adding .exe or .cmd
18317     if test -f "${new_path}.exe"; then
18318       input_to_shortpath="${new_path}.exe"
18319     elif test -f "${new_path}.cmd"; then
18320       input_to_shortpath="${new_path}.cmd"
18321     else
18322       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
18323 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
18324       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
18325 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
18326       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18327     fi
18328   else
18329     input_to_shortpath="$new_path"
18330   fi
18331 
18332   # Call helper function which possibly converts this using DOS-style short mode.
18333   # If so, the updated path is stored in $new_path.
18334   new_path="$input_to_shortpath"
18335 
18336   input_path="$input_to_shortpath"
18337   # Check if we need to convert this using DOS-style short mode. If the path
18338   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18339   # take no chances and rewrite it.
18340   # Note: m4 eats our [], so we need to use [ and ] instead.
18341   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
18342   if test "x$has_forbidden_chars" != x; then
18343     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18344     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
18345     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
18346     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
18347       # Going to short mode and back again did indeed matter. Since short mode is
18348       # case insensitive, let's make it lowercase to improve readability.
18349       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18350       # Now convert it back to Unix-style (cygpath)
18351       input_path=`$CYGPATH -u "$shortmode_path"`
18352       new_path="$input_path"
18353     fi
18354   fi
18355 
18356   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
18357   if test "x$test_cygdrive_prefix" = x; then
18358     # As a simple fix, exclude /usr/bin since it's not a real path.
18359     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
18360       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
18361       # a path prefixed by /cygdrive for fixpath to work.
18362       new_path="$CYGWIN_ROOT_PATH$input_path"
18363     fi
18364   fi
18365 
18366   # remove trailing .exe if any
18367   new_path="${new_path/%.exe/}"
18368 
18369     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18370 
18371   # First separate the path from the arguments. This will split at the first
18372   # space.
18373   complete="$FOUND_MAKE"
18374   path="${complete%% *}"
18375   tmp="$complete EOL"
18376   arguments="${tmp#* }"
18377 
18378   # Input might be given as Windows format, start by converting to
18379   # unix format.
18380   new_path="$path"
18381 
18382   windows_path="$new_path"
18383   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18384     unix_path=`$CYGPATH -u "$windows_path"`
18385     new_path="$unix_path"
18386   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18387     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18388     new_path="$unix_path"
18389   fi
18390 
18391 
18392   # Now try to locate executable using which
18393   new_path=`$WHICH "$new_path" 2> /dev/null`
18394 
18395   if test "x$new_path" = x; then
18396     # Oops. Which didn't find the executable.
18397     # The splitting of arguments from the executable at a space might have been incorrect,
18398     # since paths with space are more likely in Windows. Give it another try with the whole
18399     # argument.
18400     path="$complete"
18401     arguments="EOL"
18402     new_path="$path"
18403 
18404   windows_path="$new_path"
18405   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18406     unix_path=`$CYGPATH -u "$windows_path"`
18407     new_path="$unix_path"
18408   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18409     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18410     new_path="$unix_path"
18411   fi
18412 
18413 
18414     new_path=`$WHICH "$new_path" 2> /dev/null`
18415     # bat and cmd files are not always considered executable in MSYS causing which
18416     # to not find them
18417     if test "x$new_path" = x \
18418         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18419         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18420       new_path="$path"
18421 
18422   windows_path="$new_path"
18423   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18424     unix_path=`$CYGPATH -u "$windows_path"`
18425     new_path="$unix_path"
18426   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18427     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18428     new_path="$unix_path"
18429   fi
18430 
18431     fi
18432 
18433     if test "x$new_path" = x; then
18434       # It's still not found. Now this is an unrecoverable error.
18435       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18436 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18437       has_space=`$ECHO "$complete" | $GREP " "`
18438       if test "x$has_space" != x; then
18439         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18440 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18441       fi
18442       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18443     fi
18444   fi
18445 
18446   # Now new_path has a complete unix path to the binary
18447   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
18448     # Keep paths in /bin as-is, but remove trailing .exe if any
18449     new_path="${new_path/%.exe/}"
18450     # Do not save /bin paths to all_fixpath_prefixes!
18451   else
18452     # Not in mixed or Windows style, start by that.
18453     new_path=`cmd //c echo $new_path`
18454 
18455   input_path="$new_path"
18456   # Check if we need to convert this using DOS-style short mode. If the path
18457   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18458   # take no chances and rewrite it.
18459   # Note: m4 eats our [], so we need to use [ and ] instead.
18460   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
18461   if test "x$has_forbidden_chars" != x; then
18462     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18463     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18464   fi
18465 
18466     # Output is in $new_path
18467 
18468   windows_path="$new_path"
18469   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18470     unix_path=`$CYGPATH -u "$windows_path"`
18471     new_path="$unix_path"
18472   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18473     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18474     new_path="$unix_path"
18475   fi
18476 
18477     # remove trailing .exe if any
18478     new_path="${new_path/%.exe/}"
18479 
18480     # Save the first 10 bytes of this path to the storage, so fixpath can work.
18481     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
18482   fi
18483 
18484     else
18485       # We're on a unix platform. Hooray! :)
18486       # First separate the path from the arguments. This will split at the first
18487       # space.
18488       complete="$FOUND_MAKE"
18489       path="${complete%% *}"
18490       tmp="$complete EOL"
18491       arguments="${tmp#* }"
18492 
18493       # Cannot rely on the command "which" here since it doesn't always work.
18494       is_absolute_path=`$ECHO "$path" | $GREP ^/`
18495       if test -z "$is_absolute_path"; then
18496         # Path to executable is not absolute. Find it.
18497         IFS_save="$IFS"
18498         IFS=:
18499         for p in $PATH; do
18500           if test -f "$p/$path" && test -x "$p/$path"; then
18501             new_path="$p/$path"
18502             break
18503           fi
18504         done
18505         IFS="$IFS_save"
18506       else
18507         # This is an absolute path, we can use it without further modifications.
18508         new_path="$path"
18509       fi
18510 
18511       if test "x$new_path" = x; then
18512         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18513 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18514         has_space=`$ECHO "$complete" | $GREP " "`
18515         if test "x$has_space" != x; then
18516           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
18517 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
18518         fi
18519         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18520       fi
18521     fi
18522 
18523     # Now join together the path and the arguments once again
18524     if test "x$arguments" != xEOL; then
18525       new_complete="$new_path ${arguments% *}"
18526     else
18527       new_complete="$new_path"
18528     fi
18529 
18530     if test "x$complete" != "x$new_complete"; then
18531       FOUND_MAKE="$new_complete"
18532       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
18533 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
18534     fi
18535   fi
18536 
18537         fi
18538       fi
18539     fi
18540   fi
18541 
18542     fi
18543 
18544     if test "x$FOUND_MAKE" = x; then
18545       if test "x$TOOLCHAIN_PATH" != x; then
18546         # We have a toolchain path, check that as well before giving up.
18547         OLD_PATH=$PATH
18548         PATH=$TOOLCHAIN_PATH:$PATH
18549         for ac_prog in gmake
18550 do
18551   # Extract the first word of "$ac_prog", so it can be a program name with args.
18552 set dummy $ac_prog; ac_word=$2
18553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18554 $as_echo_n "checking for $ac_word... " >&6; }
18555 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then :
18556   $as_echo_n "(cached) " >&6
18557 else
18558   case $CHECK_TOOLSDIR_GMAKE in
18559   [\\/]* | ?:[\\/]*)
18560   ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
18561   ;;
18562   *)
18563   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18564 for as_dir in $PATH
18565 do
18566   IFS=$as_save_IFS
18567   test -z "$as_dir" && as_dir=.
18568     for ac_exec_ext in '' $ac_executable_extensions; do
18569   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18570     ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
18571     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18572     break 2
18573   fi
18574 done
18575   done
18576 IFS=$as_save_IFS
18577 
18578   ;;
18579 esac
18580 fi
18581 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE
18582 if test -n "$CHECK_TOOLSDIR_GMAKE"; then
18583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5
18584 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; }
18585 else
18586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18587 $as_echo "no" >&6; }
18588 fi
18589 
18590 
18591   test -n "$CHECK_TOOLSDIR_GMAKE" && break
18592 done
18593 
18594 
18595   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE""
18596   DESCRIPTION="gmake in tools-dir"
18597 
18598   # On Cygwin, we require a newer version of make than on other platforms
18599   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18600     MAKE_VERSION_EXPR="-e 4\."
18601     MAKE_REQUIRED_VERSION="4.0"
18602    else
18603     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
18604     MAKE_REQUIRED_VERSION="3.81"
18605   fi
18606 
18607   if test "x$MAKE_CANDIDATE" != x; then
18608     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
18609 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
18610     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
18611     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
18612     if test "x$IS_GNU_MAKE" = x; then
18613       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
18614 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
18615     else
18616       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
18617       if test "x$IS_MODERN_MAKE" = x; then
18618         { $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
18619 $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;}
18620       else
18621         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
18622           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18623             MAKE_EXPECTED_ENV='cygwin'
18624           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18625             MAKE_EXPECTED_ENV='msys'
18626           else
18627             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
18628           fi
18629           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
18630           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
18631         else
18632           # Not relevant for non-Windows
18633           IS_MAKE_CORRECT_ENV=true
18634         fi
18635         if test "x$IS_MAKE_CORRECT_ENV" = x; then
18636           { $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
18637 $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;}
18638         else
18639           FOUND_MAKE=$MAKE_CANDIDATE
18640 
18641   # Only process if variable expands to non-empty
18642 
18643   if test "x$FOUND_MAKE" != x; then
18644     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18645 
18646   # First separate the path from the arguments. This will split at the first
18647   # space.
18648   complete="$FOUND_MAKE"
18649   path="${complete%% *}"
18650   tmp="$complete EOL"
18651   arguments="${tmp#* }"
18652 
18653   # Input might be given as Windows format, start by converting to
18654   # unix format.
18655   new_path=`$CYGPATH -u "$path"`
18656 
18657   # Now try to locate executable using which
18658   new_path=`$WHICH "$new_path" 2> /dev/null`
18659   # bat and cmd files are not always considered executable in cygwin causing which
18660   # to not find them
18661   if test "x$new_path" = x \
18662       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18663       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18664     new_path=`$CYGPATH -u "$path"`
18665   fi
18666   if test "x$new_path" = x; then
18667     # Oops. Which didn't find the executable.
18668     # The splitting of arguments from the executable at a space might have been incorrect,
18669     # since paths with space are more likely in Windows. Give it another try with the whole
18670     # argument.
18671     path="$complete"
18672     arguments="EOL"
18673     new_path=`$CYGPATH -u "$path"`
18674     new_path=`$WHICH "$new_path" 2> /dev/null`
18675     # bat and cmd files are not always considered executable in cygwin causing which
18676     # to not find them
18677     if test "x$new_path" = x \
18678         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18679         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18680       new_path=`$CYGPATH -u "$path"`
18681     fi
18682     if test "x$new_path" = x; then
18683       # It's still not found. Now this is an unrecoverable error.
18684       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18685 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18686       has_space=`$ECHO "$complete" | $GREP " "`
18687       if test "x$has_space" != x; then
18688         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18689 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18690       fi
18691       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18692     fi
18693   fi
18694 
18695   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
18696   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
18697   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
18698   # "foo.exe" is OK but "foo" is an error.
18699   #
18700   # This test is therefore slightly more accurate than "test -f" to check for file presence.
18701   # It is also a way to make sure we got the proper file name for the real test later on.
18702   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
18703   if test "x$test_shortpath" = x; then
18704     # Short path failed, file does not exist as specified.
18705     # Try adding .exe or .cmd
18706     if test -f "${new_path}.exe"; then
18707       input_to_shortpath="${new_path}.exe"
18708     elif test -f "${new_path}.cmd"; then
18709       input_to_shortpath="${new_path}.cmd"
18710     else
18711       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
18712 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
18713       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
18714 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
18715       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18716     fi
18717   else
18718     input_to_shortpath="$new_path"
18719   fi
18720 
18721   # Call helper function which possibly converts this using DOS-style short mode.
18722   # If so, the updated path is stored in $new_path.
18723   new_path="$input_to_shortpath"
18724 
18725   input_path="$input_to_shortpath"
18726   # Check if we need to convert this using DOS-style short mode. If the path
18727   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18728   # take no chances and rewrite it.
18729   # Note: m4 eats our [], so we need to use [ and ] instead.
18730   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
18731   if test "x$has_forbidden_chars" != x; then
18732     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18733     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
18734     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
18735     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
18736       # Going to short mode and back again did indeed matter. Since short mode is
18737       # case insensitive, let's make it lowercase to improve readability.
18738       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18739       # Now convert it back to Unix-style (cygpath)
18740       input_path=`$CYGPATH -u "$shortmode_path"`
18741       new_path="$input_path"
18742     fi
18743   fi
18744 
18745   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
18746   if test "x$test_cygdrive_prefix" = x; then
18747     # As a simple fix, exclude /usr/bin since it's not a real path.
18748     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
18749       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
18750       # a path prefixed by /cygdrive for fixpath to work.
18751       new_path="$CYGWIN_ROOT_PATH$input_path"
18752     fi
18753   fi
18754 
18755   # remove trailing .exe if any
18756   new_path="${new_path/%.exe/}"
18757 
18758     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18759 
18760   # First separate the path from the arguments. This will split at the first
18761   # space.
18762   complete="$FOUND_MAKE"
18763   path="${complete%% *}"
18764   tmp="$complete EOL"
18765   arguments="${tmp#* }"
18766 
18767   # Input might be given as Windows format, start by converting to
18768   # unix format.
18769   new_path="$path"
18770 
18771   windows_path="$new_path"
18772   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18773     unix_path=`$CYGPATH -u "$windows_path"`
18774     new_path="$unix_path"
18775   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18776     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18777     new_path="$unix_path"
18778   fi
18779 
18780 
18781   # Now try to locate executable using which
18782   new_path=`$WHICH "$new_path" 2> /dev/null`
18783 
18784   if test "x$new_path" = x; then
18785     # Oops. Which didn't find the executable.
18786     # The splitting of arguments from the executable at a space might have been incorrect,
18787     # since paths with space are more likely in Windows. Give it another try with the whole
18788     # argument.
18789     path="$complete"
18790     arguments="EOL"
18791     new_path="$path"
18792 
18793   windows_path="$new_path"
18794   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18795     unix_path=`$CYGPATH -u "$windows_path"`
18796     new_path="$unix_path"
18797   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18798     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18799     new_path="$unix_path"
18800   fi
18801 
18802 
18803     new_path=`$WHICH "$new_path" 2> /dev/null`
18804     # bat and cmd files are not always considered executable in MSYS causing which
18805     # to not find them
18806     if test "x$new_path" = x \
18807         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18808         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18809       new_path="$path"
18810 
18811   windows_path="$new_path"
18812   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18813     unix_path=`$CYGPATH -u "$windows_path"`
18814     new_path="$unix_path"
18815   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18816     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18817     new_path="$unix_path"
18818   fi
18819 
18820     fi
18821 
18822     if test "x$new_path" = x; then
18823       # It's still not found. Now this is an unrecoverable error.
18824       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18825 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18826       has_space=`$ECHO "$complete" | $GREP " "`
18827       if test "x$has_space" != x; then
18828         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18829 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18830       fi
18831       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18832     fi
18833   fi
18834 
18835   # Now new_path has a complete unix path to the binary
18836   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
18837     # Keep paths in /bin as-is, but remove trailing .exe if any
18838     new_path="${new_path/%.exe/}"
18839     # Do not save /bin paths to all_fixpath_prefixes!
18840   else
18841     # Not in mixed or Windows style, start by that.
18842     new_path=`cmd //c echo $new_path`
18843 
18844   input_path="$new_path"
18845   # Check if we need to convert this using DOS-style short mode. If the path
18846   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18847   # take no chances and rewrite it.
18848   # Note: m4 eats our [], so we need to use [ and ] instead.
18849   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
18850   if test "x$has_forbidden_chars" != x; then
18851     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18852     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18853   fi
18854 
18855     # Output is in $new_path
18856 
18857   windows_path="$new_path"
18858   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18859     unix_path=`$CYGPATH -u "$windows_path"`
18860     new_path="$unix_path"
18861   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18862     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18863     new_path="$unix_path"
18864   fi
18865 
18866     # remove trailing .exe if any
18867     new_path="${new_path/%.exe/}"
18868 
18869     # Save the first 10 bytes of this path to the storage, so fixpath can work.
18870     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
18871   fi
18872 
18873     else
18874       # We're on a unix platform. Hooray! :)
18875       # First separate the path from the arguments. This will split at the first
18876       # space.
18877       complete="$FOUND_MAKE"
18878       path="${complete%% *}"
18879       tmp="$complete EOL"
18880       arguments="${tmp#* }"
18881 
18882       # Cannot rely on the command "which" here since it doesn't always work.
18883       is_absolute_path=`$ECHO "$path" | $GREP ^/`
18884       if test -z "$is_absolute_path"; then
18885         # Path to executable is not absolute. Find it.
18886         IFS_save="$IFS"
18887         IFS=:
18888         for p in $PATH; do
18889           if test -f "$p/$path" && test -x "$p/$path"; then
18890             new_path="$p/$path"
18891             break
18892           fi
18893         done
18894         IFS="$IFS_save"
18895       else
18896         # This is an absolute path, we can use it without further modifications.
18897         new_path="$path"
18898       fi
18899 
18900       if test "x$new_path" = x; then
18901         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18902 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18903         has_space=`$ECHO "$complete" | $GREP " "`
18904         if test "x$has_space" != x; then
18905           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
18906 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
18907         fi
18908         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18909       fi
18910     fi
18911 
18912     # Now join together the path and the arguments once again
18913     if test "x$arguments" != xEOL; then
18914       new_complete="$new_path ${arguments% *}"
18915     else
18916       new_complete="$new_path"
18917     fi
18918 
18919     if test "x$complete" != "x$new_complete"; then
18920       FOUND_MAKE="$new_complete"
18921       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
18922 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
18923     fi
18924   fi
18925 
18926         fi
18927       fi
18928     fi
18929   fi
18930 
18931         if test "x$FOUND_MAKE" = x; then
18932           for ac_prog in make
18933 do
18934   # Extract the first word of "$ac_prog", so it can be a program name with args.
18935 set dummy $ac_prog; ac_word=$2
18936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18937 $as_echo_n "checking for $ac_word... " >&6; }
18938 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then :
18939   $as_echo_n "(cached) " >&6
18940 else
18941   case $CHECK_TOOLSDIR_MAKE in
18942   [\\/]* | ?:[\\/]*)
18943   ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
18944   ;;
18945   *)
18946   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18947 for as_dir in $PATH
18948 do
18949   IFS=$as_save_IFS
18950   test -z "$as_dir" && as_dir=.
18951     for ac_exec_ext in '' $ac_executable_extensions; do
18952   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18953     ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
18954     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18955     break 2
18956   fi
18957 done
18958   done
18959 IFS=$as_save_IFS
18960 
18961   ;;
18962 esac
18963 fi
18964 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE
18965 if test -n "$CHECK_TOOLSDIR_MAKE"; then
18966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5
18967 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; }
18968 else
18969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18970 $as_echo "no" >&6; }
18971 fi
18972 
18973 
18974   test -n "$CHECK_TOOLSDIR_MAKE" && break
18975 done
18976 
18977 
18978   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE""
18979   DESCRIPTION="make in tools-dir"
18980 
18981   # On Cygwin, we require a newer version of make than on other platforms
18982   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18983     MAKE_VERSION_EXPR="-e 4\."
18984     MAKE_REQUIRED_VERSION="4.0"
18985    else
18986     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
18987     MAKE_REQUIRED_VERSION="3.81"
18988   fi
18989 
18990   if test "x$MAKE_CANDIDATE" != x; then
18991     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
18992 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
18993     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
18994     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
18995     if test "x$IS_GNU_MAKE" = x; then
18996       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
18997 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
18998     else
18999       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
19000       if test "x$IS_MODERN_MAKE" = x; then
19001         { $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
19002 $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;}
19003       else
19004         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
19005           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19006             MAKE_EXPECTED_ENV='cygwin'
19007           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19008             MAKE_EXPECTED_ENV='msys'
19009           else
19010             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
19011           fi
19012           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
19013           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
19014         else
19015           # Not relevant for non-Windows
19016           IS_MAKE_CORRECT_ENV=true
19017         fi
19018         if test "x$IS_MAKE_CORRECT_ENV" = x; then
19019           { $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
19020 $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;}
19021         else
19022           FOUND_MAKE=$MAKE_CANDIDATE
19023 
19024   # Only process if variable expands to non-empty
19025 
19026   if test "x$FOUND_MAKE" != x; then
19027     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19028 
19029   # First separate the path from the arguments. This will split at the first
19030   # space.
19031   complete="$FOUND_MAKE"
19032   path="${complete%% *}"
19033   tmp="$complete EOL"
19034   arguments="${tmp#* }"
19035 
19036   # Input might be given as Windows format, start by converting to
19037   # unix format.
19038   new_path=`$CYGPATH -u "$path"`
19039 
19040   # Now try to locate executable using which
19041   new_path=`$WHICH "$new_path" 2> /dev/null`
19042   # bat and cmd files are not always considered executable in cygwin causing which
19043   # to not find them
19044   if test "x$new_path" = x \
19045       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19046       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19047     new_path=`$CYGPATH -u "$path"`
19048   fi
19049   if test "x$new_path" = x; then
19050     # Oops. Which didn't find the executable.
19051     # The splitting of arguments from the executable at a space might have been incorrect,
19052     # since paths with space are more likely in Windows. Give it another try with the whole
19053     # argument.
19054     path="$complete"
19055     arguments="EOL"
19056     new_path=`$CYGPATH -u "$path"`
19057     new_path=`$WHICH "$new_path" 2> /dev/null`
19058     # bat and cmd files are not always considered executable in cygwin causing which
19059     # to not find them
19060     if test "x$new_path" = x \
19061         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19062         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19063       new_path=`$CYGPATH -u "$path"`
19064     fi
19065     if test "x$new_path" = x; then
19066       # It's still not found. Now this is an unrecoverable error.
19067       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19068 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19069       has_space=`$ECHO "$complete" | $GREP " "`
19070       if test "x$has_space" != x; then
19071         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19072 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19073       fi
19074       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19075     fi
19076   fi
19077 
19078   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19079   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19080   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19081   # "foo.exe" is OK but "foo" is an error.
19082   #
19083   # This test is therefore slightly more accurate than "test -f" to check for file presence.
19084   # It is also a way to make sure we got the proper file name for the real test later on.
19085   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19086   if test "x$test_shortpath" = x; then
19087     # Short path failed, file does not exist as specified.
19088     # Try adding .exe or .cmd
19089     if test -f "${new_path}.exe"; then
19090       input_to_shortpath="${new_path}.exe"
19091     elif test -f "${new_path}.cmd"; then
19092       input_to_shortpath="${new_path}.cmd"
19093     else
19094       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
19095 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
19096       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
19097 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
19098       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19099     fi
19100   else
19101     input_to_shortpath="$new_path"
19102   fi
19103 
19104   # Call helper function which possibly converts this using DOS-style short mode.
19105   # If so, the updated path is stored in $new_path.
19106   new_path="$input_to_shortpath"
19107 
19108   input_path="$input_to_shortpath"
19109   # Check if we need to convert this using DOS-style short mode. If the path
19110   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19111   # take no chances and rewrite it.
19112   # Note: m4 eats our [], so we need to use [ and ] instead.
19113   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19114   if test "x$has_forbidden_chars" != x; then
19115     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19116     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19117     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19118     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19119       # Going to short mode and back again did indeed matter. Since short mode is
19120       # case insensitive, let's make it lowercase to improve readability.
19121       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19122       # Now convert it back to Unix-style (cygpath)
19123       input_path=`$CYGPATH -u "$shortmode_path"`
19124       new_path="$input_path"
19125     fi
19126   fi
19127 
19128   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
19129   if test "x$test_cygdrive_prefix" = x; then
19130     # As a simple fix, exclude /usr/bin since it's not a real path.
19131     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
19132       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
19133       # a path prefixed by /cygdrive for fixpath to work.
19134       new_path="$CYGWIN_ROOT_PATH$input_path"
19135     fi
19136   fi
19137 
19138   # remove trailing .exe if any
19139   new_path="${new_path/%.exe/}"
19140 
19141     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19142 
19143   # First separate the path from the arguments. This will split at the first
19144   # space.
19145   complete="$FOUND_MAKE"
19146   path="${complete%% *}"
19147   tmp="$complete EOL"
19148   arguments="${tmp#* }"
19149 
19150   # Input might be given as Windows format, start by converting to
19151   # unix format.
19152   new_path="$path"
19153 
19154   windows_path="$new_path"
19155   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19156     unix_path=`$CYGPATH -u "$windows_path"`
19157     new_path="$unix_path"
19158   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19159     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19160     new_path="$unix_path"
19161   fi
19162 
19163 
19164   # Now try to locate executable using which
19165   new_path=`$WHICH "$new_path" 2> /dev/null`
19166 
19167   if test "x$new_path" = x; then
19168     # Oops. Which didn't find the executable.
19169     # The splitting of arguments from the executable at a space might have been incorrect,
19170     # since paths with space are more likely in Windows. Give it another try with the whole
19171     # argument.
19172     path="$complete"
19173     arguments="EOL"
19174     new_path="$path"
19175 
19176   windows_path="$new_path"
19177   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19178     unix_path=`$CYGPATH -u "$windows_path"`
19179     new_path="$unix_path"
19180   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19181     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19182     new_path="$unix_path"
19183   fi
19184 
19185 
19186     new_path=`$WHICH "$new_path" 2> /dev/null`
19187     # bat and cmd files are not always considered executable in MSYS causing which
19188     # to not find them
19189     if test "x$new_path" = x \
19190         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19191         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19192       new_path="$path"
19193 
19194   windows_path="$new_path"
19195   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19196     unix_path=`$CYGPATH -u "$windows_path"`
19197     new_path="$unix_path"
19198   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19199     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19200     new_path="$unix_path"
19201   fi
19202 
19203     fi
19204 
19205     if test "x$new_path" = x; then
19206       # It's still not found. Now this is an unrecoverable error.
19207       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19208 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19209       has_space=`$ECHO "$complete" | $GREP " "`
19210       if test "x$has_space" != x; then
19211         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19212 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19213       fi
19214       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19215     fi
19216   fi
19217 
19218   # Now new_path has a complete unix path to the binary
19219   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
19220     # Keep paths in /bin as-is, but remove trailing .exe if any
19221     new_path="${new_path/%.exe/}"
19222     # Do not save /bin paths to all_fixpath_prefixes!
19223   else
19224     # Not in mixed or Windows style, start by that.
19225     new_path=`cmd //c echo $new_path`
19226 
19227   input_path="$new_path"
19228   # Check if we need to convert this using DOS-style short mode. If the path
19229   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19230   # take no chances and rewrite it.
19231   # Note: m4 eats our [], so we need to use [ and ] instead.
19232   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
19233   if test "x$has_forbidden_chars" != x; then
19234     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19235     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19236   fi
19237 
19238     # Output is in $new_path
19239 
19240   windows_path="$new_path"
19241   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19242     unix_path=`$CYGPATH -u "$windows_path"`
19243     new_path="$unix_path"
19244   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19245     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19246     new_path="$unix_path"
19247   fi
19248 
19249     # remove trailing .exe if any
19250     new_path="${new_path/%.exe/}"
19251 
19252     # Save the first 10 bytes of this path to the storage, so fixpath can work.
19253     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
19254   fi
19255 
19256     else
19257       # We're on a unix platform. Hooray! :)
19258       # First separate the path from the arguments. This will split at the first
19259       # space.
19260       complete="$FOUND_MAKE"
19261       path="${complete%% *}"
19262       tmp="$complete EOL"
19263       arguments="${tmp#* }"
19264 
19265       # Cannot rely on the command "which" here since it doesn't always work.
19266       is_absolute_path=`$ECHO "$path" | $GREP ^/`
19267       if test -z "$is_absolute_path"; then
19268         # Path to executable is not absolute. Find it.
19269         IFS_save="$IFS"
19270         IFS=:
19271         for p in $PATH; do
19272           if test -f "$p/$path" && test -x "$p/$path"; then
19273             new_path="$p/$path"
19274             break
19275           fi
19276         done
19277         IFS="$IFS_save"
19278       else
19279         # This is an absolute path, we can use it without further modifications.
19280         new_path="$path"
19281       fi
19282 
19283       if test "x$new_path" = x; then
19284         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19285 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19286         has_space=`$ECHO "$complete" | $GREP " "`
19287         if test "x$has_space" != x; then
19288           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
19289 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
19290         fi
19291         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19292       fi
19293     fi
19294 
19295     # Now join together the path and the arguments once again
19296     if test "x$arguments" != xEOL; then
19297       new_complete="$new_path ${arguments% *}"
19298     else
19299       new_complete="$new_path"
19300     fi
19301 
19302     if test "x$complete" != "x$new_complete"; then
19303       FOUND_MAKE="$new_complete"
19304       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
19305 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
19306     fi
19307   fi
19308 
19309         fi
19310       fi
19311     fi
19312   fi
19313 
19314         fi
19315         PATH=$OLD_PATH
19316       fi
19317     fi
19318 
19319     if test "x$FOUND_MAKE" = x; then
19320       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
19321     fi
19322 
19323   else
19324     # The variable is set, but is it from the command line or the environment?
19325 
19326     # Try to remove the string !MAKE! from our list.
19327     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MAKE!/}
19328     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
19329       # If it failed, the variable was not from the command line. Ignore it,
19330       # but warn the user (except for BASH, which is always set by the calling BASH).
19331       if test "xMAKE" != xBASH; then
19332         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MAKE from the environment. Use command line variables instead." >&5
19333 $as_echo "$as_me: WARNING: Ignoring value of MAKE from the environment. Use command line variables instead." >&2;}
19334       fi
19335       # Try to locate tool using the code snippet
19336 
19337     # Try our hardest to locate a correct version of GNU make
19338     for ac_prog in gmake
19339 do
19340   # Extract the first word of "$ac_prog", so it can be a program name with args.
19341 set dummy $ac_prog; ac_word=$2
19342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19343 $as_echo_n "checking for $ac_word... " >&6; }
19344 if ${ac_cv_path_CHECK_GMAKE+:} false; then :
19345   $as_echo_n "(cached) " >&6
19346 else
19347   case $CHECK_GMAKE in
19348   [\\/]* | ?:[\\/]*)
19349   ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
19350   ;;
19351   *)
19352   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19353 for as_dir in $PATH
19354 do
19355   IFS=$as_save_IFS
19356   test -z "$as_dir" && as_dir=.
19357     for ac_exec_ext in '' $ac_executable_extensions; do
19358   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19359     ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
19360     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19361     break 2
19362   fi
19363 done
19364   done
19365 IFS=$as_save_IFS
19366 
19367   ;;
19368 esac
19369 fi
19370 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE
19371 if test -n "$CHECK_GMAKE"; then
19372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5
19373 $as_echo "$CHECK_GMAKE" >&6; }
19374 else
19375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19376 $as_echo "no" >&6; }
19377 fi
19378 
19379 
19380   test -n "$CHECK_GMAKE" && break
19381 done
19382 
19383 
19384   MAKE_CANDIDATE=""$CHECK_GMAKE""
19385   DESCRIPTION="gmake in PATH"
19386 
19387   # On Cygwin, we require a newer version of make than on other platforms
19388   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19389     MAKE_VERSION_EXPR="-e 4\."
19390     MAKE_REQUIRED_VERSION="4.0"
19391    else
19392     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
19393     MAKE_REQUIRED_VERSION="3.81"
19394   fi
19395 
19396   if test "x$MAKE_CANDIDATE" != x; then
19397     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
19398 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
19399     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
19400     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
19401     if test "x$IS_GNU_MAKE" = x; then
19402       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
19403 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
19404     else
19405       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
19406       if test "x$IS_MODERN_MAKE" = x; then
19407         { $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
19408 $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;}
19409       else
19410         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
19411           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19412             MAKE_EXPECTED_ENV='cygwin'
19413           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19414             MAKE_EXPECTED_ENV='msys'
19415           else
19416             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
19417           fi
19418           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
19419           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
19420         else
19421           # Not relevant for non-Windows
19422           IS_MAKE_CORRECT_ENV=true
19423         fi
19424         if test "x$IS_MAKE_CORRECT_ENV" = x; then
19425           { $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
19426 $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;}
19427         else
19428           FOUND_MAKE=$MAKE_CANDIDATE
19429 
19430   # Only process if variable expands to non-empty
19431 
19432   if test "x$FOUND_MAKE" != x; then
19433     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19434 
19435   # First separate the path from the arguments. This will split at the first
19436   # space.
19437   complete="$FOUND_MAKE"
19438   path="${complete%% *}"
19439   tmp="$complete EOL"
19440   arguments="${tmp#* }"
19441 
19442   # Input might be given as Windows format, start by converting to
19443   # unix format.
19444   new_path=`$CYGPATH -u "$path"`
19445 
19446   # Now try to locate executable using which
19447   new_path=`$WHICH "$new_path" 2> /dev/null`
19448   # bat and cmd files are not always considered executable in cygwin causing which
19449   # to not find them
19450   if test "x$new_path" = x \
19451       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19452       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19453     new_path=`$CYGPATH -u "$path"`
19454   fi
19455   if test "x$new_path" = x; then
19456     # Oops. Which didn't find the executable.
19457     # The splitting of arguments from the executable at a space might have been incorrect,
19458     # since paths with space are more likely in Windows. Give it another try with the whole
19459     # argument.
19460     path="$complete"
19461     arguments="EOL"
19462     new_path=`$CYGPATH -u "$path"`
19463     new_path=`$WHICH "$new_path" 2> /dev/null`
19464     # bat and cmd files are not always considered executable in cygwin causing which
19465     # to not find them
19466     if test "x$new_path" = x \
19467         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19468         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19469       new_path=`$CYGPATH -u "$path"`
19470     fi
19471     if test "x$new_path" = x; then
19472       # It's still not found. Now this is an unrecoverable error.
19473       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19474 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19475       has_space=`$ECHO "$complete" | $GREP " "`
19476       if test "x$has_space" != x; then
19477         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19478 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19479       fi
19480       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19481     fi
19482   fi
19483 
19484   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19485   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19486   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19487   # "foo.exe" is OK but "foo" is an error.
19488   #
19489   # This test is therefore slightly more accurate than "test -f" to check for file presence.
19490   # It is also a way to make sure we got the proper file name for the real test later on.
19491   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19492   if test "x$test_shortpath" = x; then
19493     # Short path failed, file does not exist as specified.
19494     # Try adding .exe or .cmd
19495     if test -f "${new_path}.exe"; then
19496       input_to_shortpath="${new_path}.exe"
19497     elif test -f "${new_path}.cmd"; then
19498       input_to_shortpath="${new_path}.cmd"
19499     else
19500       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
19501 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
19502       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
19503 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
19504       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19505     fi
19506   else
19507     input_to_shortpath="$new_path"
19508   fi
19509 
19510   # Call helper function which possibly converts this using DOS-style short mode.
19511   # If so, the updated path is stored in $new_path.
19512   new_path="$input_to_shortpath"
19513 
19514   input_path="$input_to_shortpath"
19515   # Check if we need to convert this using DOS-style short mode. If the path
19516   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19517   # take no chances and rewrite it.
19518   # Note: m4 eats our [], so we need to use [ and ] instead.
19519   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19520   if test "x$has_forbidden_chars" != x; then
19521     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19522     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19523     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19524     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19525       # Going to short mode and back again did indeed matter. Since short mode is
19526       # case insensitive, let's make it lowercase to improve readability.
19527       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19528       # Now convert it back to Unix-style (cygpath)
19529       input_path=`$CYGPATH -u "$shortmode_path"`
19530       new_path="$input_path"
19531     fi
19532   fi
19533 
19534   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
19535   if test "x$test_cygdrive_prefix" = x; then
19536     # As a simple fix, exclude /usr/bin since it's not a real path.
19537     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
19538       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
19539       # a path prefixed by /cygdrive for fixpath to work.
19540       new_path="$CYGWIN_ROOT_PATH$input_path"
19541     fi
19542   fi
19543 
19544   # remove trailing .exe if any
19545   new_path="${new_path/%.exe/}"
19546 
19547     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19548 
19549   # First separate the path from the arguments. This will split at the first
19550   # space.
19551   complete="$FOUND_MAKE"
19552   path="${complete%% *}"
19553   tmp="$complete EOL"
19554   arguments="${tmp#* }"
19555 
19556   # Input might be given as Windows format, start by converting to
19557   # unix format.
19558   new_path="$path"
19559 
19560   windows_path="$new_path"
19561   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19562     unix_path=`$CYGPATH -u "$windows_path"`
19563     new_path="$unix_path"
19564   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19565     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19566     new_path="$unix_path"
19567   fi
19568 
19569 
19570   # Now try to locate executable using which
19571   new_path=`$WHICH "$new_path" 2> /dev/null`
19572 
19573   if test "x$new_path" = x; then
19574     # Oops. Which didn't find the executable.
19575     # The splitting of arguments from the executable at a space might have been incorrect,
19576     # since paths with space are more likely in Windows. Give it another try with the whole
19577     # argument.
19578     path="$complete"
19579     arguments="EOL"
19580     new_path="$path"
19581 
19582   windows_path="$new_path"
19583   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19584     unix_path=`$CYGPATH -u "$windows_path"`
19585     new_path="$unix_path"
19586   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19587     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19588     new_path="$unix_path"
19589   fi
19590 
19591 
19592     new_path=`$WHICH "$new_path" 2> /dev/null`
19593     # bat and cmd files are not always considered executable in MSYS causing which
19594     # to not find them
19595     if test "x$new_path" = x \
19596         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19597         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19598       new_path="$path"
19599 
19600   windows_path="$new_path"
19601   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19602     unix_path=`$CYGPATH -u "$windows_path"`
19603     new_path="$unix_path"
19604   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19605     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19606     new_path="$unix_path"
19607   fi
19608 
19609     fi
19610 
19611     if test "x$new_path" = x; then
19612       # It's still not found. Now this is an unrecoverable error.
19613       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19614 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19615       has_space=`$ECHO "$complete" | $GREP " "`
19616       if test "x$has_space" != x; then
19617         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19618 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19619       fi
19620       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19621     fi
19622   fi
19623 
19624   # Now new_path has a complete unix path to the binary
19625   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
19626     # Keep paths in /bin as-is, but remove trailing .exe if any
19627     new_path="${new_path/%.exe/}"
19628     # Do not save /bin paths to all_fixpath_prefixes!
19629   else
19630     # Not in mixed or Windows style, start by that.
19631     new_path=`cmd //c echo $new_path`
19632 
19633   input_path="$new_path"
19634   # Check if we need to convert this using DOS-style short mode. If the path
19635   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19636   # take no chances and rewrite it.
19637   # Note: m4 eats our [], so we need to use [ and ] instead.
19638   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
19639   if test "x$has_forbidden_chars" != x; then
19640     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19641     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19642   fi
19643 
19644     # Output is in $new_path
19645 
19646   windows_path="$new_path"
19647   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19648     unix_path=`$CYGPATH -u "$windows_path"`
19649     new_path="$unix_path"
19650   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19651     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19652     new_path="$unix_path"
19653   fi
19654 
19655     # remove trailing .exe if any
19656     new_path="${new_path/%.exe/}"
19657 
19658     # Save the first 10 bytes of this path to the storage, so fixpath can work.
19659     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
19660   fi
19661 
19662     else
19663       # We're on a unix platform. Hooray! :)
19664       # First separate the path from the arguments. This will split at the first
19665       # space.
19666       complete="$FOUND_MAKE"
19667       path="${complete%% *}"
19668       tmp="$complete EOL"
19669       arguments="${tmp#* }"
19670 
19671       # Cannot rely on the command "which" here since it doesn't always work.
19672       is_absolute_path=`$ECHO "$path" | $GREP ^/`
19673       if test -z "$is_absolute_path"; then
19674         # Path to executable is not absolute. Find it.
19675         IFS_save="$IFS"
19676         IFS=:
19677         for p in $PATH; do
19678           if test -f "$p/$path" && test -x "$p/$path"; then
19679             new_path="$p/$path"
19680             break
19681           fi
19682         done
19683         IFS="$IFS_save"
19684       else
19685         # This is an absolute path, we can use it without further modifications.
19686         new_path="$path"
19687       fi
19688 
19689       if test "x$new_path" = x; then
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}: This might be caused by spaces in the path, which is not allowed." >&5
19695 $as_echo "$as_me: This might be caused by spaces in the path, 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 join together the path and the arguments once again
19702     if test "x$arguments" != xEOL; then
19703       new_complete="$new_path ${arguments% *}"
19704     else
19705       new_complete="$new_path"
19706     fi
19707 
19708     if test "x$complete" != "x$new_complete"; then
19709       FOUND_MAKE="$new_complete"
19710       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
19711 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
19712     fi
19713   fi
19714 
19715         fi
19716       fi
19717     fi
19718   fi
19719 
19720 
19721     if test "x$FOUND_MAKE" = x; then
19722       for ac_prog in make
19723 do
19724   # Extract the first word of "$ac_prog", so it can be a program name with args.
19725 set dummy $ac_prog; ac_word=$2
19726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19727 $as_echo_n "checking for $ac_word... " >&6; }
19728 if ${ac_cv_path_CHECK_MAKE+:} false; then :
19729   $as_echo_n "(cached) " >&6
19730 else
19731   case $CHECK_MAKE in
19732   [\\/]* | ?:[\\/]*)
19733   ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
19734   ;;
19735   *)
19736   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19737 for as_dir in $PATH
19738 do
19739   IFS=$as_save_IFS
19740   test -z "$as_dir" && as_dir=.
19741     for ac_exec_ext in '' $ac_executable_extensions; do
19742   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19743     ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
19744     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19745     break 2
19746   fi
19747 done
19748   done
19749 IFS=$as_save_IFS
19750 
19751   ;;
19752 esac
19753 fi
19754 CHECK_MAKE=$ac_cv_path_CHECK_MAKE
19755 if test -n "$CHECK_MAKE"; then
19756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5
19757 $as_echo "$CHECK_MAKE" >&6; }
19758 else
19759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19760 $as_echo "no" >&6; }
19761 fi
19762 
19763 
19764   test -n "$CHECK_MAKE" && break
19765 done
19766 
19767 
19768   MAKE_CANDIDATE=""$CHECK_MAKE""
19769   DESCRIPTION="make in PATH"
19770 
19771   # On Cygwin, we require a newer version of make than on other platforms
19772   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19773     MAKE_VERSION_EXPR="-e 4\."
19774     MAKE_REQUIRED_VERSION="4.0"
19775    else
19776     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
19777     MAKE_REQUIRED_VERSION="3.81"
19778   fi
19779 
19780   if test "x$MAKE_CANDIDATE" != x; then
19781     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
19782 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
19783     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
19784     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
19785     if test "x$IS_GNU_MAKE" = x; then
19786       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
19787 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
19788     else
19789       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
19790       if test "x$IS_MODERN_MAKE" = x; then
19791         { $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
19792 $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;}
19793       else
19794         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
19795           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19796             MAKE_EXPECTED_ENV='cygwin'
19797           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19798             MAKE_EXPECTED_ENV='msys'
19799           else
19800             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
19801           fi
19802           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
19803           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
19804         else
19805           # Not relevant for non-Windows
19806           IS_MAKE_CORRECT_ENV=true
19807         fi
19808         if test "x$IS_MAKE_CORRECT_ENV" = x; then
19809           { $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
19810 $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;}
19811         else
19812           FOUND_MAKE=$MAKE_CANDIDATE
19813 
19814   # Only process if variable expands to non-empty
19815 
19816   if test "x$FOUND_MAKE" != x; then
19817     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19818 
19819   # First separate the path from the arguments. This will split at the first
19820   # space.
19821   complete="$FOUND_MAKE"
19822   path="${complete%% *}"
19823   tmp="$complete EOL"
19824   arguments="${tmp#* }"
19825 
19826   # Input might be given as Windows format, start by converting to
19827   # unix format.
19828   new_path=`$CYGPATH -u "$path"`
19829 
19830   # Now try to locate executable using which
19831   new_path=`$WHICH "$new_path" 2> /dev/null`
19832   # bat and cmd files are not always considered executable in cygwin causing which
19833   # to not find them
19834   if test "x$new_path" = x \
19835       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19836       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19837     new_path=`$CYGPATH -u "$path"`
19838   fi
19839   if test "x$new_path" = x; then
19840     # Oops. Which didn't find the executable.
19841     # The splitting of arguments from the executable at a space might have been incorrect,
19842     # since paths with space are more likely in Windows. Give it another try with the whole
19843     # argument.
19844     path="$complete"
19845     arguments="EOL"
19846     new_path=`$CYGPATH -u "$path"`
19847     new_path=`$WHICH "$new_path" 2> /dev/null`
19848     # bat and cmd files are not always considered executable in cygwin causing which
19849     # to not find them
19850     if test "x$new_path" = x \
19851         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19852         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19853       new_path=`$CYGPATH -u "$path"`
19854     fi
19855     if test "x$new_path" = x; then
19856       # It's still not found. Now this is an unrecoverable error.
19857       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19858 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19859       has_space=`$ECHO "$complete" | $GREP " "`
19860       if test "x$has_space" != x; then
19861         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19862 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19863       fi
19864       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19865     fi
19866   fi
19867 
19868   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19869   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19870   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19871   # "foo.exe" is OK but "foo" is an error.
19872   #
19873   # This test is therefore slightly more accurate than "test -f" to check for file presence.
19874   # It is also a way to make sure we got the proper file name for the real test later on.
19875   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19876   if test "x$test_shortpath" = x; then
19877     # Short path failed, file does not exist as specified.
19878     # Try adding .exe or .cmd
19879     if test -f "${new_path}.exe"; then
19880       input_to_shortpath="${new_path}.exe"
19881     elif test -f "${new_path}.cmd"; then
19882       input_to_shortpath="${new_path}.cmd"
19883     else
19884       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
19885 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
19886       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
19887 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
19888       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19889     fi
19890   else
19891     input_to_shortpath="$new_path"
19892   fi
19893 
19894   # Call helper function which possibly converts this using DOS-style short mode.
19895   # If so, the updated path is stored in $new_path.
19896   new_path="$input_to_shortpath"
19897 
19898   input_path="$input_to_shortpath"
19899   # Check if we need to convert this using DOS-style short mode. If the path
19900   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19901   # take no chances and rewrite it.
19902   # Note: m4 eats our [], so we need to use [ and ] instead.
19903   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19904   if test "x$has_forbidden_chars" != x; then
19905     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19906     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19907     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19908     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19909       # Going to short mode and back again did indeed matter. Since short mode is
19910       # case insensitive, let's make it lowercase to improve readability.
19911       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19912       # Now convert it back to Unix-style (cygpath)
19913       input_path=`$CYGPATH -u "$shortmode_path"`
19914       new_path="$input_path"
19915     fi
19916   fi
19917 
19918   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
19919   if test "x$test_cygdrive_prefix" = x; then
19920     # As a simple fix, exclude /usr/bin since it's not a real path.
19921     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
19922       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
19923       # a path prefixed by /cygdrive for fixpath to work.
19924       new_path="$CYGWIN_ROOT_PATH$input_path"
19925     fi
19926   fi
19927 
19928   # remove trailing .exe if any
19929   new_path="${new_path/%.exe/}"
19930 
19931     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19932 
19933   # First separate the path from the arguments. This will split at the first
19934   # space.
19935   complete="$FOUND_MAKE"
19936   path="${complete%% *}"
19937   tmp="$complete EOL"
19938   arguments="${tmp#* }"
19939 
19940   # Input might be given as Windows format, start by converting to
19941   # unix format.
19942   new_path="$path"
19943 
19944   windows_path="$new_path"
19945   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19946     unix_path=`$CYGPATH -u "$windows_path"`
19947     new_path="$unix_path"
19948   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19949     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19950     new_path="$unix_path"
19951   fi
19952 
19953 
19954   # Now try to locate executable using which
19955   new_path=`$WHICH "$new_path" 2> /dev/null`
19956 
19957   if test "x$new_path" = x; then
19958     # Oops. Which didn't find the executable.
19959     # The splitting of arguments from the executable at a space might have been incorrect,
19960     # since paths with space are more likely in Windows. Give it another try with the whole
19961     # argument.
19962     path="$complete"
19963     arguments="EOL"
19964     new_path="$path"
19965 
19966   windows_path="$new_path"
19967   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19968     unix_path=`$CYGPATH -u "$windows_path"`
19969     new_path="$unix_path"
19970   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19971     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19972     new_path="$unix_path"
19973   fi
19974 
19975 
19976     new_path=`$WHICH "$new_path" 2> /dev/null`
19977     # bat and cmd files are not always considered executable in MSYS causing which
19978     # to not find them
19979     if test "x$new_path" = x \
19980         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19981         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19982       new_path="$path"
19983 
19984   windows_path="$new_path"
19985   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19986     unix_path=`$CYGPATH -u "$windows_path"`
19987     new_path="$unix_path"
19988   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19989     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19990     new_path="$unix_path"
19991   fi
19992 
19993     fi
19994 
19995     if test "x$new_path" = x; then
19996       # It's still not found. Now this is an unrecoverable error.
19997       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19998 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19999       has_space=`$ECHO "$complete" | $GREP " "`
20000       if test "x$has_space" != x; then
20001         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20002 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20003       fi
20004       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20005     fi
20006   fi
20007 
20008   # Now new_path has a complete unix path to the binary
20009   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
20010     # Keep paths in /bin as-is, but remove trailing .exe if any
20011     new_path="${new_path/%.exe/}"
20012     # Do not save /bin paths to all_fixpath_prefixes!
20013   else
20014     # Not in mixed or Windows style, start by that.
20015     new_path=`cmd //c echo $new_path`
20016 
20017   input_path="$new_path"
20018   # Check if we need to convert this using DOS-style short mode. If the path
20019   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20020   # take no chances and rewrite it.
20021   # Note: m4 eats our [], so we need to use [ and ] instead.
20022   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20023   if test "x$has_forbidden_chars" != x; then
20024     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20025     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20026   fi
20027 
20028     # Output is in $new_path
20029 
20030   windows_path="$new_path"
20031   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20032     unix_path=`$CYGPATH -u "$windows_path"`
20033     new_path="$unix_path"
20034   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20035     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20036     new_path="$unix_path"
20037   fi
20038 
20039     # remove trailing .exe if any
20040     new_path="${new_path/%.exe/}"
20041 
20042     # Save the first 10 bytes of this path to the storage, so fixpath can work.
20043     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20044   fi
20045 
20046     else
20047       # We're on a unix platform. Hooray! :)
20048       # First separate the path from the arguments. This will split at the first
20049       # space.
20050       complete="$FOUND_MAKE"
20051       path="${complete%% *}"
20052       tmp="$complete EOL"
20053       arguments="${tmp#* }"
20054 
20055       # Cannot rely on the command "which" here since it doesn't always work.
20056       is_absolute_path=`$ECHO "$path" | $GREP ^/`
20057       if test -z "$is_absolute_path"; then
20058         # Path to executable is not absolute. Find it.
20059         IFS_save="$IFS"
20060         IFS=:
20061         for p in $PATH; do
20062           if test -f "$p/$path" && test -x "$p/$path"; then
20063             new_path="$p/$path"
20064             break
20065           fi
20066         done
20067         IFS="$IFS_save"
20068       else
20069         # This is an absolute path, we can use it without further modifications.
20070         new_path="$path"
20071       fi
20072 
20073       if test "x$new_path" = x; then
20074         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20075 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20076         has_space=`$ECHO "$complete" | $GREP " "`
20077         if test "x$has_space" != x; then
20078           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
20079 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
20080         fi
20081         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20082       fi
20083     fi
20084 
20085     # Now join together the path and the arguments once again
20086     if test "x$arguments" != xEOL; then
20087       new_complete="$new_path ${arguments% *}"
20088     else
20089       new_complete="$new_path"
20090     fi
20091 
20092     if test "x$complete" != "x$new_complete"; then
20093       FOUND_MAKE="$new_complete"
20094       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
20095 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
20096     fi
20097   fi
20098 
20099         fi
20100       fi
20101     fi
20102   fi
20103 
20104     fi
20105 
20106     if test "x$FOUND_MAKE" = x; then
20107       if test "x$TOOLCHAIN_PATH" != x; then
20108         # We have a toolchain path, check that as well before giving up.
20109         OLD_PATH=$PATH
20110         PATH=$TOOLCHAIN_PATH:$PATH
20111         for ac_prog in gmake
20112 do
20113   # Extract the first word of "$ac_prog", so it can be a program name with args.
20114 set dummy $ac_prog; ac_word=$2
20115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20116 $as_echo_n "checking for $ac_word... " >&6; }
20117 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then :
20118   $as_echo_n "(cached) " >&6
20119 else
20120   case $CHECK_TOOLSDIR_GMAKE in
20121   [\\/]* | ?:[\\/]*)
20122   ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
20123   ;;
20124   *)
20125   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20126 for as_dir in $PATH
20127 do
20128   IFS=$as_save_IFS
20129   test -z "$as_dir" && as_dir=.
20130     for ac_exec_ext in '' $ac_executable_extensions; do
20131   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20132     ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
20133     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20134     break 2
20135   fi
20136 done
20137   done
20138 IFS=$as_save_IFS
20139 
20140   ;;
20141 esac
20142 fi
20143 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE
20144 if test -n "$CHECK_TOOLSDIR_GMAKE"; then
20145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5
20146 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; }
20147 else
20148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20149 $as_echo "no" >&6; }
20150 fi
20151 
20152 
20153   test -n "$CHECK_TOOLSDIR_GMAKE" && break
20154 done
20155 
20156 
20157   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE""
20158   DESCRIPTION="gmake in tools-dir"
20159 
20160   # On Cygwin, we require a newer version of make than on other platforms
20161   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20162     MAKE_VERSION_EXPR="-e 4\."
20163     MAKE_REQUIRED_VERSION="4.0"
20164    else
20165     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
20166     MAKE_REQUIRED_VERSION="3.81"
20167   fi
20168 
20169   if test "x$MAKE_CANDIDATE" != x; then
20170     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
20171 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
20172     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
20173     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
20174     if test "x$IS_GNU_MAKE" = x; then
20175       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
20176 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
20177     else
20178       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
20179       if test "x$IS_MODERN_MAKE" = x; then
20180         { $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
20181 $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;}
20182       else
20183         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
20184           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20185             MAKE_EXPECTED_ENV='cygwin'
20186           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20187             MAKE_EXPECTED_ENV='msys'
20188           else
20189             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
20190           fi
20191           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
20192           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
20193         else
20194           # Not relevant for non-Windows
20195           IS_MAKE_CORRECT_ENV=true
20196         fi
20197         if test "x$IS_MAKE_CORRECT_ENV" = x; then
20198           { $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
20199 $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;}
20200         else
20201           FOUND_MAKE=$MAKE_CANDIDATE
20202 
20203   # Only process if variable expands to non-empty
20204 
20205   if test "x$FOUND_MAKE" != x; then
20206     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20207 
20208   # First separate the path from the arguments. This will split at the first
20209   # space.
20210   complete="$FOUND_MAKE"
20211   path="${complete%% *}"
20212   tmp="$complete EOL"
20213   arguments="${tmp#* }"
20214 
20215   # Input might be given as Windows format, start by converting to
20216   # unix format.
20217   new_path=`$CYGPATH -u "$path"`
20218 
20219   # Now try to locate executable using which
20220   new_path=`$WHICH "$new_path" 2> /dev/null`
20221   # bat and cmd files are not always considered executable in cygwin causing which
20222   # to not find them
20223   if test "x$new_path" = x \
20224       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20225       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20226     new_path=`$CYGPATH -u "$path"`
20227   fi
20228   if test "x$new_path" = x; then
20229     # Oops. Which didn't find the executable.
20230     # The splitting of arguments from the executable at a space might have been incorrect,
20231     # since paths with space are more likely in Windows. Give it another try with the whole
20232     # argument.
20233     path="$complete"
20234     arguments="EOL"
20235     new_path=`$CYGPATH -u "$path"`
20236     new_path=`$WHICH "$new_path" 2> /dev/null`
20237     # bat and cmd files are not always considered executable in cygwin causing which
20238     # to not find them
20239     if test "x$new_path" = x \
20240         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20241         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20242       new_path=`$CYGPATH -u "$path"`
20243     fi
20244     if test "x$new_path" = x; then
20245       # It's still not found. Now this is an unrecoverable error.
20246       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20247 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20248       has_space=`$ECHO "$complete" | $GREP " "`
20249       if test "x$has_space" != x; then
20250         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20251 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20252       fi
20253       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20254     fi
20255   fi
20256 
20257   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20258   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20259   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20260   # "foo.exe" is OK but "foo" is an error.
20261   #
20262   # This test is therefore slightly more accurate than "test -f" to check for file presence.
20263   # It is also a way to make sure we got the proper file name for the real test later on.
20264   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20265   if test "x$test_shortpath" = x; then
20266     # Short path failed, file does not exist as specified.
20267     # Try adding .exe or .cmd
20268     if test -f "${new_path}.exe"; then
20269       input_to_shortpath="${new_path}.exe"
20270     elif test -f "${new_path}.cmd"; then
20271       input_to_shortpath="${new_path}.cmd"
20272     else
20273       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
20274 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
20275       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
20276 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
20277       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20278     fi
20279   else
20280     input_to_shortpath="$new_path"
20281   fi
20282 
20283   # Call helper function which possibly converts this using DOS-style short mode.
20284   # If so, the updated path is stored in $new_path.
20285   new_path="$input_to_shortpath"
20286 
20287   input_path="$input_to_shortpath"
20288   # Check if we need to convert this using DOS-style short mode. If the path
20289   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20290   # take no chances and rewrite it.
20291   # Note: m4 eats our [], so we need to use [ and ] instead.
20292   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20293   if test "x$has_forbidden_chars" != x; then
20294     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20295     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20296     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20297     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20298       # Going to short mode and back again did indeed matter. Since short mode is
20299       # case insensitive, let's make it lowercase to improve readability.
20300       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20301       # Now convert it back to Unix-style (cygpath)
20302       input_path=`$CYGPATH -u "$shortmode_path"`
20303       new_path="$input_path"
20304     fi
20305   fi
20306 
20307   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20308   if test "x$test_cygdrive_prefix" = x; then
20309     # As a simple fix, exclude /usr/bin since it's not a real path.
20310     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
20311       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20312       # a path prefixed by /cygdrive for fixpath to work.
20313       new_path="$CYGWIN_ROOT_PATH$input_path"
20314     fi
20315   fi
20316 
20317   # remove trailing .exe if any
20318   new_path="${new_path/%.exe/}"
20319 
20320     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20321 
20322   # First separate the path from the arguments. This will split at the first
20323   # space.
20324   complete="$FOUND_MAKE"
20325   path="${complete%% *}"
20326   tmp="$complete EOL"
20327   arguments="${tmp#* }"
20328 
20329   # Input might be given as Windows format, start by converting to
20330   # unix format.
20331   new_path="$path"
20332 
20333   windows_path="$new_path"
20334   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20335     unix_path=`$CYGPATH -u "$windows_path"`
20336     new_path="$unix_path"
20337   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20338     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20339     new_path="$unix_path"
20340   fi
20341 
20342 
20343   # Now try to locate executable using which
20344   new_path=`$WHICH "$new_path" 2> /dev/null`
20345 
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="$path"
20354 
20355   windows_path="$new_path"
20356   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20357     unix_path=`$CYGPATH -u "$windows_path"`
20358     new_path="$unix_path"
20359   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20360     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20361     new_path="$unix_path"
20362   fi
20363 
20364 
20365     new_path=`$WHICH "$new_path" 2> /dev/null`
20366     # bat and cmd files are not always considered executable in MSYS causing which
20367     # to not find them
20368     if test "x$new_path" = x \
20369         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20370         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20371       new_path="$path"
20372 
20373   windows_path="$new_path"
20374   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20375     unix_path=`$CYGPATH -u "$windows_path"`
20376     new_path="$unix_path"
20377   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20378     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20379     new_path="$unix_path"
20380   fi
20381 
20382     fi
20383 
20384     if test "x$new_path" = x; then
20385       # It's still not found. Now this is an unrecoverable error.
20386       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20387 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20388       has_space=`$ECHO "$complete" | $GREP " "`
20389       if test "x$has_space" != x; then
20390         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20391 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20392       fi
20393       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20394     fi
20395   fi
20396 
20397   # Now new_path has a complete unix path to the binary
20398   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
20399     # Keep paths in /bin as-is, but remove trailing .exe if any
20400     new_path="${new_path/%.exe/}"
20401     # Do not save /bin paths to all_fixpath_prefixes!
20402   else
20403     # Not in mixed or Windows style, start by that.
20404     new_path=`cmd //c echo $new_path`
20405 
20406   input_path="$new_path"
20407   # Check if we need to convert this using DOS-style short mode. If the path
20408   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20409   # take no chances and rewrite it.
20410   # Note: m4 eats our [], so we need to use [ and ] instead.
20411   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20412   if test "x$has_forbidden_chars" != x; then
20413     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20414     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20415   fi
20416 
20417     # Output is in $new_path
20418 
20419   windows_path="$new_path"
20420   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20421     unix_path=`$CYGPATH -u "$windows_path"`
20422     new_path="$unix_path"
20423   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20424     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20425     new_path="$unix_path"
20426   fi
20427 
20428     # remove trailing .exe if any
20429     new_path="${new_path/%.exe/}"
20430 
20431     # Save the first 10 bytes of this path to the storage, so fixpath can work.
20432     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20433   fi
20434 
20435     else
20436       # We're on a unix platform. Hooray! :)
20437       # First separate the path from the arguments. This will split at the first
20438       # space.
20439       complete="$FOUND_MAKE"
20440       path="${complete%% *}"
20441       tmp="$complete EOL"
20442       arguments="${tmp#* }"
20443 
20444       # Cannot rely on the command "which" here since it doesn't always work.
20445       is_absolute_path=`$ECHO "$path" | $GREP ^/`
20446       if test -z "$is_absolute_path"; then
20447         # Path to executable is not absolute. Find it.
20448         IFS_save="$IFS"
20449         IFS=:
20450         for p in $PATH; do
20451           if test -f "$p/$path" && test -x "$p/$path"; then
20452             new_path="$p/$path"
20453             break
20454           fi
20455         done
20456         IFS="$IFS_save"
20457       else
20458         # This is an absolute path, we can use it without further modifications.
20459         new_path="$path"
20460       fi
20461 
20462       if test "x$new_path" = x; then
20463         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20464 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20465         has_space=`$ECHO "$complete" | $GREP " "`
20466         if test "x$has_space" != x; then
20467           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
20468 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
20469         fi
20470         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20471       fi
20472     fi
20473 
20474     # Now join together the path and the arguments once again
20475     if test "x$arguments" != xEOL; then
20476       new_complete="$new_path ${arguments% *}"
20477     else
20478       new_complete="$new_path"
20479     fi
20480 
20481     if test "x$complete" != "x$new_complete"; then
20482       FOUND_MAKE="$new_complete"
20483       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
20484 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
20485     fi
20486   fi
20487 
20488         fi
20489       fi
20490     fi
20491   fi
20492 
20493         if test "x$FOUND_MAKE" = x; then
20494           for ac_prog in make
20495 do
20496   # Extract the first word of "$ac_prog", so it can be a program name with args.
20497 set dummy $ac_prog; ac_word=$2
20498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20499 $as_echo_n "checking for $ac_word... " >&6; }
20500 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then :
20501   $as_echo_n "(cached) " >&6
20502 else
20503   case $CHECK_TOOLSDIR_MAKE in
20504   [\\/]* | ?:[\\/]*)
20505   ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
20506   ;;
20507   *)
20508   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20509 for as_dir in $PATH
20510 do
20511   IFS=$as_save_IFS
20512   test -z "$as_dir" && as_dir=.
20513     for ac_exec_ext in '' $ac_executable_extensions; do
20514   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20515     ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
20516     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20517     break 2
20518   fi
20519 done
20520   done
20521 IFS=$as_save_IFS
20522 
20523   ;;
20524 esac
20525 fi
20526 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE
20527 if test -n "$CHECK_TOOLSDIR_MAKE"; then
20528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5
20529 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; }
20530 else
20531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20532 $as_echo "no" >&6; }
20533 fi
20534 
20535 
20536   test -n "$CHECK_TOOLSDIR_MAKE" && break
20537 done
20538 
20539 
20540   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE""
20541   DESCRIPTION="make in tools-dir"
20542 
20543   # On Cygwin, we require a newer version of make than on other platforms
20544   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20545     MAKE_VERSION_EXPR="-e 4\."
20546     MAKE_REQUIRED_VERSION="4.0"
20547    else
20548     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
20549     MAKE_REQUIRED_VERSION="3.81"
20550   fi
20551 
20552   if test "x$MAKE_CANDIDATE" != x; then
20553     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
20554 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
20555     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
20556     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
20557     if test "x$IS_GNU_MAKE" = x; then
20558       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
20559 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
20560     else
20561       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
20562       if test "x$IS_MODERN_MAKE" = x; then
20563         { $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
20564 $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;}
20565       else
20566         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
20567           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20568             MAKE_EXPECTED_ENV='cygwin'
20569           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20570             MAKE_EXPECTED_ENV='msys'
20571           else
20572             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
20573           fi
20574           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
20575           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
20576         else
20577           # Not relevant for non-Windows
20578           IS_MAKE_CORRECT_ENV=true
20579         fi
20580         if test "x$IS_MAKE_CORRECT_ENV" = x; then
20581           { $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
20582 $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;}
20583         else
20584           FOUND_MAKE=$MAKE_CANDIDATE
20585 
20586   # Only process if variable expands to non-empty
20587 
20588   if test "x$FOUND_MAKE" != x; then
20589     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20590 
20591   # First separate the path from the arguments. This will split at the first
20592   # space.
20593   complete="$FOUND_MAKE"
20594   path="${complete%% *}"
20595   tmp="$complete EOL"
20596   arguments="${tmp#* }"
20597 
20598   # Input might be given as Windows format, start by converting to
20599   # unix format.
20600   new_path=`$CYGPATH -u "$path"`
20601 
20602   # Now try to locate executable using which
20603   new_path=`$WHICH "$new_path" 2> /dev/null`
20604   # bat and cmd files are not always considered executable in cygwin causing which
20605   # to not find them
20606   if test "x$new_path" = x \
20607       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20608       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20609     new_path=`$CYGPATH -u "$path"`
20610   fi
20611   if test "x$new_path" = x; then
20612     # Oops. Which didn't find the executable.
20613     # The splitting of arguments from the executable at a space might have been incorrect,
20614     # since paths with space are more likely in Windows. Give it another try with the whole
20615     # argument.
20616     path="$complete"
20617     arguments="EOL"
20618     new_path=`$CYGPATH -u "$path"`
20619     new_path=`$WHICH "$new_path" 2> /dev/null`
20620     # bat and cmd files are not always considered executable in cygwin causing which
20621     # to not find them
20622     if test "x$new_path" = x \
20623         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20624         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20625       new_path=`$CYGPATH -u "$path"`
20626     fi
20627     if test "x$new_path" = x; then
20628       # It's still not found. Now this is an unrecoverable error.
20629       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20630 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20631       has_space=`$ECHO "$complete" | $GREP " "`
20632       if test "x$has_space" != x; then
20633         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20634 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20635       fi
20636       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20637     fi
20638   fi
20639 
20640   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20641   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20642   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20643   # "foo.exe" is OK but "foo" is an error.
20644   #
20645   # This test is therefore slightly more accurate than "test -f" to check for file presence.
20646   # It is also a way to make sure we got the proper file name for the real test later on.
20647   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20648   if test "x$test_shortpath" = x; then
20649     # Short path failed, file does not exist as specified.
20650     # Try adding .exe or .cmd
20651     if test -f "${new_path}.exe"; then
20652       input_to_shortpath="${new_path}.exe"
20653     elif test -f "${new_path}.cmd"; then
20654       input_to_shortpath="${new_path}.cmd"
20655     else
20656       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
20657 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
20658       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
20659 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
20660       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20661     fi
20662   else
20663     input_to_shortpath="$new_path"
20664   fi
20665 
20666   # Call helper function which possibly converts this using DOS-style short mode.
20667   # If so, the updated path is stored in $new_path.
20668   new_path="$input_to_shortpath"
20669 
20670   input_path="$input_to_shortpath"
20671   # Check if we need to convert this using DOS-style short mode. If the path
20672   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20673   # take no chances and rewrite it.
20674   # Note: m4 eats our [], so we need to use [ and ] instead.
20675   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20676   if test "x$has_forbidden_chars" != x; then
20677     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20678     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20679     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20680     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20681       # Going to short mode and back again did indeed matter. Since short mode is
20682       # case insensitive, let's make it lowercase to improve readability.
20683       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20684       # Now convert it back to Unix-style (cygpath)
20685       input_path=`$CYGPATH -u "$shortmode_path"`
20686       new_path="$input_path"
20687     fi
20688   fi
20689 
20690   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20691   if test "x$test_cygdrive_prefix" = x; then
20692     # As a simple fix, exclude /usr/bin since it's not a real path.
20693     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
20694       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20695       # a path prefixed by /cygdrive for fixpath to work.
20696       new_path="$CYGWIN_ROOT_PATH$input_path"
20697     fi
20698   fi
20699 
20700   # remove trailing .exe if any
20701   new_path="${new_path/%.exe/}"
20702 
20703     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20704 
20705   # First separate the path from the arguments. This will split at the first
20706   # space.
20707   complete="$FOUND_MAKE"
20708   path="${complete%% *}"
20709   tmp="$complete EOL"
20710   arguments="${tmp#* }"
20711 
20712   # Input might be given as Windows format, start by converting to
20713   # unix format.
20714   new_path="$path"
20715 
20716   windows_path="$new_path"
20717   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20718     unix_path=`$CYGPATH -u "$windows_path"`
20719     new_path="$unix_path"
20720   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20721     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20722     new_path="$unix_path"
20723   fi
20724 
20725 
20726   # Now try to locate executable using which
20727   new_path=`$WHICH "$new_path" 2> /dev/null`
20728 
20729   if test "x$new_path" = x; then
20730     # Oops. Which didn't find the executable.
20731     # The splitting of arguments from the executable at a space might have been incorrect,
20732     # since paths with space are more likely in Windows. Give it another try with the whole
20733     # argument.
20734     path="$complete"
20735     arguments="EOL"
20736     new_path="$path"
20737 
20738   windows_path="$new_path"
20739   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20740     unix_path=`$CYGPATH -u "$windows_path"`
20741     new_path="$unix_path"
20742   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20743     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20744     new_path="$unix_path"
20745   fi
20746 
20747 
20748     new_path=`$WHICH "$new_path" 2> /dev/null`
20749     # bat and cmd files are not always considered executable in MSYS causing which
20750     # to not find them
20751     if test "x$new_path" = x \
20752         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20753         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20754       new_path="$path"
20755 
20756   windows_path="$new_path"
20757   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20758     unix_path=`$CYGPATH -u "$windows_path"`
20759     new_path="$unix_path"
20760   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20761     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20762     new_path="$unix_path"
20763   fi
20764 
20765     fi
20766 
20767     if test "x$new_path" = x; then
20768       # It's still not found. Now this is an unrecoverable error.
20769       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20770 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20771       has_space=`$ECHO "$complete" | $GREP " "`
20772       if test "x$has_space" != x; then
20773         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20774 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20775       fi
20776       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20777     fi
20778   fi
20779 
20780   # Now new_path has a complete unix path to the binary
20781   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
20782     # Keep paths in /bin as-is, but remove trailing .exe if any
20783     new_path="${new_path/%.exe/}"
20784     # Do not save /bin paths to all_fixpath_prefixes!
20785   else
20786     # Not in mixed or Windows style, start by that.
20787     new_path=`cmd //c echo $new_path`
20788 
20789   input_path="$new_path"
20790   # Check if we need to convert this using DOS-style short mode. If the path
20791   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20792   # take no chances and rewrite it.
20793   # Note: m4 eats our [], so we need to use [ and ] instead.
20794   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20795   if test "x$has_forbidden_chars" != x; then
20796     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20797     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20798   fi
20799 
20800     # Output is in $new_path
20801 
20802   windows_path="$new_path"
20803   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20804     unix_path=`$CYGPATH -u "$windows_path"`
20805     new_path="$unix_path"
20806   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20807     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20808     new_path="$unix_path"
20809   fi
20810 
20811     # remove trailing .exe if any
20812     new_path="${new_path/%.exe/}"
20813 
20814     # Save the first 10 bytes of this path to the storage, so fixpath can work.
20815     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20816   fi
20817 
20818     else
20819       # We're on a unix platform. Hooray! :)
20820       # First separate the path from the arguments. This will split at the first
20821       # space.
20822       complete="$FOUND_MAKE"
20823       path="${complete%% *}"
20824       tmp="$complete EOL"
20825       arguments="${tmp#* }"
20826 
20827       # Cannot rely on the command "which" here since it doesn't always work.
20828       is_absolute_path=`$ECHO "$path" | $GREP ^/`
20829       if test -z "$is_absolute_path"; then
20830         # Path to executable is not absolute. Find it.
20831         IFS_save="$IFS"
20832         IFS=:
20833         for p in $PATH; do
20834           if test -f "$p/$path" && test -x "$p/$path"; then
20835             new_path="$p/$path"
20836             break
20837           fi
20838         done
20839         IFS="$IFS_save"
20840       else
20841         # This is an absolute path, we can use it without further modifications.
20842         new_path="$path"
20843       fi
20844 
20845       if test "x$new_path" = x; then
20846         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20847 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20848         has_space=`$ECHO "$complete" | $GREP " "`
20849         if test "x$has_space" != x; then
20850           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
20851 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
20852         fi
20853         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20854       fi
20855     fi
20856 
20857     # Now join together the path and the arguments once again
20858     if test "x$arguments" != xEOL; then
20859       new_complete="$new_path ${arguments% *}"
20860     else
20861       new_complete="$new_path"
20862     fi
20863 
20864     if test "x$complete" != "x$new_complete"; then
20865       FOUND_MAKE="$new_complete"
20866       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
20867 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
20868     fi
20869   fi
20870 
20871         fi
20872       fi
20873     fi
20874   fi
20875 
20876         fi
20877         PATH=$OLD_PATH
20878       fi
20879     fi
20880 
20881     if test "x$FOUND_MAKE" = x; then
20882       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
20883     fi
20884 
20885     else
20886       # If it succeeded, then it was overridden by the user. We will use it
20887       # for the tool.
20888 
20889       # First remove it from the list of overridden variables, so we can test
20890       # for unknown variables in the end.
20891       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
20892 
20893       # Check if we try to supply an empty value
20894       if test "x$MAKE" = x; then
20895         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MAKE= (no value)" >&5
20896 $as_echo "$as_me: Setting user supplied tool MAKE= (no value)" >&6;}
20897         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAKE" >&5
20898 $as_echo_n "checking for MAKE... " >&6; }
20899         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
20900 $as_echo "disabled" >&6; }
20901       else
20902         # Check if the provided tool contains a complete path.
20903         tool_specified="$MAKE"
20904         tool_basename="${tool_specified##*/}"
20905         if test "x$tool_basename" = "x$tool_specified"; then
20906           # A command without a complete path is provided, search $PATH.
20907           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MAKE=$tool_basename" >&5
20908 $as_echo "$as_me: Will search for user supplied tool MAKE=$tool_basename" >&6;}
20909           # Extract the first word of "$tool_basename", so it can be a program name with args.
20910 set dummy $tool_basename; ac_word=$2
20911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20912 $as_echo_n "checking for $ac_word... " >&6; }
20913 if ${ac_cv_path_MAKE+:} false; then :
20914   $as_echo_n "(cached) " >&6
20915 else
20916   case $MAKE in
20917   [\\/]* | ?:[\\/]*)
20918   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
20919   ;;
20920   *)
20921   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20922 for as_dir in $PATH
20923 do
20924   IFS=$as_save_IFS
20925   test -z "$as_dir" && as_dir=.
20926     for ac_exec_ext in '' $ac_executable_extensions; do
20927   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20928     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
20929     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20930     break 2
20931   fi
20932 done
20933   done
20934 IFS=$as_save_IFS
20935 
20936   ;;
20937 esac
20938 fi
20939 MAKE=$ac_cv_path_MAKE
20940 if test -n "$MAKE"; then
20941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
20942 $as_echo "$MAKE" >&6; }
20943 else
20944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20945 $as_echo "no" >&6; }
20946 fi
20947 
20948 
20949           if test "x$MAKE" = x; then
20950             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
20951           fi
20952         else
20953           # Otherwise we believe it is a complete path. Use it as it is.
20954           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MAKE=$tool_specified" >&5
20955 $as_echo "$as_me: Will use user supplied tool MAKE=$tool_specified" >&6;}
20956           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAKE" >&5
20957 $as_echo_n "checking for MAKE... " >&6; }
20958           if test ! -x "$tool_specified"; then
20959             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20960 $as_echo "not found" >&6; }
20961             as_fn_error $? "User supplied tool MAKE=$tool_specified does not exist or is not executable" "$LINENO" 5
20962           fi
20963           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
20964 $as_echo "$tool_specified" >&6; }
20965         fi
20966       fi
20967     fi
20968 
20969     # If MAKE was set by user, verify the version
20970 
20971   MAKE_CANDIDATE=""$MAKE""
20972   DESCRIPTION="user supplied MAKE=$MAKE"
20973 
20974   # On Cygwin, we require a newer version of make than on other platforms
20975   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20976     MAKE_VERSION_EXPR="-e 4\."
20977     MAKE_REQUIRED_VERSION="4.0"
20978    else
20979     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
20980     MAKE_REQUIRED_VERSION="3.81"
20981   fi
20982 
20983   if test "x$MAKE_CANDIDATE" != x; then
20984     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
20985 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
20986     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
20987     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
20988     if test "x$IS_GNU_MAKE" = x; then
20989       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
20990 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
20991     else
20992       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
20993       if test "x$IS_MODERN_MAKE" = x; then
20994         { $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
20995 $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;}
20996       else
20997         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
20998           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20999             MAKE_EXPECTED_ENV='cygwin'
21000           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21001             MAKE_EXPECTED_ENV='msys'
21002           else
21003             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
21004           fi
21005           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
21006           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
21007         else
21008           # Not relevant for non-Windows
21009           IS_MAKE_CORRECT_ENV=true
21010         fi
21011         if test "x$IS_MAKE_CORRECT_ENV" = x; then
21012           { $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
21013 $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;}
21014         else
21015           FOUND_MAKE=$MAKE_CANDIDATE
21016 
21017   # Only process if variable expands to non-empty
21018 
21019   if test "x$FOUND_MAKE" != x; then
21020     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21021 
21022   # First separate the path from the arguments. This will split at the first
21023   # space.
21024   complete="$FOUND_MAKE"
21025   path="${complete%% *}"
21026   tmp="$complete EOL"
21027   arguments="${tmp#* }"
21028 
21029   # Input might be given as Windows format, start by converting to
21030   # unix format.
21031   new_path=`$CYGPATH -u "$path"`
21032 
21033   # Now try to locate executable using which
21034   new_path=`$WHICH "$new_path" 2> /dev/null`
21035   # bat and cmd files are not always considered executable in cygwin causing which
21036   # to not find them
21037   if test "x$new_path" = x \
21038       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
21039       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
21040     new_path=`$CYGPATH -u "$path"`
21041   fi
21042   if test "x$new_path" = x; then
21043     # Oops. Which didn't find the executable.
21044     # The splitting of arguments from the executable at a space might have been incorrect,
21045     # since paths with space are more likely in Windows. Give it another try with the whole
21046     # argument.
21047     path="$complete"
21048     arguments="EOL"
21049     new_path=`$CYGPATH -u "$path"`
21050     new_path=`$WHICH "$new_path" 2> /dev/null`
21051     # bat and cmd files are not always considered executable in cygwin causing which
21052     # to not find them
21053     if test "x$new_path" = x \
21054         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
21055         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
21056       new_path=`$CYGPATH -u "$path"`
21057     fi
21058     if test "x$new_path" = x; then
21059       # It's still not found. Now this is an unrecoverable error.
21060       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
21061 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
21062       has_space=`$ECHO "$complete" | $GREP " "`
21063       if test "x$has_space" != x; then
21064         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
21065 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
21066       fi
21067       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
21068     fi
21069   fi
21070 
21071   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21072   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21073   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21074   # "foo.exe" is OK but "foo" is an error.
21075   #
21076   # This test is therefore slightly more accurate than "test -f" to check for file presence.
21077   # It is also a way to make sure we got the proper file name for the real test later on.
21078   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21079   if test "x$test_shortpath" = x; then
21080     # Short path failed, file does not exist as specified.
21081     # Try adding .exe or .cmd
21082     if test -f "${new_path}.exe"; then
21083       input_to_shortpath="${new_path}.exe"
21084     elif test -f "${new_path}.cmd"; then
21085       input_to_shortpath="${new_path}.cmd"
21086     else
21087       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
21088 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
21089       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
21090 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
21091       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
21092     fi
21093   else
21094     input_to_shortpath="$new_path"
21095   fi
21096 
21097   # Call helper function which possibly converts this using DOS-style short mode.
21098   # If so, the updated path is stored in $new_path.
21099   new_path="$input_to_shortpath"
21100 
21101   input_path="$input_to_shortpath"
21102   # Check if we need to convert this using DOS-style short mode. If the path
21103   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21104   # take no chances and rewrite it.
21105   # Note: m4 eats our [], so we need to use [ and ] instead.
21106   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21107   if test "x$has_forbidden_chars" != x; then
21108     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21109     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21110     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21111     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21112       # Going to short mode and back again did indeed matter. Since short mode is
21113       # case insensitive, let's make it lowercase to improve readability.
21114       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21115       # Now convert it back to Unix-style (cygpath)
21116       input_path=`$CYGPATH -u "$shortmode_path"`
21117       new_path="$input_path"
21118     fi
21119   fi
21120 
21121   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21122   if test "x$test_cygdrive_prefix" = x; then
21123     # As a simple fix, exclude /usr/bin since it's not a real path.
21124     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
21125       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21126       # a path prefixed by /cygdrive for fixpath to work.
21127       new_path="$CYGWIN_ROOT_PATH$input_path"
21128     fi
21129   fi
21130 
21131   # remove trailing .exe if any
21132   new_path="${new_path/%.exe/}"
21133 
21134     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21135 
21136   # First separate the path from the arguments. This will split at the first
21137   # space.
21138   complete="$FOUND_MAKE"
21139   path="${complete%% *}"
21140   tmp="$complete EOL"
21141   arguments="${tmp#* }"
21142 
21143   # Input might be given as Windows format, start by converting to
21144   # unix format.
21145   new_path="$path"
21146 
21147   windows_path="$new_path"
21148   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21149     unix_path=`$CYGPATH -u "$windows_path"`
21150     new_path="$unix_path"
21151   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21152     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21153     new_path="$unix_path"
21154   fi
21155 
21156 
21157   # Now try to locate executable using which
21158   new_path=`$WHICH "$new_path" 2> /dev/null`
21159 
21160   if test "x$new_path" = x; then
21161     # Oops. Which didn't find the executable.
21162     # The splitting of arguments from the executable at a space might have been incorrect,
21163     # since paths with space are more likely in Windows. Give it another try with the whole
21164     # argument.
21165     path="$complete"
21166     arguments="EOL"
21167     new_path="$path"
21168 
21169   windows_path="$new_path"
21170   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21171     unix_path=`$CYGPATH -u "$windows_path"`
21172     new_path="$unix_path"
21173   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21174     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21175     new_path="$unix_path"
21176   fi
21177 
21178 
21179     new_path=`$WHICH "$new_path" 2> /dev/null`
21180     # bat and cmd files are not always considered executable in MSYS causing which
21181     # to not find them
21182     if test "x$new_path" = x \
21183         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
21184         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
21185       new_path="$path"
21186 
21187   windows_path="$new_path"
21188   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21189     unix_path=`$CYGPATH -u "$windows_path"`
21190     new_path="$unix_path"
21191   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21192     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21193     new_path="$unix_path"
21194   fi
21195 
21196     fi
21197 
21198     if test "x$new_path" = x; then
21199       # It's still not found. Now this is an unrecoverable error.
21200       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
21201 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
21202       has_space=`$ECHO "$complete" | $GREP " "`
21203       if test "x$has_space" != x; then
21204         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
21205 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
21206       fi
21207       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
21208     fi
21209   fi
21210 
21211   # Now new_path has a complete unix path to the binary
21212   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
21213     # Keep paths in /bin as-is, but remove trailing .exe if any
21214     new_path="${new_path/%.exe/}"
21215     # Do not save /bin paths to all_fixpath_prefixes!
21216   else
21217     # Not in mixed or Windows style, start by that.
21218     new_path=`cmd //c echo $new_path`
21219 
21220   input_path="$new_path"
21221   # Check if we need to convert this using DOS-style short mode. If the path
21222   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21223   # take no chances and rewrite it.
21224   # Note: m4 eats our [], so we need to use [ and ] instead.
21225   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21226   if test "x$has_forbidden_chars" != x; then
21227     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21228     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21229   fi
21230 
21231     # Output is in $new_path
21232 
21233   windows_path="$new_path"
21234   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21235     unix_path=`$CYGPATH -u "$windows_path"`
21236     new_path="$unix_path"
21237   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21238     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21239     new_path="$unix_path"
21240   fi
21241 
21242     # remove trailing .exe if any
21243     new_path="${new_path/%.exe/}"
21244 
21245     # Save the first 10 bytes of this path to the storage, so fixpath can work.
21246     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21247   fi
21248 
21249     else
21250       # We're on a unix platform. Hooray! :)
21251       # First separate the path from the arguments. This will split at the first
21252       # space.
21253       complete="$FOUND_MAKE"
21254       path="${complete%% *}"
21255       tmp="$complete EOL"
21256       arguments="${tmp#* }"
21257 
21258       # Cannot rely on the command "which" here since it doesn't always work.
21259       is_absolute_path=`$ECHO "$path" | $GREP ^/`
21260       if test -z "$is_absolute_path"; then
21261         # Path to executable is not absolute. Find it.
21262         IFS_save="$IFS"
21263         IFS=:
21264         for p in $PATH; do
21265           if test -f "$p/$path" && test -x "$p/$path"; then
21266             new_path="$p/$path"
21267             break
21268           fi
21269         done
21270         IFS="$IFS_save"
21271       else
21272         # This is an absolute path, we can use it without further modifications.
21273         new_path="$path"
21274       fi
21275 
21276       if test "x$new_path" = x; then
21277         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
21278 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
21279         has_space=`$ECHO "$complete" | $GREP " "`
21280         if test "x$has_space" != x; then
21281           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
21282 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
21283         fi
21284         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
21285       fi
21286     fi
21287 
21288     # Now join together the path and the arguments once again
21289     if test "x$arguments" != xEOL; then
21290       new_complete="$new_path ${arguments% *}"
21291     else
21292       new_complete="$new_path"
21293     fi
21294 
21295     if test "x$complete" != "x$new_complete"; then
21296       FOUND_MAKE="$new_complete"
21297       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
21298 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
21299     fi
21300   fi
21301 
21302         fi
21303       fi
21304     fi
21305   fi
21306 
21307     if test "x$FOUND_MAKE" = x; then
21308       as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make $MAKE_REQUIRED_VERSION or newer." "$LINENO" 5
21309     fi
21310 
21311   fi
21312 
21313 
21314   MAKE=$FOUND_MAKE
21315 
21316   { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5
21317 $as_echo "$as_me: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;}
21318 
21319 
21320   # Check if make supports the output sync option and if so, setup using it.
21321   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if make --output-sync is supported" >&5
21322 $as_echo_n "checking if make --output-sync is supported... " >&6; }
21323   if $MAKE --version -O > /dev/null 2>&1; then
21324     OUTPUT_SYNC_SUPPORTED=true
21325     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21326 $as_echo "yes" >&6; }
21327     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for output-sync value" >&5
21328 $as_echo_n "checking for output-sync value... " >&6; }
21329 
21330 # Check whether --with-output-sync was given.
21331 if test "${with_output_sync+set}" = set; then :
21332   withval=$with_output_sync; OUTPUT_SYNC=$with_output_sync
21333 fi
21334 
21335     if test "x$OUTPUT_SYNC" = "x"; then
21336       OUTPUT_SYNC=none
21337     fi
21338     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_SYNC" >&5
21339 $as_echo "$OUTPUT_SYNC" >&6; }
21340     if ! $MAKE --version -O$OUTPUT_SYNC > /dev/null 2>&1; then
21341       as_fn_error $? "Make did not the support the value $OUTPUT_SYNC as output sync type." "$LINENO" 5
21342     fi
21343   else
21344     OUTPUT_SYNC_SUPPORTED=false
21345     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21346 $as_echo "no" >&6; }
21347   fi
21348 
21349 
21350 
21351 
21352 
21353 
21354   # Test if find supports -delete
21355   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5
21356 $as_echo_n "checking if find supports -delete... " >&6; }
21357   FIND_DELETE="-delete"
21358 
21359   DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?)
21360 
21361   echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete
21362 
21363   TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1`
21364   if test -f $DELETEDIR/TestIfFindSupportsDelete; then
21365     # No, it does not.
21366     $RM $DELETEDIR/TestIfFindSupportsDelete
21367     if test "x$OPENJDK_TARGET_OS" = "xaix"; then
21368       # AIX 'find' is buggy if called with '-exec {} \+' and an empty file list
21369       FIND_DELETE="-print | $XARGS $RM"
21370     else
21371       FIND_DELETE="-exec $RM \{\} \+"
21372     fi
21373     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21374 $as_echo "no" >&6; }
21375   else
21376     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21377 $as_echo "yes" >&6; }
21378   fi
21379   $RMDIR $DELETEDIR
21380 
21381 
21382 
21383   # Test which kind of tar was found
21384   if test "x$($TAR --version | $GREP "GNU tar")" != "x"; then
21385     TAR_TYPE="gnu"
21386   elif test "x$($TAR --version | $GREP "bsdtar")" != "x"; then
21387     TAR_TYPE="bsd"
21388   elif test "x$($TAR -v | $GREP "bsdtar")" != "x"; then
21389     TAR_TYPE="bsd"
21390   elif test "x$OPENJDK_BUILD_OS" = "xsolaris"; then
21391     TAR_TYPE="solaris"
21392   fi
21393   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what type of tar was found" >&5
21394 $as_echo_n "checking what type of tar was found... " >&6; }
21395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR_TYPE" >&5
21396 $as_echo "$TAR_TYPE" >&6; }
21397 
21398   TAR_CREATE_FILE_PARAM=""
21399 
21400   if test "x$TAR_TYPE" = "xgnu"; then
21401     TAR_INCLUDE_PARAM="T"
21402     TAR_SUPPORTS_TRANSFORM="true"
21403     if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
21404       # When using gnu tar for Solaris targets, need to use compatibility mode
21405       TAR_CREATE_EXTRA_PARAM="--format=ustar"
21406     fi
21407   else
21408     TAR_INCLUDE_PARAM="I"
21409     TAR_SUPPORTS_TRANSFORM="false"
21410   fi
21411 
21412 
21413 
21414 
21415 
21416 
21417   # Test that grep supports -Fx with a list of pattern which includes null pattern.
21418   # This is a problem for the grep resident on AIX.
21419   { $as_echo "$as_me:${as_lineno-$LINENO}: checking that grep ($GREP) -Fx handles empty lines in the pattern list correctly" >&5
21420 $as_echo_n "checking that grep ($GREP) -Fx handles empty lines in the pattern list correctly... " >&6; }
21421   # Multiple subsequent spaces..
21422   STACK_SPACES='aaa   bbb   ccc'
21423   # ..converted to subsequent newlines, causes STACK_LIST to be a list with some empty
21424   # patterns in it.
21425   STACK_LIST=${STACK_SPACES// /$'\n'}
21426   NEEDLE_SPACES='ccc bbb aaa'
21427   NEEDLE_LIST=${NEEDLE_SPACES// /$'\n'}
21428   RESULT="$($GREP -Fvx "$STACK_LIST" <<< "$NEEDLE_LIST")"
21429   if test "x$RESULT" == "x"; then
21430     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21431 $as_echo "yes" >&6; }
21432   else
21433     if test "x$OPENJDK_TARGET_OS" = "xaix"; then
21434       ADDINFO="Please make sure you use GNU grep, usually found at /opt/freeware/bin."
21435     fi
21436     as_fn_error $? "grep does not handle -Fx correctly. ${ADDINFO}" "$LINENO" 5
21437   fi
21438 
21439 
21440   # These tools might not be installed by default,
21441   # need hint on how to install them.
21442 
21443 
21444 
21445   # Publish this variable in the help.
21446 
21447 
21448   if [ -z "${UNZIP+x}" ]; then
21449     # The variable is not set by user, try to locate tool using the code snippet
21450     for ac_prog in unzip
21451 do
21452   # Extract the first word of "$ac_prog", so it can be a program name with args.
21453 set dummy $ac_prog; ac_word=$2
21454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21455 $as_echo_n "checking for $ac_word... " >&6; }
21456 if ${ac_cv_path_UNZIP+:} false; then :
21457   $as_echo_n "(cached) " >&6
21458 else
21459   case $UNZIP in
21460   [\\/]* | ?:[\\/]*)
21461   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
21462   ;;
21463   *)
21464   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21465 for as_dir in $PATH
21466 do
21467   IFS=$as_save_IFS
21468   test -z "$as_dir" && as_dir=.
21469     for ac_exec_ext in '' $ac_executable_extensions; do
21470   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21471     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
21472     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21473     break 2
21474   fi
21475 done
21476   done
21477 IFS=$as_save_IFS
21478 
21479   ;;
21480 esac
21481 fi
21482 UNZIP=$ac_cv_path_UNZIP
21483 if test -n "$UNZIP"; then
21484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
21485 $as_echo "$UNZIP" >&6; }
21486 else
21487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21488 $as_echo "no" >&6; }
21489 fi
21490 
21491 
21492   test -n "$UNZIP" && break
21493 done
21494 
21495   else
21496     # The variable is set, but is it from the command line or the environment?
21497 
21498     # Try to remove the string !UNZIP! from our list.
21499     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/}
21500     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21501       # If it failed, the variable was not from the command line. Ignore it,
21502       # but warn the user (except for BASH, which is always set by the calling BASH).
21503       if test "xUNZIP" != xBASH; then
21504         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5
21505 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;}
21506       fi
21507       # Try to locate tool using the code snippet
21508       for ac_prog in unzip
21509 do
21510   # Extract the first word of "$ac_prog", so it can be a program name with args.
21511 set dummy $ac_prog; ac_word=$2
21512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21513 $as_echo_n "checking for $ac_word... " >&6; }
21514 if ${ac_cv_path_UNZIP+:} false; then :
21515   $as_echo_n "(cached) " >&6
21516 else
21517   case $UNZIP in
21518   [\\/]* | ?:[\\/]*)
21519   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
21520   ;;
21521   *)
21522   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21523 for as_dir in $PATH
21524 do
21525   IFS=$as_save_IFS
21526   test -z "$as_dir" && as_dir=.
21527     for ac_exec_ext in '' $ac_executable_extensions; do
21528   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21529     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
21530     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21531     break 2
21532   fi
21533 done
21534   done
21535 IFS=$as_save_IFS
21536 
21537   ;;
21538 esac
21539 fi
21540 UNZIP=$ac_cv_path_UNZIP
21541 if test -n "$UNZIP"; then
21542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
21543 $as_echo "$UNZIP" >&6; }
21544 else
21545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21546 $as_echo "no" >&6; }
21547 fi
21548 
21549 
21550   test -n "$UNZIP" && break
21551 done
21552 
21553     else
21554       # If it succeeded, then it was overridden by the user. We will use it
21555       # for the tool.
21556 
21557       # First remove it from the list of overridden variables, so we can test
21558       # for unknown variables in the end.
21559       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21560 
21561       # Check if we try to supply an empty value
21562       if test "x$UNZIP" = x; then
21563         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNZIP= (no value)" >&5
21564 $as_echo "$as_me: Setting user supplied tool UNZIP= (no value)" >&6;}
21565         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5
21566 $as_echo_n "checking for UNZIP... " >&6; }
21567         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21568 $as_echo "disabled" >&6; }
21569       else
21570         # Check if the provided tool contains a complete path.
21571         tool_specified="$UNZIP"
21572         tool_basename="${tool_specified##*/}"
21573         if test "x$tool_basename" = "x$tool_specified"; then
21574           # A command without a complete path is provided, search $PATH.
21575           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5
21576 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;}
21577           # Extract the first word of "$tool_basename", so it can be a program name with args.
21578 set dummy $tool_basename; ac_word=$2
21579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21580 $as_echo_n "checking for $ac_word... " >&6; }
21581 if ${ac_cv_path_UNZIP+:} false; then :
21582   $as_echo_n "(cached) " >&6
21583 else
21584   case $UNZIP in
21585   [\\/]* | ?:[\\/]*)
21586   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
21587   ;;
21588   *)
21589   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21590 for as_dir in $PATH
21591 do
21592   IFS=$as_save_IFS
21593   test -z "$as_dir" && as_dir=.
21594     for ac_exec_ext in '' $ac_executable_extensions; do
21595   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21596     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
21597     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21598     break 2
21599   fi
21600 done
21601   done
21602 IFS=$as_save_IFS
21603 
21604   ;;
21605 esac
21606 fi
21607 UNZIP=$ac_cv_path_UNZIP
21608 if test -n "$UNZIP"; then
21609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
21610 $as_echo "$UNZIP" >&6; }
21611 else
21612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21613 $as_echo "no" >&6; }
21614 fi
21615 
21616 
21617           if test "x$UNZIP" = x; then
21618             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21619           fi
21620         else
21621           # Otherwise we believe it is a complete path. Use it as it is.
21622           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5
21623 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;}
21624           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5
21625 $as_echo_n "checking for UNZIP... " >&6; }
21626           if test ! -x "$tool_specified"; then
21627             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21628 $as_echo "not found" >&6; }
21629             as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
21630           fi
21631           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21632 $as_echo "$tool_specified" >&6; }
21633         fi
21634       fi
21635     fi
21636 
21637   fi
21638 
21639 
21640 
21641   if test "x$UNZIP" = x; then
21642     as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5
21643   fi
21644 
21645 
21646   # Since zip uses "ZIP" as a environment variable for passing options, we need
21647   # to name our variable differently, hence ZIPEXE.
21648 
21649 
21650 
21651   # Publish this variable in the help.
21652 
21653 
21654   if [ -z "${ZIPEXE+x}" ]; then
21655     # The variable is not set by user, try to locate tool using the code snippet
21656     for ac_prog in zip
21657 do
21658   # Extract the first word of "$ac_prog", so it can be a program name with args.
21659 set dummy $ac_prog; ac_word=$2
21660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21661 $as_echo_n "checking for $ac_word... " >&6; }
21662 if ${ac_cv_path_ZIPEXE+:} false; then :
21663   $as_echo_n "(cached) " >&6
21664 else
21665   case $ZIPEXE in
21666   [\\/]* | ?:[\\/]*)
21667   ac_cv_path_ZIPEXE="$ZIPEXE" # Let the user override the test with a path.
21668   ;;
21669   *)
21670   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21671 for as_dir in $PATH
21672 do
21673   IFS=$as_save_IFS
21674   test -z "$as_dir" && as_dir=.
21675     for ac_exec_ext in '' $ac_executable_extensions; do
21676   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21677     ac_cv_path_ZIPEXE="$as_dir/$ac_word$ac_exec_ext"
21678     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21679     break 2
21680   fi
21681 done
21682   done
21683 IFS=$as_save_IFS
21684 
21685   ;;
21686 esac
21687 fi
21688 ZIPEXE=$ac_cv_path_ZIPEXE
21689 if test -n "$ZIPEXE"; then
21690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIPEXE" >&5
21691 $as_echo "$ZIPEXE" >&6; }
21692 else
21693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21694 $as_echo "no" >&6; }
21695 fi
21696 
21697 
21698   test -n "$ZIPEXE" && break
21699 done
21700 
21701   else
21702     # The variable is set, but is it from the command line or the environment?
21703 
21704     # Try to remove the string !ZIPEXE! from our list.
21705     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIPEXE!/}
21706     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21707       # If it failed, the variable was not from the command line. Ignore it,
21708       # but warn the user (except for BASH, which is always set by the calling BASH).
21709       if test "xZIPEXE" != xBASH; then
21710         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIPEXE from the environment. Use command line variables instead." >&5
21711 $as_echo "$as_me: WARNING: Ignoring value of ZIPEXE from the environment. Use command line variables instead." >&2;}
21712       fi
21713       # Try to locate tool using the code snippet
21714       for ac_prog in zip
21715 do
21716   # Extract the first word of "$ac_prog", so it can be a program name with args.
21717 set dummy $ac_prog; ac_word=$2
21718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21719 $as_echo_n "checking for $ac_word... " >&6; }
21720 if ${ac_cv_path_ZIPEXE+:} false; then :
21721   $as_echo_n "(cached) " >&6
21722 else
21723   case $ZIPEXE in
21724   [\\/]* | ?:[\\/]*)
21725   ac_cv_path_ZIPEXE="$ZIPEXE" # Let the user override the test with a path.
21726   ;;
21727   *)
21728   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21729 for as_dir in $PATH
21730 do
21731   IFS=$as_save_IFS
21732   test -z "$as_dir" && as_dir=.
21733     for ac_exec_ext in '' $ac_executable_extensions; do
21734   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21735     ac_cv_path_ZIPEXE="$as_dir/$ac_word$ac_exec_ext"
21736     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21737     break 2
21738   fi
21739 done
21740   done
21741 IFS=$as_save_IFS
21742 
21743   ;;
21744 esac
21745 fi
21746 ZIPEXE=$ac_cv_path_ZIPEXE
21747 if test -n "$ZIPEXE"; then
21748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIPEXE" >&5
21749 $as_echo "$ZIPEXE" >&6; }
21750 else
21751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21752 $as_echo "no" >&6; }
21753 fi
21754 
21755 
21756   test -n "$ZIPEXE" && break
21757 done
21758 
21759     else
21760       # If it succeeded, then it was overridden by the user. We will use it
21761       # for the tool.
21762 
21763       # First remove it from the list of overridden variables, so we can test
21764       # for unknown variables in the end.
21765       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21766 
21767       # Check if we try to supply an empty value
21768       if test "x$ZIPEXE" = x; then
21769         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ZIPEXE= (no value)" >&5
21770 $as_echo "$as_me: Setting user supplied tool ZIPEXE= (no value)" >&6;}
21771         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIPEXE" >&5
21772 $as_echo_n "checking for ZIPEXE... " >&6; }
21773         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21774 $as_echo "disabled" >&6; }
21775       else
21776         # Check if the provided tool contains a complete path.
21777         tool_specified="$ZIPEXE"
21778         tool_basename="${tool_specified##*/}"
21779         if test "x$tool_basename" = "x$tool_specified"; then
21780           # A command without a complete path is provided, search $PATH.
21781           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIPEXE=$tool_basename" >&5
21782 $as_echo "$as_me: Will search for user supplied tool ZIPEXE=$tool_basename" >&6;}
21783           # Extract the first word of "$tool_basename", so it can be a program name with args.
21784 set dummy $tool_basename; ac_word=$2
21785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21786 $as_echo_n "checking for $ac_word... " >&6; }
21787 if ${ac_cv_path_ZIPEXE+:} false; then :
21788   $as_echo_n "(cached) " >&6
21789 else
21790   case $ZIPEXE in
21791   [\\/]* | ?:[\\/]*)
21792   ac_cv_path_ZIPEXE="$ZIPEXE" # Let the user override the test with a path.
21793   ;;
21794   *)
21795   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21796 for as_dir in $PATH
21797 do
21798   IFS=$as_save_IFS
21799   test -z "$as_dir" && as_dir=.
21800     for ac_exec_ext in '' $ac_executable_extensions; do
21801   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21802     ac_cv_path_ZIPEXE="$as_dir/$ac_word$ac_exec_ext"
21803     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21804     break 2
21805   fi
21806 done
21807   done
21808 IFS=$as_save_IFS
21809 
21810   ;;
21811 esac
21812 fi
21813 ZIPEXE=$ac_cv_path_ZIPEXE
21814 if test -n "$ZIPEXE"; then
21815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIPEXE" >&5
21816 $as_echo "$ZIPEXE" >&6; }
21817 else
21818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21819 $as_echo "no" >&6; }
21820 fi
21821 
21822 
21823           if test "x$ZIPEXE" = x; then
21824             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21825           fi
21826         else
21827           # Otherwise we believe it is a complete path. Use it as it is.
21828           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIPEXE=$tool_specified" >&5
21829 $as_echo "$as_me: Will use user supplied tool ZIPEXE=$tool_specified" >&6;}
21830           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIPEXE" >&5
21831 $as_echo_n "checking for ZIPEXE... " >&6; }
21832           if test ! -x "$tool_specified"; then
21833             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21834 $as_echo "not found" >&6; }
21835             as_fn_error $? "User supplied tool ZIPEXE=$tool_specified does not exist or is not executable" "$LINENO" 5
21836           fi
21837           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21838 $as_echo "$tool_specified" >&6; }
21839         fi
21840       fi
21841     fi
21842 
21843   fi
21844 
21845 
21846 
21847   if test "x$ZIPEXE" = x; then
21848     as_fn_error $? "Could not find required tool for ZIPEXE" "$LINENO" 5
21849   fi
21850 
21851 
21852 
21853   # Non-required basic tools
21854 
21855 
21856 
21857   # Publish this variable in the help.
21858 
21859 
21860   if [ -z "${LDD+x}" ]; then
21861     # The variable is not set by user, try to locate tool using the code snippet
21862     for ac_prog in ldd
21863 do
21864   # Extract the first word of "$ac_prog", so it can be a program name with args.
21865 set dummy $ac_prog; ac_word=$2
21866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21867 $as_echo_n "checking for $ac_word... " >&6; }
21868 if ${ac_cv_path_LDD+:} false; then :
21869   $as_echo_n "(cached) " >&6
21870 else
21871   case $LDD in
21872   [\\/]* | ?:[\\/]*)
21873   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
21874   ;;
21875   *)
21876   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21877 for as_dir in $PATH
21878 do
21879   IFS=$as_save_IFS
21880   test -z "$as_dir" && as_dir=.
21881     for ac_exec_ext in '' $ac_executable_extensions; do
21882   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21883     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
21884     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21885     break 2
21886   fi
21887 done
21888   done
21889 IFS=$as_save_IFS
21890 
21891   ;;
21892 esac
21893 fi
21894 LDD=$ac_cv_path_LDD
21895 if test -n "$LDD"; then
21896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
21897 $as_echo "$LDD" >&6; }
21898 else
21899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21900 $as_echo "no" >&6; }
21901 fi
21902 
21903 
21904   test -n "$LDD" && break
21905 done
21906 
21907   else
21908     # The variable is set, but is it from the command line or the environment?
21909 
21910     # Try to remove the string !LDD! from our list.
21911     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/}
21912     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21913       # If it failed, the variable was not from the command line. Ignore it,
21914       # but warn the user (except for BASH, which is always set by the calling BASH).
21915       if test "xLDD" != xBASH; then
21916         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5
21917 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;}
21918       fi
21919       # Try to locate tool using the code snippet
21920       for ac_prog in ldd
21921 do
21922   # Extract the first word of "$ac_prog", so it can be a program name with args.
21923 set dummy $ac_prog; ac_word=$2
21924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21925 $as_echo_n "checking for $ac_word... " >&6; }
21926 if ${ac_cv_path_LDD+:} false; then :
21927   $as_echo_n "(cached) " >&6
21928 else
21929   case $LDD in
21930   [\\/]* | ?:[\\/]*)
21931   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
21932   ;;
21933   *)
21934   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21935 for as_dir in $PATH
21936 do
21937   IFS=$as_save_IFS
21938   test -z "$as_dir" && as_dir=.
21939     for ac_exec_ext in '' $ac_executable_extensions; do
21940   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21941     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
21942     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21943     break 2
21944   fi
21945 done
21946   done
21947 IFS=$as_save_IFS
21948 
21949   ;;
21950 esac
21951 fi
21952 LDD=$ac_cv_path_LDD
21953 if test -n "$LDD"; then
21954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
21955 $as_echo "$LDD" >&6; }
21956 else
21957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21958 $as_echo "no" >&6; }
21959 fi
21960 
21961 
21962   test -n "$LDD" && break
21963 done
21964 
21965     else
21966       # If it succeeded, then it was overridden by the user. We will use it
21967       # for the tool.
21968 
21969       # First remove it from the list of overridden variables, so we can test
21970       # for unknown variables in the end.
21971       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21972 
21973       # Check if we try to supply an empty value
21974       if test "x$LDD" = x; then
21975         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LDD= (no value)" >&5
21976 $as_echo "$as_me: Setting user supplied tool LDD= (no value)" >&6;}
21977         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5
21978 $as_echo_n "checking for LDD... " >&6; }
21979         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21980 $as_echo "disabled" >&6; }
21981       else
21982         # Check if the provided tool contains a complete path.
21983         tool_specified="$LDD"
21984         tool_basename="${tool_specified##*/}"
21985         if test "x$tool_basename" = "x$tool_specified"; then
21986           # A command without a complete path is provided, search $PATH.
21987           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5
21988 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;}
21989           # Extract the first word of "$tool_basename", so it can be a program name with args.
21990 set dummy $tool_basename; ac_word=$2
21991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21992 $as_echo_n "checking for $ac_word... " >&6; }
21993 if ${ac_cv_path_LDD+:} false; then :
21994   $as_echo_n "(cached) " >&6
21995 else
21996   case $LDD in
21997   [\\/]* | ?:[\\/]*)
21998   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
21999   ;;
22000   *)
22001   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22002 for as_dir in $PATH
22003 do
22004   IFS=$as_save_IFS
22005   test -z "$as_dir" && as_dir=.
22006     for ac_exec_ext in '' $ac_executable_extensions; do
22007   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22008     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
22009     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22010     break 2
22011   fi
22012 done
22013   done
22014 IFS=$as_save_IFS
22015 
22016   ;;
22017 esac
22018 fi
22019 LDD=$ac_cv_path_LDD
22020 if test -n "$LDD"; then
22021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
22022 $as_echo "$LDD" >&6; }
22023 else
22024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22025 $as_echo "no" >&6; }
22026 fi
22027 
22028 
22029           if test "x$LDD" = x; then
22030             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22031           fi
22032         else
22033           # Otherwise we believe it is a complete path. Use it as it is.
22034           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5
22035 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;}
22036           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5
22037 $as_echo_n "checking for LDD... " >&6; }
22038           if test ! -x "$tool_specified"; then
22039             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22040 $as_echo "not found" >&6; }
22041             as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5
22042           fi
22043           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22044 $as_echo "$tool_specified" >&6; }
22045         fi
22046       fi
22047     fi
22048 
22049   fi
22050 
22051 
22052   if test "x$LDD" = "x"; then
22053     # List shared lib dependencies is used for
22054     # debug output and checking for forbidden dependencies.
22055     # We can build without it.
22056     LDD="true"
22057   fi
22058 
22059 
22060   # Publish this variable in the help.
22061 
22062 
22063   if [ -z "${OTOOL+x}" ]; then
22064     # The variable is not set by user, try to locate tool using the code snippet
22065     for ac_prog in otool
22066 do
22067   # Extract the first word of "$ac_prog", so it can be a program name with args.
22068 set dummy $ac_prog; ac_word=$2
22069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22070 $as_echo_n "checking for $ac_word... " >&6; }
22071 if ${ac_cv_path_OTOOL+:} false; then :
22072   $as_echo_n "(cached) " >&6
22073 else
22074   case $OTOOL in
22075   [\\/]* | ?:[\\/]*)
22076   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
22077   ;;
22078   *)
22079   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22080 for as_dir in $PATH
22081 do
22082   IFS=$as_save_IFS
22083   test -z "$as_dir" && as_dir=.
22084     for ac_exec_ext in '' $ac_executable_extensions; do
22085   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22086     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
22087     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22088     break 2
22089   fi
22090 done
22091   done
22092 IFS=$as_save_IFS
22093 
22094   ;;
22095 esac
22096 fi
22097 OTOOL=$ac_cv_path_OTOOL
22098 if test -n "$OTOOL"; then
22099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
22100 $as_echo "$OTOOL" >&6; }
22101 else
22102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22103 $as_echo "no" >&6; }
22104 fi
22105 
22106 
22107   test -n "$OTOOL" && break
22108 done
22109 
22110   else
22111     # The variable is set, but is it from the command line or the environment?
22112 
22113     # Try to remove the string !OTOOL! from our list.
22114     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OTOOL!/}
22115     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22116       # If it failed, the variable was not from the command line. Ignore it,
22117       # but warn the user (except for BASH, which is always set by the calling BASH).
22118       if test "xOTOOL" != xBASH; then
22119         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&5
22120 $as_echo "$as_me: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&2;}
22121       fi
22122       # Try to locate tool using the code snippet
22123       for ac_prog in otool
22124 do
22125   # Extract the first word of "$ac_prog", so it can be a program name with args.
22126 set dummy $ac_prog; ac_word=$2
22127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22128 $as_echo_n "checking for $ac_word... " >&6; }
22129 if ${ac_cv_path_OTOOL+:} false; then :
22130   $as_echo_n "(cached) " >&6
22131 else
22132   case $OTOOL in
22133   [\\/]* | ?:[\\/]*)
22134   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
22135   ;;
22136   *)
22137   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22138 for as_dir in $PATH
22139 do
22140   IFS=$as_save_IFS
22141   test -z "$as_dir" && as_dir=.
22142     for ac_exec_ext in '' $ac_executable_extensions; do
22143   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22144     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
22145     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22146     break 2
22147   fi
22148 done
22149   done
22150 IFS=$as_save_IFS
22151 
22152   ;;
22153 esac
22154 fi
22155 OTOOL=$ac_cv_path_OTOOL
22156 if test -n "$OTOOL"; then
22157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
22158 $as_echo "$OTOOL" >&6; }
22159 else
22160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22161 $as_echo "no" >&6; }
22162 fi
22163 
22164 
22165   test -n "$OTOOL" && break
22166 done
22167 
22168     else
22169       # If it succeeded, then it was overridden by the user. We will use it
22170       # for the tool.
22171 
22172       # First remove it from the list of overridden variables, so we can test
22173       # for unknown variables in the end.
22174       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22175 
22176       # Check if we try to supply an empty value
22177       if test "x$OTOOL" = x; then
22178         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool OTOOL= (no value)" >&5
22179 $as_echo "$as_me: Setting user supplied tool OTOOL= (no value)" >&6;}
22180         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5
22181 $as_echo_n "checking for OTOOL... " >&6; }
22182         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22183 $as_echo "disabled" >&6; }
22184       else
22185         # Check if the provided tool contains a complete path.
22186         tool_specified="$OTOOL"
22187         tool_basename="${tool_specified##*/}"
22188         if test "x$tool_basename" = "x$tool_specified"; then
22189           # A command without a complete path is provided, search $PATH.
22190           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OTOOL=$tool_basename" >&5
22191 $as_echo "$as_me: Will search for user supplied tool OTOOL=$tool_basename" >&6;}
22192           # Extract the first word of "$tool_basename", so it can be a program name with args.
22193 set dummy $tool_basename; ac_word=$2
22194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22195 $as_echo_n "checking for $ac_word... " >&6; }
22196 if ${ac_cv_path_OTOOL+:} false; then :
22197   $as_echo_n "(cached) " >&6
22198 else
22199   case $OTOOL in
22200   [\\/]* | ?:[\\/]*)
22201   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
22202   ;;
22203   *)
22204   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22205 for as_dir in $PATH
22206 do
22207   IFS=$as_save_IFS
22208   test -z "$as_dir" && as_dir=.
22209     for ac_exec_ext in '' $ac_executable_extensions; do
22210   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22211     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
22212     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22213     break 2
22214   fi
22215 done
22216   done
22217 IFS=$as_save_IFS
22218 
22219   ;;
22220 esac
22221 fi
22222 OTOOL=$ac_cv_path_OTOOL
22223 if test -n "$OTOOL"; then
22224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
22225 $as_echo "$OTOOL" >&6; }
22226 else
22227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22228 $as_echo "no" >&6; }
22229 fi
22230 
22231 
22232           if test "x$OTOOL" = x; then
22233             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22234           fi
22235         else
22236           # Otherwise we believe it is a complete path. Use it as it is.
22237           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OTOOL=$tool_specified" >&5
22238 $as_echo "$as_me: Will use user supplied tool OTOOL=$tool_specified" >&6;}
22239           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5
22240 $as_echo_n "checking for OTOOL... " >&6; }
22241           if test ! -x "$tool_specified"; then
22242             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22243 $as_echo "not found" >&6; }
22244             as_fn_error $? "User supplied tool OTOOL=$tool_specified does not exist or is not executable" "$LINENO" 5
22245           fi
22246           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22247 $as_echo "$tool_specified" >&6; }
22248         fi
22249       fi
22250     fi
22251 
22252   fi
22253 
22254 
22255   if test "x$OTOOL" = "x"; then
22256     OTOOL="true"
22257   fi
22258 
22259 
22260   # Publish this variable in the help.
22261 
22262 
22263   if [ -z "${READELF+x}" ]; then
22264     # The variable is not set by user, try to locate tool using the code snippet
22265     for ac_prog in greadelf readelf
22266 do
22267   # Extract the first word of "$ac_prog", so it can be a program name with args.
22268 set dummy $ac_prog; ac_word=$2
22269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22270 $as_echo_n "checking for $ac_word... " >&6; }
22271 if ${ac_cv_path_READELF+:} false; then :
22272   $as_echo_n "(cached) " >&6
22273 else
22274   case $READELF in
22275   [\\/]* | ?:[\\/]*)
22276   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
22277   ;;
22278   *)
22279   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22280 for as_dir in $PATH
22281 do
22282   IFS=$as_save_IFS
22283   test -z "$as_dir" && as_dir=.
22284     for ac_exec_ext in '' $ac_executable_extensions; do
22285   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22286     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
22287     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22288     break 2
22289   fi
22290 done
22291   done
22292 IFS=$as_save_IFS
22293 
22294   ;;
22295 esac
22296 fi
22297 READELF=$ac_cv_path_READELF
22298 if test -n "$READELF"; then
22299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
22300 $as_echo "$READELF" >&6; }
22301 else
22302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22303 $as_echo "no" >&6; }
22304 fi
22305 
22306 
22307   test -n "$READELF" && break
22308 done
22309 
22310   else
22311     # The variable is set, but is it from the command line or the environment?
22312 
22313     # Try to remove the string !READELF! from our list.
22314     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/}
22315     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22316       # If it failed, the variable was not from the command line. Ignore it,
22317       # but warn the user (except for BASH, which is always set by the calling BASH).
22318       if test "xREADELF" != xBASH; then
22319         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5
22320 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;}
22321       fi
22322       # Try to locate tool using the code snippet
22323       for ac_prog in greadelf readelf
22324 do
22325   # Extract the first word of "$ac_prog", so it can be a program name with args.
22326 set dummy $ac_prog; ac_word=$2
22327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22328 $as_echo_n "checking for $ac_word... " >&6; }
22329 if ${ac_cv_path_READELF+:} false; then :
22330   $as_echo_n "(cached) " >&6
22331 else
22332   case $READELF in
22333   [\\/]* | ?:[\\/]*)
22334   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
22335   ;;
22336   *)
22337   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22338 for as_dir in $PATH
22339 do
22340   IFS=$as_save_IFS
22341   test -z "$as_dir" && as_dir=.
22342     for ac_exec_ext in '' $ac_executable_extensions; do
22343   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22344     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
22345     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22346     break 2
22347   fi
22348 done
22349   done
22350 IFS=$as_save_IFS
22351 
22352   ;;
22353 esac
22354 fi
22355 READELF=$ac_cv_path_READELF
22356 if test -n "$READELF"; then
22357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
22358 $as_echo "$READELF" >&6; }
22359 else
22360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22361 $as_echo "no" >&6; }
22362 fi
22363 
22364 
22365   test -n "$READELF" && break
22366 done
22367 
22368     else
22369       # If it succeeded, then it was overridden by the user. We will use it
22370       # for the tool.
22371 
22372       # First remove it from the list of overridden variables, so we can test
22373       # for unknown variables in the end.
22374       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22375 
22376       # Check if we try to supply an empty value
22377       if test "x$READELF" = x; then
22378         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool READELF= (no value)" >&5
22379 $as_echo "$as_me: Setting user supplied tool READELF= (no value)" >&6;}
22380         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5
22381 $as_echo_n "checking for READELF... " >&6; }
22382         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22383 $as_echo "disabled" >&6; }
22384       else
22385         # Check if the provided tool contains a complete path.
22386         tool_specified="$READELF"
22387         tool_basename="${tool_specified##*/}"
22388         if test "x$tool_basename" = "x$tool_specified"; then
22389           # A command without a complete path is provided, search $PATH.
22390           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5
22391 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;}
22392           # Extract the first word of "$tool_basename", so it can be a program name with args.
22393 set dummy $tool_basename; ac_word=$2
22394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22395 $as_echo_n "checking for $ac_word... " >&6; }
22396 if ${ac_cv_path_READELF+:} false; then :
22397   $as_echo_n "(cached) " >&6
22398 else
22399   case $READELF in
22400   [\\/]* | ?:[\\/]*)
22401   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
22402   ;;
22403   *)
22404   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22405 for as_dir in $PATH
22406 do
22407   IFS=$as_save_IFS
22408   test -z "$as_dir" && as_dir=.
22409     for ac_exec_ext in '' $ac_executable_extensions; do
22410   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22411     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
22412     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22413     break 2
22414   fi
22415 done
22416   done
22417 IFS=$as_save_IFS
22418 
22419   ;;
22420 esac
22421 fi
22422 READELF=$ac_cv_path_READELF
22423 if test -n "$READELF"; then
22424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
22425 $as_echo "$READELF" >&6; }
22426 else
22427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22428 $as_echo "no" >&6; }
22429 fi
22430 
22431 
22432           if test "x$READELF" = x; then
22433             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22434           fi
22435         else
22436           # Otherwise we believe it is a complete path. Use it as it is.
22437           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5
22438 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;}
22439           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5
22440 $as_echo_n "checking for READELF... " >&6; }
22441           if test ! -x "$tool_specified"; then
22442             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22443 $as_echo "not found" >&6; }
22444             as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5
22445           fi
22446           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22447 $as_echo "$tool_specified" >&6; }
22448         fi
22449       fi
22450     fi
22451 
22452   fi
22453 
22454 
22455 
22456 
22457   # Publish this variable in the help.
22458 
22459 
22460   if [ -z "${HG+x}" ]; then
22461     # The variable is not set by user, try to locate tool using the code snippet
22462     for ac_prog in hg
22463 do
22464   # Extract the first word of "$ac_prog", so it can be a program name with args.
22465 set dummy $ac_prog; ac_word=$2
22466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22467 $as_echo_n "checking for $ac_word... " >&6; }
22468 if ${ac_cv_path_HG+:} false; then :
22469   $as_echo_n "(cached) " >&6
22470 else
22471   case $HG in
22472   [\\/]* | ?:[\\/]*)
22473   ac_cv_path_HG="$HG" # Let the user override the test with a path.
22474   ;;
22475   *)
22476   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22477 for as_dir in $PATH
22478 do
22479   IFS=$as_save_IFS
22480   test -z "$as_dir" && as_dir=.
22481     for ac_exec_ext in '' $ac_executable_extensions; do
22482   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22483     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
22484     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22485     break 2
22486   fi
22487 done
22488   done
22489 IFS=$as_save_IFS
22490 
22491   ;;
22492 esac
22493 fi
22494 HG=$ac_cv_path_HG
22495 if test -n "$HG"; then
22496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
22497 $as_echo "$HG" >&6; }
22498 else
22499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22500 $as_echo "no" >&6; }
22501 fi
22502 
22503 
22504   test -n "$HG" && break
22505 done
22506 
22507   else
22508     # The variable is set, but is it from the command line or the environment?
22509 
22510     # Try to remove the string !HG! from our list.
22511     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/}
22512     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22513       # If it failed, the variable was not from the command line. Ignore it,
22514       # but warn the user (except for BASH, which is always set by the calling BASH).
22515       if test "xHG" != xBASH; then
22516         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5
22517 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;}
22518       fi
22519       # Try to locate tool using the code snippet
22520       for ac_prog in hg
22521 do
22522   # Extract the first word of "$ac_prog", so it can be a program name with args.
22523 set dummy $ac_prog; ac_word=$2
22524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22525 $as_echo_n "checking for $ac_word... " >&6; }
22526 if ${ac_cv_path_HG+:} false; then :
22527   $as_echo_n "(cached) " >&6
22528 else
22529   case $HG in
22530   [\\/]* | ?:[\\/]*)
22531   ac_cv_path_HG="$HG" # Let the user override the test with a path.
22532   ;;
22533   *)
22534   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22535 for as_dir in $PATH
22536 do
22537   IFS=$as_save_IFS
22538   test -z "$as_dir" && as_dir=.
22539     for ac_exec_ext in '' $ac_executable_extensions; do
22540   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22541     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
22542     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22543     break 2
22544   fi
22545 done
22546   done
22547 IFS=$as_save_IFS
22548 
22549   ;;
22550 esac
22551 fi
22552 HG=$ac_cv_path_HG
22553 if test -n "$HG"; then
22554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
22555 $as_echo "$HG" >&6; }
22556 else
22557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22558 $as_echo "no" >&6; }
22559 fi
22560 
22561 
22562   test -n "$HG" && break
22563 done
22564 
22565     else
22566       # If it succeeded, then it was overridden by the user. We will use it
22567       # for the tool.
22568 
22569       # First remove it from the list of overridden variables, so we can test
22570       # for unknown variables in the end.
22571       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22572 
22573       # Check if we try to supply an empty value
22574       if test "x$HG" = x; then
22575         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool HG= (no value)" >&5
22576 $as_echo "$as_me: Setting user supplied tool HG= (no value)" >&6;}
22577         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5
22578 $as_echo_n "checking for HG... " >&6; }
22579         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22580 $as_echo "disabled" >&6; }
22581       else
22582         # Check if the provided tool contains a complete path.
22583         tool_specified="$HG"
22584         tool_basename="${tool_specified##*/}"
22585         if test "x$tool_basename" = "x$tool_specified"; then
22586           # A command without a complete path is provided, search $PATH.
22587           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5
22588 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;}
22589           # Extract the first word of "$tool_basename", so it can be a program name with args.
22590 set dummy $tool_basename; ac_word=$2
22591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22592 $as_echo_n "checking for $ac_word... " >&6; }
22593 if ${ac_cv_path_HG+:} false; then :
22594   $as_echo_n "(cached) " >&6
22595 else
22596   case $HG in
22597   [\\/]* | ?:[\\/]*)
22598   ac_cv_path_HG="$HG" # Let the user override the test with a path.
22599   ;;
22600   *)
22601   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22602 for as_dir in $PATH
22603 do
22604   IFS=$as_save_IFS
22605   test -z "$as_dir" && as_dir=.
22606     for ac_exec_ext in '' $ac_executable_extensions; do
22607   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22608     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
22609     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22610     break 2
22611   fi
22612 done
22613   done
22614 IFS=$as_save_IFS
22615 
22616   ;;
22617 esac
22618 fi
22619 HG=$ac_cv_path_HG
22620 if test -n "$HG"; then
22621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
22622 $as_echo "$HG" >&6; }
22623 else
22624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22625 $as_echo "no" >&6; }
22626 fi
22627 
22628 
22629           if test "x$HG" = x; then
22630             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22631           fi
22632         else
22633           # Otherwise we believe it is a complete path. Use it as it is.
22634           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5
22635 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;}
22636           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5
22637 $as_echo_n "checking for HG... " >&6; }
22638           if test ! -x "$tool_specified"; then
22639             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22640 $as_echo "not found" >&6; }
22641             as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5
22642           fi
22643           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22644 $as_echo "$tool_specified" >&6; }
22645         fi
22646       fi
22647     fi
22648 
22649   fi
22650 
22651 
22652 
22653 
22654   # Publish this variable in the help.
22655 
22656 
22657   if [ -z "${STAT+x}" ]; then
22658     # The variable is not set by user, try to locate tool using the code snippet
22659     for ac_prog in stat
22660 do
22661   # Extract the first word of "$ac_prog", so it can be a program name with args.
22662 set dummy $ac_prog; ac_word=$2
22663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22664 $as_echo_n "checking for $ac_word... " >&6; }
22665 if ${ac_cv_path_STAT+:} false; then :
22666   $as_echo_n "(cached) " >&6
22667 else
22668   case $STAT in
22669   [\\/]* | ?:[\\/]*)
22670   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
22671   ;;
22672   *)
22673   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22674 for as_dir in $PATH
22675 do
22676   IFS=$as_save_IFS
22677   test -z "$as_dir" && as_dir=.
22678     for ac_exec_ext in '' $ac_executable_extensions; do
22679   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22680     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
22681     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22682     break 2
22683   fi
22684 done
22685   done
22686 IFS=$as_save_IFS
22687 
22688   ;;
22689 esac
22690 fi
22691 STAT=$ac_cv_path_STAT
22692 if test -n "$STAT"; then
22693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
22694 $as_echo "$STAT" >&6; }
22695 else
22696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22697 $as_echo "no" >&6; }
22698 fi
22699 
22700 
22701   test -n "$STAT" && break
22702 done
22703 
22704   else
22705     # The variable is set, but is it from the command line or the environment?
22706 
22707     # Try to remove the string !STAT! from our list.
22708     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/}
22709     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22710       # If it failed, the variable was not from the command line. Ignore it,
22711       # but warn the user (except for BASH, which is always set by the calling BASH).
22712       if test "xSTAT" != xBASH; then
22713         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5
22714 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;}
22715       fi
22716       # Try to locate tool using the code snippet
22717       for ac_prog in stat
22718 do
22719   # Extract the first word of "$ac_prog", so it can be a program name with args.
22720 set dummy $ac_prog; ac_word=$2
22721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22722 $as_echo_n "checking for $ac_word... " >&6; }
22723 if ${ac_cv_path_STAT+:} false; then :
22724   $as_echo_n "(cached) " >&6
22725 else
22726   case $STAT in
22727   [\\/]* | ?:[\\/]*)
22728   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
22729   ;;
22730   *)
22731   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22732 for as_dir in $PATH
22733 do
22734   IFS=$as_save_IFS
22735   test -z "$as_dir" && as_dir=.
22736     for ac_exec_ext in '' $ac_executable_extensions; do
22737   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22738     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
22739     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22740     break 2
22741   fi
22742 done
22743   done
22744 IFS=$as_save_IFS
22745 
22746   ;;
22747 esac
22748 fi
22749 STAT=$ac_cv_path_STAT
22750 if test -n "$STAT"; then
22751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
22752 $as_echo "$STAT" >&6; }
22753 else
22754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22755 $as_echo "no" >&6; }
22756 fi
22757 
22758 
22759   test -n "$STAT" && break
22760 done
22761 
22762     else
22763       # If it succeeded, then it was overridden by the user. We will use it
22764       # for the tool.
22765 
22766       # First remove it from the list of overridden variables, so we can test
22767       # for unknown variables in the end.
22768       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22769 
22770       # Check if we try to supply an empty value
22771       if test "x$STAT" = x; then
22772         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool STAT= (no value)" >&5
22773 $as_echo "$as_me: Setting user supplied tool STAT= (no value)" >&6;}
22774         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5
22775 $as_echo_n "checking for STAT... " >&6; }
22776         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22777 $as_echo "disabled" >&6; }
22778       else
22779         # Check if the provided tool contains a complete path.
22780         tool_specified="$STAT"
22781         tool_basename="${tool_specified##*/}"
22782         if test "x$tool_basename" = "x$tool_specified"; then
22783           # A command without a complete path is provided, search $PATH.
22784           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5
22785 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;}
22786           # Extract the first word of "$tool_basename", so it can be a program name with args.
22787 set dummy $tool_basename; ac_word=$2
22788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22789 $as_echo_n "checking for $ac_word... " >&6; }
22790 if ${ac_cv_path_STAT+:} false; then :
22791   $as_echo_n "(cached) " >&6
22792 else
22793   case $STAT in
22794   [\\/]* | ?:[\\/]*)
22795   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
22796   ;;
22797   *)
22798   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22799 for as_dir in $PATH
22800 do
22801   IFS=$as_save_IFS
22802   test -z "$as_dir" && as_dir=.
22803     for ac_exec_ext in '' $ac_executable_extensions; do
22804   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22805     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
22806     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22807     break 2
22808   fi
22809 done
22810   done
22811 IFS=$as_save_IFS
22812 
22813   ;;
22814 esac
22815 fi
22816 STAT=$ac_cv_path_STAT
22817 if test -n "$STAT"; then
22818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
22819 $as_echo "$STAT" >&6; }
22820 else
22821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22822 $as_echo "no" >&6; }
22823 fi
22824 
22825 
22826           if test "x$STAT" = x; then
22827             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22828           fi
22829         else
22830           # Otherwise we believe it is a complete path. Use it as it is.
22831           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5
22832 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;}
22833           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5
22834 $as_echo_n "checking for STAT... " >&6; }
22835           if test ! -x "$tool_specified"; then
22836             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22837 $as_echo "not found" >&6; }
22838             as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5
22839           fi
22840           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22841 $as_echo "$tool_specified" >&6; }
22842         fi
22843       fi
22844     fi
22845 
22846   fi
22847 
22848 
22849 
22850 
22851   # Publish this variable in the help.
22852 
22853 
22854   if [ -z "${TIME+x}" ]; then
22855     # The variable is not set by user, try to locate tool using the code snippet
22856     for ac_prog in time
22857 do
22858   # Extract the first word of "$ac_prog", so it can be a program name with args.
22859 set dummy $ac_prog; ac_word=$2
22860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22861 $as_echo_n "checking for $ac_word... " >&6; }
22862 if ${ac_cv_path_TIME+:} false; then :
22863   $as_echo_n "(cached) " >&6
22864 else
22865   case $TIME in
22866   [\\/]* | ?:[\\/]*)
22867   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
22868   ;;
22869   *)
22870   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22871 for as_dir in $PATH
22872 do
22873   IFS=$as_save_IFS
22874   test -z "$as_dir" && as_dir=.
22875     for ac_exec_ext in '' $ac_executable_extensions; do
22876   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22877     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
22878     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22879     break 2
22880   fi
22881 done
22882   done
22883 IFS=$as_save_IFS
22884 
22885   ;;
22886 esac
22887 fi
22888 TIME=$ac_cv_path_TIME
22889 if test -n "$TIME"; then
22890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
22891 $as_echo "$TIME" >&6; }
22892 else
22893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22894 $as_echo "no" >&6; }
22895 fi
22896 
22897 
22898   test -n "$TIME" && break
22899 done
22900 
22901   else
22902     # The variable is set, but is it from the command line or the environment?
22903 
22904     # Try to remove the string !TIME! from our list.
22905     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/}
22906     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22907       # If it failed, the variable was not from the command line. Ignore it,
22908       # but warn the user (except for BASH, which is always set by the calling BASH).
22909       if test "xTIME" != xBASH; then
22910         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5
22911 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;}
22912       fi
22913       # Try to locate tool using the code snippet
22914       for ac_prog in time
22915 do
22916   # Extract the first word of "$ac_prog", so it can be a program name with args.
22917 set dummy $ac_prog; ac_word=$2
22918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22919 $as_echo_n "checking for $ac_word... " >&6; }
22920 if ${ac_cv_path_TIME+:} false; then :
22921   $as_echo_n "(cached) " >&6
22922 else
22923   case $TIME in
22924   [\\/]* | ?:[\\/]*)
22925   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
22926   ;;
22927   *)
22928   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22929 for as_dir in $PATH
22930 do
22931   IFS=$as_save_IFS
22932   test -z "$as_dir" && as_dir=.
22933     for ac_exec_ext in '' $ac_executable_extensions; do
22934   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22935     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
22936     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22937     break 2
22938   fi
22939 done
22940   done
22941 IFS=$as_save_IFS
22942 
22943   ;;
22944 esac
22945 fi
22946 TIME=$ac_cv_path_TIME
22947 if test -n "$TIME"; then
22948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
22949 $as_echo "$TIME" >&6; }
22950 else
22951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22952 $as_echo "no" >&6; }
22953 fi
22954 
22955 
22956   test -n "$TIME" && break
22957 done
22958 
22959     else
22960       # If it succeeded, then it was overridden by the user. We will use it
22961       # for the tool.
22962 
22963       # First remove it from the list of overridden variables, so we can test
22964       # for unknown variables in the end.
22965       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22966 
22967       # Check if we try to supply an empty value
22968       if test "x$TIME" = x; then
22969         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TIME= (no value)" >&5
22970 $as_echo "$as_me: Setting user supplied tool TIME= (no value)" >&6;}
22971         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5
22972 $as_echo_n "checking for TIME... " >&6; }
22973         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22974 $as_echo "disabled" >&6; }
22975       else
22976         # Check if the provided tool contains a complete path.
22977         tool_specified="$TIME"
22978         tool_basename="${tool_specified##*/}"
22979         if test "x$tool_basename" = "x$tool_specified"; then
22980           # A command without a complete path is provided, search $PATH.
22981           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5
22982 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;}
22983           # Extract the first word of "$tool_basename", so it can be a program name with args.
22984 set dummy $tool_basename; ac_word=$2
22985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22986 $as_echo_n "checking for $ac_word... " >&6; }
22987 if ${ac_cv_path_TIME+:} false; then :
22988   $as_echo_n "(cached) " >&6
22989 else
22990   case $TIME in
22991   [\\/]* | ?:[\\/]*)
22992   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
22993   ;;
22994   *)
22995   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22996 for as_dir in $PATH
22997 do
22998   IFS=$as_save_IFS
22999   test -z "$as_dir" && as_dir=.
23000     for ac_exec_ext in '' $ac_executable_extensions; do
23001   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23002     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
23003     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23004     break 2
23005   fi
23006 done
23007   done
23008 IFS=$as_save_IFS
23009 
23010   ;;
23011 esac
23012 fi
23013 TIME=$ac_cv_path_TIME
23014 if test -n "$TIME"; then
23015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
23016 $as_echo "$TIME" >&6; }
23017 else
23018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23019 $as_echo "no" >&6; }
23020 fi
23021 
23022 
23023           if test "x$TIME" = x; then
23024             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
23025           fi
23026         else
23027           # Otherwise we believe it is a complete path. Use it as it is.
23028           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5
23029 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;}
23030           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5
23031 $as_echo_n "checking for TIME... " >&6; }
23032           if test ! -x "$tool_specified"; then
23033             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23034 $as_echo "not found" >&6; }
23035             as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5
23036           fi
23037           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
23038 $as_echo "$tool_specified" >&6; }
23039         fi
23040       fi
23041     fi
23042 
23043   fi
23044 
23045 
23046   # Dtrace is usually found in /usr/sbin on Solaris, but that directory may not
23047   # be in the user path.
23048 
23049 
23050   # Publish this variable in the help.
23051 
23052 
23053   if [ -z "${DTRACE+x}" ]; then
23054     # The variable is not set by user, try to locate tool using the code snippet
23055     for ac_prog in dtrace
23056 do
23057   # Extract the first word of "$ac_prog", so it can be a program name with args.
23058 set dummy $ac_prog; ac_word=$2
23059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23060 $as_echo_n "checking for $ac_word... " >&6; }
23061 if ${ac_cv_path_DTRACE+:} false; then :
23062   $as_echo_n "(cached) " >&6
23063 else
23064   case $DTRACE in
23065   [\\/]* | ?:[\\/]*)
23066   ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
23067   ;;
23068   *)
23069   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23070 as_dummy="$PATH:/usr/sbin"
23071 for as_dir in $as_dummy
23072 do
23073   IFS=$as_save_IFS
23074   test -z "$as_dir" && as_dir=.
23075     for ac_exec_ext in '' $ac_executable_extensions; do
23076   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23077     ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
23078     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23079     break 2
23080   fi
23081 done
23082   done
23083 IFS=$as_save_IFS
23084 
23085   ;;
23086 esac
23087 fi
23088 DTRACE=$ac_cv_path_DTRACE
23089 if test -n "$DTRACE"; then
23090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
23091 $as_echo "$DTRACE" >&6; }
23092 else
23093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23094 $as_echo "no" >&6; }
23095 fi
23096 
23097 
23098   test -n "$DTRACE" && break
23099 done
23100 
23101   else
23102     # The variable is set, but is it from the command line or the environment?
23103 
23104     # Try to remove the string !DTRACE! from our list.
23105     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DTRACE!/}
23106     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
23107       # If it failed, the variable was not from the command line. Ignore it,
23108       # but warn the user (except for BASH, which is always set by the calling BASH).
23109       if test "xDTRACE" != xBASH; then
23110         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DTRACE from the environment. Use command line variables instead." >&5
23111 $as_echo "$as_me: WARNING: Ignoring value of DTRACE from the environment. Use command line variables instead." >&2;}
23112       fi
23113       # Try to locate tool using the code snippet
23114       for ac_prog in dtrace
23115 do
23116   # Extract the first word of "$ac_prog", so it can be a program name with args.
23117 set dummy $ac_prog; ac_word=$2
23118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23119 $as_echo_n "checking for $ac_word... " >&6; }
23120 if ${ac_cv_path_DTRACE+:} false; then :
23121   $as_echo_n "(cached) " >&6
23122 else
23123   case $DTRACE in
23124   [\\/]* | ?:[\\/]*)
23125   ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
23126   ;;
23127   *)
23128   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23129 as_dummy="$PATH:/usr/sbin"
23130 for as_dir in $as_dummy
23131 do
23132   IFS=$as_save_IFS
23133   test -z "$as_dir" && as_dir=.
23134     for ac_exec_ext in '' $ac_executable_extensions; do
23135   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23136     ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
23137     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23138     break 2
23139   fi
23140 done
23141   done
23142 IFS=$as_save_IFS
23143 
23144   ;;
23145 esac
23146 fi
23147 DTRACE=$ac_cv_path_DTRACE
23148 if test -n "$DTRACE"; then
23149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
23150 $as_echo "$DTRACE" >&6; }
23151 else
23152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23153 $as_echo "no" >&6; }
23154 fi
23155 
23156 
23157   test -n "$DTRACE" && break
23158 done
23159 
23160     else
23161       # If it succeeded, then it was overridden by the user. We will use it
23162       # for the tool.
23163 
23164       # First remove it from the list of overridden variables, so we can test
23165       # for unknown variables in the end.
23166       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
23167 
23168       # Check if we try to supply an empty value
23169       if test "x$DTRACE" = x; then
23170         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DTRACE= (no value)" >&5
23171 $as_echo "$as_me: Setting user supplied tool DTRACE= (no value)" >&6;}
23172         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DTRACE" >&5
23173 $as_echo_n "checking for DTRACE... " >&6; }
23174         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
23175 $as_echo "disabled" >&6; }
23176       else
23177         # Check if the provided tool contains a complete path.
23178         tool_specified="$DTRACE"
23179         tool_basename="${tool_specified##*/}"
23180         if test "x$tool_basename" = "x$tool_specified"; then
23181           # A command without a complete path is provided, search $PATH.
23182           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DTRACE=$tool_basename" >&5
23183 $as_echo "$as_me: Will search for user supplied tool DTRACE=$tool_basename" >&6;}
23184           # Extract the first word of "$tool_basename", so it can be a program name with args.
23185 set dummy $tool_basename; ac_word=$2
23186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23187 $as_echo_n "checking for $ac_word... " >&6; }
23188 if ${ac_cv_path_DTRACE+:} false; then :
23189   $as_echo_n "(cached) " >&6
23190 else
23191   case $DTRACE in
23192   [\\/]* | ?:[\\/]*)
23193   ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
23194   ;;
23195   *)
23196   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23197 for as_dir in $PATH
23198 do
23199   IFS=$as_save_IFS
23200   test -z "$as_dir" && as_dir=.
23201     for ac_exec_ext in '' $ac_executable_extensions; do
23202   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23203     ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
23204     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23205     break 2
23206   fi
23207 done
23208   done
23209 IFS=$as_save_IFS
23210 
23211   ;;
23212 esac
23213 fi
23214 DTRACE=$ac_cv_path_DTRACE
23215 if test -n "$DTRACE"; then
23216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
23217 $as_echo "$DTRACE" >&6; }
23218 else
23219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23220 $as_echo "no" >&6; }
23221 fi
23222 
23223 
23224           if test "x$DTRACE" = x; then
23225             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
23226           fi
23227         else
23228           # Otherwise we believe it is a complete path. Use it as it is.
23229           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DTRACE=$tool_specified" >&5
23230 $as_echo "$as_me: Will use user supplied tool DTRACE=$tool_specified" >&6;}
23231           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DTRACE" >&5
23232 $as_echo_n "checking for DTRACE... " >&6; }
23233           if test ! -x "$tool_specified"; then
23234             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23235 $as_echo "not found" >&6; }
23236             as_fn_error $? "User supplied tool DTRACE=$tool_specified does not exist or is not executable" "$LINENO" 5
23237           fi
23238           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
23239 $as_echo "$tool_specified" >&6; }
23240         fi
23241       fi
23242     fi
23243 
23244   fi
23245 
23246 
23247 
23248 
23249   # Publish this variable in the help.
23250 
23251 
23252   if [ -z "${PATCH+x}" ]; then
23253     # The variable is not set by user, try to locate tool using the code snippet
23254     for ac_prog in gpatch patch
23255 do
23256   # Extract the first word of "$ac_prog", so it can be a program name with args.
23257 set dummy $ac_prog; ac_word=$2
23258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23259 $as_echo_n "checking for $ac_word... " >&6; }
23260 if ${ac_cv_path_PATCH+:} false; then :
23261   $as_echo_n "(cached) " >&6
23262 else
23263   case $PATCH in
23264   [\\/]* | ?:[\\/]*)
23265   ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
23266   ;;
23267   *)
23268   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23269 for as_dir in $PATH
23270 do
23271   IFS=$as_save_IFS
23272   test -z "$as_dir" && as_dir=.
23273     for ac_exec_ext in '' $ac_executable_extensions; do
23274   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23275     ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
23276     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23277     break 2
23278   fi
23279 done
23280   done
23281 IFS=$as_save_IFS
23282 
23283   ;;
23284 esac
23285 fi
23286 PATCH=$ac_cv_path_PATCH
23287 if test -n "$PATCH"; then
23288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
23289 $as_echo "$PATCH" >&6; }
23290 else
23291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23292 $as_echo "no" >&6; }
23293 fi
23294 
23295 
23296   test -n "$PATCH" && break
23297 done
23298 
23299   else
23300     # The variable is set, but is it from the command line or the environment?
23301 
23302     # Try to remove the string !PATCH! from our list.
23303     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PATCH!/}
23304     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
23305       # If it failed, the variable was not from the command line. Ignore it,
23306       # but warn the user (except for BASH, which is always set by the calling BASH).
23307       if test "xPATCH" != xBASH; then
23308         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PATCH from the environment. Use command line variables instead." >&5
23309 $as_echo "$as_me: WARNING: Ignoring value of PATCH from the environment. Use command line variables instead." >&2;}
23310       fi
23311       # Try to locate tool using the code snippet
23312       for ac_prog in gpatch patch
23313 do
23314   # Extract the first word of "$ac_prog", so it can be a program name with args.
23315 set dummy $ac_prog; ac_word=$2
23316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23317 $as_echo_n "checking for $ac_word... " >&6; }
23318 if ${ac_cv_path_PATCH+:} false; then :
23319   $as_echo_n "(cached) " >&6
23320 else
23321   case $PATCH in
23322   [\\/]* | ?:[\\/]*)
23323   ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
23324   ;;
23325   *)
23326   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23327 for as_dir in $PATH
23328 do
23329   IFS=$as_save_IFS
23330   test -z "$as_dir" && as_dir=.
23331     for ac_exec_ext in '' $ac_executable_extensions; do
23332   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23333     ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
23334     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23335     break 2
23336   fi
23337 done
23338   done
23339 IFS=$as_save_IFS
23340 
23341   ;;
23342 esac
23343 fi
23344 PATCH=$ac_cv_path_PATCH
23345 if test -n "$PATCH"; then
23346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
23347 $as_echo "$PATCH" >&6; }
23348 else
23349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23350 $as_echo "no" >&6; }
23351 fi
23352 
23353 
23354   test -n "$PATCH" && break
23355 done
23356 
23357     else
23358       # If it succeeded, then it was overridden by the user. We will use it
23359       # for the tool.
23360 
23361       # First remove it from the list of overridden variables, so we can test
23362       # for unknown variables in the end.
23363       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
23364 
23365       # Check if we try to supply an empty value
23366       if test "x$PATCH" = x; then
23367         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PATCH= (no value)" >&5
23368 $as_echo "$as_me: Setting user supplied tool PATCH= (no value)" >&6;}
23369         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATCH" >&5
23370 $as_echo_n "checking for PATCH... " >&6; }
23371         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
23372 $as_echo "disabled" >&6; }
23373       else
23374         # Check if the provided tool contains a complete path.
23375         tool_specified="$PATCH"
23376         tool_basename="${tool_specified##*/}"
23377         if test "x$tool_basename" = "x$tool_specified"; then
23378           # A command without a complete path is provided, search $PATH.
23379           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PATCH=$tool_basename" >&5
23380 $as_echo "$as_me: Will search for user supplied tool PATCH=$tool_basename" >&6;}
23381           # Extract the first word of "$tool_basename", so it can be a program name with args.
23382 set dummy $tool_basename; ac_word=$2
23383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23384 $as_echo_n "checking for $ac_word... " >&6; }
23385 if ${ac_cv_path_PATCH+:} false; then :
23386   $as_echo_n "(cached) " >&6
23387 else
23388   case $PATCH in
23389   [\\/]* | ?:[\\/]*)
23390   ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
23391   ;;
23392   *)
23393   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23394 for as_dir in $PATH
23395 do
23396   IFS=$as_save_IFS
23397   test -z "$as_dir" && as_dir=.
23398     for ac_exec_ext in '' $ac_executable_extensions; do
23399   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23400     ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
23401     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23402     break 2
23403   fi
23404 done
23405   done
23406 IFS=$as_save_IFS
23407 
23408   ;;
23409 esac
23410 fi
23411 PATCH=$ac_cv_path_PATCH
23412 if test -n "$PATCH"; then
23413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
23414 $as_echo "$PATCH" >&6; }
23415 else
23416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23417 $as_echo "no" >&6; }
23418 fi
23419 
23420 
23421           if test "x$PATCH" = x; then
23422             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
23423           fi
23424         else
23425           # Otherwise we believe it is a complete path. Use it as it is.
23426           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PATCH=$tool_specified" >&5
23427 $as_echo "$as_me: Will use user supplied tool PATCH=$tool_specified" >&6;}
23428           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATCH" >&5
23429 $as_echo_n "checking for PATCH... " >&6; }
23430           if test ! -x "$tool_specified"; then
23431             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23432 $as_echo "not found" >&6; }
23433             as_fn_error $? "User supplied tool PATCH=$tool_specified does not exist or is not executable" "$LINENO" 5
23434           fi
23435           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
23436 $as_echo "$tool_specified" >&6; }
23437         fi
23438       fi
23439     fi
23440 
23441   fi
23442 
23443 
23444   # Check if it's GNU time
23445   IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'`
23446   if test "x$IS_GNU_TIME" != x; then
23447     IS_GNU_TIME=yes
23448   else
23449     IS_GNU_TIME=no
23450   fi
23451 
23452 
23453   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
23454 
23455 
23456 
23457   # Publish this variable in the help.
23458 
23459 
23460   if [ -z "${DSYMUTIL+x}" ]; then
23461     # The variable is not set by user, try to locate tool using the code snippet
23462     for ac_prog in dsymutil
23463 do
23464   # Extract the first word of "$ac_prog", so it can be a program name with args.
23465 set dummy $ac_prog; ac_word=$2
23466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23467 $as_echo_n "checking for $ac_word... " >&6; }
23468 if ${ac_cv_path_DSYMUTIL+:} false; then :
23469   $as_echo_n "(cached) " >&6
23470 else
23471   case $DSYMUTIL in
23472   [\\/]* | ?:[\\/]*)
23473   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
23474   ;;
23475   *)
23476   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23477 for as_dir in $PATH
23478 do
23479   IFS=$as_save_IFS
23480   test -z "$as_dir" && as_dir=.
23481     for ac_exec_ext in '' $ac_executable_extensions; do
23482   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23483     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
23484     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23485     break 2
23486   fi
23487 done
23488   done
23489 IFS=$as_save_IFS
23490 
23491   ;;
23492 esac
23493 fi
23494 DSYMUTIL=$ac_cv_path_DSYMUTIL
23495 if test -n "$DSYMUTIL"; then
23496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
23497 $as_echo "$DSYMUTIL" >&6; }
23498 else
23499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23500 $as_echo "no" >&6; }
23501 fi
23502 
23503 
23504   test -n "$DSYMUTIL" && break
23505 done
23506 
23507   else
23508     # The variable is set, but is it from the command line or the environment?
23509 
23510     # Try to remove the string !DSYMUTIL! from our list.
23511     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/}
23512     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
23513       # If it failed, the variable was not from the command line. Ignore it,
23514       # but warn the user (except for BASH, which is always set by the calling BASH).
23515       if test "xDSYMUTIL" != xBASH; then
23516         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5
23517 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;}
23518       fi
23519       # Try to locate tool using the code snippet
23520       for ac_prog in dsymutil
23521 do
23522   # Extract the first word of "$ac_prog", so it can be a program name with args.
23523 set dummy $ac_prog; ac_word=$2
23524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23525 $as_echo_n "checking for $ac_word... " >&6; }
23526 if ${ac_cv_path_DSYMUTIL+:} false; then :
23527   $as_echo_n "(cached) " >&6
23528 else
23529   case $DSYMUTIL in
23530   [\\/]* | ?:[\\/]*)
23531   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
23532   ;;
23533   *)
23534   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23535 for as_dir in $PATH
23536 do
23537   IFS=$as_save_IFS
23538   test -z "$as_dir" && as_dir=.
23539     for ac_exec_ext in '' $ac_executable_extensions; do
23540   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23541     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
23542     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23543     break 2
23544   fi
23545 done
23546   done
23547 IFS=$as_save_IFS
23548 
23549   ;;
23550 esac
23551 fi
23552 DSYMUTIL=$ac_cv_path_DSYMUTIL
23553 if test -n "$DSYMUTIL"; then
23554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
23555 $as_echo "$DSYMUTIL" >&6; }
23556 else
23557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23558 $as_echo "no" >&6; }
23559 fi
23560 
23561 
23562   test -n "$DSYMUTIL" && break
23563 done
23564 
23565     else
23566       # If it succeeded, then it was overridden by the user. We will use it
23567       # for the tool.
23568 
23569       # First remove it from the list of overridden variables, so we can test
23570       # for unknown variables in the end.
23571       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
23572 
23573       # Check if we try to supply an empty value
23574       if test "x$DSYMUTIL" = x; then
23575         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DSYMUTIL= (no value)" >&5
23576 $as_echo "$as_me: Setting user supplied tool DSYMUTIL= (no value)" >&6;}
23577         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5
23578 $as_echo_n "checking for DSYMUTIL... " >&6; }
23579         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
23580 $as_echo "disabled" >&6; }
23581       else
23582         # Check if the provided tool contains a complete path.
23583         tool_specified="$DSYMUTIL"
23584         tool_basename="${tool_specified##*/}"
23585         if test "x$tool_basename" = "x$tool_specified"; then
23586           # A command without a complete path is provided, search $PATH.
23587           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5
23588 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;}
23589           # Extract the first word of "$tool_basename", so it can be a program name with args.
23590 set dummy $tool_basename; ac_word=$2
23591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23592 $as_echo_n "checking for $ac_word... " >&6; }
23593 if ${ac_cv_path_DSYMUTIL+:} false; then :
23594   $as_echo_n "(cached) " >&6
23595 else
23596   case $DSYMUTIL in
23597   [\\/]* | ?:[\\/]*)
23598   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
23599   ;;
23600   *)
23601   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23602 for as_dir in $PATH
23603 do
23604   IFS=$as_save_IFS
23605   test -z "$as_dir" && as_dir=.
23606     for ac_exec_ext in '' $ac_executable_extensions; do
23607   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23608     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
23609     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23610     break 2
23611   fi
23612 done
23613   done
23614 IFS=$as_save_IFS
23615 
23616   ;;
23617 esac
23618 fi
23619 DSYMUTIL=$ac_cv_path_DSYMUTIL
23620 if test -n "$DSYMUTIL"; then
23621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
23622 $as_echo "$DSYMUTIL" >&6; }
23623 else
23624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23625 $as_echo "no" >&6; }
23626 fi
23627 
23628 
23629           if test "x$DSYMUTIL" = x; then
23630             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
23631           fi
23632         else
23633           # Otherwise we believe it is a complete path. Use it as it is.
23634           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5
23635 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;}
23636           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5
23637 $as_echo_n "checking for DSYMUTIL... " >&6; }
23638           if test ! -x "$tool_specified"; then
23639             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23640 $as_echo "not found" >&6; }
23641             as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5
23642           fi
23643           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
23644 $as_echo "$tool_specified" >&6; }
23645         fi
23646       fi
23647     fi
23648 
23649   fi
23650 
23651 
23652 
23653   if test "x$DSYMUTIL" = x; then
23654     as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5
23655   fi
23656 
23657 
23658 
23659 
23660 
23661   # Publish this variable in the help.
23662 
23663 
23664   if [ -z "${XATTR+x}" ]; then
23665     # The variable is not set by user, try to locate tool using the code snippet
23666     for ac_prog in xattr
23667 do
23668   # Extract the first word of "$ac_prog", so it can be a program name with args.
23669 set dummy $ac_prog; ac_word=$2
23670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23671 $as_echo_n "checking for $ac_word... " >&6; }
23672 if ${ac_cv_path_XATTR+:} false; then :
23673   $as_echo_n "(cached) " >&6
23674 else
23675   case $XATTR in
23676   [\\/]* | ?:[\\/]*)
23677   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
23678   ;;
23679   *)
23680   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23681 for as_dir in $PATH
23682 do
23683   IFS=$as_save_IFS
23684   test -z "$as_dir" && as_dir=.
23685     for ac_exec_ext in '' $ac_executable_extensions; do
23686   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23687     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
23688     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23689     break 2
23690   fi
23691 done
23692   done
23693 IFS=$as_save_IFS
23694 
23695   ;;
23696 esac
23697 fi
23698 XATTR=$ac_cv_path_XATTR
23699 if test -n "$XATTR"; then
23700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
23701 $as_echo "$XATTR" >&6; }
23702 else
23703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23704 $as_echo "no" >&6; }
23705 fi
23706 
23707 
23708   test -n "$XATTR" && break
23709 done
23710 
23711   else
23712     # The variable is set, but is it from the command line or the environment?
23713 
23714     # Try to remove the string !XATTR! from our list.
23715     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/}
23716     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
23717       # If it failed, the variable was not from the command line. Ignore it,
23718       # but warn the user (except for BASH, which is always set by the calling BASH).
23719       if test "xXATTR" != xBASH; then
23720         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5
23721 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;}
23722       fi
23723       # Try to locate tool using the code snippet
23724       for ac_prog in xattr
23725 do
23726   # Extract the first word of "$ac_prog", so it can be a program name with args.
23727 set dummy $ac_prog; ac_word=$2
23728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23729 $as_echo_n "checking for $ac_word... " >&6; }
23730 if ${ac_cv_path_XATTR+:} false; then :
23731   $as_echo_n "(cached) " >&6
23732 else
23733   case $XATTR in
23734   [\\/]* | ?:[\\/]*)
23735   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
23736   ;;
23737   *)
23738   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23739 for as_dir in $PATH
23740 do
23741   IFS=$as_save_IFS
23742   test -z "$as_dir" && as_dir=.
23743     for ac_exec_ext in '' $ac_executable_extensions; do
23744   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23745     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
23746     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23747     break 2
23748   fi
23749 done
23750   done
23751 IFS=$as_save_IFS
23752 
23753   ;;
23754 esac
23755 fi
23756 XATTR=$ac_cv_path_XATTR
23757 if test -n "$XATTR"; then
23758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
23759 $as_echo "$XATTR" >&6; }
23760 else
23761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23762 $as_echo "no" >&6; }
23763 fi
23764 
23765 
23766   test -n "$XATTR" && break
23767 done
23768 
23769     else
23770       # If it succeeded, then it was overridden by the user. We will use it
23771       # for the tool.
23772 
23773       # First remove it from the list of overridden variables, so we can test
23774       # for unknown variables in the end.
23775       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
23776 
23777       # Check if we try to supply an empty value
23778       if test "x$XATTR" = x; then
23779         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool XATTR= (no value)" >&5
23780 $as_echo "$as_me: Setting user supplied tool XATTR= (no value)" >&6;}
23781         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5
23782 $as_echo_n "checking for XATTR... " >&6; }
23783         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
23784 $as_echo "disabled" >&6; }
23785       else
23786         # Check if the provided tool contains a complete path.
23787         tool_specified="$XATTR"
23788         tool_basename="${tool_specified##*/}"
23789         if test "x$tool_basename" = "x$tool_specified"; then
23790           # A command without a complete path is provided, search $PATH.
23791           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5
23792 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;}
23793           # Extract the first word of "$tool_basename", so it can be a program name with args.
23794 set dummy $tool_basename; ac_word=$2
23795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23796 $as_echo_n "checking for $ac_word... " >&6; }
23797 if ${ac_cv_path_XATTR+:} false; then :
23798   $as_echo_n "(cached) " >&6
23799 else
23800   case $XATTR in
23801   [\\/]* | ?:[\\/]*)
23802   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
23803   ;;
23804   *)
23805   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23806 for as_dir in $PATH
23807 do
23808   IFS=$as_save_IFS
23809   test -z "$as_dir" && as_dir=.
23810     for ac_exec_ext in '' $ac_executable_extensions; do
23811   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23812     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
23813     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23814     break 2
23815   fi
23816 done
23817   done
23818 IFS=$as_save_IFS
23819 
23820   ;;
23821 esac
23822 fi
23823 XATTR=$ac_cv_path_XATTR
23824 if test -n "$XATTR"; then
23825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
23826 $as_echo "$XATTR" >&6; }
23827 else
23828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23829 $as_echo "no" >&6; }
23830 fi
23831 
23832 
23833           if test "x$XATTR" = x; then
23834             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
23835           fi
23836         else
23837           # Otherwise we believe it is a complete path. Use it as it is.
23838           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5
23839 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;}
23840           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5
23841 $as_echo_n "checking for XATTR... " >&6; }
23842           if test ! -x "$tool_specified"; then
23843             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23844 $as_echo "not found" >&6; }
23845             as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5
23846           fi
23847           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
23848 $as_echo "$tool_specified" >&6; }
23849         fi
23850       fi
23851     fi
23852 
23853   fi
23854 
23855 
23856 
23857   if test "x$XATTR" = x; then
23858     as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5
23859   fi
23860 
23861 
23862 
23863 
23864   # Publish this variable in the help.
23865 
23866 
23867   if [ -z "${CODESIGN+x}" ]; then
23868     # The variable is not set by user, try to locate tool using the code snippet
23869     for ac_prog in codesign
23870 do
23871   # Extract the first word of "$ac_prog", so it can be a program name with args.
23872 set dummy $ac_prog; ac_word=$2
23873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23874 $as_echo_n "checking for $ac_word... " >&6; }
23875 if ${ac_cv_path_CODESIGN+:} false; then :
23876   $as_echo_n "(cached) " >&6
23877 else
23878   case $CODESIGN in
23879   [\\/]* | ?:[\\/]*)
23880   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
23881   ;;
23882   *)
23883   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23884 for as_dir in $PATH
23885 do
23886   IFS=$as_save_IFS
23887   test -z "$as_dir" && as_dir=.
23888     for ac_exec_ext in '' $ac_executable_extensions; do
23889   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23890     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
23891     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23892     break 2
23893   fi
23894 done
23895   done
23896 IFS=$as_save_IFS
23897 
23898   ;;
23899 esac
23900 fi
23901 CODESIGN=$ac_cv_path_CODESIGN
23902 if test -n "$CODESIGN"; then
23903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
23904 $as_echo "$CODESIGN" >&6; }
23905 else
23906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23907 $as_echo "no" >&6; }
23908 fi
23909 
23910 
23911   test -n "$CODESIGN" && break
23912 done
23913 
23914   else
23915     # The variable is set, but is it from the command line or the environment?
23916 
23917     # Try to remove the string !CODESIGN! from our list.
23918     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/}
23919     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
23920       # If it failed, the variable was not from the command line. Ignore it,
23921       # but warn the user (except for BASH, which is always set by the calling BASH).
23922       if test "xCODESIGN" != xBASH; then
23923         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5
23924 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;}
23925       fi
23926       # Try to locate tool using the code snippet
23927       for ac_prog in codesign
23928 do
23929   # Extract the first word of "$ac_prog", so it can be a program name with args.
23930 set dummy $ac_prog; ac_word=$2
23931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23932 $as_echo_n "checking for $ac_word... " >&6; }
23933 if ${ac_cv_path_CODESIGN+:} false; then :
23934   $as_echo_n "(cached) " >&6
23935 else
23936   case $CODESIGN in
23937   [\\/]* | ?:[\\/]*)
23938   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
23939   ;;
23940   *)
23941   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23942 for as_dir in $PATH
23943 do
23944   IFS=$as_save_IFS
23945   test -z "$as_dir" && as_dir=.
23946     for ac_exec_ext in '' $ac_executable_extensions; do
23947   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23948     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
23949     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23950     break 2
23951   fi
23952 done
23953   done
23954 IFS=$as_save_IFS
23955 
23956   ;;
23957 esac
23958 fi
23959 CODESIGN=$ac_cv_path_CODESIGN
23960 if test -n "$CODESIGN"; then
23961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
23962 $as_echo "$CODESIGN" >&6; }
23963 else
23964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23965 $as_echo "no" >&6; }
23966 fi
23967 
23968 
23969   test -n "$CODESIGN" && break
23970 done
23971 
23972     else
23973       # If it succeeded, then it was overridden by the user. We will use it
23974       # for the tool.
23975 
23976       # First remove it from the list of overridden variables, so we can test
23977       # for unknown variables in the end.
23978       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
23979 
23980       # Check if we try to supply an empty value
23981       if test "x$CODESIGN" = x; then
23982         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CODESIGN= (no value)" >&5
23983 $as_echo "$as_me: Setting user supplied tool CODESIGN= (no value)" >&6;}
23984         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5
23985 $as_echo_n "checking for CODESIGN... " >&6; }
23986         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
23987 $as_echo "disabled" >&6; }
23988       else
23989         # Check if the provided tool contains a complete path.
23990         tool_specified="$CODESIGN"
23991         tool_basename="${tool_specified##*/}"
23992         if test "x$tool_basename" = "x$tool_specified"; then
23993           # A command without a complete path is provided, search $PATH.
23994           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5
23995 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;}
23996           # Extract the first word of "$tool_basename", so it can be a program name with args.
23997 set dummy $tool_basename; ac_word=$2
23998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23999 $as_echo_n "checking for $ac_word... " >&6; }
24000 if ${ac_cv_path_CODESIGN+:} false; then :
24001   $as_echo_n "(cached) " >&6
24002 else
24003   case $CODESIGN in
24004   [\\/]* | ?:[\\/]*)
24005   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
24006   ;;
24007   *)
24008   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24009 for as_dir in $PATH
24010 do
24011   IFS=$as_save_IFS
24012   test -z "$as_dir" && as_dir=.
24013     for ac_exec_ext in '' $ac_executable_extensions; do
24014   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24015     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
24016     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24017     break 2
24018   fi
24019 done
24020   done
24021 IFS=$as_save_IFS
24022 
24023   ;;
24024 esac
24025 fi
24026 CODESIGN=$ac_cv_path_CODESIGN
24027 if test -n "$CODESIGN"; then
24028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
24029 $as_echo "$CODESIGN" >&6; }
24030 else
24031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24032 $as_echo "no" >&6; }
24033 fi
24034 
24035 
24036           if test "x$CODESIGN" = x; then
24037             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
24038           fi
24039         else
24040           # Otherwise we believe it is a complete path. Use it as it is.
24041           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5
24042 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;}
24043           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5
24044 $as_echo_n "checking for CODESIGN... " >&6; }
24045           if test ! -x "$tool_specified"; then
24046             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24047 $as_echo "not found" >&6; }
24048             as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5
24049           fi
24050           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
24051 $as_echo "$tool_specified" >&6; }
24052         fi
24053       fi
24054     fi
24055 
24056   fi
24057 
24058 
24059     if test "x$CODESIGN" != "x"; then
24060       # Verify that the openjdk_codesign certificate is present
24061       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5
24062 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; }
24063       $RM codesign-testfile
24064       $TOUCH codesign-testfile
24065       $CODESIGN -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN=
24066       $RM codesign-testfile
24067       if test "x$CODESIGN" = x; then
24068         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24069 $as_echo "no" >&6; }
24070       else
24071         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24072 $as_echo "yes" >&6; }
24073       fi
24074     fi
24075 
24076 
24077 
24078   # Publish this variable in the help.
24079 
24080 
24081   if [ -z "${SETFILE+x}" ]; then
24082     # The variable is not set by user, try to locate tool using the code snippet
24083     for ac_prog in SetFile
24084 do
24085   # Extract the first word of "$ac_prog", so it can be a program name with args.
24086 set dummy $ac_prog; ac_word=$2
24087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24088 $as_echo_n "checking for $ac_word... " >&6; }
24089 if ${ac_cv_path_SETFILE+:} false; then :
24090   $as_echo_n "(cached) " >&6
24091 else
24092   case $SETFILE in
24093   [\\/]* | ?:[\\/]*)
24094   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
24095   ;;
24096   *)
24097   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24098 for as_dir in $PATH
24099 do
24100   IFS=$as_save_IFS
24101   test -z "$as_dir" && as_dir=.
24102     for ac_exec_ext in '' $ac_executable_extensions; do
24103   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24104     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
24105     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24106     break 2
24107   fi
24108 done
24109   done
24110 IFS=$as_save_IFS
24111 
24112   ;;
24113 esac
24114 fi
24115 SETFILE=$ac_cv_path_SETFILE
24116 if test -n "$SETFILE"; then
24117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
24118 $as_echo "$SETFILE" >&6; }
24119 else
24120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24121 $as_echo "no" >&6; }
24122 fi
24123 
24124 
24125   test -n "$SETFILE" && break
24126 done
24127 
24128   else
24129     # The variable is set, but is it from the command line or the environment?
24130 
24131     # Try to remove the string !SETFILE! from our list.
24132     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/}
24133     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
24134       # If it failed, the variable was not from the command line. Ignore it,
24135       # but warn the user (except for BASH, which is always set by the calling BASH).
24136       if test "xSETFILE" != xBASH; then
24137         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5
24138 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;}
24139       fi
24140       # Try to locate tool using the code snippet
24141       for ac_prog in SetFile
24142 do
24143   # Extract the first word of "$ac_prog", so it can be a program name with args.
24144 set dummy $ac_prog; ac_word=$2
24145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24146 $as_echo_n "checking for $ac_word... " >&6; }
24147 if ${ac_cv_path_SETFILE+:} false; then :
24148   $as_echo_n "(cached) " >&6
24149 else
24150   case $SETFILE in
24151   [\\/]* | ?:[\\/]*)
24152   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
24153   ;;
24154   *)
24155   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24156 for as_dir in $PATH
24157 do
24158   IFS=$as_save_IFS
24159   test -z "$as_dir" && as_dir=.
24160     for ac_exec_ext in '' $ac_executable_extensions; do
24161   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24162     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
24163     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24164     break 2
24165   fi
24166 done
24167   done
24168 IFS=$as_save_IFS
24169 
24170   ;;
24171 esac
24172 fi
24173 SETFILE=$ac_cv_path_SETFILE
24174 if test -n "$SETFILE"; then
24175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
24176 $as_echo "$SETFILE" >&6; }
24177 else
24178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24179 $as_echo "no" >&6; }
24180 fi
24181 
24182 
24183   test -n "$SETFILE" && break
24184 done
24185 
24186     else
24187       # If it succeeded, then it was overridden by the user. We will use it
24188       # for the tool.
24189 
24190       # First remove it from the list of overridden variables, so we can test
24191       # for unknown variables in the end.
24192       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
24193 
24194       # Check if we try to supply an empty value
24195       if test "x$SETFILE" = x; then
24196         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SETFILE= (no value)" >&5
24197 $as_echo "$as_me: Setting user supplied tool SETFILE= (no value)" >&6;}
24198         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5
24199 $as_echo_n "checking for SETFILE... " >&6; }
24200         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
24201 $as_echo "disabled" >&6; }
24202       else
24203         # Check if the provided tool contains a complete path.
24204         tool_specified="$SETFILE"
24205         tool_basename="${tool_specified##*/}"
24206         if test "x$tool_basename" = "x$tool_specified"; then
24207           # A command without a complete path is provided, search $PATH.
24208           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5
24209 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;}
24210           # Extract the first word of "$tool_basename", so it can be a program name with args.
24211 set dummy $tool_basename; ac_word=$2
24212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24213 $as_echo_n "checking for $ac_word... " >&6; }
24214 if ${ac_cv_path_SETFILE+:} false; then :
24215   $as_echo_n "(cached) " >&6
24216 else
24217   case $SETFILE in
24218   [\\/]* | ?:[\\/]*)
24219   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
24220   ;;
24221   *)
24222   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24223 for as_dir in $PATH
24224 do
24225   IFS=$as_save_IFS
24226   test -z "$as_dir" && as_dir=.
24227     for ac_exec_ext in '' $ac_executable_extensions; do
24228   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24229     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
24230     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24231     break 2
24232   fi
24233 done
24234   done
24235 IFS=$as_save_IFS
24236 
24237   ;;
24238 esac
24239 fi
24240 SETFILE=$ac_cv_path_SETFILE
24241 if test -n "$SETFILE"; then
24242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
24243 $as_echo "$SETFILE" >&6; }
24244 else
24245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24246 $as_echo "no" >&6; }
24247 fi
24248 
24249 
24250           if test "x$SETFILE" = x; then
24251             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
24252           fi
24253         else
24254           # Otherwise we believe it is a complete path. Use it as it is.
24255           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5
24256 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;}
24257           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5
24258 $as_echo_n "checking for SETFILE... " >&6; }
24259           if test ! -x "$tool_specified"; then
24260             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24261 $as_echo "not found" >&6; }
24262             as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5
24263           fi
24264           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
24265 $as_echo "$tool_specified" >&6; }
24266         fi
24267       fi
24268     fi
24269 
24270   fi
24271 
24272 
24273 
24274   if test "x$SETFILE" = x; then
24275     as_fn_error $? "Could not find required tool for SETFILE" "$LINENO" 5
24276   fi
24277 
24278 
24279   fi
24280 
24281 
24282   # Check bash version
24283   # Extra [ ] to stop m4 mangling
24284    BASH_VER=`$BASH --version | $SED -n  -e 's/^.*bash.*ersion *\([0-9.]*\).*$/\1/ p'`
24285   { $as_echo "$as_me:${as_lineno-$LINENO}: checking bash version" >&5
24286 $as_echo_n "checking bash version... " >&6; }
24287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH_VER" >&5
24288 $as_echo "$BASH_VER" >&6; }
24289 
24290   BASH_MAJOR=`$ECHO $BASH_VER | $CUT -d . -f 1`
24291   BASH_MINOR=`$ECHO $BASH_VER | $CUT -d . -f 2`
24292   if test $BASH_MAJOR -lt 3 || (test $BASH_MAJOR -eq 3 && test $BASH_MINOR -lt 2); then
24293     as_fn_error $? "bash version 3.2 or better is required" "$LINENO" 5
24294   fi
24295 
24296   # Test if bash supports pipefail.
24297   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports pipefail" >&5
24298 $as_echo_n "checking if bash supports pipefail... " >&6; }
24299   if ${BASH} -c 'set -o pipefail'; then
24300     BASH_ARGS="$BASH_ARGS -o pipefail"
24301     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24302 $as_echo "yes" >&6; }
24303   else
24304     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24305 $as_echo "no" >&6; }
24306   fi
24307 
24308   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports errexit (-e)" >&5
24309 $as_echo_n "checking if bash supports errexit (-e)... " >&6; }
24310   if ${BASH} -e -c 'true'; then
24311     BASH_ARGS="$BASH_ARGS -e"
24312     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24313 $as_echo "yes" >&6; }
24314   else
24315     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24316 $as_echo "no" >&6; }
24317   fi
24318 
24319 
24320 
24321 
24322 # Check if pkg-config is available.
24323 
24324 
24325 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
24326         if test -n "$ac_tool_prefix"; then
24327   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24328 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24330 $as_echo_n "checking for $ac_word... " >&6; }
24331 if ${ac_cv_path_PKG_CONFIG+:} false; then :
24332   $as_echo_n "(cached) " >&6
24333 else
24334   case $PKG_CONFIG in
24335   [\\/]* | ?:[\\/]*)
24336   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24337   ;;
24338   *)
24339   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24340 for as_dir in $PATH
24341 do
24342   IFS=$as_save_IFS
24343   test -z "$as_dir" && as_dir=.
24344     for ac_exec_ext in '' $ac_executable_extensions; do
24345   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24346     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24347     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24348     break 2
24349   fi
24350 done
24351   done
24352 IFS=$as_save_IFS
24353 
24354   ;;
24355 esac
24356 fi
24357 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24358 if test -n "$PKG_CONFIG"; then
24359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
24360 $as_echo "$PKG_CONFIG" >&6; }
24361 else
24362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24363 $as_echo "no" >&6; }
24364 fi
24365 
24366 
24367 fi
24368 if test -z "$ac_cv_path_PKG_CONFIG"; then
24369   ac_pt_PKG_CONFIG=$PKG_CONFIG
24370   # Extract the first word of "pkg-config", so it can be a program name with args.
24371 set dummy pkg-config; ac_word=$2
24372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24373 $as_echo_n "checking for $ac_word... " >&6; }
24374 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
24375   $as_echo_n "(cached) " >&6
24376 else
24377   case $ac_pt_PKG_CONFIG in
24378   [\\/]* | ?:[\\/]*)
24379   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
24380   ;;
24381   *)
24382   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24383 for as_dir in $PATH
24384 do
24385   IFS=$as_save_IFS
24386   test -z "$as_dir" && as_dir=.
24387     for ac_exec_ext in '' $ac_executable_extensions; do
24388   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24389     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24390     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24391     break 2
24392   fi
24393 done
24394   done
24395 IFS=$as_save_IFS
24396 
24397   ;;
24398 esac
24399 fi
24400 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
24401 if test -n "$ac_pt_PKG_CONFIG"; then
24402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
24403 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
24404 else
24405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24406 $as_echo "no" >&6; }
24407 fi
24408 
24409   if test "x$ac_pt_PKG_CONFIG" = x; then
24410     PKG_CONFIG=""
24411   else
24412     case $cross_compiling:$ac_tool_warned in
24413 yes:)
24414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24415 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24416 ac_tool_warned=yes ;;
24417 esac
24418     PKG_CONFIG=$ac_pt_PKG_CONFIG
24419   fi
24420 else
24421   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
24422 fi
24423 
24424 fi
24425 if test -n "$PKG_CONFIG"; then
24426         _pkg_min_version=0.9.0
24427         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
24428 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
24429         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
24430                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24431 $as_echo "yes" >&6; }
24432         else
24433                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24434 $as_echo "no" >&6; }
24435                 PKG_CONFIG=""
24436         fi
24437 
24438 fi
24439 
24440 # After basic tools have been setup, we can check build os specific details.
24441 
24442   ###############################################################################
24443 
24444   # Note that this is the build platform OS version!
24445 
24446   OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`"
24447   OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`"
24448   OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`"
24449   OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`"
24450 
24451 
24452 
24453 
24454 
24455 # Misc basic settings
24456 
24457 
24458 # Check whether --with-default-make-target was given.
24459 if test "${with_default_make_target+set}" = set; then :
24460   withval=$with_default_make_target;
24461 fi
24462 
24463   if test "x$with_default_make_target" = "x" \
24464       || test "x$with_default_make_target" = "xyes"; then
24465     DEFAULT_MAKE_TARGET="exploded-image"
24466   elif test "x$with_default_make_target" = "xno"; then
24467     as_fn_error $? "--without-default-make-target is not a valid option" "$LINENO" 5
24468   else
24469     DEFAULT_MAKE_TARGET="$with_default_make_target"
24470   fi
24471 
24472 
24473 
24474 
24475 ###############################################################################
24476 #
24477 # Determine OpenJDK variants, options and version numbers.
24478 #
24479 ###############################################################################
24480 
24481 # We need build & target for this.
24482 
24483   # Should we build a JDK without a graphical UI?
24484   { $as_echo "$as_me:${as_lineno-$LINENO}: checking headless only" >&5
24485 $as_echo_n "checking headless only... " >&6; }
24486   # Check whether --enable-headless-only was given.
24487 if test "${enable_headless_only+set}" = set; then :
24488   enableval=$enable_headless_only;
24489 fi
24490 
24491 
24492   if test "x$enable_headless_only" = "xyes"; then
24493     ENABLE_HEADLESS_ONLY="true"
24494     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24495 $as_echo "yes" >&6; }
24496   elif test "x$enable_headless_only" = "xno"; then
24497     ENABLE_HEADLESS_ONLY="false"
24498     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24499 $as_echo "no" >&6; }
24500   elif test "x$enable_headless_only" = "x"; then
24501     ENABLE_HEADLESS_ONLY="false"
24502     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24503 $as_echo "no" >&6; }
24504   else
24505     as_fn_error $? "--enable-headless-only can only take yes or no" "$LINENO" 5
24506   fi
24507 
24508 
24509 
24510   # Choose cacerts source file
24511 
24512 # Check whether --with-cacerts-file was given.
24513 if test "${with_cacerts_file+set}" = set; then :
24514   withval=$with_cacerts_file;
24515 fi
24516 
24517   if test "x$with_cacerts_file" != x; then
24518     CACERTS_FILE=$with_cacerts_file
24519   fi
24520 
24521 
24522   # Enable or disable unlimited crypto
24523   # Check whether --enable-unlimited-crypto was given.
24524 if test "${enable_unlimited_crypto+set}" = set; then :
24525   enableval=$enable_unlimited_crypto;
24526 else
24527   enable_unlimited_crypto=yes
24528 fi
24529 
24530   if test "x$enable_unlimited_crypto" = "xyes"; then
24531     UNLIMITED_CRYPTO=true
24532   else
24533     UNLIMITED_CRYPTO=false
24534   fi
24535 
24536 
24537   # Should we build the serviceability agent (SA)?
24538   INCLUDE_SA=true
24539   if   [[ " $JVM_VARIANTS " =~ " zero " ]]   ||   [[ " $JVM_VARIANTS " =~ " zeroshark " ]]  ; then
24540     INCLUDE_SA=false
24541   fi
24542   if test "x$OPENJDK_TARGET_OS" = xaix ; then
24543     INCLUDE_SA=false
24544   fi
24545 
24546 
24547   # Compress jars
24548   COMPRESS_JARS=false
24549 
24550 
24551 
24552   # Setup default copyright year. Mostly overridden when building close to a new year.
24553 
24554 # Check whether --with-copyright-year was given.
24555 if test "${with_copyright_year+set}" = set; then :
24556   withval=$with_copyright_year;
24557 fi
24558 
24559   if test "x$with_copyright_year" = xyes; then
24560     as_fn_error $? "Copyright year must have a value" "$LINENO" 5
24561   elif test "x$with_copyright_year" != x; then
24562     COPYRIGHT_YEAR="$with_copyright_year"
24563   else
24564     COPYRIGHT_YEAR=`$DATE +'%Y'`
24565   fi
24566 
24567 
24568 
24569   # Check whether --enable-keep-packaged-modules was given.
24570 if test "${enable_keep_packaged_modules+set}" = set; then :
24571   enableval=$enable_keep_packaged_modules;
24572 fi
24573 
24574 
24575   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if packaged modules are kept" >&5
24576 $as_echo_n "checking if packaged modules are kept... " >&6; }
24577   if test "x$enable_keep_packaged_modules" = "xyes"; then
24578     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24579 $as_echo "yes" >&6; }
24580     JLINK_KEEP_PACKAGED_MODULES=true
24581   elif test "x$enable_keep_packaged_modules" = "xno"; then
24582     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24583 $as_echo "no" >&6; }
24584     JLINK_KEEP_PACKAGED_MODULES=false
24585   elif test "x$enable_keep_packaged_modules" = "x"; then
24586     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5
24587 $as_echo "yes (default)" >&6; }
24588     JLINK_KEEP_PACKAGED_MODULES=true
24589   else
24590     { $as_echo "$as_me:${as_lineno-$LINENO}: result: error" >&5
24591 $as_echo "error" >&6; }
24592     as_fn_error $? "--enable-keep-packaged-modules accepts no argument" "$LINENO" 5
24593   fi
24594 
24595 
24596 
24597 
24598   # Warn user that old version arguments are deprecated.
24599 
24600 
24601 # Check whether --with-milestone was given.
24602 if test "${with_milestone+set}" = set; then :
24603   withval=$with_milestone; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-milestone is deprecated and will be ignored." >&5
24604 $as_echo "$as_me: WARNING: Option --with-milestone is deprecated and will be ignored." >&2;}
24605 fi
24606 
24607 
24608 
24609 
24610 # Check whether --with-update-version was given.
24611 if test "${with_update_version+set}" = set; then :
24612   withval=$with_update_version; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-update-version is deprecated and will be ignored." >&5
24613 $as_echo "$as_me: WARNING: Option --with-update-version is deprecated and will be ignored." >&2;}
24614 fi
24615 
24616 
24617 
24618 
24619 # Check whether --with-user-release-suffix was given.
24620 if test "${with_user_release_suffix+set}" = set; then :
24621   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
24622 $as_echo "$as_me: WARNING: Option --with-user-release-suffix is deprecated and will be ignored." >&2;}
24623 fi
24624 
24625 
24626 
24627 
24628 # Check whether --with-build-number was given.
24629 if test "${with_build_number+set}" = set; then :
24630   withval=$with_build_number; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-build-number is deprecated and will be ignored." >&5
24631 $as_echo "$as_me: WARNING: Option --with-build-number is deprecated and will be ignored." >&2;}
24632 fi
24633 
24634 
24635 
24636   # Source the version numbers file
24637   . $AUTOCONF_DIR/version-numbers
24638 
24639   # Some non-version number information is set in that file
24640 
24641 
24642 
24643 
24644 
24645 
24646 
24647 
24648 
24649   # Override version from arguments
24650 
24651   # If --with-version-string is set, process it first. It is possible to
24652   # override parts with more specific flags, since these are processed later.
24653 
24654 # Check whether --with-version-string was given.
24655 if test "${with_version_string+set}" = set; then :
24656   withval=$with_version_string;
24657 fi
24658 
24659   if test "x$with_version_string" = xyes; then
24660     as_fn_error $? "--with-version-string must have a value" "$LINENO" 5
24661   elif test "x$with_version_string" != x; then
24662     # Additional [] needed to keep m4 from mangling shell constructs.
24663     if  [[ $with_version_string =~ ^([0-9]+)(\.([0-9]+))?(\.([0-9]+))?(\.([0-9]+))?(-([a-zA-Z]+))?((\+)([0-9]+)?(-([-a-zA-Z0-9.]+))?)?$ ]] ; then
24664       VERSION_MAJOR=${BASH_REMATCH[1]}
24665       VERSION_MINOR=${BASH_REMATCH[3]}
24666       VERSION_SECURITY=${BASH_REMATCH[5]}
24667       VERSION_PATCH=${BASH_REMATCH[7]}
24668       VERSION_PRE=${BASH_REMATCH[9]}
24669       version_plus_separator=${BASH_REMATCH[11]}
24670       VERSION_BUILD=${BASH_REMATCH[12]}
24671       VERSION_OPT=${BASH_REMATCH[14]}
24672       # Unspecified numerical fields are interpreted as 0.
24673       if test "x$VERSION_MINOR" = x; then
24674         VERSION_MINOR=0
24675       fi
24676       if test "x$VERSION_SECURITY" = x; then
24677         VERSION_SECURITY=0
24678       fi
24679       if test "x$VERSION_PATCH" = x; then
24680         VERSION_PATCH=0
24681       fi
24682       if test "x$version_plus_separator" != x \
24683           && test "x$VERSION_BUILD$VERSION_OPT" = x; then
24684         as_fn_error $? "Version string contains + but both 'BUILD' and 'OPT' are missing" "$LINENO" 5
24685       fi
24686       # Stop the version part process from setting default values.
24687       # We still allow them to explicitly override though.
24688       NO_DEFAULT_VERSION_PARTS=true
24689     else
24690       as_fn_error $? "--with-version-string fails to parse as a valid version string: $with_version_string" "$LINENO" 5
24691     fi
24692   fi
24693 
24694 
24695 # Check whether --with-version-pre was given.
24696 if test "${with_version_pre+set}" = set; then :
24697   withval=$with_version_pre; with_version_pre_present=true
24698 else
24699   with_version_pre_present=false
24700 fi
24701 
24702 
24703   if test "x$with_version_pre_present" = xtrue; then
24704     if test "x$with_version_pre" = xyes; then
24705       as_fn_error $? "--with-version-pre must have a value" "$LINENO" 5
24706     elif test "x$with_version_pre" = xno; then
24707       # Interpret --without-* as empty string instead of the literal "no"
24708       VERSION_PRE=
24709     else
24710       # Only [a-zA-Z] is allowed in the VERSION_PRE. Outer [ ] to quote m4.
24711        VERSION_PRE=`$ECHO "$with_version_pre" | $TR -c -d '[a-z][A-Z]'`
24712       if test "x$VERSION_PRE" != "x$with_version_pre"; then
24713         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-version-pre value has been sanitized from '$with_version_pre' to '$VERSION_PRE'" >&5
24714 $as_echo "$as_me: WARNING: --with-version-pre value has been sanitized from '$with_version_pre' to '$VERSION_PRE'" >&2;}
24715       fi
24716     fi
24717   else
24718     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
24719       # Default is to use "internal" as pre
24720       VERSION_PRE="internal"
24721     fi
24722   fi
24723 
24724 
24725 # Check whether --with-version-opt was given.
24726 if test "${with_version_opt+set}" = set; then :
24727   withval=$with_version_opt; with_version_opt_present=true
24728 else
24729   with_version_opt_present=false
24730 fi
24731 
24732 
24733   if test "x$with_version_opt_present" = xtrue; then
24734     if test "x$with_version_opt" = xyes; then
24735       as_fn_error $? "--with-version-opt must have a value" "$LINENO" 5
24736     elif test "x$with_version_opt" = xno; then
24737       # Interpret --without-* as empty string instead of the literal "no"
24738       VERSION_OPT=
24739     else
24740       # Only [-.a-zA-Z0-9] is allowed in the VERSION_OPT. Outer [ ] to quote m4.
24741        VERSION_OPT=`$ECHO "$with_version_opt" | $TR -c -d '[a-z][A-Z][0-9].-'`
24742       if test "x$VERSION_OPT" != "x$with_version_opt"; then
24743         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-version-opt value has been sanitized from '$with_version_opt' to '$VERSION_OPT'" >&5
24744 $as_echo "$as_me: WARNING: --with-version-opt value has been sanitized from '$with_version_opt' to '$VERSION_OPT'" >&2;}
24745       fi
24746     fi
24747   else
24748     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
24749       # Default is to calculate a string like this 'adhoc.<username>.<base dir name>'
24750       # Outer [ ] to quote m4.
24751        basedirname=`$BASENAME "$TOPDIR" | $TR -d -c '[a-z][A-Z][0-9].-'`
24752       VERSION_OPT="adhoc.$USERNAME.$basedirname"
24753     fi
24754   fi
24755 
24756 
24757 # Check whether --with-version-build was given.
24758 if test "${with_version_build+set}" = set; then :
24759   withval=$with_version_build; with_version_build_present=true
24760 else
24761   with_version_build_present=false
24762 fi
24763 
24764 
24765   if test "x$with_version_build_present" = xtrue; then
24766     if test "x$with_version_build" = xyes; then
24767       as_fn_error $? "--with-version-build must have a value" "$LINENO" 5
24768     elif test "x$with_version_build" = xno; then
24769       # Interpret --without-* as empty string instead of the literal "no"
24770       VERSION_BUILD=
24771     elif test "x$with_version_build" = x; then
24772       VERSION_BUILD=
24773     else
24774 
24775   # Additional [] needed to keep m4 from mangling shell constructs.
24776   if  ! [[ "$with_version_build" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
24777     as_fn_error $? "\"$with_version_build\" is not a valid numerical value for VERSION_BUILD" "$LINENO" 5
24778   fi
24779   # Extract the version number without leading zeros.
24780   cleaned_value=${BASH_REMATCH[1]}
24781   if test "x$cleaned_value" = x; then
24782     # Special case for zero
24783     cleaned_value=${BASH_REMATCH[2]}
24784   fi
24785 
24786   if test $cleaned_value -gt 255; then
24787     as_fn_error $? "VERSION_BUILD is given as $with_version_build. This is greater than 255 which is not allowed." "$LINENO" 5
24788   fi
24789   if test "x$cleaned_value" != "x$with_version_build"; then
24790     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_BUILD has been sanitized from '$with_version_build' to '$cleaned_value'" >&5
24791 $as_echo "$as_me: WARNING: Value for VERSION_BUILD has been sanitized from '$with_version_build' to '$cleaned_value'" >&2;}
24792   fi
24793   VERSION_BUILD=$cleaned_value
24794 
24795     fi
24796   else
24797     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
24798       # Default is to not have a build number.
24799       VERSION_BUILD=""
24800       # FIXME: Until all code can cope with an empty VERSION_BUILD, set it to 0.
24801       VERSION_BUILD=0
24802     fi
24803   fi
24804 
24805 
24806 # Check whether --with-version-major was given.
24807 if test "${with_version_major+set}" = set; then :
24808   withval=$with_version_major; with_version_major_present=true
24809 else
24810   with_version_major_present=false
24811 fi
24812 
24813 
24814   if test "x$with_version_major_present" = xtrue; then
24815     if test "x$with_version_major" = xyes; then
24816       as_fn_error $? "--with-version-major must have a value" "$LINENO" 5
24817     else
24818 
24819   # Additional [] needed to keep m4 from mangling shell constructs.
24820   if  ! [[ "$with_version_major" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
24821     as_fn_error $? "\"$with_version_major\" is not a valid numerical value for VERSION_MAJOR" "$LINENO" 5
24822   fi
24823   # Extract the version number without leading zeros.
24824   cleaned_value=${BASH_REMATCH[1]}
24825   if test "x$cleaned_value" = x; then
24826     # Special case for zero
24827     cleaned_value=${BASH_REMATCH[2]}
24828   fi
24829 
24830   if test $cleaned_value -gt 255; then
24831     as_fn_error $? "VERSION_MAJOR is given as $with_version_major. This is greater than 255 which is not allowed." "$LINENO" 5
24832   fi
24833   if test "x$cleaned_value" != "x$with_version_major"; then
24834     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_MAJOR has been sanitized from '$with_version_major' to '$cleaned_value'" >&5
24835 $as_echo "$as_me: WARNING: Value for VERSION_MAJOR has been sanitized from '$with_version_major' to '$cleaned_value'" >&2;}
24836   fi
24837   VERSION_MAJOR=$cleaned_value
24838 
24839     fi
24840   else
24841     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
24842       # Default is to get value from version-numbers
24843       VERSION_MAJOR="$DEFAULT_VERSION_MAJOR"
24844     fi
24845   fi
24846 
24847 
24848 # Check whether --with-version-minor was given.
24849 if test "${with_version_minor+set}" = set; then :
24850   withval=$with_version_minor; with_version_minor_present=true
24851 else
24852   with_version_minor_present=false
24853 fi
24854 
24855 
24856   if test "x$with_version_minor_present" = xtrue; then
24857     if test "x$with_version_minor" = xyes; then
24858       as_fn_error $? "--with-version-minor must have a value" "$LINENO" 5
24859     elif test "x$with_version_minor" = xno; then
24860       # Interpret --without-* as empty string (i.e. 0) instead of the literal "no"
24861       VERSION_MINOR=0
24862     elif test "x$with_version_minor" = x; then
24863       VERSION_MINOR=0
24864     else
24865 
24866   # Additional [] needed to keep m4 from mangling shell constructs.
24867   if  ! [[ "$with_version_minor" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
24868     as_fn_error $? "\"$with_version_minor\" is not a valid numerical value for VERSION_MINOR" "$LINENO" 5
24869   fi
24870   # Extract the version number without leading zeros.
24871   cleaned_value=${BASH_REMATCH[1]}
24872   if test "x$cleaned_value" = x; then
24873     # Special case for zero
24874     cleaned_value=${BASH_REMATCH[2]}
24875   fi
24876 
24877   if test $cleaned_value -gt 255; then
24878     as_fn_error $? "VERSION_MINOR is given as $with_version_minor. This is greater than 255 which is not allowed." "$LINENO" 5
24879   fi
24880   if test "x$cleaned_value" != "x$with_version_minor"; then
24881     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_MINOR has been sanitized from '$with_version_minor' to '$cleaned_value'" >&5
24882 $as_echo "$as_me: WARNING: Value for VERSION_MINOR has been sanitized from '$with_version_minor' to '$cleaned_value'" >&2;}
24883   fi
24884   VERSION_MINOR=$cleaned_value
24885 
24886     fi
24887   else
24888     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
24889       # Default is 0, if unspecified
24890       VERSION_MINOR=$DEFAULT_VERSION_MINOR
24891     fi
24892   fi
24893 
24894 
24895 # Check whether --with-version-security was given.
24896 if test "${with_version_security+set}" = set; then :
24897   withval=$with_version_security; with_version_security_present=true
24898 else
24899   with_version_security_present=false
24900 fi
24901 
24902 
24903   if test "x$with_version_security_present" = xtrue; then
24904     if test "x$with_version_security" = xyes; then
24905       as_fn_error $? "--with-version-security must have a value" "$LINENO" 5
24906     elif test "x$with_version_security" = xno; then
24907       # Interpret --without-* as empty string (i.e. 0) instead of the literal "no"
24908       VERSION_SECURITY=0
24909     elif test "x$with_version_security" = x; then
24910       VERSION_SECURITY=0
24911     else
24912 
24913   # Additional [] needed to keep m4 from mangling shell constructs.
24914   if  ! [[ "$with_version_security" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
24915     as_fn_error $? "\"$with_version_security\" is not a valid numerical value for VERSION_SECURITY" "$LINENO" 5
24916   fi
24917   # Extract the version number without leading zeros.
24918   cleaned_value=${BASH_REMATCH[1]}
24919   if test "x$cleaned_value" = x; then
24920     # Special case for zero
24921     cleaned_value=${BASH_REMATCH[2]}
24922   fi
24923 
24924   if test $cleaned_value -gt 255; then
24925     as_fn_error $? "VERSION_SECURITY is given as $with_version_security. This is greater than 255 which is not allowed." "$LINENO" 5
24926   fi
24927   if test "x$cleaned_value" != "x$with_version_security"; then
24928     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_SECURITY has been sanitized from '$with_version_security' to '$cleaned_value'" >&5
24929 $as_echo "$as_me: WARNING: Value for VERSION_SECURITY has been sanitized from '$with_version_security' to '$cleaned_value'" >&2;}
24930   fi
24931   VERSION_SECURITY=$cleaned_value
24932 
24933     fi
24934   else
24935     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
24936       # Default is 0, if unspecified
24937       VERSION_SECURITY=$DEFAULT_VERSION_SECURITY
24938     fi
24939   fi
24940 
24941 
24942 # Check whether --with-version-patch was given.
24943 if test "${with_version_patch+set}" = set; then :
24944   withval=$with_version_patch; with_version_patch_present=true
24945 else
24946   with_version_patch_present=false
24947 fi
24948 
24949 
24950   if test "x$with_version_patch_present" = xtrue; then
24951     if test "x$with_version_patch" = xyes; then
24952       as_fn_error $? "--with-version-patch must have a value" "$LINENO" 5
24953     elif test "x$with_version_patch" = xno; then
24954       # Interpret --without-* as empty string (i.e. 0) instead of the literal "no"
24955       VERSION_PATCH=0
24956     elif test "x$with_version_patch" = x; then
24957       VERSION_PATCH=0
24958     else
24959 
24960   # Additional [] needed to keep m4 from mangling shell constructs.
24961   if  ! [[ "$with_version_patch" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
24962     as_fn_error $? "\"$with_version_patch\" is not a valid numerical value for VERSION_PATCH" "$LINENO" 5
24963   fi
24964   # Extract the version number without leading zeros.
24965   cleaned_value=${BASH_REMATCH[1]}
24966   if test "x$cleaned_value" = x; then
24967     # Special case for zero
24968     cleaned_value=${BASH_REMATCH[2]}
24969   fi
24970 
24971   if test $cleaned_value -gt 255; then
24972     as_fn_error $? "VERSION_PATCH is given as $with_version_patch. This is greater than 255 which is not allowed." "$LINENO" 5
24973   fi
24974   if test "x$cleaned_value" != "x$with_version_patch"; then
24975     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_PATCH has been sanitized from '$with_version_patch' to '$cleaned_value'" >&5
24976 $as_echo "$as_me: WARNING: Value for VERSION_PATCH has been sanitized from '$with_version_patch' to '$cleaned_value'" >&2;}
24977   fi
24978   VERSION_PATCH=$cleaned_value
24979 
24980     fi
24981   else
24982     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
24983       # Default is 0, if unspecified
24984       VERSION_PATCH=$DEFAULT_VERSION_PATCH
24985     fi
24986   fi
24987 
24988   # Calculate derived version properties
24989 
24990   # Set VERSION_IS_GA based on if VERSION_PRE has a value
24991   if test "x$VERSION_PRE" = x; then
24992     VERSION_IS_GA=true
24993   else
24994     VERSION_IS_GA=false
24995   fi
24996 
24997   # VERSION_NUMBER but always with exactly 4 positions, with 0 for empty positions.
24998   VERSION_NUMBER_FOUR_POSITIONS=$VERSION_MAJOR.$VERSION_MINOR.$VERSION_SECURITY.$VERSION_PATCH
24999 
25000   stripped_version_number=$VERSION_NUMBER_FOUR_POSITIONS
25001   # Strip trailing zeroes from stripped_version_number
25002   for i in 1 2 3 ; do stripped_version_number=${stripped_version_number%.0} ; done
25003   VERSION_NUMBER=$stripped_version_number
25004 
25005   # The complete version string, with additional build information
25006   if test "x$VERSION_BUILD$VERSION_OPT" = x; then
25007     VERSION_STRING=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE}
25008   else
25009     # If either build or opt is set, we need a + separator
25010     VERSION_STRING=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE}+$VERSION_BUILD${VERSION_OPT:+-$VERSION_OPT}
25011   fi
25012 
25013   # The short version string, just VERSION_NUMBER and PRE, if present.
25014   VERSION_SHORT=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE}
25015 
25016   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version string" >&5
25017 $as_echo_n "checking for version string... " >&6; }
25018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VERSION_STRING" >&5
25019 $as_echo "$VERSION_STRING" >&6; }
25020 
25021 
25022 
25023 
25024 
25025 
25026 
25027 
25028 
25029 
25030 
25031 
25032 
25033 
25034 
25035 ###############################################################################
25036 #
25037 # Setup BootJDK, used to bootstrap the build.
25038 #
25039 ###############################################################################
25040 
25041 
25042   BOOT_JDK_FOUND=no
25043 
25044 # Check whether --with-boot-jdk was given.
25045 if test "${with_boot_jdk+set}" = set; then :
25046   withval=$with_boot_jdk;
25047 fi
25048 
25049 
25050   # We look for the Boot JDK through various means, going from more certain to
25051   # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if
25052   # we detected something (if so, the path to the jdk is in BOOT_JDK). But we
25053   # must check if this is indeed valid; otherwise we'll continue looking.
25054 
25055   # Test: Is bootjdk explicitly set by command line arguments?
25056 
25057   if test "x$BOOT_JDK_FOUND" = xno; then
25058     # Now execute the test
25059 
25060   if test "x$with_boot_jdk" != x; then
25061     BOOT_JDK=$with_boot_jdk
25062     BOOT_JDK_FOUND=maybe
25063     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5
25064 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;}
25065   fi
25066 
25067 
25068     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
25069     if test "x$BOOT_JDK_FOUND" = xmaybe; then
25070       # Do we have a bin/java?
25071       if test ! -x "$BOOT_JDK/bin/java"; then
25072         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
25073 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
25074         BOOT_JDK_FOUND=no
25075       else
25076         # Do we have a bin/javac?
25077         if test ! -x "$BOOT_JDK/bin/javac"; then
25078           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
25079 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
25080           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
25081 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
25082           BOOT_JDK_FOUND=no
25083         else
25084           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
25085           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1`
25086 
25087           # Extra M4 quote needed to protect [] in grep expression.
25088           FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'`
25089           if test "x$FOUND_CORRECT_VERSION" = x; then
25090             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
25091 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
25092             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
25093 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
25094             BOOT_JDK_FOUND=no
25095           else
25096             # We're done! :-)
25097             BOOT_JDK_FOUND=yes
25098 
25099   # Only process if variable expands to non-empty
25100 
25101   if test "x$BOOT_JDK" != x; then
25102     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
25103 
25104   # Input might be given as Windows format, start by converting to
25105   # unix format.
25106   path="$BOOT_JDK"
25107   new_path=`$CYGPATH -u "$path"`
25108 
25109   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
25110   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
25111   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
25112   # "foo.exe" is OK but "foo" is an error.
25113   #
25114   # This test is therefore slightly more accurate than "test -f" to check for file precense.
25115   # It is also a way to make sure we got the proper file name for the real test later on.
25116   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
25117   if test "x$test_shortpath" = x; then
25118     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
25119 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
25120     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
25121   fi
25122 
25123   # Call helper function which possibly converts this using DOS-style short mode.
25124   # If so, the updated path is stored in $new_path.
25125 
25126   input_path="$new_path"
25127   # Check if we need to convert this using DOS-style short mode. If the path
25128   # contains just simple characters, use it. Otherwise (spaces, weird characters),
25129   # take no chances and rewrite it.
25130   # Note: m4 eats our [], so we need to use [ and ] instead.
25131   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
25132   if test "x$has_forbidden_chars" != x; then
25133     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
25134     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
25135     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
25136     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
25137       # Going to short mode and back again did indeed matter. Since short mode is
25138       # case insensitive, let's make it lowercase to improve readability.
25139       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
25140       # Now convert it back to Unix-style (cygpath)
25141       input_path=`$CYGPATH -u "$shortmode_path"`
25142       new_path="$input_path"
25143     fi
25144   fi
25145 
25146   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
25147   if test "x$test_cygdrive_prefix" = x; then
25148     # As a simple fix, exclude /usr/bin since it's not a real path.
25149     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
25150       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
25151       # a path prefixed by /cygdrive for fixpath to work.
25152       new_path="$CYGWIN_ROOT_PATH$input_path"
25153     fi
25154   fi
25155 
25156 
25157   if test "x$path" != "x$new_path"; then
25158     BOOT_JDK="$new_path"
25159     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
25160 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
25161   fi
25162 
25163     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
25164 
25165   path="$BOOT_JDK"
25166   has_colon=`$ECHO $path | $GREP ^.:`
25167   new_path="$path"
25168   if test "x$has_colon" = x; then
25169     # Not in mixed or Windows style, start by that.
25170     new_path=`cmd //c echo $path`
25171   fi
25172 
25173 
25174   input_path="$new_path"
25175   # Check if we need to convert this using DOS-style short mode. If the path
25176   # contains just simple characters, use it. Otherwise (spaces, weird characters),
25177   # take no chances and rewrite it.
25178   # Note: m4 eats our [], so we need to use [ and ] instead.
25179   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
25180   if test "x$has_forbidden_chars" != x; then
25181     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
25182     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
25183   fi
25184 
25185 
25186   windows_path="$new_path"
25187   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
25188     unix_path=`$CYGPATH -u "$windows_path"`
25189     new_path="$unix_path"
25190   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
25191     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
25192     new_path="$unix_path"
25193   fi
25194 
25195   if test "x$path" != "x$new_path"; then
25196     BOOT_JDK="$new_path"
25197     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
25198 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
25199   fi
25200 
25201   # Save the first 10 bytes of this path to the storage, so fixpath can work.
25202   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
25203 
25204     else
25205       # We're on a unix platform. Hooray! :)
25206       path="$BOOT_JDK"
25207       has_space=`$ECHO "$path" | $GREP " "`
25208       if test "x$has_space" != x; then
25209         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
25210 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
25211         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
25212       fi
25213 
25214       # Use eval to expand a potential ~
25215       eval path="$path"
25216       if test ! -f "$path" && test ! -d "$path"; then
25217         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
25218       fi
25219 
25220       if test -d "$path"; then
25221         BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
25222       else
25223         dir="`$DIRNAME "$path"`"
25224         base="`$BASENAME "$path"`"
25225         BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base"
25226       fi
25227     fi
25228   fi
25229 
25230             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
25231 $as_echo_n "checking for Boot JDK... " >&6; }
25232             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
25233 $as_echo "$BOOT_JDK" >&6; }
25234             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
25235 $as_echo_n "checking Boot JDK version... " >&6; }
25236             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
25237             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
25238 $as_echo "$BOOT_JDK_VERSION" >&6; }
25239           fi # end check jdk version
25240         fi # end check javac
25241       fi # end check java
25242     fi # end check boot jdk found
25243   fi
25244 
25245   if test "x$with_boot_jdk" != x && test "x$BOOT_JDK_FOUND" = xno; then
25246     # Having specified an argument which is incorrect will produce an instant failure;
25247     # we should not go on looking
25248     as_fn_error $? "The path given by --with-boot-jdk does not contain a valid Boot JDK" "$LINENO" 5
25249   fi
25250 
25251   # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home?
25252 
25253   if test "x$BOOT_JDK_FOUND" = xno; then
25254     # Now execute the test
25255 
25256   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
25257     # First check at user selected default
25258 
25259   if test "x$BOOT_JDK_FOUND" = xno; then
25260     # Now execute the test
25261 
25262   if test -x /usr/libexec/java_home; then
25263     BOOT_JDK=`/usr/libexec/java_home `
25264     BOOT_JDK_FOUND=maybe
25265     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home " >&5
25266 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home " >&6;}
25267   fi
25268 
25269 
25270     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
25271     if test "x$BOOT_JDK_FOUND" = xmaybe; then
25272       # Do we have a bin/java?
25273       if test ! -x "$BOOT_JDK/bin/java"; then
25274         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
25275 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
25276         BOOT_JDK_FOUND=no
25277       else
25278         # Do we have a bin/javac?
25279         if test ! -x "$BOOT_JDK/bin/javac"; then
25280           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
25281 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
25282           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
25283 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
25284           BOOT_JDK_FOUND=no
25285         else
25286           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
25287           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1`
25288 
25289           # Extra M4 quote needed to protect [] in grep expression.
25290           FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'`
25291           if test "x$FOUND_CORRECT_VERSION" = x; then
25292             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
25293 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
25294             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
25295 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
25296             BOOT_JDK_FOUND=no
25297           else
25298             # We're done! :-)
25299             BOOT_JDK_FOUND=yes
25300 
25301   # Only process if variable expands to non-empty
25302 
25303   if test "x$BOOT_JDK" != x; then
25304     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
25305 
25306   # Input might be given as Windows format, start by converting to
25307   # unix format.
25308   path="$BOOT_JDK"
25309   new_path=`$CYGPATH -u "$path"`
25310 
25311   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
25312   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
25313   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
25314   # "foo.exe" is OK but "foo" is an error.
25315   #
25316   # This test is therefore slightly more accurate than "test -f" to check for file precense.
25317   # It is also a way to make sure we got the proper file name for the real test later on.
25318   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
25319   if test "x$test_shortpath" = x; then
25320     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
25321 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
25322     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
25323   fi
25324 
25325   # Call helper function which possibly converts this using DOS-style short mode.
25326   # If so, the updated path is stored in $new_path.
25327 
25328   input_path="$new_path"
25329   # Check if we need to convert this using DOS-style short mode. If the path
25330   # contains just simple characters, use it. Otherwise (spaces, weird characters),
25331   # take no chances and rewrite it.
25332   # Note: m4 eats our [], so we need to use [ and ] instead.
25333   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
25334   if test "x$has_forbidden_chars" != x; then
25335     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
25336     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
25337     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
25338     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
25339       # Going to short mode and back again did indeed matter. Since short mode is
25340       # case insensitive, let's make it lowercase to improve readability.
25341       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
25342       # Now convert it back to Unix-style (cygpath)
25343       input_path=`$CYGPATH -u "$shortmode_path"`
25344       new_path="$input_path"
25345     fi
25346   fi
25347 
25348   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
25349   if test "x$test_cygdrive_prefix" = x; then
25350     # As a simple fix, exclude /usr/bin since it's not a real path.
25351     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
25352       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
25353       # a path prefixed by /cygdrive for fixpath to work.
25354       new_path="$CYGWIN_ROOT_PATH$input_path"
25355     fi
25356   fi
25357 
25358 
25359   if test "x$path" != "x$new_path"; then
25360     BOOT_JDK="$new_path"
25361     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
25362 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
25363   fi
25364 
25365     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
25366 
25367   path="$BOOT_JDK"
25368   has_colon=`$ECHO $path | $GREP ^.:`
25369   new_path="$path"
25370   if test "x$has_colon" = x; then
25371     # Not in mixed or Windows style, start by that.
25372     new_path=`cmd //c echo $path`
25373   fi
25374 
25375 
25376   input_path="$new_path"
25377   # Check if we need to convert this using DOS-style short mode. If the path
25378   # contains just simple characters, use it. Otherwise (spaces, weird characters),
25379   # take no chances and rewrite it.
25380   # Note: m4 eats our [], so we need to use [ and ] instead.
25381   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
25382   if test "x$has_forbidden_chars" != x; then
25383     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
25384     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
25385   fi
25386 
25387 
25388   windows_path="$new_path"
25389   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
25390     unix_path=`$CYGPATH -u "$windows_path"`
25391     new_path="$unix_path"
25392   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
25393     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
25394     new_path="$unix_path"
25395   fi
25396 
25397   if test "x$path" != "x$new_path"; then
25398     BOOT_JDK="$new_path"
25399     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
25400 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
25401   fi
25402 
25403   # Save the first 10 bytes of this path to the storage, so fixpath can work.
25404   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
25405 
25406     else
25407       # We're on a unix platform. Hooray! :)
25408       path="$BOOT_JDK"
25409       has_space=`$ECHO "$path" | $GREP " "`
25410       if test "x$has_space" != x; then
25411         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
254