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_zero
 660 JVM_FEATURES_minimal
 661 JVM_FEATURES_core
 662 JVM_FEATURES_client
 663 JVM_FEATURES_server
 664 INCLUDE_GRAAL
 665 STLPORT_LIB
 666 LIBZIP_CAN_USE_MMAP
 667 LIBDL
 668 LIBM
 669 USE_EXTERNAL_LCMS
 670 LCMS_LIBS
 671 LCMS_CFLAGS
 672 USE_EXTERNAL_LIBZ
 673 USE_EXTERNAL_LIBPNG
 674 PNG_LIBS
 675 PNG_CFLAGS
 676 USE_EXTERNAL_LIBGIF
 677 USE_EXTERNAL_LIBJPEG
 678 LIBFFI_LIB_FILE
 679 ENABLE_LIBFFI_BUNDLING
 680 LIBFFI_LIBS
 681 LIBFFI_CFLAGS
 682 ALSA_LIBS
 683 ALSA_CFLAGS
 684 FREETYPE_LICENSE
 685 FREETYPE_BUNDLE_LIB_PATH
 686 FREETYPE_LIBS
 687 FREETYPE_CFLAGS
 688 FONTCONFIG_CFLAGS
 689 CUPS_CFLAGS
 690 X_EXTRA_LIBS
 691 X_LIBS
 692 X_PRE_LIBS
 693 X_CFLAGS
 694 XMKMF
 695 MSVCP_DLL
 696 MSVCR_DLL
 697 LIBCXX
 698 FIXPATH_DETACH_FLAG
 699 FIXPATH
 700 BUILD_GTEST
 701 ENABLE_CDS
 702 ENABLE_AOT
 703 ASAN_ENABLED
 704 GCOV_ENABLED
 705 ZIP_EXTERNAL_DEBUG_SYMBOLS
 706 COPY_DEBUG_SYMBOLS
 707 COMPILE_WITH_DEBUG_SYMBOLS
 708 CFLAGS_WARNINGS_ARE_ERRORS
 709 BUILD_CC_DISABLE_WARNING_PREFIX
 710 DISABLE_WARNING_PREFIX
 711 WARNINGS_AS_ERRORS
 712 COMPILER_SUPPORTS_TARGET_BITS_FLAG
 713 LDFLAGS_TESTEXE
 714 LDFLAGS_TESTLIB
 715 CXXFLAGS_TESTEXE
 716 CXXFLAGS_TESTLIB
 717 CFLAGS_TESTEXE
 718 CFLAGS_TESTLIB
 719 OPENJDK_BUILD_JVM_LIBS
 720 OPENJDK_BUILD_JVM_ASFLAGS
 721 OPENJDK_BUILD_JVM_LDFLAGS
 722 OPENJDK_BUILD_JVM_CFLAGS
 723 OPENJDK_BUILD_LDFLAGS_NO_EXEC_STACK
 724 OPENJDK_BUILD_LDFLAGS_HASH_STYLE
 725 OPENJDK_BUILD_LDFLAGS_CXX_JDK
 726 OPENJDK_BUILD_JDKEXE_LIBS
 727 OPENJDK_BUILD_JDKLIB_LIBS
 728 OPENJDK_BUILD_LDFLAGS_JDKEXE
 729 OPENJDK_BUILD_LDFLAGS_JDKLIB
 730 OPENJDK_BUILD_CXXFLAGS_JDKEXE
 731 OPENJDK_BUILD_CXXFLAGS_JDKLIB
 732 OPENJDK_BUILD_CFLAGS_JDKEXE
 733 OPENJDK_BUILD_CFLAGS_JDKLIB
 734 OPENJDK_BUILD_CXXSTD_CXXFLAG
 735 JVM_LIBS
 736 JVM_ASFLAGS
 737 JVM_LDFLAGS
 738 JVM_CFLAGS
 739 LDFLAGS_NO_EXEC_STACK
 740 LDFLAGS_HASH_STYLE
 741 LDFLAGS_CXX_JDK
 742 JDKEXE_LIBS
 743 JDKLIB_LIBS
 744 LDFLAGS_JDKEXE
 745 LDFLAGS_JDKLIB
 746 CXXFLAGS_JDKEXE
 747 CXXFLAGS_JDKLIB
 748 CFLAGS_JDKEXE
 749 CFLAGS_JDKLIB
 750 MACOSX_VERSION_MAX
 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 JIB_JAR
 792 JT_HOME
 793 JTREGEXE
 794 HOTSPOT_TOOLCHAIN_TYPE
 795 USING_BROKEN_SUSE_LD
 796 PACKAGE_PATH
 797 BUILD_AS
 798 BUILD_LDCXX
 799 BUILD_LD
 800 BUILD_STRIP
 801 BUILD_OBJCOPY
 802 BUILD_AR
 803 BUILD_NM
 804 BUILD_CXX
 805 BUILD_CC
 806 BUILD_SYSROOT_LDFLAGS
 807 BUILD_SYSROOT_CFLAGS
 808 ac_ct_OBJDUMP
 809 OBJDUMP
 810 ac_ct_OBJCOPY
 811 OBJCOPY
 812 ac_ct_NM
 813 ac_ct_STRIP
 814 GNM
 815 NM
 816 STRIP
 817 MSBUILD
 818 DUMPBIN
 819 RC
 820 MT
 821 INSTALL_NAME_TOOL
 822 OTOOL
 823 LIPO
 824 ac_ct_AR
 825 AR
 826 AS
 827 LDCXX
 828 LD
 829 CXXCPP
 830 CPP
 831 CXX_VERSION_NUMBER
 832 CC_VERSION_NUMBER
 833 ac_ct_CXX
 834 CXXFLAGS
 835 CXX
 836 TOOLCHAIN_PATH_CXX
 837 POTENTIAL_CXX
 838 OBJEXT
 839 EXEEXT
 840 ac_ct_CC
 841 CPPFLAGS
 842 LDFLAGS
 843 CFLAGS
 844 CC
 845 TOOLCHAIN_PATH_CC
 846 POTENTIAL_CC
 847 TOOLCHAIN_VERSION
 848 VS_LIB
 849 VS_INCLUDE
 850 VS_PATH
 851 CYGWIN_LINK
 852 SYSROOT_LDFLAGS
 853 SYSROOT_CFLAGS
 854 EXTRA_LDFLAGS
 855 EXTRA_CXXFLAGS
 856 EXTRA_CFLAGS
 857 EXE_SUFFIX
 858 OBJ_SUFFIX
 859 STATIC_LIBRARY
 860 SHARED_LIBRARY
 861 STATIC_LIBRARY_SUFFIX
 862 SHARED_LIBRARY_SUFFIX
 863 LIBRARY_PREFIX
 864 TOOLCHAIN_TYPE
 865 STATIC_BUILD
 866 IMPORT_MODULES_MAKE
 867 IMPORT_MODULES_SRC
 868 IMPORT_MODULES_MAN
 869 IMPORT_MODULES_LEGAL
 870 IMPORT_MODULES_CONF
 871 IMPORT_MODULES_LIBS
 872 IMPORT_MODULES_CMDS
 873 IMPORT_MODULES_CLASSES
 874 EXTERNAL_BUILDJDK
 875 BUILD_JDK
 876 CREATE_BUILDJDK
 877 JLINK
 878 JMOD
 879 JAVAC_FLAGS
 880 BOOT_JDK_SOURCETARGET
 881 JARSIGNER
 882 JAR
 883 JAVADOC
 884 JAVAH
 885 JAVAC
 886 JAVA
 887 BOOT_JDK
 888 JAVA_CHECK
 889 JAVAC_CHECK
 890 VENDOR_VERSION_STRING
 891 VERSION_DATE
 892 VERSION_IS_GA
 893 VERSION_SHORT
 894 VERSION_STRING
 895 VERSION_NUMBER_FOUR_POSITIONS
 896 VERSION_NUMBER
 897 VERSION_OPT
 898 VERSION_BUILD
 899 VERSION_PRE
 900 VERSION_PATCH
 901 VERSION_UPDATE
 902 VERSION_INTERIM
 903 VERSION_FEATURE
 904 MACOSX_BUNDLE_ID_BASE
 905 MACOSX_BUNDLE_NAME_BASE
 906 HOTSPOT_VM_DISTRO
 907 COMPANY_NAME
 908 JDK_RC_PLATFORM_NAME
 909 PRODUCT_SUFFIX
 910 PRODUCT_NAME
 911 LAUNCHER_NAME
 912 JLINK_KEEP_PACKAGED_MODULES
 913 COPYRIGHT_YEAR
 914 COMPRESS_JARS
 915 INCLUDE_SA
 916 UNLIMITED_CRYPTO
 917 CACERTS_FILE
 918 ENABLE_FULL_DOCS
 919 ENABLE_HEADLESS_ONLY
 920 DEFAULT_MAKE_TARGET
 921 OS_VERSION_MICRO
 922 OS_VERSION_MINOR
 923 OS_VERSION_MAJOR
 924 PKG_CONFIG
 925 BASH_ARGS
 926 SETFILE
 927 CODESIGN
 928 XATTR
 929 DSYMUTIL
 930 IS_GNU_TIME
 931 PATCH
 932 DTRACE
 933 FLOCK
 934 TIME
 935 STAT
 936 HG
 937 DOT
 938 READELF
 939 LDD
 940 ZIPEXE
 941 UNZIP
 942 TAR_SUPPORTS_TRANSFORM
 943 TAR_INCLUDE_PARAM
 944 TAR_CREATE_EXTRA_PARAM
 945 TAR_TYPE
 946 FIND_DELETE
 947 OUTPUT_SYNC
 948 OUTPUT_SYNC_SUPPORTED
 949 CHECK_TOOLSDIR_MAKE
 950 CHECK_TOOLSDIR_GMAKE
 951 CHECK_MAKE
 952 CHECK_GMAKE
 953 MAKE
 954 PKGHANDLER
 955 CONFIGURESUPPORT_OUTPUTDIR
 956 OUTPUTDIR
 957 CONF_NAME
 958 SPEC
 959 SDKROOT
 960 XCODEBUILD
 961 DEVKIT_LIB_DIR
 962 JVM_VARIANT_MAIN
 963 VALID_JVM_VARIANTS
 964 JVM_VARIANTS
 965 DEBUG_LEVEL
 966 HOTSPOT_DEBUG_LEVEL
 967 JDK_VARIANT
 968 USERNAME
 969 TOPDIR
 970 PATH_SEP
 971 HOTSPOT_BUILD_CPU_DEFINE
 972 HOTSPOT_BUILD_CPU_ARCH
 973 HOTSPOT_BUILD_CPU
 974 HOTSPOT_BUILD_OS_TYPE
 975 HOTSPOT_BUILD_OS
 976 OPENJDK_BUILD_BUNDLE_PLATFORM
 977 OPENJDK_BUILD_OS_EXPORT_DIR
 978 OPENJDK_BUILD_CPU_OSARCH
 979 OPENJDK_BUILD_CPU_ISADIR
 980 OPENJDK_BUILD_CPU_LEGACY_LIB
 981 OPENJDK_BUILD_CPU_LEGACY
 982 HOTSPOT_TARGET_CPU_DEFINE
 983 HOTSPOT_TARGET_CPU_ARCH
 984 HOTSPOT_TARGET_CPU
 985 HOTSPOT_TARGET_OS_TYPE
 986 HOTSPOT_TARGET_OS
 987 DEFINE_CROSS_COMPILE_ARCH
 988 OPENJDK_TARGET_BUNDLE_PLATFORM
 989 OPENJDK_TARGET_OS_EXPORT_DIR
 990 OPENJDK_TARGET_CPU_OSARCH
 991 OPENJDK_TARGET_CPU_ISADIR
 992 OPENJDK_TARGET_CPU_LEGACY_LIB
 993 OPENJDK_TARGET_CPU_LEGACY
 994 RELEASE_FILE_OS_ARCH
 995 RELEASE_FILE_OS_NAME
 996 OPENJDK_MODULE_TARGET_PLATFORM
 997 COMPILE_TYPE
 998 OPENJDK_TARGET_CPU_ENDIAN
 999 OPENJDK_TARGET_CPU_BITS
1000 OPENJDK_TARGET_CPU_ARCH
1001 OPENJDK_TARGET_CPU
1002 OPENJDK_TARGET_OS_ENV
1003 OPENJDK_TARGET_OS_TYPE
1004 OPENJDK_TARGET_OS
1005 OPENJDK_BUILD_CPU_ENDIAN
1006 OPENJDK_BUILD_CPU_BITS
1007 OPENJDK_BUILD_CPU_ARCH
1008 OPENJDK_BUILD_CPU
1009 OPENJDK_BUILD_OS_ENV
1010 OPENJDK_BUILD_OS_TYPE
1011 OPENJDK_BUILD_OS
1012 OPENJDK_BUILD_AUTOCONF_NAME
1013 OPENJDK_TARGET_AUTOCONF_NAME
1014 target_os
1015 target_vendor
1016 target_cpu
1017 target
1018 host_os
1019 host_vendor
1020 host_cpu
1021 host
1022 build_os
1023 build_vendor
1024 build_cpu
1025 build
1026 PANDOC
1027 NICE
1028 CPIO
1029 DF
1030 READLINK
1031 CYGPATH
1032 SED
1033 FGREP
1034 EGREP
1035 GREP
1036 AWK
1037 XARGS
1038 WHICH
1039 WC
1040 UNIQ
1041 UNAME
1042 TR
1043 TOUCH
1044 TEE
1045 TAR
1046 TAIL
1047 SORT
1048 SH
1049 RMDIR
1050 RM
1051 PRINTF
1052 NAWK
1053 MV
1054 MKTEMP
1055 MKDIR
1056 LS
1057 LN
1058 GZIP
1059 GUNZIP
1060 HEAD
1061 FIND
1062 FILE
1063 EXPR
1064 ECHO
1065 DIRNAME
1066 DIFF
1067 DATE
1068 CUT
1069 CP
1070 COMM
1071 CMP
1072 CHMOD
1073 CAT
1074 BASH
1075 BASENAME
1076 DATE_WHEN_CONFIGURED
1077 ORIGINAL_PATH
1078 CONFIGURE_COMMAND_LINE
1079 target_alias
1080 host_alias
1081 build_alias
1082 LIBS
1083 ECHO_T
1084 ECHO_N
1085 ECHO_C
1086 DEFS
1087 mandir
1088 localedir
1089 libdir
1090 psdir
1091 pdfdir
1092 dvidir
1093 htmldir
1094 infodir
1095 docdir
1096 oldincludedir
1097 includedir
1098 runstatedir
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 enable_full_docs
1141 with_cacerts_file
1142 enable_unlimited_crypto
1143 with_copyright_year
1144 enable_keep_packaged_modules
1145 with_milestone
1146 with_update_version
1147 with_user_release_suffix
1148 with_build_number
1149 with_version_major
1150 with_version_minor
1151 with_version_security
1152 with_version_string
1153 with_version_pre
1154 with_version_opt
1155 with_version_build
1156 with_version_feature
1157 with_version_interim
1158 with_version_update
1159 with_version_patch
1160 with_version_date
1161 with_vendor_version_string
1162 with_boot_jdk
1163 with_build_jdk
1164 with_import_modules
1165 enable_static_build
1166 with_toolchain_type
1167 with_extra_cflags
1168 with_extra_cxxflags
1169 with_extra_ldflags
1170 with_toolchain_version
1171 with_build_devkit
1172 with_jtreg
1173 with_jib
1174 with_abi_profile
1175 with_macosx_version_max
1176 enable_warnings_as_errors
1177 with_native_debug_symbols
1178 enable_debug_symbols
1179 enable_zip_debug_info
1180 enable_native_coverage
1181 enable_asan
1182 enable_dtrace
1183 enable_aot
1184 enable_cds
1185 enable_hotspot_gtest
1186 with_stdc__lib
1187 with_msvcr_dll
1188 with_msvcp_dll
1189 with_x
1190 with_cups
1191 with_cups_include
1192 with_fontconfig
1193 with_fontconfig_include
1194 with_freetype
1195 with_freetype_include
1196 with_freetype_lib
1197 with_freetype_src
1198 enable_freetype_bundling
1199 with_freetype_license
1200 with_alsa
1201 with_alsa_include
1202 with_alsa_lib
1203 with_libffi
1204 with_libffi_include
1205 with_libffi_lib
1206 enable_libffi_bundling
1207 with_libjpeg
1208 with_giflib
1209 with_libpng
1210 with_zlib
1211 with_lcms
1212 with_dxsdk
1213 with_dxsdk_lib
1214 with_dxsdk_include
1215 with_jvm_features
1216 with_jvm_interpreter
1217 enable_jtreg_failure_handler
1218 enable_generate_classlist
1219 with_num_cores
1220 with_memory_size
1221 with_jobs
1222 with_test_jobs
1223 with_boot_jdk_jvmargs
1224 with_sjavac_server_java
1225 enable_sjavac
1226 enable_javac_server
1227 enable_icecc
1228 enable_precompiled_headers
1229 enable_ccache
1230 with_ccache_dir
1231 '
1232       ac_precious_vars='build_alias
1233 host_alias
1234 target_alias
1235 BASENAME
1236 BASH
1237 CAT
1238 CHMOD
1239 CMP
1240 COMM
1241 CP
1242 CUT
1243 DATE
1244 DIFF
1245 DIRNAME
1246 ECHO
1247 EXPR
1248 FILE
1249 FIND
1250 HEAD
1251 GUNZIP
1252 GZIP
1253 LN
1254 LS
1255 MKDIR
1256 MKTEMP
1257 MV
1258 NAWK
1259 PRINTF
1260 RM
1261 RMDIR
1262 SH
1263 SORT
1264 TAIL
1265 TAR
1266 TEE
1267 TOUCH
1268 TR
1269 UNAME
1270 UNIQ
1271 WC
1272 WHICH
1273 XARGS
1274 AWK
1275 GREP
1276 EGREP
1277 FGREP
1278 SED
1279 CYGPATH
1280 READLINK
1281 DF
1282 CPIO
1283 NICE
1284 PANDOC
1285 MAKE
1286 UNZIP
1287 ZIPEXE
1288 LDD
1289 READELF
1290 DOT
1291 HG
1292 STAT
1293 TIME
1294 FLOCK
1295 DTRACE
1296 PATCH
1297 DSYMUTIL
1298 XATTR
1299 CODESIGN
1300 SETFILE
1301 PKG_CONFIG
1302 JAVA
1303 JAVAC
1304 JAVAH
1305 JAVADOC
1306 JAR
1307 JARSIGNER
1308 CC
1309 CFLAGS
1310 LDFLAGS
1311 LIBS
1312 CPPFLAGS
1313 CXX
1314 CXXFLAGS
1315 CCC
1316 CPP
1317 CXXCPP
1318 AS
1319 AR
1320 LIPO
1321 OTOOL
1322 INSTALL_NAME_TOOL
1323 STRIP
1324 NM
1325 GNM
1326 OBJCOPY
1327 OBJDUMP
1328 BUILD_CC
1329 BUILD_CXX
1330 BUILD_NM
1331 BUILD_AR
1332 BUILD_OBJCOPY
1333 BUILD_STRIP
1334 JTREGEXE
1335 XMKMF
1336 FREETYPE_CFLAGS
1337 FREETYPE_LIBS
1338 ALSA_CFLAGS
1339 ALSA_LIBS
1340 LIBFFI_CFLAGS
1341 LIBFFI_LIBS
1342 PNG_CFLAGS
1343 PNG_LIBS
1344 LCMS_CFLAGS
1345 LCMS_LIBS
1346 ICECC_CMD
1347 ICECC_CREATE_ENV
1348 ICECC_WRAPPER
1349 CCACHE'
1350 
1351 
1352 # Initialize some variables set by options.
1353 ac_init_help=
1354 ac_init_version=false
1355 ac_unrecognized_opts=
1356 ac_unrecognized_sep=
1357 # The variables have the same names as the options, with
1358 # dashes changed to underlines.
1359 cache_file=/dev/null
1360 exec_prefix=NONE
1361 no_create=
1362 no_recursion=
1363 prefix=NONE
1364 program_prefix=NONE
1365 program_suffix=NONE
1366 program_transform_name=s,x,x,
1367 silent=
1368 site=
1369 srcdir=
1370 verbose=
1371 x_includes=NONE
1372 x_libraries=NONE
1373 
1374 # Installation directory options.
1375 # These are left unexpanded so users can "make install exec_prefix=/foo"
1376 # and all the variables that are supposed to be based on exec_prefix
1377 # by default will actually change.
1378 # Use braces instead of parens because sh, perl, etc. also accept them.
1379 # (The list follows the same order as the GNU Coding Standards.)
1380 bindir='${exec_prefix}/bin'
1381 sbindir='${exec_prefix}/sbin'
1382 libexecdir='${exec_prefix}/libexec'
1383 datarootdir='${prefix}/share'
1384 datadir='${datarootdir}'
1385 sysconfdir='${prefix}/etc'
1386 sharedstatedir='${prefix}/com'
1387 localstatedir='${prefix}/var'
1388 runstatedir='${localstatedir}/run'
1389 includedir='${prefix}/include'
1390 oldincludedir='/usr/include'
1391 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1392 infodir='${datarootdir}/info'
1393 htmldir='${docdir}'
1394 dvidir='${docdir}'
1395 pdfdir='${docdir}'
1396 psdir='${docdir}'
1397 libdir='${exec_prefix}/lib'
1398 localedir='${datarootdir}/locale'
1399 mandir='${datarootdir}/man'
1400 
1401 ac_prev=
1402 ac_dashdash=
1403 for ac_option
1404 do
1405   # If the previous option needs an argument, assign it.
1406   if test -n "$ac_prev"; then
1407     eval $ac_prev=\$ac_option
1408     ac_prev=
1409     continue
1410   fi
1411 
1412   case $ac_option in
1413   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1414   *=)   ac_optarg= ;;
1415   *)    ac_optarg=yes ;;
1416   esac
1417 
1418   # Accept the important Cygnus configure options, so we can diagnose typos.
1419 
1420   case $ac_dashdash$ac_option in
1421   --)
1422     ac_dashdash=yes ;;
1423 
1424   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1425     ac_prev=bindir ;;
1426   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1427     bindir=$ac_optarg ;;
1428 
1429   -build | --build | --buil | --bui | --bu)
1430     ac_prev=build_alias ;;
1431   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1432     build_alias=$ac_optarg ;;
1433 
1434   -cache-file | --cache-file | --cache-fil | --cache-fi \
1435   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1436     ac_prev=cache_file ;;
1437   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1438   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1439     cache_file=$ac_optarg ;;
1440 
1441   --config-cache | -C)
1442     cache_file=config.cache ;;
1443 
1444   -datadir | --datadir | --datadi | --datad)
1445     ac_prev=datadir ;;
1446   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1447     datadir=$ac_optarg ;;
1448 
1449   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1450   | --dataroo | --dataro | --datar)
1451     ac_prev=datarootdir ;;
1452   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1453   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1454     datarootdir=$ac_optarg ;;
1455 
1456   -disable-* | --disable-*)
1457     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1458     # Reject names that are not valid shell variable names.
1459     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1460       as_fn_error $? "invalid feature name: $ac_useropt"
1461     ac_useropt_orig=$ac_useropt
1462     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1463     case $ac_user_opts in
1464       *"
1465 "enable_$ac_useropt"
1466 "*) ;;
1467       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1468          ac_unrecognized_sep=', ';;
1469     esac
1470     eval enable_$ac_useropt=no ;;
1471 
1472   -docdir | --docdir | --docdi | --doc | --do)
1473     ac_prev=docdir ;;
1474   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1475     docdir=$ac_optarg ;;
1476 
1477   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1478     ac_prev=dvidir ;;
1479   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1480     dvidir=$ac_optarg ;;
1481 
1482   -enable-* | --enable-*)
1483     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1484     # Reject names that are not valid shell variable names.
1485     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1486       as_fn_error $? "invalid feature name: $ac_useropt"
1487     ac_useropt_orig=$ac_useropt
1488     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1489     case $ac_user_opts in
1490       *"
1491 "enable_$ac_useropt"
1492 "*) ;;
1493       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1494          ac_unrecognized_sep=', ';;
1495     esac
1496     eval enable_$ac_useropt=\$ac_optarg ;;
1497 
1498   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1499   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1500   | --exec | --exe | --ex)
1501     ac_prev=exec_prefix ;;
1502   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1503   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1504   | --exec=* | --exe=* | --ex=*)
1505     exec_prefix=$ac_optarg ;;
1506 
1507   -gas | --gas | --ga | --g)
1508     # Obsolete; use --with-gas.
1509     with_gas=yes ;;
1510 
1511   -help | --help | --hel | --he | -h)
1512     ac_init_help=long ;;
1513   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1514     ac_init_help=recursive ;;
1515   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1516     ac_init_help=short ;;
1517 
1518   -host | --host | --hos | --ho)
1519     ac_prev=host_alias ;;
1520   -host=* | --host=* | --hos=* | --ho=*)
1521     host_alias=$ac_optarg ;;
1522 
1523   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1524     ac_prev=htmldir ;;
1525   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1526   | --ht=*)
1527     htmldir=$ac_optarg ;;
1528 
1529   -includedir | --includedir | --includedi | --included | --include \
1530   | --includ | --inclu | --incl | --inc)
1531     ac_prev=includedir ;;
1532   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1533   | --includ=* | --inclu=* | --incl=* | --inc=*)
1534     includedir=$ac_optarg ;;
1535 
1536   -infodir | --infodir | --infodi | --infod | --info | --inf)
1537     ac_prev=infodir ;;
1538   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1539     infodir=$ac_optarg ;;
1540 
1541   -libdir | --libdir | --libdi | --libd)
1542     ac_prev=libdir ;;
1543   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1544     libdir=$ac_optarg ;;
1545 
1546   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1547   | --libexe | --libex | --libe)
1548     ac_prev=libexecdir ;;
1549   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1550   | --libexe=* | --libex=* | --libe=*)
1551     libexecdir=$ac_optarg ;;
1552 
1553   -localedir | --localedir | --localedi | --localed | --locale)
1554     ac_prev=localedir ;;
1555   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1556     localedir=$ac_optarg ;;
1557 
1558   -localstatedir | --localstatedir | --localstatedi | --localstated \
1559   | --localstate | --localstat | --localsta | --localst | --locals)
1560     ac_prev=localstatedir ;;
1561   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1562   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1563     localstatedir=$ac_optarg ;;
1564 
1565   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1566     ac_prev=mandir ;;
1567   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1568     mandir=$ac_optarg ;;
1569 
1570   -nfp | --nfp | --nf)
1571     # Obsolete; use --without-fp.
1572     with_fp=no ;;
1573 
1574   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1575   | --no-cr | --no-c | -n)
1576     no_create=yes ;;
1577 
1578   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1579   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1580     no_recursion=yes ;;
1581 
1582   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1583   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1584   | --oldin | --oldi | --old | --ol | --o)
1585     ac_prev=oldincludedir ;;
1586   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1587   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1588   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1589     oldincludedir=$ac_optarg ;;
1590 
1591   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1592     ac_prev=prefix ;;
1593   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1594     prefix=$ac_optarg ;;
1595 
1596   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1597   | --program-pre | --program-pr | --program-p)
1598     ac_prev=program_prefix ;;
1599   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1600   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1601     program_prefix=$ac_optarg ;;
1602 
1603   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1604   | --program-suf | --program-su | --program-s)
1605     ac_prev=program_suffix ;;
1606   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1607   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1608     program_suffix=$ac_optarg ;;
1609 
1610   -program-transform-name | --program-transform-name \
1611   | --program-transform-nam | --program-transform-na \
1612   | --program-transform-n | --program-transform- \
1613   | --program-transform | --program-transfor \
1614   | --program-transfo | --program-transf \
1615   | --program-trans | --program-tran \
1616   | --progr-tra | --program-tr | --program-t)
1617     ac_prev=program_transform_name ;;
1618   -program-transform-name=* | --program-transform-name=* \
1619   | --program-transform-nam=* | --program-transform-na=* \
1620   | --program-transform-n=* | --program-transform-=* \
1621   | --program-transform=* | --program-transfor=* \
1622   | --program-transfo=* | --program-transf=* \
1623   | --program-trans=* | --program-tran=* \
1624   | --progr-tra=* | --program-tr=* | --program-t=*)
1625     program_transform_name=$ac_optarg ;;
1626 
1627   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1628     ac_prev=pdfdir ;;
1629   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1630     pdfdir=$ac_optarg ;;
1631 
1632   -psdir | --psdir | --psdi | --psd | --ps)
1633     ac_prev=psdir ;;
1634   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1635     psdir=$ac_optarg ;;
1636 
1637   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1638   | -silent | --silent | --silen | --sile | --sil)
1639     silent=yes ;;
1640 
1641   -runstatedir | --runstatedir | --runstatedi | --runstated \
1642   | --runstate | --runstat | --runsta | --runst | --runs \
1643   | --run | --ru | --r)
1644     ac_prev=runstatedir ;;
1645   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1646   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1647   | --run=* | --ru=* | --r=*)
1648     runstatedir=$ac_optarg ;;
1649 
1650   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1651     ac_prev=sbindir ;;
1652   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1653   | --sbi=* | --sb=*)
1654     sbindir=$ac_optarg ;;
1655 
1656   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1657   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1658   | --sharedst | --shareds | --shared | --share | --shar \
1659   | --sha | --sh)
1660     ac_prev=sharedstatedir ;;
1661   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1662   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1663   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1664   | --sha=* | --sh=*)
1665     sharedstatedir=$ac_optarg ;;
1666 
1667   -site | --site | --sit)
1668     ac_prev=site ;;
1669   -site=* | --site=* | --sit=*)
1670     site=$ac_optarg ;;
1671 
1672   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1673     ac_prev=srcdir ;;
1674   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1675     srcdir=$ac_optarg ;;
1676 
1677   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1678   | --syscon | --sysco | --sysc | --sys | --sy)
1679     ac_prev=sysconfdir ;;
1680   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1681   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1682     sysconfdir=$ac_optarg ;;
1683 
1684   -target | --target | --targe | --targ | --tar | --ta | --t)
1685     ac_prev=target_alias ;;
1686   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1687     target_alias=$ac_optarg ;;
1688 
1689   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1690     verbose=yes ;;
1691 
1692   -version | --version | --versio | --versi | --vers | -V)
1693     ac_init_version=: ;;
1694 
1695   -with-* | --with-*)
1696     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1697     # Reject names that are not valid shell variable names.
1698     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1699       as_fn_error $? "invalid package name: $ac_useropt"
1700     ac_useropt_orig=$ac_useropt
1701     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1702     case $ac_user_opts in
1703       *"
1704 "with_$ac_useropt"
1705 "*) ;;
1706       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1707          ac_unrecognized_sep=', ';;
1708     esac
1709     eval with_$ac_useropt=\$ac_optarg ;;
1710 
1711   -without-* | --without-*)
1712     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1713     # Reject names that are not valid shell variable names.
1714     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1715       as_fn_error $? "invalid package name: $ac_useropt"
1716     ac_useropt_orig=$ac_useropt
1717     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1718     case $ac_user_opts in
1719       *"
1720 "with_$ac_useropt"
1721 "*) ;;
1722       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1723          ac_unrecognized_sep=', ';;
1724     esac
1725     eval with_$ac_useropt=no ;;
1726 
1727   --x)
1728     # Obsolete; use --with-x.
1729     with_x=yes ;;
1730 
1731   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1732   | --x-incl | --x-inc | --x-in | --x-i)
1733     ac_prev=x_includes ;;
1734   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1735   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1736     x_includes=$ac_optarg ;;
1737 
1738   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1739   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1740     ac_prev=x_libraries ;;
1741   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1742   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1743     x_libraries=$ac_optarg ;;
1744 
1745   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1746 Try \`$0 --help' for more information"
1747     ;;
1748 
1749   *=*)
1750     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1751     # Reject names that are not valid shell variable names.
1752     case $ac_envvar in #(
1753       '' | [0-9]* | *[!_$as_cr_alnum]* )
1754       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1755     esac
1756     eval $ac_envvar=\$ac_optarg
1757     export $ac_envvar ;;
1758 
1759   *)
1760     # FIXME: should be removed in autoconf 3.0.
1761     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1762     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1763       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1764     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1765     ;;
1766 
1767   esac
1768 done
1769 
1770 if test -n "$ac_prev"; then
1771   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1772   as_fn_error $? "missing argument to $ac_option"
1773 fi
1774 
1775 if test -n "$ac_unrecognized_opts"; then
1776   case $enable_option_checking in
1777     no) ;;
1778     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1779     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1780   esac
1781 fi
1782 
1783 # Check all directory arguments for consistency.
1784 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1785                 datadir sysconfdir sharedstatedir localstatedir includedir \
1786                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1787                 libdir localedir mandir runstatedir
1788 do
1789   eval ac_val=\$$ac_var
1790   # Remove trailing slashes.
1791   case $ac_val in
1792     */ )
1793       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1794       eval $ac_var=\$ac_val;;
1795   esac
1796   # Be sure to have absolute directory names.
1797   case $ac_val in
1798     [\\/$]* | ?:[\\/]* )  continue;;
1799     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1800   esac
1801   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1802 done
1803 
1804 # There might be people who depend on the old broken behavior: `$host'
1805 # used to hold the argument of --host etc.
1806 # FIXME: To remove some day.
1807 build=$build_alias
1808 host=$host_alias
1809 target=$target_alias
1810 
1811 # FIXME: To remove some day.
1812 if test "x$host_alias" != x; then
1813   if test "x$build_alias" = x; then
1814     cross_compiling=maybe
1815   elif test "x$build_alias" != "x$host_alias"; then
1816     cross_compiling=yes
1817   fi
1818 fi
1819 
1820 ac_tool_prefix=
1821 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1822 
1823 test "$silent" = yes && exec 6>/dev/null
1824 
1825 
1826 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1827 ac_ls_di=`ls -di .` &&
1828 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1829   as_fn_error $? "working directory cannot be determined"
1830 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1831   as_fn_error $? "pwd does not report name of working directory"
1832 
1833 
1834 # Find the source files, if location was not specified.
1835 if test -z "$srcdir"; then
1836   ac_srcdir_defaulted=yes
1837   # Try the directory containing this script, then the parent directory.
1838   ac_confdir=`$as_dirname -- "$as_myself" ||
1839 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1840          X"$as_myself" : 'X\(//\)[^/]' \| \
1841          X"$as_myself" : 'X\(//\)$' \| \
1842          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1843 $as_echo X"$as_myself" |
1844     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1845             s//\1/
1846             q
1847           }
1848           /^X\(\/\/\)[^/].*/{
1849             s//\1/
1850             q
1851           }
1852           /^X\(\/\/\)$/{
1853             s//\1/
1854             q
1855           }
1856           /^X\(\/\).*/{
1857             s//\1/
1858             q
1859           }
1860           s/.*/./; q'`
1861   srcdir=$ac_confdir
1862   if test ! -r "$srcdir/$ac_unique_file"; then
1863     srcdir=..
1864   fi
1865 else
1866   ac_srcdir_defaulted=no
1867 fi
1868 if test ! -r "$srcdir/$ac_unique_file"; then
1869   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1870   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1871 fi
1872 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1873 ac_abs_confdir=`(
1874         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1875         pwd)`
1876 # When building in place, set srcdir=.
1877 if test "$ac_abs_confdir" = "$ac_pwd"; then
1878   srcdir=.
1879 fi
1880 # Remove unnecessary trailing slashes from srcdir.
1881 # Double slashes in file names in object file debugging info
1882 # mess up M-x gdb in Emacs.
1883 case $srcdir in
1884 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1885 esac
1886 for ac_var in $ac_precious_vars; do
1887   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1888   eval ac_env_${ac_var}_value=\$${ac_var}
1889   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1890   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1891 done
1892 
1893 #
1894 # Report the --help message.
1895 #
1896 if test "$ac_init_help" = "long"; then
1897   # Omit some internal or obsolete options to make the list less imposing.
1898   # This message is too long to be a string in the A/UX 3.1 sh.
1899   cat <<_ACEOF
1900 \`configure' configures OpenJDK jdk9 to adapt to many kinds of systems.
1901 
1902 Usage: $0 [OPTION]... [VAR=VALUE]...
1903 
1904 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1905 VAR=VALUE.  See below for descriptions of some of the useful variables.
1906 
1907 Defaults for the options are specified in brackets.
1908 
1909 Configuration:
1910   -h, --help              display this help and exit
1911       --help=short        display options specific to this package
1912       --help=recursive    display the short help of all the included packages
1913   -V, --version           display version information and exit
1914   -q, --quiet, --silent   do not print \`checking ...' messages
1915       --cache-file=FILE   cache test results in FILE [disabled]
1916   -C, --config-cache      alias for \`--cache-file=config.cache'
1917   -n, --no-create         do not create output files
1918       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1919 
1920 Installation directories:
1921   --prefix=PREFIX         install architecture-independent files in PREFIX
1922                           [$ac_default_prefix]
1923   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1924                           [PREFIX]
1925 
1926 By default, \`make install' will install all the files in
1927 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1928 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1929 for instance \`--prefix=\$HOME'.
1930 
1931 For better control, use the options below.
1932 
1933 Fine tuning of the installation directories:
1934   --bindir=DIR            user executables [EPREFIX/bin]
1935   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1936   --libexecdir=DIR        program executables [EPREFIX/libexec]
1937   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1938   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1939   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1940   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1941   --libdir=DIR            object code libraries [EPREFIX/lib]
1942   --includedir=DIR        C header files [PREFIX/include]
1943   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1944   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1945   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1946   --infodir=DIR           info documentation [DATAROOTDIR/info]
1947   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1948   --mandir=DIR            man documentation [DATAROOTDIR/man]
1949   --docdir=DIR            documentation root [DATAROOTDIR/doc/openjdk]
1950   --htmldir=DIR           html documentation [DOCDIR]
1951   --dvidir=DIR            dvi documentation [DOCDIR]
1952   --pdfdir=DIR            pdf documentation [DOCDIR]
1953   --psdir=DIR             ps documentation [DOCDIR]
1954 _ACEOF
1955 
1956   cat <<\_ACEOF
1957 
1958 X features:
1959   --x-includes=DIR    X include files are in DIR
1960   --x-libraries=DIR   X library files are in DIR
1961 
1962 System types:
1963   --build=BUILD     configure for building on BUILD [guessed]
1964   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1965   --target=TARGET   configure for building compilers for TARGET [HOST]
1966 _ACEOF
1967 fi
1968 
1969 if test -n "$ac_init_help"; then
1970   case $ac_init_help in
1971      short | recursive ) echo "Configuration of OpenJDK jdk9:";;
1972    esac
1973   cat <<\_ACEOF
1974 
1975 Optional Features:
1976   --disable-option-checking  ignore unrecognized --enable/--with options
1977   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1978   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1979   --enable-openjdk-only   suppress building custom source even if present
1980                           [disabled]
1981   --enable-debug          set the debug level to fastdebug (shorthand for
1982                           --with-debug-level=fastdebug) [disabled]
1983   --enable-headless-only  only build headless (no GUI) support [disabled]
1984   --enable-full-docs      build complete documentation [enabled if all tools
1985                           found]
1986   --disable-unlimited-crypto
1987                           Disable unlimited crypto policy [enabled]
1988   --disable-keep-packaged-modules
1989                           Do not keep packaged modules in jdk image [enable]
1990   --enable-static-build   enable static library build [disabled]
1991   --disable-warnings-as-errors
1992                           do not consider native warnings to be an error
1993                           [enabled]
1994   --enable-debug-symbols  Deprecated. Option is kept for backwards
1995                           compatibility and is ignored
1996   --enable-zip-debug-info Deprecated. Option is kept for backwards
1997                           compatibility and is ignored
1998   --enable-native-coverage
1999                           enable native compilation with code coverage
2000                           data[disabled]
2001   --enable-asan           enable AddressSanitizer if possible [disabled]
2002   --enable-dtrace[=yes/no/auto]
2003                           enable dtrace. Default is auto, where dtrace is
2004                           enabled if all dependencies are present.
2005   --enable-aot[=yes/no/auto]
2006                           enable ahead of time compilation feature. Default is
2007                           auto, where aot is enabled if all dependencies are
2008                           present.
2009   --enable-cds[=yes/no]   enable class data sharing feature in non-minimal VM.
2010                           Default is yes.
2011   --disable-hotspot-gtest Disables building of the Hotspot unit tests
2012                           [enabled]
2013   --disable-freetype-bundling
2014                           disable bundling of the freetype library with the
2015                           build result [enabled on Windows or when using
2016                           --with-freetype, disabled otherwise]
2017   --enable-libffi-bundling
2018                           enable bundling of libffi.so to make the built JDK
2019                           runnable on more systems
2020   --enable-jtreg-failure-handler
2021                           forces build of the jtreg failure handler to be
2022                           enabled, missing dependencies become fatal errors.
2023                           Default is auto, where the failure handler is built
2024                           if all dependencies are present and otherwise just
2025                           disabled.
2026   --disable-generate-classlist
2027                           forces enabling or disabling of the generation of a
2028                           CDS classlist at build time. Default is to generate
2029                           it when either the server or client JVMs are built
2030                           and enable-cds is true.
2031   --enable-sjavac         use sjavac to do fast incremental compiles
2032                           [disabled]
2033   --disable-javac-server  disable javac server [enabled]
2034   --enable-icecc          enable distribted compilation of native code using
2035                           icecc/icecream [disabled]
2036   --disable-precompiled-headers
2037                           disable using precompiled headers when compiling C++
2038                           [enabled]
2039   --enable-ccache         enable using ccache to speed up recompilations
2040                           [disabled]
2041 
2042 Optional Packages:
2043   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
2044   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
2045   --with-target-bits      build 32-bit or 64-bit binaries (for platforms that
2046                           support it), e.g. --with-target-bits=32 [guessed]
2047   --with-custom-make-dir  Deprecated. Option is kept for backwards
2048                           compatibility and is ignored
2049   --with-jdk-variant      JDK variant to build (normal) [normal]
2050   --with-debug-level      set the debug level (release, fastdebug, slowdebug,
2051                           optimized) [release]
2052   --with-jvm-variants     JVM variants (separated by commas) to build
2053                           (server,client,minimal,core,zero,custom) [server]
2054   --with-cpu-port         specify sources to use for Hotspot 64-bit ARM port
2055                           (arm64,aarch64) [aarch64]
2056   --with-devkit           use this devkit for compilers, tools and resources
2057   --with-sys-root         alias for --with-sysroot for backwards compatability
2058   --with-sysroot          use this directory as sysroot
2059   --with-tools-dir        alias for --with-toolchain-path for backwards
2060                           compatibility
2061   --with-toolchain-path   prepend these directories when searching for
2062                           toolchain binaries (compilers etc)
2063   --with-extra-path       prepend these directories to the default path
2064   --with-sdk-name         use the platform SDK of the given name. [macosx]
2065   --with-conf-name        use this as the name of the configuration [generated
2066                           from important configuration options]
2067   --with-output-sync      set make output sync type if supported by make.
2068                           [recurse]
2069   --with-default-make-target
2070                           set the default make target [exploded-image]
2071   --with-cacerts-file     specify alternative cacerts file
2072   --with-copyright-year   Set copyright year value for build [current year]
2073   --with-milestone        Deprecated. Option is kept for backwards
2074                           compatibility and is ignored
2075   --with-update-version   Deprecated. Option is kept for backwards
2076                           compatibility and is ignored
2077   --with-user-release-suffix
2078                           Deprecated. Option is kept for backwards
2079                           compatibility and is ignored
2080   --with-build-number     Deprecated. Option is kept for backwards
2081                           compatibility and is ignored
2082   --with-version-major    Deprecated. Option is kept for backwards
2083                           compatibility and is ignored
2084   --with-version-minor    Deprecated. Option is kept for backwards
2085                           compatibility and is ignored
2086   --with-version-security Deprecated. Option is kept for backwards
2087                           compatibility and is ignored
2088   --with-version-string   Set version string [calculated]
2089   --with-version-pre      Set the base part of the version 'PRE' field
2090                           (pre-release identifier) ['internal']
2091   --with-version-opt      Set version 'OPT' field (build metadata)
2092                           [<timestamp>.<user>.<dirname>]
2093   --with-version-build    Set version 'BUILD' field (build number) [not
2094                           specified]
2095   --with-version-feature  Set version 'FEATURE' field (first number) [current
2096                           source value]
2097   --with-version-interim  Set version 'INTERIM' field (second number) [current
2098                           source value]
2099   --with-version-update   Set version 'UPDATE' field (third number) [current
2100                           source value]
2101   --with-version-patch    Set version 'PATCH' field (fourth number) [not
2102                           specified]
2103   --with-version-date     Set version date [current source value]
2104   --with-vendor-version-string
2105                           Set vendor version string [not specified]
2106   --with-boot-jdk         path to Boot JDK (used to bootstrap build) [probed]
2107   --with-build-jdk        path to JDK of same version as is being built[the
2108                           newly built JDK]
2109   --with-import-modules   import a set of prebuilt modules either as a zip
2110                           file or an exploded directory
2111   --with-toolchain-type   the toolchain type (or family) to use, use '--help'
2112                           to show possible values [platform dependent]
2113   --with-extra-cflags     extra flags to be used when compiling jdk c-files
2114   --with-extra-cxxflags   extra flags to be used when compiling jdk c++-files
2115   --with-extra-ldflags    extra flags to be used when linking jdk
2116   --with-toolchain-version
2117                           the version of the toolchain to look for, use
2118                           '--help' to show possible values [platform
2119                           dependent]
2120   --with-build-devkit     Devkit to use for the build platform toolchain
2121   --with-jtreg            Regression Test Harness [probed]
2122   --with-jib              Jib dependency management tool [not used]
2123   --with-abi-profile      specify ABI profile for ARM builds
2124                           (arm-vfp-sflt,arm-vfp-hflt,arm-sflt,
2125                           armv5-vfp-sflt,armv6-vfp-hflt,arm64,aarch64)
2126                           [toolchain dependent]
2127   --with-macosx-version-max
2128                           error on use of newer functionality. [macosx]
2129   --with-native-debug-symbols
2130                           set the native debug symbol configuration (none,
2131                           internal, external, zipped) [varying]
2132   --with-stdc++lib=<static>,<dynamic>,<default>
2133                           force linking of the C++ runtime on Linux to either
2134                           static or dynamic, default is static with dynamic as
2135                           fallback
2136   --with-msvcr-dll        path to microsoft C runtime dll (msvcr*.dll)
2137                           (Windows only) [probed]
2138   --with-msvcp-dll        path to microsoft C++ runtime dll (msvcp*.dll)
2139                           (Windows only) [probed]
2140   --with-x                use the X Window System
2141   --with-cups             specify prefix directory for the cups package
2142                           (expecting the headers under PATH/include)
2143   --with-cups-include     specify directory for the cups include files
2144   --with-fontconfig       specify prefix directory for the fontconfig package
2145                           (expecting the headers under PATH/include)
2146   --with-fontconfig-include
2147                           specify directory for the fontconfig include files
2148   --with-freetype         specify prefix directory for the freetype package
2149                           (expecting the libraries under PATH/lib and the
2150                           headers under PATH/include)
2151   --with-freetype-include specify directory for the freetype include files
2152   --with-freetype-lib     specify directory for the freetype library
2153   --with-freetype-src     specify directory with freetype sources to
2154                           automatically build the library (experimental,
2155                           Windows-only)
2156   --with-freetype-license if bundling freetype, also bundle this license file
2157   --with-alsa             specify prefix directory for the alsa package
2158                           (expecting the libraries under PATH/lib and the
2159                           headers under PATH/include)
2160   --with-alsa-include     specify directory for the alsa include files
2161   --with-alsa-lib         specify directory for the alsa library
2162   --with-libffi           specify prefix directory for the libffi package
2163                           (expecting the libraries under PATH/lib and the
2164                           headers under PATH/include)
2165   --with-libffi-include   specify directory for the libffi include files
2166   --with-libffi-lib       specify directory for the libffi library
2167   --with-libjpeg          use libjpeg from build system or OpenJDK source
2168                           (system, bundled) [bundled]
2169   --with-giflib           use giflib from build system or OpenJDK source
2170                           (system, bundled) [bundled]
2171   --with-libpng           use libpng from build system or OpenJDK source
2172                           (system, bundled) [bundled]
2173   --with-zlib             use zlib from build system or OpenJDK source
2174                           (system, bundled) [bundled]
2175   --with-lcms             use lcms2 from build system or OpenJDK source
2176                           (system, bundled) [bundled]
2177   --with-dxsdk            Deprecated. Option is kept for backwards
2178                           compatibility and is ignored
2179   --with-dxsdk-lib        Deprecated. Option is kept for backwards
2180                           compatibility and is ignored
2181   --with-dxsdk-include    Deprecated. Option is kept for backwards
2182                           compatibility and is ignored
2183   --with-jvm-features     additional JVM features to enable (separated by
2184                           comma), use '--help' to show possible values [none]
2185   --with-jvm-interpreter  Deprecated. Option is kept for backwards
2186                           compatibility and is ignored
2187   --with-num-cores        number of cores in the build system, e.g.
2188                           --with-num-cores=8 [probed]
2189   --with-memory-size      memory (in MB) available in the build system, e.g.
2190                           --with-memory-size=1024 [probed]
2191   --with-jobs             number of parallel jobs to let make run [calculated
2192                           based on cores and memory]
2193   --with-test-jobs        number of parallel tests jobs to run [based on build
2194                           jobs]
2195   --with-boot-jdk-jvmargs specify JVM arguments to be passed to all java
2196                           invocations of boot JDK, overriding the default
2197                           values, e.g --with-boot-jdk-jvmargs="-Xmx8G
2198                           -enableassertions"
2199   --with-sjavac-server-java
2200                           use this java binary for running the sjavac
2201                           background server [Boot JDK java]
2202   --with-ccache-dir       where to store ccache files [~/.ccache]
2203 
2204 Some influential environment variables:
2205   BASENAME    Override default value for BASENAME
2206   BASH        Override default value for BASH
2207   CAT         Override default value for CAT
2208   CHMOD       Override default value for CHMOD
2209   CMP         Override default value for CMP
2210   COMM        Override default value for COMM
2211   CP          Override default value for CP
2212   CUT         Override default value for CUT
2213   DATE        Override default value for DATE
2214   DIFF        Override default value for DIFF
2215   DIRNAME     Override default value for DIRNAME
2216   ECHO        Override default value for ECHO
2217   EXPR        Override default value for EXPR
2218   FILE        Override default value for FILE
2219   FIND        Override default value for FIND
2220   HEAD        Override default value for HEAD
2221   GUNZIP      Override default value for GUNZIP
2222   GZIP        Override default value for GZIP
2223   LN          Override default value for LN
2224   LS          Override default value for LS
2225   MKDIR       Override default value for MKDIR
2226   MKTEMP      Override default value for MKTEMP
2227   MV          Override default value for MV
2228   NAWK        Override default value for NAWK
2229   PRINTF      Override default value for PRINTF
2230   RM          Override default value for RM
2231   RMDIR       Override default value for RMDIR
2232   SH          Override default value for SH
2233   SORT        Override default value for SORT
2234   TAIL        Override default value for TAIL
2235   TAR         Override default value for TAR
2236   TEE         Override default value for TEE
2237   TOUCH       Override default value for TOUCH
2238   TR          Override default value for TR
2239   UNAME       Override default value for UNAME
2240   UNIQ        Override default value for UNIQ
2241   WC          Override default value for WC
2242   WHICH       Override default value for WHICH
2243   XARGS       Override default value for XARGS
2244   AWK         Override default value for AWK
2245   GREP        Override default value for GREP
2246   EGREP       Override default value for EGREP
2247   FGREP       Override default value for FGREP
2248   SED         Override default value for SED
2249   CYGPATH     Override default value for CYGPATH
2250   READLINK    Override default value for READLINK
2251   DF          Override default value for DF
2252   CPIO        Override default value for CPIO
2253   NICE        Override default value for NICE
2254   PANDOC      Override default value for PANDOC
2255   MAKE        Override default value for MAKE
2256   UNZIP       Override default value for UNZIP
2257   ZIPEXE      Override default value for ZIPEXE
2258   LDD         Override default value for LDD
2259   READELF     Override default value for READELF
2260   DOT         Override default value for DOT
2261   HG          Override default value for HG
2262   STAT        Override default value for STAT
2263   TIME        Override default value for TIME
2264   FLOCK       Override default value for FLOCK
2265   DTRACE      Override default value for DTRACE
2266   PATCH       Override default value for PATCH
2267   DSYMUTIL    Override default value for DSYMUTIL
2268   XATTR       Override default value for XATTR
2269   CODESIGN    Override default value for CODESIGN
2270   SETFILE     Override default value for SETFILE
2271   PKG_CONFIG  path to pkg-config utility
2272   JAVA        Override default value for JAVA
2273   JAVAC       Override default value for JAVAC
2274   JAVAH       Override default value for JAVAH
2275   JAVADOC     Override default value for JAVADOC
2276   JAR         Override default value for JAR
2277   JARSIGNER   Override default value for JARSIGNER
2278   CC          C compiler command
2279   CFLAGS      C compiler flags
2280   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2281               nonstandard directory <lib dir>
2282   LIBS        libraries to pass to the linker, e.g. -l<library>
2283   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2284               you have headers in a nonstandard directory <include dir>
2285   CXX         C++ compiler command
2286   CXXFLAGS    C++ compiler flags
2287   CPP         C preprocessor
2288   CXXCPP      C++ preprocessor
2289   AS          Override default value for AS
2290   AR          Override default value for AR
2291   LIPO        Override default value for LIPO
2292   OTOOL       Override default value for OTOOL
2293   INSTALL_NAME_TOOL
2294               Override default value for INSTALL_NAME_TOOL
2295   STRIP       Override default value for STRIP
2296   NM          Override default value for NM
2297   GNM         Override default value for GNM
2298   OBJCOPY     Override default value for OBJCOPY
2299   OBJDUMP     Override default value for OBJDUMP
2300   BUILD_CC    Override default value for BUILD_CC
2301   BUILD_CXX   Override default value for BUILD_CXX
2302   BUILD_NM    Override default value for BUILD_NM
2303   BUILD_AR    Override default value for BUILD_AR
2304   BUILD_OBJCOPY
2305               Override default value for BUILD_OBJCOPY
2306   BUILD_STRIP Override default value for BUILD_STRIP
2307   JTREGEXE    Override default value for JTREGEXE
2308   XMKMF       Path to xmkmf, Makefile generator for X Window System
2309   FREETYPE_CFLAGS
2310               C compiler flags for FREETYPE, overriding pkg-config
2311   FREETYPE_LIBS
2312               linker flags for FREETYPE, overriding pkg-config
2313   ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
2314   ALSA_LIBS   linker flags for ALSA, overriding pkg-config
2315   LIBFFI_CFLAGS
2316               C compiler flags for LIBFFI, overriding pkg-config
2317   LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
2318   PNG_CFLAGS  C compiler flags for PNG, overriding pkg-config
2319   PNG_LIBS    linker flags for PNG, overriding pkg-config
2320   LCMS_CFLAGS C compiler flags for LCMS, overriding pkg-config
2321   LCMS_LIBS   linker flags for LCMS, overriding pkg-config
2322   ICECC_CMD   Override default value for ICECC_CMD
2323   ICECC_CREATE_ENV
2324               Override default value for ICECC_CREATE_ENV
2325   ICECC_WRAPPER
2326               Override default value for ICECC_WRAPPER
2327   CCACHE      Override default value for CCACHE
2328 
2329 Use these variables to override the choices made by `configure' or to help
2330 it to find libraries and programs with nonstandard names/locations.
2331 
2332 Report bugs to <build-dev@openjdk.java.net>.
2333 OpenJDK home page: <http://openjdk.java.net>.
2334 _ACEOF
2335 ac_status=$?
2336 fi
2337 
2338 if test "$ac_init_help" = "recursive"; then
2339   # If there are subdirs, report their specific --help.
2340   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2341     test -d "$ac_dir" ||
2342       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2343       continue
2344     ac_builddir=.
2345 
2346 case "$ac_dir" in
2347 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2348 *)
2349   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2350   # A ".." for each directory in $ac_dir_suffix.
2351   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2352   case $ac_top_builddir_sub in
2353   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2354   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2355   esac ;;
2356 esac
2357 ac_abs_top_builddir=$ac_pwd
2358 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2359 # for backward compatibility:
2360 ac_top_builddir=$ac_top_build_prefix
2361 
2362 case $srcdir in
2363   .)  # We are building in place.
2364     ac_srcdir=.
2365     ac_top_srcdir=$ac_top_builddir_sub
2366     ac_abs_top_srcdir=$ac_pwd ;;
2367   [\\/]* | ?:[\\/]* )  # Absolute name.
2368     ac_srcdir=$srcdir$ac_dir_suffix;
2369     ac_top_srcdir=$srcdir
2370     ac_abs_top_srcdir=$srcdir ;;
2371   *) # Relative name.
2372     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2373     ac_top_srcdir=$ac_top_build_prefix$srcdir
2374     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2375 esac
2376 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2377 
2378     cd "$ac_dir" || { ac_status=$?; continue; }
2379     # Check for guested configure.
2380     if test -f "$ac_srcdir/configure.gnu"; then
2381       echo &&
2382       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2383     elif test -f "$ac_srcdir/configure"; then
2384       echo &&
2385       $SHELL "$ac_srcdir/configure" --help=recursive
2386     else
2387       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2388     fi || ac_status=$?
2389     cd "$ac_pwd" || { ac_status=$?; break; }
2390   done
2391 fi
2392 
2393 test -n "$ac_init_help" && exit $ac_status
2394 if $ac_init_version; then
2395   cat <<\_ACEOF
2396 OpenJDK configure jdk9
2397 generated by GNU Autoconf 2.69
2398 
2399 Copyright (C) 2012 Free Software Foundation, Inc.
2400 This configure script is free software; the Free Software Foundation
2401 gives unlimited permission to copy, distribute and modify it.
2402 _ACEOF
2403   exit
2404 fi
2405 
2406 ## ------------------------ ##
2407 ## Autoconf initialization. ##
2408 ## ------------------------ ##
2409 
2410 # ac_fn_c_try_compile LINENO
2411 # --------------------------
2412 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2413 ac_fn_c_try_compile ()
2414 {
2415   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2416   rm -f conftest.$ac_objext
2417   if { { ac_try="$ac_compile"
2418 case "(($ac_try" in
2419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2420   *) ac_try_echo=$ac_try;;
2421 esac
2422 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2423 $as_echo "$ac_try_echo"; } >&5
2424   (eval "$ac_compile") 2>conftest.err
2425   ac_status=$?
2426   if test -s conftest.err; then
2427     grep -v '^ *+' conftest.err >conftest.er1
2428     cat conftest.er1 >&5
2429     mv -f conftest.er1 conftest.err
2430   fi
2431   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2432   test $ac_status = 0; } && {
2433          test -z "$ac_c_werror_flag" ||
2434          test ! -s conftest.err
2435        } && test -s conftest.$ac_objext; then :
2436   ac_retval=0
2437 else
2438   $as_echo "$as_me: failed program was:" >&5
2439 sed 's/^/| /' conftest.$ac_ext >&5
2440 
2441         ac_retval=1
2442 fi
2443   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2444   as_fn_set_status $ac_retval
2445 
2446 } # ac_fn_c_try_compile
2447 
2448 # ac_fn_cxx_try_compile LINENO
2449 # ----------------------------
2450 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2451 ac_fn_cxx_try_compile ()
2452 {
2453   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2454   rm -f conftest.$ac_objext
2455   if { { ac_try="$ac_compile"
2456 case "(($ac_try" in
2457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2458   *) ac_try_echo=$ac_try;;
2459 esac
2460 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2461 $as_echo "$ac_try_echo"; } >&5
2462   (eval "$ac_compile") 2>conftest.err
2463   ac_status=$?
2464   if test -s conftest.err; then
2465     grep -v '^ *+' conftest.err >conftest.er1
2466     cat conftest.er1 >&5
2467     mv -f conftest.er1 conftest.err
2468   fi
2469   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2470   test $ac_status = 0; } && {
2471          test -z "$ac_cxx_werror_flag" ||
2472          test ! -s conftest.err
2473        } && test -s conftest.$ac_objext; then :
2474   ac_retval=0
2475 else
2476   $as_echo "$as_me: failed program was:" >&5
2477 sed 's/^/| /' conftest.$ac_ext >&5
2478 
2479         ac_retval=1
2480 fi
2481   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2482   as_fn_set_status $ac_retval
2483 
2484 } # ac_fn_cxx_try_compile
2485 
2486 # ac_fn_c_try_cpp LINENO
2487 # ----------------------
2488 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2489 ac_fn_c_try_cpp ()
2490 {
2491   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2492   if { { ac_try="$ac_cpp conftest.$ac_ext"
2493 case "(($ac_try" in
2494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2495   *) ac_try_echo=$ac_try;;
2496 esac
2497 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2498 $as_echo "$ac_try_echo"; } >&5
2499   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2500   ac_status=$?
2501   if test -s conftest.err; then
2502     grep -v '^ *+' conftest.err >conftest.er1
2503     cat conftest.er1 >&5
2504     mv -f conftest.er1 conftest.err
2505   fi
2506   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2507   test $ac_status = 0; } > conftest.i && {
2508          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2509          test ! -s conftest.err
2510        }; then :
2511   ac_retval=0
2512 else
2513   $as_echo "$as_me: failed program was:" >&5
2514 sed 's/^/| /' conftest.$ac_ext >&5
2515 
2516     ac_retval=1
2517 fi
2518   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2519   as_fn_set_status $ac_retval
2520 
2521 } # ac_fn_c_try_cpp
2522 
2523 # ac_fn_cxx_try_cpp LINENO
2524 # ------------------------
2525 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2526 ac_fn_cxx_try_cpp ()
2527 {
2528   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2529   if { { ac_try="$ac_cpp conftest.$ac_ext"
2530 case "(($ac_try" in
2531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2532   *) ac_try_echo=$ac_try;;
2533 esac
2534 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2535 $as_echo "$ac_try_echo"; } >&5
2536   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2537   ac_status=$?
2538   if test -s conftest.err; then
2539     grep -v '^ *+' conftest.err >conftest.er1
2540     cat conftest.er1 >&5
2541     mv -f conftest.er1 conftest.err
2542   fi
2543   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2544   test $ac_status = 0; } > conftest.i && {
2545          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2546          test ! -s conftest.err
2547        }; then :
2548   ac_retval=0
2549 else
2550   $as_echo "$as_me: failed program was:" >&5
2551 sed 's/^/| /' conftest.$ac_ext >&5
2552 
2553     ac_retval=1
2554 fi
2555   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2556   as_fn_set_status $ac_retval
2557 
2558 } # ac_fn_cxx_try_cpp
2559 
2560 # ac_fn_c_try_link LINENO
2561 # -----------------------
2562 # Try to link conftest.$ac_ext, and return whether this succeeded.
2563 ac_fn_c_try_link ()
2564 {
2565   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2566   rm -f conftest.$ac_objext conftest$ac_exeext
2567   if { { ac_try="$ac_link"
2568 case "(($ac_try" in
2569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2570   *) ac_try_echo=$ac_try;;
2571 esac
2572 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2573 $as_echo "$ac_try_echo"; } >&5
2574   (eval "$ac_link") 2>conftest.err
2575   ac_status=$?
2576   if test -s conftest.err; then
2577     grep -v '^ *+' conftest.err >conftest.er1
2578     cat conftest.er1 >&5
2579     mv -f conftest.er1 conftest.err
2580   fi
2581   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2582   test $ac_status = 0; } && {
2583          test -z "$ac_c_werror_flag" ||
2584          test ! -s conftest.err
2585        } && test -s conftest$ac_exeext && {
2586          test "$cross_compiling" = yes ||
2587          test -x conftest$ac_exeext
2588        }; then :
2589   ac_retval=0
2590 else
2591   $as_echo "$as_me: failed program was:" >&5
2592 sed 's/^/| /' conftest.$ac_ext >&5
2593 
2594         ac_retval=1
2595 fi
2596   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2597   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2598   # interfere with the next link command; also delete a directory that is
2599   # left behind by Apple's compiler.  We do this before executing the actions.
2600   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2601   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2602   as_fn_set_status $ac_retval
2603 
2604 } # ac_fn_c_try_link
2605 
2606 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2607 # ---------------------------------------------------------
2608 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2609 # the include files in INCLUDES and setting the cache variable VAR
2610 # accordingly.
2611 ac_fn_cxx_check_header_mongrel ()
2612 {
2613   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2614   if eval \${$3+:} false; then :
2615   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2616 $as_echo_n "checking for $2... " >&6; }
2617 if eval \${$3+:} false; then :
2618   $as_echo_n "(cached) " >&6
2619 fi
2620 eval ac_res=\$$3
2621                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2622 $as_echo "$ac_res" >&6; }
2623 else
2624   # Is the header compilable?
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2626 $as_echo_n "checking $2 usability... " >&6; }
2627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2628 /* end confdefs.h.  */
2629 $4
2630 #include <$2>
2631 _ACEOF
2632 if ac_fn_cxx_try_compile "$LINENO"; then :
2633   ac_header_compiler=yes
2634 else
2635   ac_header_compiler=no
2636 fi
2637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2639 $as_echo "$ac_header_compiler" >&6; }
2640 
2641 # Is the header present?
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2643 $as_echo_n "checking $2 presence... " >&6; }
2644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2645 /* end confdefs.h.  */
2646 #include <$2>
2647 _ACEOF
2648 if ac_fn_cxx_try_cpp "$LINENO"; then :
2649   ac_header_preproc=yes
2650 else
2651   ac_header_preproc=no
2652 fi
2653 rm -f conftest.err conftest.i conftest.$ac_ext
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2655 $as_echo "$ac_header_preproc" >&6; }
2656 
2657 # So?  What about this header?
2658 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2659   yes:no: )
2660     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2661 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2662     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2663 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2664     ;;
2665   no:yes:* )
2666     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2667 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2668     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2669 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2670     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2671 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2672     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2673 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2674     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2675 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2676 ( $as_echo "## ----------------------------------------- ##
2677 ## Report this to build-dev@openjdk.java.net ##
2678 ## ----------------------------------------- ##"
2679      ) | sed "s/^/$as_me: WARNING:     /" >&2
2680     ;;
2681 esac
2682   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2683 $as_echo_n "checking for $2... " >&6; }
2684 if eval \${$3+:} false; then :
2685   $as_echo_n "(cached) " >&6
2686 else
2687   eval "$3=\$ac_header_compiler"
2688 fi
2689 eval ac_res=\$$3
2690                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2691 $as_echo "$ac_res" >&6; }
2692 fi
2693   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2694 
2695 } # ac_fn_cxx_check_header_mongrel
2696 
2697 # ac_fn_cxx_try_run LINENO
2698 # ------------------------
2699 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2700 # that executables *can* be run.
2701 ac_fn_cxx_try_run ()
2702 {
2703   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2704   if { { ac_try="$ac_link"
2705 case "(($ac_try" in
2706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2707   *) ac_try_echo=$ac_try;;
2708 esac
2709 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2710 $as_echo "$ac_try_echo"; } >&5
2711   (eval "$ac_link") 2>&5
2712   ac_status=$?
2713   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2714   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2715   { { case "(($ac_try" in
2716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2717   *) ac_try_echo=$ac_try;;
2718 esac
2719 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2720 $as_echo "$ac_try_echo"; } >&5
2721   (eval "$ac_try") 2>&5
2722   ac_status=$?
2723   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2724   test $ac_status = 0; }; }; then :
2725   ac_retval=0
2726 else
2727   $as_echo "$as_me: program exited with status $ac_status" >&5
2728        $as_echo "$as_me: failed program was:" >&5
2729 sed 's/^/| /' conftest.$ac_ext >&5
2730 
2731        ac_retval=$ac_status
2732 fi
2733   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2734   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2735   as_fn_set_status $ac_retval
2736 
2737 } # ac_fn_cxx_try_run
2738 
2739 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2740 # ---------------------------------------------------------
2741 # Tests whether HEADER exists and can be compiled using the include files in
2742 # INCLUDES, setting the cache variable VAR accordingly.
2743 ac_fn_cxx_check_header_compile ()
2744 {
2745   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2746   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2747 $as_echo_n "checking for $2... " >&6; }
2748 if eval \${$3+:} false; then :
2749   $as_echo_n "(cached) " >&6
2750 else
2751   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2752 /* end confdefs.h.  */
2753 $4
2754 #include <$2>
2755 _ACEOF
2756 if ac_fn_cxx_try_compile "$LINENO"; then :
2757   eval "$3=yes"
2758 else
2759   eval "$3=no"
2760 fi
2761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2762 fi
2763 eval ac_res=\$$3
2764                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2765 $as_echo "$ac_res" >&6; }
2766   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2767 
2768 } # ac_fn_cxx_check_header_compile
2769 
2770 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2771 # ----------------------------------------------
2772 # Tries to find the compile-time value of EXPR in a program that includes
2773 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2774 # computed
2775 ac_fn_cxx_compute_int ()
2776 {
2777   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2778   if test "$cross_compiling" = yes; then
2779     # Depending upon the size, compute the lo and hi bounds.
2780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2781 /* end confdefs.h.  */
2782 $4
2783 int
2784 main ()
2785 {
2786 static int test_array [1 - 2 * !(($2) >= 0)];
2787 test_array [0] = 0;
2788 return test_array [0];
2789 
2790   ;
2791   return 0;
2792 }
2793 _ACEOF
2794 if ac_fn_cxx_try_compile "$LINENO"; then :
2795   ac_lo=0 ac_mid=0
2796   while :; do
2797     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2798 /* end confdefs.h.  */
2799 $4
2800 int
2801 main ()
2802 {
2803 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2804 test_array [0] = 0;
2805 return test_array [0];
2806 
2807   ;
2808   return 0;
2809 }
2810 _ACEOF
2811 if ac_fn_cxx_try_compile "$LINENO"; then :
2812   ac_hi=$ac_mid; break
2813 else
2814   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2815                         if test $ac_lo -le $ac_mid; then
2816                           ac_lo= ac_hi=
2817                           break
2818                         fi
2819                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2820 fi
2821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2822   done
2823 else
2824   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2825 /* end confdefs.h.  */
2826 $4
2827 int
2828 main ()
2829 {
2830 static int test_array [1 - 2 * !(($2) < 0)];
2831 test_array [0] = 0;
2832 return test_array [0];
2833 
2834   ;
2835   return 0;
2836 }
2837 _ACEOF
2838 if ac_fn_cxx_try_compile "$LINENO"; then :
2839   ac_hi=-1 ac_mid=-1
2840   while :; do
2841     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2842 /* end confdefs.h.  */
2843 $4
2844 int
2845 main ()
2846 {
2847 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2848 test_array [0] = 0;
2849 return test_array [0];
2850 
2851   ;
2852   return 0;
2853 }
2854 _ACEOF
2855 if ac_fn_cxx_try_compile "$LINENO"; then :
2856   ac_lo=$ac_mid; break
2857 else
2858   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2859                         if test $ac_mid -le $ac_hi; then
2860                           ac_lo= ac_hi=
2861                           break
2862                         fi
2863                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2864 fi
2865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2866   done
2867 else
2868   ac_lo= ac_hi=
2869 fi
2870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2871 fi
2872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2873 # Binary search between lo and hi bounds.
2874 while test "x$ac_lo" != "x$ac_hi"; do
2875   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2876   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2877 /* end confdefs.h.  */
2878 $4
2879 int
2880 main ()
2881 {
2882 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2883 test_array [0] = 0;
2884 return test_array [0];
2885 
2886   ;
2887   return 0;
2888 }
2889 _ACEOF
2890 if ac_fn_cxx_try_compile "$LINENO"; then :
2891   ac_hi=$ac_mid
2892 else
2893   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2894 fi
2895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2896 done
2897 case $ac_lo in #((
2898 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2899 '') ac_retval=1 ;;
2900 esac
2901   else
2902     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2903 /* end confdefs.h.  */
2904 $4
2905 static long int longval () { return $2; }
2906 static unsigned long int ulongval () { return $2; }
2907 #include <stdio.h>
2908 #include <stdlib.h>
2909 int
2910 main ()
2911 {
2912 
2913   FILE *f = fopen ("conftest.val", "w");
2914   if (! f)
2915     return 1;
2916   if (($2) < 0)
2917     {
2918       long int i = longval ();
2919       if (i != ($2))
2920         return 1;
2921       fprintf (f, "%ld", i);
2922     }
2923   else
2924     {
2925       unsigned long int i = ulongval ();
2926       if (i != ($2))
2927         return 1;
2928       fprintf (f, "%lu", i);
2929     }
2930   /* Do not output a trailing newline, as this causes \r\n confusion
2931      on some platforms.  */
2932   return ferror (f) || fclose (f) != 0;
2933 
2934   ;
2935   return 0;
2936 }
2937 _ACEOF
2938 if ac_fn_cxx_try_run "$LINENO"; then :
2939   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2940 else
2941   ac_retval=1
2942 fi
2943 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2944   conftest.$ac_objext conftest.beam conftest.$ac_ext
2945 rm -f conftest.val
2946 
2947   fi
2948   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2949   as_fn_set_status $ac_retval
2950 
2951 } # ac_fn_cxx_compute_int
2952 
2953 # ac_fn_cxx_try_link LINENO
2954 # -------------------------
2955 # Try to link conftest.$ac_ext, and return whether this succeeded.
2956 ac_fn_cxx_try_link ()
2957 {
2958   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2959   rm -f conftest.$ac_objext conftest$ac_exeext
2960   if { { ac_try="$ac_link"
2961 case "(($ac_try" in
2962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2963   *) ac_try_echo=$ac_try;;
2964 esac
2965 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2966 $as_echo "$ac_try_echo"; } >&5
2967   (eval "$ac_link") 2>conftest.err
2968   ac_status=$?
2969   if test -s conftest.err; then
2970     grep -v '^ *+' conftest.err >conftest.er1
2971     cat conftest.er1 >&5
2972     mv -f conftest.er1 conftest.err
2973   fi
2974   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2975   test $ac_status = 0; } && {
2976          test -z "$ac_cxx_werror_flag" ||
2977          test ! -s conftest.err
2978        } && test -s conftest$ac_exeext && {
2979          test "$cross_compiling" = yes ||
2980          test -x conftest$ac_exeext
2981        }; then :
2982   ac_retval=0
2983 else
2984   $as_echo "$as_me: failed program was:" >&5
2985 sed 's/^/| /' conftest.$ac_ext >&5
2986 
2987         ac_retval=1
2988 fi
2989   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2990   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2991   # interfere with the next link command; also delete a directory that is
2992   # left behind by Apple's compiler.  We do this before executing the actions.
2993   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2994   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2995   as_fn_set_status $ac_retval
2996 
2997 } # ac_fn_cxx_try_link
2998 
2999 # ac_fn_cxx_check_func LINENO FUNC VAR
3000 # ------------------------------------
3001 # Tests whether FUNC exists, setting the cache variable VAR accordingly
3002 ac_fn_cxx_check_func ()
3003 {
3004   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3005   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3006 $as_echo_n "checking for $2... " >&6; }
3007 if eval \${$3+:} false; then :
3008   $as_echo_n "(cached) " >&6
3009 else
3010   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3011 /* end confdefs.h.  */
3012 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
3013    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3014 #define $2 innocuous_$2
3015 
3016 /* System header to define __stub macros and hopefully few prototypes,
3017     which can conflict with char $2 (); below.
3018     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3019     <limits.h> exists even on freestanding compilers.  */
3020 
3021 #ifdef __STDC__
3022 # include <limits.h>
3023 #else
3024 # include <assert.h>
3025 #endif
3026 
3027 #undef $2
3028 
3029 /* Override any GCC internal prototype to avoid an error.
3030    Use char because int might match the return type of a GCC
3031    builtin and then its argument prototype would still apply.  */
3032 #ifdef __cplusplus
3033 extern "C"
3034 #endif
3035 char $2 ();
3036 /* The GNU C library defines this for functions which it implements
3037     to always fail with ENOSYS.  Some functions are actually named
3038     something starting with __ and the normal name is an alias.  */
3039 #if defined __stub_$2 || defined __stub___$2
3040 choke me
3041 #endif
3042 
3043 int
3044 main ()
3045 {
3046 return $2 ();
3047   ;
3048   return 0;
3049 }
3050 _ACEOF
3051 if ac_fn_cxx_try_link "$LINENO"; then :
3052   eval "$3=yes"
3053 else
3054   eval "$3=no"
3055 fi
3056 rm -f core conftest.err conftest.$ac_objext \
3057     conftest$ac_exeext conftest.$ac_ext
3058 fi
3059 eval ac_res=\$$3
3060                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3061 $as_echo "$ac_res" >&6; }
3062   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3063 
3064 } # ac_fn_cxx_check_func
3065 
3066 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
3067 # -------------------------------------------------------
3068 # Tests whether HEADER exists and can be compiled using the include files in
3069 # INCLUDES, setting the cache variable VAR accordingly.
3070 ac_fn_c_check_header_compile ()
3071 {
3072   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3073   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3074 $as_echo_n "checking for $2... " >&6; }
3075 if eval \${$3+:} false; then :
3076   $as_echo_n "(cached) " >&6
3077 else
3078   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3079 /* end confdefs.h.  */
3080 $4
3081 #include <$2>
3082 _ACEOF
3083 if ac_fn_c_try_compile "$LINENO"; then :
3084   eval "$3=yes"
3085 else
3086   eval "$3=no"
3087 fi
3088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3089 fi
3090 eval ac_res=\$$3
3091                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3092 $as_echo "$ac_res" >&6; }
3093   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3094 
3095 } # ac_fn_c_check_header_compile
3096 cat >config.log <<_ACEOF
3097 This file contains any messages produced by compilers while
3098 running configure, to aid debugging if configure makes a mistake.
3099 
3100 It was created by OpenJDK $as_me jdk9, which was
3101 generated by GNU Autoconf 2.69.  Invocation command line was
3102 
3103   $ $0 $@
3104 
3105 _ACEOF
3106 exec 5>>config.log
3107 {
3108 cat <<_ASUNAME
3109 ## --------- ##
3110 ## Platform. ##
3111 ## --------- ##
3112 
3113 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3114 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3115 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3116 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3117 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3118 
3119 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3120 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
3121 
3122 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
3123 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
3124 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3125 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
3126 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
3127 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
3128 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
3129 
3130 _ASUNAME
3131 
3132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3133 for as_dir in $PATH
3134 do
3135   IFS=$as_save_IFS
3136   test -z "$as_dir" && as_dir=.
3137     $as_echo "PATH: $as_dir"
3138   done
3139 IFS=$as_save_IFS
3140 
3141 } >&5
3142 
3143 cat >&5 <<_ACEOF
3144 
3145 
3146 ## ----------- ##
3147 ## Core tests. ##
3148 ## ----------- ##
3149 
3150 _ACEOF
3151 
3152 
3153 # Keep a trace of the command line.
3154 # Strip out --no-create and --no-recursion so they do not pile up.
3155 # Strip out --silent because we don't want to record it for future runs.
3156 # Also quote any args containing shell meta-characters.
3157 # Make two passes to allow for proper duplicate-argument suppression.
3158 ac_configure_args=
3159 ac_configure_args0=
3160 ac_configure_args1=
3161 ac_must_keep_next=false
3162 for ac_pass in 1 2
3163 do
3164   for ac_arg
3165   do
3166     case $ac_arg in
3167     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3168     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3169     | -silent | --silent | --silen | --sile | --sil)
3170       continue ;;
3171     *\'*)
3172       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3173     esac
3174     case $ac_pass in
3175     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3176     2)
3177       as_fn_append ac_configure_args1 " '$ac_arg'"
3178       if test $ac_must_keep_next = true; then
3179         ac_must_keep_next=false # Got value, back to normal.
3180       else
3181         case $ac_arg in
3182           *=* | --config-cache | -C | -disable-* | --disable-* \
3183           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3184           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3185           | -with-* | --with-* | -without-* | --without-* | --x)
3186             case "$ac_configure_args0 " in
3187               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3188             esac
3189             ;;
3190           -* ) ac_must_keep_next=true ;;
3191         esac
3192       fi
3193       as_fn_append ac_configure_args " '$ac_arg'"
3194       ;;
3195     esac
3196   done
3197 done
3198 { ac_configure_args0=; unset ac_configure_args0;}
3199 { ac_configure_args1=; unset ac_configure_args1;}
3200 
3201 # When interrupted or exit'd, cleanup temporary files, and complete
3202 # config.log.  We remove comments because anyway the quotes in there
3203 # would cause problems or look ugly.
3204 # WARNING: Use '\'' to represent an apostrophe within the trap.
3205 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3206 trap 'exit_status=$?
3207   # Save into config.log some information that might help in debugging.
3208   {
3209     echo
3210 
3211     $as_echo "## ---------------- ##
3212 ## Cache variables. ##
3213 ## ---------------- ##"
3214     echo
3215     # The following way of writing the cache mishandles newlines in values,
3216 (
3217   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3218     eval ac_val=\$$ac_var
3219     case $ac_val in #(
3220     *${as_nl}*)
3221       case $ac_var in #(
3222       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3223 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3224       esac
3225       case $ac_var in #(
3226       _ | IFS | as_nl) ;; #(
3227       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3228       *) { eval $ac_var=; unset $ac_var;} ;;
3229       esac ;;
3230     esac
3231   done
3232   (set) 2>&1 |
3233     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3234     *${as_nl}ac_space=\ *)
3235       sed -n \
3236         "s/'\''/'\''\\\\'\'''\''/g;
3237           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3238       ;; #(
3239     *)
3240       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3241       ;;
3242     esac |
3243     sort
3244 )
3245     echo
3246 
3247     $as_echo "## ----------------- ##
3248 ## Output variables. ##
3249 ## ----------------- ##"
3250     echo
3251     for ac_var in $ac_subst_vars
3252     do
3253       eval ac_val=\$$ac_var
3254       case $ac_val in
3255       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3256       esac
3257       $as_echo "$ac_var='\''$ac_val'\''"
3258     done | sort
3259     echo
3260 
3261     if test -n "$ac_subst_files"; then
3262       $as_echo "## ------------------- ##
3263 ## File substitutions. ##
3264 ## ------------------- ##"
3265       echo
3266       for ac_var in $ac_subst_files
3267       do
3268         eval ac_val=\$$ac_var
3269         case $ac_val in
3270         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3271         esac
3272         $as_echo "$ac_var='\''$ac_val'\''"
3273       done | sort
3274       echo
3275     fi
3276 
3277     if test -s confdefs.h; then
3278       $as_echo "## ----------- ##
3279 ## confdefs.h. ##
3280 ## ----------- ##"
3281       echo
3282       cat confdefs.h
3283       echo
3284     fi
3285     test "$ac_signal" != 0 &&
3286       $as_echo "$as_me: caught signal $ac_signal"
3287     $as_echo "$as_me: exit $exit_status"
3288   } >&5
3289   rm -f core *.core core.conftest.* &&
3290     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3291     exit $exit_status
3292 ' 0
3293 for ac_signal in 1 2 13 15; do
3294   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3295 done
3296 ac_signal=0
3297 
3298 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3299 rm -f -r conftest* confdefs.h
3300 
3301 $as_echo "/* confdefs.h */" > confdefs.h
3302 
3303 # Predefined preprocessor variables.
3304 
3305 cat >>confdefs.h <<_ACEOF
3306 #define PACKAGE_NAME "$PACKAGE_NAME"
3307 _ACEOF
3308 
3309 cat >>confdefs.h <<_ACEOF
3310 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3311 _ACEOF
3312 
3313 cat >>confdefs.h <<_ACEOF
3314 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3315 _ACEOF
3316 
3317 cat >>confdefs.h <<_ACEOF
3318 #define PACKAGE_STRING "$PACKAGE_STRING"
3319 _ACEOF
3320 
3321 cat >>confdefs.h <<_ACEOF
3322 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3323 _ACEOF
3324 
3325 cat >>confdefs.h <<_ACEOF
3326 #define PACKAGE_URL "$PACKAGE_URL"
3327 _ACEOF
3328 
3329 
3330 # Let the site file select an alternate cache file if it wants to.
3331 # Prefer an explicitly selected file to automatically selected ones.
3332 ac_site_file1=NONE
3333 ac_site_file2=NONE
3334 if test -n "$CONFIG_SITE"; then
3335   # We do not want a PATH search for config.site.
3336   case $CONFIG_SITE in #((
3337     -*)  ac_site_file1=./$CONFIG_SITE;;
3338     */*) ac_site_file1=$CONFIG_SITE;;
3339     *)   ac_site_file1=./$CONFIG_SITE;;
3340   esac
3341 elif test "x$prefix" != xNONE; then
3342   ac_site_file1=$prefix/share/config.site
3343   ac_site_file2=$prefix/etc/config.site
3344 else
3345   ac_site_file1=$ac_default_prefix/share/config.site
3346   ac_site_file2=$ac_default_prefix/etc/config.site
3347 fi
3348 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3349 do
3350   test "x$ac_site_file" = xNONE && continue
3351   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3352     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3353 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3354     sed 's/^/| /' "$ac_site_file" >&5
3355     . "$ac_site_file" \
3356       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3357 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3358 as_fn_error $? "failed to load site script $ac_site_file
3359 See \`config.log' for more details" "$LINENO" 5; }
3360   fi
3361 done
3362 
3363 if test -r "$cache_file"; then
3364   # Some versions of bash will fail to source /dev/null (special files
3365   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3366   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3367     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3368 $as_echo "$as_me: loading cache $cache_file" >&6;}
3369     case $cache_file in
3370       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3371       *)                      . "./$cache_file";;
3372     esac
3373   fi
3374 else
3375   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3376 $as_echo "$as_me: creating cache $cache_file" >&6;}
3377   >$cache_file
3378 fi
3379 
3380 # Check that the precious variables saved in the cache have kept the same
3381 # value.
3382 ac_cache_corrupted=false
3383 for ac_var in $ac_precious_vars; do
3384   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3385   eval ac_new_set=\$ac_env_${ac_var}_set
3386   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3387   eval ac_new_val=\$ac_env_${ac_var}_value
3388   case $ac_old_set,$ac_new_set in
3389     set,)
3390       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3391 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3392       ac_cache_corrupted=: ;;
3393     ,set)
3394       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3395 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3396       ac_cache_corrupted=: ;;
3397     ,);;
3398     *)
3399       if test "x$ac_old_val" != "x$ac_new_val"; then
3400         # differences in whitespace do not lead to failure.
3401         ac_old_val_w=`echo x $ac_old_val`
3402         ac_new_val_w=`echo x $ac_new_val`
3403         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3404           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3405 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3406           ac_cache_corrupted=:
3407         else
3408           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3409 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3410           eval $ac_var=\$ac_old_val
3411         fi
3412         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3413 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3414         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3415 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3416       fi;;
3417   esac
3418   # Pass precious variables to config.status.
3419   if test "$ac_new_set" = set; then
3420     case $ac_new_val in
3421     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3422     *) ac_arg=$ac_var=$ac_new_val ;;
3423     esac
3424     case " $ac_configure_args " in
3425       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3426       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3427     esac
3428   fi
3429 done
3430 if $ac_cache_corrupted; then
3431   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3432 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3433   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3434 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3435   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3436 fi
3437 ## -------------------- ##
3438 ## Main body of script. ##
3439 ## -------------------- ##
3440 
3441 ac_ext=c
3442 ac_cpp='$CPP $CPPFLAGS'
3443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3446 
3447 
3448 
3449 ac_aux_dir=
3450 for ac_dir in $TOPDIR/make/autoconf/build-aux "$srcdir"/$TOPDIR/make/autoconf/build-aux; do
3451   if test -f "$ac_dir/install-sh"; then
3452     ac_aux_dir=$ac_dir
3453     ac_install_sh="$ac_aux_dir/install-sh -c"
3454     break
3455   elif test -f "$ac_dir/install.sh"; then
3456     ac_aux_dir=$ac_dir
3457     ac_install_sh="$ac_aux_dir/install.sh -c"
3458     break
3459   elif test -f "$ac_dir/shtool"; then
3460     ac_aux_dir=$ac_dir
3461     ac_install_sh="$ac_aux_dir/shtool install -c"
3462     break
3463   fi
3464 done
3465 if test -z "$ac_aux_dir"; then
3466   as_fn_error $? "cannot find install-sh, install.sh, or shtool in $TOPDIR/make/autoconf/build-aux \"$srcdir\"/$TOPDIR/make/autoconf/build-aux" "$LINENO" 5
3467 fi
3468 
3469 # These three variables are undocumented and unsupported,
3470 # and are intended to be withdrawn in a future Autoconf release.
3471 # They can cause serious problems if a builder's source tree is in a directory
3472 # whose full name contains unusual characters.
3473 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3474 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3475 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3476 
3477 
3478 # pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
3479 
3480 #
3481 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
3482 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3483 #
3484 # This code is free software; you can redistribute it and/or modify it
3485 # under the terms of the GNU General Public License version 2 only, as
3486 # published by the Free Software Foundation.  Oracle designates this
3487 # particular file as subject to the "Classpath" exception as provided
3488 # by Oracle in the LICENSE file that accompanied this code.
3489 #
3490 # This code is distributed in the hope that it will be useful, but WITHOUT
3491 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3492 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3493 # version 2 for more details (a copy is included in the LICENSE file that
3494 # accompanied this code).
3495 #
3496 # You should have received a copy of the GNU General Public License version
3497 # 2 along with this work; if not, write to the Free Software Foundation,
3498 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3499 #
3500 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3501 # or visit www.oracle.com if you need additional information or have any
3502 # questions.
3503 #
3504 
3505 #
3506 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
3507 #
3508 # This program is free software; you can redistribute it and/or modify
3509 # it under the terms of the GNU General Public License as published by
3510 # the Free Software Foundation; either version 2 of the License, or
3511 # (at your option) any later version.
3512 #
3513 # This program is distributed in the hope that it will be useful, but
3514 # WITHOUT ANY WARRANTY; without even the implied warranty of
3515 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
3516 # General Public License for more details.
3517 #
3518 # You should have received a copy of the GNU General Public License
3519 # along with this program; if not, write to the Free Software
3520 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
3521 #
3522 # As a special exception to the GNU General Public License, if you
3523 # distribute this file as part of a program that contains a
3524 # configuration script generated by Autoconf, you may include it under
3525 # the same distribution terms that you use for the rest of that program.
3526 
3527 # PKG_PROG_PKG_CONFIG([MIN-VERSION])
3528 # ----------------------------------
3529 # PKG_PROG_PKG_CONFIG
3530 
3531 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
3532 #
3533 # Check to see whether a particular set of modules exists.  Similar
3534 # to PKG_CHECK_MODULES(), but does not set variables or print errors.
3535 #
3536 #
3537 # Similar to PKG_CHECK_MODULES, make sure that the first instance of
3538 # this or PKG_CHECK_MODULES is called, or make sure to call
3539 # PKG_CHECK_EXISTS manually
3540 # --------------------------------------------------------------
3541 
3542 
3543 
3544 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
3545 # ---------------------------------------------
3546 # _PKG_CONFIG
3547 
3548 # _PKG_SHORT_ERRORS_SUPPORTED
3549 # -----------------------------
3550 # _PKG_SHORT_ERRORS_SUPPORTED
3551 
3552 
3553 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
3554 # [ACTION-IF-NOT-FOUND])
3555 #
3556 #
3557 # Note that if there is a possibility the first call to
3558 # PKG_CHECK_MODULES might not happen, you should be sure to include an
3559 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
3560 #
3561 #
3562 # --------------------------------------------------------------
3563 # PKG_CHECK_MODULES
3564 
3565 
3566 # Include these first...
3567 #
3568 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
3569 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3570 #
3571 # This code is free software; you can redistribute it and/or modify it
3572 # under the terms of the GNU General Public License version 2 only, as
3573 # published by the Free Software Foundation.  Oracle designates this
3574 # particular file as subject to the "Classpath" exception as provided
3575 # by Oracle in the LICENSE file that accompanied this code.
3576 #
3577 # This code is distributed in the hope that it will be useful, but WITHOUT
3578 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3579 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3580 # version 2 for more details (a copy is included in the LICENSE file that
3581 # accompanied this code).
3582 #
3583 # You should have received a copy of the GNU General Public License version
3584 # 2 along with this work; if not, write to the Free Software Foundation,
3585 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3586 #
3587 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3588 # or visit www.oracle.com if you need additional information or have any
3589 # questions.
3590 #
3591 
3592 # Create a function/macro that takes a series of named arguments. The call is
3593 # similar to AC_DEFUN, but the setup of the function looks like this:
3594 # BASIC_DEFUN_NAMED([MYFUNC], [FOO *BAR], [$@], [
3595 # ... do something
3596 #   AC_MSG_NOTICE([Value of BAR is ARG_BAR])
3597 # ])
3598 # A star (*) in front of a named argument means that it is required and it's
3599 # presence will be verified. To pass e.g. the first value as a normal indexed
3600 # argument, use [m4_shift($@)] as the third argument instead of [$@]. These
3601 # arguments are referenced in the function by their name prefixed by ARG_, e.g.
3602 # "ARG_FOO".
3603 #
3604 # The generated function can be called like this:
3605 # MYFUNC(FOO: [foo-val],
3606 #     BAR: [
3607 #         $ECHO hello world
3608 #     ])
3609 # Note that the argument value must start on the same line as the argument name.
3610 #
3611 # Argument 1: Name of the function to define
3612 # Argument 2: List of legal named arguments, with a * prefix for required arguments
3613 # Argument 3: Argument array to treat as named, typically $@
3614 # Argument 4: The main function body
3615 
3616 
3617 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3)
3618 # If so, then append $1 to $2 \
3619 # Also set JVM_ARG_OK to true/false depending on outcome.
3620 
3621 
3622 # Appends a string to a path variable, only adding the : when needed.
3623 
3624 
3625 # Prepends a string to a path variable, only adding the : when needed.
3626 
3627 
3628 # This will make sure the given variable points to a full and proper
3629 # path. This means:
3630 # 1) There will be no spaces in the path. On unix platforms,
3631 #    spaces in the path will result in an error. On Windows,
3632 #    the path will be rewritten using short-style to be space-free.
3633 # 2) The path will be absolute, and it will be in unix-style (on
3634 #     cygwin).
3635 # $1: The name of the variable to fix
3636 
3637 
3638 # This will make sure the given variable points to a executable
3639 # with a full and proper path. This means:
3640 # 1) There will be no spaces in the path. On unix platforms,
3641 #    spaces in the path will result in an error. On Windows,
3642 #    the path will be rewritten using short-style to be space-free.
3643 # 2) The path will be absolute, and it will be in unix-style (on
3644 #     cygwin).
3645 # Any arguments given to the executable is preserved.
3646 # If the input variable does not have a directory specification, then
3647 # it need to be in the PATH.
3648 # $1: The name of the variable to fix
3649 
3650 
3651 
3652 
3653 # Register a --with argument but mark it as deprecated
3654 # $1: The name of the with argument to deprecate, not including --with-
3655 
3656 
3657 # Register a --enable argument but mark it as deprecated
3658 # $1: The name of the with argument to deprecate, not including --enable-
3659 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -)
3660 # $3: Messages to user.
3661 
3662 
3663 
3664 
3665 # Test that variable $1 denoting a program is not empty. If empty, exit with an error.
3666 # $1: variable to check
3667 
3668 
3669 # Check that there are no unprocessed overridden variables left.
3670 # If so, they are an incorrect argument and we will exit with an error.
3671 
3672 
3673 # Setup a tool for the given variable. If correctly specified by the user,
3674 # use that value, otherwise search for the tool using the supplied code snippet.
3675 # $1: variable to set
3676 # $2: code snippet to call to look for the tool
3677 # $3: code snippet to call if variable was used to find tool
3678 
3679 
3680 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool
3681 # $1: variable to set
3682 # $2: executable name (or list of names) to look for
3683 # $3: [path]
3684 
3685 
3686 # Call BASIC_SETUP_TOOL with AC_CHECK_TOOLS to locate the tool
3687 # $1: variable to set
3688 # $2: executable name (or list of names) to look for
3689 
3690 
3691 # Like BASIC_PATH_PROGS but fails if no tool was found.
3692 # $1: variable to set
3693 # $2: executable name (or list of names) to look for
3694 # $3: [path]
3695 
3696 
3697 # Like BASIC_SETUP_TOOL but fails if no tool was found.
3698 # $1: variable to set
3699 # $2: autoconf macro to call to look for the special tool
3700 
3701 
3702 # Setup the most fundamental tools that relies on not much else to set up,
3703 # but is used by much of the early bootstrap code.
3704 
3705 
3706 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3707 
3708 
3709 # Evaluates platform specific overrides for devkit variables.
3710 # $1: Name of variable
3711 
3712 
3713 
3714 
3715 
3716 
3717 #%%% Simple tools %%%
3718 
3719 # Check if we have found a usable version of make
3720 # $1: the path to a potential make binary (or empty)
3721 # $2: the description on how we found this
3722 
3723 
3724 
3725 
3726 # Goes looking for a usable version of GNU make.
3727 
3728 
3729 
3730 
3731 
3732 
3733 
3734 
3735 
3736 
3737 # Check if build directory is on local disk. If not possible to determine,
3738 # we prefer to claim it's local.
3739 # Argument 1: directory to test
3740 # Argument 2: what to do if it is on local disk
3741 # Argument 3: what to do otherwise (remote disk or failure)
3742 
3743 
3744 # Check that source files have basic read permissions set. This might
3745 # not be the case in cygwin in certain conditions.
3746 
3747 
3748 
3749 
3750 # Check for support for specific options in bash
3751 
3752 
3753 ################################################################################
3754 #
3755 # Default make target
3756 #
3757 
3758 
3759 # Code to run after AC_OUTPUT
3760 
3761 
3762 #
3763 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
3764 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3765 #
3766 # This code is free software; you can redistribute it and/or modify it
3767 # under the terms of the GNU General Public License version 2 only, as
3768 # published by the Free Software Foundation.  Oracle designates this
3769 # particular file as subject to the "Classpath" exception as provided
3770 # by Oracle in the LICENSE file that accompanied this code.
3771 #
3772 # This code is distributed in the hope that it will be useful, but WITHOUT
3773 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3774 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3775 # version 2 for more details (a copy is included in the LICENSE file that
3776 # accompanied this code).
3777 #
3778 # You should have received a copy of the GNU General Public License version
3779 # 2 along with this work; if not, write to the Free Software Foundation,
3780 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3781 #
3782 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3783 # or visit www.oracle.com if you need additional information or have any
3784 # questions.
3785 #
3786 
3787 
3788 
3789 
3790 
3791 # Helper function which possibly converts a path using DOS-style short mode.
3792 # If so, the updated path is stored in $new_path.
3793 # $1: The path to check
3794 
3795 
3796 # Helper function which possibly converts a path using DOS-style short mode.
3797 # If so, the updated path is stored in $new_path.
3798 # $1: The path to check
3799 
3800 
3801 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted
3802 # and could probably be heavily simplified. However, all changes in this
3803 # area tend to need lot of testing in different scenarios, and in lack of
3804 # proper unit testing, cleaning this up has not been deemed worth the effort
3805 # at the moment.
3806 
3807 
3808 
3809 
3810 
3811 
3812 
3813 
3814 
3815 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3816 
3817 
3818 
3819 
3820 # ... then the rest
3821 #
3822 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
3823 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3824 #
3825 # This code is free software; you can redistribute it and/or modify it
3826 # under the terms of the GNU General Public License version 2 only, as
3827 # published by the Free Software Foundation.  Oracle designates this
3828 # particular file as subject to the "Classpath" exception as provided
3829 # by Oracle in the LICENSE file that accompanied this code.
3830 #
3831 # This code is distributed in the hope that it will be useful, but WITHOUT
3832 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3833 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3834 # version 2 for more details (a copy is included in the LICENSE file that
3835 # accompanied this code).
3836 #
3837 # You should have received a copy of the GNU General Public License version
3838 # 2 along with this work; if not, write to the Free Software Foundation,
3839 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3840 #
3841 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3842 # or visit www.oracle.com if you need additional information or have any
3843 # questions.
3844 #
3845 
3846 ########################################################################
3847 # This file handles detection of the Boot JDK. The Boot JDK detection
3848 # process has been developed as a response to solve a complex real-world
3849 # problem. Initially, it was simple, but it has grown as platform after
3850 # platform, idiosyncracy after idiosyncracy has been supported.
3851 #
3852 # The basic idea is this:
3853 # 1) You need an acceptable *) JDK to use as a Boot JDK
3854 # 2) There are several ways to locate a JDK, that are mostly platform
3855 #    dependent **)
3856 # 3) You can have multiple JDKs installed
3857 # 4) If possible, configure should try to dig out an acceptable JDK
3858 #    automatically, without having to resort to command-line options
3859 #
3860 # *)  acceptable means e.g. JDK7 for building JDK8, a complete JDK (with
3861 #     javac) and not a JRE, etc.
3862 #
3863 # **) On Windows we typically use a well-known path.
3864 #     On MacOSX we typically use the tool java_home.
3865 #     On Linux we typically find javac in the $PATH, and then follow a
3866 #     chain of symlinks that often ends up in a real JDK.
3867 #
3868 # This leads to the code where we check in different ways to locate a
3869 # JDK, and if one is found, check if it is acceptable. If not, we print
3870 # our reasons for rejecting it (useful when debugging non-working
3871 # configure situations) and continue checking the next one.
3872 ########################################################################
3873 
3874 # Execute the check given as argument, and verify the result
3875 # If the Boot JDK was previously found, do nothing
3876 # $1 A command line (typically autoconf macro) to execute
3877 
3878 
3879 # Test: Is bootjdk explicitly set by command line arguments?
3880 
3881 
3882 # Test: Is $JAVA_HOME set?
3883 
3884 
3885 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
3886 
3887 
3888 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX)
3889 # $1: Argument to the java_home binary (optional)
3890 
3891 
3892 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home?
3893 
3894 
3895 # Look for a jdk in the given path. If there are multiple, try to select the newest.
3896 # If found, set BOOT_JDK and BOOT_JDK_FOUND.
3897 # $1 = Path to directory containing jdk installations.
3898 # $2 = String to append to the found JDK directory to get the proper JDK home
3899 
3900 
3901 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given
3902 # environmental variable as base for where to look.
3903 # $1 Name of an environmal variable, assumed to point to the Program Files directory.
3904 
3905 
3906 # Test: Is there a JDK installed in default, well-known locations?
3907 
3908 
3909 # Check that a command-line tool in the Boot JDK is correct
3910 # $1 = name of variable to assign
3911 # $2 = name of binary
3912 
3913 
3914 ###############################################################################
3915 #
3916 # We need a Boot JDK to bootstrap the build.
3917 #
3918 
3919 
3920 
3921 
3922 
3923 # BUILD_JDK: the location of the latest JDK that can run
3924 #   on the host system and supports the target class file version
3925 #   generated in this JDK build.  This variable should only be
3926 #   used after the launchers are built.
3927 #
3928 
3929 # Execute the check given as argument, and verify the result.
3930 # If the JDK was previously found, do nothing.
3931 # $1 A command line (typically autoconf macro) to execute
3932 
3933 
3934 # By default the BUILD_JDK is the JDK_OUTPUTDIR.  If the target architecture
3935 # is different than the host system doing the build (e.g. cross-compilation),
3936 # a special BUILD_JDK is built as part of the build process.  An external
3937 # prebuilt BUILD_JDK can also be supplied.
3938 
3939 
3940 #
3941 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
3942 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3943 #
3944 # This code is free software; you can redistribute it and/or modify it
3945 # under the terms of the GNU General Public License version 2 only, as
3946 # published by the Free Software Foundation.  Oracle designates this
3947 # particular file as subject to the "Classpath" exception as provided
3948 # by Oracle in the LICENSE file that accompanied this code.
3949 #
3950 # This code is distributed in the hope that it will be useful, but WITHOUT
3951 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3952 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3953 # version 2 for more details (a copy is included in the LICENSE file that
3954 # accompanied this code).
3955 #
3956 # You should have received a copy of the GNU General Public License version
3957 # 2 along with this work; if not, write to the Free Software Foundation,
3958 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3959 #
3960 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3961 # or visit www.oracle.com if you need additional information or have any
3962 # questions.
3963 #
3964 
3965 
3966 
3967 
3968 
3969 
3970 
3971 
3972 
3973 
3974 
3975 
3976 
3977 
3978 
3979 
3980 
3981 ################################################################################
3982 #
3983 # Runs icecc-create-env once and prints the error if it fails
3984 #
3985 # $1: arguments to icecc-create-env
3986 # $2: log file
3987 #
3988 
3989 
3990 ################################################################################
3991 #
3992 # Optionally enable distributed compilation of native code using icecc/icecream
3993 #
3994 
3995 
3996 
3997 
3998 
3999 
4000 
4001 #
4002 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
4003 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4004 #
4005 # This code is free software; you can redistribute it and/or modify it
4006 # under the terms of the GNU General Public License version 2 only, as
4007 # published by the Free Software Foundation.  Oracle designates this
4008 # particular file as subject to the "Classpath" exception as provided
4009 # by Oracle in the LICENSE file that accompanied this code.
4010 #
4011 # This code is distributed in the hope that it will be useful, but WITHOUT
4012 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4013 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4014 # version 2 for more details (a copy is included in the LICENSE file that
4015 # accompanied this code).
4016 #
4017 # You should have received a copy of the GNU General Public License version
4018 # 2 along with this work; if not, write to the Free Software Foundation,
4019 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4020 #
4021 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4022 # or visit www.oracle.com if you need additional information or have any
4023 # questions.
4024 #
4025 
4026 ################################################################################
4027 #
4028 # Setup ABI profile (for arm)
4029 #
4030 
4031 
4032 # Reset the global CFLAGS/LDFLAGS variables and initialize them with the
4033 # corresponding configure arguments instead
4034 
4035 
4036 # Setup the sysroot flags and add them to global CFLAGS and LDFLAGS so
4037 # that configure can use them while detecting compilers.
4038 # TOOLCHAIN_TYPE is available here.
4039 # Param 1 - Optional prefix to all variables. (e.g BUILD_)
4040 
4041 
4042 
4043 
4044 
4045 
4046 # Documentation on common flags used for solstudio in HIGHEST.
4047 #
4048 # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be
4049 #          done with care, there are some assumptions below that need to
4050 #          be understood about the use of pointers, and IEEE behavior.
4051 #
4052 # -fns: Use non-standard floating point mode (not IEEE 754)
4053 # -fsimple: Do some simplification of floating point arithmetic (not IEEE 754)
4054 # -fsingle: Use single precision floating point with 'float'
4055 # -xalias_level=basic: Assume memory references via basic pointer types do not alias
4056 #   (Source with excessing pointer casting and data access with mixed
4057 #    pointer types are not recommended)
4058 # -xbuiltin=%all: Use intrinsic or inline versions for math/std functions
4059 #   (If you expect perfect errno behavior, do not use this)
4060 # -xdepend: Loop data dependency optimizations (need -xO3 or higher)
4061 # -xrestrict: Pointer parameters to functions do not overlap
4062 #   (Similar to -xalias_level=basic usage, but less obvious sometimes.
4063 #    If you pass in multiple pointers to the same data, do not use this)
4064 # -xlibmil: Inline some library routines
4065 #   (If you expect perfect errno behavior, do not use this)
4066 # -xlibmopt: Use optimized math routines (CURRENTLY DISABLED)
4067 #   (If you expect perfect errno behavior, do not use this)
4068 #  Can cause undefined external on Solaris 8 X86 on __sincos, removing for now
4069 
4070     # FIXME: this will never happen since sparc != sparcv9, ie 32 bit, which we don't build anymore.
4071     # Bug?
4072     #if test "x$OPENJDK_TARGET_CPU" = xsparc; then
4073     #  CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s"
4074     #  CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s"
4075     #fi
4076 
4077 
4078 
4079 
4080 
4081 
4082 ################################################################################
4083 # $1 - Either BUILD or TARGET to pick the correct OS/CPU variables to check
4084 #      conditionals against.
4085 # $2 - Optional prefix for each variable defined.
4086 
4087 
4088 # FLAGS_C_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_CXX_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE],
4097 #                                    IF_FALSE: [RUN-IF-FALSE])
4098 # ------------------------------------------------------------
4099 # Check that the C++ compiler supports an argument
4100 
4101 
4102 
4103 
4104 # FLAGS_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE],
4105 #                                IF_FALSE: [RUN-IF-FALSE])
4106 # ------------------------------------------------------------
4107 # Check that the C and C++ compilers support an argument
4108 
4109 
4110 
4111 
4112 # FLAGS_LINKER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE],
4113 #                                   IF_FALSE: [RUN-IF-FALSE])
4114 # ------------------------------------------------------------
4115 # Check that the linker support an argument
4116 
4117 
4118 
4119 
4120 
4121 
4122 # FLAGS_SETUP_GCC6_COMPILER_FLAGS([PREFIX])
4123 # Arguments:
4124 # $1 - Optional prefix for each variable defined.
4125 
4126 
4127 #
4128 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
4129 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4130 #
4131 # This code is free software; you can redistribute it and/or modify it
4132 # under the terms of the GNU General Public License version 2 only, as
4133 # published by the Free Software Foundation.  Oracle designates this
4134 # particular file as subject to the "Classpath" exception as provided
4135 # by Oracle in the LICENSE file that accompanied this code.
4136 #
4137 # This code is distributed in the hope that it will be useful, but WITHOUT
4138 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4139 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4140 # version 2 for more details (a copy is included in the LICENSE file that
4141 # accompanied this code).
4142 #
4143 # You should have received a copy of the GNU General Public License version
4144 # 2 along with this work; if not, write to the Free Software Foundation,
4145 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4146 #
4147 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4148 # or visit www.oracle.com if you need additional information or have any
4149 # questions.
4150 #
4151 
4152 
4153 
4154 
4155 
4156 cygwin_help() {
4157   case $1 in
4158     unzip)
4159       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )"
4160       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
4161       ;;
4162     zip)
4163       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )"
4164       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
4165       ;;
4166     make)
4167       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )"
4168       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
4169       ;;
4170     freetype)
4171       HELP_MSG="
4172 The freetype library can now be build during the configure process.
4173 Download the freetype sources and unpack them into an arbitrary directory:
4174 
4175 wget http://download.savannah.gnu.org/releases/freetype/freetype-2.5.3.tar.gz
4176 tar -xzf freetype-2.5.3.tar.gz
4177 
4178 Then run configure with '--with-freetype-src=<freetype_src>'. This will
4179 automatically build the freetype library into '<freetype_src>/lib64' for 64-bit
4180 builds or into '<freetype_src>/lib32' for 32-bit builds.
4181 Afterwards you can always use '--with-freetype-include=<freetype_src>/include'
4182 and '--with-freetype-lib=<freetype_src>/lib32|64' for other builds.
4183 
4184 Alternatively you can unpack the sources like this to use the default directory:
4185 
4186 tar --one-top-level=$HOME/freetype --strip-components=1 -xzf freetype-2.5.3.tar.gz"
4187       ;;
4188   esac
4189 }
4190 
4191 msys_help() {
4192   PKGHANDLER_COMMAND=""
4193 }
4194 
4195 apt_help() {
4196   case $1 in
4197     reduced)
4198       PKGHANDLER_COMMAND="sudo apt-get install gcc-multilib g++-multilib" ;;
4199     devkit)
4200       PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;;
4201     openjdk)
4202       PKGHANDLER_COMMAND="sudo apt-get install openjdk-8-jdk" ;;
4203     alsa)
4204       PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;;
4205     cups)
4206       PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;;
4207     fontconfig)
4208       PKGHANDLER_COMMAND="sudo apt-get install libfontconfig1-dev" ;;
4209     freetype)
4210       PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;;
4211     ffi)
4212       PKGHANDLER_COMMAND="sudo apt-get install libffi-dev" ;;
4213     x11)
4214       PKGHANDLER_COMMAND="sudo apt-get install libx11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;;
4215     ccache)
4216       PKGHANDLER_COMMAND="sudo apt-get install ccache" ;;
4217     dtrace)
4218       PKGHANDLER_COMMAND="sudo apt-get install systemtap-sdt-dev" ;;
4219   esac
4220 }
4221 
4222 yum_help() {
4223   case $1 in
4224     devkit)
4225       PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;;
4226     openjdk)
4227       PKGHANDLER_COMMAND="sudo yum install java-1.8.0-openjdk-devel" ;;
4228     alsa)
4229       PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;;
4230     cups)
4231       PKGHANDLER_COMMAND="sudo yum install cups-devel" ;;
4232     fontconfig)
4233       PKGHANDLER_COMMAND="sudo yum install fontconfig-devel" ;;
4234     freetype)
4235       PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;;
4236     x11)
4237       PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel libXi-devel" ;;
4238     ccache)
4239       PKGHANDLER_COMMAND="sudo yum install ccache" ;;
4240   esac
4241 }
4242 
4243 brew_help() {
4244   case $1 in
4245     openjdk)
4246       PKGHANDLER_COMMAND="brew cask install java" ;;
4247     freetype)
4248       PKGHANDLER_COMMAND="brew install freetype" ;;
4249     ccache)
4250       PKGHANDLER_COMMAND="brew install ccache" ;;
4251   esac
4252 }
4253 
4254 port_help() {
4255   PKGHANDLER_COMMAND=""
4256 }
4257 
4258 pkgutil_help() {
4259   PKGHANDLER_COMMAND=""
4260 }
4261 
4262 pkgadd_help() {
4263   PKGHANDLER_COMMAND=""
4264 }
4265 
4266 # This function will check if we're called from the "configure" wrapper while
4267 # printing --help. If so, we will print out additional information that can
4268 # only be extracted within the autoconf script, and then exit. This must be
4269 # called at the very beginning in configure.ac.
4270 
4271 
4272 
4273 
4274 
4275 
4276 #
4277 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
4278 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4279 #
4280 # This code is free software; you can redistribute it and/or modify it
4281 # under the terms of the GNU General Public License version 2 only, as
4282 # published by the Free Software Foundation.  Oracle designates this
4283 # particular file as subject to the "Classpath" exception as provided
4284 # by Oracle in the LICENSE file that accompanied this code.
4285 #
4286 # This code is distributed in the hope that it will be useful, but WITHOUT
4287 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4288 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4289 # version 2 for more details (a copy is included in the LICENSE file that
4290 # accompanied this code).
4291 #
4292 # You should have received a copy of the GNU General Public License version
4293 # 2 along with this work; if not, write to the Free Software Foundation,
4294 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4295 #
4296 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4297 # or visit www.oracle.com if you need additional information or have any
4298 # questions.
4299 #
4300 
4301 # All valid JVM features, regardless of platform
4302 VALID_JVM_FEATURES="compiler1 compiler2 zero minimal dtrace jvmti jvmci \
4303     graal vm-structs jni-check services management all-gcs nmt cds \
4304     static-build link-time-opt aot"
4305 
4306 # All valid JVM variants
4307 VALID_JVM_VARIANTS="server client minimal core zero custom"
4308 
4309 ###############################################################################
4310 # Check if the specified JVM variant should be built. To be used in shell if
4311 # constructs, like this:
4312 # if HOTSPOT_CHECK_JVM_VARIANT(server); then
4313 #
4314 # Only valid to use after HOTSPOT_SETUP_JVM_VARIANTS has setup variants.
4315 
4316 # Definition kept in one line to allow inlining in if statements.
4317 # Additional [] needed to keep m4 from mangling shell constructs.
4318 
4319 
4320 ###############################################################################
4321 # Check if the specified JVM features are explicitly enabled. To be used in
4322 # shell if constructs, like this:
4323 # if HOTSPOT_CHECK_JVM_FEATURE(jvmti); then
4324 #
4325 # Only valid to use after HOTSPOT_SETUP_JVM_FEATURES has setup features.
4326 
4327 # Definition kept in one line to allow inlining in if statements.
4328 # Additional [] needed to keep m4 from mangling shell constructs.
4329 
4330 
4331 ###############################################################################
4332 # Check which variants of the JVM that we want to build. Available variants are:
4333 #   server: normal interpreter, and a tiered C1/C2 compiler
4334 #   client: normal interpreter, and C1 (no C2 compiler)
4335 #   minimal: reduced form of client with optional features stripped out
4336 #   core: normal interpreter only, no compiler
4337 #   zero: C++ based interpreter only, no compiler
4338 #   custom: baseline JVM with no default features
4339 #
4340 
4341 
4342 ###############################################################################
4343 # Check if dtrace should be enabled and has all prerequisites present.
4344 #
4345 
4346 
4347 ################################################################################
4348 # Check if AOT should be enabled
4349 #
4350 
4351 
4352 ################################################################################
4353 # Allow to disable CDS
4354 #
4355 
4356 
4357 ###############################################################################
4358 # Set up all JVM features for each JVM variant.
4359 #
4360 
4361 
4362 ###############################################################################
4363 # Validate JVM features once all setup is complete, including custom setup.
4364 #
4365 
4366 
4367 ################################################################################
4368 #
4369 # Specify which sources will be used to build the 64-bit ARM port
4370 #
4371 # --with-cpu-port=arm64   will use hotspot/src/cpu/arm
4372 # --with-cpu-port=aarch64 will use hotspot/src/cpu/aarch64
4373 #
4374 
4375 
4376 
4377 ################################################################################
4378 # Check if gtest should be built
4379 #
4380 
4381 
4382 #
4383 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
4384 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4385 #
4386 # This code is free software; you can redistribute it and/or modify it
4387 # under the terms of the GNU General Public License version 2 only, as
4388 # published by the Free Software Foundation.  Oracle designates this
4389 # particular file as subject to the "Classpath" exception as provided
4390 # by Oracle in the LICENSE file that accompanied this code.
4391 #
4392 # This code is distributed in the hope that it will be useful, but WITHOUT
4393 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4394 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4395 # version 2 for more details (a copy is included in the LICENSE file that
4396 # accompanied this code).
4397 #
4398 # You should have received a copy of the GNU General Public License version
4399 # 2 along with this work; if not, write to the Free Software Foundation,
4400 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4401 #
4402 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4403 # or visit www.oracle.com if you need additional information or have any
4404 # questions.
4405 #
4406 
4407 ###############################################################################
4408 # Check which variant of the JDK that we want to build.
4409 # Currently we have:
4410 #    normal:   standard edition
4411 # but the custom make system may add other variants
4412 #
4413 # Effectively the JDK variant gives a name to a specific set of
4414 # modules to compile into the JDK.
4415 
4416 
4417 ###############################################################################
4418 # Set the debug level
4419 #    release: no debug information, all optimizations, no asserts.
4420 #    optimized: no debug information, all optimizations, no asserts, HotSpot target is 'optimized'.
4421 #    fastdebug: debug information (-g), all optimizations, all asserts
4422 #    slowdebug: debug information (-g), no optimizations, all asserts
4423 
4424 
4425 ###############################################################################
4426 #
4427 # Should we build only OpenJDK even if closed sources are present?
4428 #
4429 
4430 
4431 
4432 
4433 ###############################################################################
4434 #
4435 # Enable or disable the elliptic curve crypto implementation
4436 #
4437 
4438 
4439 
4440 
4441 ################################################################################
4442 #
4443 # Gcov coverage data for hotspot
4444 #
4445 
4446 
4447 ###############################################################################
4448 #
4449 # AddressSanitizer
4450 #
4451 
4452 
4453 ################################################################################
4454 #
4455 # Static build support.  When enabled will generate static
4456 # libraries instead of shared libraries for all JDK libs.
4457 #
4458 
4459 
4460 ################################################################################
4461 #
4462 # jlink options.
4463 # We always keep packaged modules in JDK image.
4464 #
4465 
4466 
4467 ################################################################################
4468 #
4469 # Check if building of the jtreg failure handler should be enabled.
4470 #
4471 
4472 
4473 ################################################################################
4474 #
4475 # Enable or disable generation of the classlist at build time
4476 #
4477 
4478 
4479 #
4480 # Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
4481 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4482 #
4483 # This code is free software; you can redistribute it and/or modify it
4484 # under the terms of the GNU General Public License version 2 only, as
4485 # published by the Free Software Foundation.  Oracle designates this
4486 # particular file as subject to the "Classpath" exception as provided
4487 # by Oracle in the LICENSE file that accompanied this code.
4488 #
4489 # This code is distributed in the hope that it will be useful, but WITHOUT
4490 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4491 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4492 # version 2 for more details (a copy is included in the LICENSE file that
4493 # accompanied this code).
4494 #
4495 # You should have received a copy of the GNU General Public License version
4496 # 2 along with this work; if not, write to the Free Software Foundation,
4497 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4498 #
4499 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4500 # or visit www.oracle.com if you need additional information or have any
4501 # questions.
4502 #
4503 
4504 ###############################################################################
4505 #
4506 # Setup version numbers
4507 #
4508 
4509 # Verify that a given string represents a valid version number, and assign it
4510 # to a variable.
4511 
4512 # Argument 1: the variable to assign to
4513 # Argument 2: the value given by the user
4514 
4515 
4516 
4517 
4518 #
4519 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
4520 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4521 #
4522 # This code is free software; you can redistribute it and/or modify it
4523 # under the terms of the GNU General Public License version 2 only, as
4524 # published by the Free Software Foundation.  Oracle designates this
4525 # particular file as subject to the "Classpath" exception as provided
4526 # by Oracle in the LICENSE file that accompanied this code.
4527 #
4528 # This code is distributed in the hope that it will be useful, but WITHOUT
4529 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4530 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4531 # version 2 for more details (a copy is included in the LICENSE file that
4532 # accompanied this code).
4533 #
4534 # You should have received a copy of the GNU General Public License version
4535 # 2 along with this work; if not, write to the Free Software Foundation,
4536 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4537 #
4538 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4539 # or visit www.oracle.com if you need additional information or have any
4540 # questions.
4541 #
4542 
4543 # Major library component reside in separate files.
4544 #
4545 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4546 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4547 #
4548 # This code is free software; you can redistribute it and/or modify it
4549 # under the terms of the GNU General Public License version 2 only, as
4550 # published by the Free Software Foundation.  Oracle designates this
4551 # particular file as subject to the "Classpath" exception as provided
4552 # by Oracle in the LICENSE file that accompanied this code.
4553 #
4554 # This code is distributed in the hope that it will be useful, but WITHOUT
4555 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4556 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4557 # version 2 for more details (a copy is included in the LICENSE file that
4558 # accompanied this code).
4559 #
4560 # You should have received a copy of the GNU General Public License version
4561 # 2 along with this work; if not, write to the Free Software Foundation,
4562 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4563 #
4564 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4565 # or visit www.oracle.com if you need additional information or have any
4566 # questions.
4567 #
4568 
4569 ################################################################################
4570 # Setup alsa (Advanced Linux Sound Architecture)
4571 ################################################################################
4572 
4573 
4574 #
4575 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
4576 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4577 #
4578 # This code is free software; you can redistribute it and/or modify it
4579 # under the terms of the GNU General Public License version 2 only, as
4580 # published by the Free Software Foundation.  Oracle designates this
4581 # particular file as subject to the "Classpath" exception as provided
4582 # by Oracle in the LICENSE file that accompanied this code.
4583 #
4584 # This code is distributed in the hope that it will be useful, but WITHOUT
4585 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4586 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4587 # version 2 for more details (a copy is included in the LICENSE file that
4588 # accompanied this code).
4589 #
4590 # You should have received a copy of the GNU General Public License version
4591 # 2 along with this work; if not, write to the Free Software Foundation,
4592 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4593 #
4594 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4595 # or visit www.oracle.com if you need additional information or have any
4596 # questions.
4597 #
4598 
4599 ################################################################################
4600 # Setup bundled libraries.
4601 #
4602 # For libjpeg, giflib, libpng, lcms2 and zlib, the source is present in the
4603 # OpenJDK repository. Default is to use these libraries as bundled, but they
4604 # might be replaced by en external version by the user.
4605 ################################################################################
4606 
4607 
4608 ################################################################################
4609 # Setup libjpeg
4610 ################################################################################
4611 
4612 
4613 ################################################################################
4614 # Setup giflib
4615 ################################################################################
4616 
4617 
4618 ################################################################################
4619 # Setup libpng
4620 ################################################################################
4621 
4622 
4623 ################################################################################
4624 # Setup zlib
4625 ################################################################################
4626 
4627 
4628 ################################################################################
4629 # Setup lcms (Little CMS)
4630 ################################################################################
4631 
4632 
4633 #
4634 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4635 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4636 #
4637 # This code is free software; you can redistribute it and/or modify it
4638 # under the terms of the GNU General Public License version 2 only, as
4639 # published by the Free Software Foundation.  Oracle designates this
4640 # particular file as subject to the "Classpath" exception as provided
4641 # by Oracle in the LICENSE file that accompanied this code.
4642 #
4643 # This code is distributed in the hope that it will be useful, but WITHOUT
4644 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4645 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4646 # version 2 for more details (a copy is included in the LICENSE file that
4647 # accompanied this code).
4648 #
4649 # You should have received a copy of the GNU General Public License version
4650 # 2 along with this work; if not, write to the Free Software Foundation,
4651 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4652 #
4653 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4654 # or visit www.oracle.com if you need additional information or have any
4655 # questions.
4656 #
4657 
4658 ################################################################################
4659 # Setup cups (Common Unix Printing System)
4660 ################################################################################
4661 
4662 
4663 #
4664 # Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
4665 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4666 #
4667 # This code is free software; you can redistribute it and/or modify it
4668 # under the terms of the GNU General Public License version 2 only, as
4669 # published by the Free Software Foundation.  Oracle designates this
4670 # particular file as subject to the "Classpath" exception as provided
4671 # by Oracle in the LICENSE file that accompanied this code.
4672 #
4673 # This code is distributed in the hope that it will be useful, but WITHOUT
4674 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4675 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4676 # version 2 for more details (a copy is included in the LICENSE file that
4677 # accompanied this code).
4678 #
4679 # You should have received a copy of the GNU General Public License version
4680 # 2 along with this work; if not, write to the Free Software Foundation,
4681 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4682 #
4683 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4684 # or visit www.oracle.com if you need additional information or have any
4685 # questions.
4686 #
4687 
4688 ################################################################################
4689 # Setup libffi (Foreign Function Interface)
4690 ################################################################################
4691 
4692 
4693 #
4694 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
4695 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4696 #
4697 # This code is free software; you can redistribute it and/or modify it
4698 # under the terms of the GNU General Public License version 2 only, as
4699 # published by the Free Software Foundation.  Oracle designates this
4700 # particular file as subject to the "Classpath" exception as provided
4701 # by Oracle in the LICENSE file that accompanied this code.
4702 #
4703 # This code is distributed in the hope that it will be useful, but WITHOUT
4704 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4705 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4706 # version 2 for more details (a copy is included in the LICENSE file that
4707 # accompanied this code).
4708 #
4709 # You should have received a copy of the GNU General Public License version
4710 # 2 along with this work; if not, write to the Free Software Foundation,
4711 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4712 #
4713 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4714 # or visit www.oracle.com if you need additional information or have any
4715 # questions.
4716 #
4717 
4718 ################################################################################
4719 # Build the freetype lib from source
4720 ################################################################################
4721 
4722 
4723 ################################################################################
4724 # Check if a potential freeype library match is correct and usable
4725 ################################################################################
4726 
4727 
4728 ################################################################################
4729 # Setup freetype (The FreeType2 font rendering library)
4730 ################################################################################
4731 
4732 
4733 #
4734 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4735 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4736 #
4737 # This code is free software; you can redistribute it and/or modify it
4738 # under the terms of the GNU General Public License version 2 only, as
4739 # published by the Free Software Foundation.  Oracle designates this
4740 # particular file as subject to the "Classpath" exception as provided
4741 # by Oracle in the LICENSE file that accompanied this code.
4742 #
4743 # This code is distributed in the hope that it will be useful, but WITHOUT
4744 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4745 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4746 # version 2 for more details (a copy is included in the LICENSE file that
4747 # accompanied this code).
4748 #
4749 # You should have received a copy of the GNU General Public License version
4750 # 2 along with this work; if not, write to the Free Software Foundation,
4751 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4752 #
4753 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4754 # or visit www.oracle.com if you need additional information or have any
4755 # questions.
4756 #
4757 
4758 ################################################################################
4759 # Setup the standard C/C++ runtime libraries.
4760 #
4761 # Most importantly, determine if stdc++ should be linked statically or
4762 # dynamically.
4763 ################################################################################
4764 
4765 
4766 #
4767 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4768 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4769 #
4770 # This code is free software; you can redistribute it and/or modify it
4771 # under the terms of the GNU General Public License version 2 only, as
4772 # published by the Free Software Foundation.  Oracle designates this
4773 # particular file as subject to the "Classpath" exception as provided
4774 # by Oracle in the LICENSE file that accompanied this code.
4775 #
4776 # This code is distributed in the hope that it will be useful, but WITHOUT
4777 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4778 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4779 # version 2 for more details (a copy is included in the LICENSE file that
4780 # accompanied this code).
4781 #
4782 # You should have received a copy of the GNU General Public License version
4783 # 2 along with this work; if not, write to the Free Software Foundation,
4784 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4785 #
4786 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4787 # or visit www.oracle.com if you need additional information or have any
4788 # questions.
4789 #
4790 
4791 ################################################################################
4792 # Setup X11 Windows system
4793 ################################################################################
4794 
4795 
4796 #
4797 # Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
4798 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4799 #
4800 # This code is free software; you can redistribute it and/or modify it
4801 # under the terms of the GNU General Public License version 2 only, as
4802 # published by the Free Software Foundation.  Oracle designates this
4803 # particular file as subject to the "Classpath" exception as provided
4804 # by Oracle in the LICENSE file that accompanied this code.
4805 #
4806 # This code is distributed in the hope that it will be useful, but WITHOUT
4807 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4808 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4809 # version 2 for more details (a copy is included in the LICENSE file that
4810 # accompanied this code).
4811 #
4812 # You should have received a copy of the GNU General Public License version
4813 # 2 along with this work; if not, write to the Free Software Foundation,
4814 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4815 #
4816 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4817 # or visit www.oracle.com if you need additional information or have any
4818 # questions.
4819 #
4820 
4821 ################################################################################
4822 # Setup fontconfig
4823 ################################################################################
4824 
4825 
4826 
4827 ################################################################################
4828 # Determine which libraries are needed for this configuration
4829 ################################################################################
4830 
4831 
4832 ################################################################################
4833 # Parse library options, and setup needed libraries
4834 ################################################################################
4835 
4836 
4837 ################################################################################
4838 # Setup various libraries, typically small system libraries
4839 ################################################################################
4840 
4841 
4842 ################################################################################
4843 # libstlport.so.1 is needed for running gtest on Solaris. Find it to
4844 # redistribute it in the test image.
4845 ################################################################################
4846 
4847 
4848 
4849 #
4850 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
4851 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4852 #
4853 # This code is free software; you can redistribute it and/or modify it
4854 # under the terms of the GNU General Public License version 2 only, as
4855 # published by the Free Software Foundation.  Oracle designates this
4856 # particular file as subject to the "Classpath" exception as provided
4857 # by Oracle in the LICENSE file that accompanied this code.
4858 #
4859 # This code is distributed in the hope that it will be useful, but WITHOUT
4860 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4861 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4862 # version 2 for more details (a copy is included in the LICENSE file that
4863 # accompanied this code).
4864 #
4865 # You should have received a copy of the GNU General Public License version
4866 # 2 along with this work; if not, write to the Free Software Foundation,
4867 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4868 #
4869 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4870 # or visit www.oracle.com if you need additional information or have any
4871 # questions.
4872 #
4873 
4874 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4875 # Converts autoconf style CPU name to OpenJDK style, into
4876 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN.
4877 
4878 
4879 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4880 # Converts autoconf style OS name to OpenJDK style, into
4881 # VAR_OS, VAR_OS_TYPE and VAR_OS_ENV.
4882 
4883 
4884 # Expects $host_os $host_cpu $build_os and $build_cpu
4885 # and $with_target_bits to have been setup!
4886 #
4887 # Translate the standard triplet(quadruplet) definition
4888 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU,
4889 # OPENJDK_BUILD_OS, etc.
4890 
4891 
4892 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour
4893 # accordingly. Must be done after setting up build and target system, but before
4894 # doing anything else with these values.
4895 
4896 
4897 # Setup the legacy variables, for controlling the old makefiles.
4898 #
4899 
4900 
4901 # $1 - Either TARGET or BUILD to setup the variables for.
4902 
4903 
4904 
4905 
4906 
4907 
4908 #%%% Build and target systems %%%
4909 
4910 
4911 
4912 
4913 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS.
4914 # Add -mX to various FLAGS variables.
4915 
4916 
4917 
4918 
4919 
4920 
4921 #
4922 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
4923 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4924 #
4925 # This code is free software; you can redistribute it and/or modify it
4926 # under the terms of the GNU General Public License version 2 only, as
4927 # published by the Free Software Foundation.  Oracle designates this
4928 # particular file as subject to the "Classpath" exception as provided
4929 # by Oracle in the LICENSE file that accompanied this code.
4930 #
4931 # This code is distributed in the hope that it will be useful, but WITHOUT
4932 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4933 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4934 # version 2 for more details (a copy is included in the LICENSE file that
4935 # accompanied this code).
4936 #
4937 # You should have received a copy of the GNU General Public License version
4938 # 2 along with this work; if not, write to the Free Software Foundation,
4939 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4940 #
4941 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4942 # or visit www.oracle.com if you need additional information or have any
4943 # questions.
4944 #
4945 
4946 
4947 
4948 ################################################################################
4949 # Define a mechanism for importing extra prebuilt modules
4950 #
4951 
4952 
4953 
4954 #
4955 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
4956 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4957 #
4958 # This code is free software; you can redistribute it and/or modify it
4959 # under the terms of the GNU General Public License version 2 only, as
4960 # published by the Free Software Foundation.  Oracle designates this
4961 # particular file as subject to the "Classpath" exception as provided
4962 # by Oracle in the LICENSE file that accompanied this code.
4963 #
4964 # This code is distributed in the hope that it will be useful, but WITHOUT
4965 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4966 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4967 # version 2 for more details (a copy is included in the LICENSE file that
4968 # accompanied this code).
4969 #
4970 # You should have received a copy of the GNU General Public License version
4971 # 2 along with this work; if not, write to the Free Software Foundation,
4972 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4973 #
4974 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4975 # or visit www.oracle.com if you need additional information or have any
4976 # questions.
4977 #
4978 
4979 ########################################################################
4980 # This file is responsible for detecting, verifying and setting up the
4981 # toolchain, i.e. the compiler, linker and related utilities. It will setup
4982 # proper paths to the binaries, but it will not setup any flags.
4983 #
4984 # The binaries used is determined by the toolchain type, which is the family of
4985 # compilers and related tools that are used.
4986 ########################################################################
4987 
4988 
4989 # All valid toolchains, regardless of platform (used by help.m4)
4990 VALID_TOOLCHAINS_all="gcc clang solstudio xlc microsoft"
4991 
4992 # These toolchains are valid on different platforms
4993 VALID_TOOLCHAINS_linux="gcc clang"
4994 VALID_TOOLCHAINS_solaris="solstudio"
4995 VALID_TOOLCHAINS_macosx="gcc clang"
4996 VALID_TOOLCHAINS_aix="xlc"
4997 VALID_TOOLCHAINS_windows="microsoft"
4998 
4999 # Toolchain descriptions
5000 TOOLCHAIN_DESCRIPTION_clang="clang/LLVM"
5001 TOOLCHAIN_DESCRIPTION_gcc="GNU Compiler Collection"
5002 TOOLCHAIN_DESCRIPTION_microsoft="Microsoft Visual Studio"
5003 TOOLCHAIN_DESCRIPTION_solstudio="Oracle Solaris Studio"
5004 TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++"
5005 
5006 # Minimum supported versions, empty means unspecified
5007 TOOLCHAIN_MINIMUM_VERSION_clang="3.2"
5008 TOOLCHAIN_MINIMUM_VERSION_gcc="4.7"
5009 TOOLCHAIN_MINIMUM_VERSION_microsoft="16.00.30319.01" # VS2010
5010 TOOLCHAIN_MINIMUM_VERSION_solstudio="5.13"
5011 TOOLCHAIN_MINIMUM_VERSION_xlc=""
5012 
5013 # Prepare the system so that TOOLCHAIN_CHECK_COMPILER_VERSION can be called.
5014 # Must have CC_VERSION_NUMBER and CXX_VERSION_NUMBER.
5015 # $1 - optional variable prefix for compiler and version variables (BUILD_)
5016 # $2 - optional variable prefix for comparable variable (OPENJDK_BUILD_)
5017 
5018 
5019 # Check if the configured compiler (C and C++) is of a specific version or
5020 # newer. TOOLCHAIN_PREPARE_FOR_VERSION_COMPARISONS must have been called before.
5021 #
5022 # Arguments:
5023 #   VERSION:   The version string to check against the found version
5024 #   IF_AT_LEAST:   block to run if the compiler is at least this version (>=)
5025 #   IF_OLDER_THAN:   block to run if the compiler is older than this version (<)
5026 #   PREFIX:   Optional variable prefix for compiler to compare version for (OPENJDK_BUILD_)
5027 
5028 
5029 
5030 
5031 # Setup a number of variables describing how native output files are
5032 # named on this platform/toolchain.
5033 
5034 
5035 # Determine which toolchain type to use, and make sure it is valid for this
5036 # platform. Setup various information about the selected toolchain.
5037 
5038 
5039 # Before we start detecting the toolchain executables, we might need some
5040 # special setup, e.g. additional paths etc.
5041 
5042 
5043 # Restore path, etc
5044 
5045 
5046 # Check if a compiler is of the toolchain type we expect, and save the version
5047 # information from it. If the compiler does not match the expected type,
5048 # this function will abort using AC_MSG_ERROR. If it matches, the version will
5049 # be stored in CC_VERSION_NUMBER/CXX_VERSION_NUMBER (as a dotted number), and
5050 # the full version string in CC_VERSION_STRING/CXX_VERSION_STRING.
5051 #
5052 # $1 = compiler to test (CC or CXX)
5053 # $2 = human readable name of compiler (C or C++)
5054 
5055 
5056 # Try to locate the given C or C++ compiler in the path, or otherwise.
5057 #
5058 # $1 = compiler to test (CC or CXX)
5059 # $2 = human readable name of compiler (C or C++)
5060 # $3 = compiler name to search for
5061 
5062 
5063 # Detect the core components of the toolchain, i.e. the compilers (CC and CXX),
5064 # preprocessor (CPP and CXXCPP), the linker (LD), the assembler (AS) and the
5065 # archiver (AR). Verify that the compilers are correct according to the
5066 # toolchain type.
5067 
5068 
5069 # Setup additional tools that is considered a part of the toolchain, but not the
5070 # core part. Many of these are highly platform-specific and do not exist,
5071 # and/or are not needed on all platforms.
5072 
5073 
5074 # Setup the build tools (i.e, the compiler and linker used to build programs
5075 # that should be run on the build platform, not the target platform, as a build
5076 # helper). Since the non-cross-compile case uses the normal, target compilers
5077 # for this, we can only do this after these have been setup.
5078 
5079 
5080 # Do some additional checks on the detected tools.
5081 
5082 
5083 # Setup the JTReg Regression Test Harness.
5084 
5085 
5086 # Setup the JIB dependency resolver
5087 
5088 
5089 #
5090 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
5091 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5092 #
5093 # This code is free software; you can redistribute it and/or modify it
5094 # under the terms of the GNU General Public License version 2 only, as
5095 # published by the Free Software Foundation.  Oracle designates this
5096 # particular file as subject to the "Classpath" exception as provided
5097 # by Oracle in the LICENSE file that accompanied this code.
5098 #
5099 # This code is distributed in the hope that it will be useful, but WITHOUT
5100 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
5101 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
5102 # version 2 for more details (a copy is included in the LICENSE file that
5103 # accompanied this code).
5104 #
5105 # You should have received a copy of the GNU General Public License version
5106 # 2 along with this work; if not, write to the Free Software Foundation,
5107 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
5108 #
5109 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
5110 # or visit www.oracle.com if you need additional information or have any
5111 # questions.
5112 #
5113 
5114 ################################################################################
5115 # The order of these defines the priority by which we try to find them.
5116 VALID_VS_VERSIONS="2013 2012 2010"
5117 
5118 VS_DESCRIPTION_2010="Microsoft Visual Studio 2010"
5119 VS_VERSION_INTERNAL_2010=100
5120 VS_MSVCR_2010=msvcr100.dll
5121 # We don't use msvcp on Visual Studio 2010
5122 #VS_MSVCP_2010=msvcp100.dll
5123 VS_ENVVAR_2010="VS100COMNTOOLS"
5124 VS_VS_INSTALLDIR_2010="Microsoft Visual Studio 10.0"
5125 VS_SDK_INSTALLDIR_2010="Microsoft SDKs/Windows/v7.1"
5126 VS_VS_PLATFORM_NAME_2010="v100"
5127 VS_SDK_PLATFORM_NAME_2010="Windows7.1SDK"
5128 
5129 VS_DESCRIPTION_2012="Microsoft Visual Studio 2012"
5130 VS_VERSION_INTERNAL_2012=110
5131 VS_MSVCR_2012=msvcr110.dll
5132 VS_MSVCP_2012=msvcp110.dll
5133 VS_ENVVAR_2012="VS110COMNTOOLS"
5134 VS_VS_INSTALLDIR_2012="Microsoft Visual Studio 11.0"
5135 VS_SDK_INSTALLDIR_2012=
5136 VS_VS_PLATFORM_NAME_2012="v110"
5137 VS_SDK_PLATFORM_NAME_2012=
5138 
5139 VS_DESCRIPTION_2013="Microsoft Visual Studio 2013"
5140 VS_VERSION_INTERNAL_2013=120
5141 VS_MSVCR_2013=msvcr120.dll
5142 VS_MSVCP_2013=msvcp120.dll
5143 VS_ENVVAR_2013="VS120COMNTOOLS"
5144 VS_VS_INSTALLDIR_2013="Microsoft Visual Studio 12.0"
5145 VS_SDK_INSTALLDIR_2013=
5146 VS_VS_PLATFORM_NAME_2013="v120"
5147 VS_SDK_PLATFORM_NAME_2013=
5148 
5149 ################################################################################
5150 
5151 
5152 
5153 ################################################################################
5154 
5155 
5156 
5157 ################################################################################
5158 # Finds the bat or cmd file in Visual Studio or the SDK that sets up a proper
5159 # build environment and assigns it to VS_ENV_CMD
5160 
5161 
5162 ################################################################################
5163 
5164 
5165 
5166 ################################################################################
5167 # Check if the VS env variables were setup prior to running configure.
5168 # If not, then find vcvarsall.bat and run it automatically, and integrate
5169 # the set env variables into the spec file.
5170 
5171 
5172 
5173 
5174 
5175 
5176 
5177 
5178 
5179 
5180 
5181 
5182 
5183 
5184 # This line needs to be here, verbatim, after all includes and the dummy hook
5185 # definitions. It is replaced with custom functionality when building
5186 # custom sources.
5187 #CUSTOM_AUTOCONF_INCLUDE
5188 
5189 # Do not change or remove the following line, it is needed for consistency checks:
5190 DATE_WHEN_GENERATED=1512489240
5191 
5192 ###############################################################################
5193 #
5194 # Initialization / Boot-strapping
5195 #
5196 # The bootstrapping process needs to solve the "chicken or the egg" problem,
5197 # thus it jumps back and forth, each time gaining something needed later on.
5198 #
5199 ###############################################################################
5200 
5201 # If we are requested to print additional help, do that and then exit.
5202 # This must be the very first call.
5203 
5204   if test "x$CONFIGURE_PRINT_ADDITIONAL_HELP" != x; then
5205 
5206     # Print available toolchains
5207     $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
5208     $PRINTF "Which are valid to use depends on the build platform.\n"
5209     for toolchain in $VALID_TOOLCHAINS_all; do
5210       # Use indirect variable referencing
5211       toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain
5212       TOOLCHAIN_DESCRIPTION=${!toolchain_var_name}
5213       $PRINTF "  %-10s  %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION"
5214     done
5215     $PRINTF "\n"
5216 
5217     # Print available jvm features
5218     $PRINTF "The following JVM features are available as arguments to --with-jvm-features.\n"
5219     $PRINTF "Which are valid to use depends on the target platform.\n  "
5220     $PRINTF "%s " $VALID_JVM_FEATURES
5221     $PRINTF "\n"
5222 
5223     # And now exit directly
5224     exit 0
5225   fi
5226 
5227 
5228 # Basic initialization that must happen first of all in the normal process.
5229 
5230   # Save the original command line. This is passed to us by the wrapper configure script.
5231 
5232   # Save the path variable before it gets changed
5233   ORIGINAL_PATH="$PATH"
5234 
5235   DATE_WHEN_CONFIGURED=`LANG=C date`
5236 
5237   { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5
5238 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;}
5239   { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5
5240 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;}
5241 
5242 
5243   # Start with tools that do not need have cross compilation support
5244   # and can be expected to be found in the default PATH. These tools are
5245   # used by configure.
5246 
5247   # First are all the simple required tools.
5248 
5249 
5250 
5251   # Publish this variable in the help.
5252 
5253 
5254   if [ -z "${BASENAME+x}" ]; then
5255     # The variable is not set by user, try to locate tool using the code snippet
5256     for ac_prog in basename
5257 do
5258   # Extract the first word of "$ac_prog", so it can be a program name with args.
5259 set dummy $ac_prog; ac_word=$2
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5261 $as_echo_n "checking for $ac_word... " >&6; }
5262 if ${ac_cv_path_BASENAME+:} false; then :
5263   $as_echo_n "(cached) " >&6
5264 else
5265   case $BASENAME in
5266   [\\/]* | ?:[\\/]*)
5267   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
5268   ;;
5269   *)
5270   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5271 for as_dir in $PATH
5272 do
5273   IFS=$as_save_IFS
5274   test -z "$as_dir" && as_dir=.
5275     for ac_exec_ext in '' $ac_executable_extensions; do
5276   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5277     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
5278     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5279     break 2
5280   fi
5281 done
5282   done
5283 IFS=$as_save_IFS
5284 
5285   ;;
5286 esac
5287 fi
5288 BASENAME=$ac_cv_path_BASENAME
5289 if test -n "$BASENAME"; then
5290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
5291 $as_echo "$BASENAME" >&6; }
5292 else
5293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5294 $as_echo "no" >&6; }
5295 fi
5296 
5297 
5298   test -n "$BASENAME" && break
5299 done
5300 
5301   else
5302     # The variable is set, but is it from the command line or the environment?
5303 
5304     # Try to remove the string !BASENAME! from our list.
5305     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/}
5306     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5307       # If it failed, the variable was not from the command line. Ignore it,
5308       # but warn the user (except for BASH, which is always set by the calling BASH).
5309       if test "xBASENAME" != xBASH; then
5310         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5
5311 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;}
5312       fi
5313       # Try to locate tool using the code snippet
5314       for ac_prog in basename
5315 do
5316   # Extract the first word of "$ac_prog", so it can be a program name with args.
5317 set dummy $ac_prog; ac_word=$2
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5319 $as_echo_n "checking for $ac_word... " >&6; }
5320 if ${ac_cv_path_BASENAME+:} false; then :
5321   $as_echo_n "(cached) " >&6
5322 else
5323   case $BASENAME in
5324   [\\/]* | ?:[\\/]*)
5325   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
5326   ;;
5327   *)
5328   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5329 for as_dir in $PATH
5330 do
5331   IFS=$as_save_IFS
5332   test -z "$as_dir" && as_dir=.
5333     for ac_exec_ext in '' $ac_executable_extensions; do
5334   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5335     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
5336     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5337     break 2
5338   fi
5339 done
5340   done
5341 IFS=$as_save_IFS
5342 
5343   ;;
5344 esac
5345 fi
5346 BASENAME=$ac_cv_path_BASENAME
5347 if test -n "$BASENAME"; then
5348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
5349 $as_echo "$BASENAME" >&6; }
5350 else
5351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5352 $as_echo "no" >&6; }
5353 fi
5354 
5355 
5356   test -n "$BASENAME" && break
5357 done
5358 
5359     else
5360       # If it succeeded, then it was overridden by the user. We will use it
5361       # for the tool.
5362 
5363       # First remove it from the list of overridden variables, so we can test
5364       # for unknown variables in the end.
5365       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5366 
5367       # Check if we try to supply an empty value
5368       if test "x$BASENAME" = x; then
5369         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BASENAME= (no value)" >&5
5370 $as_echo "$as_me: Setting user supplied tool BASENAME= (no value)" >&6;}
5371         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5
5372 $as_echo_n "checking for BASENAME... " >&6; }
5373         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5374 $as_echo "disabled" >&6; }
5375       else
5376         # Check if the provided tool contains a complete path.
5377         tool_specified="$BASENAME"
5378         tool_basename="${tool_specified##*/}"
5379         if test "x$tool_basename" = "x$tool_specified"; then
5380           # A command without a complete path is provided, search $PATH.
5381           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5
5382 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;}
5383           # Extract the first word of "$tool_basename", so it can be a program name with args.
5384 set dummy $tool_basename; ac_word=$2
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5386 $as_echo_n "checking for $ac_word... " >&6; }
5387 if ${ac_cv_path_BASENAME+:} false; then :
5388   $as_echo_n "(cached) " >&6
5389 else
5390   case $BASENAME in
5391   [\\/]* | ?:[\\/]*)
5392   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
5393   ;;
5394   *)
5395   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5396 for as_dir in $PATH
5397 do
5398   IFS=$as_save_IFS
5399   test -z "$as_dir" && as_dir=.
5400     for ac_exec_ext in '' $ac_executable_extensions; do
5401   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5402     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
5403     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5404     break 2
5405   fi
5406 done
5407   done
5408 IFS=$as_save_IFS
5409 
5410   ;;
5411 esac
5412 fi
5413 BASENAME=$ac_cv_path_BASENAME
5414 if test -n "$BASENAME"; then
5415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
5416 $as_echo "$BASENAME" >&6; }
5417 else
5418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5419 $as_echo "no" >&6; }
5420 fi
5421 
5422 
5423           if test "x$BASENAME" = x; then
5424             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5425           fi
5426         else
5427           # Otherwise we believe it is a complete path. Use it as it is.
5428           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5
5429 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;}
5430           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5
5431 $as_echo_n "checking for BASENAME... " >&6; }
5432           if test ! -x "$tool_specified"; then
5433             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5434 $as_echo "not found" >&6; }
5435             as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5
5436           fi
5437           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5438 $as_echo "$tool_specified" >&6; }
5439         fi
5440       fi
5441     fi
5442 
5443   fi
5444 
5445 
5446 
5447   if test "x$BASENAME" = x; then
5448     as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5
5449   fi
5450 
5451 
5452 
5453 
5454 
5455   # Publish this variable in the help.
5456 
5457 
5458   if [ -z "${BASH+x}" ]; then
5459     # The variable is not set by user, try to locate tool using the code snippet
5460     for ac_prog in bash
5461 do
5462   # Extract the first word of "$ac_prog", so it can be a program name with args.
5463 set dummy $ac_prog; ac_word=$2
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5465 $as_echo_n "checking for $ac_word... " >&6; }
5466 if ${ac_cv_path_BASH+:} false; then :
5467   $as_echo_n "(cached) " >&6
5468 else
5469   case $BASH in
5470   [\\/]* | ?:[\\/]*)
5471   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
5472   ;;
5473   *)
5474   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5475 for as_dir in $PATH
5476 do
5477   IFS=$as_save_IFS
5478   test -z "$as_dir" && as_dir=.
5479     for ac_exec_ext in '' $ac_executable_extensions; do
5480   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5481     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
5482     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5483     break 2
5484   fi
5485 done
5486   done
5487 IFS=$as_save_IFS
5488 
5489   ;;
5490 esac
5491 fi
5492 BASH=$ac_cv_path_BASH
5493 if test -n "$BASH"; then
5494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
5495 $as_echo "$BASH" >&6; }
5496 else
5497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5498 $as_echo "no" >&6; }
5499 fi
5500 
5501 
5502   test -n "$BASH" && break
5503 done
5504 
5505   else
5506     # The variable is set, but is it from the command line or the environment?
5507 
5508     # Try to remove the string !BASH! from our list.
5509     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/}
5510     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5511       # If it failed, the variable was not from the command line. Ignore it,
5512       # but warn the user (except for BASH, which is always set by the calling BASH).
5513       if test "xBASH" != xBASH; then
5514         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5
5515 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;}
5516       fi
5517       # Try to locate tool using the code snippet
5518       for ac_prog in bash
5519 do
5520   # Extract the first word of "$ac_prog", so it can be a program name with args.
5521 set dummy $ac_prog; ac_word=$2
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5523 $as_echo_n "checking for $ac_word... " >&6; }
5524 if ${ac_cv_path_BASH+:} false; then :
5525   $as_echo_n "(cached) " >&6
5526 else
5527   case $BASH in
5528   [\\/]* | ?:[\\/]*)
5529   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
5530   ;;
5531   *)
5532   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5533 for as_dir in $PATH
5534 do
5535   IFS=$as_save_IFS
5536   test -z "$as_dir" && as_dir=.
5537     for ac_exec_ext in '' $ac_executable_extensions; do
5538   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5539     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
5540     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5541     break 2
5542   fi
5543 done
5544   done
5545 IFS=$as_save_IFS
5546 
5547   ;;
5548 esac
5549 fi
5550 BASH=$ac_cv_path_BASH
5551 if test -n "$BASH"; then
5552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
5553 $as_echo "$BASH" >&6; }
5554 else
5555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5556 $as_echo "no" >&6; }
5557 fi
5558 
5559 
5560   test -n "$BASH" && break
5561 done
5562 
5563     else
5564       # If it succeeded, then it was overridden by the user. We will use it
5565       # for the tool.
5566 
5567       # First remove it from the list of overridden variables, so we can test
5568       # for unknown variables in the end.
5569       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5570 
5571       # Check if we try to supply an empty value
5572       if test "x$BASH" = x; then
5573         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BASH= (no value)" >&5
5574 $as_echo "$as_me: Setting user supplied tool BASH= (no value)" >&6;}
5575         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5
5576 $as_echo_n "checking for BASH... " >&6; }
5577         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5578 $as_echo "disabled" >&6; }
5579       else
5580         # Check if the provided tool contains a complete path.
5581         tool_specified="$BASH"
5582         tool_basename="${tool_specified##*/}"
5583         if test "x$tool_basename" = "x$tool_specified"; then
5584           # A command without a complete path is provided, search $PATH.
5585           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5
5586 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;}
5587           # Extract the first word of "$tool_basename", so it can be a program name with args.
5588 set dummy $tool_basename; ac_word=$2
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5590 $as_echo_n "checking for $ac_word... " >&6; }
5591 if ${ac_cv_path_BASH+:} false; then :
5592   $as_echo_n "(cached) " >&6
5593 else
5594   case $BASH in
5595   [\\/]* | ?:[\\/]*)
5596   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
5597   ;;
5598   *)
5599   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5600 for as_dir in $PATH
5601 do
5602   IFS=$as_save_IFS
5603   test -z "$as_dir" && as_dir=.
5604     for ac_exec_ext in '' $ac_executable_extensions; do
5605   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5606     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
5607     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5608     break 2
5609   fi
5610 done
5611   done
5612 IFS=$as_save_IFS
5613 
5614   ;;
5615 esac
5616 fi
5617 BASH=$ac_cv_path_BASH
5618 if test -n "$BASH"; then
5619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
5620 $as_echo "$BASH" >&6; }
5621 else
5622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5623 $as_echo "no" >&6; }
5624 fi
5625 
5626 
5627           if test "x$BASH" = x; then
5628             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5629           fi
5630         else
5631           # Otherwise we believe it is a complete path. Use it as it is.
5632           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5
5633 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;}
5634           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5
5635 $as_echo_n "checking for BASH... " >&6; }
5636           if test ! -x "$tool_specified"; then
5637             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5638 $as_echo "not found" >&6; }
5639             as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5
5640           fi
5641           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5642 $as_echo "$tool_specified" >&6; }
5643         fi
5644       fi
5645     fi
5646 
5647   fi
5648 
5649 
5650 
5651   if test "x$BASH" = x; then
5652     as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5
5653   fi
5654 
5655 
5656 
5657 
5658 
5659   # Publish this variable in the help.
5660 
5661 
5662   if [ -z "${CAT+x}" ]; then
5663     # The variable is not set by user, try to locate tool using the code snippet
5664     for ac_prog in cat
5665 do
5666   # Extract the first word of "$ac_prog", so it can be a program name with args.
5667 set dummy $ac_prog; ac_word=$2
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5669 $as_echo_n "checking for $ac_word... " >&6; }
5670 if ${ac_cv_path_CAT+:} false; then :
5671   $as_echo_n "(cached) " >&6
5672 else
5673   case $CAT in
5674   [\\/]* | ?:[\\/]*)
5675   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
5676   ;;
5677   *)
5678   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5679 for as_dir in $PATH
5680 do
5681   IFS=$as_save_IFS
5682   test -z "$as_dir" && as_dir=.
5683     for ac_exec_ext in '' $ac_executable_extensions; do
5684   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5685     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
5686     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5687     break 2
5688   fi
5689 done
5690   done
5691 IFS=$as_save_IFS
5692 
5693   ;;
5694 esac
5695 fi
5696 CAT=$ac_cv_path_CAT
5697 if test -n "$CAT"; then
5698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5699 $as_echo "$CAT" >&6; }
5700 else
5701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5702 $as_echo "no" >&6; }
5703 fi
5704 
5705 
5706   test -n "$CAT" && break
5707 done
5708 
5709   else
5710     # The variable is set, but is it from the command line or the environment?
5711 
5712     # Try to remove the string !CAT! from our list.
5713     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/}
5714     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5715       # If it failed, the variable was not from the command line. Ignore it,
5716       # but warn the user (except for BASH, which is always set by the calling BASH).
5717       if test "xCAT" != xBASH; then
5718         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5
5719 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;}
5720       fi
5721       # Try to locate tool using the code snippet
5722       for ac_prog in cat
5723 do
5724   # Extract the first word of "$ac_prog", so it can be a program name with args.
5725 set dummy $ac_prog; ac_word=$2
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5727 $as_echo_n "checking for $ac_word... " >&6; }
5728 if ${ac_cv_path_CAT+:} false; then :
5729   $as_echo_n "(cached) " >&6
5730 else
5731   case $CAT in
5732   [\\/]* | ?:[\\/]*)
5733   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
5734   ;;
5735   *)
5736   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5737 for as_dir in $PATH
5738 do
5739   IFS=$as_save_IFS
5740   test -z "$as_dir" && as_dir=.
5741     for ac_exec_ext in '' $ac_executable_extensions; do
5742   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5743     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
5744     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5745     break 2
5746   fi
5747 done
5748   done
5749 IFS=$as_save_IFS
5750 
5751   ;;
5752 esac
5753 fi
5754 CAT=$ac_cv_path_CAT
5755 if test -n "$CAT"; then
5756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5757 $as_echo "$CAT" >&6; }
5758 else
5759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5760 $as_echo "no" >&6; }
5761 fi
5762 
5763 
5764   test -n "$CAT" && break
5765 done
5766 
5767     else
5768       # If it succeeded, then it was overridden by the user. We will use it
5769       # for the tool.
5770 
5771       # First remove it from the list of overridden variables, so we can test
5772       # for unknown variables in the end.
5773       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5774 
5775       # Check if we try to supply an empty value
5776       if test "x$CAT" = x; then
5777         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CAT= (no value)" >&5
5778 $as_echo "$as_me: Setting user supplied tool CAT= (no value)" >&6;}
5779         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5
5780 $as_echo_n "checking for CAT... " >&6; }
5781         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5782 $as_echo "disabled" >&6; }
5783       else
5784         # Check if the provided tool contains a complete path.
5785         tool_specified="$CAT"
5786         tool_basename="${tool_specified##*/}"
5787         if test "x$tool_basename" = "x$tool_specified"; then
5788           # A command without a complete path is provided, search $PATH.
5789           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5
5790 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;}
5791           # Extract the first word of "$tool_basename", so it can be a program name with args.
5792 set dummy $tool_basename; ac_word=$2
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5794 $as_echo_n "checking for $ac_word... " >&6; }
5795 if ${ac_cv_path_CAT+:} false; then :
5796   $as_echo_n "(cached) " >&6
5797 else
5798   case $CAT in
5799   [\\/]* | ?:[\\/]*)
5800   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
5801   ;;
5802   *)
5803   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5804 for as_dir in $PATH
5805 do
5806   IFS=$as_save_IFS
5807   test -z "$as_dir" && as_dir=.
5808     for ac_exec_ext in '' $ac_executable_extensions; do
5809   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5810     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
5811     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5812     break 2
5813   fi
5814 done
5815   done
5816 IFS=$as_save_IFS
5817 
5818   ;;
5819 esac
5820 fi
5821 CAT=$ac_cv_path_CAT
5822 if test -n "$CAT"; then
5823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5824 $as_echo "$CAT" >&6; }
5825 else
5826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5827 $as_echo "no" >&6; }
5828 fi
5829 
5830 
5831           if test "x$CAT" = x; then
5832             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5833           fi
5834         else
5835           # Otherwise we believe it is a complete path. Use it as it is.
5836           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5
5837 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;}
5838           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5
5839 $as_echo_n "checking for CAT... " >&6; }
5840           if test ! -x "$tool_specified"; then
5841             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5842 $as_echo "not found" >&6; }
5843             as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5
5844           fi
5845           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5846 $as_echo "$tool_specified" >&6; }
5847         fi
5848       fi
5849     fi
5850 
5851   fi
5852 
5853 
5854 
5855   if test "x$CAT" = x; then
5856     as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5
5857   fi
5858 
5859 
5860 
5861 
5862 
5863   # Publish this variable in the help.
5864 
5865 
5866   if [ -z "${CHMOD+x}" ]; then
5867     # The variable is not set by user, try to locate tool using the code snippet
5868     for ac_prog in chmod
5869 do
5870   # Extract the first word of "$ac_prog", so it can be a program name with args.
5871 set dummy $ac_prog; ac_word=$2
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5873 $as_echo_n "checking for $ac_word... " >&6; }
5874 if ${ac_cv_path_CHMOD+:} false; then :
5875   $as_echo_n "(cached) " >&6
5876 else
5877   case $CHMOD in
5878   [\\/]* | ?:[\\/]*)
5879   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5880   ;;
5881   *)
5882   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5883 for as_dir in $PATH
5884 do
5885   IFS=$as_save_IFS
5886   test -z "$as_dir" && as_dir=.
5887     for ac_exec_ext in '' $ac_executable_extensions; do
5888   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5889     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5890     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5891     break 2
5892   fi
5893 done
5894   done
5895 IFS=$as_save_IFS
5896 
5897   ;;
5898 esac
5899 fi
5900 CHMOD=$ac_cv_path_CHMOD
5901 if test -n "$CHMOD"; then
5902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5903 $as_echo "$CHMOD" >&6; }
5904 else
5905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5906 $as_echo "no" >&6; }
5907 fi
5908 
5909 
5910   test -n "$CHMOD" && break
5911 done
5912 
5913   else
5914     # The variable is set, but is it from the command line or the environment?
5915 
5916     # Try to remove the string !CHMOD! from our list.
5917     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/}
5918     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5919       # If it failed, the variable was not from the command line. Ignore it,
5920       # but warn the user (except for BASH, which is always set by the calling BASH).
5921       if test "xCHMOD" != xBASH; then
5922         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5
5923 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;}
5924       fi
5925       # Try to locate tool using the code snippet
5926       for ac_prog in chmod
5927 do
5928   # Extract the first word of "$ac_prog", so it can be a program name with args.
5929 set dummy $ac_prog; ac_word=$2
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5931 $as_echo_n "checking for $ac_word... " >&6; }
5932 if ${ac_cv_path_CHMOD+:} false; then :
5933   $as_echo_n "(cached) " >&6
5934 else
5935   case $CHMOD in
5936   [\\/]* | ?:[\\/]*)
5937   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5938   ;;
5939   *)
5940   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5941 for as_dir in $PATH
5942 do
5943   IFS=$as_save_IFS
5944   test -z "$as_dir" && as_dir=.
5945     for ac_exec_ext in '' $ac_executable_extensions; do
5946   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5947     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5948     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5949     break 2
5950   fi
5951 done
5952   done
5953 IFS=$as_save_IFS
5954 
5955   ;;
5956 esac
5957 fi
5958 CHMOD=$ac_cv_path_CHMOD
5959 if test -n "$CHMOD"; then
5960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5961 $as_echo "$CHMOD" >&6; }
5962 else
5963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5964 $as_echo "no" >&6; }
5965 fi
5966 
5967 
5968   test -n "$CHMOD" && break
5969 done
5970 
5971     else
5972       # If it succeeded, then it was overridden by the user. We will use it
5973       # for the tool.
5974 
5975       # First remove it from the list of overridden variables, so we can test
5976       # for unknown variables in the end.
5977       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5978 
5979       # Check if we try to supply an empty value
5980       if test "x$CHMOD" = x; then
5981         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CHMOD= (no value)" >&5
5982 $as_echo "$as_me: Setting user supplied tool CHMOD= (no value)" >&6;}
5983         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5
5984 $as_echo_n "checking for CHMOD... " >&6; }
5985         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5986 $as_echo "disabled" >&6; }
5987       else
5988         # Check if the provided tool contains a complete path.
5989         tool_specified="$CHMOD"
5990         tool_basename="${tool_specified##*/}"
5991         if test "x$tool_basename" = "x$tool_specified"; then
5992           # A command without a complete path is provided, search $PATH.
5993           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5
5994 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;}
5995           # Extract the first word of "$tool_basename", so it can be a program name with args.
5996 set dummy $tool_basename; ac_word=$2
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5998 $as_echo_n "checking for $ac_word... " >&6; }
5999 if ${ac_cv_path_CHMOD+:} false; then :
6000   $as_echo_n "(cached) " >&6
6001 else
6002   case $CHMOD in
6003   [\\/]* | ?:[\\/]*)
6004   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
6005   ;;
6006   *)
6007   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6008 for as_dir in $PATH
6009 do
6010   IFS=$as_save_IFS
6011   test -z "$as_dir" && as_dir=.
6012     for ac_exec_ext in '' $ac_executable_extensions; do
6013   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6014     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
6015     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6016     break 2
6017   fi
6018 done
6019   done
6020 IFS=$as_save_IFS
6021 
6022   ;;
6023 esac
6024 fi
6025 CHMOD=$ac_cv_path_CHMOD
6026 if test -n "$CHMOD"; then
6027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
6028 $as_echo "$CHMOD" >&6; }
6029 else
6030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6031 $as_echo "no" >&6; }
6032 fi
6033 
6034 
6035           if test "x$CHMOD" = x; then
6036             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6037           fi
6038         else
6039           # Otherwise we believe it is a complete path. Use it as it is.
6040           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5
6041 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;}
6042           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5
6043 $as_echo_n "checking for CHMOD... " >&6; }
6044           if test ! -x "$tool_specified"; then
6045             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6046 $as_echo "not found" >&6; }
6047             as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5
6048           fi
6049           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6050 $as_echo "$tool_specified" >&6; }
6051         fi
6052       fi
6053     fi
6054 
6055   fi
6056 
6057 
6058 
6059   if test "x$CHMOD" = x; then
6060     as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5
6061   fi
6062 
6063 
6064 
6065 
6066 
6067   # Publish this variable in the help.
6068 
6069 
6070   if [ -z "${CMP+x}" ]; then
6071     # The variable is not set by user, try to locate tool using the code snippet
6072     for ac_prog in cmp
6073 do
6074   # Extract the first word of "$ac_prog", so it can be a program name with args.
6075 set dummy $ac_prog; ac_word=$2
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6077 $as_echo_n "checking for $ac_word... " >&6; }
6078 if ${ac_cv_path_CMP+:} false; then :
6079   $as_echo_n "(cached) " >&6
6080 else
6081   case $CMP in
6082   [\\/]* | ?:[\\/]*)
6083   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6084   ;;
6085   *)
6086   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6087 for as_dir in $PATH
6088 do
6089   IFS=$as_save_IFS
6090   test -z "$as_dir" && as_dir=.
6091     for ac_exec_ext in '' $ac_executable_extensions; do
6092   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6093     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6094     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6095     break 2
6096   fi
6097 done
6098   done
6099 IFS=$as_save_IFS
6100 
6101   ;;
6102 esac
6103 fi
6104 CMP=$ac_cv_path_CMP
6105 if test -n "$CMP"; then
6106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
6107 $as_echo "$CMP" >&6; }
6108 else
6109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6110 $as_echo "no" >&6; }
6111 fi
6112 
6113 
6114   test -n "$CMP" && break
6115 done
6116 
6117   else
6118     # The variable is set, but is it from the command line or the environment?
6119 
6120     # Try to remove the string !CMP! from our list.
6121     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/}
6122     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6123       # If it failed, the variable was not from the command line. Ignore it,
6124       # but warn the user (except for BASH, which is always set by the calling BASH).
6125       if test "xCMP" != xBASH; then
6126         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5
6127 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;}
6128       fi
6129       # Try to locate tool using the code snippet
6130       for ac_prog in cmp
6131 do
6132   # Extract the first word of "$ac_prog", so it can be a program name with args.
6133 set dummy $ac_prog; ac_word=$2
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6135 $as_echo_n "checking for $ac_word... " >&6; }
6136 if ${ac_cv_path_CMP+:} false; then :
6137   $as_echo_n "(cached) " >&6
6138 else
6139   case $CMP in
6140   [\\/]* | ?:[\\/]*)
6141   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6142   ;;
6143   *)
6144   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6145 for as_dir in $PATH
6146 do
6147   IFS=$as_save_IFS
6148   test -z "$as_dir" && as_dir=.
6149     for ac_exec_ext in '' $ac_executable_extensions; do
6150   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6151     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6152     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6153     break 2
6154   fi
6155 done
6156   done
6157 IFS=$as_save_IFS
6158 
6159   ;;
6160 esac
6161 fi
6162 CMP=$ac_cv_path_CMP
6163 if test -n "$CMP"; then
6164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
6165 $as_echo "$CMP" >&6; }
6166 else
6167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6168 $as_echo "no" >&6; }
6169 fi
6170 
6171 
6172   test -n "$CMP" && break
6173 done
6174 
6175     else
6176       # If it succeeded, then it was overridden by the user. We will use it
6177       # for the tool.
6178 
6179       # First remove it from the list of overridden variables, so we can test
6180       # for unknown variables in the end.
6181       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6182 
6183       # Check if we try to supply an empty value
6184       if test "x$CMP" = x; then
6185         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CMP= (no value)" >&5
6186 $as_echo "$as_me: Setting user supplied tool CMP= (no value)" >&6;}
6187         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5
6188 $as_echo_n "checking for CMP... " >&6; }
6189         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6190 $as_echo "disabled" >&6; }
6191       else
6192         # Check if the provided tool contains a complete path.
6193         tool_specified="$CMP"
6194         tool_basename="${tool_specified##*/}"
6195         if test "x$tool_basename" = "x$tool_specified"; then
6196           # A command without a complete path is provided, search $PATH.
6197           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5
6198 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;}
6199           # Extract the first word of "$tool_basename", so it can be a program name with args.
6200 set dummy $tool_basename; ac_word=$2
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6202 $as_echo_n "checking for $ac_word... " >&6; }
6203 if ${ac_cv_path_CMP+:} false; then :
6204   $as_echo_n "(cached) " >&6
6205 else
6206   case $CMP in
6207   [\\/]* | ?:[\\/]*)
6208   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6209   ;;
6210   *)
6211   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6212 for as_dir in $PATH
6213 do
6214   IFS=$as_save_IFS
6215   test -z "$as_dir" && as_dir=.
6216     for ac_exec_ext in '' $ac_executable_extensions; do
6217   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6218     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6219     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6220     break 2
6221   fi
6222 done
6223   done
6224 IFS=$as_save_IFS
6225 
6226   ;;
6227 esac
6228 fi
6229 CMP=$ac_cv_path_CMP
6230 if test -n "$CMP"; then
6231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
6232 $as_echo "$CMP" >&6; }
6233 else
6234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6235 $as_echo "no" >&6; }
6236 fi
6237 
6238 
6239           if test "x$CMP" = x; then
6240             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6241           fi
6242         else
6243           # Otherwise we believe it is a complete path. Use it as it is.
6244           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5
6245 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;}
6246           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5
6247 $as_echo_n "checking for CMP... " >&6; }
6248           if test ! -x "$tool_specified"; then
6249             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6250 $as_echo "not found" >&6; }
6251             as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5
6252           fi
6253           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6254 $as_echo "$tool_specified" >&6; }
6255         fi
6256       fi
6257     fi
6258 
6259   fi
6260 
6261 
6262 
6263   if test "x$CMP" = x; then
6264     as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5
6265   fi
6266 
6267 
6268 
6269 
6270 
6271   # Publish this variable in the help.
6272 
6273 
6274   if [ -z "${COMM+x}" ]; then
6275     # The variable is not set by user, try to locate tool using the code snippet
6276     for ac_prog in comm
6277 do
6278   # Extract the first word of "$ac_prog", so it can be a program name with args.
6279 set dummy $ac_prog; ac_word=$2
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6281 $as_echo_n "checking for $ac_word... " >&6; }
6282 if ${ac_cv_path_COMM+:} false; then :
6283   $as_echo_n "(cached) " >&6
6284 else
6285   case $COMM in
6286   [\\/]* | ?:[\\/]*)
6287   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
6288   ;;
6289   *)
6290   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6291 for as_dir in $PATH
6292 do
6293   IFS=$as_save_IFS
6294   test -z "$as_dir" && as_dir=.
6295     for ac_exec_ext in '' $ac_executable_extensions; do
6296   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6297     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
6298     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6299     break 2
6300   fi
6301 done
6302   done
6303 IFS=$as_save_IFS
6304 
6305   ;;
6306 esac
6307 fi
6308 COMM=$ac_cv_path_COMM
6309 if test -n "$COMM"; then
6310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
6311 $as_echo "$COMM" >&6; }
6312 else
6313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6314 $as_echo "no" >&6; }
6315 fi
6316 
6317 
6318   test -n "$COMM" && break
6319 done
6320 
6321   else
6322     # The variable is set, but is it from the command line or the environment?
6323 
6324     # Try to remove the string !COMM! from our list.
6325     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/}
6326     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6327       # If it failed, the variable was not from the command line. Ignore it,
6328       # but warn the user (except for BASH, which is always set by the calling BASH).
6329       if test "xCOMM" != xBASH; then
6330         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5
6331 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;}
6332       fi
6333       # Try to locate tool using the code snippet
6334       for ac_prog in comm
6335 do
6336   # Extract the first word of "$ac_prog", so it can be a program name with args.
6337 set dummy $ac_prog; ac_word=$2
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6339 $as_echo_n "checking for $ac_word... " >&6; }
6340 if ${ac_cv_path_COMM+:} false; then :
6341   $as_echo_n "(cached) " >&6
6342 else
6343   case $COMM in
6344   [\\/]* | ?:[\\/]*)
6345   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
6346   ;;
6347   *)
6348   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6349 for as_dir in $PATH
6350 do
6351   IFS=$as_save_IFS
6352   test -z "$as_dir" && as_dir=.
6353     for ac_exec_ext in '' $ac_executable_extensions; do
6354   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6355     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
6356     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6357     break 2
6358   fi
6359 done
6360   done
6361 IFS=$as_save_IFS
6362 
6363   ;;
6364 esac
6365 fi
6366 COMM=$ac_cv_path_COMM
6367 if test -n "$COMM"; then
6368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
6369 $as_echo "$COMM" >&6; }
6370 else
6371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6372 $as_echo "no" >&6; }
6373 fi
6374 
6375 
6376   test -n "$COMM" && break
6377 done
6378 
6379     else
6380       # If it succeeded, then it was overridden by the user. We will use it
6381       # for the tool.
6382 
6383       # First remove it from the list of overridden variables, so we can test
6384       # for unknown variables in the end.
6385       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6386 
6387       # Check if we try to supply an empty value
6388       if test "x$COMM" = x; then
6389         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool COMM= (no value)" >&5
6390 $as_echo "$as_me: Setting user supplied tool COMM= (no value)" >&6;}
6391         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
6392 $as_echo_n "checking for COMM... " >&6; }
6393         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6394 $as_echo "disabled" >&6; }
6395       else
6396         # Check if the provided tool contains a complete path.
6397         tool_specified="$COMM"
6398         tool_basename="${tool_specified##*/}"
6399         if test "x$tool_basename" = "x$tool_specified"; then
6400           # A command without a complete path is provided, search $PATH.
6401           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5
6402 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;}
6403           # Extract the first word of "$tool_basename", so it can be a program name with args.
6404 set dummy $tool_basename; ac_word=$2
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6406 $as_echo_n "checking for $ac_word... " >&6; }
6407 if ${ac_cv_path_COMM+:} false; then :
6408   $as_echo_n "(cached) " >&6
6409 else
6410   case $COMM in
6411   [\\/]* | ?:[\\/]*)
6412   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
6413   ;;
6414   *)
6415   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6416 for as_dir in $PATH
6417 do
6418   IFS=$as_save_IFS
6419   test -z "$as_dir" && as_dir=.
6420     for ac_exec_ext in '' $ac_executable_extensions; do
6421   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6422     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
6423     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6424     break 2
6425   fi
6426 done
6427   done
6428 IFS=$as_save_IFS
6429 
6430   ;;
6431 esac
6432 fi
6433 COMM=$ac_cv_path_COMM
6434 if test -n "$COMM"; then
6435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
6436 $as_echo "$COMM" >&6; }
6437 else
6438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6439 $as_echo "no" >&6; }
6440 fi
6441 
6442 
6443           if test "x$COMM" = x; then
6444             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6445           fi
6446         else
6447           # Otherwise we believe it is a complete path. Use it as it is.
6448           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5
6449 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;}
6450           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
6451 $as_echo_n "checking for COMM... " >&6; }
6452           if test ! -x "$tool_specified"; then
6453             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6454 $as_echo "not found" >&6; }
6455             as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5
6456           fi
6457           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6458 $as_echo "$tool_specified" >&6; }
6459         fi
6460       fi
6461     fi
6462 
6463   fi
6464 
6465 
6466 
6467   if test "x$COMM" = x; then
6468     as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5
6469   fi
6470 
6471 
6472 
6473 
6474 
6475   # Publish this variable in the help.
6476 
6477 
6478   if [ -z "${CP+x}" ]; then
6479     # The variable is not set by user, try to locate tool using the code snippet
6480     for ac_prog in cp
6481 do
6482   # Extract the first word of "$ac_prog", so it can be a program name with args.
6483 set dummy $ac_prog; ac_word=$2
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6485 $as_echo_n "checking for $ac_word... " >&6; }
6486 if ${ac_cv_path_CP+:} false; then :
6487   $as_echo_n "(cached) " >&6
6488 else
6489   case $CP in
6490   [\\/]* | ?:[\\/]*)
6491   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6492   ;;
6493   *)
6494   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6495 for as_dir in $PATH
6496 do
6497   IFS=$as_save_IFS
6498   test -z "$as_dir" && as_dir=.
6499     for ac_exec_ext in '' $ac_executable_extensions; do
6500   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6501     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6502     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6503     break 2
6504   fi
6505 done
6506   done
6507 IFS=$as_save_IFS
6508 
6509   ;;
6510 esac
6511 fi
6512 CP=$ac_cv_path_CP
6513 if test -n "$CP"; then
6514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
6515 $as_echo "$CP" >&6; }
6516 else
6517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6518 $as_echo "no" >&6; }
6519 fi
6520 
6521 
6522   test -n "$CP" && break
6523 done
6524 
6525   else
6526     # The variable is set, but is it from the command line or the environment?
6527 
6528     # Try to remove the string !CP! from our list.
6529     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/}
6530     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6531       # If it failed, the variable was not from the command line. Ignore it,
6532       # but warn the user (except for BASH, which is always set by the calling BASH).
6533       if test "xCP" != xBASH; then
6534         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5
6535 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;}
6536       fi
6537       # Try to locate tool using the code snippet
6538       for ac_prog in cp
6539 do
6540   # Extract the first word of "$ac_prog", so it can be a program name with args.
6541 set dummy $ac_prog; ac_word=$2
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6543 $as_echo_n "checking for $ac_word... " >&6; }
6544 if ${ac_cv_path_CP+:} false; then :
6545   $as_echo_n "(cached) " >&6
6546 else
6547   case $CP in
6548   [\\/]* | ?:[\\/]*)
6549   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6550   ;;
6551   *)
6552   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6553 for as_dir in $PATH
6554 do
6555   IFS=$as_save_IFS
6556   test -z "$as_dir" && as_dir=.
6557     for ac_exec_ext in '' $ac_executable_extensions; do
6558   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6559     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6560     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6561     break 2
6562   fi
6563 done
6564   done
6565 IFS=$as_save_IFS
6566 
6567   ;;
6568 esac
6569 fi
6570 CP=$ac_cv_path_CP
6571 if test -n "$CP"; then
6572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
6573 $as_echo "$CP" >&6; }
6574 else
6575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6576 $as_echo "no" >&6; }
6577 fi
6578 
6579 
6580   test -n "$CP" && break
6581 done
6582 
6583     else
6584       # If it succeeded, then it was overridden by the user. We will use it
6585       # for the tool.
6586 
6587       # First remove it from the list of overridden variables, so we can test
6588       # for unknown variables in the end.
6589       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6590 
6591       # Check if we try to supply an empty value
6592       if test "x$CP" = x; then
6593         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CP= (no value)" >&5
6594 $as_echo "$as_me: Setting user supplied tool CP= (no value)" >&6;}
6595         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5
6596 $as_echo_n "checking for CP... " >&6; }
6597         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6598 $as_echo "disabled" >&6; }
6599       else
6600         # Check if the provided tool contains a complete path.
6601         tool_specified="$CP"
6602         tool_basename="${tool_specified##*/}"
6603         if test "x$tool_basename" = "x$tool_specified"; then
6604           # A command without a complete path is provided, search $PATH.
6605           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5
6606 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;}
6607           # Extract the first word of "$tool_basename", so it can be a program name with args.
6608 set dummy $tool_basename; ac_word=$2
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6610 $as_echo_n "checking for $ac_word... " >&6; }
6611 if ${ac_cv_path_CP+:} false; then :
6612   $as_echo_n "(cached) " >&6
6613 else
6614   case $CP in
6615   [\\/]* | ?:[\\/]*)
6616   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6617   ;;
6618   *)
6619   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6620 for as_dir in $PATH
6621 do
6622   IFS=$as_save_IFS
6623   test -z "$as_dir" && as_dir=.
6624     for ac_exec_ext in '' $ac_executable_extensions; do
6625   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6626     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6627     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6628     break 2
6629   fi
6630 done
6631   done
6632 IFS=$as_save_IFS
6633 
6634   ;;
6635 esac
6636 fi
6637 CP=$ac_cv_path_CP
6638 if test -n "$CP"; then
6639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
6640 $as_echo "$CP" >&6; }
6641 else
6642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6643 $as_echo "no" >&6; }
6644 fi
6645 
6646 
6647           if test "x$CP" = x; then
6648             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6649           fi
6650         else
6651           # Otherwise we believe it is a complete path. Use it as it is.
6652           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5
6653 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;}
6654           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5
6655 $as_echo_n "checking for CP... " >&6; }
6656           if test ! -x "$tool_specified"; then
6657             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6658 $as_echo "not found" >&6; }
6659             as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5
6660           fi
6661           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6662 $as_echo "$tool_specified" >&6; }
6663         fi
6664       fi
6665     fi
6666 
6667   fi
6668 
6669 
6670 
6671   if test "x$CP" = x; then
6672     as_fn_error $? "Could not find required tool for CP" "$LINENO" 5
6673   fi
6674 
6675 
6676 
6677 
6678 
6679   # Publish this variable in the help.
6680 
6681 
6682   if [ -z "${CUT+x}" ]; then
6683     # The variable is not set by user, try to locate tool using the code snippet
6684     for ac_prog in cut
6685 do
6686   # Extract the first word of "$ac_prog", so it can be a program name with args.
6687 set dummy $ac_prog; ac_word=$2
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6689 $as_echo_n "checking for $ac_word... " >&6; }
6690 if ${ac_cv_path_CUT+:} false; then :
6691   $as_echo_n "(cached) " >&6
6692 else
6693   case $CUT in
6694   [\\/]* | ?:[\\/]*)
6695   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
6696   ;;
6697   *)
6698   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6699 for as_dir in $PATH
6700 do
6701   IFS=$as_save_IFS
6702   test -z "$as_dir" && as_dir=.
6703     for ac_exec_ext in '' $ac_executable_extensions; do
6704   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6705     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
6706     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6707     break 2
6708   fi
6709 done
6710   done
6711 IFS=$as_save_IFS
6712 
6713   ;;
6714 esac
6715 fi
6716 CUT=$ac_cv_path_CUT
6717 if test -n "$CUT"; then
6718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
6719 $as_echo "$CUT" >&6; }
6720 else
6721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6722 $as_echo "no" >&6; }
6723 fi
6724 
6725 
6726   test -n "$CUT" && break
6727 done
6728 
6729   else
6730     # The variable is set, but is it from the command line or the environment?
6731 
6732     # Try to remove the string !CUT! from our list.
6733     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/}
6734     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6735       # If it failed, the variable was not from the command line. Ignore it,
6736       # but warn the user (except for BASH, which is always set by the calling BASH).
6737       if test "xCUT" != xBASH; then
6738         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5
6739 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;}
6740       fi
6741       # Try to locate tool using the code snippet
6742       for ac_prog in cut
6743 do
6744   # Extract the first word of "$ac_prog", so it can be a program name with args.
6745 set dummy $ac_prog; ac_word=$2
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6747 $as_echo_n "checking for $ac_word... " >&6; }
6748 if ${ac_cv_path_CUT+:} false; then :
6749   $as_echo_n "(cached) " >&6
6750 else
6751   case $CUT in
6752   [\\/]* | ?:[\\/]*)
6753   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
6754   ;;
6755   *)
6756   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6757 for as_dir in $PATH
6758 do
6759   IFS=$as_save_IFS
6760   test -z "$as_dir" && as_dir=.
6761     for ac_exec_ext in '' $ac_executable_extensions; do
6762   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6763     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
6764     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6765     break 2
6766   fi
6767 done
6768   done
6769 IFS=$as_save_IFS
6770 
6771   ;;
6772 esac
6773 fi
6774 CUT=$ac_cv_path_CUT
6775 if test -n "$CUT"; then
6776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
6777 $as_echo "$CUT" >&6; }
6778 else
6779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6780 $as_echo "no" >&6; }
6781 fi
6782 
6783 
6784   test -n "$CUT" && break
6785 done
6786 
6787     else
6788       # If it succeeded, then it was overridden by the user. We will use it
6789       # for the tool.
6790 
6791       # First remove it from the list of overridden variables, so we can test
6792       # for unknown variables in the end.
6793       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6794 
6795       # Check if we try to supply an empty value
6796       if test "x$CUT" = x; then
6797         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CUT= (no value)" >&5
6798 $as_echo "$as_me: Setting user supplied tool CUT= (no value)" >&6;}
6799         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5
6800 $as_echo_n "checking for CUT... " >&6; }
6801         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6802 $as_echo "disabled" >&6; }
6803       else
6804         # Check if the provided tool contains a complete path.
6805         tool_specified="$CUT"
6806         tool_basename="${tool_specified##*/}"
6807         if test "x$tool_basename" = "x$tool_specified"; then
6808           # A command without a complete path is provided, search $PATH.
6809           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5
6810 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;}
6811           # Extract the first word of "$tool_basename", so it can be a program name with args.
6812 set dummy $tool_basename; ac_word=$2
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6814 $as_echo_n "checking for $ac_word... " >&6; }
6815 if ${ac_cv_path_CUT+:} false; then :
6816   $as_echo_n "(cached) " >&6
6817 else
6818   case $CUT in
6819   [\\/]* | ?:[\\/]*)
6820   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
6821   ;;
6822   *)
6823   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6824 for as_dir in $PATH
6825 do
6826   IFS=$as_save_IFS
6827   test -z "$as_dir" && as_dir=.
6828     for ac_exec_ext in '' $ac_executable_extensions; do
6829   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6830     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
6831     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6832     break 2
6833   fi
6834 done
6835   done
6836 IFS=$as_save_IFS
6837 
6838   ;;
6839 esac
6840 fi
6841 CUT=$ac_cv_path_CUT
6842 if test -n "$CUT"; then
6843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
6844 $as_echo "$CUT" >&6; }
6845 else
6846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6847 $as_echo "no" >&6; }
6848 fi
6849 
6850 
6851           if test "x$CUT" = x; then
6852             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6853           fi
6854         else
6855           # Otherwise we believe it is a complete path. Use it as it is.
6856           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5
6857 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;}
6858           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5
6859 $as_echo_n "checking for CUT... " >&6; }
6860           if test ! -x "$tool_specified"; then
6861             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6862 $as_echo "not found" >&6; }
6863             as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5
6864           fi
6865           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6866 $as_echo "$tool_specified" >&6; }
6867         fi
6868       fi
6869     fi
6870 
6871   fi
6872 
6873 
6874 
6875   if test "x$CUT" = x; then
6876     as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5
6877   fi
6878 
6879 
6880 
6881 
6882 
6883   # Publish this variable in the help.
6884 
6885 
6886   if [ -z "${DATE+x}" ]; then
6887     # The variable is not set by user, try to locate tool using the code snippet
6888     for ac_prog in date
6889 do
6890   # Extract the first word of "$ac_prog", so it can be a program name with args.
6891 set dummy $ac_prog; ac_word=$2
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6893 $as_echo_n "checking for $ac_word... " >&6; }
6894 if ${ac_cv_path_DATE+:} false; then :
6895   $as_echo_n "(cached) " >&6
6896 else
6897   case $DATE in
6898   [\\/]* | ?:[\\/]*)
6899   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6900   ;;
6901   *)
6902   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6903 for as_dir in $PATH
6904 do
6905   IFS=$as_save_IFS
6906   test -z "$as_dir" && as_dir=.
6907     for ac_exec_ext in '' $ac_executable_extensions; do
6908   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6909     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6910     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6911     break 2
6912   fi
6913 done
6914   done
6915 IFS=$as_save_IFS
6916 
6917   ;;
6918 esac
6919 fi
6920 DATE=$ac_cv_path_DATE
6921 if test -n "$DATE"; then
6922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6923 $as_echo "$DATE" >&6; }
6924 else
6925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6926 $as_echo "no" >&6; }
6927 fi
6928 
6929 
6930   test -n "$DATE" && break
6931 done
6932 
6933   else
6934     # The variable is set, but is it from the command line or the environment?
6935 
6936     # Try to remove the string !DATE! from our list.
6937     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/}
6938     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6939       # If it failed, the variable was not from the command line. Ignore it,
6940       # but warn the user (except for BASH, which is always set by the calling BASH).
6941       if test "xDATE" != xBASH; then
6942         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5
6943 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;}
6944       fi
6945       # Try to locate tool using the code snippet
6946       for ac_prog in date
6947 do
6948   # Extract the first word of "$ac_prog", so it can be a program name with args.
6949 set dummy $ac_prog; ac_word=$2
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6951 $as_echo_n "checking for $ac_word... " >&6; }
6952 if ${ac_cv_path_DATE+:} false; then :
6953   $as_echo_n "(cached) " >&6
6954 else
6955   case $DATE in
6956   [\\/]* | ?:[\\/]*)
6957   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6958   ;;
6959   *)
6960   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6961 for as_dir in $PATH
6962 do
6963   IFS=$as_save_IFS
6964   test -z "$as_dir" && as_dir=.
6965     for ac_exec_ext in '' $ac_executable_extensions; do
6966   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6967     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6968     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6969     break 2
6970   fi
6971 done
6972   done
6973 IFS=$as_save_IFS
6974 
6975   ;;
6976 esac
6977 fi
6978 DATE=$ac_cv_path_DATE
6979 if test -n "$DATE"; then
6980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6981 $as_echo "$DATE" >&6; }
6982 else
6983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6984 $as_echo "no" >&6; }
6985 fi
6986 
6987 
6988   test -n "$DATE" && break
6989 done
6990 
6991     else
6992       # If it succeeded, then it was overridden by the user. We will use it
6993       # for the tool.
6994 
6995       # First remove it from the list of overridden variables, so we can test
6996       # for unknown variables in the end.
6997       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6998 
6999       # Check if we try to supply an empty value
7000       if test "x$DATE" = x; then
7001         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DATE= (no value)" >&5
7002 $as_echo "$as_me: Setting user supplied tool DATE= (no value)" >&6;}
7003         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5
7004 $as_echo_n "checking for DATE... " >&6; }
7005         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7006 $as_echo "disabled" >&6; }
7007       else
7008         # Check if the provided tool contains a complete path.
7009         tool_specified="$DATE"
7010         tool_basename="${tool_specified##*/}"
7011         if test "x$tool_basename" = "x$tool_specified"; then
7012           # A command without a complete path is provided, search $PATH.
7013           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5
7014 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;}
7015           # Extract the first word of "$tool_basename", so it can be a program name with args.
7016 set dummy $tool_basename; ac_word=$2
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7018 $as_echo_n "checking for $ac_word... " >&6; }
7019 if ${ac_cv_path_DATE+:} false; then :
7020   $as_echo_n "(cached) " >&6
7021 else
7022   case $DATE in
7023   [\\/]* | ?:[\\/]*)
7024   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
7025   ;;
7026   *)
7027   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7028 for as_dir in $PATH
7029 do
7030   IFS=$as_save_IFS
7031   test -z "$as_dir" && as_dir=.
7032     for ac_exec_ext in '' $ac_executable_extensions; do
7033   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7034     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
7035     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7036     break 2
7037   fi
7038 done
7039   done
7040 IFS=$as_save_IFS
7041 
7042   ;;
7043 esac
7044 fi
7045 DATE=$ac_cv_path_DATE
7046 if test -n "$DATE"; then
7047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
7048 $as_echo "$DATE" >&6; }
7049 else
7050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7051 $as_echo "no" >&6; }
7052 fi
7053 
7054 
7055           if test "x$DATE" = x; then
7056             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7057           fi
7058         else
7059           # Otherwise we believe it is a complete path. Use it as it is.
7060           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5
7061 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;}
7062           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5
7063 $as_echo_n "checking for DATE... " >&6; }
7064           if test ! -x "$tool_specified"; then
7065             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7066 $as_echo "not found" >&6; }
7067             as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5
7068           fi
7069           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7070 $as_echo "$tool_specified" >&6; }
7071         fi
7072       fi
7073     fi
7074 
7075   fi
7076 
7077 
7078 
7079   if test "x$DATE" = x; then
7080     as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5
7081   fi
7082 
7083 
7084 
7085 
7086 
7087   # Publish this variable in the help.
7088 
7089 
7090   if [ -z "${DIFF+x}" ]; then
7091     # The variable is not set by user, try to locate tool using the code snippet
7092     for ac_prog in gdiff diff
7093 do
7094   # Extract the first word of "$ac_prog", so it can be a program name with args.
7095 set dummy $ac_prog; ac_word=$2
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7097 $as_echo_n "checking for $ac_word... " >&6; }
7098 if ${ac_cv_path_DIFF+:} false; then :
7099   $as_echo_n "(cached) " >&6
7100 else
7101   case $DIFF in
7102   [\\/]* | ?:[\\/]*)
7103   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
7104   ;;
7105   *)
7106   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7107 for as_dir in $PATH
7108 do
7109   IFS=$as_save_IFS
7110   test -z "$as_dir" && as_dir=.
7111     for ac_exec_ext in '' $ac_executable_extensions; do
7112   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7113     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
7114     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7115     break 2
7116   fi
7117 done
7118   done
7119 IFS=$as_save_IFS
7120 
7121   ;;
7122 esac
7123 fi
7124 DIFF=$ac_cv_path_DIFF
7125 if test -n "$DIFF"; then
7126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
7127 $as_echo "$DIFF" >&6; }
7128 else
7129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7130 $as_echo "no" >&6; }
7131 fi
7132 
7133 
7134   test -n "$DIFF" && break
7135 done
7136 
7137   else
7138     # The variable is set, but is it from the command line or the environment?
7139 
7140     # Try to remove the string !DIFF! from our list.
7141     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/}
7142     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7143       # If it failed, the variable was not from the command line. Ignore it,
7144       # but warn the user (except for BASH, which is always set by the calling BASH).
7145       if test "xDIFF" != xBASH; then
7146         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5
7147 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;}
7148       fi
7149       # Try to locate tool using the code snippet
7150       for ac_prog in gdiff diff
7151 do
7152   # Extract the first word of "$ac_prog", so it can be a program name with args.
7153 set dummy $ac_prog; ac_word=$2
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7155 $as_echo_n "checking for $ac_word... " >&6; }
7156 if ${ac_cv_path_DIFF+:} false; then :
7157   $as_echo_n "(cached) " >&6
7158 else
7159   case $DIFF in
7160   [\\/]* | ?:[\\/]*)
7161   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
7162   ;;
7163   *)
7164   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7165 for as_dir in $PATH
7166 do
7167   IFS=$as_save_IFS
7168   test -z "$as_dir" && as_dir=.
7169     for ac_exec_ext in '' $ac_executable_extensions; do
7170   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7171     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
7172     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7173     break 2
7174   fi
7175 done
7176   done
7177 IFS=$as_save_IFS
7178 
7179   ;;
7180 esac
7181 fi
7182 DIFF=$ac_cv_path_DIFF
7183 if test -n "$DIFF"; then
7184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
7185 $as_echo "$DIFF" >&6; }
7186 else
7187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7188 $as_echo "no" >&6; }
7189 fi
7190 
7191 
7192   test -n "$DIFF" && break
7193 done
7194 
7195     else
7196       # If it succeeded, then it was overridden by the user. We will use it
7197       # for the tool.
7198 
7199       # First remove it from the list of overridden variables, so we can test
7200       # for unknown variables in the end.
7201       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7202 
7203       # Check if we try to supply an empty value
7204       if test "x$DIFF" = x; then
7205         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DIFF= (no value)" >&5
7206 $as_echo "$as_me: Setting user supplied tool DIFF= (no value)" >&6;}
7207         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5
7208 $as_echo_n "checking for DIFF... " >&6; }
7209         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7210 $as_echo "disabled" >&6; }
7211       else
7212         # Check if the provided tool contains a complete path.
7213         tool_specified="$DIFF"
7214         tool_basename="${tool_specified##*/}"
7215         if test "x$tool_basename" = "x$tool_specified"; then
7216           # A command without a complete path is provided, search $PATH.
7217           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5
7218 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;}
7219           # Extract the first word of "$tool_basename", so it can be a program name with args.
7220 set dummy $tool_basename; ac_word=$2
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7222 $as_echo_n "checking for $ac_word... " >&6; }
7223 if ${ac_cv_path_DIFF+:} false; then :
7224   $as_echo_n "(cached) " >&6
7225 else
7226   case $DIFF in
7227   [\\/]* | ?:[\\/]*)
7228   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
7229   ;;
7230   *)
7231   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7232 for as_dir in $PATH
7233 do
7234   IFS=$as_save_IFS
7235   test -z "$as_dir" && as_dir=.
7236     for ac_exec_ext in '' $ac_executable_extensions; do
7237   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7238     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
7239     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7240     break 2
7241   fi
7242 done
7243   done
7244 IFS=$as_save_IFS
7245 
7246   ;;
7247 esac
7248 fi
7249 DIFF=$ac_cv_path_DIFF
7250 if test -n "$DIFF"; then
7251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
7252 $as_echo "$DIFF" >&6; }
7253 else
7254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7255 $as_echo "no" >&6; }
7256 fi
7257 
7258 
7259           if test "x$DIFF" = x; then
7260             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7261           fi
7262         else
7263           # Otherwise we believe it is a complete path. Use it as it is.
7264           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5
7265 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;}
7266           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5
7267 $as_echo_n "checking for DIFF... " >&6; }
7268           if test ! -x "$tool_specified"; then
7269             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7270 $as_echo "not found" >&6; }
7271             as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5
7272           fi
7273           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7274 $as_echo "$tool_specified" >&6; }
7275         fi
7276       fi
7277     fi
7278 
7279   fi
7280 
7281 
7282 
7283   if test "x$DIFF" = x; then
7284     as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5
7285   fi
7286 
7287 
7288 
7289 
7290 
7291   # Publish this variable in the help.
7292 
7293 
7294   if [ -z "${DIRNAME+x}" ]; then
7295     # The variable is not set by user, try to locate tool using the code snippet
7296     for ac_prog in dirname
7297 do
7298   # Extract the first word of "$ac_prog", so it can be a program name with args.
7299 set dummy $ac_prog; ac_word=$2
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7301 $as_echo_n "checking for $ac_word... " >&6; }
7302 if ${ac_cv_path_DIRNAME+:} false; then :
7303   $as_echo_n "(cached) " >&6
7304 else
7305   case $DIRNAME in
7306   [\\/]* | ?:[\\/]*)
7307   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
7308   ;;
7309   *)
7310   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7311 for as_dir in $PATH
7312 do
7313   IFS=$as_save_IFS
7314   test -z "$as_dir" && as_dir=.
7315     for ac_exec_ext in '' $ac_executable_extensions; do
7316   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7317     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
7318     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7319     break 2
7320   fi
7321 done
7322   done
7323 IFS=$as_save_IFS
7324 
7325   ;;
7326 esac
7327 fi
7328 DIRNAME=$ac_cv_path_DIRNAME
7329 if test -n "$DIRNAME"; then
7330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
7331 $as_echo "$DIRNAME" >&6; }
7332 else
7333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7334 $as_echo "no" >&6; }
7335 fi
7336 
7337 
7338   test -n "$DIRNAME" && break
7339 done
7340 
7341   else
7342     # The variable is set, but is it from the command line or the environment?
7343 
7344     # Try to remove the string !DIRNAME! from our list.
7345     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/}
7346     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7347       # If it failed, the variable was not from the command line. Ignore it,
7348       # but warn the user (except for BASH, which is always set by the calling BASH).
7349       if test "xDIRNAME" != xBASH; then
7350         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5
7351 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;}
7352       fi
7353       # Try to locate tool using the code snippet
7354       for ac_prog in dirname
7355 do
7356   # Extract the first word of "$ac_prog", so it can be a program name with args.
7357 set dummy $ac_prog; ac_word=$2
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7359 $as_echo_n "checking for $ac_word... " >&6; }
7360 if ${ac_cv_path_DIRNAME+:} false; then :
7361   $as_echo_n "(cached) " >&6
7362 else
7363   case $DIRNAME in
7364   [\\/]* | ?:[\\/]*)
7365   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
7366   ;;
7367   *)
7368   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7369 for as_dir in $PATH
7370 do
7371   IFS=$as_save_IFS
7372   test -z "$as_dir" && as_dir=.
7373     for ac_exec_ext in '' $ac_executable_extensions; do
7374   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7375     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
7376     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7377     break 2
7378   fi
7379 done
7380   done
7381 IFS=$as_save_IFS
7382 
7383   ;;
7384 esac
7385 fi
7386 DIRNAME=$ac_cv_path_DIRNAME
7387 if test -n "$DIRNAME"; then
7388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
7389 $as_echo "$DIRNAME" >&6; }
7390 else
7391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7392 $as_echo "no" >&6; }
7393 fi
7394 
7395 
7396   test -n "$DIRNAME" && break
7397 done
7398 
7399     else
7400       # If it succeeded, then it was overridden by the user. We will use it
7401       # for the tool.
7402 
7403       # First remove it from the list of overridden variables, so we can test
7404       # for unknown variables in the end.
7405       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7406 
7407       # Check if we try to supply an empty value
7408       if test "x$DIRNAME" = x; then
7409         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DIRNAME= (no value)" >&5
7410 $as_echo "$as_me: Setting user supplied tool DIRNAME= (no value)" >&6;}
7411         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5
7412 $as_echo_n "checking for DIRNAME... " >&6; }
7413         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7414 $as_echo "disabled" >&6; }
7415       else
7416         # Check if the provided tool contains a complete path.
7417         tool_specified="$DIRNAME"
7418         tool_basename="${tool_specified##*/}"
7419         if test "x$tool_basename" = "x$tool_specified"; then
7420           # A command without a complete path is provided, search $PATH.
7421           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5
7422 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;}
7423           # Extract the first word of "$tool_basename", so it can be a program name with args.
7424 set dummy $tool_basename; ac_word=$2
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7426 $as_echo_n "checking for $ac_word... " >&6; }
7427 if ${ac_cv_path_DIRNAME+:} false; then :
7428   $as_echo_n "(cached) " >&6
7429 else
7430   case $DIRNAME in
7431   [\\/]* | ?:[\\/]*)
7432   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
7433   ;;
7434   *)
7435   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7436 for as_dir in $PATH
7437 do
7438   IFS=$as_save_IFS
7439   test -z "$as_dir" && as_dir=.
7440     for ac_exec_ext in '' $ac_executable_extensions; do
7441   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7442     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
7443     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7444     break 2
7445   fi
7446 done
7447   done
7448 IFS=$as_save_IFS
7449 
7450   ;;
7451 esac
7452 fi
7453 DIRNAME=$ac_cv_path_DIRNAME
7454 if test -n "$DIRNAME"; then
7455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
7456 $as_echo "$DIRNAME" >&6; }
7457 else
7458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7459 $as_echo "no" >&6; }
7460 fi
7461 
7462 
7463           if test "x$DIRNAME" = x; then
7464             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7465           fi
7466         else
7467           # Otherwise we believe it is a complete path. Use it as it is.
7468           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5
7469 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;}
7470           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5
7471 $as_echo_n "checking for DIRNAME... " >&6; }
7472           if test ! -x "$tool_specified"; then
7473             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7474 $as_echo "not found" >&6; }
7475             as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
7476           fi
7477           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7478 $as_echo "$tool_specified" >&6; }
7479         fi
7480       fi
7481     fi
7482 
7483   fi
7484 
7485 
7486 
7487   if test "x$DIRNAME" = x; then
7488     as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5
7489   fi
7490 
7491 
7492 
7493 
7494 
7495   # Publish this variable in the help.
7496 
7497 
7498   if [ -z "${ECHO+x}" ]; then
7499     # The variable is not set by user, try to locate tool using the code snippet
7500     for ac_prog in echo
7501 do
7502   # Extract the first word of "$ac_prog", so it can be a program name with args.
7503 set dummy $ac_prog; ac_word=$2
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7505 $as_echo_n "checking for $ac_word... " >&6; }
7506 if ${ac_cv_path_ECHO+:} false; then :
7507   $as_echo_n "(cached) " >&6
7508 else
7509   case $ECHO in
7510   [\\/]* | ?:[\\/]*)
7511   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
7512   ;;
7513   *)
7514   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7515 for as_dir in $PATH
7516 do
7517   IFS=$as_save_IFS
7518   test -z "$as_dir" && as_dir=.
7519     for ac_exec_ext in '' $ac_executable_extensions; do
7520   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7521     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
7522     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7523     break 2
7524   fi
7525 done
7526   done
7527 IFS=$as_save_IFS
7528 
7529   ;;
7530 esac
7531 fi
7532 ECHO=$ac_cv_path_ECHO
7533 if test -n "$ECHO"; then
7534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
7535 $as_echo "$ECHO" >&6; }
7536 else
7537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7538 $as_echo "no" >&6; }
7539 fi
7540 
7541 
7542   test -n "$ECHO" && break
7543 done
7544 
7545   else
7546     # The variable is set, but is it from the command line or the environment?
7547 
7548     # Try to remove the string !ECHO! from our list.
7549     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/}
7550     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7551       # If it failed, the variable was not from the command line. Ignore it,
7552       # but warn the user (except for BASH, which is always set by the calling BASH).
7553       if test "xECHO" != xBASH; then
7554         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5
7555 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;}
7556       fi
7557       # Try to locate tool using the code snippet
7558       for ac_prog in echo
7559 do
7560   # Extract the first word of "$ac_prog", so it can be a program name with args.
7561 set dummy $ac_prog; ac_word=$2
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7563 $as_echo_n "checking for $ac_word... " >&6; }
7564 if ${ac_cv_path_ECHO+:} false; then :
7565   $as_echo_n "(cached) " >&6
7566 else
7567   case $ECHO in
7568   [\\/]* | ?:[\\/]*)
7569   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
7570   ;;
7571   *)
7572   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7573 for as_dir in $PATH
7574 do
7575   IFS=$as_save_IFS
7576   test -z "$as_dir" && as_dir=.
7577     for ac_exec_ext in '' $ac_executable_extensions; do
7578   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7579     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
7580     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7581     break 2
7582   fi
7583 done
7584   done
7585 IFS=$as_save_IFS
7586 
7587   ;;
7588 esac
7589 fi
7590 ECHO=$ac_cv_path_ECHO
7591 if test -n "$ECHO"; then
7592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
7593 $as_echo "$ECHO" >&6; }
7594 else
7595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7596 $as_echo "no" >&6; }
7597 fi
7598 
7599 
7600   test -n "$ECHO" && break
7601 done
7602 
7603     else
7604       # If it succeeded, then it was overridden by the user. We will use it
7605       # for the tool.
7606 
7607       # First remove it from the list of overridden variables, so we can test
7608       # for unknown variables in the end.
7609       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7610 
7611       # Check if we try to supply an empty value
7612       if test "x$ECHO" = x; then
7613         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ECHO= (no value)" >&5
7614 $as_echo "$as_me: Setting user supplied tool ECHO= (no value)" >&6;}
7615         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5
7616 $as_echo_n "checking for ECHO... " >&6; }
7617         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7618 $as_echo "disabled" >&6; }
7619       else
7620         # Check if the provided tool contains a complete path.
7621         tool_specified="$ECHO"
7622         tool_basename="${tool_specified##*/}"
7623         if test "x$tool_basename" = "x$tool_specified"; then
7624           # A command without a complete path is provided, search $PATH.
7625           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5
7626 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;}
7627           # Extract the first word of "$tool_basename", so it can be a program name with args.
7628 set dummy $tool_basename; ac_word=$2
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7630 $as_echo_n "checking for $ac_word... " >&6; }
7631 if ${ac_cv_path_ECHO+:} false; then :
7632   $as_echo_n "(cached) " >&6
7633 else
7634   case $ECHO in
7635   [\\/]* | ?:[\\/]*)
7636   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
7637   ;;
7638   *)
7639   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7640 for as_dir in $PATH
7641 do
7642   IFS=$as_save_IFS
7643   test -z "$as_dir" && as_dir=.
7644     for ac_exec_ext in '' $ac_executable_extensions; do
7645   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7646     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
7647     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7648     break 2
7649   fi
7650 done
7651   done
7652 IFS=$as_save_IFS
7653 
7654   ;;
7655 esac
7656 fi
7657 ECHO=$ac_cv_path_ECHO
7658 if test -n "$ECHO"; then
7659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
7660 $as_echo "$ECHO" >&6; }
7661 else
7662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7663 $as_echo "no" >&6; }
7664 fi
7665 
7666 
7667           if test "x$ECHO" = x; then
7668             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7669           fi
7670         else
7671           # Otherwise we believe it is a complete path. Use it as it is.
7672           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5
7673 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;}
7674           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5
7675 $as_echo_n "checking for ECHO... " >&6; }
7676           if test ! -x "$tool_specified"; then
7677             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7678 $as_echo "not found" >&6; }
7679             as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5
7680           fi
7681           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7682 $as_echo "$tool_specified" >&6; }
7683         fi
7684       fi
7685     fi
7686 
7687   fi
7688 
7689 
7690 
7691   if test "x$ECHO" = x; then
7692     as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5
7693   fi
7694 
7695 
7696 
7697 
7698 
7699   # Publish this variable in the help.
7700 
7701 
7702   if [ -z "${EXPR+x}" ]; then
7703     # The variable is not set by user, try to locate tool using the code snippet
7704     for ac_prog in expr
7705 do
7706   # Extract the first word of "$ac_prog", so it can be a program name with args.
7707 set dummy $ac_prog; ac_word=$2
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7709 $as_echo_n "checking for $ac_word... " >&6; }
7710 if ${ac_cv_path_EXPR+:} false; then :
7711   $as_echo_n "(cached) " >&6
7712 else
7713   case $EXPR in
7714   [\\/]* | ?:[\\/]*)
7715   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
7716   ;;
7717   *)
7718   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7719 for as_dir in $PATH
7720 do
7721   IFS=$as_save_IFS
7722   test -z "$as_dir" && as_dir=.
7723     for ac_exec_ext in '' $ac_executable_extensions; do
7724   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7725     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
7726     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7727     break 2
7728   fi
7729 done
7730   done
7731 IFS=$as_save_IFS
7732 
7733   ;;
7734 esac
7735 fi
7736 EXPR=$ac_cv_path_EXPR
7737 if test -n "$EXPR"; then
7738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
7739 $as_echo "$EXPR" >&6; }
7740 else
7741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7742 $as_echo "no" >&6; }
7743 fi
7744 
7745 
7746   test -n "$EXPR" && break
7747 done
7748 
7749   else
7750     # The variable is set, but is it from the command line or the environment?
7751 
7752     # Try to remove the string !EXPR! from our list.
7753     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/}
7754     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7755       # If it failed, the variable was not from the command line. Ignore it,
7756       # but warn the user (except for BASH, which is always set by the calling BASH).
7757       if test "xEXPR" != xBASH; then
7758         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5
7759 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;}
7760       fi
7761       # Try to locate tool using the code snippet
7762       for ac_prog in expr
7763 do
7764   # Extract the first word of "$ac_prog", so it can be a program name with args.
7765 set dummy $ac_prog; ac_word=$2
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7767 $as_echo_n "checking for $ac_word... " >&6; }
7768 if ${ac_cv_path_EXPR+:} false; then :
7769   $as_echo_n "(cached) " >&6
7770 else
7771   case $EXPR in
7772   [\\/]* | ?:[\\/]*)
7773   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
7774   ;;
7775   *)
7776   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7777 for as_dir in $PATH
7778 do
7779   IFS=$as_save_IFS
7780   test -z "$as_dir" && as_dir=.
7781     for ac_exec_ext in '' $ac_executable_extensions; do
7782   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7783     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
7784     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7785     break 2
7786   fi
7787 done
7788   done
7789 IFS=$as_save_IFS
7790 
7791   ;;
7792 esac
7793 fi
7794 EXPR=$ac_cv_path_EXPR
7795 if test -n "$EXPR"; then
7796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
7797 $as_echo "$EXPR" >&6; }
7798 else
7799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7800 $as_echo "no" >&6; }
7801 fi
7802 
7803 
7804   test -n "$EXPR" && break
7805 done
7806 
7807     else
7808       # If it succeeded, then it was overridden by the user. We will use it
7809       # for the tool.
7810 
7811       # First remove it from the list of overridden variables, so we can test
7812       # for unknown variables in the end.
7813       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7814 
7815       # Check if we try to supply an empty value
7816       if test "x$EXPR" = x; then
7817         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool EXPR= (no value)" >&5
7818 $as_echo "$as_me: Setting user supplied tool EXPR= (no value)" >&6;}
7819         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5
7820 $as_echo_n "checking for EXPR... " >&6; }
7821         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7822 $as_echo "disabled" >&6; }
7823       else
7824         # Check if the provided tool contains a complete path.
7825         tool_specified="$EXPR"
7826         tool_basename="${tool_specified##*/}"
7827         if test "x$tool_basename" = "x$tool_specified"; then
7828           # A command without a complete path is provided, search $PATH.
7829           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5
7830 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;}
7831           # Extract the first word of "$tool_basename", so it can be a program name with args.
7832 set dummy $tool_basename; ac_word=$2
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7834 $as_echo_n "checking for $ac_word... " >&6; }
7835 if ${ac_cv_path_EXPR+:} false; then :
7836   $as_echo_n "(cached) " >&6
7837 else
7838   case $EXPR in
7839   [\\/]* | ?:[\\/]*)
7840   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
7841   ;;
7842   *)
7843   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7844 for as_dir in $PATH
7845 do
7846   IFS=$as_save_IFS
7847   test -z "$as_dir" && as_dir=.
7848     for ac_exec_ext in '' $ac_executable_extensions; do
7849   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7850     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
7851     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7852     break 2
7853   fi
7854 done
7855   done
7856 IFS=$as_save_IFS
7857 
7858   ;;
7859 esac
7860 fi
7861 EXPR=$ac_cv_path_EXPR
7862 if test -n "$EXPR"; then
7863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
7864 $as_echo "$EXPR" >&6; }
7865 else
7866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7867 $as_echo "no" >&6; }
7868 fi
7869 
7870 
7871           if test "x$EXPR" = x; then
7872             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7873           fi
7874         else
7875           # Otherwise we believe it is a complete path. Use it as it is.
7876           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5
7877 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;}
7878           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5
7879 $as_echo_n "checking for EXPR... " >&6; }
7880           if test ! -x "$tool_specified"; then
7881             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7882 $as_echo "not found" >&6; }
7883             as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5
7884           fi
7885           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7886 $as_echo "$tool_specified" >&6; }
7887         fi
7888       fi
7889     fi
7890 
7891   fi
7892 
7893 
7894 
7895   if test "x$EXPR" = x; then
7896     as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5
7897   fi
7898 
7899 
7900 
7901 
7902 
7903   # Publish this variable in the help.
7904 
7905 
7906   if [ -z "${FILE+x}" ]; then
7907     # The variable is not set by user, try to locate tool using the code snippet
7908     for ac_prog in file
7909 do
7910   # Extract the first word of "$ac_prog", so it can be a program name with args.
7911 set dummy $ac_prog; ac_word=$2
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7913 $as_echo_n "checking for $ac_word... " >&6; }
7914 if ${ac_cv_path_FILE+:} false; then :
7915   $as_echo_n "(cached) " >&6
7916 else
7917   case $FILE in
7918   [\\/]* | ?:[\\/]*)
7919   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7920   ;;
7921   *)
7922   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7923 for as_dir in $PATH
7924 do
7925   IFS=$as_save_IFS
7926   test -z "$as_dir" && as_dir=.
7927     for ac_exec_ext in '' $ac_executable_extensions; do
7928   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7929     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7930     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7931     break 2
7932   fi
7933 done
7934   done
7935 IFS=$as_save_IFS
7936 
7937   ;;
7938 esac
7939 fi
7940 FILE=$ac_cv_path_FILE
7941 if test -n "$FILE"; then
7942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7943 $as_echo "$FILE" >&6; }
7944 else
7945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7946 $as_echo "no" >&6; }
7947 fi
7948 
7949 
7950   test -n "$FILE" && break
7951 done
7952 
7953   else
7954     # The variable is set, but is it from the command line or the environment?
7955 
7956     # Try to remove the string !FILE! from our list.
7957     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/}
7958     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7959       # If it failed, the variable was not from the command line. Ignore it,
7960       # but warn the user (except for BASH, which is always set by the calling BASH).
7961       if test "xFILE" != xBASH; then
7962         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5
7963 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;}
7964       fi
7965       # Try to locate tool using the code snippet
7966       for ac_prog in file
7967 do
7968   # Extract the first word of "$ac_prog", so it can be a program name with args.
7969 set dummy $ac_prog; ac_word=$2
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7971 $as_echo_n "checking for $ac_word... " >&6; }
7972 if ${ac_cv_path_FILE+:} false; then :
7973   $as_echo_n "(cached) " >&6
7974 else
7975   case $FILE in
7976   [\\/]* | ?:[\\/]*)
7977   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7978   ;;
7979   *)
7980   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7981 for as_dir in $PATH
7982 do
7983   IFS=$as_save_IFS
7984   test -z "$as_dir" && as_dir=.
7985     for ac_exec_ext in '' $ac_executable_extensions; do
7986   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7987     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7988     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7989     break 2
7990   fi
7991 done
7992   done
7993 IFS=$as_save_IFS
7994 
7995   ;;
7996 esac
7997 fi
7998 FILE=$ac_cv_path_FILE
7999 if test -n "$FILE"; then
8000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
8001 $as_echo "$FILE" >&6; }
8002 else
8003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8004 $as_echo "no" >&6; }
8005 fi
8006 
8007 
8008   test -n "$FILE" && break
8009 done
8010 
8011     else
8012       # If it succeeded, then it was overridden by the user. We will use it
8013       # for the tool.
8014 
8015       # First remove it from the list of overridden variables, so we can test
8016       # for unknown variables in the end.
8017       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8018 
8019       # Check if we try to supply an empty value
8020       if test "x$FILE" = x; then
8021         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FILE= (no value)" >&5
8022 $as_echo "$as_me: Setting user supplied tool FILE= (no value)" >&6;}
8023         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5
8024 $as_echo_n "checking for FILE... " >&6; }
8025         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8026 $as_echo "disabled" >&6; }
8027       else
8028         # Check if the provided tool contains a complete path.
8029         tool_specified="$FILE"
8030         tool_basename="${tool_specified##*/}"
8031         if test "x$tool_basename" = "x$tool_specified"; then
8032           # A command without a complete path is provided, search $PATH.
8033           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5
8034 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;}
8035           # Extract the first word of "$tool_basename", so it can be a program name with args.
8036 set dummy $tool_basename; ac_word=$2
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8038 $as_echo_n "checking for $ac_word... " >&6; }
8039 if ${ac_cv_path_FILE+:} false; then :
8040   $as_echo_n "(cached) " >&6
8041 else
8042   case $FILE in
8043   [\\/]* | ?:[\\/]*)
8044   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
8045   ;;
8046   *)
8047   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8048 for as_dir in $PATH
8049 do
8050   IFS=$as_save_IFS
8051   test -z "$as_dir" && as_dir=.
8052     for ac_exec_ext in '' $ac_executable_extensions; do
8053   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8054     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
8055     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8056     break 2
8057   fi
8058 done
8059   done
8060 IFS=$as_save_IFS
8061 
8062   ;;
8063 esac
8064 fi
8065 FILE=$ac_cv_path_FILE
8066 if test -n "$FILE"; then
8067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
8068 $as_echo "$FILE" >&6; }
8069 else
8070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8071 $as_echo "no" >&6; }
8072 fi
8073 
8074 
8075           if test "x$FILE" = x; then
8076             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8077           fi
8078         else
8079           # Otherwise we believe it is a complete path. Use it as it is.
8080           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5
8081 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;}
8082           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5
8083 $as_echo_n "checking for FILE... " >&6; }
8084           if test ! -x "$tool_specified"; then
8085             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8086 $as_echo "not found" >&6; }
8087             as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5
8088           fi
8089           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8090 $as_echo "$tool_specified" >&6; }
8091         fi
8092       fi
8093     fi
8094 
8095   fi
8096 
8097 
8098 
8099   if test "x$FILE" = x; then
8100     as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5
8101   fi
8102 
8103 
8104 
8105 
8106 
8107   # Publish this variable in the help.
8108 
8109 
8110   if [ -z "${FIND+x}" ]; then
8111     # The variable is not set by user, try to locate tool using the code snippet
8112     for ac_prog in find
8113 do
8114   # Extract the first word of "$ac_prog", so it can be a program name with args.
8115 set dummy $ac_prog; ac_word=$2
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8117 $as_echo_n "checking for $ac_word... " >&6; }
8118 if ${ac_cv_path_FIND+:} false; then :
8119   $as_echo_n "(cached) " >&6
8120 else
8121   case $FIND in
8122   [\\/]* | ?:[\\/]*)
8123   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
8124   ;;
8125   *)
8126   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8127 for as_dir in $PATH
8128 do
8129   IFS=$as_save_IFS
8130   test -z "$as_dir" && as_dir=.
8131     for ac_exec_ext in '' $ac_executable_extensions; do
8132   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8133     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
8134     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8135     break 2
8136   fi
8137 done
8138   done
8139 IFS=$as_save_IFS
8140 
8141   ;;
8142 esac
8143 fi
8144 FIND=$ac_cv_path_FIND
8145 if test -n "$FIND"; then
8146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
8147 $as_echo "$FIND" >&6; }
8148 else
8149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8150 $as_echo "no" >&6; }
8151 fi
8152 
8153 
8154   test -n "$FIND" && break
8155 done
8156 
8157   else
8158     # The variable is set, but is it from the command line or the environment?
8159 
8160     # Try to remove the string !FIND! from our list.
8161     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/}
8162     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8163       # If it failed, the variable was not from the command line. Ignore it,
8164       # but warn the user (except for BASH, which is always set by the calling BASH).
8165       if test "xFIND" != xBASH; then
8166         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5
8167 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;}
8168       fi
8169       # Try to locate tool using the code snippet
8170       for ac_prog in find
8171 do
8172   # Extract the first word of "$ac_prog", so it can be a program name with args.
8173 set dummy $ac_prog; ac_word=$2
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8175 $as_echo_n "checking for $ac_word... " >&6; }
8176 if ${ac_cv_path_FIND+:} false; then :
8177   $as_echo_n "(cached) " >&6
8178 else
8179   case $FIND in
8180   [\\/]* | ?:[\\/]*)
8181   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
8182   ;;
8183   *)
8184   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8185 for as_dir in $PATH
8186 do
8187   IFS=$as_save_IFS
8188   test -z "$as_dir" && as_dir=.
8189     for ac_exec_ext in '' $ac_executable_extensions; do
8190   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8191     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
8192     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8193     break 2
8194   fi
8195 done
8196   done
8197 IFS=$as_save_IFS
8198 
8199   ;;
8200 esac
8201 fi
8202 FIND=$ac_cv_path_FIND
8203 if test -n "$FIND"; then
8204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
8205 $as_echo "$FIND" >&6; }
8206 else
8207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8208 $as_echo "no" >&6; }
8209 fi
8210 
8211 
8212   test -n "$FIND" && break
8213 done
8214 
8215     else
8216       # If it succeeded, then it was overridden by the user. We will use it
8217       # for the tool.
8218 
8219       # First remove it from the list of overridden variables, so we can test
8220       # for unknown variables in the end.
8221       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8222 
8223       # Check if we try to supply an empty value
8224       if test "x$FIND" = x; then
8225         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FIND= (no value)" >&5
8226 $as_echo "$as_me: Setting user supplied tool FIND= (no value)" >&6;}
8227         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5
8228 $as_echo_n "checking for FIND... " >&6; }
8229         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8230 $as_echo "disabled" >&6; }
8231       else
8232         # Check if the provided tool contains a complete path.
8233         tool_specified="$FIND"
8234         tool_basename="${tool_specified##*/}"
8235         if test "x$tool_basename" = "x$tool_specified"; then
8236           # A command without a complete path is provided, search $PATH.
8237           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5
8238 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;}
8239           # Extract the first word of "$tool_basename", so it can be a program name with args.
8240 set dummy $tool_basename; ac_word=$2
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8242 $as_echo_n "checking for $ac_word... " >&6; }
8243 if ${ac_cv_path_FIND+:} false; then :
8244   $as_echo_n "(cached) " >&6
8245 else
8246   case $FIND in
8247   [\\/]* | ?:[\\/]*)
8248   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
8249   ;;
8250   *)
8251   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8252 for as_dir in $PATH
8253 do
8254   IFS=$as_save_IFS
8255   test -z "$as_dir" && as_dir=.
8256     for ac_exec_ext in '' $ac_executable_extensions; do
8257   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8258     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
8259     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8260     break 2
8261   fi
8262 done
8263   done
8264 IFS=$as_save_IFS
8265 
8266   ;;
8267 esac
8268 fi
8269 FIND=$ac_cv_path_FIND
8270 if test -n "$FIND"; then
8271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
8272 $as_echo "$FIND" >&6; }
8273 else
8274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8275 $as_echo "no" >&6; }
8276 fi
8277 
8278 
8279           if test "x$FIND" = x; then
8280             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8281           fi
8282         else
8283           # Otherwise we believe it is a complete path. Use it as it is.
8284           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5
8285 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;}
8286           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5
8287 $as_echo_n "checking for FIND... " >&6; }
8288           if test ! -x "$tool_specified"; then
8289             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8290 $as_echo "not found" >&6; }
8291             as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5
8292           fi
8293           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8294 $as_echo "$tool_specified" >&6; }
8295         fi
8296       fi
8297     fi
8298 
8299   fi
8300 
8301 
8302 
8303   if test "x$FIND" = x; then
8304     as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5
8305   fi
8306 
8307 
8308 
8309 
8310 
8311   # Publish this variable in the help.
8312 
8313 
8314   if [ -z "${HEAD+x}" ]; then
8315     # The variable is not set by user, try to locate tool using the code snippet
8316     for ac_prog in head
8317 do
8318   # Extract the first word of "$ac_prog", so it can be a program name with args.
8319 set dummy $ac_prog; ac_word=$2
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8321 $as_echo_n "checking for $ac_word... " >&6; }
8322 if ${ac_cv_path_HEAD+:} false; then :
8323   $as_echo_n "(cached) " >&6
8324 else
8325   case $HEAD in
8326   [\\/]* | ?:[\\/]*)
8327   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
8328   ;;
8329   *)
8330   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8331 for as_dir in $PATH
8332 do
8333   IFS=$as_save_IFS
8334   test -z "$as_dir" && as_dir=.
8335     for ac_exec_ext in '' $ac_executable_extensions; do
8336   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8337     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
8338     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8339     break 2
8340   fi
8341 done
8342   done
8343 IFS=$as_save_IFS
8344 
8345   ;;
8346 esac
8347 fi
8348 HEAD=$ac_cv_path_HEAD
8349 if test -n "$HEAD"; then
8350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
8351 $as_echo "$HEAD" >&6; }
8352 else
8353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8354 $as_echo "no" >&6; }
8355 fi
8356 
8357 
8358   test -n "$HEAD" && break
8359 done
8360 
8361   else
8362     # The variable is set, but is it from the command line or the environment?
8363 
8364     # Try to remove the string !HEAD! from our list.
8365     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/}
8366     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8367       # If it failed, the variable was not from the command line. Ignore it,
8368       # but warn the user (except for BASH, which is always set by the calling BASH).
8369       if test "xHEAD" != xBASH; then
8370         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5
8371 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;}
8372       fi
8373       # Try to locate tool using the code snippet
8374       for ac_prog in head
8375 do
8376   # Extract the first word of "$ac_prog", so it can be a program name with args.
8377 set dummy $ac_prog; ac_word=$2
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8379 $as_echo_n "checking for $ac_word... " >&6; }
8380 if ${ac_cv_path_HEAD+:} false; then :
8381   $as_echo_n "(cached) " >&6
8382 else
8383   case $HEAD in
8384   [\\/]* | ?:[\\/]*)
8385   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
8386   ;;
8387   *)
8388   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8389 for as_dir in $PATH
8390 do
8391   IFS=$as_save_IFS
8392   test -z "$as_dir" && as_dir=.
8393     for ac_exec_ext in '' $ac_executable_extensions; do
8394   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8395     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
8396     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8397     break 2
8398   fi
8399 done
8400   done
8401 IFS=$as_save_IFS
8402 
8403   ;;
8404 esac
8405 fi
8406 HEAD=$ac_cv_path_HEAD
8407 if test -n "$HEAD"; then
8408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
8409 $as_echo "$HEAD" >&6; }
8410 else
8411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8412 $as_echo "no" >&6; }
8413 fi
8414 
8415 
8416   test -n "$HEAD" && break
8417 done
8418 
8419     else
8420       # If it succeeded, then it was overridden by the user. We will use it
8421       # for the tool.
8422 
8423       # First remove it from the list of overridden variables, so we can test
8424       # for unknown variables in the end.
8425       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8426 
8427       # Check if we try to supply an empty value
8428       if test "x$HEAD" = x; then
8429         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool HEAD= (no value)" >&5
8430 $as_echo "$as_me: Setting user supplied tool HEAD= (no value)" >&6;}
8431         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5
8432 $as_echo_n "checking for HEAD... " >&6; }
8433         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8434 $as_echo "disabled" >&6; }
8435       else
8436         # Check if the provided tool contains a complete path.
8437         tool_specified="$HEAD"
8438         tool_basename="${tool_specified##*/}"
8439         if test "x$tool_basename" = "x$tool_specified"; then
8440           # A command without a complete path is provided, search $PATH.
8441           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5
8442 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;}
8443           # Extract the first word of "$tool_basename", so it can be a program name with args.
8444 set dummy $tool_basename; ac_word=$2
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8446 $as_echo_n "checking for $ac_word... " >&6; }
8447 if ${ac_cv_path_HEAD+:} false; then :
8448   $as_echo_n "(cached) " >&6
8449 else
8450   case $HEAD in
8451   [\\/]* | ?:[\\/]*)
8452   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
8453   ;;
8454   *)
8455   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8456 for as_dir in $PATH
8457 do
8458   IFS=$as_save_IFS
8459   test -z "$as_dir" && as_dir=.
8460     for ac_exec_ext in '' $ac_executable_extensions; do
8461   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8462     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
8463     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8464     break 2
8465   fi
8466 done
8467   done
8468 IFS=$as_save_IFS
8469 
8470   ;;
8471 esac
8472 fi
8473 HEAD=$ac_cv_path_HEAD
8474 if test -n "$HEAD"; then
8475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
8476 $as_echo "$HEAD" >&6; }
8477 else
8478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8479 $as_echo "no" >&6; }
8480 fi
8481 
8482 
8483           if test "x$HEAD" = x; then
8484             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8485           fi
8486         else
8487           # Otherwise we believe it is a complete path. Use it as it is.
8488           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5
8489 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;}
8490           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5
8491 $as_echo_n "checking for HEAD... " >&6; }
8492           if test ! -x "$tool_specified"; then
8493             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8494 $as_echo "not found" >&6; }
8495             as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5
8496           fi
8497           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8498 $as_echo "$tool_specified" >&6; }
8499         fi
8500       fi
8501     fi
8502 
8503   fi
8504 
8505 
8506 
8507   if test "x$HEAD" = x; then
8508     as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5
8509   fi
8510 
8511 
8512 
8513 
8514 
8515   # Publish this variable in the help.
8516 
8517 
8518   if [ -z "${GUNZIP+x}" ]; then
8519     # The variable is not set by user, try to locate tool using the code snippet
8520     for ac_prog in gunzip
8521 do
8522   # Extract the first word of "$ac_prog", so it can be a program name with args.
8523 set dummy $ac_prog; ac_word=$2
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8525 $as_echo_n "checking for $ac_word... " >&6; }
8526 if ${ac_cv_path_GUNZIP+:} false; then :
8527   $as_echo_n "(cached) " >&6
8528 else
8529   case $GUNZIP in
8530   [\\/]* | ?:[\\/]*)
8531   ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path.
8532   ;;
8533   *)
8534   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8535 for as_dir in $PATH
8536 do
8537   IFS=$as_save_IFS
8538   test -z "$as_dir" && as_dir=.
8539     for ac_exec_ext in '' $ac_executable_extensions; do
8540   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8541     ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext"
8542     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8543     break 2
8544   fi
8545 done
8546   done
8547 IFS=$as_save_IFS
8548 
8549   ;;
8550 esac
8551 fi
8552 GUNZIP=$ac_cv_path_GUNZIP
8553 if test -n "$GUNZIP"; then
8554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5
8555 $as_echo "$GUNZIP" >&6; }
8556 else
8557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8558 $as_echo "no" >&6; }
8559 fi
8560 
8561 
8562   test -n "$GUNZIP" && break
8563 done
8564 
8565   else
8566     # The variable is set, but is it from the command line or the environment?
8567 
8568     # Try to remove the string !GUNZIP! from our list.
8569     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GUNZIP!/}
8570     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8571       # If it failed, the variable was not from the command line. Ignore it,
8572       # but warn the user (except for BASH, which is always set by the calling BASH).
8573       if test "xGUNZIP" != xBASH; then
8574         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GUNZIP from the environment. Use command line variables instead." >&5
8575 $as_echo "$as_me: WARNING: Ignoring value of GUNZIP from the environment. Use command line variables instead." >&2;}
8576       fi
8577       # Try to locate tool using the code snippet
8578       for ac_prog in gunzip
8579 do
8580   # Extract the first word of "$ac_prog", so it can be a program name with args.
8581 set dummy $ac_prog; ac_word=$2
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8583 $as_echo_n "checking for $ac_word... " >&6; }
8584 if ${ac_cv_path_GUNZIP+:} false; then :
8585   $as_echo_n "(cached) " >&6
8586 else
8587   case $GUNZIP in
8588   [\\/]* | ?:[\\/]*)
8589   ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path.
8590   ;;
8591   *)
8592   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8593 for as_dir in $PATH
8594 do
8595   IFS=$as_save_IFS
8596   test -z "$as_dir" && as_dir=.
8597     for ac_exec_ext in '' $ac_executable_extensions; do
8598   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8599     ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext"
8600     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8601     break 2
8602   fi
8603 done
8604   done
8605 IFS=$as_save_IFS
8606 
8607   ;;
8608 esac
8609 fi
8610 GUNZIP=$ac_cv_path_GUNZIP
8611 if test -n "$GUNZIP"; then
8612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5
8613 $as_echo "$GUNZIP" >&6; }
8614 else
8615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8616 $as_echo "no" >&6; }
8617 fi
8618 
8619 
8620   test -n "$GUNZIP" && break
8621 done
8622 
8623     else
8624       # If it succeeded, then it was overridden by the user. We will use it
8625       # for the tool.
8626 
8627       # First remove it from the list of overridden variables, so we can test
8628       # for unknown variables in the end.
8629       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8630 
8631       # Check if we try to supply an empty value
8632       if test "x$GUNZIP" = x; then
8633         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GUNZIP= (no value)" >&5
8634 $as_echo "$as_me: Setting user supplied tool GUNZIP= (no value)" >&6;}
8635         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUNZIP" >&5
8636 $as_echo_n "checking for GUNZIP... " >&6; }
8637         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8638 $as_echo "disabled" >&6; }
8639       else
8640         # Check if the provided tool contains a complete path.
8641         tool_specified="$GUNZIP"
8642         tool_basename="${tool_specified##*/}"
8643         if test "x$tool_basename" = "x$tool_specified"; then
8644           # A command without a complete path is provided, search $PATH.
8645           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GUNZIP=$tool_basename" >&5
8646 $as_echo "$as_me: Will search for user supplied tool GUNZIP=$tool_basename" >&6;}
8647           # Extract the first word of "$tool_basename", so it can be a program name with args.
8648 set dummy $tool_basename; ac_word=$2
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8650 $as_echo_n "checking for $ac_word... " >&6; }
8651 if ${ac_cv_path_GUNZIP+:} false; then :
8652   $as_echo_n "(cached) " >&6
8653 else
8654   case $GUNZIP in
8655   [\\/]* | ?:[\\/]*)
8656   ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path.
8657   ;;
8658   *)
8659   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8660 for as_dir in $PATH
8661 do
8662   IFS=$as_save_IFS
8663   test -z "$as_dir" && as_dir=.
8664     for ac_exec_ext in '' $ac_executable_extensions; do
8665   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8666     ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext"
8667     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8668     break 2
8669   fi
8670 done
8671   done
8672 IFS=$as_save_IFS
8673 
8674   ;;
8675 esac
8676 fi
8677 GUNZIP=$ac_cv_path_GUNZIP
8678 if test -n "$GUNZIP"; then
8679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5
8680 $as_echo "$GUNZIP" >&6; }
8681 else
8682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8683 $as_echo "no" >&6; }
8684 fi
8685 
8686 
8687           if test "x$GUNZIP" = x; then
8688             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8689           fi
8690         else
8691           # Otherwise we believe it is a complete path. Use it as it is.
8692           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GUNZIP=$tool_specified" >&5
8693 $as_echo "$as_me: Will use user supplied tool GUNZIP=$tool_specified" >&6;}
8694           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUNZIP" >&5
8695 $as_echo_n "checking for GUNZIP... " >&6; }
8696           if test ! -x "$tool_specified"; then
8697             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8698 $as_echo "not found" >&6; }
8699             as_fn_error $? "User supplied tool GUNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
8700           fi
8701           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8702 $as_echo "$tool_specified" >&6; }
8703         fi
8704       fi
8705     fi
8706 
8707   fi
8708 
8709 
8710 
8711   if test "x$GUNZIP" = x; then
8712     as_fn_error $? "Could not find required tool for GUNZIP" "$LINENO" 5
8713   fi
8714 
8715 
8716 
8717 
8718 
8719   # Publish this variable in the help.
8720 
8721 
8722   if [ -z "${GZIP+x}" ]; then
8723     # The variable is not set by user, try to locate tool using the code snippet
8724     for ac_prog in pigz gzip
8725 do
8726   # Extract the first word of "$ac_prog", so it can be a program name with args.
8727 set dummy $ac_prog; ac_word=$2
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8729 $as_echo_n "checking for $ac_word... " >&6; }
8730 if ${ac_cv_path_GZIP+:} false; then :
8731   $as_echo_n "(cached) " >&6
8732 else
8733   case $GZIP in
8734   [\\/]* | ?:[\\/]*)
8735   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8736   ;;
8737   *)
8738   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8739 for as_dir in $PATH
8740 do
8741   IFS=$as_save_IFS
8742   test -z "$as_dir" && as_dir=.
8743     for ac_exec_ext in '' $ac_executable_extensions; do
8744   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8745     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8746     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8747     break 2
8748   fi
8749 done
8750   done
8751 IFS=$as_save_IFS
8752 
8753   ;;
8754 esac
8755 fi
8756 GZIP=$ac_cv_path_GZIP
8757 if test -n "$GZIP"; then
8758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
8759 $as_echo "$GZIP" >&6; }
8760 else
8761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8762 $as_echo "no" >&6; }
8763 fi
8764 
8765 
8766   test -n "$GZIP" && break
8767 done
8768 
8769   else
8770     # The variable is set, but is it from the command line or the environment?
8771 
8772     # Try to remove the string !GZIP! from our list.
8773     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GZIP!/}
8774     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8775       # If it failed, the variable was not from the command line. Ignore it,
8776       # but warn the user (except for BASH, which is always set by the calling BASH).
8777       if test "xGZIP" != xBASH; then
8778         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GZIP from the environment. Use command line variables instead." >&5
8779 $as_echo "$as_me: WARNING: Ignoring value of GZIP from the environment. Use command line variables instead." >&2;}
8780       fi
8781       # Try to locate tool using the code snippet
8782       for ac_prog in pigz gzip
8783 do
8784   # Extract the first word of "$ac_prog", so it can be a program name with args.
8785 set dummy $ac_prog; ac_word=$2
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8787 $as_echo_n "checking for $ac_word... " >&6; }
8788 if ${ac_cv_path_GZIP+:} false; then :
8789   $as_echo_n "(cached) " >&6
8790 else
8791   case $GZIP in
8792   [\\/]* | ?:[\\/]*)
8793   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8794   ;;
8795   *)
8796   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8797 for as_dir in $PATH
8798 do
8799   IFS=$as_save_IFS
8800   test -z "$as_dir" && as_dir=.
8801     for ac_exec_ext in '' $ac_executable_extensions; do
8802   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8803     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8804     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8805     break 2
8806   fi
8807 done
8808   done
8809 IFS=$as_save_IFS
8810 
8811   ;;
8812 esac
8813 fi
8814 GZIP=$ac_cv_path_GZIP
8815 if test -n "$GZIP"; then
8816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
8817 $as_echo "$GZIP" >&6; }
8818 else
8819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8820 $as_echo "no" >&6; }
8821 fi
8822 
8823 
8824   test -n "$GZIP" && break
8825 done
8826 
8827     else
8828       # If it succeeded, then it was overridden by the user. We will use it
8829       # for the tool.
8830 
8831       # First remove it from the list of overridden variables, so we can test
8832       # for unknown variables in the end.
8833       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8834 
8835       # Check if we try to supply an empty value
8836       if test "x$GZIP" = x; then
8837         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GZIP= (no value)" >&5
8838 $as_echo "$as_me: Setting user supplied tool GZIP= (no value)" >&6;}
8839         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GZIP" >&5
8840 $as_echo_n "checking for GZIP... " >&6; }
8841         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8842 $as_echo "disabled" >&6; }
8843       else
8844         # Check if the provided tool contains a complete path.
8845         tool_specified="$GZIP"
8846         tool_basename="${tool_specified##*/}"
8847         if test "x$tool_basename" = "x$tool_specified"; then
8848           # A command without a complete path is provided, search $PATH.
8849           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GZIP=$tool_basename" >&5
8850 $as_echo "$as_me: Will search for user supplied tool GZIP=$tool_basename" >&6;}
8851           # Extract the first word of "$tool_basename", so it can be a program name with args.
8852 set dummy $tool_basename; ac_word=$2
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8854 $as_echo_n "checking for $ac_word... " >&6; }
8855 if ${ac_cv_path_GZIP+:} false; then :
8856   $as_echo_n "(cached) " >&6
8857 else
8858   case $GZIP in
8859   [\\/]* | ?:[\\/]*)
8860   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8861   ;;
8862   *)
8863   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8864 for as_dir in $PATH
8865 do
8866   IFS=$as_save_IFS
8867   test -z "$as_dir" && as_dir=.
8868     for ac_exec_ext in '' $ac_executable_extensions; do
8869   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8870     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8871     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8872     break 2
8873   fi
8874 done
8875   done
8876 IFS=$as_save_IFS
8877 
8878   ;;
8879 esac
8880 fi
8881 GZIP=$ac_cv_path_GZIP
8882 if test -n "$GZIP"; then
8883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
8884 $as_echo "$GZIP" >&6; }
8885 else
8886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8887 $as_echo "no" >&6; }
8888 fi
8889 
8890 
8891           if test "x$GZIP" = x; then
8892             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8893           fi
8894         else
8895           # Otherwise we believe it is a complete path. Use it as it is.
8896           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GZIP=$tool_specified" >&5
8897 $as_echo "$as_me: Will use user supplied tool GZIP=$tool_specified" >&6;}
8898           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GZIP" >&5
8899 $as_echo_n "checking for GZIP... " >&6; }
8900           if test ! -x "$tool_specified"; then
8901             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8902 $as_echo "not found" >&6; }
8903             as_fn_error $? "User supplied tool GZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
8904           fi
8905           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8906 $as_echo "$tool_specified" >&6; }
8907         fi
8908       fi
8909     fi
8910 
8911   fi
8912 
8913 
8914 
8915   if test "x$GZIP" = x; then
8916     as_fn_error $? "Could not find required tool for GZIP" "$LINENO" 5
8917   fi
8918 
8919 
8920 
8921 
8922 
8923   # Publish this variable in the help.
8924 
8925 
8926   if [ -z "${LN+x}" ]; then
8927     # The variable is not set by user, try to locate tool using the code snippet
8928     for ac_prog in ln
8929 do
8930   # Extract the first word of "$ac_prog", so it can be a program name with args.
8931 set dummy $ac_prog; ac_word=$2
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8933 $as_echo_n "checking for $ac_word... " >&6; }
8934 if ${ac_cv_path_LN+:} false; then :
8935   $as_echo_n "(cached) " >&6
8936 else
8937   case $LN in
8938   [\\/]* | ?:[\\/]*)
8939   ac_cv_path_LN="$LN" # Let the user override the test with a path.
8940   ;;
8941   *)
8942   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8943 for as_dir in $PATH
8944 do
8945   IFS=$as_save_IFS
8946   test -z "$as_dir" && as_dir=.
8947     for ac_exec_ext in '' $ac_executable_extensions; do
8948   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8949     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
8950     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8951     break 2
8952   fi
8953 done
8954   done
8955 IFS=$as_save_IFS
8956 
8957   ;;
8958 esac
8959 fi
8960 LN=$ac_cv_path_LN
8961 if test -n "$LN"; then
8962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
8963 $as_echo "$LN" >&6; }
8964 else
8965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8966 $as_echo "no" >&6; }
8967 fi
8968 
8969 
8970   test -n "$LN" && break
8971 done
8972 
8973   else
8974     # The variable is set, but is it from the command line or the environment?
8975 
8976     # Try to remove the string !LN! from our list.
8977     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/}
8978     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8979       # If it failed, the variable was not from the command line. Ignore it,
8980       # but warn the user (except for BASH, which is always set by the calling BASH).
8981       if test "xLN" != xBASH; then
8982         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5
8983 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;}
8984       fi
8985       # Try to locate tool using the code snippet
8986       for ac_prog in ln
8987 do
8988   # Extract the first word of "$ac_prog", so it can be a program name with args.
8989 set dummy $ac_prog; ac_word=$2
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8991 $as_echo_n "checking for $ac_word... " >&6; }
8992 if ${ac_cv_path_LN+:} false; then :
8993   $as_echo_n "(cached) " >&6
8994 else
8995   case $LN in
8996   [\\/]* | ?:[\\/]*)
8997   ac_cv_path_LN="$LN" # Let the user override the test with a path.
8998   ;;
8999   *)
9000   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9001 for as_dir in $PATH
9002 do
9003   IFS=$as_save_IFS
9004   test -z "$as_dir" && as_dir=.
9005     for ac_exec_ext in '' $ac_executable_extensions; do
9006   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9007     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
9008     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9009     break 2
9010   fi
9011 done
9012   done
9013 IFS=$as_save_IFS
9014 
9015   ;;
9016 esac
9017 fi
9018 LN=$ac_cv_path_LN
9019 if test -n "$LN"; then
9020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
9021 $as_echo "$LN" >&6; }
9022 else
9023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9024 $as_echo "no" >&6; }
9025 fi
9026 
9027 
9028   test -n "$LN" && break
9029 done
9030 
9031     else
9032       # If it succeeded, then it was overridden by the user. We will use it
9033       # for the tool.
9034 
9035       # First remove it from the list of overridden variables, so we can test
9036       # for unknown variables in the end.
9037       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9038 
9039       # Check if we try to supply an empty value
9040       if test "x$LN" = x; then
9041         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LN= (no value)" >&5
9042 $as_echo "$as_me: Setting user supplied tool LN= (no value)" >&6;}
9043         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5
9044 $as_echo_n "checking for LN... " >&6; }
9045         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9046 $as_echo "disabled" >&6; }
9047       else
9048         # Check if the provided tool contains a complete path.
9049         tool_specified="$LN"
9050         tool_basename="${tool_specified##*/}"
9051         if test "x$tool_basename" = "x$tool_specified"; then
9052           # A command without a complete path is provided, search $PATH.
9053           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5
9054 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;}
9055           # Extract the first word of "$tool_basename", so it can be a program name with args.
9056 set dummy $tool_basename; ac_word=$2
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9058 $as_echo_n "checking for $ac_word... " >&6; }
9059 if ${ac_cv_path_LN+:} false; then :
9060   $as_echo_n "(cached) " >&6
9061 else
9062   case $LN in
9063   [\\/]* | ?:[\\/]*)
9064   ac_cv_path_LN="$LN" # Let the user override the test with a path.
9065   ;;
9066   *)
9067   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9068 for as_dir in $PATH
9069 do
9070   IFS=$as_save_IFS
9071   test -z "$as_dir" && as_dir=.
9072     for ac_exec_ext in '' $ac_executable_extensions; do
9073   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9074     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
9075     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9076     break 2
9077   fi
9078 done
9079   done
9080 IFS=$as_save_IFS
9081 
9082   ;;
9083 esac
9084 fi
9085 LN=$ac_cv_path_LN
9086 if test -n "$LN"; then
9087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
9088 $as_echo "$LN" >&6; }
9089 else
9090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9091 $as_echo "no" >&6; }
9092 fi
9093 
9094 
9095           if test "x$LN" = x; then
9096             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9097           fi
9098         else
9099           # Otherwise we believe it is a complete path. Use it as it is.
9100           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5
9101 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;}
9102           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5
9103 $as_echo_n "checking for LN... " >&6; }
9104           if test ! -x "$tool_specified"; then
9105             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9106 $as_echo "not found" >&6; }
9107             as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5
9108           fi
9109           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9110 $as_echo "$tool_specified" >&6; }
9111         fi
9112       fi
9113     fi
9114 
9115   fi
9116 
9117 
9118 
9119   if test "x$LN" = x; then
9120     as_fn_error $? "Could not find required tool for LN" "$LINENO" 5
9121   fi
9122 
9123 
9124 
9125 
9126 
9127   # Publish this variable in the help.
9128 
9129 
9130   if [ -z "${LS+x}" ]; then
9131     # The variable is not set by user, try to locate tool using the code snippet
9132     for ac_prog in ls
9133 do
9134   # Extract the first word of "$ac_prog", so it can be a program name with args.
9135 set dummy $ac_prog; ac_word=$2
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9137 $as_echo_n "checking for $ac_word... " >&6; }
9138 if ${ac_cv_path_LS+:} false; then :
9139   $as_echo_n "(cached) " >&6
9140 else
9141   case $LS in
9142   [\\/]* | ?:[\\/]*)
9143   ac_cv_path_LS="$LS" # Let the user override the test with a path.
9144   ;;
9145   *)
9146   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9147 for as_dir in $PATH
9148 do
9149   IFS=$as_save_IFS
9150   test -z "$as_dir" && as_dir=.
9151     for ac_exec_ext in '' $ac_executable_extensions; do
9152   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9153     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
9154     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9155     break 2
9156   fi
9157 done
9158   done
9159 IFS=$as_save_IFS
9160 
9161   ;;
9162 esac
9163 fi
9164 LS=$ac_cv_path_LS
9165 if test -n "$LS"; then
9166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
9167 $as_echo "$LS" >&6; }
9168 else
9169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9170 $as_echo "no" >&6; }
9171 fi
9172 
9173 
9174   test -n "$LS" && break
9175 done
9176 
9177   else
9178     # The variable is set, but is it from the command line or the environment?
9179 
9180     # Try to remove the string !LS! from our list.
9181     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/}
9182     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9183       # If it failed, the variable was not from the command line. Ignore it,
9184       # but warn the user (except for BASH, which is always set by the calling BASH).
9185       if test "xLS" != xBASH; then
9186         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5
9187 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;}
9188       fi
9189       # Try to locate tool using the code snippet
9190       for ac_prog in ls
9191 do
9192   # Extract the first word of "$ac_prog", so it can be a program name with args.
9193 set dummy $ac_prog; ac_word=$2
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9195 $as_echo_n "checking for $ac_word... " >&6; }
9196 if ${ac_cv_path_LS+:} false; then :
9197   $as_echo_n "(cached) " >&6
9198 else
9199   case $LS in
9200   [\\/]* | ?:[\\/]*)
9201   ac_cv_path_LS="$LS" # Let the user override the test with a path.
9202   ;;
9203   *)
9204   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9205 for as_dir in $PATH
9206 do
9207   IFS=$as_save_IFS
9208   test -z "$as_dir" && as_dir=.
9209     for ac_exec_ext in '' $ac_executable_extensions; do
9210   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9211     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
9212     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9213     break 2
9214   fi
9215 done
9216   done
9217 IFS=$as_save_IFS
9218 
9219   ;;
9220 esac
9221 fi
9222 LS=$ac_cv_path_LS
9223 if test -n "$LS"; then
9224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
9225 $as_echo "$LS" >&6; }
9226 else
9227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9228 $as_echo "no" >&6; }
9229 fi
9230 
9231 
9232   test -n "$LS" && break
9233 done
9234 
9235     else
9236       # If it succeeded, then it was overridden by the user. We will use it
9237       # for the tool.
9238 
9239       # First remove it from the list of overridden variables, so we can test
9240       # for unknown variables in the end.
9241       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9242 
9243       # Check if we try to supply an empty value
9244       if test "x$LS" = x; then
9245         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LS= (no value)" >&5
9246 $as_echo "$as_me: Setting user supplied tool LS= (no value)" >&6;}
9247         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5
9248 $as_echo_n "checking for LS... " >&6; }
9249         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9250 $as_echo "disabled" >&6; }
9251       else
9252         # Check if the provided tool contains a complete path.
9253         tool_specified="$LS"
9254         tool_basename="${tool_specified##*/}"
9255         if test "x$tool_basename" = "x$tool_specified"; then
9256           # A command without a complete path is provided, search $PATH.
9257           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5
9258 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;}
9259           # Extract the first word of "$tool_basename", so it can be a program name with args.
9260 set dummy $tool_basename; ac_word=$2
9261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9262 $as_echo_n "checking for $ac_word... " >&6; }
9263 if ${ac_cv_path_LS+:} false; then :
9264   $as_echo_n "(cached) " >&6
9265 else
9266   case $LS in
9267   [\\/]* | ?:[\\/]*)
9268   ac_cv_path_LS="$LS" # Let the user override the test with a path.
9269   ;;
9270   *)
9271   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9272 for as_dir in $PATH
9273 do
9274   IFS=$as_save_IFS
9275   test -z "$as_dir" && as_dir=.
9276     for ac_exec_ext in '' $ac_executable_extensions; do
9277   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9278     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
9279     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9280     break 2
9281   fi
9282 done
9283   done
9284 IFS=$as_save_IFS
9285 
9286   ;;
9287 esac
9288 fi
9289 LS=$ac_cv_path_LS
9290 if test -n "$LS"; then
9291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
9292 $as_echo "$LS" >&6; }
9293 else
9294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9295 $as_echo "no" >&6; }
9296 fi
9297 
9298 
9299           if test "x$LS" = x; then
9300             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9301           fi
9302         else
9303           # Otherwise we believe it is a complete path. Use it as it is.
9304           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5
9305 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;}
9306           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5
9307 $as_echo_n "checking for LS... " >&6; }
9308           if test ! -x "$tool_specified"; then
9309             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9310 $as_echo "not found" >&6; }
9311             as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5
9312           fi
9313           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9314 $as_echo "$tool_specified" >&6; }
9315         fi
9316       fi
9317     fi
9318 
9319   fi
9320 
9321 
9322 
9323   if test "x$LS" = x; then
9324     as_fn_error $? "Could not find required tool for LS" "$LINENO" 5
9325   fi
9326 
9327 
9328 
9329 
9330 
9331   # Publish this variable in the help.
9332 
9333 
9334   if [ -z "${MKDIR+x}" ]; then
9335     # The variable is not set by user, try to locate tool using the code snippet
9336     for ac_prog in mkdir
9337 do
9338   # Extract the first word of "$ac_prog", so it can be a program name with args.
9339 set dummy $ac_prog; ac_word=$2
9340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9341 $as_echo_n "checking for $ac_word... " >&6; }
9342 if ${ac_cv_path_MKDIR+:} false; then :
9343   $as_echo_n "(cached) " >&6
9344 else
9345   case $MKDIR in
9346   [\\/]* | ?:[\\/]*)
9347   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
9348   ;;
9349   *)
9350   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9351 for as_dir in $PATH
9352 do
9353   IFS=$as_save_IFS
9354   test -z "$as_dir" && as_dir=.
9355     for ac_exec_ext in '' $ac_executable_extensions; do
9356   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9357     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
9358     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9359     break 2
9360   fi
9361 done
9362   done
9363 IFS=$as_save_IFS
9364 
9365   ;;
9366 esac
9367 fi
9368 MKDIR=$ac_cv_path_MKDIR
9369 if test -n "$MKDIR"; then
9370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
9371 $as_echo "$MKDIR" >&6; }
9372 else
9373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9374 $as_echo "no" >&6; }
9375 fi
9376 
9377 
9378   test -n "$MKDIR" && break
9379 done
9380 
9381   else
9382     # The variable is set, but is it from the command line or the environment?
9383 
9384     # Try to remove the string !MKDIR! from our list.
9385     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/}
9386     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9387       # If it failed, the variable was not from the command line. Ignore it,
9388       # but warn the user (except for BASH, which is always set by the calling BASH).
9389       if test "xMKDIR" != xBASH; then
9390         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5
9391 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;}
9392       fi
9393       # Try to locate tool using the code snippet
9394       for ac_prog in mkdir
9395 do
9396   # Extract the first word of "$ac_prog", so it can be a program name with args.
9397 set dummy $ac_prog; ac_word=$2
9398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9399 $as_echo_n "checking for $ac_word... " >&6; }
9400 if ${ac_cv_path_MKDIR+:} false; then :
9401   $as_echo_n "(cached) " >&6
9402 else
9403   case $MKDIR in
9404   [\\/]* | ?:[\\/]*)
9405   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
9406   ;;
9407   *)
9408   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9409 for as_dir in $PATH
9410 do
9411   IFS=$as_save_IFS
9412   test -z "$as_dir" && as_dir=.
9413     for ac_exec_ext in '' $ac_executable_extensions; do
9414   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9415     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
9416     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9417     break 2
9418   fi
9419 done
9420   done
9421 IFS=$as_save_IFS
9422 
9423   ;;
9424 esac
9425 fi
9426 MKDIR=$ac_cv_path_MKDIR
9427 if test -n "$MKDIR"; then
9428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
9429 $as_echo "$MKDIR" >&6; }
9430 else
9431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9432 $as_echo "no" >&6; }
9433 fi
9434 
9435 
9436   test -n "$MKDIR" && break
9437 done
9438 
9439     else
9440       # If it succeeded, then it was overridden by the user. We will use it
9441       # for the tool.
9442 
9443       # First remove it from the list of overridden variables, so we can test
9444       # for unknown variables in the end.
9445       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9446 
9447       # Check if we try to supply an empty value
9448       if test "x$MKDIR" = x; then
9449         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MKDIR= (no value)" >&5
9450 $as_echo "$as_me: Setting user supplied tool MKDIR= (no value)" >&6;}
9451         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5
9452 $as_echo_n "checking for MKDIR... " >&6; }
9453         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9454 $as_echo "disabled" >&6; }
9455       else
9456         # Check if the provided tool contains a complete path.
9457         tool_specified="$MKDIR"
9458         tool_basename="${tool_specified##*/}"
9459         if test "x$tool_basename" = "x$tool_specified"; then
9460           # A command without a complete path is provided, search $PATH.
9461           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5
9462 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;}
9463           # Extract the first word of "$tool_basename", so it can be a program name with args.
9464 set dummy $tool_basename; ac_word=$2
9465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9466 $as_echo_n "checking for $ac_word... " >&6; }
9467 if ${ac_cv_path_MKDIR+:} false; then :
9468   $as_echo_n "(cached) " >&6
9469 else
9470   case $MKDIR in
9471   [\\/]* | ?:[\\/]*)
9472   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
9473   ;;
9474   *)
9475   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9476 for as_dir in $PATH
9477 do
9478   IFS=$as_save_IFS
9479   test -z "$as_dir" && as_dir=.
9480     for ac_exec_ext in '' $ac_executable_extensions; do
9481   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9482     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
9483     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9484     break 2
9485   fi
9486 done
9487   done
9488 IFS=$as_save_IFS
9489 
9490   ;;
9491 esac
9492 fi
9493 MKDIR=$ac_cv_path_MKDIR
9494 if test -n "$MKDIR"; then
9495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
9496 $as_echo "$MKDIR" >&6; }
9497 else
9498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9499 $as_echo "no" >&6; }
9500 fi
9501 
9502 
9503           if test "x$MKDIR" = x; then
9504             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9505           fi
9506         else
9507           # Otherwise we believe it is a complete path. Use it as it is.
9508           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5
9509 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;}
9510           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5
9511 $as_echo_n "checking for MKDIR... " >&6; }
9512           if test ! -x "$tool_specified"; then
9513             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9514 $as_echo "not found" >&6; }
9515             as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5
9516           fi
9517           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9518 $as_echo "$tool_specified" >&6; }
9519         fi
9520       fi
9521     fi
9522 
9523   fi
9524 
9525 
9526 
9527   if test "x$MKDIR" = x; then
9528     as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5
9529   fi
9530 
9531 
9532 
9533 
9534 
9535   # Publish this variable in the help.
9536 
9537 
9538   if [ -z "${MKTEMP+x}" ]; then
9539     # The variable is not set by user, try to locate tool using the code snippet
9540     for ac_prog in mktemp
9541 do
9542   # Extract the first word of "$ac_prog", so it can be a program name with args.
9543 set dummy $ac_prog; ac_word=$2
9544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9545 $as_echo_n "checking for $ac_word... " >&6; }
9546 if ${ac_cv_path_MKTEMP+:} false; then :
9547   $as_echo_n "(cached) " >&6
9548 else
9549   case $MKTEMP in
9550   [\\/]* | ?:[\\/]*)
9551   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
9552   ;;
9553   *)
9554   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9555 for as_dir in $PATH
9556 do
9557   IFS=$as_save_IFS
9558   test -z "$as_dir" && as_dir=.
9559     for ac_exec_ext in '' $ac_executable_extensions; do
9560   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9561     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
9562     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9563     break 2
9564   fi
9565 done
9566   done
9567 IFS=$as_save_IFS
9568 
9569   ;;
9570 esac
9571 fi
9572 MKTEMP=$ac_cv_path_MKTEMP
9573 if test -n "$MKTEMP"; then
9574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
9575 $as_echo "$MKTEMP" >&6; }
9576 else
9577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9578 $as_echo "no" >&6; }
9579 fi
9580 
9581 
9582   test -n "$MKTEMP" && break
9583 done
9584 
9585   else
9586     # The variable is set, but is it from the command line or the environment?
9587 
9588     # Try to remove the string !MKTEMP! from our list.
9589     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/}
9590     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9591       # If it failed, the variable was not from the command line. Ignore it,
9592       # but warn the user (except for BASH, which is always set by the calling BASH).
9593       if test "xMKTEMP" != xBASH; then
9594         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5
9595 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;}
9596       fi
9597       # Try to locate tool using the code snippet
9598       for ac_prog in mktemp
9599 do
9600   # Extract the first word of "$ac_prog", so it can be a program name with args.
9601 set dummy $ac_prog; ac_word=$2
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9603 $as_echo_n "checking for $ac_word... " >&6; }
9604 if ${ac_cv_path_MKTEMP+:} false; then :
9605   $as_echo_n "(cached) " >&6
9606 else
9607   case $MKTEMP in
9608   [\\/]* | ?:[\\/]*)
9609   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
9610   ;;
9611   *)
9612   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9613 for as_dir in $PATH
9614 do
9615   IFS=$as_save_IFS
9616   test -z "$as_dir" && as_dir=.
9617     for ac_exec_ext in '' $ac_executable_extensions; do
9618   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9619     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
9620     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9621     break 2
9622   fi
9623 done
9624   done
9625 IFS=$as_save_IFS
9626 
9627   ;;
9628 esac
9629 fi
9630 MKTEMP=$ac_cv_path_MKTEMP
9631 if test -n "$MKTEMP"; then
9632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
9633 $as_echo "$MKTEMP" >&6; }
9634 else
9635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9636 $as_echo "no" >&6; }
9637 fi
9638 
9639 
9640   test -n "$MKTEMP" && break
9641 done
9642 
9643     else
9644       # If it succeeded, then it was overridden by the user. We will use it
9645       # for the tool.
9646 
9647       # First remove it from the list of overridden variables, so we can test
9648       # for unknown variables in the end.
9649       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9650 
9651       # Check if we try to supply an empty value
9652       if test "x$MKTEMP" = x; then
9653         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MKTEMP= (no value)" >&5
9654 $as_echo "$as_me: Setting user supplied tool MKTEMP= (no value)" >&6;}
9655         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5
9656 $as_echo_n "checking for MKTEMP... " >&6; }
9657         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9658 $as_echo "disabled" >&6; }
9659       else
9660         # Check if the provided tool contains a complete path.
9661         tool_specified="$MKTEMP"
9662         tool_basename="${tool_specified##*/}"
9663         if test "x$tool_basename" = "x$tool_specified"; then
9664           # A command without a complete path is provided, search $PATH.
9665           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5
9666 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;}
9667           # Extract the first word of "$tool_basename", so it can be a program name with args.
9668 set dummy $tool_basename; ac_word=$2
9669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9670 $as_echo_n "checking for $ac_word... " >&6; }
9671 if ${ac_cv_path_MKTEMP+:} false; then :
9672   $as_echo_n "(cached) " >&6
9673 else
9674   case $MKTEMP in
9675   [\\/]* | ?:[\\/]*)
9676   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
9677   ;;
9678   *)
9679   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9680 for as_dir in $PATH
9681 do
9682   IFS=$as_save_IFS
9683   test -z "$as_dir" && as_dir=.
9684     for ac_exec_ext in '' $ac_executable_extensions; do
9685   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9686     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
9687     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9688     break 2
9689   fi
9690 done
9691   done
9692 IFS=$as_save_IFS
9693 
9694   ;;
9695 esac
9696 fi
9697 MKTEMP=$ac_cv_path_MKTEMP
9698 if test -n "$MKTEMP"; then
9699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
9700 $as_echo "$MKTEMP" >&6; }
9701 else
9702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9703 $as_echo "no" >&6; }
9704 fi
9705 
9706 
9707           if test "x$MKTEMP" = x; then
9708             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9709           fi
9710         else
9711           # Otherwise we believe it is a complete path. Use it as it is.
9712           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5
9713 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;}
9714           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5
9715 $as_echo_n "checking for MKTEMP... " >&6; }
9716           if test ! -x "$tool_specified"; then
9717             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9718 $as_echo "not found" >&6; }
9719             as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5
9720           fi
9721           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9722 $as_echo "$tool_specified" >&6; }
9723         fi
9724       fi
9725     fi
9726 
9727   fi
9728 
9729 
9730 
9731   if test "x$MKTEMP" = x; then
9732     as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5
9733   fi
9734 
9735 
9736 
9737 
9738 
9739   # Publish this variable in the help.
9740 
9741 
9742   if [ -z "${MV+x}" ]; then
9743     # The variable is not set by user, try to locate tool using the code snippet
9744     for ac_prog in mv
9745 do
9746   # Extract the first word of "$ac_prog", so it can be a program name with args.
9747 set dummy $ac_prog; ac_word=$2
9748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9749 $as_echo_n "checking for $ac_word... " >&6; }
9750 if ${ac_cv_path_MV+:} false; then :
9751   $as_echo_n "(cached) " >&6
9752 else
9753   case $MV in
9754   [\\/]* | ?:[\\/]*)
9755   ac_cv_path_MV="$MV" # Let the user override the test with a path.
9756   ;;
9757   *)
9758   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9759 for as_dir in $PATH
9760 do
9761   IFS=$as_save_IFS
9762   test -z "$as_dir" && as_dir=.
9763     for ac_exec_ext in '' $ac_executable_extensions; do
9764   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9765     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9766     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9767     break 2
9768   fi
9769 done
9770   done
9771 IFS=$as_save_IFS
9772 
9773   ;;
9774 esac
9775 fi
9776 MV=$ac_cv_path_MV
9777 if test -n "$MV"; then
9778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9779 $as_echo "$MV" >&6; }
9780 else
9781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9782 $as_echo "no" >&6; }
9783 fi
9784 
9785 
9786   test -n "$MV" && break
9787 done
9788 
9789   else
9790     # The variable is set, but is it from the command line or the environment?
9791 
9792     # Try to remove the string !MV! from our list.
9793     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/}
9794     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9795       # If it failed, the variable was not from the command line. Ignore it,
9796       # but warn the user (except for BASH, which is always set by the calling BASH).
9797       if test "xMV" != xBASH; then
9798         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5
9799 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;}
9800       fi
9801       # Try to locate tool using the code snippet
9802       for ac_prog in mv
9803 do
9804   # Extract the first word of "$ac_prog", so it can be a program name with args.
9805 set dummy $ac_prog; ac_word=$2
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9807 $as_echo_n "checking for $ac_word... " >&6; }
9808 if ${ac_cv_path_MV+:} false; then :
9809   $as_echo_n "(cached) " >&6
9810 else
9811   case $MV in
9812   [\\/]* | ?:[\\/]*)
9813   ac_cv_path_MV="$MV" # Let the user override the test with a path.
9814   ;;
9815   *)
9816   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9817 for as_dir in $PATH
9818 do
9819   IFS=$as_save_IFS
9820   test -z "$as_dir" && as_dir=.
9821     for ac_exec_ext in '' $ac_executable_extensions; do
9822   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9823     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9824     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9825     break 2
9826   fi
9827 done
9828   done
9829 IFS=$as_save_IFS
9830 
9831   ;;
9832 esac
9833 fi
9834 MV=$ac_cv_path_MV
9835 if test -n "$MV"; then
9836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9837 $as_echo "$MV" >&6; }
9838 else
9839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9840 $as_echo "no" >&6; }
9841 fi
9842 
9843 
9844   test -n "$MV" && break
9845 done
9846 
9847     else
9848       # If it succeeded, then it was overridden by the user. We will use it
9849       # for the tool.
9850 
9851       # First remove it from the list of overridden variables, so we can test
9852       # for unknown variables in the end.
9853       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9854 
9855       # Check if we try to supply an empty value
9856       if test "x$MV" = x; then
9857         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MV= (no value)" >&5
9858 $as_echo "$as_me: Setting user supplied tool MV= (no value)" >&6;}
9859         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5
9860 $as_echo_n "checking for MV... " >&6; }
9861         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9862 $as_echo "disabled" >&6; }
9863       else
9864         # Check if the provided tool contains a complete path.
9865         tool_specified="$MV"
9866         tool_basename="${tool_specified##*/}"
9867         if test "x$tool_basename" = "x$tool_specified"; then
9868           # A command without a complete path is provided, search $PATH.
9869           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5
9870 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;}
9871           # Extract the first word of "$tool_basename", so it can be a program name with args.
9872 set dummy $tool_basename; ac_word=$2
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9874 $as_echo_n "checking for $ac_word... " >&6; }
9875 if ${ac_cv_path_MV+:} false; then :
9876   $as_echo_n "(cached) " >&6
9877 else
9878   case $MV in
9879   [\\/]* | ?:[\\/]*)
9880   ac_cv_path_MV="$MV" # Let the user override the test with a path.
9881   ;;
9882   *)
9883   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9884 for as_dir in $PATH
9885 do
9886   IFS=$as_save_IFS
9887   test -z "$as_dir" && as_dir=.
9888     for ac_exec_ext in '' $ac_executable_extensions; do
9889   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9890     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9891     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9892     break 2
9893   fi
9894 done
9895   done
9896 IFS=$as_save_IFS
9897 
9898   ;;
9899 esac
9900 fi
9901 MV=$ac_cv_path_MV
9902 if test -n "$MV"; then
9903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9904 $as_echo "$MV" >&6; }
9905 else
9906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9907 $as_echo "no" >&6; }
9908 fi
9909 
9910 
9911           if test "x$MV" = x; then
9912             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9913           fi
9914         else
9915           # Otherwise we believe it is a complete path. Use it as it is.
9916           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5
9917 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;}
9918           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5
9919 $as_echo_n "checking for MV... " >&6; }
9920           if test ! -x "$tool_specified"; then
9921             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9922 $as_echo "not found" >&6; }
9923             as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5
9924           fi
9925           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9926 $as_echo "$tool_specified" >&6; }
9927         fi
9928       fi
9929     fi
9930 
9931   fi
9932 
9933 
9934 
9935   if test "x$MV" = x; then
9936     as_fn_error $? "Could not find required tool for MV" "$LINENO" 5
9937   fi
9938 
9939 
9940 
9941 
9942 
9943   # Publish this variable in the help.
9944 
9945 
9946   if [ -z "${NAWK+x}" ]; then
9947     # The variable is not set by user, try to locate tool using the code snippet
9948     for ac_prog in nawk gawk awk
9949 do
9950   # Extract the first word of "$ac_prog", so it can be a program name with args.
9951 set dummy $ac_prog; ac_word=$2
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9953 $as_echo_n "checking for $ac_word... " >&6; }
9954 if ${ac_cv_path_NAWK+:} false; then :
9955   $as_echo_n "(cached) " >&6
9956 else
9957   case $NAWK in
9958   [\\/]* | ?:[\\/]*)
9959   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
9960   ;;
9961   *)
9962   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9963 for as_dir in $PATH
9964 do
9965   IFS=$as_save_IFS
9966   test -z "$as_dir" && as_dir=.
9967     for ac_exec_ext in '' $ac_executable_extensions; do
9968   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9969     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
9970     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9971     break 2
9972   fi
9973 done
9974   done
9975 IFS=$as_save_IFS
9976 
9977   ;;
9978 esac
9979 fi
9980 NAWK=$ac_cv_path_NAWK
9981 if test -n "$NAWK"; then
9982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
9983 $as_echo "$NAWK" >&6; }
9984 else
9985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9986 $as_echo "no" >&6; }
9987 fi
9988 
9989 
9990   test -n "$NAWK" && break
9991 done
9992 
9993   else
9994     # The variable is set, but is it from the command line or the environment?
9995 
9996     # Try to remove the string !NAWK! from our list.
9997     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/}
9998     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9999       # If it failed, the variable was not from the command line. Ignore it,
10000       # but warn the user (except for BASH, which is always set by the calling BASH).
10001       if test "xNAWK" != xBASH; then
10002         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5
10003 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;}
10004       fi
10005       # Try to locate tool using the code snippet
10006       for ac_prog in nawk gawk awk
10007 do
10008   # Extract the first word of "$ac_prog", so it can be a program name with args.
10009 set dummy $ac_prog; ac_word=$2
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10011 $as_echo_n "checking for $ac_word... " >&6; }
10012 if ${ac_cv_path_NAWK+:} false; then :
10013   $as_echo_n "(cached) " >&6
10014 else
10015   case $NAWK in
10016   [\\/]* | ?:[\\/]*)
10017   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
10018   ;;
10019   *)
10020   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10021 for as_dir in $PATH
10022 do
10023   IFS=$as_save_IFS
10024   test -z "$as_dir" && as_dir=.
10025     for ac_exec_ext in '' $ac_executable_extensions; do
10026   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10027     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
10028     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10029     break 2
10030   fi
10031 done
10032   done
10033 IFS=$as_save_IFS
10034 
10035   ;;
10036 esac
10037 fi
10038 NAWK=$ac_cv_path_NAWK
10039 if test -n "$NAWK"; then
10040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
10041 $as_echo "$NAWK" >&6; }
10042 else
10043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10044 $as_echo "no" >&6; }
10045 fi
10046 
10047 
10048   test -n "$NAWK" && break
10049 done
10050 
10051     else
10052       # If it succeeded, then it was overridden by the user. We will use it
10053       # for the tool.
10054 
10055       # First remove it from the list of overridden variables, so we can test
10056       # for unknown variables in the end.
10057       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10058 
10059       # Check if we try to supply an empty value
10060       if test "x$NAWK" = x; then
10061         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NAWK= (no value)" >&5
10062 $as_echo "$as_me: Setting user supplied tool NAWK= (no value)" >&6;}
10063         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5
10064 $as_echo_n "checking for NAWK... " >&6; }
10065         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10066 $as_echo "disabled" >&6; }
10067       else
10068         # Check if the provided tool contains a complete path.
10069         tool_specified="$NAWK"
10070         tool_basename="${tool_specified##*/}"
10071         if test "x$tool_basename" = "x$tool_specified"; then
10072           # A command without a complete path is provided, search $PATH.
10073           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5
10074 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;}
10075           # Extract the first word of "$tool_basename", so it can be a program name with args.
10076 set dummy $tool_basename; ac_word=$2
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10078 $as_echo_n "checking for $ac_word... " >&6; }
10079 if ${ac_cv_path_NAWK+:} false; then :
10080   $as_echo_n "(cached) " >&6
10081 else
10082   case $NAWK in
10083   [\\/]* | ?:[\\/]*)
10084   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
10085   ;;
10086   *)
10087   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10088 for as_dir in $PATH
10089 do
10090   IFS=$as_save_IFS
10091   test -z "$as_dir" && as_dir=.
10092     for ac_exec_ext in '' $ac_executable_extensions; do
10093   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10094     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
10095     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10096     break 2
10097   fi
10098 done
10099   done
10100 IFS=$as_save_IFS
10101 
10102   ;;
10103 esac
10104 fi
10105 NAWK=$ac_cv_path_NAWK
10106 if test -n "$NAWK"; then
10107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
10108 $as_echo "$NAWK" >&6; }
10109 else
10110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10111 $as_echo "no" >&6; }
10112 fi
10113 
10114 
10115           if test "x$NAWK" = x; then
10116             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10117           fi
10118         else
10119           # Otherwise we believe it is a complete path. Use it as it is.
10120           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5
10121 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;}
10122           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5
10123 $as_echo_n "checking for NAWK... " >&6; }
10124           if test ! -x "$tool_specified"; then
10125             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10126 $as_echo "not found" >&6; }
10127             as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5
10128           fi
10129           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10130 $as_echo "$tool_specified" >&6; }
10131         fi
10132       fi
10133     fi
10134 
10135   fi
10136 
10137 
10138 
10139   if test "x$NAWK" = x; then
10140     as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5
10141   fi
10142 
10143 
10144 
10145 
10146 
10147   # Publish this variable in the help.
10148 
10149 
10150   if [ -z "${PRINTF+x}" ]; then
10151     # The variable is not set by user, try to locate tool using the code snippet
10152     for ac_prog in printf
10153 do
10154   # Extract the first word of "$ac_prog", so it can be a program name with args.
10155 set dummy $ac_prog; ac_word=$2
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10157 $as_echo_n "checking for $ac_word... " >&6; }
10158 if ${ac_cv_path_PRINTF+:} false; then :
10159   $as_echo_n "(cached) " >&6
10160 else
10161   case $PRINTF in
10162   [\\/]* | ?:[\\/]*)
10163   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
10164   ;;
10165   *)
10166   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10167 for as_dir in $PATH
10168 do
10169   IFS=$as_save_IFS
10170   test -z "$as_dir" && as_dir=.
10171     for ac_exec_ext in '' $ac_executable_extensions; do
10172   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10173     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
10174     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10175     break 2
10176   fi
10177 done
10178   done
10179 IFS=$as_save_IFS
10180 
10181   ;;
10182 esac
10183 fi
10184 PRINTF=$ac_cv_path_PRINTF
10185 if test -n "$PRINTF"; then
10186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
10187 $as_echo "$PRINTF" >&6; }
10188 else
10189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10190 $as_echo "no" >&6; }
10191 fi
10192 
10193 
10194   test -n "$PRINTF" && break
10195 done
10196 
10197   else
10198     # The variable is set, but is it from the command line or the environment?
10199 
10200     # Try to remove the string !PRINTF! from our list.
10201     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/}
10202     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10203       # If it failed, the variable was not from the command line. Ignore it,
10204       # but warn the user (except for BASH, which is always set by the calling BASH).
10205       if test "xPRINTF" != xBASH; then
10206         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5
10207 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;}
10208       fi
10209       # Try to locate tool using the code snippet
10210       for ac_prog in printf
10211 do
10212   # Extract the first word of "$ac_prog", so it can be a program name with args.
10213 set dummy $ac_prog; ac_word=$2
10214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10215 $as_echo_n "checking for $ac_word... " >&6; }
10216 if ${ac_cv_path_PRINTF+:} false; then :
10217   $as_echo_n "(cached) " >&6
10218 else
10219   case $PRINTF in
10220   [\\/]* | ?:[\\/]*)
10221   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
10222   ;;
10223   *)
10224   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10225 for as_dir in $PATH
10226 do
10227   IFS=$as_save_IFS
10228   test -z "$as_dir" && as_dir=.
10229     for ac_exec_ext in '' $ac_executable_extensions; do
10230   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10231     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
10232     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10233     break 2
10234   fi
10235 done
10236   done
10237 IFS=$as_save_IFS
10238 
10239   ;;
10240 esac
10241 fi
10242 PRINTF=$ac_cv_path_PRINTF
10243 if test -n "$PRINTF"; then
10244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
10245 $as_echo "$PRINTF" >&6; }
10246 else
10247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10248 $as_echo "no" >&6; }
10249 fi
10250 
10251 
10252   test -n "$PRINTF" && break
10253 done
10254 
10255     else
10256       # If it succeeded, then it was overridden by the user. We will use it
10257       # for the tool.
10258 
10259       # First remove it from the list of overridden variables, so we can test
10260       # for unknown variables in the end.
10261       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10262 
10263       # Check if we try to supply an empty value
10264       if test "x$PRINTF" = x; then
10265         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PRINTF= (no value)" >&5
10266 $as_echo "$as_me: Setting user supplied tool PRINTF= (no value)" >&6;}
10267         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5
10268 $as_echo_n "checking for PRINTF... " >&6; }
10269         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10270 $as_echo "disabled" >&6; }
10271       else
10272         # Check if the provided tool contains a complete path.
10273         tool_specified="$PRINTF"
10274         tool_basename="${tool_specified##*/}"
10275         if test "x$tool_basename" = "x$tool_specified"; then
10276           # A command without a complete path is provided, search $PATH.
10277           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5
10278 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;}
10279           # Extract the first word of "$tool_basename", so it can be a program name with args.
10280 set dummy $tool_basename; ac_word=$2
10281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10282 $as_echo_n "checking for $ac_word... " >&6; }
10283 if ${ac_cv_path_PRINTF+:} false; then :
10284   $as_echo_n "(cached) " >&6
10285 else
10286   case $PRINTF in
10287   [\\/]* | ?:[\\/]*)
10288   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
10289   ;;
10290   *)
10291   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10292 for as_dir in $PATH
10293 do
10294   IFS=$as_save_IFS
10295   test -z "$as_dir" && as_dir=.
10296     for ac_exec_ext in '' $ac_executable_extensions; do
10297   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10298     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
10299     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10300     break 2
10301   fi
10302 done
10303   done
10304 IFS=$as_save_IFS
10305 
10306   ;;
10307 esac
10308 fi
10309 PRINTF=$ac_cv_path_PRINTF
10310 if test -n "$PRINTF"; then
10311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
10312 $as_echo "$PRINTF" >&6; }
10313 else
10314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10315 $as_echo "no" >&6; }
10316 fi
10317 
10318 
10319           if test "x$PRINTF" = x; then
10320             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10321           fi
10322         else
10323           # Otherwise we believe it is a complete path. Use it as it is.
10324           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5
10325 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;}
10326           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5
10327 $as_echo_n "checking for PRINTF... " >&6; }
10328           if test ! -x "$tool_specified"; then
10329             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10330 $as_echo "not found" >&6; }
10331             as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5
10332           fi
10333           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10334 $as_echo "$tool_specified" >&6; }
10335         fi
10336       fi
10337     fi
10338 
10339   fi
10340 
10341 
10342 
10343   if test "x$PRINTF" = x; then
10344     as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5
10345   fi
10346 
10347 
10348 
10349 
10350 
10351   # Publish this variable in the help.
10352 
10353 
10354   if [ -z "${RM+x}" ]; then
10355     # The variable is not set by user, try to locate tool using the code snippet
10356     for ac_prog in rm
10357 do
10358   # Extract the first word of "$ac_prog", so it can be a program name with args.
10359 set dummy $ac_prog; ac_word=$2
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10361 $as_echo_n "checking for $ac_word... " >&6; }
10362 if ${ac_cv_path_RM+:} false; then :
10363   $as_echo_n "(cached) " >&6
10364 else
10365   case $RM in
10366   [\\/]* | ?:[\\/]*)
10367   ac_cv_path_RM="$RM" # Let the user override the test with a path.
10368   ;;
10369   *)
10370   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10371 for as_dir in $PATH
10372 do
10373   IFS=$as_save_IFS
10374   test -z "$as_dir" && as_dir=.
10375     for ac_exec_ext in '' $ac_executable_extensions; do
10376   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10377     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
10378     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10379     break 2
10380   fi
10381 done
10382   done
10383 IFS=$as_save_IFS
10384 
10385   ;;
10386 esac
10387 fi
10388 RM=$ac_cv_path_RM
10389 if test -n "$RM"; then
10390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
10391 $as_echo "$RM" >&6; }
10392 else
10393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10394 $as_echo "no" >&6; }
10395 fi
10396 
10397 
10398   test -n "$RM" && break
10399 done
10400 
10401   else
10402     # The variable is set, but is it from the command line or the environment?
10403 
10404     # Try to remove the string !RM! from our list.
10405     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/}
10406     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10407       # If it failed, the variable was not from the command line. Ignore it,
10408       # but warn the user (except for BASH, which is always set by the calling BASH).
10409       if test "xRM" != xBASH; then
10410         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5
10411 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;}
10412       fi
10413       # Try to locate tool using the code snippet
10414       for ac_prog in rm
10415 do
10416   # Extract the first word of "$ac_prog", so it can be a program name with args.
10417 set dummy $ac_prog; ac_word=$2
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10419 $as_echo_n "checking for $ac_word... " >&6; }
10420 if ${ac_cv_path_RM+:} false; then :
10421   $as_echo_n "(cached) " >&6
10422 else
10423   case $RM in
10424   [\\/]* | ?:[\\/]*)
10425   ac_cv_path_RM="$RM" # Let the user override the test with a path.
10426   ;;
10427   *)
10428   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10429 for as_dir in $PATH
10430 do
10431   IFS=$as_save_IFS
10432   test -z "$as_dir" && as_dir=.
10433     for ac_exec_ext in '' $ac_executable_extensions; do
10434   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10435     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
10436     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10437     break 2
10438   fi
10439 done
10440   done
10441 IFS=$as_save_IFS
10442 
10443   ;;
10444 esac
10445 fi
10446 RM=$ac_cv_path_RM
10447 if test -n "$RM"; then
10448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
10449 $as_echo "$RM" >&6; }
10450 else
10451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10452 $as_echo "no" >&6; }
10453 fi
10454 
10455 
10456   test -n "$RM" && break
10457 done
10458 
10459     else
10460       # If it succeeded, then it was overridden by the user. We will use it
10461       # for the tool.
10462 
10463       # First remove it from the list of overridden variables, so we can test
10464       # for unknown variables in the end.
10465       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10466 
10467       # Check if we try to supply an empty value
10468       if test "x$RM" = x; then
10469         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool RM= (no value)" >&5
10470 $as_echo "$as_me: Setting user supplied tool RM= (no value)" >&6;}
10471         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5
10472 $as_echo_n "checking for RM... " >&6; }
10473         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10474 $as_echo "disabled" >&6; }
10475       else
10476         # Check if the provided tool contains a complete path.
10477         tool_specified="$RM"
10478         tool_basename="${tool_specified##*/}"
10479         if test "x$tool_basename" = "x$tool_specified"; then
10480           # A command without a complete path is provided, search $PATH.
10481           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5
10482 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;}
10483           # Extract the first word of "$tool_basename", so it can be a program name with args.
10484 set dummy $tool_basename; ac_word=$2
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10486 $as_echo_n "checking for $ac_word... " >&6; }
10487 if ${ac_cv_path_RM+:} false; then :
10488   $as_echo_n "(cached) " >&6
10489 else
10490   case $RM in
10491   [\\/]* | ?:[\\/]*)
10492   ac_cv_path_RM="$RM" # Let the user override the test with a path.
10493   ;;
10494   *)
10495   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10496 for as_dir in $PATH
10497 do
10498   IFS=$as_save_IFS
10499   test -z "$as_dir" && as_dir=.
10500     for ac_exec_ext in '' $ac_executable_extensions; do
10501   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10502     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
10503     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10504     break 2
10505   fi
10506 done
10507   done
10508 IFS=$as_save_IFS
10509 
10510   ;;
10511 esac
10512 fi
10513 RM=$ac_cv_path_RM
10514 if test -n "$RM"; then
10515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
10516 $as_echo "$RM" >&6; }
10517 else
10518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10519 $as_echo "no" >&6; }
10520 fi
10521 
10522 
10523           if test "x$RM" = x; then
10524             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10525           fi
10526         else
10527           # Otherwise we believe it is a complete path. Use it as it is.
10528           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5
10529 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;}
10530           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5
10531 $as_echo_n "checking for RM... " >&6; }
10532           if test ! -x "$tool_specified"; then
10533             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10534 $as_echo "not found" >&6; }
10535             as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5
10536           fi
10537           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10538 $as_echo "$tool_specified" >&6; }
10539         fi
10540       fi
10541     fi
10542 
10543   fi
10544 
10545 
10546 
10547   if test "x$RM" = x; then
10548     as_fn_error $? "Could not find required tool for RM" "$LINENO" 5
10549   fi
10550 
10551 
10552 
10553 
10554 
10555   # Publish this variable in the help.
10556 
10557 
10558   if [ -z "${RMDIR+x}" ]; then
10559     # The variable is not set by user, try to locate tool using the code snippet
10560     for ac_prog in rmdir
10561 do
10562   # Extract the first word of "$ac_prog", so it can be a program name with args.
10563 set dummy $ac_prog; ac_word=$2
10564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10565 $as_echo_n "checking for $ac_word... " >&6; }
10566 if ${ac_cv_path_RMDIR+:} false; then :
10567   $as_echo_n "(cached) " >&6
10568 else
10569   case $RMDIR in
10570   [\\/]* | ?:[\\/]*)
10571   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
10572   ;;
10573   *)
10574   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10575 for as_dir in $PATH
10576 do
10577   IFS=$as_save_IFS
10578   test -z "$as_dir" && as_dir=.
10579     for ac_exec_ext in '' $ac_executable_extensions; do
10580   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10581     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
10582     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10583     break 2
10584   fi
10585 done
10586   done
10587 IFS=$as_save_IFS
10588 
10589   ;;
10590 esac
10591 fi
10592 RMDIR=$ac_cv_path_RMDIR
10593 if test -n "$RMDIR"; then
10594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
10595 $as_echo "$RMDIR" >&6; }
10596 else
10597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10598 $as_echo "no" >&6; }
10599 fi
10600 
10601 
10602   test -n "$RMDIR" && break
10603 done
10604 
10605   else
10606     # The variable is set, but is it from the command line or the environment?
10607 
10608     # Try to remove the string !RMDIR! from our list.
10609     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RMDIR!/}
10610     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10611       # If it failed, the variable was not from the command line. Ignore it,
10612       # but warn the user (except for BASH, which is always set by the calling BASH).
10613       if test "xRMDIR" != xBASH; then
10614         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RMDIR from the environment. Use command line variables instead." >&5
10615 $as_echo "$as_me: WARNING: Ignoring value of RMDIR from the environment. Use command line variables instead." >&2;}
10616       fi
10617       # Try to locate tool using the code snippet
10618       for ac_prog in rmdir
10619 do
10620   # Extract the first word of "$ac_prog", so it can be a program name with args.
10621 set dummy $ac_prog; ac_word=$2
10622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10623 $as_echo_n "checking for $ac_word... " >&6; }
10624 if ${ac_cv_path_RMDIR+:} false; then :
10625   $as_echo_n "(cached) " >&6
10626 else
10627   case $RMDIR in
10628   [\\/]* | ?:[\\/]*)
10629   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
10630   ;;
10631   *)
10632   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10633 for as_dir in $PATH
10634 do
10635   IFS=$as_save_IFS
10636   test -z "$as_dir" && as_dir=.
10637     for ac_exec_ext in '' $ac_executable_extensions; do
10638   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10639     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
10640     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10641     break 2
10642   fi
10643 done
10644   done
10645 IFS=$as_save_IFS
10646 
10647   ;;
10648 esac
10649 fi
10650 RMDIR=$ac_cv_path_RMDIR
10651 if test -n "$RMDIR"; then
10652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
10653 $as_echo "$RMDIR" >&6; }
10654 else
10655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10656 $as_echo "no" >&6; }
10657 fi
10658 
10659 
10660   test -n "$RMDIR" && break
10661 done
10662 
10663     else
10664       # If it succeeded, then it was overridden by the user. We will use it
10665       # for the tool.
10666 
10667       # First remove it from the list of overridden variables, so we can test
10668       # for unknown variables in the end.
10669       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10670 
10671       # Check if we try to supply an empty value
10672       if test "x$RMDIR" = x; then
10673         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool RMDIR= (no value)" >&5
10674 $as_echo "$as_me: Setting user supplied tool RMDIR= (no value)" >&6;}
10675         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RMDIR" >&5
10676 $as_echo_n "checking for RMDIR... " >&6; }
10677         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10678 $as_echo "disabled" >&6; }
10679       else
10680         # Check if the provided tool contains a complete path.
10681         tool_specified="$RMDIR"
10682         tool_basename="${tool_specified##*/}"
10683         if test "x$tool_basename" = "x$tool_specified"; then
10684           # A command without a complete path is provided, search $PATH.
10685           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RMDIR=$tool_basename" >&5
10686 $as_echo "$as_me: Will search for user supplied tool RMDIR=$tool_basename" >&6;}
10687           # Extract the first word of "$tool_basename", so it can be a program name with args.
10688 set dummy $tool_basename; ac_word=$2
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10690 $as_echo_n "checking for $ac_word... " >&6; }
10691 if ${ac_cv_path_RMDIR+:} false; then :
10692   $as_echo_n "(cached) " >&6
10693 else
10694   case $RMDIR in
10695   [\\/]* | ?:[\\/]*)
10696   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
10697   ;;
10698   *)
10699   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10700 for as_dir in $PATH
10701 do
10702   IFS=$as_save_IFS
10703   test -z "$as_dir" && as_dir=.
10704     for ac_exec_ext in '' $ac_executable_extensions; do
10705   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10706     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
10707     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10708     break 2
10709   fi
10710 done
10711   done
10712 IFS=$as_save_IFS
10713 
10714   ;;
10715 esac
10716 fi
10717 RMDIR=$ac_cv_path_RMDIR
10718 if test -n "$RMDIR"; then
10719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
10720 $as_echo "$RMDIR" >&6; }
10721 else
10722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10723 $as_echo "no" >&6; }
10724 fi
10725 
10726 
10727           if test "x$RMDIR" = x; then
10728             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10729           fi
10730         else
10731           # Otherwise we believe it is a complete path. Use it as it is.
10732           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RMDIR=$tool_specified" >&5
10733 $as_echo "$as_me: Will use user supplied tool RMDIR=$tool_specified" >&6;}
10734           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RMDIR" >&5
10735 $as_echo_n "checking for RMDIR... " >&6; }
10736           if test ! -x "$tool_specified"; then
10737             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10738 $as_echo "not found" >&6; }
10739             as_fn_error $? "User supplied tool RMDIR=$tool_specified does not exist or is not executable" "$LINENO" 5
10740           fi
10741           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10742 $as_echo "$tool_specified" >&6; }
10743         fi
10744       fi
10745     fi
10746 
10747   fi
10748 
10749 
10750 
10751   if test "x$RMDIR" = x; then
10752     as_fn_error $? "Could not find required tool for RMDIR" "$LINENO" 5
10753   fi
10754 
10755 
10756 
10757 
10758 
10759   # Publish this variable in the help.
10760 
10761 
10762   if [ -z "${SH+x}" ]; then
10763     # The variable is not set by user, try to locate tool using the code snippet
10764     for ac_prog in sh
10765 do
10766   # Extract the first word of "$ac_prog", so it can be a program name with args.
10767 set dummy $ac_prog; ac_word=$2
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10769 $as_echo_n "checking for $ac_word... " >&6; }
10770 if ${ac_cv_path_SH+:} false; then :
10771   $as_echo_n "(cached) " >&6
10772 else
10773   case $SH in
10774   [\\/]* | ?:[\\/]*)
10775   ac_cv_path_SH="$SH" # Let the user override the test with a path.
10776   ;;
10777   *)
10778   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10779 for as_dir in $PATH
10780 do
10781   IFS=$as_save_IFS
10782   test -z "$as_dir" && as_dir=.
10783     for ac_exec_ext in '' $ac_executable_extensions; do
10784   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10785     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
10786     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10787     break 2
10788   fi
10789 done
10790   done
10791 IFS=$as_save_IFS
10792 
10793   ;;
10794 esac
10795 fi
10796 SH=$ac_cv_path_SH
10797 if test -n "$SH"; then
10798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
10799 $as_echo "$SH" >&6; }
10800 else
10801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10802 $as_echo "no" >&6; }
10803 fi
10804 
10805 
10806   test -n "$SH" && break
10807 done
10808 
10809   else
10810     # The variable is set, but is it from the command line or the environment?
10811 
10812     # Try to remove the string !SH! from our list.
10813     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/}
10814     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10815       # If it failed, the variable was not from the command line. Ignore it,
10816       # but warn the user (except for BASH, which is always set by the calling BASH).
10817       if test "xSH" != xBASH; then
10818         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5
10819 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;}
10820       fi
10821       # Try to locate tool using the code snippet
10822       for ac_prog in sh
10823 do
10824   # Extract the first word of "$ac_prog", so it can be a program name with args.
10825 set dummy $ac_prog; ac_word=$2
10826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10827 $as_echo_n "checking for $ac_word... " >&6; }
10828 if ${ac_cv_path_SH+:} false; then :
10829   $as_echo_n "(cached) " >&6
10830 else
10831   case $SH in
10832   [\\/]* | ?:[\\/]*)
10833   ac_cv_path_SH="$SH" # Let the user override the test with a path.
10834   ;;
10835   *)
10836   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10837 for as_dir in $PATH
10838 do
10839   IFS=$as_save_IFS
10840   test -z "$as_dir" && as_dir=.
10841     for ac_exec_ext in '' $ac_executable_extensions; do
10842   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10843     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
10844     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10845     break 2
10846   fi
10847 done
10848   done
10849 IFS=$as_save_IFS
10850 
10851   ;;
10852 esac
10853 fi
10854 SH=$ac_cv_path_SH
10855 if test -n "$SH"; then
10856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
10857 $as_echo "$SH" >&6; }
10858 else
10859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10860 $as_echo "no" >&6; }
10861 fi
10862 
10863 
10864   test -n "$SH" && break
10865 done
10866 
10867     else
10868       # If it succeeded, then it was overridden by the user. We will use it
10869       # for the tool.
10870 
10871       # First remove it from the list of overridden variables, so we can test
10872       # for unknown variables in the end.
10873       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10874 
10875       # Check if we try to supply an empty value
10876       if test "x$SH" = x; then
10877         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SH= (no value)" >&5
10878 $as_echo "$as_me: Setting user supplied tool SH= (no value)" >&6;}
10879         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5
10880 $as_echo_n "checking for SH... " >&6; }
10881         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10882 $as_echo "disabled" >&6; }
10883       else
10884         # Check if the provided tool contains a complete path.
10885         tool_specified="$SH"
10886         tool_basename="${tool_specified##*/}"
10887         if test "x$tool_basename" = "x$tool_specified"; then
10888           # A command without a complete path is provided, search $PATH.
10889           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5
10890 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;}
10891           # Extract the first word of "$tool_basename", so it can be a program name with args.
10892 set dummy $tool_basename; ac_word=$2
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10894 $as_echo_n "checking for $ac_word... " >&6; }
10895 if ${ac_cv_path_SH+:} false; then :
10896   $as_echo_n "(cached) " >&6
10897 else
10898   case $SH in
10899   [\\/]* | ?:[\\/]*)
10900   ac_cv_path_SH="$SH" # Let the user override the test with a path.
10901   ;;
10902   *)
10903   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10904 for as_dir in $PATH
10905 do
10906   IFS=$as_save_IFS
10907   test -z "$as_dir" && as_dir=.
10908     for ac_exec_ext in '' $ac_executable_extensions; do
10909   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10910     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
10911     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10912     break 2
10913   fi
10914 done
10915   done
10916 IFS=$as_save_IFS
10917 
10918   ;;
10919 esac
10920 fi
10921 SH=$ac_cv_path_SH
10922 if test -n "$SH"; then
10923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
10924 $as_echo "$SH" >&6; }
10925 else
10926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10927 $as_echo "no" >&6; }
10928 fi
10929 
10930 
10931           if test "x$SH" = x; then
10932             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10933           fi
10934         else
10935           # Otherwise we believe it is a complete path. Use it as it is.
10936           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5
10937 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;}
10938           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5
10939 $as_echo_n "checking for SH... " >&6; }
10940           if test ! -x "$tool_specified"; then
10941             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10942 $as_echo "not found" >&6; }
10943             as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5
10944           fi
10945           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10946 $as_echo "$tool_specified" >&6; }
10947         fi
10948       fi
10949     fi
10950 
10951   fi
10952 
10953 
10954 
10955   if test "x$SH" = x; then
10956     as_fn_error $? "Could not find required tool for SH" "$LINENO" 5
10957   fi
10958 
10959 
10960 
10961 
10962 
10963   # Publish this variable in the help.
10964 
10965 
10966   if [ -z "${SORT+x}" ]; then
10967     # The variable is not set by user, try to locate tool using the code snippet
10968     for ac_prog in sort
10969 do
10970   # Extract the first word of "$ac_prog", so it can be a program name with args.
10971 set dummy $ac_prog; ac_word=$2
10972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10973 $as_echo_n "checking for $ac_word... " >&6; }
10974 if ${ac_cv_path_SORT+:} false; then :
10975   $as_echo_n "(cached) " >&6
10976 else
10977   case $SORT in
10978   [\\/]* | ?:[\\/]*)
10979   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
10980   ;;
10981   *)
10982   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10983 for as_dir in $PATH
10984 do
10985   IFS=$as_save_IFS
10986   test -z "$as_dir" && as_dir=.
10987     for ac_exec_ext in '' $ac_executable_extensions; do
10988   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10989     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
10990     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10991     break 2
10992   fi
10993 done
10994   done
10995 IFS=$as_save_IFS
10996 
10997   ;;
10998 esac
10999 fi
11000 SORT=$ac_cv_path_SORT
11001 if test -n "$SORT"; then
11002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
11003 $as_echo "$SORT" >&6; }
11004 else
11005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11006 $as_echo "no" >&6; }
11007 fi
11008 
11009 
11010   test -n "$SORT" && break
11011 done
11012 
11013   else
11014     # The variable is set, but is it from the command line or the environment?
11015 
11016     # Try to remove the string !SORT! from our list.
11017     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/}
11018     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11019       # If it failed, the variable was not from the command line. Ignore it,
11020       # but warn the user (except for BASH, which is always set by the calling BASH).
11021       if test "xSORT" != xBASH; then
11022         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5
11023 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;}
11024       fi
11025       # Try to locate tool using the code snippet
11026       for ac_prog in sort
11027 do
11028   # Extract the first word of "$ac_prog", so it can be a program name with args.
11029 set dummy $ac_prog; ac_word=$2
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11031 $as_echo_n "checking for $ac_word... " >&6; }
11032 if ${ac_cv_path_SORT+:} false; then :
11033   $as_echo_n "(cached) " >&6
11034 else
11035   case $SORT in
11036   [\\/]* | ?:[\\/]*)
11037   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
11038   ;;
11039   *)
11040   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11041 for as_dir in $PATH
11042 do
11043   IFS=$as_save_IFS
11044   test -z "$as_dir" && as_dir=.
11045     for ac_exec_ext in '' $ac_executable_extensions; do
11046   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11047     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
11048     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11049     break 2
11050   fi
11051 done
11052   done
11053 IFS=$as_save_IFS
11054 
11055   ;;
11056 esac
11057 fi
11058 SORT=$ac_cv_path_SORT
11059 if test -n "$SORT"; then
11060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
11061 $as_echo "$SORT" >&6; }
11062 else
11063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11064 $as_echo "no" >&6; }
11065 fi
11066 
11067 
11068   test -n "$SORT" && break
11069 done
11070 
11071     else
11072       # If it succeeded, then it was overridden by the user. We will use it
11073       # for the tool.
11074 
11075       # First remove it from the list of overridden variables, so we can test
11076       # for unknown variables in the end.
11077       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11078 
11079       # Check if we try to supply an empty value
11080       if test "x$SORT" = x; then
11081         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SORT= (no value)" >&5
11082 $as_echo "$as_me: Setting user supplied tool SORT= (no value)" >&6;}
11083         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5
11084 $as_echo_n "checking for SORT... " >&6; }
11085         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11086 $as_echo "disabled" >&6; }
11087       else
11088         # Check if the provided tool contains a complete path.
11089         tool_specified="$SORT"
11090         tool_basename="${tool_specified##*/}"
11091         if test "x$tool_basename" = "x$tool_specified"; then
11092           # A command without a complete path is provided, search $PATH.
11093           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5
11094 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;}
11095           # Extract the first word of "$tool_basename", so it can be a program name with args.
11096 set dummy $tool_basename; ac_word=$2
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11098 $as_echo_n "checking for $ac_word... " >&6; }
11099 if ${ac_cv_path_SORT+:} false; then :
11100   $as_echo_n "(cached) " >&6
11101 else
11102   case $SORT in
11103   [\\/]* | ?:[\\/]*)
11104   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
11105   ;;
11106   *)
11107   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11108 for as_dir in $PATH
11109 do
11110   IFS=$as_save_IFS
11111   test -z "$as_dir" && as_dir=.
11112     for ac_exec_ext in '' $ac_executable_extensions; do
11113   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11114     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
11115     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11116     break 2
11117   fi
11118 done
11119   done
11120 IFS=$as_save_IFS
11121 
11122   ;;
11123 esac
11124 fi
11125 SORT=$ac_cv_path_SORT
11126 if test -n "$SORT"; then
11127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
11128 $as_echo "$SORT" >&6; }
11129 else
11130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11131 $as_echo "no" >&6; }
11132 fi
11133 
11134 
11135           if test "x$SORT" = x; then
11136             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11137           fi
11138         else
11139           # Otherwise we believe it is a complete path. Use it as it is.
11140           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5
11141 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;}
11142           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5
11143 $as_echo_n "checking for SORT... " >&6; }
11144           if test ! -x "$tool_specified"; then
11145             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11146 $as_echo "not found" >&6; }
11147             as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5
11148           fi
11149           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11150 $as_echo "$tool_specified" >&6; }
11151         fi
11152       fi
11153     fi
11154 
11155   fi
11156 
11157 
11158 
11159   if test "x$SORT" = x; then
11160     as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5
11161   fi
11162 
11163 
11164 
11165 
11166 
11167   # Publish this variable in the help.
11168 
11169 
11170   if [ -z "${TAIL+x}" ]; then
11171     # The variable is not set by user, try to locate tool using the code snippet
11172     for ac_prog in tail
11173 do
11174   # Extract the first word of "$ac_prog", so it can be a program name with args.
11175 set dummy $ac_prog; ac_word=$2
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11177 $as_echo_n "checking for $ac_word... " >&6; }
11178 if ${ac_cv_path_TAIL+:} false; then :
11179   $as_echo_n "(cached) " >&6
11180 else
11181   case $TAIL in
11182   [\\/]* | ?:[\\/]*)
11183   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
11184   ;;
11185   *)
11186   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11187 for as_dir in $PATH
11188 do
11189   IFS=$as_save_IFS
11190   test -z "$as_dir" && as_dir=.
11191     for ac_exec_ext in '' $ac_executable_extensions; do
11192   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11193     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
11194     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11195     break 2
11196   fi
11197 done
11198   done
11199 IFS=$as_save_IFS
11200 
11201   ;;
11202 esac
11203 fi
11204 TAIL=$ac_cv_path_TAIL
11205 if test -n "$TAIL"; then
11206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
11207 $as_echo "$TAIL" >&6; }
11208 else
11209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11210 $as_echo "no" >&6; }
11211 fi
11212 
11213 
11214   test -n "$TAIL" && break
11215 done
11216 
11217   else
11218     # The variable is set, but is it from the command line or the environment?
11219 
11220     # Try to remove the string !TAIL! from our list.
11221     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/}
11222     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11223       # If it failed, the variable was not from the command line. Ignore it,
11224       # but warn the user (except for BASH, which is always set by the calling BASH).
11225       if test "xTAIL" != xBASH; then
11226         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5
11227 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;}
11228       fi
11229       # Try to locate tool using the code snippet
11230       for ac_prog in tail
11231 do
11232   # Extract the first word of "$ac_prog", so it can be a program name with args.
11233 set dummy $ac_prog; ac_word=$2
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11235 $as_echo_n "checking for $ac_word... " >&6; }
11236 if ${ac_cv_path_TAIL+:} false; then :
11237   $as_echo_n "(cached) " >&6
11238 else
11239   case $TAIL in
11240   [\\/]* | ?:[\\/]*)
11241   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
11242   ;;
11243   *)
11244   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11245 for as_dir in $PATH
11246 do
11247   IFS=$as_save_IFS
11248   test -z "$as_dir" && as_dir=.
11249     for ac_exec_ext in '' $ac_executable_extensions; do
11250   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11251     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
11252     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11253     break 2
11254   fi
11255 done
11256   done
11257 IFS=$as_save_IFS
11258 
11259   ;;
11260 esac
11261 fi
11262 TAIL=$ac_cv_path_TAIL
11263 if test -n "$TAIL"; then
11264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
11265 $as_echo "$TAIL" >&6; }
11266 else
11267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11268 $as_echo "no" >&6; }
11269 fi
11270 
11271 
11272   test -n "$TAIL" && break
11273 done
11274 
11275     else
11276       # If it succeeded, then it was overridden by the user. We will use it
11277       # for the tool.
11278 
11279       # First remove it from the list of overridden variables, so we can test
11280       # for unknown variables in the end.
11281       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11282 
11283       # Check if we try to supply an empty value
11284       if test "x$TAIL" = x; then
11285         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TAIL= (no value)" >&5
11286 $as_echo "$as_me: Setting user supplied tool TAIL= (no value)" >&6;}
11287         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5
11288 $as_echo_n "checking for TAIL... " >&6; }
11289         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11290 $as_echo "disabled" >&6; }
11291       else
11292         # Check if the provided tool contains a complete path.
11293         tool_specified="$TAIL"
11294         tool_basename="${tool_specified##*/}"
11295         if test "x$tool_basename" = "x$tool_specified"; then
11296           # A command without a complete path is provided, search $PATH.
11297           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5
11298 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;}
11299           # Extract the first word of "$tool_basename", so it can be a program name with args.
11300 set dummy $tool_basename; ac_word=$2
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11302 $as_echo_n "checking for $ac_word... " >&6; }
11303 if ${ac_cv_path_TAIL+:} false; then :
11304   $as_echo_n "(cached) " >&6
11305 else
11306   case $TAIL in
11307   [\\/]* | ?:[\\/]*)
11308   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
11309   ;;
11310   *)
11311   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11312 for as_dir in $PATH
11313 do
11314   IFS=$as_save_IFS
11315   test -z "$as_dir" && as_dir=.
11316     for ac_exec_ext in '' $ac_executable_extensions; do
11317   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11318     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
11319     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11320     break 2
11321   fi
11322 done
11323   done
11324 IFS=$as_save_IFS
11325 
11326   ;;
11327 esac
11328 fi
11329 TAIL=$ac_cv_path_TAIL
11330 if test -n "$TAIL"; then
11331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
11332 $as_echo "$TAIL" >&6; }
11333 else
11334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11335 $as_echo "no" >&6; }
11336 fi
11337 
11338 
11339           if test "x$TAIL" = x; then
11340             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11341           fi
11342         else
11343           # Otherwise we believe it is a complete path. Use it as it is.
11344           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5
11345 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;}
11346           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5
11347 $as_echo_n "checking for TAIL... " >&6; }
11348           if test ! -x "$tool_specified"; then
11349             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11350 $as_echo "not found" >&6; }
11351             as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5
11352           fi
11353           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11354 $as_echo "$tool_specified" >&6; }
11355         fi
11356       fi
11357     fi
11358 
11359   fi
11360 
11361 
11362 
11363   if test "x$TAIL" = x; then
11364     as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5
11365   fi
11366 
11367 
11368 
11369 
11370 
11371   # Publish this variable in the help.
11372 
11373 
11374   if [ -z "${TAR+x}" ]; then
11375     # The variable is not set by user, try to locate tool using the code snippet
11376     for ac_prog in gtar tar
11377 do
11378   # Extract the first word of "$ac_prog", so it can be a program name with args.
11379 set dummy $ac_prog; ac_word=$2
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11381 $as_echo_n "checking for $ac_word... " >&6; }
11382 if ${ac_cv_path_TAR+:} false; then :
11383   $as_echo_n "(cached) " >&6
11384 else
11385   case $TAR in
11386   [\\/]* | ?:[\\/]*)
11387   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
11388   ;;
11389   *)
11390   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11391 for as_dir in $PATH
11392 do
11393   IFS=$as_save_IFS
11394   test -z "$as_dir" && as_dir=.
11395     for ac_exec_ext in '' $ac_executable_extensions; do
11396   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11397     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
11398     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11399     break 2
11400   fi
11401 done
11402   done
11403 IFS=$as_save_IFS
11404 
11405   ;;
11406 esac
11407 fi
11408 TAR=$ac_cv_path_TAR
11409 if test -n "$TAR"; then
11410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
11411 $as_echo "$TAR" >&6; }
11412 else
11413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11414 $as_echo "no" >&6; }
11415 fi
11416 
11417 
11418   test -n "$TAR" && break
11419 done
11420 
11421   else
11422     # The variable is set, but is it from the command line or the environment?
11423 
11424     # Try to remove the string !TAR! from our list.
11425     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/}
11426     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11427       # If it failed, the variable was not from the command line. Ignore it,
11428       # but warn the user (except for BASH, which is always set by the calling BASH).
11429       if test "xTAR" != xBASH; then
11430         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5
11431 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;}
11432       fi
11433       # Try to locate tool using the code snippet
11434       for ac_prog in gtar tar
11435 do
11436   # Extract the first word of "$ac_prog", so it can be a program name with args.
11437 set dummy $ac_prog; ac_word=$2
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11439 $as_echo_n "checking for $ac_word... " >&6; }
11440 if ${ac_cv_path_TAR+:} false; then :
11441   $as_echo_n "(cached) " >&6
11442 else
11443   case $TAR in
11444   [\\/]* | ?:[\\/]*)
11445   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
11446   ;;
11447   *)
11448   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11449 for as_dir in $PATH
11450 do
11451   IFS=$as_save_IFS
11452   test -z "$as_dir" && as_dir=.
11453     for ac_exec_ext in '' $ac_executable_extensions; do
11454   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11455     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
11456     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11457     break 2
11458   fi
11459 done
11460   done
11461 IFS=$as_save_IFS
11462 
11463   ;;
11464 esac
11465 fi
11466 TAR=$ac_cv_path_TAR
11467 if test -n "$TAR"; then
11468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
11469 $as_echo "$TAR" >&6; }
11470 else
11471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11472 $as_echo "no" >&6; }
11473 fi
11474 
11475 
11476   test -n "$TAR" && break
11477 done
11478 
11479     else
11480       # If it succeeded, then it was overridden by the user. We will use it
11481       # for the tool.
11482 
11483       # First remove it from the list of overridden variables, so we can test
11484       # for unknown variables in the end.
11485       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11486 
11487       # Check if we try to supply an empty value
11488       if test "x$TAR" = x; then
11489         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TAR= (no value)" >&5
11490 $as_echo "$as_me: Setting user supplied tool TAR= (no value)" >&6;}
11491         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
11492 $as_echo_n "checking for TAR... " >&6; }
11493         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11494 $as_echo "disabled" >&6; }
11495       else
11496         # Check if the provided tool contains a complete path.
11497         tool_specified="$TAR"
11498         tool_basename="${tool_specified##*/}"
11499         if test "x$tool_basename" = "x$tool_specified"; then
11500           # A command without a complete path is provided, search $PATH.
11501           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5
11502 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;}
11503           # Extract the first word of "$tool_basename", so it can be a program name with args.
11504 set dummy $tool_basename; ac_word=$2
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11506 $as_echo_n "checking for $ac_word... " >&6; }
11507 if ${ac_cv_path_TAR+:} false; then :
11508   $as_echo_n "(cached) " >&6
11509 else
11510   case $TAR in
11511   [\\/]* | ?:[\\/]*)
11512   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
11513   ;;
11514   *)
11515   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11516 for as_dir in $PATH
11517 do
11518   IFS=$as_save_IFS
11519   test -z "$as_dir" && as_dir=.
11520     for ac_exec_ext in '' $ac_executable_extensions; do
11521   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11522     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
11523     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11524     break 2
11525   fi
11526 done
11527   done
11528 IFS=$as_save_IFS
11529 
11530   ;;
11531 esac
11532 fi
11533 TAR=$ac_cv_path_TAR
11534 if test -n "$TAR"; then
11535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
11536 $as_echo "$TAR" >&6; }
11537 else
11538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11539 $as_echo "no" >&6; }
11540 fi
11541 
11542 
11543           if test "x$TAR" = x; then
11544             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11545           fi
11546         else
11547           # Otherwise we believe it is a complete path. Use it as it is.
11548           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5
11549 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;}
11550           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
11551 $as_echo_n "checking for TAR... " >&6; }
11552           if test ! -x "$tool_specified"; then
11553             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11554 $as_echo "not found" >&6; }
11555             as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5
11556           fi
11557           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11558 $as_echo "$tool_specified" >&6; }
11559         fi
11560       fi
11561     fi
11562 
11563   fi
11564 
11565 
11566 
11567   if test "x$TAR" = x; then
11568     as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5
11569   fi
11570 
11571 
11572 
11573 
11574 
11575   # Publish this variable in the help.
11576 
11577 
11578   if [ -z "${TEE+x}" ]; then
11579     # The variable is not set by user, try to locate tool using the code snippet
11580     for ac_prog in tee
11581 do
11582   # Extract the first word of "$ac_prog", so it can be a program name with args.
11583 set dummy $ac_prog; ac_word=$2
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11585 $as_echo_n "checking for $ac_word... " >&6; }
11586 if ${ac_cv_path_TEE+:} false; then :
11587   $as_echo_n "(cached) " >&6
11588 else
11589   case $TEE in
11590   [\\/]* | ?:[\\/]*)
11591   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
11592   ;;
11593   *)
11594   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11595 for as_dir in $PATH
11596 do
11597   IFS=$as_save_IFS
11598   test -z "$as_dir" && as_dir=.
11599     for ac_exec_ext in '' $ac_executable_extensions; do
11600   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11601     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
11602     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11603     break 2
11604   fi
11605 done
11606   done
11607 IFS=$as_save_IFS
11608 
11609   ;;
11610 esac
11611 fi
11612 TEE=$ac_cv_path_TEE
11613 if test -n "$TEE"; then
11614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
11615 $as_echo "$TEE" >&6; }
11616 else
11617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11618 $as_echo "no" >&6; }
11619 fi
11620 
11621 
11622   test -n "$TEE" && break
11623 done
11624 
11625   else
11626     # The variable is set, but is it from the command line or the environment?
11627 
11628     # Try to remove the string !TEE! from our list.
11629     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/}
11630     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11631       # If it failed, the variable was not from the command line. Ignore it,
11632       # but warn the user (except for BASH, which is always set by the calling BASH).
11633       if test "xTEE" != xBASH; then
11634         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5
11635 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;}
11636       fi
11637       # Try to locate tool using the code snippet
11638       for ac_prog in tee
11639 do
11640   # Extract the first word of "$ac_prog", so it can be a program name with args.
11641 set dummy $ac_prog; ac_word=$2
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11643 $as_echo_n "checking for $ac_word... " >&6; }
11644 if ${ac_cv_path_TEE+:} false; then :
11645   $as_echo_n "(cached) " >&6
11646 else
11647   case $TEE in
11648   [\\/]* | ?:[\\/]*)
11649   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
11650   ;;
11651   *)
11652   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11653 for as_dir in $PATH
11654 do
11655   IFS=$as_save_IFS
11656   test -z "$as_dir" && as_dir=.
11657     for ac_exec_ext in '' $ac_executable_extensions; do
11658   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11659     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
11660     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11661     break 2
11662   fi
11663 done
11664   done
11665 IFS=$as_save_IFS
11666 
11667   ;;
11668 esac
11669 fi
11670 TEE=$ac_cv_path_TEE
11671 if test -n "$TEE"; then
11672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
11673 $as_echo "$TEE" >&6; }
11674 else
11675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11676 $as_echo "no" >&6; }
11677 fi
11678 
11679 
11680   test -n "$TEE" && break
11681 done
11682 
11683     else
11684       # If it succeeded, then it was overridden by the user. We will use it
11685       # for the tool.
11686 
11687       # First remove it from the list of overridden variables, so we can test
11688       # for unknown variables in the end.
11689       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11690 
11691       # Check if we try to supply an empty value
11692       if test "x$TEE" = x; then
11693         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TEE= (no value)" >&5
11694 $as_echo "$as_me: Setting user supplied tool TEE= (no value)" >&6;}
11695         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5
11696 $as_echo_n "checking for TEE... " >&6; }
11697         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11698 $as_echo "disabled" >&6; }
11699       else
11700         # Check if the provided tool contains a complete path.
11701         tool_specified="$TEE"
11702         tool_basename="${tool_specified##*/}"
11703         if test "x$tool_basename" = "x$tool_specified"; then
11704           # A command without a complete path is provided, search $PATH.
11705           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5
11706 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;}
11707           # Extract the first word of "$tool_basename", so it can be a program name with args.
11708 set dummy $tool_basename; ac_word=$2
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11710 $as_echo_n "checking for $ac_word... " >&6; }
11711 if ${ac_cv_path_TEE+:} false; then :
11712   $as_echo_n "(cached) " >&6
11713 else
11714   case $TEE in
11715   [\\/]* | ?:[\\/]*)
11716   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
11717   ;;
11718   *)
11719   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11720 for as_dir in $PATH
11721 do
11722   IFS=$as_save_IFS
11723   test -z "$as_dir" && as_dir=.
11724     for ac_exec_ext in '' $ac_executable_extensions; do
11725   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11726     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
11727     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11728     break 2
11729   fi
11730 done
11731   done
11732 IFS=$as_save_IFS
11733 
11734   ;;
11735 esac
11736 fi
11737 TEE=$ac_cv_path_TEE
11738 if test -n "$TEE"; then
11739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
11740 $as_echo "$TEE" >&6; }
11741 else
11742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11743 $as_echo "no" >&6; }
11744 fi
11745 
11746 
11747           if test "x$TEE" = x; then
11748             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11749           fi
11750         else
11751           # Otherwise we believe it is a complete path. Use it as it is.
11752           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5
11753 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;}
11754           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5
11755 $as_echo_n "checking for TEE... " >&6; }
11756           if test ! -x "$tool_specified"; then
11757             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11758 $as_echo "not found" >&6; }
11759             as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5
11760           fi
11761           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11762 $as_echo "$tool_specified" >&6; }
11763         fi
11764       fi
11765     fi
11766 
11767   fi
11768 
11769 
11770 
11771   if test "x$TEE" = x; then
11772     as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5
11773   fi
11774 
11775 
11776 
11777 
11778 
11779   # Publish this variable in the help.
11780 
11781 
11782   if [ -z "${TOUCH+x}" ]; then
11783     # The variable is not set by user, try to locate tool using the code snippet
11784     for ac_prog in touch
11785 do
11786   # Extract the first word of "$ac_prog", so it can be a program name with args.
11787 set dummy $ac_prog; ac_word=$2
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11789 $as_echo_n "checking for $ac_word... " >&6; }
11790 if ${ac_cv_path_TOUCH+:} false; then :
11791   $as_echo_n "(cached) " >&6
11792 else
11793   case $TOUCH in
11794   [\\/]* | ?:[\\/]*)
11795   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
11796   ;;
11797   *)
11798   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11799 for as_dir in $PATH
11800 do
11801   IFS=$as_save_IFS
11802   test -z "$as_dir" && as_dir=.
11803     for ac_exec_ext in '' $ac_executable_extensions; do
11804   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11805     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
11806     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11807     break 2
11808   fi
11809 done
11810   done
11811 IFS=$as_save_IFS
11812 
11813   ;;
11814 esac
11815 fi
11816 TOUCH=$ac_cv_path_TOUCH
11817 if test -n "$TOUCH"; then
11818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
11819 $as_echo "$TOUCH" >&6; }
11820 else
11821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11822 $as_echo "no" >&6; }
11823 fi
11824 
11825 
11826   test -n "$TOUCH" && break
11827 done
11828 
11829   else
11830     # The variable is set, but is it from the command line or the environment?
11831 
11832     # Try to remove the string !TOUCH! from our list.
11833     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/}
11834     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11835       # If it failed, the variable was not from the command line. Ignore it,
11836       # but warn the user (except for BASH, which is always set by the calling BASH).
11837       if test "xTOUCH" != xBASH; then
11838         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5
11839 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;}
11840       fi
11841       # Try to locate tool using the code snippet
11842       for ac_prog in touch
11843 do
11844   # Extract the first word of "$ac_prog", so it can be a program name with args.
11845 set dummy $ac_prog; ac_word=$2
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11847 $as_echo_n "checking for $ac_word... " >&6; }
11848 if ${ac_cv_path_TOUCH+:} false; then :
11849   $as_echo_n "(cached) " >&6
11850 else
11851   case $TOUCH in
11852   [\\/]* | ?:[\\/]*)
11853   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
11854   ;;
11855   *)
11856   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11857 for as_dir in $PATH
11858 do
11859   IFS=$as_save_IFS
11860   test -z "$as_dir" && as_dir=.
11861     for ac_exec_ext in '' $ac_executable_extensions; do
11862   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11863     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
11864     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11865     break 2
11866   fi
11867 done
11868   done
11869 IFS=$as_save_IFS
11870 
11871   ;;
11872 esac
11873 fi
11874 TOUCH=$ac_cv_path_TOUCH
11875 if test -n "$TOUCH"; then
11876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
11877 $as_echo "$TOUCH" >&6; }
11878 else
11879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11880 $as_echo "no" >&6; }
11881 fi
11882 
11883 
11884   test -n "$TOUCH" && break
11885 done
11886 
11887     else
11888       # If it succeeded, then it was overridden by the user. We will use it
11889       # for the tool.
11890 
11891       # First remove it from the list of overridden variables, so we can test
11892       # for unknown variables in the end.
11893       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11894 
11895       # Check if we try to supply an empty value
11896       if test "x$TOUCH" = x; then
11897         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TOUCH= (no value)" >&5
11898 $as_echo "$as_me: Setting user supplied tool TOUCH= (no value)" >&6;}
11899         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5
11900 $as_echo_n "checking for TOUCH... " >&6; }
11901         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11902 $as_echo "disabled" >&6; }
11903       else
11904         # Check if the provided tool contains a complete path.
11905         tool_specified="$TOUCH"
11906         tool_basename="${tool_specified##*/}"
11907         if test "x$tool_basename" = "x$tool_specified"; then
11908           # A command without a complete path is provided, search $PATH.
11909           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5
11910 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;}
11911           # Extract the first word of "$tool_basename", so it can be a program name with args.
11912 set dummy $tool_basename; ac_word=$2
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11914 $as_echo_n "checking for $ac_word... " >&6; }
11915 if ${ac_cv_path_TOUCH+:} false; then :
11916   $as_echo_n "(cached) " >&6
11917 else
11918   case $TOUCH in
11919   [\\/]* | ?:[\\/]*)
11920   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
11921   ;;
11922   *)
11923   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11924 for as_dir in $PATH
11925 do
11926   IFS=$as_save_IFS
11927   test -z "$as_dir" && as_dir=.
11928     for ac_exec_ext in '' $ac_executable_extensions; do
11929   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11930     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
11931     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11932     break 2
11933   fi
11934 done
11935   done
11936 IFS=$as_save_IFS
11937 
11938   ;;
11939 esac
11940 fi
11941 TOUCH=$ac_cv_path_TOUCH
11942 if test -n "$TOUCH"; then
11943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
11944 $as_echo "$TOUCH" >&6; }
11945 else
11946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11947 $as_echo "no" >&6; }
11948 fi
11949 
11950 
11951           if test "x$TOUCH" = x; then
11952             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11953           fi
11954         else
11955           # Otherwise we believe it is a complete path. Use it as it is.
11956           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5
11957 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;}
11958           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5
11959 $as_echo_n "checking for TOUCH... " >&6; }
11960           if test ! -x "$tool_specified"; then
11961             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11962 $as_echo "not found" >&6; }
11963             as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5
11964           fi
11965           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11966 $as_echo "$tool_specified" >&6; }
11967         fi
11968       fi
11969     fi
11970 
11971   fi
11972 
11973 
11974 
11975   if test "x$TOUCH" = x; then
11976     as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5
11977   fi
11978 
11979 
11980 
11981 
11982 
11983   # Publish this variable in the help.
11984 
11985 
11986   if [ -z "${TR+x}" ]; then
11987     # The variable is not set by user, try to locate tool using the code snippet
11988     for ac_prog in tr
11989 do
11990   # Extract the first word of "$ac_prog", so it can be a program name with args.
11991 set dummy $ac_prog; ac_word=$2
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11993 $as_echo_n "checking for $ac_word... " >&6; }
11994 if ${ac_cv_path_TR+:} false; then :
11995   $as_echo_n "(cached) " >&6
11996 else
11997   case $TR in
11998   [\\/]* | ?:[\\/]*)
11999   ac_cv_path_TR="$TR" # Let the user override the test with a path.
12000   ;;
12001   *)
12002   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12003 for as_dir in $PATH
12004 do
12005   IFS=$as_save_IFS
12006   test -z "$as_dir" && as_dir=.
12007     for ac_exec_ext in '' $ac_executable_extensions; do
12008   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12009     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
12010     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12011     break 2
12012   fi
12013 done
12014   done
12015 IFS=$as_save_IFS
12016 
12017   ;;
12018 esac
12019 fi
12020 TR=$ac_cv_path_TR
12021 if test -n "$TR"; then
12022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
12023 $as_echo "$TR" >&6; }
12024 else
12025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12026 $as_echo "no" >&6; }
12027 fi
12028 
12029 
12030   test -n "$TR" && break
12031 done
12032 
12033   else
12034     # The variable is set, but is it from the command line or the environment?
12035 
12036     # Try to remove the string !TR! from our list.
12037     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/}
12038     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12039       # If it failed, the variable was not from the command line. Ignore it,
12040       # but warn the user (except for BASH, which is always set by the calling BASH).
12041       if test "xTR" != xBASH; then
12042         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5
12043 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;}
12044       fi
12045       # Try to locate tool using the code snippet
12046       for ac_prog in tr
12047 do
12048   # Extract the first word of "$ac_prog", so it can be a program name with args.
12049 set dummy $ac_prog; ac_word=$2
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12051 $as_echo_n "checking for $ac_word... " >&6; }
12052 if ${ac_cv_path_TR+:} false; then :
12053   $as_echo_n "(cached) " >&6
12054 else
12055   case $TR in
12056   [\\/]* | ?:[\\/]*)
12057   ac_cv_path_TR="$TR" # Let the user override the test with a path.
12058   ;;
12059   *)
12060   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12061 for as_dir in $PATH
12062 do
12063   IFS=$as_save_IFS
12064   test -z "$as_dir" && as_dir=.
12065     for ac_exec_ext in '' $ac_executable_extensions; do
12066   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12067     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
12068     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12069     break 2
12070   fi
12071 done
12072   done
12073 IFS=$as_save_IFS
12074 
12075   ;;
12076 esac
12077 fi
12078 TR=$ac_cv_path_TR
12079 if test -n "$TR"; then
12080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
12081 $as_echo "$TR" >&6; }
12082 else
12083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12084 $as_echo "no" >&6; }
12085 fi
12086 
12087 
12088   test -n "$TR" && break
12089 done
12090 
12091     else
12092       # If it succeeded, then it was overridden by the user. We will use it
12093       # for the tool.
12094 
12095       # First remove it from the list of overridden variables, so we can test
12096       # for unknown variables in the end.
12097       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12098 
12099       # Check if we try to supply an empty value
12100       if test "x$TR" = x; then
12101         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TR= (no value)" >&5
12102 $as_echo "$as_me: Setting user supplied tool TR= (no value)" >&6;}
12103         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5
12104 $as_echo_n "checking for TR... " >&6; }
12105         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12106 $as_echo "disabled" >&6; }
12107       else
12108         # Check if the provided tool contains a complete path.
12109         tool_specified="$TR"
12110         tool_basename="${tool_specified##*/}"
12111         if test "x$tool_basename" = "x$tool_specified"; then
12112           # A command without a complete path is provided, search $PATH.
12113           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5
12114 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;}
12115           # Extract the first word of "$tool_basename", so it can be a program name with args.
12116 set dummy $tool_basename; ac_word=$2
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12118 $as_echo_n "checking for $ac_word... " >&6; }
12119 if ${ac_cv_path_TR+:} false; then :
12120   $as_echo_n "(cached) " >&6
12121 else
12122   case $TR in
12123   [\\/]* | ?:[\\/]*)
12124   ac_cv_path_TR="$TR" # Let the user override the test with a path.
12125   ;;
12126   *)
12127   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12128 for as_dir in $PATH
12129 do
12130   IFS=$as_save_IFS
12131   test -z "$as_dir" && as_dir=.
12132     for ac_exec_ext in '' $ac_executable_extensions; do
12133   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12134     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
12135     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12136     break 2
12137   fi
12138 done
12139   done
12140 IFS=$as_save_IFS
12141 
12142   ;;
12143 esac
12144 fi
12145 TR=$ac_cv_path_TR
12146 if test -n "$TR"; then
12147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
12148 $as_echo "$TR" >&6; }
12149 else
12150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12151 $as_echo "no" >&6; }
12152 fi
12153 
12154 
12155           if test "x$TR" = x; then
12156             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12157           fi
12158         else
12159           # Otherwise we believe it is a complete path. Use it as it is.
12160           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5
12161 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;}
12162           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5
12163 $as_echo_n "checking for TR... " >&6; }
12164           if test ! -x "$tool_specified"; then
12165             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12166 $as_echo "not found" >&6; }
12167             as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5
12168           fi
12169           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12170 $as_echo "$tool_specified" >&6; }
12171         fi
12172       fi
12173     fi
12174 
12175   fi
12176 
12177 
12178 
12179   if test "x$TR" = x; then
12180     as_fn_error $? "Could not find required tool for TR" "$LINENO" 5
12181   fi
12182 
12183 
12184 
12185 
12186 
12187   # Publish this variable in the help.
12188 
12189 
12190   if [ -z "${UNAME+x}" ]; then
12191     # The variable is not set by user, try to locate tool using the code snippet
12192     for ac_prog in uname
12193 do
12194   # Extract the first word of "$ac_prog", so it can be a program name with args.
12195 set dummy $ac_prog; ac_word=$2
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12197 $as_echo_n "checking for $ac_word... " >&6; }
12198 if ${ac_cv_path_UNAME+:} false; then :
12199   $as_echo_n "(cached) " >&6
12200 else
12201   case $UNAME in
12202   [\\/]* | ?:[\\/]*)
12203   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
12204   ;;
12205   *)
12206   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12207 for as_dir in $PATH
12208 do
12209   IFS=$as_save_IFS
12210   test -z "$as_dir" && as_dir=.
12211     for ac_exec_ext in '' $ac_executable_extensions; do
12212   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12213     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
12214     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12215     break 2
12216   fi
12217 done
12218   done
12219 IFS=$as_save_IFS
12220 
12221   ;;
12222 esac
12223 fi
12224 UNAME=$ac_cv_path_UNAME
12225 if test -n "$UNAME"; then
12226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
12227 $as_echo "$UNAME" >&6; }
12228 else
12229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12230 $as_echo "no" >&6; }
12231 fi
12232 
12233 
12234   test -n "$UNAME" && break
12235 done
12236 
12237   else
12238     # The variable is set, but is it from the command line or the environment?
12239 
12240     # Try to remove the string !UNAME! from our list.
12241     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/}
12242     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12243       # If it failed, the variable was not from the command line. Ignore it,
12244       # but warn the user (except for BASH, which is always set by the calling BASH).
12245       if test "xUNAME" != xBASH; then
12246         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5
12247 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;}
12248       fi
12249       # Try to locate tool using the code snippet
12250       for ac_prog in uname
12251 do
12252   # Extract the first word of "$ac_prog", so it can be a program name with args.
12253 set dummy $ac_prog; ac_word=$2
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12255 $as_echo_n "checking for $ac_word... " >&6; }
12256 if ${ac_cv_path_UNAME+:} false; then :
12257   $as_echo_n "(cached) " >&6
12258 else
12259   case $UNAME in
12260   [\\/]* | ?:[\\/]*)
12261   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
12262   ;;
12263   *)
12264   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12265 for as_dir in $PATH
12266 do
12267   IFS=$as_save_IFS
12268   test -z "$as_dir" && as_dir=.
12269     for ac_exec_ext in '' $ac_executable_extensions; do
12270   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12271     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
12272     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12273     break 2
12274   fi
12275 done
12276   done
12277 IFS=$as_save_IFS
12278 
12279   ;;
12280 esac
12281 fi
12282 UNAME=$ac_cv_path_UNAME
12283 if test -n "$UNAME"; then
12284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
12285 $as_echo "$UNAME" >&6; }
12286 else
12287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12288 $as_echo "no" >&6; }
12289 fi
12290 
12291 
12292   test -n "$UNAME" && break
12293 done
12294 
12295     else
12296       # If it succeeded, then it was overridden by the user. We will use it
12297       # for the tool.
12298 
12299       # First remove it from the list of overridden variables, so we can test
12300       # for unknown variables in the end.
12301       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12302 
12303       # Check if we try to supply an empty value
12304       if test "x$UNAME" = x; then
12305         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNAME= (no value)" >&5
12306 $as_echo "$as_me: Setting user supplied tool UNAME= (no value)" >&6;}
12307         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5
12308 $as_echo_n "checking for UNAME... " >&6; }
12309         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12310 $as_echo "disabled" >&6; }
12311       else
12312         # Check if the provided tool contains a complete path.
12313         tool_specified="$UNAME"
12314         tool_basename="${tool_specified##*/}"
12315         if test "x$tool_basename" = "x$tool_specified"; then
12316           # A command without a complete path is provided, search $PATH.
12317           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5
12318 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;}
12319           # Extract the first word of "$tool_basename", so it can be a program name with args.
12320 set dummy $tool_basename; ac_word=$2
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12322 $as_echo_n "checking for $ac_word... " >&6; }
12323 if ${ac_cv_path_UNAME+:} false; then :
12324   $as_echo_n "(cached) " >&6
12325 else
12326   case $UNAME in
12327   [\\/]* | ?:[\\/]*)
12328   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
12329   ;;
12330   *)
12331   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12332 for as_dir in $PATH
12333 do
12334   IFS=$as_save_IFS
12335   test -z "$as_dir" && as_dir=.
12336     for ac_exec_ext in '' $ac_executable_extensions; do
12337   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12338     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
12339     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12340     break 2
12341   fi
12342 done
12343   done
12344 IFS=$as_save_IFS
12345 
12346   ;;
12347 esac
12348 fi
12349 UNAME=$ac_cv_path_UNAME
12350 if test -n "$UNAME"; then
12351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
12352 $as_echo "$UNAME" >&6; }
12353 else
12354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12355 $as_echo "no" >&6; }
12356 fi
12357 
12358 
12359           if test "x$UNAME" = x; then
12360             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12361           fi
12362         else
12363           # Otherwise we believe it is a complete path. Use it as it is.
12364           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5
12365 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;}
12366           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5
12367 $as_echo_n "checking for UNAME... " >&6; }
12368           if test ! -x "$tool_specified"; then
12369             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12370 $as_echo "not found" >&6; }
12371             as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
12372           fi
12373           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12374 $as_echo "$tool_specified" >&6; }
12375         fi
12376       fi
12377     fi
12378 
12379   fi
12380 
12381 
12382 
12383   if test "x$UNAME" = x; then
12384     as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5
12385   fi
12386 
12387 
12388 
12389 
12390 
12391   # Publish this variable in the help.
12392 
12393 
12394   if [ -z "${UNIQ+x}" ]; then
12395     # The variable is not set by user, try to locate tool using the code snippet
12396     for ac_prog in uniq
12397 do
12398   # Extract the first word of "$ac_prog", so it can be a program name with args.
12399 set dummy $ac_prog; ac_word=$2
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12401 $as_echo_n "checking for $ac_word... " >&6; }
12402 if ${ac_cv_path_UNIQ+:} false; then :
12403   $as_echo_n "(cached) " >&6
12404 else
12405   case $UNIQ in
12406   [\\/]* | ?:[\\/]*)
12407   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
12408   ;;
12409   *)
12410   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12411 for as_dir in $PATH
12412 do
12413   IFS=$as_save_IFS
12414   test -z "$as_dir" && as_dir=.
12415     for ac_exec_ext in '' $ac_executable_extensions; do
12416   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12417     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
12418     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12419     break 2
12420   fi
12421 done
12422   done
12423 IFS=$as_save_IFS
12424 
12425   ;;
12426 esac
12427 fi
12428 UNIQ=$ac_cv_path_UNIQ
12429 if test -n "$UNIQ"; then
12430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
12431 $as_echo "$UNIQ" >&6; }
12432 else
12433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12434 $as_echo "no" >&6; }
12435 fi
12436 
12437 
12438   test -n "$UNIQ" && break
12439 done
12440 
12441   else
12442     # The variable is set, but is it from the command line or the environment?
12443 
12444     # Try to remove the string !UNIQ! from our list.
12445     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/}
12446     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12447       # If it failed, the variable was not from the command line. Ignore it,
12448       # but warn the user (except for BASH, which is always set by the calling BASH).
12449       if test "xUNIQ" != xBASH; then
12450         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5
12451 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;}
12452       fi
12453       # Try to locate tool using the code snippet
12454       for ac_prog in uniq
12455 do
12456   # Extract the first word of "$ac_prog", so it can be a program name with args.
12457 set dummy $ac_prog; ac_word=$2
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12459 $as_echo_n "checking for $ac_word... " >&6; }
12460 if ${ac_cv_path_UNIQ+:} false; then :
12461   $as_echo_n "(cached) " >&6
12462 else
12463   case $UNIQ in
12464   [\\/]* | ?:[\\/]*)
12465   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
12466   ;;
12467   *)
12468   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12469 for as_dir in $PATH
12470 do
12471   IFS=$as_save_IFS
12472   test -z "$as_dir" && as_dir=.
12473     for ac_exec_ext in '' $ac_executable_extensions; do
12474   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12475     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
12476     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12477     break 2
12478   fi
12479 done
12480   done
12481 IFS=$as_save_IFS
12482 
12483   ;;
12484 esac
12485 fi
12486 UNIQ=$ac_cv_path_UNIQ
12487 if test -n "$UNIQ"; then
12488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
12489 $as_echo "$UNIQ" >&6; }
12490 else
12491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12492 $as_echo "no" >&6; }
12493 fi
12494 
12495 
12496   test -n "$UNIQ" && break
12497 done
12498 
12499     else
12500       # If it succeeded, then it was overridden by the user. We will use it
12501       # for the tool.
12502 
12503       # First remove it from the list of overridden variables, so we can test
12504       # for unknown variables in the end.
12505       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12506 
12507       # Check if we try to supply an empty value
12508       if test "x$UNIQ" = x; then
12509         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNIQ= (no value)" >&5
12510 $as_echo "$as_me: Setting user supplied tool UNIQ= (no value)" >&6;}
12511         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5
12512 $as_echo_n "checking for UNIQ... " >&6; }
12513         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12514 $as_echo "disabled" >&6; }
12515       else
12516         # Check if the provided tool contains a complete path.
12517         tool_specified="$UNIQ"
12518         tool_basename="${tool_specified##*/}"
12519         if test "x$tool_basename" = "x$tool_specified"; then
12520           # A command without a complete path is provided, search $PATH.
12521           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5
12522 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;}
12523           # Extract the first word of "$tool_basename", so it can be a program name with args.
12524 set dummy $tool_basename; ac_word=$2
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12526 $as_echo_n "checking for $ac_word... " >&6; }
12527 if ${ac_cv_path_UNIQ+:} false; then :
12528   $as_echo_n "(cached) " >&6
12529 else
12530   case $UNIQ in
12531   [\\/]* | ?:[\\/]*)
12532   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
12533   ;;
12534   *)
12535   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12536 for as_dir in $PATH
12537 do
12538   IFS=$as_save_IFS
12539   test -z "$as_dir" && as_dir=.
12540     for ac_exec_ext in '' $ac_executable_extensions; do
12541   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12542     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
12543     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12544     break 2
12545   fi
12546 done
12547   done
12548 IFS=$as_save_IFS
12549 
12550   ;;
12551 esac
12552 fi
12553 UNIQ=$ac_cv_path_UNIQ
12554 if test -n "$UNIQ"; then
12555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
12556 $as_echo "$UNIQ" >&6; }
12557 else
12558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12559 $as_echo "no" >&6; }
12560 fi
12561 
12562 
12563           if test "x$UNIQ" = x; then
12564             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12565           fi
12566         else
12567           # Otherwise we believe it is a complete path. Use it as it is.
12568           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5
12569 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;}
12570           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5
12571 $as_echo_n "checking for UNIQ... " >&6; }
12572           if test ! -x "$tool_specified"; then
12573             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12574 $as_echo "not found" >&6; }
12575             as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5
12576           fi
12577           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12578 $as_echo "$tool_specified" >&6; }
12579         fi
12580       fi
12581     fi
12582 
12583   fi
12584 
12585 
12586 
12587   if test "x$UNIQ" = x; then
12588     as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5
12589   fi
12590 
12591 
12592 
12593 
12594 
12595   # Publish this variable in the help.
12596 
12597 
12598   if [ -z "${WC+x}" ]; then
12599     # The variable is not set by user, try to locate tool using the code snippet
12600     for ac_prog in wc
12601 do
12602   # Extract the first word of "$ac_prog", so it can be a program name with args.
12603 set dummy $ac_prog; ac_word=$2
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12605 $as_echo_n "checking for $ac_word... " >&6; }
12606 if ${ac_cv_path_WC+:} false; then :
12607   $as_echo_n "(cached) " >&6
12608 else
12609   case $WC in
12610   [\\/]* | ?:[\\/]*)
12611   ac_cv_path_WC="$WC" # Let the user override the test with a path.
12612   ;;
12613   *)
12614   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12615 for as_dir in $PATH
12616 do
12617   IFS=$as_save_IFS
12618   test -z "$as_dir" && as_dir=.
12619     for ac_exec_ext in '' $ac_executable_extensions; do
12620   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12621     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
12622     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12623     break 2
12624   fi
12625 done
12626   done
12627 IFS=$as_save_IFS
12628 
12629   ;;
12630 esac
12631 fi
12632 WC=$ac_cv_path_WC
12633 if test -n "$WC"; then
12634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
12635 $as_echo "$WC" >&6; }
12636 else
12637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12638 $as_echo "no" >&6; }
12639 fi
12640 
12641 
12642   test -n "$WC" && break
12643 done
12644 
12645   else
12646     # The variable is set, but is it from the command line or the environment?
12647 
12648     # Try to remove the string !WC! from our list.
12649     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/}
12650     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12651       # If it failed, the variable was not from the command line. Ignore it,
12652       # but warn the user (except for BASH, which is always set by the calling BASH).
12653       if test "xWC" != xBASH; then
12654         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5
12655 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;}
12656       fi
12657       # Try to locate tool using the code snippet
12658       for ac_prog in wc
12659 do
12660   # Extract the first word of "$ac_prog", so it can be a program name with args.
12661 set dummy $ac_prog; ac_word=$2
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12663 $as_echo_n "checking for $ac_word... " >&6; }
12664 if ${ac_cv_path_WC+:} false; then :
12665   $as_echo_n "(cached) " >&6
12666 else
12667   case $WC in
12668   [\\/]* | ?:[\\/]*)
12669   ac_cv_path_WC="$WC" # Let the user override the test with a path.
12670   ;;
12671   *)
12672   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12673 for as_dir in $PATH
12674 do
12675   IFS=$as_save_IFS
12676   test -z "$as_dir" && as_dir=.
12677     for ac_exec_ext in '' $ac_executable_extensions; do
12678   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12679     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
12680     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12681     break 2
12682   fi
12683 done
12684   done
12685 IFS=$as_save_IFS
12686 
12687   ;;
12688 esac
12689 fi
12690 WC=$ac_cv_path_WC
12691 if test -n "$WC"; then
12692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
12693 $as_echo "$WC" >&6; }
12694 else
12695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12696 $as_echo "no" >&6; }
12697 fi
12698 
12699 
12700   test -n "$WC" && break
12701 done
12702 
12703     else
12704       # If it succeeded, then it was overridden by the user. We will use it
12705       # for the tool.
12706 
12707       # First remove it from the list of overridden variables, so we can test
12708       # for unknown variables in the end.
12709       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12710 
12711       # Check if we try to supply an empty value
12712       if test "x$WC" = x; then
12713         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool WC= (no value)" >&5
12714 $as_echo "$as_me: Setting user supplied tool WC= (no value)" >&6;}
12715         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5
12716 $as_echo_n "checking for WC... " >&6; }
12717         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12718 $as_echo "disabled" >&6; }
12719       else
12720         # Check if the provided tool contains a complete path.
12721         tool_specified="$WC"
12722         tool_basename="${tool_specified##*/}"
12723         if test "x$tool_basename" = "x$tool_specified"; then
12724           # A command without a complete path is provided, search $PATH.
12725           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5
12726 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;}
12727           # Extract the first word of "$tool_basename", so it can be a program name with args.
12728 set dummy $tool_basename; ac_word=$2
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12730 $as_echo_n "checking for $ac_word... " >&6; }
12731 if ${ac_cv_path_WC+:} false; then :
12732   $as_echo_n "(cached) " >&6
12733 else
12734   case $WC in
12735   [\\/]* | ?:[\\/]*)
12736   ac_cv_path_WC="$WC" # Let the user override the test with a path.
12737   ;;
12738   *)
12739   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12740 for as_dir in $PATH
12741 do
12742   IFS=$as_save_IFS
12743   test -z "$as_dir" && as_dir=.
12744     for ac_exec_ext in '' $ac_executable_extensions; do
12745   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12746     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
12747     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12748     break 2
12749   fi
12750 done
12751   done
12752 IFS=$as_save_IFS
12753 
12754   ;;
12755 esac
12756 fi
12757 WC=$ac_cv_path_WC
12758 if test -n "$WC"; then
12759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
12760 $as_echo "$WC" >&6; }
12761 else
12762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12763 $as_echo "no" >&6; }
12764 fi
12765 
12766 
12767           if test "x$WC" = x; then
12768             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12769           fi
12770         else
12771           # Otherwise we believe it is a complete path. Use it as it is.
12772           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5
12773 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;}
12774           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5
12775 $as_echo_n "checking for WC... " >&6; }
12776           if test ! -x "$tool_specified"; then
12777             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12778 $as_echo "not found" >&6; }
12779             as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5
12780           fi
12781           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12782 $as_echo "$tool_specified" >&6; }
12783         fi
12784       fi
12785     fi
12786 
12787   fi
12788 
12789 
12790 
12791   if test "x$WC" = x; then
12792     as_fn_error $? "Could not find required tool for WC" "$LINENO" 5
12793   fi
12794 
12795 
12796 
12797 
12798 
12799   # Publish this variable in the help.
12800 
12801 
12802   if [ -z "${WHICH+x}" ]; then
12803     # The variable is not set by user, try to locate tool using the code snippet
12804     for ac_prog in which
12805 do
12806   # Extract the first word of "$ac_prog", so it can be a program name with args.
12807 set dummy $ac_prog; ac_word=$2
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12809 $as_echo_n "checking for $ac_word... " >&6; }
12810 if ${ac_cv_path_WHICH+:} false; then :
12811   $as_echo_n "(cached) " >&6
12812 else
12813   case $WHICH in
12814   [\\/]* | ?:[\\/]*)
12815   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
12816   ;;
12817   *)
12818   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12819 for as_dir in $PATH
12820 do
12821   IFS=$as_save_IFS
12822   test -z "$as_dir" && as_dir=.
12823     for ac_exec_ext in '' $ac_executable_extensions; do
12824   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12825     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
12826     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12827     break 2
12828   fi
12829 done
12830   done
12831 IFS=$as_save_IFS
12832 
12833   ;;
12834 esac
12835 fi
12836 WHICH=$ac_cv_path_WHICH
12837 if test -n "$WHICH"; then
12838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
12839 $as_echo "$WHICH" >&6; }
12840 else
12841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12842 $as_echo "no" >&6; }
12843 fi
12844 
12845 
12846   test -n "$WHICH" && break
12847 done
12848 
12849   else
12850     # The variable is set, but is it from the command line or the environment?
12851 
12852     # Try to remove the string !WHICH! from our list.
12853     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/}
12854     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12855       # If it failed, the variable was not from the command line. Ignore it,
12856       # but warn the user (except for BASH, which is always set by the calling BASH).
12857       if test "xWHICH" != xBASH; then
12858         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5
12859 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;}
12860       fi
12861       # Try to locate tool using the code snippet
12862       for ac_prog in which
12863 do
12864   # Extract the first word of "$ac_prog", so it can be a program name with args.
12865 set dummy $ac_prog; ac_word=$2
12866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12867 $as_echo_n "checking for $ac_word... " >&6; }
12868 if ${ac_cv_path_WHICH+:} false; then :
12869   $as_echo_n "(cached) " >&6
12870 else
12871   case $WHICH in
12872   [\\/]* | ?:[\\/]*)
12873   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
12874   ;;
12875   *)
12876   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12877 for as_dir in $PATH
12878 do
12879   IFS=$as_save_IFS
12880   test -z "$as_dir" && as_dir=.
12881     for ac_exec_ext in '' $ac_executable_extensions; do
12882   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12883     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
12884     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12885     break 2
12886   fi
12887 done
12888   done
12889 IFS=$as_save_IFS
12890 
12891   ;;
12892 esac
12893 fi
12894 WHICH=$ac_cv_path_WHICH
12895 if test -n "$WHICH"; then
12896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
12897 $as_echo "$WHICH" >&6; }
12898 else
12899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12900 $as_echo "no" >&6; }
12901 fi
12902 
12903 
12904   test -n "$WHICH" && break
12905 done
12906 
12907     else
12908       # If it succeeded, then it was overridden by the user. We will use it
12909       # for the tool.
12910 
12911       # First remove it from the list of overridden variables, so we can test
12912       # for unknown variables in the end.
12913       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12914 
12915       # Check if we try to supply an empty value
12916       if test "x$WHICH" = x; then
12917         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool WHICH= (no value)" >&5
12918 $as_echo "$as_me: Setting user supplied tool WHICH= (no value)" >&6;}
12919         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5
12920 $as_echo_n "checking for WHICH... " >&6; }
12921         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12922 $as_echo "disabled" >&6; }
12923       else
12924         # Check if the provided tool contains a complete path.
12925         tool_specified="$WHICH"
12926         tool_basename="${tool_specified##*/}"
12927         if test "x$tool_basename" = "x$tool_specified"; then
12928           # A command without a complete path is provided, search $PATH.
12929           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5
12930 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;}
12931           # Extract the first word of "$tool_basename", so it can be a program name with args.
12932 set dummy $tool_basename; ac_word=$2
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12934 $as_echo_n "checking for $ac_word... " >&6; }
12935 if ${ac_cv_path_WHICH+:} false; then :
12936   $as_echo_n "(cached) " >&6
12937 else
12938   case $WHICH in
12939   [\\/]* | ?:[\\/]*)
12940   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
12941   ;;
12942   *)
12943   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12944 for as_dir in $PATH
12945 do
12946   IFS=$as_save_IFS
12947   test -z "$as_dir" && as_dir=.
12948     for ac_exec_ext in '' $ac_executable_extensions; do
12949   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12950     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
12951     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12952     break 2
12953   fi
12954 done
12955   done
12956 IFS=$as_save_IFS
12957 
12958   ;;
12959 esac
12960 fi
12961 WHICH=$ac_cv_path_WHICH
12962 if test -n "$WHICH"; then
12963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
12964 $as_echo "$WHICH" >&6; }
12965 else
12966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12967 $as_echo "no" >&6; }
12968 fi
12969 
12970 
12971           if test "x$WHICH" = x; then
12972             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12973           fi
12974         else
12975           # Otherwise we believe it is a complete path. Use it as it is.
12976           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5
12977 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;}
12978           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5
12979 $as_echo_n "checking for WHICH... " >&6; }
12980           if test ! -x "$tool_specified"; then
12981             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12982 $as_echo "not found" >&6; }
12983             as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5
12984           fi
12985           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12986 $as_echo "$tool_specified" >&6; }
12987         fi
12988       fi
12989     fi
12990 
12991   fi
12992 
12993 
12994 
12995   if test "x$WHICH" = x; then
12996     as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5
12997   fi
12998 
12999 
13000 
13001 
13002 
13003   # Publish this variable in the help.
13004 
13005 
13006   if [ -z "${XARGS+x}" ]; then
13007     # The variable is not set by user, try to locate tool using the code snippet
13008     for ac_prog in xargs
13009 do
13010   # Extract the first word of "$ac_prog", so it can be a program name with args.
13011 set dummy $ac_prog; ac_word=$2
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13013 $as_echo_n "checking for $ac_word... " >&6; }
13014 if ${ac_cv_path_XARGS+:} false; then :
13015   $as_echo_n "(cached) " >&6
13016 else
13017   case $XARGS in
13018   [\\/]* | ?:[\\/]*)
13019   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
13020   ;;
13021   *)
13022   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13023 for as_dir in $PATH
13024 do
13025   IFS=$as_save_IFS
13026   test -z "$as_dir" && as_dir=.
13027     for ac_exec_ext in '' $ac_executable_extensions; do
13028   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13029     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
13030     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13031     break 2
13032   fi
13033 done
13034   done
13035 IFS=$as_save_IFS
13036 
13037   ;;
13038 esac
13039 fi
13040 XARGS=$ac_cv_path_XARGS
13041 if test -n "$XARGS"; then
13042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
13043 $as_echo "$XARGS" >&6; }
13044 else
13045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13046 $as_echo "no" >&6; }
13047 fi
13048 
13049 
13050   test -n "$XARGS" && break
13051 done
13052 
13053   else
13054     # The variable is set, but is it from the command line or the environment?
13055 
13056     # Try to remove the string !XARGS! from our list.
13057     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/}
13058     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13059       # If it failed, the variable was not from the command line. Ignore it,
13060       # but warn the user (except for BASH, which is always set by the calling BASH).
13061       if test "xXARGS" != xBASH; then
13062         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5
13063 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;}
13064       fi
13065       # Try to locate tool using the code snippet
13066       for ac_prog in xargs
13067 do
13068   # Extract the first word of "$ac_prog", so it can be a program name with args.
13069 set dummy $ac_prog; ac_word=$2
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13071 $as_echo_n "checking for $ac_word... " >&6; }
13072 if ${ac_cv_path_XARGS+:} false; then :
13073   $as_echo_n "(cached) " >&6
13074 else
13075   case $XARGS in
13076   [\\/]* | ?:[\\/]*)
13077   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
13078   ;;
13079   *)
13080   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13081 for as_dir in $PATH
13082 do
13083   IFS=$as_save_IFS
13084   test -z "$as_dir" && as_dir=.
13085     for ac_exec_ext in '' $ac_executable_extensions; do
13086   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13087     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
13088     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13089     break 2
13090   fi
13091 done
13092   done
13093 IFS=$as_save_IFS
13094 
13095   ;;
13096 esac
13097 fi
13098 XARGS=$ac_cv_path_XARGS
13099 if test -n "$XARGS"; then
13100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
13101 $as_echo "$XARGS" >&6; }
13102 else
13103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13104 $as_echo "no" >&6; }
13105 fi
13106 
13107 
13108   test -n "$XARGS" && break
13109 done
13110 
13111     else
13112       # If it succeeded, then it was overridden by the user. We will use it
13113       # for the tool.
13114 
13115       # First remove it from the list of overridden variables, so we can test
13116       # for unknown variables in the end.
13117       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13118 
13119       # Check if we try to supply an empty value
13120       if test "x$XARGS" = x; then
13121         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool XARGS= (no value)" >&5
13122 $as_echo "$as_me: Setting user supplied tool XARGS= (no value)" >&6;}
13123         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5
13124 $as_echo_n "checking for XARGS... " >&6; }
13125         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13126 $as_echo "disabled" >&6; }
13127       else
13128         # Check if the provided tool contains a complete path.
13129         tool_specified="$XARGS"
13130         tool_basename="${tool_specified##*/}"
13131         if test "x$tool_basename" = "x$tool_specified"; then
13132           # A command without a complete path is provided, search $PATH.
13133           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5
13134 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;}
13135           # Extract the first word of "$tool_basename", so it can be a program name with args.
13136 set dummy $tool_basename; ac_word=$2
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13138 $as_echo_n "checking for $ac_word... " >&6; }
13139 if ${ac_cv_path_XARGS+:} false; then :
13140   $as_echo_n "(cached) " >&6
13141 else
13142   case $XARGS in
13143   [\\/]* | ?:[\\/]*)
13144   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
13145   ;;
13146   *)
13147   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13148 for as_dir in $PATH
13149 do
13150   IFS=$as_save_IFS
13151   test -z "$as_dir" && as_dir=.
13152     for ac_exec_ext in '' $ac_executable_extensions; do
13153   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13154     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
13155     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13156     break 2
13157   fi
13158 done
13159   done
13160 IFS=$as_save_IFS
13161 
13162   ;;
13163 esac
13164 fi
13165 XARGS=$ac_cv_path_XARGS
13166 if test -n "$XARGS"; then
13167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
13168 $as_echo "$XARGS" >&6; }
13169 else
13170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13171 $as_echo "no" >&6; }
13172 fi
13173 
13174 
13175           if test "x$XARGS" = x; then
13176             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13177           fi
13178         else
13179           # Otherwise we believe it is a complete path. Use it as it is.
13180           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5
13181 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;}
13182           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5
13183 $as_echo_n "checking for XARGS... " >&6; }
13184           if test ! -x "$tool_specified"; then
13185             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13186 $as_echo "not found" >&6; }
13187             as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5
13188           fi
13189           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13190 $as_echo "$tool_specified" >&6; }
13191         fi
13192       fi
13193     fi
13194 
13195   fi
13196 
13197 
13198 
13199   if test "x$XARGS" = x; then
13200     as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5
13201   fi
13202 
13203 
13204 
13205   # Then required tools that require some special treatment.
13206 
13207 
13208   # Publish this variable in the help.
13209 
13210 
13211   if [ -z "${AWK+x}" ]; then
13212     # The variable is not set by user, try to locate tool using the code snippet
13213     for ac_prog in gawk mawk nawk awk
13214 do
13215   # Extract the first word of "$ac_prog", so it can be a program name with args.
13216 set dummy $ac_prog; ac_word=$2
13217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13218 $as_echo_n "checking for $ac_word... " >&6; }
13219 if ${ac_cv_prog_AWK+:} false; then :
13220   $as_echo_n "(cached) " >&6
13221 else
13222   if test -n "$AWK"; then
13223   ac_cv_prog_AWK="$AWK" # Let the user override the test.
13224 else
13225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13226 for as_dir in $PATH
13227 do
13228   IFS=$as_save_IFS
13229   test -z "$as_dir" && as_dir=.
13230     for ac_exec_ext in '' $ac_executable_extensions; do
13231   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13232     ac_cv_prog_AWK="$ac_prog"
13233     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13234     break 2
13235   fi
13236 done
13237   done
13238 IFS=$as_save_IFS
13239 
13240 fi
13241 fi
13242 AWK=$ac_cv_prog_AWK
13243 if test -n "$AWK"; then
13244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13245 $as_echo "$AWK" >&6; }
13246 else
13247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13248 $as_echo "no" >&6; }
13249 fi
13250 
13251 
13252   test -n "$AWK" && break
13253 done
13254 
13255   else
13256     # The variable is set, but is it from the command line or the environment?
13257 
13258     # Try to remove the string !AWK! from our list.
13259     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/}
13260     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13261       # If it failed, the variable was not from the command line. Ignore it,
13262       # but warn the user (except for BASH, which is always set by the calling BASH).
13263       if test "xAWK" != xBASH; then
13264         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5
13265 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;}
13266       fi
13267       # Try to locate tool using the code snippet
13268       for ac_prog in gawk mawk nawk awk
13269 do
13270   # Extract the first word of "$ac_prog", so it can be a program name with args.
13271 set dummy $ac_prog; ac_word=$2
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13273 $as_echo_n "checking for $ac_word... " >&6; }
13274 if ${ac_cv_prog_AWK+:} false; then :
13275   $as_echo_n "(cached) " >&6
13276 else
13277   if test -n "$AWK"; then
13278   ac_cv_prog_AWK="$AWK" # Let the user override the test.
13279 else
13280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13281 for as_dir in $PATH
13282 do
13283   IFS=$as_save_IFS
13284   test -z "$as_dir" && as_dir=.
13285     for ac_exec_ext in '' $ac_executable_extensions; do
13286   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13287     ac_cv_prog_AWK="$ac_prog"
13288     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13289     break 2
13290   fi
13291 done
13292   done
13293 IFS=$as_save_IFS
13294 
13295 fi
13296 fi
13297 AWK=$ac_cv_prog_AWK
13298 if test -n "$AWK"; then
13299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13300 $as_echo "$AWK" >&6; }
13301 else
13302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13303 $as_echo "no" >&6; }
13304 fi
13305 
13306 
13307   test -n "$AWK" && break
13308 done
13309 
13310     else
13311       # If it succeeded, then it was overridden by the user. We will use it
13312       # for the tool.
13313 
13314       # First remove it from the list of overridden variables, so we can test
13315       # for unknown variables in the end.
13316       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13317 
13318       # Check if we try to supply an empty value
13319       if test "x$AWK" = x; then
13320         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AWK= (no value)" >&5
13321 $as_echo "$as_me: Setting user supplied tool AWK= (no value)" >&6;}
13322         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5
13323 $as_echo_n "checking for AWK... " >&6; }
13324         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13325 $as_echo "disabled" >&6; }
13326       else
13327         # Check if the provided tool contains a complete path.
13328         tool_specified="$AWK"
13329         tool_basename="${tool_specified##*/}"
13330         if test "x$tool_basename" = "x$tool_specified"; then
13331           # A command without a complete path is provided, search $PATH.
13332           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5
13333 $as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;}
13334           # Extract the first word of "$tool_basename", so it can be a program name with args.
13335 set dummy $tool_basename; ac_word=$2
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13337 $as_echo_n "checking for $ac_word... " >&6; }
13338 if ${ac_cv_path_AWK+:} false; then :
13339   $as_echo_n "(cached) " >&6
13340 else
13341   case $AWK in
13342   [\\/]* | ?:[\\/]*)
13343   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
13344   ;;
13345   *)
13346   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13347 for as_dir in $PATH
13348 do
13349   IFS=$as_save_IFS
13350   test -z "$as_dir" && as_dir=.
13351     for ac_exec_ext in '' $ac_executable_extensions; do
13352   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13353     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
13354     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13355     break 2
13356   fi
13357 done
13358   done
13359 IFS=$as_save_IFS
13360 
13361   ;;
13362 esac
13363 fi
13364 AWK=$ac_cv_path_AWK
13365 if test -n "$AWK"; then
13366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13367 $as_echo "$AWK" >&6; }
13368 else
13369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13370 $as_echo "no" >&6; }
13371 fi
13372 
13373 
13374           if test "x$AWK" = x; then
13375             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13376           fi
13377         else
13378           # Otherwise we believe it is a complete path. Use it as it is.
13379           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5
13380 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;}
13381           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5
13382 $as_echo_n "checking for AWK... " >&6; }
13383           if test ! -x "$tool_specified"; then
13384             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13385 $as_echo "not found" >&6; }
13386             as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5
13387           fi
13388           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13389 $as_echo "$tool_specified" >&6; }
13390         fi
13391       fi
13392     fi
13393 
13394   fi
13395 
13396 
13397   if test "x$AWK" = x; then
13398     as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5
13399   fi
13400 
13401 
13402 
13403 
13404   # Publish this variable in the help.
13405 
13406 
13407   if [ -z "${GREP+x}" ]; then
13408     # The variable is not set by user, try to locate tool using the code snippet
13409     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
13410 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
13411 if ${ac_cv_path_GREP+:} false; then :
13412   $as_echo_n "(cached) " >&6
13413 else
13414   if test -z "$GREP"; then
13415   ac_path_GREP_found=false
13416   # Loop through the user's path and test for each of PROGNAME-LIST
13417   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13418 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13419 do
13420   IFS=$as_save_IFS
13421   test -z "$as_dir" && as_dir=.
13422     for ac_prog in grep ggrep; do
13423     for ac_exec_ext in '' $ac_executable_extensions; do
13424       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
13425       as_fn_executable_p "$ac_path_GREP" || continue
13426 # Check for GNU ac_path_GREP and select it if it is found.
13427   # Check for GNU $ac_path_GREP
13428 case `"$ac_path_GREP" --version 2>&1` in
13429 *GNU*)
13430   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
13431 *)
13432   ac_count=0
13433   $as_echo_n 0123456789 >"conftest.in"
13434   while :
13435   do
13436     cat "conftest.in" "conftest.in" >"conftest.tmp"
13437     mv "conftest.tmp" "conftest.in"
13438     cp "conftest.in" "conftest.nl"
13439     $as_echo 'GREP' >> "conftest.nl"
13440     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13441     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13442     as_fn_arith $ac_count + 1 && ac_count=$as_val
13443     if test $ac_count -gt ${ac_path_GREP_max-0}; then
13444       # Best one so far, save it but keep looking for a better one
13445       ac_cv_path_GREP="$ac_path_GREP"
13446       ac_path_GREP_max=$ac_count
13447     fi
13448     # 10*(2^10) chars as input seems more than enough
13449     test $ac_count -gt 10 && break
13450   done
13451   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13452 esac
13453 
13454       $ac_path_GREP_found && break 3
13455     done
13456   done
13457   done
13458 IFS=$as_save_IFS
13459   if test -z "$ac_cv_path_GREP"; then
13460     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13461   fi
13462 else
13463   ac_cv_path_GREP=$GREP
13464 fi
13465 
13466 fi
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
13468 $as_echo "$ac_cv_path_GREP" >&6; }
13469  GREP="$ac_cv_path_GREP"
13470 
13471 
13472   else
13473     # The variable is set, but is it from the command line or the environment?
13474 
13475     # Try to remove the string !GREP! from our list.
13476     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/}
13477     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13478       # If it failed, the variable was not from the command line. Ignore it,
13479       # but warn the user (except for BASH, which is always set by the calling BASH).
13480       if test "xGREP" != xBASH; then
13481         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5
13482 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;}
13483       fi
13484       # Try to locate tool using the code snippet
13485       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
13486 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
13487 if ${ac_cv_path_GREP+:} false; then :
13488   $as_echo_n "(cached) " >&6
13489 else
13490   if test -z "$GREP"; then
13491   ac_path_GREP_found=false
13492   # Loop through the user's path and test for each of PROGNAME-LIST
13493   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13494 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13495 do
13496   IFS=$as_save_IFS
13497   test -z "$as_dir" && as_dir=.
13498     for ac_prog in grep ggrep; do
13499     for ac_exec_ext in '' $ac_executable_extensions; do
13500       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
13501       as_fn_executable_p "$ac_path_GREP" || continue
13502 # Check for GNU ac_path_GREP and select it if it is found.
13503   # Check for GNU $ac_path_GREP
13504 case `"$ac_path_GREP" --version 2>&1` in
13505 *GNU*)
13506   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
13507 *)
13508   ac_count=0
13509   $as_echo_n 0123456789 >"conftest.in"
13510   while :
13511   do
13512     cat "conftest.in" "conftest.in" >"conftest.tmp"
13513     mv "conftest.tmp" "conftest.in"
13514     cp "conftest.in" "conftest.nl"
13515     $as_echo 'GREP' >> "conftest.nl"
13516     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13517     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13518     as_fn_arith $ac_count + 1 && ac_count=$as_val
13519     if test $ac_count -gt ${ac_path_GREP_max-0}; then
13520       # Best one so far, save it but keep looking for a better one
13521       ac_cv_path_GREP="$ac_path_GREP"
13522       ac_path_GREP_max=$ac_count
13523     fi
13524     # 10*(2^10) chars as input seems more than enough
13525     test $ac_count -gt 10 && break
13526   done
13527   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13528 esac
13529 
13530       $ac_path_GREP_found && break 3
13531     done
13532   done
13533   done
13534 IFS=$as_save_IFS
13535   if test -z "$ac_cv_path_GREP"; then
13536     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13537   fi
13538 else
13539   ac_cv_path_GREP=$GREP
13540 fi
13541 
13542 fi
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
13544 $as_echo "$ac_cv_path_GREP" >&6; }
13545  GREP="$ac_cv_path_GREP"
13546 
13547 
13548     else
13549       # If it succeeded, then it was overridden by the user. We will use it
13550       # for the tool.
13551 
13552       # First remove it from the list of overridden variables, so we can test
13553       # for unknown variables in the end.
13554       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13555 
13556       # Check if we try to supply an empty value
13557       if test "x$GREP" = x; then
13558         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GREP= (no value)" >&5
13559 $as_echo "$as_me: Setting user supplied tool GREP= (no value)" >&6;}
13560         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5
13561 $as_echo_n "checking for GREP... " >&6; }
13562         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13563 $as_echo "disabled" >&6; }
13564       else
13565         # Check if the provided tool contains a complete path.
13566         tool_specified="$GREP"
13567         tool_basename="${tool_specified##*/}"
13568         if test "x$tool_basename" = "x$tool_specified"; then
13569           # A command without a complete path is provided, search $PATH.
13570           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5
13571 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;}
13572           # Extract the first word of "$tool_basename", so it can be a program name with args.
13573 set dummy $tool_basename; ac_word=$2
13574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13575 $as_echo_n "checking for $ac_word... " >&6; }
13576 if ${ac_cv_path_GREP+:} false; then :
13577   $as_echo_n "(cached) " >&6
13578 else
13579   case $GREP in
13580   [\\/]* | ?:[\\/]*)
13581   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
13582   ;;
13583   *)
13584   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13585 for as_dir in $PATH
13586 do
13587   IFS=$as_save_IFS
13588   test -z "$as_dir" && as_dir=.
13589     for ac_exec_ext in '' $ac_executable_extensions; do
13590   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13591     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
13592     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13593     break 2
13594   fi
13595 done
13596   done
13597 IFS=$as_save_IFS
13598 
13599   ;;
13600 esac
13601 fi
13602 GREP=$ac_cv_path_GREP
13603 if test -n "$GREP"; then
13604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
13605 $as_echo "$GREP" >&6; }
13606 else
13607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13608 $as_echo "no" >&6; }
13609 fi
13610 
13611 
13612           if test "x$GREP" = x; then
13613             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13614           fi
13615         else
13616           # Otherwise we believe it is a complete path. Use it as it is.
13617           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5
13618 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;}
13619           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5
13620 $as_echo_n "checking for GREP... " >&6; }
13621           if test ! -x "$tool_specified"; then
13622             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13623 $as_echo "not found" >&6; }
13624             as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5
13625           fi
13626           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13627 $as_echo "$tool_specified" >&6; }
13628         fi
13629       fi
13630     fi
13631 
13632   fi
13633 
13634 
13635   if test "x$GREP" = x; then
13636     as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5
13637   fi
13638 
13639 
13640 
13641 
13642   # Publish this variable in the help.
13643 
13644 
13645   if [ -z "${EGREP+x}" ]; then
13646     # The variable is not set by user, try to locate tool using the code snippet
13647     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
13648 $as_echo_n "checking for egrep... " >&6; }
13649 if ${ac_cv_path_EGREP+:} false; then :
13650   $as_echo_n "(cached) " >&6
13651 else
13652   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
13653    then ac_cv_path_EGREP="$GREP -E"
13654    else
13655      if test -z "$EGREP"; then
13656   ac_path_EGREP_found=false
13657   # Loop through the user's path and test for each of PROGNAME-LIST
13658   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13659 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13660 do
13661   IFS=$as_save_IFS
13662   test -z "$as_dir" && as_dir=.
13663     for ac_prog in egrep; do
13664     for ac_exec_ext in '' $ac_executable_extensions; do
13665       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
13666       as_fn_executable_p "$ac_path_EGREP" || continue
13667 # Check for GNU ac_path_EGREP and select it if it is found.
13668   # Check for GNU $ac_path_EGREP
13669 case `"$ac_path_EGREP" --version 2>&1` in
13670 *GNU*)
13671   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
13672 *)
13673   ac_count=0
13674   $as_echo_n 0123456789 >"conftest.in"
13675   while :
13676   do
13677     cat "conftest.in" "conftest.in" >"conftest.tmp"
13678     mv "conftest.tmp" "conftest.in"
13679     cp "conftest.in" "conftest.nl"
13680     $as_echo 'EGREP' >> "conftest.nl"
13681     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13682     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13683     as_fn_arith $ac_count + 1 && ac_count=$as_val
13684     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
13685       # Best one so far, save it but keep looking for a better one
13686       ac_cv_path_EGREP="$ac_path_EGREP"
13687       ac_path_EGREP_max=$ac_count
13688     fi
13689     # 10*(2^10) chars as input seems more than enough
13690     test $ac_count -gt 10 && break
13691   done
13692   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13693 esac
13694 
13695       $ac_path_EGREP_found && break 3
13696     done
13697   done
13698   done
13699 IFS=$as_save_IFS
13700   if test -z "$ac_cv_path_EGREP"; then
13701     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13702   fi
13703 else
13704   ac_cv_path_EGREP=$EGREP
13705 fi
13706 
13707    fi
13708 fi
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
13710 $as_echo "$ac_cv_path_EGREP" >&6; }
13711  EGREP="$ac_cv_path_EGREP"
13712 
13713 
13714   else
13715     # The variable is set, but is it from the command line or the environment?
13716 
13717     # Try to remove the string !EGREP! from our list.
13718     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/}
13719     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13720       # If it failed, the variable was not from the command line. Ignore it,
13721       # but warn the user (except for BASH, which is always set by the calling BASH).
13722       if test "xEGREP" != xBASH; then
13723         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5
13724 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;}
13725       fi
13726       # Try to locate tool using the code snippet
13727       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
13728 $as_echo_n "checking for egrep... " >&6; }
13729 if ${ac_cv_path_EGREP+:} false; then :
13730   $as_echo_n "(cached) " >&6
13731 else
13732   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
13733    then ac_cv_path_EGREP="$GREP -E"
13734    else
13735      if test -z "$EGREP"; then
13736   ac_path_EGREP_found=false
13737   # Loop through the user's path and test for each of PROGNAME-LIST
13738   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13739 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13740 do
13741   IFS=$as_save_IFS
13742   test -z "$as_dir" && as_dir=.
13743     for ac_prog in egrep; do
13744     for ac_exec_ext in '' $ac_executable_extensions; do
13745       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
13746       as_fn_executable_p "$ac_path_EGREP" || continue
13747 # Check for GNU ac_path_EGREP and select it if it is found.
13748   # Check for GNU $ac_path_EGREP
13749 case `"$ac_path_EGREP" --version 2>&1` in
13750 *GNU*)
13751   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
13752 *)
13753   ac_count=0
13754   $as_echo_n 0123456789 >"conftest.in"
13755   while :
13756   do
13757     cat "conftest.in" "conftest.in" >"conftest.tmp"
13758     mv "conftest.tmp" "conftest.in"
13759     cp "conftest.in" "conftest.nl"
13760     $as_echo 'EGREP' >> "conftest.nl"
13761     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13762     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13763     as_fn_arith $ac_count + 1 && ac_count=$as_val
13764     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
13765       # Best one so far, save it but keep looking for a better one
13766       ac_cv_path_EGREP="$ac_path_EGREP"
13767       ac_path_EGREP_max=$ac_count
13768     fi
13769     # 10*(2^10) chars as input seems more than enough
13770     test $ac_count -gt 10 && break
13771   done
13772   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13773 esac
13774 
13775       $ac_path_EGREP_found && break 3
13776     done
13777   done
13778   done
13779 IFS=$as_save_IFS
13780   if test -z "$ac_cv_path_EGREP"; then
13781     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13782   fi
13783 else
13784   ac_cv_path_EGREP=$EGREP
13785 fi
13786 
13787    fi
13788 fi
13789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
13790 $as_echo "$ac_cv_path_EGREP" >&6; }
13791  EGREP="$ac_cv_path_EGREP"
13792 
13793 
13794     else
13795       # If it succeeded, then it was overridden by the user. We will use it
13796       # for the tool.
13797 
13798       # First remove it from the list of overridden variables, so we can test
13799       # for unknown variables in the end.
13800       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13801 
13802       # Check if we try to supply an empty value
13803       if test "x$EGREP" = x; then
13804         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool EGREP= (no value)" >&5
13805 $as_echo "$as_me: Setting user supplied tool EGREP= (no value)" >&6;}
13806         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5
13807 $as_echo_n "checking for EGREP... " >&6; }
13808         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13809 $as_echo "disabled" >&6; }
13810       else
13811         # Check if the provided tool contains a complete path.
13812         tool_specified="$EGREP"
13813         tool_basename="${tool_specified##*/}"
13814         if test "x$tool_basename" = "x$tool_specified"; then
13815           # A command without a complete path is provided, search $PATH.
13816           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5
13817 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;}
13818           # Extract the first word of "$tool_basename", so it can be a program name with args.
13819 set dummy $tool_basename; ac_word=$2
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13821 $as_echo_n "checking for $ac_word... " >&6; }
13822 if ${ac_cv_path_EGREP+:} false; then :
13823   $as_echo_n "(cached) " >&6
13824 else
13825   case $EGREP in
13826   [\\/]* | ?:[\\/]*)
13827   ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
13828   ;;
13829   *)
13830   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13831 for as_dir in $PATH
13832 do
13833   IFS=$as_save_IFS
13834   test -z "$as_dir" && as_dir=.
13835     for ac_exec_ext in '' $ac_executable_extensions; do
13836   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13837     ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
13838     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13839     break 2
13840   fi
13841 done
13842   done
13843 IFS=$as_save_IFS
13844 
13845   ;;
13846 esac
13847 fi
13848 EGREP=$ac_cv_path_EGREP
13849 if test -n "$EGREP"; then
13850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
13851 $as_echo "$EGREP" >&6; }
13852 else
13853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13854 $as_echo "no" >&6; }
13855 fi
13856 
13857 
13858           if test "x$EGREP" = x; then
13859             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13860           fi
13861         else
13862           # Otherwise we believe it is a complete path. Use it as it is.
13863           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5
13864 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;}
13865           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5
13866 $as_echo_n "checking for EGREP... " >&6; }
13867           if test ! -x "$tool_specified"; then
13868             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13869 $as_echo "not found" >&6; }
13870             as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
13871           fi
13872           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13873 $as_echo "$tool_specified" >&6; }
13874         fi
13875       fi
13876     fi
13877 
13878   fi
13879 
13880 
13881   if test "x$EGREP" = x; then
13882     as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5
13883   fi
13884 
13885 
13886 
13887 
13888   # Publish this variable in the help.
13889 
13890 
13891   if [ -z "${FGREP+x}" ]; then
13892     # The variable is not set by user, try to locate tool using the code snippet
13893     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13894 $as_echo_n "checking for fgrep... " >&6; }
13895 if ${ac_cv_path_FGREP+:} false; then :
13896   $as_echo_n "(cached) " >&6
13897 else
13898   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
13899    then ac_cv_path_FGREP="$GREP -F"
13900    else
13901      if test -z "$FGREP"; then
13902   ac_path_FGREP_found=false
13903   # Loop through the user's path and test for each of PROGNAME-LIST
13904   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13905 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13906 do
13907   IFS=$as_save_IFS
13908   test -z "$as_dir" && as_dir=.
13909     for ac_prog in fgrep; do
13910     for ac_exec_ext in '' $ac_executable_extensions; do
13911       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
13912       as_fn_executable_p "$ac_path_FGREP" || continue
13913 # Check for GNU ac_path_FGREP and select it if it is found.
13914   # Check for GNU $ac_path_FGREP
13915 case `"$ac_path_FGREP" --version 2>&1` in
13916 *GNU*)
13917   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
13918 *)
13919   ac_count=0
13920   $as_echo_n 0123456789 >"conftest.in"
13921   while :
13922   do
13923     cat "conftest.in" "conftest.in" >"conftest.tmp"
13924     mv "conftest.tmp" "conftest.in"
13925     cp "conftest.in" "conftest.nl"
13926     $as_echo 'FGREP' >> "conftest.nl"
13927     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
13928     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13929     as_fn_arith $ac_count + 1 && ac_count=$as_val
13930     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13931       # Best one so far, save it but keep looking for a better one
13932       ac_cv_path_FGREP="$ac_path_FGREP"
13933       ac_path_FGREP_max=$ac_count
13934     fi
13935     # 10*(2^10) chars as input seems more than enough
13936     test $ac_count -gt 10 && break
13937   done
13938   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13939 esac
13940 
13941       $ac_path_FGREP_found && break 3
13942     done
13943   done
13944   done
13945 IFS=$as_save_IFS
13946   if test -z "$ac_cv_path_FGREP"; then
13947     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13948   fi
13949 else
13950   ac_cv_path_FGREP=$FGREP
13951 fi
13952 
13953    fi
13954 fi
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13956 $as_echo "$ac_cv_path_FGREP" >&6; }
13957  FGREP="$ac_cv_path_FGREP"
13958 
13959 
13960   else
13961     # The variable is set, but is it from the command line or the environment?
13962 
13963     # Try to remove the string !FGREP! from our list.
13964     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/}
13965     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13966       # If it failed, the variable was not from the command line. Ignore it,
13967       # but warn the user (except for BASH, which is always set by the calling BASH).
13968       if test "xFGREP" != xBASH; then
13969         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5
13970 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;}
13971       fi
13972       # Try to locate tool using the code snippet
13973       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13974 $as_echo_n "checking for fgrep... " >&6; }
13975 if ${ac_cv_path_FGREP+:} false; then :
13976   $as_echo_n "(cached) " >&6
13977 else
13978   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
13979    then ac_cv_path_FGREP="$GREP -F"
13980    else
13981      if test -z "$FGREP"; then
13982   ac_path_FGREP_found=false
13983   # Loop through the user's path and test for each of PROGNAME-LIST
13984   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13985 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13986 do
13987   IFS=$as_save_IFS
13988   test -z "$as_dir" && as_dir=.
13989     for ac_prog in fgrep; do
13990     for ac_exec_ext in '' $ac_executable_extensions; do
13991       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
13992       as_fn_executable_p "$ac_path_FGREP" || continue
13993 # Check for GNU ac_path_FGREP and select it if it is found.
13994   # Check for GNU $ac_path_FGREP
13995 case `"$ac_path_FGREP" --version 2>&1` in
13996 *GNU*)
13997   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
13998 *)
13999   ac_count=0
14000   $as_echo_n 0123456789 >"conftest.in"
14001   while :
14002   do
14003     cat "conftest.in" "conftest.in" >"conftest.tmp"
14004     mv "conftest.tmp" "conftest.in"
14005     cp "conftest.in" "conftest.nl"
14006     $as_echo 'FGREP' >> "conftest.nl"
14007     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
14008     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
14009     as_fn_arith $ac_count + 1 && ac_count=$as_val
14010     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
14011       # Best one so far, save it but keep looking for a better one
14012       ac_cv_path_FGREP="$ac_path_FGREP"
14013       ac_path_FGREP_max=$ac_count
14014     fi
14015     # 10*(2^10) chars as input seems more than enough
14016     test $ac_count -gt 10 && break
14017   done
14018   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
14019 esac
14020 
14021       $ac_path_FGREP_found && break 3
14022     done
14023   done
14024   done
14025 IFS=$as_save_IFS
14026   if test -z "$ac_cv_path_FGREP"; then
14027     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
14028   fi
14029 else
14030   ac_cv_path_FGREP=$FGREP
14031 fi
14032 
14033    fi
14034 fi
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
14036 $as_echo "$ac_cv_path_FGREP" >&6; }
14037  FGREP="$ac_cv_path_FGREP"
14038 
14039 
14040     else
14041       # If it succeeded, then it was overridden by the user. We will use it
14042       # for the tool.
14043 
14044       # First remove it from the list of overridden variables, so we can test
14045       # for unknown variables in the end.
14046       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14047 
14048       # Check if we try to supply an empty value
14049       if test "x$FGREP" = x; then
14050         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FGREP= (no value)" >&5
14051 $as_echo "$as_me: Setting user supplied tool FGREP= (no value)" >&6;}
14052         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5
14053 $as_echo_n "checking for FGREP... " >&6; }
14054         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14055 $as_echo "disabled" >&6; }
14056       else
14057         # Check if the provided tool contains a complete path.
14058         tool_specified="$FGREP"
14059         tool_basename="${tool_specified##*/}"
14060         if test "x$tool_basename" = "x$tool_specified"; then
14061           # A command without a complete path is provided, search $PATH.
14062           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5
14063 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;}
14064           # Extract the first word of "$tool_basename", so it can be a program name with args.
14065 set dummy $tool_basename; ac_word=$2
14066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14067 $as_echo_n "checking for $ac_word... " >&6; }
14068 if ${ac_cv_path_FGREP+:} false; then :
14069   $as_echo_n "(cached) " >&6
14070 else
14071   case $FGREP in
14072   [\\/]* | ?:[\\/]*)
14073   ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path.
14074   ;;
14075   *)
14076   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14077 for as_dir in $PATH
14078 do
14079   IFS=$as_save_IFS
14080   test -z "$as_dir" && as_dir=.
14081     for ac_exec_ext in '' $ac_executable_extensions; do
14082   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14083     ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext"
14084     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14085     break 2
14086   fi
14087 done
14088   done
14089 IFS=$as_save_IFS
14090 
14091   ;;
14092 esac
14093 fi
14094 FGREP=$ac_cv_path_FGREP
14095 if test -n "$FGREP"; then
14096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5
14097 $as_echo "$FGREP" >&6; }
14098 else
14099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14100 $as_echo "no" >&6; }
14101 fi
14102 
14103 
14104           if test "x$FGREP" = x; then
14105             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14106           fi
14107         else
14108           # Otherwise we believe it is a complete path. Use it as it is.
14109           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5
14110 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;}
14111           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5
14112 $as_echo_n "checking for FGREP... " >&6; }
14113           if test ! -x "$tool_specified"; then
14114             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14115 $as_echo "not found" >&6; }
14116             as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
14117           fi
14118           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14119 $as_echo "$tool_specified" >&6; }
14120         fi
14121       fi
14122     fi
14123 
14124   fi
14125 
14126 
14127   if test "x$FGREP" = x; then
14128     as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5
14129   fi
14130 
14131 
14132 
14133 
14134   # Publish this variable in the help.
14135 
14136 
14137   if [ -z "${SED+x}" ]; then
14138     # The variable is not set by user, try to locate tool using the code snippet
14139     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
14140 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
14141 if ${ac_cv_path_SED+:} false; then :
14142   $as_echo_n "(cached) " >&6
14143 else
14144             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
14145      for ac_i in 1 2 3 4 5 6 7; do
14146        ac_script="$ac_script$as_nl$ac_script"
14147      done
14148      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
14149      { ac_script=; unset ac_script;}
14150      if test -z "$SED"; then
14151   ac_path_SED_found=false
14152   # Loop through the user's path and test for each of PROGNAME-LIST
14153   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14154 for as_dir in $PATH
14155 do
14156   IFS=$as_save_IFS
14157   test -z "$as_dir" && as_dir=.
14158     for ac_prog in sed gsed; do
14159     for ac_exec_ext in '' $ac_executable_extensions; do
14160       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
14161       as_fn_executable_p "$ac_path_SED" || continue
14162 # Check for GNU ac_path_SED and select it if it is found.
14163   # Check for GNU $ac_path_SED
14164 case `"$ac_path_SED" --version 2>&1` in
14165 *GNU*)
14166   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
14167 *)
14168   ac_count=0
14169   $as_echo_n 0123456789 >"conftest.in"
14170   while :
14171   do
14172     cat "conftest.in" "conftest.in" >"conftest.tmp"
14173     mv "conftest.tmp" "conftest.in"
14174     cp "conftest.in" "conftest.nl"
14175     $as_echo '' >> "conftest.nl"
14176     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
14177     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
14178     as_fn_arith $ac_count + 1 && ac_count=$as_val
14179     if test $ac_count -gt ${ac_path_SED_max-0}; then
14180       # Best one so far, save it but keep looking for a better one
14181       ac_cv_path_SED="$ac_path_SED"
14182       ac_path_SED_max=$ac_count
14183     fi
14184     # 10*(2^10) chars as input seems more than enough
14185     test $ac_count -gt 10 && break
14186   done
14187   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
14188 esac
14189 
14190       $ac_path_SED_found && break 3
14191     done
14192   done
14193   done
14194 IFS=$as_save_IFS
14195   if test -z "$ac_cv_path_SED"; then
14196     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
14197   fi
14198 else
14199   ac_cv_path_SED=$SED
14200 fi
14201 
14202 fi
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
14204 $as_echo "$ac_cv_path_SED" >&6; }
14205  SED="$ac_cv_path_SED"
14206   rm -f conftest.sed
14207 
14208   else
14209     # The variable is set, but is it from the command line or the environment?
14210 
14211     # Try to remove the string !SED! from our list.
14212     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/}
14213     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14214       # If it failed, the variable was not from the command line. Ignore it,
14215       # but warn the user (except for BASH, which is always set by the calling BASH).
14216       if test "xSED" != xBASH; then
14217         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5
14218 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;}
14219       fi
14220       # Try to locate tool using the code snippet
14221       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
14222 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
14223 if ${ac_cv_path_SED+:} false; then :
14224   $as_echo_n "(cached) " >&6
14225 else
14226             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
14227      for ac_i in 1 2 3 4 5 6 7; do
14228        ac_script="$ac_script$as_nl$ac_script"
14229      done
14230      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
14231      { ac_script=; unset ac_script;}
14232      if test -z "$SED"; then
14233   ac_path_SED_found=false
14234   # Loop through the user's path and test for each of PROGNAME-LIST
14235   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14236 for as_dir in $PATH
14237 do
14238   IFS=$as_save_IFS
14239   test -z "$as_dir" && as_dir=.
14240     for ac_prog in sed gsed; do
14241     for ac_exec_ext in '' $ac_executable_extensions; do
14242       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
14243       as_fn_executable_p "$ac_path_SED" || continue
14244 # Check for GNU ac_path_SED and select it if it is found.
14245   # Check for GNU $ac_path_SED
14246 case `"$ac_path_SED" --version 2>&1` in
14247 *GNU*)
14248   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
14249 *)
14250   ac_count=0
14251   $as_echo_n 0123456789 >"conftest.in"
14252   while :
14253   do
14254     cat "conftest.in" "conftest.in" >"conftest.tmp"
14255     mv "conftest.tmp" "conftest.in"
14256     cp "conftest.in" "conftest.nl"
14257     $as_echo '' >> "conftest.nl"
14258     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
14259     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
14260     as_fn_arith $ac_count + 1 && ac_count=$as_val
14261     if test $ac_count -gt ${ac_path_SED_max-0}; then
14262       # Best one so far, save it but keep looking for a better one
14263       ac_cv_path_SED="$ac_path_SED"
14264       ac_path_SED_max=$ac_count
14265     fi
14266     # 10*(2^10) chars as input seems more than enough
14267     test $ac_count -gt 10 && break
14268   done
14269   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
14270 esac
14271 
14272       $ac_path_SED_found && break 3
14273     done
14274   done
14275   done
14276 IFS=$as_save_IFS
14277   if test -z "$ac_cv_path_SED"; then
14278     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
14279   fi
14280 else
14281   ac_cv_path_SED=$SED
14282 fi
14283 
14284 fi
14285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
14286 $as_echo "$ac_cv_path_SED" >&6; }
14287  SED="$ac_cv_path_SED"
14288   rm -f conftest.sed
14289 
14290     else
14291       # If it succeeded, then it was overridden by the user. We will use it
14292       # for the tool.
14293 
14294       # First remove it from the list of overridden variables, so we can test
14295       # for unknown variables in the end.
14296       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14297 
14298       # Check if we try to supply an empty value
14299       if test "x$SED" = x; then
14300         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SED= (no value)" >&5
14301 $as_echo "$as_me: Setting user supplied tool SED= (no value)" >&6;}
14302         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5
14303 $as_echo_n "checking for SED... " >&6; }
14304         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14305 $as_echo "disabled" >&6; }
14306       else
14307         # Check if the provided tool contains a complete path.
14308         tool_specified="$SED"
14309         tool_basename="${tool_specified##*/}"
14310         if test "x$tool_basename" = "x$tool_specified"; then
14311           # A command without a complete path is provided, search $PATH.
14312           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5
14313 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;}
14314           # Extract the first word of "$tool_basename", so it can be a program name with args.
14315 set dummy $tool_basename; ac_word=$2
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14317 $as_echo_n "checking for $ac_word... " >&6; }
14318 if ${ac_cv_path_SED+:} false; then :
14319   $as_echo_n "(cached) " >&6
14320 else
14321   case $SED in
14322   [\\/]* | ?:[\\/]*)
14323   ac_cv_path_SED="$SED" # Let the user override the test with a path.
14324   ;;
14325   *)
14326   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14327 for as_dir in $PATH
14328 do
14329   IFS=$as_save_IFS
14330   test -z "$as_dir" && as_dir=.
14331     for ac_exec_ext in '' $ac_executable_extensions; do
14332   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14333     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
14334     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14335     break 2
14336   fi
14337 done
14338   done
14339 IFS=$as_save_IFS
14340 
14341   ;;
14342 esac
14343 fi
14344 SED=$ac_cv_path_SED
14345 if test -n "$SED"; then
14346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
14347 $as_echo "$SED" >&6; }
14348 else
14349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14350 $as_echo "no" >&6; }
14351 fi
14352 
14353 
14354           if test "x$SED" = x; then
14355             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14356           fi
14357         else
14358           # Otherwise we believe it is a complete path. Use it as it is.
14359           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5
14360 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;}
14361           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5
14362 $as_echo_n "checking for SED... " >&6; }
14363           if test ! -x "$tool_specified"; then
14364             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14365 $as_echo "not found" >&6; }
14366             as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5
14367           fi
14368           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14369 $as_echo "$tool_specified" >&6; }
14370         fi
14371       fi
14372     fi
14373 
14374   fi
14375 
14376 
14377   if test "x$SED" = x; then
14378     as_fn_error $? "Could not find required tool for SED" "$LINENO" 5
14379   fi
14380 
14381 
14382 
14383   # Always force rm.
14384   RM="$RM -f"
14385 
14386   # pwd behaves differently on various platforms and some don't support the -L flag.
14387   # Always use the bash builtin pwd to get uniform behavior.
14388   THEPWDCMD=pwd
14389 
14390   # These are not required on all platforms
14391 
14392 
14393   # Publish this variable in the help.
14394 
14395 
14396   if [ -z "${CYGPATH+x}" ]; then
14397     # The variable is not set by user, try to locate tool using the code snippet
14398     for ac_prog in cygpath
14399 do
14400   # Extract the first word of "$ac_prog", so it can be a program name with args.
14401 set dummy $ac_prog; ac_word=$2
14402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14403 $as_echo_n "checking for $ac_word... " >&6; }
14404 if ${ac_cv_path_CYGPATH+:} false; then :
14405   $as_echo_n "(cached) " >&6
14406 else
14407   case $CYGPATH in
14408   [\\/]* | ?:[\\/]*)
14409   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
14410   ;;
14411   *)
14412   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14413 for as_dir in $PATH
14414 do
14415   IFS=$as_save_IFS
14416   test -z "$as_dir" && as_dir=.
14417     for ac_exec_ext in '' $ac_executable_extensions; do
14418   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14419     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
14420     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14421     break 2
14422   fi
14423 done
14424   done
14425 IFS=$as_save_IFS
14426 
14427   ;;
14428 esac
14429 fi
14430 CYGPATH=$ac_cv_path_CYGPATH
14431 if test -n "$CYGPATH"; then
14432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
14433 $as_echo "$CYGPATH" >&6; }
14434 else
14435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14436 $as_echo "no" >&6; }
14437 fi
14438 
14439 
14440   test -n "$CYGPATH" && break
14441 done
14442 
14443   else
14444     # The variable is set, but is it from the command line or the environment?
14445 
14446     # Try to remove the string !CYGPATH! from our list.
14447     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/}
14448     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14449       # If it failed, the variable was not from the command line. Ignore it,
14450       # but warn the user (except for BASH, which is always set by the calling BASH).
14451       if test "xCYGPATH" != xBASH; then
14452         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5
14453 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;}
14454       fi
14455       # Try to locate tool using the code snippet
14456       for ac_prog in cygpath
14457 do
14458   # Extract the first word of "$ac_prog", so it can be a program name with args.
14459 set dummy $ac_prog; ac_word=$2
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14461 $as_echo_n "checking for $ac_word... " >&6; }
14462 if ${ac_cv_path_CYGPATH+:} false; then :
14463   $as_echo_n "(cached) " >&6
14464 else
14465   case $CYGPATH in
14466   [\\/]* | ?:[\\/]*)
14467   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
14468   ;;
14469   *)
14470   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14471 for as_dir in $PATH
14472 do
14473   IFS=$as_save_IFS
14474   test -z "$as_dir" && as_dir=.
14475     for ac_exec_ext in '' $ac_executable_extensions; do
14476   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14477     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
14478     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14479     break 2
14480   fi
14481 done
14482   done
14483 IFS=$as_save_IFS
14484 
14485   ;;
14486 esac
14487 fi
14488 CYGPATH=$ac_cv_path_CYGPATH
14489 if test -n "$CYGPATH"; then
14490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
14491 $as_echo "$CYGPATH" >&6; }
14492 else
14493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14494 $as_echo "no" >&6; }
14495 fi
14496 
14497 
14498   test -n "$CYGPATH" && break
14499 done
14500 
14501     else
14502       # If it succeeded, then it was overridden by the user. We will use it
14503       # for the tool.
14504 
14505       # First remove it from the list of overridden variables, so we can test
14506       # for unknown variables in the end.
14507       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14508 
14509       # Check if we try to supply an empty value
14510       if test "x$CYGPATH" = x; then
14511         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CYGPATH= (no value)" >&5
14512 $as_echo "$as_me: Setting user supplied tool CYGPATH= (no value)" >&6;}
14513         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5
14514 $as_echo_n "checking for CYGPATH... " >&6; }
14515         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14516 $as_echo "disabled" >&6; }
14517       else
14518         # Check if the provided tool contains a complete path.
14519         tool_specified="$CYGPATH"
14520         tool_basename="${tool_specified##*/}"
14521         if test "x$tool_basename" = "x$tool_specified"; then
14522           # A command without a complete path is provided, search $PATH.
14523           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5
14524 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;}
14525           # Extract the first word of "$tool_basename", so it can be a program name with args.
14526 set dummy $tool_basename; ac_word=$2
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14528 $as_echo_n "checking for $ac_word... " >&6; }
14529 if ${ac_cv_path_CYGPATH+:} false; then :
14530   $as_echo_n "(cached) " >&6
14531 else
14532   case $CYGPATH in
14533   [\\/]* | ?:[\\/]*)
14534   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
14535   ;;
14536   *)
14537   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14538 for as_dir in $PATH
14539 do
14540   IFS=$as_save_IFS
14541   test -z "$as_dir" && as_dir=.
14542     for ac_exec_ext in '' $ac_executable_extensions; do
14543   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14544     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
14545     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14546     break 2
14547   fi
14548 done
14549   done
14550 IFS=$as_save_IFS
14551 
14552   ;;
14553 esac
14554 fi
14555 CYGPATH=$ac_cv_path_CYGPATH
14556 if test -n "$CYGPATH"; then
14557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
14558 $as_echo "$CYGPATH" >&6; }
14559 else
14560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14561 $as_echo "no" >&6; }
14562 fi
14563 
14564 
14565           if test "x$CYGPATH" = x; then
14566             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14567           fi
14568         else
14569           # Otherwise we believe it is a complete path. Use it as it is.
14570           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5
14571 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;}
14572           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5
14573 $as_echo_n "checking for CYGPATH... " >&6; }
14574           if test ! -x "$tool_specified"; then
14575             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14576 $as_echo "not found" >&6; }
14577             as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5
14578           fi
14579           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14580 $as_echo "$tool_specified" >&6; }
14581         fi
14582       fi
14583     fi
14584 
14585   fi
14586 
14587 
14588 
14589 
14590   # Publish this variable in the help.
14591 
14592 
14593   if [ -z "${READLINK+x}" ]; then
14594     # The variable is not set by user, try to locate tool using the code snippet
14595     for ac_prog in greadlink readlink
14596 do
14597   # Extract the first word of "$ac_prog", so it can be a program name with args.
14598 set dummy $ac_prog; ac_word=$2
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14600 $as_echo_n "checking for $ac_word... " >&6; }
14601 if ${ac_cv_path_READLINK+:} false; then :
14602   $as_echo_n "(cached) " >&6
14603 else
14604   case $READLINK in
14605   [\\/]* | ?:[\\/]*)
14606   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
14607   ;;
14608   *)
14609   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14610 for as_dir in $PATH
14611 do
14612   IFS=$as_save_IFS
14613   test -z "$as_dir" && as_dir=.
14614     for ac_exec_ext in '' $ac_executable_extensions; do
14615   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14616     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
14617     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14618     break 2
14619   fi
14620 done
14621   done
14622 IFS=$as_save_IFS
14623 
14624   ;;
14625 esac
14626 fi
14627 READLINK=$ac_cv_path_READLINK
14628 if test -n "$READLINK"; then
14629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
14630 $as_echo "$READLINK" >&6; }
14631 else
14632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14633 $as_echo "no" >&6; }
14634 fi
14635 
14636 
14637   test -n "$READLINK" && break
14638 done
14639 
14640   else
14641     # The variable is set, but is it from the command line or the environment?
14642 
14643     # Try to remove the string !READLINK! from our list.
14644     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/}
14645     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14646       # If it failed, the variable was not from the command line. Ignore it,
14647       # but warn the user (except for BASH, which is always set by the calling BASH).
14648       if test "xREADLINK" != xBASH; then
14649         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5
14650 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;}
14651       fi
14652       # Try to locate tool using the code snippet
14653       for ac_prog in greadlink readlink
14654 do
14655   # Extract the first word of "$ac_prog", so it can be a program name with args.
14656 set dummy $ac_prog; ac_word=$2
14657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14658 $as_echo_n "checking for $ac_word... " >&6; }
14659 if ${ac_cv_path_READLINK+:} false; then :
14660   $as_echo_n "(cached) " >&6
14661 else
14662   case $READLINK in
14663   [\\/]* | ?:[\\/]*)
14664   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
14665   ;;
14666   *)
14667   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14668 for as_dir in $PATH
14669 do
14670   IFS=$as_save_IFS
14671   test -z "$as_dir" && as_dir=.
14672     for ac_exec_ext in '' $ac_executable_extensions; do
14673   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14674     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
14675     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14676     break 2
14677   fi
14678 done
14679   done
14680 IFS=$as_save_IFS
14681 
14682   ;;
14683 esac
14684 fi
14685 READLINK=$ac_cv_path_READLINK
14686 if test -n "$READLINK"; then
14687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
14688 $as_echo "$READLINK" >&6; }
14689 else
14690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14691 $as_echo "no" >&6; }
14692 fi
14693 
14694 
14695   test -n "$READLINK" && break
14696 done
14697 
14698     else
14699       # If it succeeded, then it was overridden by the user. We will use it
14700       # for the tool.
14701 
14702       # First remove it from the list of overridden variables, so we can test
14703       # for unknown variables in the end.
14704       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14705 
14706       # Check if we try to supply an empty value
14707       if test "x$READLINK" = x; then
14708         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool READLINK= (no value)" >&5
14709 $as_echo "$as_me: Setting user supplied tool READLINK= (no value)" >&6;}
14710         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5
14711 $as_echo_n "checking for READLINK... " >&6; }
14712         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14713 $as_echo "disabled" >&6; }
14714       else
14715         # Check if the provided tool contains a complete path.
14716         tool_specified="$READLINK"
14717         tool_basename="${tool_specified##*/}"
14718         if test "x$tool_basename" = "x$tool_specified"; then
14719           # A command without a complete path is provided, search $PATH.
14720           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5
14721 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;}
14722           # Extract the first word of "$tool_basename", so it can be a program name with args.
14723 set dummy $tool_basename; ac_word=$2
14724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14725 $as_echo_n "checking for $ac_word... " >&6; }
14726 if ${ac_cv_path_READLINK+:} false; then :
14727   $as_echo_n "(cached) " >&6
14728 else
14729   case $READLINK in
14730   [\\/]* | ?:[\\/]*)
14731   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
14732   ;;
14733   *)
14734   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14735 for as_dir in $PATH
14736 do
14737   IFS=$as_save_IFS
14738   test -z "$as_dir" && as_dir=.
14739     for ac_exec_ext in '' $ac_executable_extensions; do
14740   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14741     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
14742     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14743     break 2
14744   fi
14745 done
14746   done
14747 IFS=$as_save_IFS
14748 
14749   ;;
14750 esac
14751 fi
14752 READLINK=$ac_cv_path_READLINK
14753 if test -n "$READLINK"; then
14754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
14755 $as_echo "$READLINK" >&6; }
14756 else
14757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14758 $as_echo "no" >&6; }
14759 fi
14760 
14761 
14762           if test "x$READLINK" = x; then
14763             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14764           fi
14765         else
14766           # Otherwise we believe it is a complete path. Use it as it is.
14767           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5
14768 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;}
14769           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5
14770 $as_echo_n "checking for READLINK... " >&6; }
14771           if test ! -x "$tool_specified"; then
14772             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14773 $as_echo "not found" >&6; }
14774             as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5
14775           fi
14776           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14777 $as_echo "$tool_specified" >&6; }
14778         fi
14779       fi
14780     fi
14781 
14782   fi
14783 
14784 
14785 
14786 
14787   # Publish this variable in the help.
14788 
14789 
14790   if [ -z "${DF+x}" ]; then
14791     # The variable is not set by user, try to locate tool using the code snippet
14792     for ac_prog in df
14793 do
14794   # Extract the first word of "$ac_prog", so it can be a program name with args.
14795 set dummy $ac_prog; ac_word=$2
14796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14797 $as_echo_n "checking for $ac_word... " >&6; }
14798 if ${ac_cv_path_DF+:} false; then :
14799   $as_echo_n "(cached) " >&6
14800 else
14801   case $DF in
14802   [\\/]* | ?:[\\/]*)
14803   ac_cv_path_DF="$DF" # Let the user override the test with a path.
14804   ;;
14805   *)
14806   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14807 for as_dir in $PATH
14808 do
14809   IFS=$as_save_IFS
14810   test -z "$as_dir" && as_dir=.
14811     for ac_exec_ext in '' $ac_executable_extensions; do
14812   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14813     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
14814     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14815     break 2
14816   fi
14817 done
14818   done
14819 IFS=$as_save_IFS
14820 
14821   ;;
14822 esac
14823 fi
14824 DF=$ac_cv_path_DF
14825 if test -n "$DF"; then
14826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
14827 $as_echo "$DF" >&6; }
14828 else
14829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14830 $as_echo "no" >&6; }
14831 fi
14832 
14833 
14834   test -n "$DF" && break
14835 done
14836 
14837   else
14838     # The variable is set, but is it from the command line or the environment?
14839 
14840     # Try to remove the string !DF! from our list.
14841     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/}
14842     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14843       # If it failed, the variable was not from the command line. Ignore it,
14844       # but warn the user (except for BASH, which is always set by the calling BASH).
14845       if test "xDF" != xBASH; then
14846         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5
14847 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;}
14848       fi
14849       # Try to locate tool using the code snippet
14850       for ac_prog in df
14851 do
14852   # Extract the first word of "$ac_prog", so it can be a program name with args.
14853 set dummy $ac_prog; ac_word=$2
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14855 $as_echo_n "checking for $ac_word... " >&6; }
14856 if ${ac_cv_path_DF+:} false; then :
14857   $as_echo_n "(cached) " >&6
14858 else
14859   case $DF in
14860   [\\/]* | ?:[\\/]*)
14861   ac_cv_path_DF="$DF" # Let the user override the test with a path.
14862   ;;
14863   *)
14864   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14865 for as_dir in $PATH
14866 do
14867   IFS=$as_save_IFS
14868   test -z "$as_dir" && as_dir=.
14869     for ac_exec_ext in '' $ac_executable_extensions; do
14870   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14871     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
14872     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14873     break 2
14874   fi
14875 done
14876   done
14877 IFS=$as_save_IFS
14878 
14879   ;;
14880 esac
14881 fi
14882 DF=$ac_cv_path_DF
14883 if test -n "$DF"; then
14884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
14885 $as_echo "$DF" >&6; }
14886 else
14887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14888 $as_echo "no" >&6; }
14889 fi
14890 
14891 
14892   test -n "$DF" && break
14893 done
14894 
14895     else
14896       # If it succeeded, then it was overridden by the user. We will use it
14897       # for the tool.
14898 
14899       # First remove it from the list of overridden variables, so we can test
14900       # for unknown variables in the end.
14901       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14902 
14903       # Check if we try to supply an empty value
14904       if test "x$DF" = x; then
14905         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DF= (no value)" >&5
14906 $as_echo "$as_me: Setting user supplied tool DF= (no value)" >&6;}
14907         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5
14908 $as_echo_n "checking for DF... " >&6; }
14909         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14910 $as_echo "disabled" >&6; }
14911       else
14912         # Check if the provided tool contains a complete path.
14913         tool_specified="$DF"
14914         tool_basename="${tool_specified##*/}"
14915         if test "x$tool_basename" = "x$tool_specified"; then
14916           # A command without a complete path is provided, search $PATH.
14917           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5
14918 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;}
14919           # Extract the first word of "$tool_basename", so it can be a program name with args.
14920 set dummy $tool_basename; ac_word=$2
14921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14922 $as_echo_n "checking for $ac_word... " >&6; }
14923 if ${ac_cv_path_DF+:} false; then :
14924   $as_echo_n "(cached) " >&6
14925 else
14926   case $DF in
14927   [\\/]* | ?:[\\/]*)
14928   ac_cv_path_DF="$DF" # Let the user override the test with a path.
14929   ;;
14930   *)
14931   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14932 for as_dir in $PATH
14933 do
14934   IFS=$as_save_IFS
14935   test -z "$as_dir" && as_dir=.
14936     for ac_exec_ext in '' $ac_executable_extensions; do
14937   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14938     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
14939     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14940     break 2
14941   fi
14942 done
14943   done
14944 IFS=$as_save_IFS
14945 
14946   ;;
14947 esac
14948 fi
14949 DF=$ac_cv_path_DF
14950 if test -n "$DF"; then
14951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
14952 $as_echo "$DF" >&6; }
14953 else
14954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14955 $as_echo "no" >&6; }
14956 fi
14957 
14958 
14959           if test "x$DF" = x; then
14960             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14961           fi
14962         else
14963           # Otherwise we believe it is a complete path. Use it as it is.
14964           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5
14965 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;}
14966           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5
14967 $as_echo_n "checking for DF... " >&6; }
14968           if test ! -x "$tool_specified"; then
14969             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14970 $as_echo "not found" >&6; }
14971             as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5
14972           fi
14973           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14974 $as_echo "$tool_specified" >&6; }
14975         fi
14976       fi
14977     fi
14978 
14979   fi
14980 
14981 
14982 
14983 
14984   # Publish this variable in the help.
14985 
14986 
14987   if [ -z "${CPIO+x}" ]; then
14988     # The variable is not set by user, try to locate tool using the code snippet
14989     for ac_prog in cpio bsdcpio
14990 do
14991   # Extract the first word of "$ac_prog", so it can be a program name with args.
14992 set dummy $ac_prog; ac_word=$2
14993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14994 $as_echo_n "checking for $ac_word... " >&6; }
14995 if ${ac_cv_path_CPIO+:} false; then :
14996   $as_echo_n "(cached) " >&6
14997 else
14998   case $CPIO in
14999   [\\/]* | ?:[\\/]*)
15000   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
15001   ;;
15002   *)
15003   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15004 for as_dir in $PATH
15005 do
15006   IFS=$as_save_IFS
15007   test -z "$as_dir" && as_dir=.
15008     for ac_exec_ext in '' $ac_executable_extensions; do
15009   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15010     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
15011     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15012     break 2
15013   fi
15014 done
15015   done
15016 IFS=$as_save_IFS
15017 
15018   ;;
15019 esac
15020 fi
15021 CPIO=$ac_cv_path_CPIO
15022 if test -n "$CPIO"; then
15023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
15024 $as_echo "$CPIO" >&6; }
15025 else
15026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15027 $as_echo "no" >&6; }
15028 fi
15029 
15030 
15031   test -n "$CPIO" && break
15032 done
15033 
15034   else
15035     # The variable is set, but is it from the command line or the environment?
15036 
15037     # Try to remove the string !CPIO! from our list.
15038     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/}
15039     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
15040       # If it failed, the variable was not from the command line. Ignore it,
15041       # but warn the user (except for BASH, which is always set by the calling BASH).
15042       if test "xCPIO" != xBASH; then
15043         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5
15044 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;}
15045       fi
15046       # Try to locate tool using the code snippet
15047       for ac_prog in cpio bsdcpio
15048 do
15049   # Extract the first word of "$ac_prog", so it can be a program name with args.
15050 set dummy $ac_prog; ac_word=$2
15051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15052 $as_echo_n "checking for $ac_word... " >&6; }
15053 if ${ac_cv_path_CPIO+:} false; then :
15054   $as_echo_n "(cached) " >&6
15055 else
15056   case $CPIO in
15057   [\\/]* | ?:[\\/]*)
15058   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
15059   ;;
15060   *)
15061   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15062 for as_dir in $PATH
15063 do
15064   IFS=$as_save_IFS
15065   test -z "$as_dir" && as_dir=.
15066     for ac_exec_ext in '' $ac_executable_extensions; do
15067   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15068     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
15069     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15070     break 2
15071   fi
15072 done
15073   done
15074 IFS=$as_save_IFS
15075 
15076   ;;
15077 esac
15078 fi
15079 CPIO=$ac_cv_path_CPIO
15080 if test -n "$CPIO"; then
15081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
15082 $as_echo "$CPIO" >&6; }
15083 else
15084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15085 $as_echo "no" >&6; }
15086 fi
15087 
15088 
15089   test -n "$CPIO" && break
15090 done
15091 
15092     else
15093       # If it succeeded, then it was overridden by the user. We will use it
15094       # for the tool.
15095 
15096       # First remove it from the list of overridden variables, so we can test
15097       # for unknown variables in the end.
15098       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
15099 
15100       # Check if we try to supply an empty value
15101       if test "x$CPIO" = x; then
15102         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CPIO= (no value)" >&5
15103 $as_echo "$as_me: Setting user supplied tool CPIO= (no value)" >&6;}
15104         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5
15105 $as_echo_n "checking for CPIO... " >&6; }
15106         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
15107 $as_echo "disabled" >&6; }
15108       else
15109         # Check if the provided tool contains a complete path.
15110         tool_specified="$CPIO"
15111         tool_basename="${tool_specified##*/}"
15112         if test "x$tool_basename" = "x$tool_specified"; then
15113           # A command without a complete path is provided, search $PATH.
15114           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5
15115 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;}
15116           # Extract the first word of "$tool_basename", so it can be a program name with args.
15117 set dummy $tool_basename; ac_word=$2
15118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15119 $as_echo_n "checking for $ac_word... " >&6; }
15120 if ${ac_cv_path_CPIO+:} false; then :
15121   $as_echo_n "(cached) " >&6
15122 else
15123   case $CPIO in
15124   [\\/]* | ?:[\\/]*)
15125   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
15126   ;;
15127   *)
15128   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15129 for as_dir in $PATH
15130 do
15131   IFS=$as_save_IFS
15132   test -z "$as_dir" && as_dir=.
15133     for ac_exec_ext in '' $ac_executable_extensions; do
15134   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15135     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
15136     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15137     break 2
15138   fi
15139 done
15140   done
15141 IFS=$as_save_IFS
15142 
15143   ;;
15144 esac
15145 fi
15146 CPIO=$ac_cv_path_CPIO
15147 if test -n "$CPIO"; then
15148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
15149 $as_echo "$CPIO" >&6; }
15150 else
15151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15152 $as_echo "no" >&6; }
15153 fi
15154 
15155 
15156           if test "x$CPIO" = x; then
15157             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
15158           fi
15159         else
15160           # Otherwise we believe it is a complete path. Use it as it is.
15161           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5
15162 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;}
15163           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5
15164 $as_echo_n "checking for CPIO... " >&6; }
15165           if test ! -x "$tool_specified"; then
15166             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15167 $as_echo "not found" >&6; }
15168             as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5
15169           fi
15170           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
15171 $as_echo "$tool_specified" >&6; }
15172         fi
15173       fi
15174     fi
15175 
15176   fi
15177 
15178 
15179 
15180 
15181   # Publish this variable in the help.
15182 
15183 
15184   if [ -z "${NICE+x}" ]; then
15185     # The variable is not set by user, try to locate tool using the code snippet
15186     for ac_prog in nice
15187 do
15188   # Extract the first word of "$ac_prog", so it can be a program name with args.
15189 set dummy $ac_prog; ac_word=$2
15190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15191 $as_echo_n "checking for $ac_word... " >&6; }
15192 if ${ac_cv_path_NICE+:} false; then :
15193   $as_echo_n "(cached) " >&6
15194 else
15195   case $NICE in
15196   [\\/]* | ?:[\\/]*)
15197   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
15198   ;;
15199   *)
15200   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15201 for as_dir in $PATH
15202 do
15203   IFS=$as_save_IFS
15204   test -z "$as_dir" && as_dir=.
15205     for ac_exec_ext in '' $ac_executable_extensions; do
15206   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15207     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
15208     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15209     break 2
15210   fi
15211 done
15212   done
15213 IFS=$as_save_IFS
15214 
15215   ;;
15216 esac
15217 fi
15218 NICE=$ac_cv_path_NICE
15219 if test -n "$NICE"; then
15220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5
15221 $as_echo "$NICE" >&6; }
15222 else
15223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15224 $as_echo "no" >&6; }
15225 fi
15226 
15227 
15228   test -n "$NICE" && break
15229 done
15230 
15231   else
15232     # The variable is set, but is it from the command line or the environment?
15233 
15234     # Try to remove the string !NICE! from our list.
15235     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NICE!/}
15236     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
15237       # If it failed, the variable was not from the command line. Ignore it,
15238       # but warn the user (except for BASH, which is always set by the calling BASH).
15239       if test "xNICE" != xBASH; then
15240         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NICE from the environment. Use command line variables instead." >&5
15241 $as_echo "$as_me: WARNING: Ignoring value of NICE from the environment. Use command line variables instead." >&2;}
15242       fi
15243       # Try to locate tool using the code snippet
15244       for ac_prog in nice
15245 do
15246   # Extract the first word of "$ac_prog", so it can be a program name with args.
15247 set dummy $ac_prog; ac_word=$2
15248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15249 $as_echo_n "checking for $ac_word... " >&6; }
15250 if ${ac_cv_path_NICE+:} false; then :
15251   $as_echo_n "(cached) " >&6
15252 else
15253   case $NICE in
15254   [\\/]* | ?:[\\/]*)
15255   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
15256   ;;
15257   *)
15258   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15259 for as_dir in $PATH
15260 do
15261   IFS=$as_save_IFS
15262   test -z "$as_dir" && as_dir=.
15263     for ac_exec_ext in '' $ac_executable_extensions; do
15264   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15265     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
15266     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15267     break 2
15268   fi
15269 done
15270   done
15271 IFS=$as_save_IFS
15272 
15273   ;;
15274 esac
15275 fi
15276 NICE=$ac_cv_path_NICE
15277 if test -n "$NICE"; then
15278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5
15279 $as_echo "$NICE" >&6; }
15280 else
15281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15282 $as_echo "no" >&6; }
15283 fi
15284 
15285 
15286   test -n "$NICE" && break
15287 done
15288 
15289     else
15290       # If it succeeded, then it was overridden by the user. We will use it
15291       # for the tool.
15292 
15293       # First remove it from the list of overridden variables, so we can test
15294       # for unknown variables in the end.
15295       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
15296 
15297       # Check if we try to supply an empty value
15298       if test "x$NICE" = x; then
15299         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NICE= (no value)" >&5
15300 $as_echo "$as_me: Setting user supplied tool NICE= (no value)" >&6;}
15301         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NICE" >&5
15302 $as_echo_n "checking for NICE... " >&6; }
15303         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
15304 $as_echo "disabled" >&6; }
15305       else
15306         # Check if the provided tool contains a complete path.
15307         tool_specified="$NICE"
15308         tool_basename="${tool_specified##*/}"
15309         if test "x$tool_basename" = "x$tool_specified"; then
15310           # A command without a complete path is provided, search $PATH.
15311           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NICE=$tool_basename" >&5
15312 $as_echo "$as_me: Will search for user supplied tool NICE=$tool_basename" >&6;}
15313           # Extract the first word of "$tool_basename", so it can be a program name with args.
15314 set dummy $tool_basename; ac_word=$2
15315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15316 $as_echo_n "checking for $ac_word... " >&6; }
15317 if ${ac_cv_path_NICE+:} false; then :
15318   $as_echo_n "(cached) " >&6
15319 else
15320   case $NICE in
15321   [\\/]* | ?:[\\/]*)
15322   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
15323   ;;
15324   *)
15325   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15326 for as_dir in $PATH
15327 do
15328   IFS=$as_save_IFS
15329   test -z "$as_dir" && as_dir=.
15330     for ac_exec_ext in '' $ac_executable_extensions; do
15331   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15332     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
15333     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15334     break 2
15335   fi
15336 done
15337   done
15338 IFS=$as_save_IFS
15339 
15340   ;;
15341 esac
15342 fi
15343 NICE=$ac_cv_path_NICE
15344 if test -n "$NICE"; then
15345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5
15346 $as_echo "$NICE" >&6; }
15347 else
15348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15349 $as_echo "no" >&6; }
15350 fi
15351 
15352 
15353           if test "x$NICE" = x; then
15354             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
15355           fi
15356         else
15357           # Otherwise we believe it is a complete path. Use it as it is.
15358           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NICE=$tool_specified" >&5
15359 $as_echo "$as_me: Will use user supplied tool NICE=$tool_specified" >&6;}
15360           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NICE" >&5
15361 $as_echo_n "checking for NICE... " >&6; }
15362           if test ! -x "$tool_specified"; then
15363             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15364 $as_echo "not found" >&6; }
15365             as_fn_error $? "User supplied tool NICE=$tool_specified does not exist or is not executable" "$LINENO" 5
15366           fi
15367           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
15368 $as_echo "$tool_specified" >&6; }
15369         fi
15370       fi
15371     fi
15372 
15373   fi
15374 
15375 
15376 
15377 
15378   # Publish this variable in the help.
15379 
15380 
15381   if [ -z "${PANDOC+x}" ]; then
15382     # The variable is not set by user, try to locate tool using the code snippet
15383     for ac_prog in pandoc
15384 do
15385   # Extract the first word of "$ac_prog", so it can be a program name with args.
15386 set dummy $ac_prog; ac_word=$2
15387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15388 $as_echo_n "checking for $ac_word... " >&6; }
15389 if ${ac_cv_path_PANDOC+:} false; then :
15390   $as_echo_n "(cached) " >&6
15391 else
15392   case $PANDOC in
15393   [\\/]* | ?:[\\/]*)
15394   ac_cv_path_PANDOC="$PANDOC" # Let the user override the test with a path.
15395   ;;
15396   *)
15397   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15398 for as_dir in $PATH
15399 do
15400   IFS=$as_save_IFS
15401   test -z "$as_dir" && as_dir=.
15402     for ac_exec_ext in '' $ac_executable_extensions; do
15403   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15404     ac_cv_path_PANDOC="$as_dir/$ac_word$ac_exec_ext"
15405     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15406     break 2
15407   fi
15408 done
15409   done
15410 IFS=$as_save_IFS
15411 
15412   ;;
15413 esac
15414 fi
15415 PANDOC=$ac_cv_path_PANDOC
15416 if test -n "$PANDOC"; then
15417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANDOC" >&5
15418 $as_echo "$PANDOC" >&6; }
15419 else
15420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15421 $as_echo "no" >&6; }
15422 fi
15423 
15424 
15425   test -n "$PANDOC" && break
15426 done
15427 
15428   else
15429     # The variable is set, but is it from the command line or the environment?
15430 
15431     # Try to remove the string !PANDOC! from our list.
15432     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PANDOC!/}
15433     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
15434       # If it failed, the variable was not from the command line. Ignore it,
15435       # but warn the user (except for BASH, which is always set by the calling BASH).
15436       if test "xPANDOC" != xBASH; then
15437         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PANDOC from the environment. Use command line variables instead." >&5
15438 $as_echo "$as_me: WARNING: Ignoring value of PANDOC from the environment. Use command line variables instead." >&2;}
15439       fi
15440       # Try to locate tool using the code snippet
15441       for ac_prog in pandoc
15442 do
15443   # Extract the first word of "$ac_prog", so it can be a program name with args.
15444 set dummy $ac_prog; ac_word=$2
15445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15446 $as_echo_n "checking for $ac_word... " >&6; }
15447 if ${ac_cv_path_PANDOC+:} false; then :
15448   $as_echo_n "(cached) " >&6
15449 else
15450   case $PANDOC in
15451   [\\/]* | ?:[\\/]*)
15452   ac_cv_path_PANDOC="$PANDOC" # Let the user override the test with a path.
15453   ;;
15454   *)
15455   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15456 for as_dir in $PATH
15457 do
15458   IFS=$as_save_IFS
15459   test -z "$as_dir" && as_dir=.
15460     for ac_exec_ext in '' $ac_executable_extensions; do
15461   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15462     ac_cv_path_PANDOC="$as_dir/$ac_word$ac_exec_ext"
15463     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15464     break 2
15465   fi
15466 done
15467   done
15468 IFS=$as_save_IFS
15469 
15470   ;;
15471 esac
15472 fi
15473 PANDOC=$ac_cv_path_PANDOC
15474 if test -n "$PANDOC"; then
15475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANDOC" >&5
15476 $as_echo "$PANDOC" >&6; }
15477 else
15478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15479 $as_echo "no" >&6; }
15480 fi
15481 
15482 
15483   test -n "$PANDOC" && break
15484 done
15485 
15486     else
15487       # If it succeeded, then it was overridden by the user. We will use it
15488       # for the tool.
15489 
15490       # First remove it from the list of overridden variables, so we can test
15491       # for unknown variables in the end.
15492       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
15493 
15494       # Check if we try to supply an empty value
15495       if test "x$PANDOC" = x; then
15496         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PANDOC= (no value)" >&5
15497 $as_echo "$as_me: Setting user supplied tool PANDOC= (no value)" >&6;}
15498         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANDOC" >&5
15499 $as_echo_n "checking for PANDOC... " >&6; }
15500         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
15501 $as_echo "disabled" >&6; }
15502       else
15503         # Check if the provided tool contains a complete path.
15504         tool_specified="$PANDOC"
15505         tool_basename="${tool_specified##*/}"
15506         if test "x$tool_basename" = "x$tool_specified"; then
15507           # A command without a complete path is provided, search $PATH.
15508           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PANDOC=$tool_basename" >&5
15509 $as_echo "$as_me: Will search for user supplied tool PANDOC=$tool_basename" >&6;}
15510           # Extract the first word of "$tool_basename", so it can be a program name with args.
15511 set dummy $tool_basename; ac_word=$2
15512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15513 $as_echo_n "checking for $ac_word... " >&6; }
15514 if ${ac_cv_path_PANDOC+:} false; then :
15515   $as_echo_n "(cached) " >&6
15516 else
15517   case $PANDOC in
15518   [\\/]* | ?:[\\/]*)
15519   ac_cv_path_PANDOC="$PANDOC" # Let the user override the test with a path.
15520   ;;
15521   *)
15522   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15523 for as_dir in $PATH
15524 do
15525   IFS=$as_save_IFS
15526   test -z "$as_dir" && as_dir=.
15527     for ac_exec_ext in '' $ac_executable_extensions; do
15528   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15529     ac_cv_path_PANDOC="$as_dir/$ac_word$ac_exec_ext"
15530     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15531     break 2
15532   fi
15533 done
15534   done
15535 IFS=$as_save_IFS
15536 
15537   ;;
15538 esac
15539 fi
15540 PANDOC=$ac_cv_path_PANDOC
15541 if test -n "$PANDOC"; then
15542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANDOC" >&5
15543 $as_echo "$PANDOC" >&6; }
15544 else
15545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15546 $as_echo "no" >&6; }
15547 fi
15548 
15549 
15550           if test "x$PANDOC" = x; then
15551             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
15552           fi
15553         else
15554           # Otherwise we believe it is a complete path. Use it as it is.
15555           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PANDOC=$tool_specified" >&5
15556 $as_echo "$as_me: Will use user supplied tool PANDOC=$tool_specified" >&6;}
15557           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANDOC" >&5
15558 $as_echo_n "checking for PANDOC... " >&6; }
15559           if test ! -x "$tool_specified"; then
15560             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15561 $as_echo "not found" >&6; }
15562             as_fn_error $? "User supplied tool PANDOC=$tool_specified does not exist or is not executable" "$LINENO" 5
15563           fi
15564           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
15565 $as_echo "$tool_specified" >&6; }
15566         fi
15567       fi
15568     fi
15569 
15570   fi
15571 
15572 
15573 
15574 
15575 # Now we can determine OpenJDK build and target platforms. This is required to
15576 # have early on.
15577 # Make sure we can run config.sub.
15578 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
15579   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
15580 
15581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
15582 $as_echo_n "checking build system type... " >&6; }
15583 if ${ac_cv_build+:} false; then :
15584   $as_echo_n "(cached) " >&6
15585 else
15586   ac_build_alias=$build_alias
15587 test "x$ac_build_alias" = x &&
15588   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
15589 test "x$ac_build_alias" = x &&
15590   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
15591 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
15592   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
15593 
15594 fi
15595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
15596 $as_echo "$ac_cv_build" >&6; }
15597 case $ac_cv_build in
15598 *-*-*) ;;
15599 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
15600 esac
15601 build=$ac_cv_build
15602 ac_save_IFS=$IFS; IFS='-'
15603 set x $ac_cv_build
15604 shift
15605 build_cpu=$1
15606 build_vendor=$2
15607 shift; shift
15608 # Remember, the first character of IFS is used to create $*,
15609 # except with old shells:
15610 build_os=$*
15611 IFS=$ac_save_IFS
15612 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
15613 
15614 
15615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
15616 $as_echo_n "checking host system type... " >&6; }
15617 if ${ac_cv_host+:} false; then :
15618   $as_echo_n "(cached) " >&6
15619 else
15620   if test "x$host_alias" = x; then
15621   ac_cv_host=$ac_cv_build
15622 else
15623   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
15624     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
15625 fi
15626 
15627 fi
15628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
15629 $as_echo "$ac_cv_host" >&6; }
15630 case $ac_cv_host in
15631 *-*-*) ;;
15632 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
15633 esac
15634 host=$ac_cv_host
15635 ac_save_IFS=$IFS; IFS='-'
15636 set x $ac_cv_host
15637 shift
15638 host_cpu=$1
15639 host_vendor=$2
15640 shift; shift
15641 # Remember, the first character of IFS is used to create $*,
15642 # except with old shells:
15643 host_os=$*
15644 IFS=$ac_save_IFS
15645 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
15646 
15647 
15648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
15649 $as_echo_n "checking target system type... " >&6; }
15650 if ${ac_cv_target+:} false; then :
15651   $as_echo_n "(cached) " >&6
15652 else
15653   if test "x$target_alias" = x; then
15654   ac_cv_target=$ac_cv_host
15655 else
15656   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
15657     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
15658 fi
15659 
15660 fi
15661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
15662 $as_echo "$ac_cv_target" >&6; }
15663 case $ac_cv_target in
15664 *-*-*) ;;
15665 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
15666 esac
15667 target=$ac_cv_target
15668 ac_save_IFS=$IFS; IFS='-'
15669 set x $ac_cv_target
15670 shift
15671 target_cpu=$1
15672 target_vendor=$2
15673 shift; shift
15674 # Remember, the first character of IFS is used to create $*,
15675 # except with old shells:
15676 target_os=$*
15677 IFS=$ac_save_IFS
15678 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
15679 
15680 
15681 # The aliases save the names the user supplied, while $host etc.
15682 # will get canonicalized.
15683 test -n "$target_alias" &&
15684   test "$program_prefix$program_suffix$program_transform_name" = \
15685     NONENONEs,x,x, &&
15686   program_prefix=${target_alias}-
15687 
15688   # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target"
15689   # is confusing; it assumes you are cross-compiling a cross-compiler (!)  and "target" is thus the target of the
15690   # product you're building. The target of this build is called "host". Since this is confusing to most people, we
15691   # have not adopted that system, but use "target" as the platform we are building for. In some places though we need
15692   # to use the configure naming style.
15693 
15694 
15695 
15696 
15697 
15698   # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME
15699   # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME
15700   # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build,
15701   # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME.
15702   OPENJDK_TARGET_AUTOCONF_NAME="$host"
15703   OPENJDK_BUILD_AUTOCONF_NAME="$build"
15704 
15705 
15706 
15707   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
15708 
15709   case "$build_os" in
15710     *linux*)
15711       VAR_OS=linux
15712       VAR_OS_TYPE=unix
15713       ;;
15714     *solaris*)
15715       VAR_OS=solaris
15716       VAR_OS_TYPE=unix
15717       ;;
15718     *darwin*)
15719       VAR_OS=macosx
15720       VAR_OS_TYPE=unix
15721       ;;
15722     *bsd*)
15723       VAR_OS=bsd
15724       VAR_OS_TYPE=unix
15725       ;;
15726     *cygwin*)
15727       VAR_OS=windows
15728       VAR_OS_ENV=windows.cygwin
15729       ;;
15730     *mingw*)
15731       VAR_OS=windows
15732       VAR_OS_ENV=windows.msys
15733       ;;
15734     *aix*)
15735       VAR_OS=aix
15736       VAR_OS_TYPE=unix
15737       ;;
15738     *)
15739       as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5
15740       ;;
15741   esac
15742 
15743 
15744   # First argument is the cpu name from the trip/quad
15745   case "$build_cpu" in
15746     x86_64)
15747       VAR_CPU=x86_64
15748       VAR_CPU_ARCH=x86
15749       VAR_CPU_BITS=64
15750       VAR_CPU_ENDIAN=little
15751       ;;
15752     i?86)
15753       VAR_CPU=x86
15754       VAR_CPU_ARCH=x86
15755       VAR_CPU_BITS=32
15756       VAR_CPU_ENDIAN=little
15757       ;;
15758     alpha*)
15759       VAR_CPU=alpha
15760       VAR_CPU_ARCH=alpha
15761       VAR_CPU_BITS=64
15762       VAR_CPU_ENDIAN=little
15763       ;;
15764     arm*)
15765       VAR_CPU=arm
15766       VAR_CPU_ARCH=arm
15767       VAR_CPU_BITS=32
15768       VAR_CPU_ENDIAN=little
15769       ;;
15770     aarch64)
15771       VAR_CPU=aarch64
15772       VAR_CPU_ARCH=aarch64
15773       VAR_CPU_BITS=64
15774       VAR_CPU_ENDIAN=little
15775       ;;
15776     m68k)
15777       VAR_CPU=m68k
15778       VAR_CPU_ARCH=m68k
15779       VAR_CPU_BITS=32
15780       VAR_CPU_ENDIAN=big
15781       ;;
15782     mips)
15783       VAR_CPU=mips
15784       VAR_CPU_ARCH=mips
15785       VAR_CPU_BITS=32
15786       VAR_CPU_ENDIAN=big
15787       ;;
15788     mipsel)
15789       VAR_CPU=mipsel
15790       VAR_CPU_ARCH=mipsel
15791       VAR_CPU_BITS=32
15792       VAR_CPU_ENDIAN=little
15793       ;;
15794     mips64)
15795       VAR_CPU=mips64
15796       VAR_CPU_ARCH=mips64
15797       VAR_CPU_BITS=64
15798       VAR_CPU_ENDIAN=big
15799       ;;
15800     mips64el)
15801       VAR_CPU=mips64el
15802       VAR_CPU_ARCH=mips64el
15803       VAR_CPU_BITS=64
15804       VAR_CPU_ENDIAN=little
15805       ;;
15806     powerpc)
15807       VAR_CPU=ppc
15808       VAR_CPU_ARCH=ppc
15809       VAR_CPU_BITS=32
15810       VAR_CPU_ENDIAN=big
15811       ;;
15812     powerpc64)
15813       VAR_CPU=ppc64
15814       VAR_CPU_ARCH=ppc
15815       VAR_CPU_BITS=64
15816       VAR_CPU_ENDIAN=big
15817       ;;
15818     powerpc64le)
15819       VAR_CPU=ppc64le
15820       VAR_CPU_ARCH=ppc
15821       VAR_CPU_BITS=64
15822       VAR_CPU_ENDIAN=little
15823       ;;
15824     s390)
15825       VAR_CPU=s390
15826       VAR_CPU_ARCH=s390
15827       VAR_CPU_BITS=32
15828       VAR_CPU_ENDIAN=big
15829       ;;
15830     s390x)
15831       VAR_CPU=s390x
15832       VAR_CPU_ARCH=s390
15833       VAR_CPU_BITS=64
15834       VAR_CPU_ENDIAN=big
15835       ;;
15836     sh*eb)
15837       VAR_CPU=sh
15838       VAR_CPU_ARCH=sh
15839       VAR_CPU_BITS=32
15840       VAR_CPU_ENDIAN=big
15841       ;;
15842     sh*)
15843       VAR_CPU=sh
15844       VAR_CPU_ARCH=sh
15845       VAR_CPU_BITS=32
15846       VAR_CPU_ENDIAN=little
15847       ;;
15848     sparc)
15849       VAR_CPU=sparc
15850       VAR_CPU_ARCH=sparc
15851       VAR_CPU_BITS=32
15852       VAR_CPU_ENDIAN=big
15853       ;;
15854     sparcv9|sparc64)
15855       VAR_CPU=sparcv9
15856       VAR_CPU_ARCH=sparc
15857       VAR_CPU_BITS=64
15858       VAR_CPU_ENDIAN=big
15859       ;;
15860     *)
15861       as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5
15862       ;;
15863   esac
15864 
15865   # ..and setup our own variables. (Do this explicitly to facilitate searching)
15866   OPENJDK_BUILD_OS="$VAR_OS"
15867   if test "x$VAR_OS_TYPE" != x; then
15868     OPENJDK_BUILD_OS_TYPE="$VAR_OS_TYPE"
15869   else
15870     OPENJDK_BUILD_OS_TYPE="$VAR_OS"
15871   fi
15872   if test "x$VAR_OS_ENV" != x; then
15873     OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV"
15874   else
15875     OPENJDK_BUILD_OS_ENV="$VAR_OS"
15876   fi
15877   OPENJDK_BUILD_CPU="$VAR_CPU"
15878   OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH"
15879   OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS"
15880   OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN"
15881 
15882 
15883 
15884 
15885 
15886 
15887 
15888 
15889   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5
15890 $as_echo_n "checking openjdk-build os-cpu... " >&6; }
15891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5
15892 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; }
15893 
15894   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
15895 
15896   case "$host_os" in
15897     *linux*)
15898       VAR_OS=linux
15899       VAR_OS_TYPE=unix
15900       ;;
15901     *solaris*)
15902       VAR_OS=solaris
15903       VAR_OS_TYPE=unix
15904       ;;
15905     *darwin*)
15906       VAR_OS=macosx
15907       VAR_OS_TYPE=unix
15908       ;;
15909     *bsd*)
15910       VAR_OS=bsd
15911       VAR_OS_TYPE=unix
15912       ;;
15913     *cygwin*)
15914       VAR_OS=windows
15915       VAR_OS_ENV=windows.cygwin
15916       ;;
15917     *mingw*)
15918       VAR_OS=windows
15919       VAR_OS_ENV=windows.msys
15920       ;;
15921     *aix*)
15922       VAR_OS=aix
15923       VAR_OS_TYPE=unix
15924       ;;
15925     *)
15926       as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5
15927       ;;
15928   esac
15929 
15930 
15931   # First argument is the cpu name from the trip/quad
15932   case "$host_cpu" in
15933     x86_64)
15934       VAR_CPU=x86_64
15935       VAR_CPU_ARCH=x86
15936       VAR_CPU_BITS=64
15937       VAR_CPU_ENDIAN=little
15938       ;;
15939     i?86)
15940       VAR_CPU=x86
15941       VAR_CPU_ARCH=x86
15942       VAR_CPU_BITS=32
15943       VAR_CPU_ENDIAN=little
15944       ;;
15945     alpha*)
15946       VAR_CPU=alpha
15947       VAR_CPU_ARCH=alpha
15948       VAR_CPU_BITS=64
15949       VAR_CPU_ENDIAN=little
15950       ;;
15951     arm*)
15952       VAR_CPU=arm
15953       VAR_CPU_ARCH=arm
15954       VAR_CPU_BITS=32
15955       VAR_CPU_ENDIAN=little
15956       ;;
15957     aarch64)
15958       VAR_CPU=aarch64
15959       VAR_CPU_ARCH=aarch64
15960       VAR_CPU_BITS=64
15961       VAR_CPU_ENDIAN=little
15962       ;;
15963     m68k)
15964       VAR_CPU=m68k
15965       VAR_CPU_ARCH=m68k
15966       VAR_CPU_BITS=32
15967       VAR_CPU_ENDIAN=big
15968       ;;
15969     mips)
15970       VAR_CPU=mips
15971       VAR_CPU_ARCH=mips
15972       VAR_CPU_BITS=32
15973       VAR_CPU_ENDIAN=big
15974       ;;
15975     mipsel)
15976       VAR_CPU=mipsel
15977       VAR_CPU_ARCH=mipsel
15978       VAR_CPU_BITS=32
15979       VAR_CPU_ENDIAN=little
15980       ;;
15981     mips64)
15982       VAR_CPU=mips64
15983       VAR_CPU_ARCH=mips64
15984       VAR_CPU_BITS=64
15985       VAR_CPU_ENDIAN=big
15986       ;;
15987     mips64el)
15988       VAR_CPU=mips64el
15989       VAR_CPU_ARCH=mips64el
15990       VAR_CPU_BITS=64
15991       VAR_CPU_ENDIAN=little
15992       ;;
15993     powerpc)
15994       VAR_CPU=ppc
15995       VAR_CPU_ARCH=ppc
15996       VAR_CPU_BITS=32
15997       VAR_CPU_ENDIAN=big
15998       ;;
15999     powerpc64)
16000       VAR_CPU=ppc64
16001       VAR_CPU_ARCH=ppc
16002       VAR_CPU_BITS=64
16003       VAR_CPU_ENDIAN=big
16004       ;;
16005     powerpc64le)
16006       VAR_CPU=ppc64le
16007       VAR_CPU_ARCH=ppc
16008       VAR_CPU_BITS=64
16009       VAR_CPU_ENDIAN=little
16010       ;;
16011     s390)
16012       VAR_CPU=s390
16013       VAR_CPU_ARCH=s390
16014       VAR_CPU_BITS=32
16015       VAR_CPU_ENDIAN=big
16016       ;;
16017     s390x)
16018       VAR_CPU=s390x
16019       VAR_CPU_ARCH=s390
16020       VAR_CPU_BITS=64
16021       VAR_CPU_ENDIAN=big
16022       ;;
16023     sh*eb)
16024       VAR_CPU=sh
16025       VAR_CPU_ARCH=sh
16026       VAR_CPU_BITS=32
16027       VAR_CPU_ENDIAN=big
16028       ;;
16029     sh*)
16030       VAR_CPU=sh
16031       VAR_CPU_ARCH=sh
16032       VAR_CPU_BITS=32
16033       VAR_CPU_ENDIAN=little
16034       ;;
16035     sparc)
16036       VAR_CPU=sparc
16037       VAR_CPU_ARCH=sparc
16038       VAR_CPU_BITS=32
16039       VAR_CPU_ENDIAN=big
16040       ;;
16041     sparcv9|sparc64)
16042       VAR_CPU=sparcv9
16043       VAR_CPU_ARCH=sparc
16044       VAR_CPU_BITS=64
16045       VAR_CPU_ENDIAN=big
16046       ;;
16047     *)
16048       as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5
16049       ;;
16050   esac
16051 
16052   # ... and setup our own variables. (Do this explicitly to facilitate searching)
16053   OPENJDK_TARGET_OS="$VAR_OS"
16054   if test "x$VAR_OS_TYPE" != x; then
16055     OPENJDK_TARGET_OS_TYPE="$VAR_OS_TYPE"
16056   else
16057     OPENJDK_TARGET_OS_TYPE="$VAR_OS"
16058   fi
16059   if test "x$VAR_OS_ENV" != x; then
16060     OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV"
16061   else
16062     OPENJDK_TARGET_OS_ENV="$VAR_OS"
16063   fi
16064   OPENJDK_TARGET_CPU="$VAR_CPU"
16065   OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH"
16066   OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS"
16067   OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN"
16068 
16069 
16070 
16071 
16072 
16073 
16074 
16075 
16076   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5
16077 $as_echo_n "checking openjdk-target os-cpu... " >&6; }
16078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5
16079 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; }
16080 
16081 
16082 
16083 # Check whether --with-target-bits was given.
16084 if test "${with_target_bits+set}" = set; then :
16085   withval=$with_target_bits;
16086 fi
16087 
16088 
16089   # We have three types of compiles:
16090   # native  == normal compilation, target system == build system
16091   # cross   == traditional cross compilation, target system != build system; special toolchain needed
16092   # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines
16093   #
16094   if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then
16095     # We're doing a proper cross-compilation
16096     COMPILE_TYPE="cross"
16097   else
16098     COMPILE_TYPE="native"
16099   fi
16100 
16101   if test "x$with_target_bits" != x; then
16102     if test "x$COMPILE_TYPE" = "xcross"; then
16103       as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5
16104     fi
16105 
16106     if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
16107       # A reduced build is requested
16108       COMPILE_TYPE="reduced"
16109       OPENJDK_TARGET_CPU_BITS=32
16110       if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then
16111         OPENJDK_TARGET_CPU=x86
16112       elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then
16113         OPENJDK_TARGET_CPU=sparc
16114       else
16115         as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5
16116       fi
16117     elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
16118       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
16119     elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then
16120       { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5
16121 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;}
16122     else
16123       as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5
16124     fi
16125   fi
16126 
16127 
16128   { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5
16129 $as_echo_n "checking compilation type... " >&6; }
16130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5
16131 $as_echo "$COMPILE_TYPE" >&6; }
16132 
16133 
16134   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
16135     OPENJDK_MODULE_TARGET_OS_NAME="macos"
16136   else
16137     OPENJDK_MODULE_TARGET_OS_NAME="$OPENJDK_TARGET_OS"
16138   fi
16139 
16140   if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
16141     OPENJDK_MODULE_TARGET_OS_ARCH="amd64"
16142   else
16143     OPENJDK_MODULE_TARGET_OS_ARCH="$OPENJDK_TARGET_CPU"
16144   fi
16145 
16146   OPENJDK_MODULE_TARGET_PLATFORM="${OPENJDK_MODULE_TARGET_OS_NAME}-${OPENJDK_MODULE_TARGET_OS_ARCH}"
16147 
16148 
16149 
16150   if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
16151     RELEASE_FILE_OS_NAME=SunOS
16152   fi
16153   if test "x$OPENJDK_TARGET_OS" = "xlinux"; then
16154     RELEASE_FILE_OS_NAME=Linux
16155   fi
16156   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
16157     RELEASE_FILE_OS_NAME=Windows
16158   fi
16159   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
16160     RELEASE_FILE_OS_NAME="Darwin"
16161   fi
16162   if test "x$OPENJDK_TARGET_OS" = "xaix"; then
16163     RELEASE_FILE_OS_NAME="AIX"
16164   fi
16165   RELEASE_FILE_OS_ARCH=${OPENJDK_TARGET_CPU}
16166 
16167 
16168 
16169 
16170 
16171 
16172   # Also store the legacy naming of the cpu.
16173   # Ie i586 and amd64 instead of x86 and x86_64
16174   OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU"
16175   if test "x$OPENJDK_TARGET_CPU" = xx86; then
16176     OPENJDK_TARGET_CPU_LEGACY="i586"
16177   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
16178     # On all platforms except MacOSX replace x86_64 with amd64.
16179     OPENJDK_TARGET_CPU_LEGACY="amd64"
16180   elif test "x$OPENJDK_TARGET_CPU" = xalpha; then
16181     # Avoid name collisions with variables named alpha
16182     OPENJDK_TARGET_CPU_LEGACY="_alpha_"
16183   elif test "x$OPENJDK_TARGET_CPU" = xsh; then
16184     # Avoid name collisions with variables named sh
16185     OPENJDK_TARGET_CPU_LEGACY="_sh_"
16186   fi
16187 
16188 
16189   # And the second legacy naming of the cpu.
16190   # Ie i386 and amd64 instead of x86 and x86_64.
16191   OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU"
16192   if test "x$OPENJDK_TARGET_CPU" = xx86; then
16193     OPENJDK_TARGET_CPU_LEGACY_LIB="i386"
16194   elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then
16195     OPENJDK_TARGET_CPU_LEGACY_LIB="amd64"
16196   fi
16197 
16198 
16199   # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to
16200   # /amd64 or /sparcv9. This string is appended to some library paths, like this:
16201   # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so
16202   OPENJDK_TARGET_CPU_ISADIR=""
16203   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
16204     if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
16205       OPENJDK_TARGET_CPU_ISADIR="/amd64"
16206     elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
16207       OPENJDK_TARGET_CPU_ISADIR="/sparcv9"
16208     fi
16209   fi
16210 
16211 
16212   # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property
16213   OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU"
16214   if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then
16215     # On linux only, we replace x86 with i386.
16216     OPENJDK_TARGET_CPU_OSARCH="i386"
16217   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
16218     # On all platforms except macosx, we replace x86_64 with amd64.
16219     OPENJDK_TARGET_CPU_OSARCH="amd64"
16220   fi
16221 
16222 
16223   OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU"
16224   if test "x$OPENJDK_TARGET_CPU" = xx86; then
16225     OPENJDK_TARGET_CPU_JLI="i386"
16226   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
16227     # On all platforms except macosx, we replace x86_64 with amd64.
16228     OPENJDK_TARGET_CPU_JLI="amd64"
16229   fi
16230 
16231   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
16232       OPENJDK_TARGET_OS_EXPORT_DIR=macosx
16233   else
16234       OPENJDK_TARGET_OS_EXPORT_DIR=${OPENJDK_TARGET_OS_TYPE}
16235   fi
16236 
16237 
16238   # The new version string in JDK 9 also defined new naming of OS and ARCH for bundles
16239   # Macosx is osx and x86_64 is x64
16240   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
16241     OPENJDK_TARGET_OS_BUNDLE="osx"
16242   else
16243     OPENJDK_TARGET_OS_BUNDLE="$OPENJDK_TARGET_OS"
16244   fi
16245   if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
16246     OPENJDK_TARGET_CPU_BUNDLE="x64"
16247   else
16248     OPENJDK_TARGET_CPU_BUNDLE="$OPENJDK_TARGET_CPU"
16249   fi
16250   OPENJDK_TARGET_BUNDLE_PLATFORM="${OPENJDK_TARGET_OS_BUNDLE}-${OPENJDK_TARGET_CPU_BUNDLE}"
16251 
16252 
16253   if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
16254     # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in
16255     # unpack200.exe. This variable is used in
16256     # FLAGS_SETUP_COMPILER_FLAGS_FOR_JDK_HELPER.
16257     if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then
16258       OPENJDK_TARGET_ADD_LP64="-D_LP64=1"
16259     fi
16260   fi
16261 
16262   if test "x$COMPILE_TYPE" = "xcross"; then
16263     # FIXME: ... or should this include reduced builds..?
16264     DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY"
16265   else
16266     DEFINE_CROSS_COMPILE_ARCH=""
16267   fi
16268 
16269 
16270   # Convert openjdk platform names to hotspot names
16271 
16272   HOTSPOT_TARGET_OS=${OPENJDK_TARGET_OS}
16273   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
16274     HOTSPOT_TARGET_OS=bsd
16275   fi
16276 
16277 
16278   HOTSPOT_TARGET_OS_TYPE=${OPENJDK_TARGET_OS_TYPE}
16279   if test "x$OPENJDK_TARGET_OS_TYPE" = xunix; then
16280     HOTSPOT_TARGET_OS_TYPE=posix
16281   fi
16282 
16283 
16284   HOTSPOT_TARGET_CPU=${OPENJDK_TARGET_CPU}
16285   if test "x$OPENJDK_TARGET_CPU" = xx86; then
16286     HOTSPOT_TARGET_CPU=x86_32
16287   elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
16288     HOTSPOT_TARGET_CPU=sparc
16289   elif test "x$OPENJDK_TARGET_CPU" = xppc64; then
16290     HOTSPOT_TARGET_CPU=ppc_64
16291   elif test "x$OPENJDK_TARGET_CPU" = xppc64le; then
16292     HOTSPOT_TARGET_CPU=ppc_64
16293   fi
16294 
16295 
16296   # This is identical with OPENJDK_*, but define anyway for consistency.
16297   HOTSPOT_TARGET_CPU_ARCH=${OPENJDK_TARGET_CPU_ARCH}
16298 
16299 
16300   # Setup HOTSPOT_TARGET_CPU_DEFINE
16301   if test "x$OPENJDK_TARGET_CPU" = xx86; then
16302     HOTSPOT_TARGET_CPU_DEFINE=IA32
16303   elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then
16304     HOTSPOT_TARGET_CPU_DEFINE=AMD64
16305   elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
16306     HOTSPOT_TARGET_CPU_DEFINE=SPARC
16307   elif test "x$OPENJDK_TARGET_CPU" = xaarch64; then
16308     HOTSPOT_TARGET_CPU_DEFINE=AARCH64
16309   elif test "x$OPENJDK_TARGET_CPU" = xppc64; then
16310     HOTSPOT_TARGET_CPU_DEFINE=PPC64
16311   elif test "x$OPENJDK_TARGET_CPU" = xppc64le; then
16312     HOTSPOT_TARGET_CPU_DEFINE=PPC64
16313 
16314   # The cpu defines below are for zero, we don't support them directly.
16315   elif test "x$OPENJDK_TARGET_CPU" = xsparc; then
16316     HOTSPOT_TARGET_CPU_DEFINE=SPARC
16317   elif test "x$OPENJDK_TARGET_CPU" = xppc; then
16318     HOTSPOT_TARGET_CPU_DEFINE=PPC32
16319   elif test "x$OPENJDK_TARGET_CPU" = xs390; then
16320     HOTSPOT_TARGET_CPU_DEFINE=S390
16321   elif test "x$OPENJDK_TARGET_CPU" = xs390x; then
16322     HOTSPOT_TARGET_CPU_DEFINE=S390
16323   elif test "x$OPENJDK_TARGET_CPU" != x; then
16324     HOTSPOT_TARGET_CPU_DEFINE=$(echo $OPENJDK_TARGET_CPU | tr a-z A-Z)
16325   fi
16326 
16327 
16328 
16329 
16330   # Also store the legacy naming of the cpu.
16331   # Ie i586 and amd64 instead of x86 and x86_64
16332   OPENJDK_BUILD_CPU_LEGACY="$OPENJDK_BUILD_CPU"
16333   if test "x$OPENJDK_BUILD_CPU" = xx86; then
16334     OPENJDK_BUILD_CPU_LEGACY="i586"
16335   elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16336     # On all platforms except MacOSX replace x86_64 with amd64.
16337     OPENJDK_BUILD_CPU_LEGACY="amd64"
16338   elif test "x$OPENJDK_BUILD_CPU" = xalpha; then
16339     # Avoid name collisions with variables named alpha
16340     OPENJDK_BUILD_CPU_LEGACY="_alpha_"
16341   elif test "x$OPENJDK_BUILD_CPU" = xsh; then
16342     # Avoid name collisions with variables named sh
16343     OPENJDK_BUILD_CPU_LEGACY="_sh_"
16344   fi
16345 
16346 
16347   # And the second legacy naming of the cpu.
16348   # Ie i386 and amd64 instead of x86 and x86_64.
16349   OPENJDK_BUILD_CPU_LEGACY_LIB="$OPENJDK_BUILD_CPU"
16350   if test "x$OPENJDK_BUILD_CPU" = xx86; then
16351     OPENJDK_BUILD_CPU_LEGACY_LIB="i386"
16352   elif test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16353     OPENJDK_BUILD_CPU_LEGACY_LIB="amd64"
16354   fi
16355 
16356 
16357   # OPENJDK_BUILD_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to
16358   # /amd64 or /sparcv9. This string is appended to some library paths, like this:
16359   # /usr/lib${OPENJDK_BUILD_CPU_ISADIR}/libexample.so
16360   OPENJDK_BUILD_CPU_ISADIR=""
16361   if test "x$OPENJDK_BUILD_OS" = xsolaris; then
16362     if test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16363       OPENJDK_BUILD_CPU_ISADIR="/amd64"
16364     elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then
16365       OPENJDK_BUILD_CPU_ISADIR="/sparcv9"
16366     fi
16367   fi
16368 
16369 
16370   # Setup OPENJDK_BUILD_CPU_OSARCH, which is used to set the os.arch Java system property
16371   OPENJDK_BUILD_CPU_OSARCH="$OPENJDK_BUILD_CPU"
16372   if test "x$OPENJDK_BUILD_OS" = xlinux && test "x$OPENJDK_BUILD_CPU" = xx86; then
16373     # On linux only, we replace x86 with i386.
16374     OPENJDK_BUILD_CPU_OSARCH="i386"
16375   elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16376     # On all platforms except macosx, we replace x86_64 with amd64.
16377     OPENJDK_BUILD_CPU_OSARCH="amd64"
16378   fi
16379 
16380 
16381   OPENJDK_BUILD_CPU_JLI="$OPENJDK_BUILD_CPU"
16382   if test "x$OPENJDK_BUILD_CPU" = xx86; then
16383     OPENJDK_BUILD_CPU_JLI="i386"
16384   elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16385     # On all platforms except macosx, we replace x86_64 with amd64.
16386     OPENJDK_BUILD_CPU_JLI="amd64"
16387   fi
16388 
16389   if test "x$OPENJDK_BUILD_OS" = xmacosx; then
16390       OPENJDK_BUILD_OS_EXPORT_DIR=macosx
16391   else
16392       OPENJDK_BUILD_OS_EXPORT_DIR=${OPENJDK_BUILD_OS_TYPE}
16393   fi
16394 
16395 
16396   # The new version string in JDK 9 also defined new naming of OS and ARCH for bundles
16397   # Macosx is osx and x86_64 is x64
16398   if test "x$OPENJDK_BUILD_OS" = xmacosx; then
16399     OPENJDK_BUILD_OS_BUNDLE="osx"
16400   else
16401     OPENJDK_BUILD_OS_BUNDLE="$OPENJDK_TARGET_OS"
16402   fi
16403   if test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16404     OPENJDK_BUILD_CPU_BUNDLE="x64"
16405   else
16406     OPENJDK_BUILD_CPU_BUNDLE="$OPENJDK_BUILD_CPU"
16407   fi
16408   OPENJDK_BUILD_BUNDLE_PLATFORM="${OPENJDK_BUILD_OS_BUNDLE}-${OPENJDK_BUILD_CPU_BUNDLE}"
16409 
16410 
16411   if test "x$OPENJDK_BUILD_CPU_BITS" = x64; then
16412     # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in
16413     # unpack200.exe. This variable is used in
16414     # FLAGS_SETUP_COMPILER_FLAGS_FOR_JDK_HELPER.
16415     if test "x$OPENJDK_BUILD_OS" = xlinux || test "x$OPENJDK_BUILD_OS" = xmacosx; then
16416       OPENJDK_BUILD_ADD_LP64="-D_LP64=1"
16417     fi
16418   fi
16419 
16420   if test "x$COMPILE_TYPE" = "xcross"; then
16421     # FIXME: ... or should this include reduced builds..?
16422     DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_BUILD_CPU_LEGACY"
16423   else
16424     DEFINE_CROSS_COMPILE_ARCH=""
16425   fi
16426 
16427 
16428   # Convert openjdk platform names to hotspot names
16429 
16430   HOTSPOT_BUILD_OS=${OPENJDK_BUILD_OS}
16431   if test "x$OPENJDK_BUILD_OS" = xmacosx; then
16432     HOTSPOT_BUILD_OS=bsd
16433   fi
16434 
16435 
16436   HOTSPOT_BUILD_OS_TYPE=${OPENJDK_BUILD_OS_TYPE}
16437   if test "x$OPENJDK_BUILD_OS_TYPE" = xunix; then
16438     HOTSPOT_BUILD_OS_TYPE=posix
16439   fi
16440 
16441 
16442   HOTSPOT_BUILD_CPU=${OPENJDK_BUILD_CPU}
16443   if test "x$OPENJDK_BUILD_CPU" = xx86; then
16444     HOTSPOT_BUILD_CPU=x86_32
16445   elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then
16446     HOTSPOT_BUILD_CPU=sparc
16447   elif test "x$OPENJDK_BUILD_CPU" = xppc64; then
16448     HOTSPOT_BUILD_CPU=ppc_64
16449   elif test "x$OPENJDK_BUILD_CPU" = xppc64le; then
16450     HOTSPOT_BUILD_CPU=ppc_64
16451   fi
16452 
16453 
16454   # This is identical with OPENJDK_*, but define anyway for consistency.
16455   HOTSPOT_BUILD_CPU_ARCH=${OPENJDK_BUILD_CPU_ARCH}
16456 
16457 
16458   # Setup HOTSPOT_BUILD_CPU_DEFINE
16459   if test "x$OPENJDK_BUILD_CPU" = xx86; then
16460     HOTSPOT_BUILD_CPU_DEFINE=IA32
16461   elif test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16462     HOTSPOT_BUILD_CPU_DEFINE=AMD64
16463   elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then
16464     HOTSPOT_BUILD_CPU_DEFINE=SPARC
16465   elif test "x$OPENJDK_BUILD_CPU" = xaarch64; then
16466     HOTSPOT_BUILD_CPU_DEFINE=AARCH64
16467   elif test "x$OPENJDK_BUILD_CPU" = xppc64; then
16468     HOTSPOT_BUILD_CPU_DEFINE=PPC64
16469   elif test "x$OPENJDK_BUILD_CPU" = xppc64le; then
16470     HOTSPOT_BUILD_CPU_DEFINE=PPC64
16471 
16472   # The cpu defines below are for zero, we don't support them directly.
16473   elif test "x$OPENJDK_BUILD_CPU" = xsparc; then
16474     HOTSPOT_BUILD_CPU_DEFINE=SPARC
16475   elif test "x$OPENJDK_BUILD_CPU" = xppc; then
16476     HOTSPOT_BUILD_CPU_DEFINE=PPC32
16477   elif test "x$OPENJDK_BUILD_CPU" = xs390; then
16478     HOTSPOT_BUILD_CPU_DEFINE=S390
16479   elif test "x$OPENJDK_BUILD_CPU" = xs390x; then
16480     HOTSPOT_BUILD_CPU_DEFINE=S390
16481   elif test "x$OPENJDK_BUILD_CPU" != x; then
16482     HOTSPOT_BUILD_CPU_DEFINE=$(echo $OPENJDK_BUILD_CPU | tr a-z A-Z)
16483   fi
16484 
16485 
16486 
16487 
16488 
16489 
16490 # Continue setting up basic stuff. Most remaining code require fundamental tools.
16491 
16492   # Save the current directory this script was started from
16493   CURDIR="$PWD"
16494 
16495   # We might need to rewrite ORIGINAL_PATH, if it includes "#", to quote them
16496   # for make. We couldn't do this when we retrieved ORIGINAL_PATH, since SED
16497   # was not available at that time.
16498   REWRITTEN_PATH=`$ECHO "$ORIGINAL_PATH" | $SED -e 's/#/\\\\#/g'`
16499   if test "x$REWRITTEN_PATH" != "x$ORIGINAL_PATH"; then
16500     ORIGINAL_PATH="$REWRITTEN_PATH"
16501     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&5
16502 $as_echo "$as_me: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&6;}
16503   fi
16504 
16505   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
16506     PATH_SEP=";"
16507 
16508   SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m`
16509   if test $SRC_ROOT_LENGTH -gt 100; then
16510     as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5
16511   fi
16512 
16513   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16514     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5
16515 $as_echo_n "checking cygwin release... " >&6; }
16516     CYGWIN_VERSION=`$UNAME -r`
16517     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5
16518 $as_echo "$CYGWIN_VERSION" >&6; }
16519     WINDOWS_ENV_VENDOR='cygwin'
16520     WINDOWS_ENV_VERSION="$CYGWIN_VERSION"
16521 
16522     CYGWIN_VERSION_OLD=`$ECHO $CYGWIN_VERSION | $GREP -e '^1\.0-6'`
16523     if test "x$CYGWIN_VERSION_OLD" != x; then
16524       { $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
16525 $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;}
16526       as_fn_error $? "Cannot continue" "$LINENO" 5
16527     fi
16528     if test "x$CYGPATH" = x; then
16529       as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5
16530     fi
16531     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5
16532 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; }
16533     # The cmd output ends with Windows line endings (CR/LF)
16534     cygwin_winpath_root=`cd / ; cmd /c cd | $TR -d '\r\n'`
16535     # Force cygpath to report the proper root by including a trailing space, and then stripping it off again.
16536     CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "`
16537     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5
16538 $as_echo "$CYGWIN_ROOT_PATH" >&6; }
16539     WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH"
16540     test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/`
16541     if test "x$test_cygdrive_prefix" = x; then
16542       as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5
16543     fi
16544   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16545     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5
16546 $as_echo_n "checking msys release... " >&6; }
16547     MSYS_VERSION=`$UNAME -r`
16548     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5
16549 $as_echo "$MSYS_VERSION" >&6; }
16550 
16551     WINDOWS_ENV_VENDOR='msys'
16552     WINDOWS_ENV_VERSION="$MSYS_VERSION"
16553 
16554     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5
16555 $as_echo_n "checking msys root directory as unix-style path... " >&6; }
16556     # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
16557     MSYS_ROOT_PATH=`cd / ; cmd /c cd | $GREP ".*"`
16558 
16559   windows_path="$MSYS_ROOT_PATH"
16560   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16561     unix_path=`$CYGPATH -u "$windows_path"`
16562     MSYS_ROOT_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     MSYS_ROOT_PATH="$unix_path"
16566   fi
16567 
16568     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5
16569 $as_echo "$MSYS_ROOT_PATH" >&6; }
16570     WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH"
16571   else
16572     as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5
16573   fi
16574 
16575   # Test if windows or unix (cygwin/msys) find is first in path.
16576   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5
16577 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; }
16578   FIND_BINARY_OUTPUT=`find --version 2>&1`
16579   if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then
16580     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5
16581 $as_echo "unix style" >&6; }
16582   elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then
16583     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5
16584 $as_echo "Windows" >&6; }
16585     { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5
16586 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;}
16587     { $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
16588 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;}
16589     as_fn_error $? "Cannot continue" "$LINENO" 5
16590   else
16591     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
16592 $as_echo "unknown" >&6; }
16593     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5
16594 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;}
16595   fi
16596 
16597   else
16598     PATH_SEP=":"
16599   fi
16600 
16601 
16602   # We get the top-level directory from the supporting wrappers.
16603   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for top-level directory" >&5
16604 $as_echo_n "checking for top-level directory... " >&6; }
16605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5
16606 $as_echo "$TOPDIR" >&6; }
16607 
16608 
16609   # We can only call BASIC_FIXUP_PATH after BASIC_CHECK_PATHS_WINDOWS.
16610 
16611   # Only process if variable expands to non-empty
16612 
16613   if test "x$CURDIR" != x; then
16614     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16615 
16616   # Input might be given as Windows format, start by converting to
16617   # unix format.
16618   path="$CURDIR"
16619   new_path=`$CYGPATH -u "$path"`
16620 
16621   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16622   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16623   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16624   # "foo.exe" is OK but "foo" is an error.
16625   #
16626   # This test is therefore slightly more accurate than "test -f" to check for file precense.
16627   # It is also a way to make sure we got the proper file name for the real test later on.
16628   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16629   if test "x$test_shortpath" = x; then
16630     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
16631 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
16632     as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5
16633   fi
16634 
16635   # Call helper function which possibly converts this using DOS-style short mode.
16636   # If so, the updated path is stored in $new_path.
16637 
16638   input_path="$new_path"
16639   # Check if we need to convert this using DOS-style short mode. If the path
16640   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16641   # take no chances and rewrite it.
16642   # Note: m4 eats our [], so we need to use [ and ] instead.
16643   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16644   if test "x$has_forbidden_chars" != x; then
16645     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16646     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16647     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16648     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16649       # Going to short mode and back again did indeed matter. Since short mode is
16650       # case insensitive, let's make it lowercase to improve readability.
16651       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16652       # Now convert it back to Unix-style (cygpath)
16653       input_path=`$CYGPATH -u "$shortmode_path"`
16654       new_path="$input_path"
16655     fi
16656   fi
16657 
16658   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16659   if test "x$test_cygdrive_prefix" = x; then
16660     # As a simple fix, exclude /usr/bin since it's not a real path.
16661     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
16662       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16663       # a path prefixed by /cygdrive for fixpath to work.
16664       new_path="$CYGWIN_ROOT_PATH$input_path"
16665     fi
16666   fi
16667 
16668 
16669   if test "x$path" != "x$new_path"; then
16670     CURDIR="$new_path"
16671     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
16672 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
16673   fi
16674 
16675     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16676 
16677   path="$CURDIR"
16678   has_colon=`$ECHO $path | $GREP ^.:`
16679   new_path="$path"
16680   if test "x$has_colon" = x; then
16681     # Not in mixed or Windows style, start by that.
16682     new_path=`cmd //c echo $path`
16683   fi
16684 
16685 
16686   input_path="$new_path"
16687   # Check if we need to convert this using DOS-style short mode. If the path
16688   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16689   # take no chances and rewrite it.
16690   # Note: m4 eats our [], so we need to use [ and ] instead.
16691   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16692   if test "x$has_forbidden_chars" != x; then
16693     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16694     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16695   fi
16696 
16697 
16698   windows_path="$new_path"
16699   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16700     unix_path=`$CYGPATH -u "$windows_path"`
16701     new_path="$unix_path"
16702   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16703     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16704     new_path="$unix_path"
16705   fi
16706 
16707   if test "x$path" != "x$new_path"; then
16708     CURDIR="$new_path"
16709     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
16710 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
16711   fi
16712 
16713   # Save the first 10 bytes of this path to the storage, so fixpath can work.
16714   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16715 
16716     else
16717       # We're on a unix platform. Hooray! :)
16718       path="$CURDIR"
16719       has_space=`$ECHO "$path" | $GREP " "`
16720       if test "x$has_space" != x; then
16721         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
16722 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
16723         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
16724       fi
16725 
16726       # Use eval to expand a potential ~
16727       eval path="$path"
16728       if test ! -f "$path" && test ! -d "$path"; then
16729         as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5
16730       fi
16731 
16732       if test -d "$path"; then
16733         CURDIR="`cd "$path"; $THEPWDCMD -L`"
16734       else
16735         dir="`$DIRNAME "$path"`"
16736         base="`$BASENAME "$path"`"
16737         CURDIR="`cd "$dir"; $THEPWDCMD -L`/$base"
16738       fi
16739     fi
16740   fi
16741 
16742 
16743   # Only process if variable expands to non-empty
16744 
16745   if test "x$TOPDIR" != x; then
16746     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16747 
16748   # Input might be given as Windows format, start by converting to
16749   # unix format.
16750   path="$TOPDIR"
16751   new_path=`$CYGPATH -u "$path"`
16752 
16753   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16754   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16755   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16756   # "foo.exe" is OK but "foo" is an error.
16757   #
16758   # This test is therefore slightly more accurate than "test -f" to check for file precense.
16759   # It is also a way to make sure we got the proper file name for the real test later on.
16760   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16761   if test "x$test_shortpath" = x; then
16762     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
16763 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
16764     as_fn_error $? "Cannot locate the the path of TOPDIR" "$LINENO" 5
16765   fi
16766 
16767   # Call helper function which possibly converts this using DOS-style short mode.
16768   # If so, the updated path is stored in $new_path.
16769 
16770   input_path="$new_path"
16771   # Check if we need to convert this using DOS-style short mode. If the path
16772   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16773   # take no chances and rewrite it.
16774   # Note: m4 eats our [], so we need to use [ and ] instead.
16775   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16776   if test "x$has_forbidden_chars" != x; then
16777     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16778     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16779     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16780     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16781       # Going to short mode and back again did indeed matter. Since short mode is
16782       # case insensitive, let's make it lowercase to improve readability.
16783       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16784       # Now convert it back to Unix-style (cygpath)
16785       input_path=`$CYGPATH -u "$shortmode_path"`
16786       new_path="$input_path"
16787     fi
16788   fi
16789 
16790   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16791   if test "x$test_cygdrive_prefix" = x; then
16792     # As a simple fix, exclude /usr/bin since it's not a real path.
16793     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
16794       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16795       # a path prefixed by /cygdrive for fixpath to work.
16796       new_path="$CYGWIN_ROOT_PATH$input_path"
16797     fi
16798   fi
16799 
16800 
16801   if test "x$path" != "x$new_path"; then
16802     TOPDIR="$new_path"
16803     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
16804 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
16805   fi
16806 
16807     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16808 
16809   path="$TOPDIR"
16810   has_colon=`$ECHO $path | $GREP ^.:`
16811   new_path="$path"
16812   if test "x$has_colon" = x; then
16813     # Not in mixed or Windows style, start by that.
16814     new_path=`cmd //c echo $path`
16815   fi
16816 
16817 
16818   input_path="$new_path"
16819   # Check if we need to convert this using DOS-style short mode. If the path
16820   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16821   # take no chances and rewrite it.
16822   # Note: m4 eats our [], so we need to use [ and ] instead.
16823   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16824   if test "x$has_forbidden_chars" != x; then
16825     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16826     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16827   fi
16828 
16829 
16830   windows_path="$new_path"
16831   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16832     unix_path=`$CYGPATH -u "$windows_path"`
16833     new_path="$unix_path"
16834   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16835     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16836     new_path="$unix_path"
16837   fi
16838 
16839   if test "x$path" != "x$new_path"; then
16840     TOPDIR="$new_path"
16841     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
16842 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
16843   fi
16844 
16845   # Save the first 10 bytes of this path to the storage, so fixpath can work.
16846   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16847 
16848     else
16849       # We're on a unix platform. Hooray! :)
16850       path="$TOPDIR"
16851       has_space=`$ECHO "$path" | $GREP " "`
16852       if test "x$has_space" != x; then
16853         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
16854 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
16855         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
16856       fi
16857 
16858       # Use eval to expand a potential ~
16859       eval path="$path"
16860       if test ! -f "$path" && test ! -d "$path"; then
16861         as_fn_error $? "The path of TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5
16862       fi
16863 
16864       if test -d "$path"; then
16865         TOPDIR="`cd "$path"; $THEPWDCMD -L`"
16866       else
16867         dir="`$DIRNAME "$path"`"
16868         base="`$BASENAME "$path"`"
16869         TOPDIR="`cd "$dir"; $THEPWDCMD -L`/$base"
16870       fi
16871     fi
16872   fi
16873 
16874 
16875   # Locate the directory of this script.
16876   AUTOCONF_DIR=$TOPDIR/make/autoconf
16877 
16878   # Setup username (for use in adhoc version strings etc)
16879   # Outer [ ] to quote m4.
16880    USERNAME=`$ECHO "$USER" | $TR -d -c '[a-z][A-Z][0-9]'`
16881 
16882 
16883 
16884 # Check if it's a pure open build or if custom sources are to be used.
16885 
16886   # Check whether --enable-openjdk-only was given.
16887 if test "${enable_openjdk_only+set}" = set; then :
16888   enableval=$enable_openjdk_only;
16889 else
16890   enable_openjdk_only="no"
16891 fi
16892 
16893 
16894   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if custom source is suppressed (openjdk-only)" >&5
16895 $as_echo_n "checking if custom source is suppressed (openjdk-only)... " >&6; }
16896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_openjdk_only" >&5
16897 $as_echo "$enable_openjdk_only" >&6; }
16898   if test "x$enable_openjdk_only" = "xyes"; then
16899     SUPPRESS_CUSTOM_EXTENSIONS="true"
16900   elif test "x$enable_openjdk_only" = "xno"; then
16901     SUPPRESS_CUSTOM_EXTENSIONS="false"
16902   else
16903     as_fn_error $? "Invalid value for --enable-openjdk-only: $enable_openjdk_only" "$LINENO" 5
16904   fi
16905 
16906   # custom-make-dir is deprecated. Please use your custom-hook.m4 to override
16907   # the IncludeCustomExtension macro.
16908 
16909 
16910 # Check whether --with-custom-make-dir was given.
16911 if test "${with_custom_make_dir+set}" = set; then :
16912   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
16913 $as_echo "$as_me: WARNING: Option --with-custom-make-dir is deprecated and will be ignored." >&2;}
16914 fi
16915 
16916 
16917 
16918 
16919 # These are needed to be able to create a configuration name (and thus the output directory)
16920 
16921   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5
16922 $as_echo_n "checking which variant of the JDK to build... " >&6; }
16923 
16924 # Check whether --with-jdk-variant was given.
16925 if test "${with_jdk_variant+set}" = set; then :
16926   withval=$with_jdk_variant;
16927 fi
16928 
16929 
16930   if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then
16931     JDK_VARIANT="normal"
16932   else
16933     as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5
16934   fi
16935 
16936 
16937 
16938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5
16939 $as_echo "$JDK_VARIANT" >&6; }
16940 
16941 
16942   DEBUG_LEVEL="release"
16943   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5
16944 $as_echo_n "checking which debug level to use... " >&6; }
16945   # Check whether --enable-debug was given.
16946 if test "${enable_debug+set}" = set; then :
16947   enableval=$enable_debug;
16948         ENABLE_DEBUG="${enableval}"
16949         DEBUG_LEVEL="fastdebug"
16950 
16951 else
16952   ENABLE_DEBUG="no"
16953 fi
16954 
16955 
16956 
16957 # Check whether --with-debug-level was given.
16958 if test "${with_debug_level+set}" = set; then :
16959   withval=$with_debug_level;
16960         DEBUG_LEVEL="${withval}"
16961         if test "x$ENABLE_DEBUG" = xyes; then
16962           as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5
16963         fi
16964 
16965 fi
16966 
16967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5
16968 $as_echo "$DEBUG_LEVEL" >&6; }
16969 
16970   if test "x$DEBUG_LEVEL" != xrelease && \
16971       test "x$DEBUG_LEVEL" != xoptimized && \
16972       test "x$DEBUG_LEVEL" != xfastdebug && \
16973       test "x$DEBUG_LEVEL" != xslowdebug; then
16974     as_fn_error $? "Allowed debug levels are: release, fastdebug, slowdebug and optimized" "$LINENO" 5
16975   fi
16976 
16977   # Translate DEBUG_LEVEL to debug level used by Hotspot
16978   HOTSPOT_DEBUG_LEVEL="$DEBUG_LEVEL"
16979   if test "x$DEBUG_LEVEL" = xrelease; then
16980     HOTSPOT_DEBUG_LEVEL="product"
16981   elif test "x$DEBUG_LEVEL" = xslowdebug; then
16982     HOTSPOT_DEBUG_LEVEL="debug"
16983   fi
16984 
16985   if test "x$DEBUG_LEVEL" = xoptimized; then
16986     # The debug level 'optimized' is a little special because it is currently only
16987     # applicable to the HotSpot build where it means to build a completely
16988     # optimized version of the VM without any debugging code (like for the
16989     # 'release' debug level which is called 'product' in the HotSpot build) but
16990     # with the exception that it can contain additional code which is otherwise
16991     # protected by '#ifndef PRODUCT' macros. These 'optimized' builds are used to
16992     # test new and/or experimental features which are not intended for customer
16993     # shipment. Because these new features need to be tested and benchmarked in
16994     # real world scenarios, we want to build the containing JDK at the 'release'
16995     # debug level.
16996     DEBUG_LEVEL="release"
16997   fi
16998 
16999 
17000 
17001 
17002 
17003 
17004 # Check whether --with-jvm-variants was given.
17005 if test "${with_jvm_variants+set}" = set; then :
17006   withval=$with_jvm_variants;
17007 fi
17008 
17009 
17010 
17011 
17012 # Check whether --with-cpu-port was given.
17013 if test "${with_cpu_port+set}" = set; then :
17014   withval=$with_cpu_port;
17015 fi
17016 
17017 
17018   if test "x$with_cpu_port" != x; then
17019     if test "x$OPENJDK_TARGET_CPU" != xaarch64; then
17020       as_fn_error $? "--with-cpu-port only available on aarch64" "$LINENO" 5
17021     fi
17022     if test "x$with_cpu_port" != xarm64 && \
17023         test "x$with_cpu_port" != xaarch64; then
17024       as_fn_error $? "--with-cpu-port must specify arm64 or aarch64" "$LINENO" 5
17025     fi
17026     HOTSPOT_TARGET_CPU_PORT="$with_cpu_port"
17027   fi
17028 
17029 
17030   if test "x$with_jvm_variants" = x; then
17031     with_jvm_variants="server"
17032   fi
17033   JVM_VARIANTS_OPT="$with_jvm_variants"
17034 
17035   # Has the user listed more than one variant?
17036   # Additional [] needed to keep m4 from mangling shell constructs.
17037   if  [[ "$JVM_VARIANTS_OPT" =~ "," ]] ; then
17038     BUILDING_MULTIPLE_JVM_VARIANTS=true
17039   else
17040     BUILDING_MULTIPLE_JVM_VARIANTS=false
17041   fi
17042   # Replace the commas with AND for use in the build directory name.
17043   JVM_VARIANTS_WITH_AND=`$ECHO "$JVM_VARIANTS_OPT" | $SED -e 's/,/AND/g'`
17044 
17045   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5
17046 $as_echo_n "checking which variants of the JVM to build... " >&6; }
17047   # JVM_VARIANTS is a space-separated list.
17048   # Also use minimal, not minimal1 (which is kept for backwards compatibility).
17049   JVM_VARIANTS=`$ECHO $JVM_VARIANTS_OPT | $SED -e 's/,/ /g' -e 's/minimal1/minimal/'`
17050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JVM_VARIANTS" >&5
17051 $as_echo "$JVM_VARIANTS" >&6; }
17052 
17053   # Check that the selected variants are valid
17054 
17055   # grep filter function inspired by a comment to http://stackoverflow.com/a/1617326
17056   # Notice that the original variant failes on SLES 10 and 11
17057   NEEDLE=${VALID_JVM_VARIANTS// /$'\n'}
17058   STACK=${JVM_VARIANTS// /$'\n'}
17059   INVALID_VARIANTS=`$GREP -Fvx "${NEEDLE}" <<< "${STACK}"`
17060   if test "x$INVALID_VARIANTS" != x; then
17061     { $as_echo "$as_me:${as_lineno-$LINENO}: Unknown variant(s) specified: $INVALID_VARIANTS" >&5
17062 $as_echo "$as_me: Unknown variant(s) specified: $INVALID_VARIANTS" >&6;}
17063     as_fn_error $? "The available JVM variants are: $VALID_JVM_VARIANTS" "$LINENO" 5
17064   fi
17065 
17066   # All "special" variants share the same output directory ("server")
17067   VALID_MULTIPLE_JVM_VARIANTS="server client minimal"
17068   NEEDLE=${VALID_MULTIPLE_JVM_VARIANTS// /$'\n'}
17069   STACK=${JVM_VARIANTS// /$'\n'}
17070   INVALID_MULTIPLE_VARIANTS=`$GREP -Fvx "${NEEDLE}" <<< "${STACK}"`
17071   if  test "x$INVALID_MULTIPLE_VARIANTS" != x && test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = xtrue; then
17072     as_fn_error $? "You cannot build multiple variants with anything else than $VALID_MULTIPLE_JVM_VARIANTS." "$LINENO" 5
17073   fi
17074 
17075   # The "main" variant is the one used by other libs to link against during the
17076   # build.
17077   if test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = "xtrue"; then
17078     MAIN_VARIANT_PRIO_ORDER="server client minimal"
17079     for variant in $MAIN_VARIANT_PRIO_ORDER; do
17080       if   [[ " $JVM_VARIANTS " =~ " $variant " ]]  ; then
17081         JVM_VARIANT_MAIN="$variant"
17082         break
17083       fi
17084     done
17085   else
17086     JVM_VARIANT_MAIN="$JVM_VARIANTS"
17087   fi
17088 
17089 
17090 
17091 
17092 
17093   if   [[ " $JVM_VARIANTS " =~ " zero " ]]  ; then
17094     # zero behaves as a platform and rewrites these values. This is really weird. :(
17095     # We are guaranteed that we do not build any other variants when building zero.
17096     HOTSPOT_TARGET_CPU=zero
17097     HOTSPOT_TARGET_CPU_ARCH=zero
17098   fi
17099 
17100 
17101 # With basic setup done, call the custom early hook.
17102 
17103 
17104 # Check if we have devkits, extra paths or sysroot set.
17105 
17106 
17107 # Check whether --with-devkit was given.
17108 if test "${with_devkit+set}" = set; then :
17109   withval=$with_devkit;
17110 
17111   # Only process if variable expands to non-empty
17112 
17113   if test "x$with_devkit" != x; then
17114     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17115 
17116   # Input might be given as Windows format, start by converting to
17117   # unix format.
17118   path="$with_devkit"
17119   new_path=`$CYGPATH -u "$path"`
17120 
17121   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
17122   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
17123   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
17124   # "foo.exe" is OK but "foo" is an error.
17125   #
17126   # This test is therefore slightly more accurate than "test -f" to check for file precense.
17127   # It is also a way to make sure we got the proper file name for the real test later on.
17128   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
17129   if test "x$test_shortpath" = x; then
17130     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
17131 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
17132     as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5
17133   fi
17134 
17135   # Call helper function which possibly converts this using DOS-style short mode.
17136   # If so, the updated path is stored in $new_path.
17137 
17138   input_path="$new_path"
17139   # Check if we need to convert this using DOS-style short mode. If the path
17140   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17141   # take no chances and rewrite it.
17142   # Note: m4 eats our [], so we need to use [ and ] instead.
17143   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
17144   if test "x$has_forbidden_chars" != x; then
17145     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17146     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
17147     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
17148     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
17149       # Going to short mode and back again did indeed matter. Since short mode is
17150       # case insensitive, let's make it lowercase to improve readability.
17151       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17152       # Now convert it back to Unix-style (cygpath)
17153       input_path=`$CYGPATH -u "$shortmode_path"`
17154       new_path="$input_path"
17155     fi
17156   fi
17157 
17158   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
17159   if test "x$test_cygdrive_prefix" = x; then
17160     # As a simple fix, exclude /usr/bin since it's not a real path.
17161     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
17162       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
17163       # a path prefixed by /cygdrive for fixpath to work.
17164       new_path="$CYGWIN_ROOT_PATH$input_path"
17165     fi
17166   fi
17167 
17168 
17169   if test "x$path" != "x$new_path"; then
17170     with_devkit="$new_path"
17171     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
17172 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
17173   fi
17174 
17175     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17176 
17177   path="$with_devkit"
17178   has_colon=`$ECHO $path | $GREP ^.:`
17179   new_path="$path"
17180   if test "x$has_colon" = x; then
17181     # Not in mixed or Windows style, start by that.
17182     new_path=`cmd //c echo $path`
17183   fi
17184 
17185 
17186   input_path="$new_path"
17187   # Check if we need to convert this using DOS-style short mode. If the path
17188   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17189   # take no chances and rewrite it.
17190   # Note: m4 eats our [], so we need to use [ and ] instead.
17191   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
17192   if test "x$has_forbidden_chars" != x; then
17193     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17194     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17195   fi
17196 
17197 
17198   windows_path="$new_path"
17199   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17200     unix_path=`$CYGPATH -u "$windows_path"`
17201     new_path="$unix_path"
17202   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17203     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17204     new_path="$unix_path"
17205   fi
17206 
17207   if test "x$path" != "x$new_path"; then
17208     with_devkit="$new_path"
17209     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
17210 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
17211   fi
17212 
17213   # Save the first 10 bytes of this path to the storage, so fixpath can work.
17214   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
17215 
17216     else
17217       # We're on a unix platform. Hooray! :)
17218       path="$with_devkit"
17219       has_space=`$ECHO "$path" | $GREP " "`
17220       if test "x$has_space" != x; then
17221         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
17222 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
17223         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
17224       fi
17225 
17226       # Use eval to expand a potential ~
17227       eval path="$path"
17228       if test ! -f "$path" && test ! -d "$path"; then
17229         as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5
17230       fi
17231 
17232       if test -d "$path"; then
17233         with_devkit="`cd "$path"; $THEPWDCMD -L`"
17234       else
17235         dir="`$DIRNAME "$path"`"
17236         base="`$BASENAME "$path"`"
17237         with_devkit="`cd "$dir"; $THEPWDCMD -L`/$base"
17238       fi
17239     fi
17240   fi
17241 
17242         DEVKIT_ROOT="$with_devkit"
17243         # Check for a meta data info file in the root of the devkit
17244         if test -f "$DEVKIT_ROOT/devkit.info"; then
17245           . $DEVKIT_ROOT/devkit.info
17246           # This potentially sets the following:
17247           # A descriptive name of the devkit
17248 
17249   if test "x$DEVKIT_NAME" = x; then
17250     eval DEVKIT_NAME="\${DEVKIT_NAME_${OPENJDK_TARGET_CPU}}"
17251   fi
17252 
17253           # Corresponds to --with-extra-path
17254 
17255   if test "x$DEVKIT_EXTRA_PATH" = x; then
17256     eval DEVKIT_EXTRA_PATH="\${DEVKIT_EXTRA_PATH_${OPENJDK_TARGET_CPU}}"
17257   fi
17258 
17259           # Corresponds to --with-toolchain-path
17260 
17261   if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then
17262     eval DEVKIT_TOOLCHAIN_PATH="\${DEVKIT_TOOLCHAIN_PATH_${OPENJDK_TARGET_CPU}}"
17263   fi
17264 
17265           # Corresponds to --with-sysroot
17266 
17267   if test "x$DEVKIT_SYSROOT" = x; then
17268     eval DEVKIT_SYSROOT="\${DEVKIT_SYSROOT_${OPENJDK_TARGET_CPU}}"
17269   fi
17270 
17271 
17272           # Identifies the Visual Studio version in the devkit
17273 
17274   if test "x$DEVKIT_VS_VERSION" = x; then
17275     eval DEVKIT_VS_VERSION="\${DEVKIT_VS_VERSION_${OPENJDK_TARGET_CPU}}"
17276   fi
17277 
17278           # The Visual Studio include environment variable
17279 
17280   if test "x$DEVKIT_VS_INCLUDE" = x; then
17281     eval DEVKIT_VS_INCLUDE="\${DEVKIT_VS_INCLUDE_${OPENJDK_TARGET_CPU}}"
17282   fi
17283 
17284           # The Visual Studio lib environment variable
17285 
17286   if test "x$DEVKIT_VS_LIB" = x; then
17287     eval DEVKIT_VS_LIB="\${DEVKIT_VS_LIB_${OPENJDK_TARGET_CPU}}"
17288   fi
17289 
17290           # Corresponds to --with-msvcr-dll
17291 
17292   if test "x$DEVKIT_MSVCR_DLL" = x; then
17293     eval DEVKIT_MSVCR_DLL="\${DEVKIT_MSVCR_DLL_${OPENJDK_TARGET_CPU}}"
17294   fi
17295 
17296           # Corresponds to --with-msvcp-dll
17297 
17298   if test "x$DEVKIT_MSVCP_DLL" = x; then
17299     eval DEVKIT_MSVCP_DLL="\${DEVKIT_MSVCP_DLL_${OPENJDK_TARGET_CPU}}"
17300   fi
17301 
17302         fi
17303 
17304         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devkit" >&5
17305 $as_echo_n "checking for devkit... " >&6; }
17306         if test "x$DEVKIT_NAME" != x; then
17307           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_NAME in $DEVKIT_ROOT" >&5
17308 $as_echo "$DEVKIT_NAME in $DEVKIT_ROOT" >&6; }
17309         else
17310           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_ROOT" >&5
17311 $as_echo "$DEVKIT_ROOT" >&6; }
17312         fi
17313 
17314 
17315   if test "x$DEVKIT_EXTRA_PATH" != x; then
17316     if test "x$EXTRA_PATH" = x; then
17317       EXTRA_PATH="$DEVKIT_EXTRA_PATH"
17318     else
17319       EXTRA_PATH="$DEVKIT_EXTRA_PATH:$EXTRA_PATH"
17320     fi
17321   fi
17322 
17323 
17324         # Fallback default of just /bin if DEVKIT_PATH is not defined
17325         if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then
17326           DEVKIT_TOOLCHAIN_PATH="$DEVKIT_ROOT/bin"
17327         fi
17328 
17329   if test "x$DEVKIT_TOOLCHAIN_PATH" != x; then
17330     if test "x$TOOLCHAIN_PATH" = x; then
17331       TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH"
17332     else
17333       TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH:$TOOLCHAIN_PATH"
17334     fi
17335   fi
17336 
17337 
17338         # If DEVKIT_SYSROOT is set, use that, otherwise try a couple of known
17339         # places for backwards compatiblity.
17340         if test "x$DEVKIT_SYSROOT" != x; then
17341           SYSROOT="$DEVKIT_SYSROOT"
17342         elif test -d "$DEVKIT_ROOT/$host_alias/libc"; then
17343           SYSROOT="$DEVKIT_ROOT/$host_alias/libc"
17344         elif test -d "$DEVKIT_ROOT/$host/sys-root"; then
17345           SYSROOT="$DEVKIT_ROOT/$host/sys-root"
17346         fi
17347 
17348         if test "x$DEVKIT_ROOT" != x; then
17349           DEVKIT_LIB_DIR="$DEVKIT_ROOT/lib"
17350           if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
17351             DEVKIT_LIB_DIR="$DEVKIT_ROOT/lib64"
17352           fi
17353 
17354         fi
17355 
17356 
17357 fi
17358 
17359 
17360   # You can force the sysroot if the sysroot encoded into the compiler tools
17361   # is not correct.
17362 
17363 # Check whether --with-sys-root was given.
17364 if test "${with_sys_root+set}" = set; then :
17365   withval=$with_sys_root; SYSROOT=$with_sys_root
17366 
17367 fi
17368 
17369 
17370 
17371 # Check whether --with-sysroot was given.
17372 if test "${with_sysroot+set}" = set; then :
17373   withval=$with_sysroot; SYSROOT=$with_sysroot
17374 
17375 fi
17376 
17377 
17378 
17379 # Check whether --with-tools-dir was given.
17380 if test "${with_tools_dir+set}" = set; then :
17381   withval=$with_tools_dir;
17382   if test "x$with_tools_dir" != x; then
17383     if test "x$TOOLCHAIN_PATH" = x; then
17384       TOOLCHAIN_PATH="$with_tools_dir"
17385     else
17386       TOOLCHAIN_PATH="$with_tools_dir:$TOOLCHAIN_PATH"
17387     fi
17388   fi
17389 
17390 
17391 fi
17392 
17393 
17394 
17395 # Check whether --with-toolchain-path was given.
17396 if test "${with_toolchain_path+set}" = set; then :
17397   withval=$with_toolchain_path;
17398   if test "x$with_toolchain_path" != x; then
17399     if test "x$TOOLCHAIN_PATH" = x; then
17400       TOOLCHAIN_PATH="$with_toolchain_path"
17401     else
17402       TOOLCHAIN_PATH="$with_toolchain_path:$TOOLCHAIN_PATH"
17403     fi
17404   fi
17405 
17406 
17407 fi
17408 
17409 
17410 
17411 # Check whether --with-extra-path was given.
17412 if test "${with_extra_path+set}" = set; then :
17413   withval=$with_extra_path;
17414   if test "x$with_extra_path" != x; then
17415     if test "x$EXTRA_PATH" = x; then
17416       EXTRA_PATH="$with_extra_path"
17417     else
17418       EXTRA_PATH="$with_extra_path:$EXTRA_PATH"
17419     fi
17420   fi
17421 
17422 
17423 fi
17424 
17425 
17426   if test "x$OPENJDK_BUILD_OS" = "xmacosx"; then
17427     # If a devkit has been supplied, find xcodebuild in the toolchain_path.
17428     # If not, detect if Xcode is installed by running xcodebuild -version
17429     # if no Xcode installed, xcodebuild exits with 1
17430     # if Xcode is installed, even if xcode-select is misconfigured, then it exits with 0
17431     if test "x$DEVKIT_ROOT" != x || /usr/bin/xcodebuild -version >/dev/null 2>&1; then
17432       # We need to use xcodebuild in the toolchain dir provided by the user, this will
17433       # fall back on the stub binary in /usr/bin/xcodebuild
17434       # Extract the first word of "xcodebuild", so it can be a program name with args.
17435 set dummy xcodebuild; ac_word=$2
17436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17437 $as_echo_n "checking for $ac_word... " >&6; }
17438 if ${ac_cv_path_XCODEBUILD+:} false; then :
17439   $as_echo_n "(cached) " >&6
17440 else
17441   case $XCODEBUILD in
17442   [\\/]* | ?:[\\/]*)
17443   ac_cv_path_XCODEBUILD="$XCODEBUILD" # Let the user override the test with a path.
17444   ;;
17445   *)
17446   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17447 for as_dir in $TOOLCHAIN_PATH
17448 do
17449   IFS=$as_save_IFS
17450   test -z "$as_dir" && as_dir=.
17451     for ac_exec_ext in '' $ac_executable_extensions; do
17452   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17453     ac_cv_path_XCODEBUILD="$as_dir/$ac_word$ac_exec_ext"
17454     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17455     break 2
17456   fi
17457 done
17458   done
17459 IFS=$as_save_IFS
17460 
17461   test -z "$ac_cv_path_XCODEBUILD" && ac_cv_path_XCODEBUILD="/usr/bin/xcodebuild"
17462   ;;
17463 esac
17464 fi
17465 XCODEBUILD=$ac_cv_path_XCODEBUILD
17466 if test -n "$XCODEBUILD"; then
17467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODEBUILD" >&5
17468 $as_echo "$XCODEBUILD" >&6; }
17469 else
17470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17471 $as_echo "no" >&6; }
17472 fi
17473 
17474 
17475     else
17476       # this should result in SYSROOT being empty, unless --with-sysroot is provided
17477       # when only the command line tools are installed there are no SDKs, so headers
17478       # are copied into the system frameworks
17479       XCODEBUILD=
17480 
17481     fi
17482 
17483     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdk name" >&5
17484 $as_echo_n "checking for sdk name... " >&6; }
17485 
17486 # Check whether --with-sdk-name was given.
17487 if test "${with_sdk_name+set}" = set; then :
17488   withval=$with_sdk_name; SDKNAME=$with_sdk_name
17489 
17490 fi
17491 
17492     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDKNAME" >&5
17493 $as_echo "$SDKNAME" >&6; }
17494 
17495     # if toolchain path is specified then don't rely on system headers, they may not compile
17496     HAVE_SYSTEM_FRAMEWORK_HEADERS=0
17497     test -z "$TOOLCHAIN_PATH" && \
17498       HAVE_SYSTEM_FRAMEWORK_HEADERS=`test ! -f /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h; echo $?`
17499 
17500     if test -z "$SYSROOT"; then
17501       if test -n "$XCODEBUILD"; then
17502         # if we don't have system headers, use default SDK name (last resort)
17503         if test -z "$SDKNAME" -a $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then
17504           SDKNAME=${SDKNAME:-macosx}
17505         fi
17506 
17507         if test -n "$SDKNAME"; then
17508           # Call xcodebuild to determine SYSROOT
17509           SYSROOT=`"$XCODEBUILD" -sdk $SDKNAME -version | $GREP '^Path: ' | $SED 's/Path: //'`
17510         fi
17511       else
17512         if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then
17513           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
17514         fi
17515       fi
17516     else
17517       # warn user if --with-sdk-name was also set
17518       if test -n "$with_sdk_name"; then
17519         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&5
17520 $as_echo "$as_me: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&2;}
17521       fi
17522     fi
17523 
17524     if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0 -a -z "$SYSROOT"; then
17525       # If no system framework headers, then SYSROOT must be set, or we won't build
17526       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
17527     fi
17528 
17529     # Perform a basic sanity test
17530     if test ! -f "$SYSROOT/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h"; then
17531       if test -z "$SYSROOT"; then
17532         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
17533       else
17534         as_fn_error $? "Invalid SDK or SYSROOT path, dependent framework headers not found" "$LINENO" 5
17535       fi
17536     fi
17537 
17538     # set SDKROOT too, Xcode tools will pick it up
17539     SDKROOT="$SYSROOT"
17540 
17541   fi
17542 
17543   # Prepend the extra path to the global path
17544 
17545   if test "x$EXTRA_PATH" != x; then
17546     if test "x$PATH" = x; then
17547       PATH="$EXTRA_PATH"
17548     else
17549       PATH="$EXTRA_PATH:$PATH"
17550     fi
17551   fi
17552 
17553 
17554   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
17555 $as_echo_n "checking for sysroot... " >&6; }
17556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSROOT" >&5
17557 $as_echo "$SYSROOT" >&6; }
17558   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for toolchain path" >&5
17559 $as_echo_n "checking for toolchain path... " >&6; }
17560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH" >&5
17561 $as_echo "$TOOLCHAIN_PATH" >&6; }
17562   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra path" >&5
17563 $as_echo_n "checking for extra path... " >&6; }
17564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_PATH" >&5
17565 $as_echo "$EXTRA_PATH" >&6; }
17566 
17567 
17568 # To properly create a configuration name, we need to have the OpenJDK target
17569 # and options (variants and debug level) parsed.
17570 
17571 
17572 
17573 # Check whether --with-conf-name was given.
17574 if test "${with_conf_name+set}" = set; then :
17575   withval=$with_conf_name;  CONF_NAME=${with_conf_name}
17576 fi
17577 
17578 
17579   # Test from where we are running configure, in or outside of src root.
17580   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to store configuration" >&5
17581 $as_echo_n "checking where to store configuration... " >&6; }
17582   if test "x$CURDIR" = "x$TOPDIR" || test "x$CURDIR" = "x$CUSTOM_ROOT" \
17583       || test "x$CURDIR" = "x$TOPDIR/make/autoconf" \
17584       || test "x$CURDIR" = "x$TOPDIR/make" ; then
17585     # We are running configure from the src root.
17586     # Create a default ./build/target-variant-debuglevel output root.
17587     if test "x${CONF_NAME}" = x; then
17588       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default location" >&5
17589 $as_echo "in default location" >&6; }
17590       CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${JVM_VARIANTS_WITH_AND}-${DEBUG_LEVEL}"
17591     else
17592       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5
17593 $as_echo "in build directory with custom name" >&6; }
17594     fi
17595 
17596     if test "x$CUSTOM_ROOT" != x; then
17597       OUTPUTDIR="${CUSTOM_ROOT}/build/${CONF_NAME}"
17598     else
17599       OUTPUTDIR="${TOPDIR}/build/${CONF_NAME}"
17600     fi
17601     $MKDIR -p "$OUTPUTDIR"
17602     if test ! -d "$OUTPUTDIR"; then
17603       as_fn_error $? "Could not create build directory $OUTPUTDIR" "$LINENO" 5
17604     fi
17605   else
17606     # We are running configure from outside of the src dir.
17607     # Then use the current directory as output dir!
17608     # If configuration is situated in normal build directory, just use the build
17609     # directory name as configuration name, otherwise use the complete path.
17610     if test "x${CONF_NAME}" = x; then
17611       CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${TOPDIR}/build/!!"`
17612     fi
17613     OUTPUTDIR="$CURDIR"
17614     { $as_echo "$as_me:${as_lineno-$LINENO}: result: in current directory" >&5
17615 $as_echo "in current directory" >&6; }
17616 
17617     # WARNING: This might be a bad thing to do. You need to be sure you want to
17618     # have a configuration in this directory. Do some sanity checks!
17619 
17620     if test ! -e "$OUTPUTDIR/spec.gmk"; then
17621       # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for
17622       # other files
17623       files_present=`$LS $OUTPUTDIR`
17624       # Configure has already touched config.log and confdefs.h in the current dir when this check
17625       # is performed.
17626       filtered_files=`$ECHO "$files_present" \
17627           | $SED -e 's/config.log//g' \
17628               -e 's/configure.log//g' \
17629               -e 's/confdefs.h//g' \
17630               -e 's/ //g' \
17631           | $TR -d '\n'`
17632       if test "x$filtered_files" != x; then
17633         { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5
17634 $as_echo "$as_me: Current directory is $CURDIR." >&6;}
17635         { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5
17636 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;}
17637         { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5
17638 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;}
17639         { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5
17640 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;}
17641         { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5
17642 $as_echo "$as_me: seriously mess up just about everything." >&6;}
17643         { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $TOPDIR' and restart configure" >&5
17644 $as_echo "$as_me: Try 'cd $TOPDIR' and restart configure" >&6;}
17645         { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5
17646 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;}
17647         as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5
17648       fi
17649     fi
17650   fi
17651   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5
17652 $as_echo_n "checking what configuration name to use... " >&6; }
17653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5
17654 $as_echo "$CONF_NAME" >&6; }
17655 
17656 
17657   # Only process if variable expands to non-empty
17658 
17659   if test "x$OUTPUTDIR" != x; then
17660     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17661 
17662   # Input might be given as Windows format, start by converting to
17663   # unix format.
17664   path="$OUTPUTDIR"
17665   new_path=`$CYGPATH -u "$path"`
17666 
17667   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
17668   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
17669   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
17670   # "foo.exe" is OK but "foo" is an error.
17671   #
17672   # This test is therefore slightly more accurate than "test -f" to check for file precense.
17673   # It is also a way to make sure we got the proper file name for the real test later on.
17674   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
17675   if test "x$test_shortpath" = x; then
17676     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUTDIR, which resolves as \"$path\", is invalid." >&5
17677 $as_echo "$as_me: The path of OUTPUTDIR, which resolves as \"$path\", is invalid." >&6;}
17678     as_fn_error $? "Cannot locate the the path of OUTPUTDIR" "$LINENO" 5
17679   fi
17680 
17681   # Call helper function which possibly converts this using DOS-style short mode.
17682   # If so, the updated path is stored in $new_path.
17683 
17684   input_path="$new_path"
17685   # Check if we need to convert this using DOS-style short mode. If the path
17686   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17687   # take no chances and rewrite it.
17688   # Note: m4 eats our [], so we need to use [ and ] instead.
17689   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
17690   if test "x$has_forbidden_chars" != x; then
17691     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17692     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
17693     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
17694     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
17695       # Going to short mode and back again did indeed matter. Since short mode is
17696       # case insensitive, let's make it lowercase to improve readability.
17697       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17698       # Now convert it back to Unix-style (cygpath)
17699       input_path=`$CYGPATH -u "$shortmode_path"`
17700       new_path="$input_path"
17701     fi
17702   fi
17703 
17704   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
17705   if test "x$test_cygdrive_prefix" = x; then
17706     # As a simple fix, exclude /usr/bin since it's not a real path.
17707     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
17708       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
17709       # a path prefixed by /cygdrive for fixpath to work.
17710       new_path="$CYGWIN_ROOT_PATH$input_path"
17711     fi
17712   fi
17713 
17714 
17715   if test "x$path" != "x$new_path"; then
17716     OUTPUTDIR="$new_path"
17717     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUTDIR to \"$new_path\"" >&5
17718 $as_echo "$as_me: Rewriting OUTPUTDIR to \"$new_path\"" >&6;}
17719   fi
17720 
17721     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17722 
17723   path="$OUTPUTDIR"
17724   has_colon=`$ECHO $path | $GREP ^.:`
17725   new_path="$path"
17726   if test "x$has_colon" = x; then
17727     # Not in mixed or Windows style, start by that.
17728     new_path=`cmd //c echo $path`
17729   fi
17730 
17731 
17732   input_path="$new_path"
17733   # Check if we need to convert this using DOS-style short mode. If the path
17734   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17735   # take no chances and rewrite it.
17736   # Note: m4 eats our [], so we need to use [ and ] instead.
17737   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
17738   if test "x$has_forbidden_chars" != x; then
17739     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17740     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17741   fi
17742 
17743 
17744   windows_path="$new_path"
17745   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17746     unix_path=`$CYGPATH -u "$windows_path"`
17747     new_path="$unix_path"
17748   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17749     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17750     new_path="$unix_path"
17751   fi
17752 
17753   if test "x$path" != "x$new_path"; then
17754     OUTPUTDIR="$new_path"
17755     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUTDIR to \"$new_path\"" >&5
17756 $as_echo "$as_me: Rewriting OUTPUTDIR to \"$new_path\"" >&6;}
17757   fi
17758 
17759   # Save the first 10 bytes of this path to the storage, so fixpath can work.
17760   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
17761 
17762     else
17763       # We're on a unix platform. Hooray! :)
17764       path="$OUTPUTDIR"
17765       has_space=`$ECHO "$path" | $GREP " "`
17766       if test "x$has_space" != x; then
17767         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUTDIR, which resolves as \"$path\", is invalid." >&5
17768 $as_echo "$as_me: The path of OUTPUTDIR, which resolves as \"$path\", is invalid." >&6;}
17769         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
17770       fi
17771 
17772       # Use eval to expand a potential ~
17773       eval path="$path"
17774       if test ! -f "$path" && test ! -d "$path"; then
17775         as_fn_error $? "The path of OUTPUTDIR, which resolves as \"$path\", is not found." "$LINENO" 5
17776       fi
17777 
17778       if test -d "$path"; then
17779         OUTPUTDIR="`cd "$path"; $THEPWDCMD -L`"
17780       else
17781         dir="`$DIRNAME "$path"`"
17782         base="`$BASENAME "$path"`"
17783         OUTPUTDIR="`cd "$dir"; $THEPWDCMD -L`/$base"
17784       fi
17785     fi
17786   fi
17787 
17788 
17789   CONFIGURESUPPORT_OUTPUTDIR="$OUTPUTDIR/configure-support"
17790   $MKDIR -p "$CONFIGURESUPPORT_OUTPUTDIR"
17791 
17792   SPEC="$OUTPUTDIR/spec.gmk"
17793 
17794 
17795 
17796 
17797 
17798   # The spec.gmk file contains all variables for the make system.
17799   ac_config_files="$ac_config_files $OUTPUTDIR/spec.gmk:$AUTOCONF_DIR/spec.gmk.in"
17800 
17801   # The bootcycle-spec.gmk file contains support for boot cycle builds.
17802   ac_config_files="$ac_config_files $OUTPUTDIR/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in"
17803 
17804   # The buildjdk-spec.gmk file contains support for building a buildjdk when cross compiling.
17805   ac_config_files="$ac_config_files $OUTPUTDIR/buildjdk-spec.gmk:$AUTOCONF_DIR/buildjdk-spec.gmk.in"
17806 
17807   # The compare.sh is used to compare the build output to other builds.
17808   ac_config_files="$ac_config_files $OUTPUTDIR/compare.sh:$AUTOCONF_DIR/compare.sh.in"
17809 
17810   # The generated Makefile knows where the spec.gmk is and where the source is.
17811   # You can run make from the OUTPUTDIR, or from the top-level Makefile
17812   # which will look for generated configurations
17813   ac_config_files="$ac_config_files $OUTPUTDIR/Makefile:$AUTOCONF_DIR/Makefile.in"
17814 
17815 
17816 
17817 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY.
17818 
17819   for ac_prog in apt-get yum brew port pkgutil pkgadd
17820 do
17821   # Extract the first word of "$ac_prog", so it can be a program name with args.
17822 set dummy $ac_prog; ac_word=$2
17823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17824 $as_echo_n "checking for $ac_word... " >&6; }
17825 if ${ac_cv_prog_PKGHANDLER+:} false; then :
17826   $as_echo_n "(cached) " >&6
17827 else
17828   if test -n "$PKGHANDLER"; then
17829   ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test.
17830 else
17831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17832 for as_dir in $PATH
17833 do
17834   IFS=$as_save_IFS
17835   test -z "$as_dir" && as_dir=.
17836     for ac_exec_ext in '' $ac_executable_extensions; do
17837   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17838     ac_cv_prog_PKGHANDLER="$ac_prog"
17839     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17840     break 2
17841   fi
17842 done
17843   done
17844 IFS=$as_save_IFS
17845 
17846 fi
17847 fi
17848 PKGHANDLER=$ac_cv_prog_PKGHANDLER
17849 if test -n "$PKGHANDLER"; then
17850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5
17851 $as_echo "$PKGHANDLER" >&6; }
17852 else
17853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17854 $as_echo "no" >&6; }
17855 fi
17856 
17857 
17858   test -n "$PKGHANDLER" && break
17859 done
17860 
17861 
17862 
17863 # Setup tools that requires more complex handling, or that is not needed by the configure script.
17864 
17865 
17866 
17867   # Publish this variable in the help.
17868 
17869 
17870   if [ -z "${MAKE+x}" ]; then
17871     # The variable is not set by user, try to locate tool using the code snippet
17872 
17873     # Try our hardest to locate a correct version of GNU make
17874     for ac_prog in gmake
17875 do
17876   # Extract the first word of "$ac_prog", so it can be a program name with args.
17877 set dummy $ac_prog; ac_word=$2
17878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17879 $as_echo_n "checking for $ac_word... " >&6; }
17880 if ${ac_cv_path_CHECK_GMAKE+:} false; then :
17881   $as_echo_n "(cached) " >&6
17882 else
17883   case $CHECK_GMAKE in
17884   [\\/]* | ?:[\\/]*)
17885   ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
17886   ;;
17887   *)
17888   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17889 for as_dir in $PATH
17890 do
17891   IFS=$as_save_IFS
17892   test -z "$as_dir" && as_dir=.
17893     for ac_exec_ext in '' $ac_executable_extensions; do
17894   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17895     ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
17896     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17897     break 2
17898   fi
17899 done
17900   done
17901 IFS=$as_save_IFS
17902 
17903   ;;
17904 esac
17905 fi
17906 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE
17907 if test -n "$CHECK_GMAKE"; then
17908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5
17909 $as_echo "$CHECK_GMAKE" >&6; }
17910 else
17911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17912 $as_echo "no" >&6; }
17913 fi
17914 
17915 
17916   test -n "$CHECK_GMAKE" && break
17917 done
17918 
17919 
17920   MAKE_CANDIDATE=""$CHECK_GMAKE""
17921   DESCRIPTION="gmake in PATH"
17922 
17923   # On Cygwin, we require a newer version of make than on other platforms
17924   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17925     MAKE_VERSION_EXPR="-e 4\."
17926     MAKE_REQUIRED_VERSION="4.0"
17927    else
17928     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
17929     MAKE_REQUIRED_VERSION="3.81"
17930   fi
17931 
17932   if test "x$MAKE_CANDIDATE" != x; then
17933     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
17934 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
17935     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
17936     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
17937     if test "x$IS_GNU_MAKE" = x; then
17938       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
17939 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
17940     else
17941       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
17942       if test "x$IS_MODERN_MAKE" = x; then
17943         { $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
17944 $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;}
17945       else
17946         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
17947           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17948             MAKE_EXPECTED_ENV='cygwin'
17949           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17950             MAKE_EXPECTED_ENV='msys'
17951           else
17952             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
17953           fi
17954           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
17955           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
17956         else
17957           # Not relevant for non-Windows
17958           IS_MAKE_CORRECT_ENV=true
17959         fi
17960         if test "x$IS_MAKE_CORRECT_ENV" = x; then
17961           { $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
17962 $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;}
17963         else
17964           FOUND_MAKE=$MAKE_CANDIDATE
17965 
17966   # Only process if variable expands to non-empty
17967 
17968   if test "x$FOUND_MAKE" != x; then
17969     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17970 
17971   # First separate the path from the arguments. This will split at the first
17972   # space.
17973   complete="$FOUND_MAKE"
17974   path="${complete%% *}"
17975   tmp="$complete EOL"
17976   arguments="${tmp#* }"
17977 
17978   # Input might be given as Windows format, start by converting to
17979   # unix format.
17980   new_path=`$CYGPATH -u "$path"`
17981 
17982   # Now try to locate executable using which
17983   new_path=`$WHICH "$new_path" 2> /dev/null`
17984   # bat and cmd files are not always considered executable in cygwin causing which
17985   # to not find them
17986   if test "x$new_path" = x \
17987       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17988       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17989     new_path=`$CYGPATH -u "$path"`
17990   fi
17991   if test "x$new_path" = x; then
17992     # Oops. Which didn't find the executable.
17993     # The splitting of arguments from the executable at a space might have been incorrect,
17994     # since paths with space are more likely in Windows. Give it another try with the whole
17995     # argument.
17996     path="$complete"
17997     arguments="EOL"
17998     new_path=`$CYGPATH -u "$path"`
17999     new_path=`$WHICH "$new_path" 2> /dev/null`
18000     # bat and cmd files are not always considered executable in cygwin causing which
18001     # to not find them
18002     if test "x$new_path" = x \
18003         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18004         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18005       new_path=`$CYGPATH -u "$path"`
18006     fi
18007     if test "x$new_path" = x; then
18008       # It's still not found. Now this is an unrecoverable error.
18009       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18010 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18011       has_space=`$ECHO "$complete" | $GREP " "`
18012       if test "x$has_space" != x; then
18013         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18014 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18015       fi
18016       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18017     fi
18018   fi
18019 
18020   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
18021   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
18022   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
18023   # "foo.exe" is OK but "foo" is an error.
18024   #
18025   # This test is therefore slightly more accurate than "test -f" to check for file presence.
18026   # It is also a way to make sure we got the proper file name for the real test later on.
18027   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
18028   if test "x$test_shortpath" = x; then
18029     # Short path failed, file does not exist as specified.
18030     # Try adding .exe or .cmd
18031     if test -f "${new_path}.exe"; then
18032       input_to_shortpath="${new_path}.exe"
18033     elif test -f "${new_path}.cmd"; then
18034       input_to_shortpath="${new_path}.cmd"
18035     else
18036       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
18037 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
18038       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
18039 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
18040       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18041     fi
18042   else
18043     input_to_shortpath="$new_path"
18044   fi
18045 
18046   # Call helper function which possibly converts this using DOS-style short mode.
18047   # If so, the updated path is stored in $new_path.
18048   new_path="$input_to_shortpath"
18049 
18050   input_path="$input_to_shortpath"
18051   # Check if we need to convert this using DOS-style short mode. If the path
18052   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18053   # take no chances and rewrite it.
18054   # Note: m4 eats our [], so we need to use [ and ] instead.
18055   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
18056   if test "x$has_forbidden_chars" != x; then
18057     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18058     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
18059     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
18060     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
18061       # Going to short mode and back again did indeed matter. Since short mode is
18062       # case insensitive, let's make it lowercase to improve readability.
18063       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18064       # Now convert it back to Unix-style (cygpath)
18065       input_path=`$CYGPATH -u "$shortmode_path"`
18066       new_path="$input_path"
18067     fi
18068   fi
18069 
18070   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
18071   if test "x$test_cygdrive_prefix" = x; then
18072     # As a simple fix, exclude /usr/bin since it's not a real path.
18073     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
18074       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
18075       # a path prefixed by /cygdrive for fixpath to work.
18076       new_path="$CYGWIN_ROOT_PATH$input_path"
18077     fi
18078   fi
18079 
18080   # remove trailing .exe if any
18081   new_path="${new_path/%.exe/}"
18082 
18083     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18084 
18085   # First separate the path from the arguments. This will split at the first
18086   # space.
18087   complete="$FOUND_MAKE"
18088   path="${complete%% *}"
18089   tmp="$complete EOL"
18090   arguments="${tmp#* }"
18091 
18092   # Input might be given as Windows format, start by converting to
18093   # unix format.
18094   new_path="$path"
18095 
18096   windows_path="$new_path"
18097   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18098     unix_path=`$CYGPATH -u "$windows_path"`
18099     new_path="$unix_path"
18100   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18101     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18102     new_path="$unix_path"
18103   fi
18104 
18105 
18106   # Now try to locate executable using which
18107   new_path=`$WHICH "$new_path" 2> /dev/null`
18108 
18109   if test "x$new_path" = x; then
18110     # Oops. Which didn't find the executable.
18111     # The splitting of arguments from the executable at a space might have been incorrect,
18112     # since paths with space are more likely in Windows. Give it another try with the whole
18113     # argument.
18114     path="$complete"
18115     arguments="EOL"
18116     new_path="$path"
18117 
18118   windows_path="$new_path"
18119   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18120     unix_path=`$CYGPATH -u "$windows_path"`
18121     new_path="$unix_path"
18122   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18123     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18124     new_path="$unix_path"
18125   fi
18126 
18127 
18128     new_path=`$WHICH "$new_path" 2> /dev/null`
18129     # bat and cmd files are not always considered executable in MSYS causing which
18130     # to not find them
18131     if test "x$new_path" = x \
18132         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18133         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18134       new_path="$path"
18135 
18136   windows_path="$new_path"
18137   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18138     unix_path=`$CYGPATH -u "$windows_path"`
18139     new_path="$unix_path"
18140   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18141     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18142     new_path="$unix_path"
18143   fi
18144 
18145     fi
18146 
18147     if test "x$new_path" = x; then
18148       # It's still not found. Now this is an unrecoverable error.
18149       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18150 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18151       has_space=`$ECHO "$complete" | $GREP " "`
18152       if test "x$has_space" != x; then
18153         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18154 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18155       fi
18156       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18157     fi
18158   fi
18159 
18160   # Now new_path has a complete unix path to the binary
18161   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
18162     # Keep paths in /bin as-is, but remove trailing .exe if any
18163     new_path="${new_path/%.exe/}"
18164     # Do not save /bin paths to all_fixpath_prefixes!
18165   else
18166     # Not in mixed or Windows style, start by that.
18167     new_path=`cmd //c echo $new_path`
18168 
18169   input_path="$new_path"
18170   # Check if we need to convert this using DOS-style short mode. If the path
18171   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18172   # take no chances and rewrite it.
18173   # Note: m4 eats our [], so we need to use [ and ] instead.
18174   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
18175   if test "x$has_forbidden_chars" != x; then
18176     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18177     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18178   fi
18179 
18180     # Output is in $new_path
18181 
18182   windows_path="$new_path"
18183   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18184     unix_path=`$CYGPATH -u "$windows_path"`
18185     new_path="$unix_path"
18186   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18187     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18188     new_path="$unix_path"
18189   fi
18190 
18191     # remove trailing .exe if any
18192     new_path="${new_path/%.exe/}"
18193 
18194     # Save the first 10 bytes of this path to the storage, so fixpath can work.
18195     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
18196   fi
18197 
18198     else
18199       # We're on a unix platform. Hooray! :)
18200       # First separate the path from the arguments. This will split at the first
18201       # space.
18202       complete="$FOUND_MAKE"
18203       path="${complete%% *}"
18204       tmp="$complete EOL"
18205       arguments="${tmp#* }"
18206 
18207       # Cannot rely on the command "which" here since it doesn't always work.
18208       is_absolute_path=`$ECHO "$path" | $GREP ^/`
18209       if test -z "$is_absolute_path"; then
18210         # Path to executable is not absolute. Find it.
18211         IFS_save="$IFS"
18212         IFS=:
18213         for p in $PATH; do
18214           if test -f "$p/$path" && test -x "$p/$path"; then
18215             new_path="$p/$path"
18216             break
18217           fi
18218         done
18219         IFS="$IFS_save"
18220       else
18221         # This is an absolute path, we can use it without further modifications.
18222         new_path="$path"
18223       fi
18224 
18225       if test "x$new_path" = x; then
18226         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18227 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18228         has_space=`$ECHO "$complete" | $GREP " "`
18229         if test "x$has_space" != x; then
18230           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
18231 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
18232         fi
18233         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18234       fi
18235     fi
18236 
18237     # Now join together the path and the arguments once again
18238     if test "x$arguments" != xEOL; then
18239       new_complete="$new_path ${arguments% *}"
18240     else
18241       new_complete="$new_path"
18242     fi
18243 
18244     if test "x$complete" != "x$new_complete"; then
18245       FOUND_MAKE="$new_complete"
18246       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
18247 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
18248     fi
18249   fi
18250 
18251         fi
18252       fi
18253     fi
18254   fi
18255 
18256 
18257     if test "x$FOUND_MAKE" = x; then
18258       for ac_prog in make
18259 do
18260   # Extract the first word of "$ac_prog", so it can be a program name with args.
18261 set dummy $ac_prog; ac_word=$2
18262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18263 $as_echo_n "checking for $ac_word... " >&6; }
18264 if ${ac_cv_path_CHECK_MAKE+:} false; then :
18265   $as_echo_n "(cached) " >&6
18266 else
18267   case $CHECK_MAKE in
18268   [\\/]* | ?:[\\/]*)
18269   ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
18270   ;;
18271   *)
18272   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18273 for as_dir in $PATH
18274 do
18275   IFS=$as_save_IFS
18276   test -z "$as_dir" && as_dir=.
18277     for ac_exec_ext in '' $ac_executable_extensions; do
18278   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18279     ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
18280     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18281     break 2
18282   fi
18283 done
18284   done
18285 IFS=$as_save_IFS
18286 
18287   ;;
18288 esac
18289 fi
18290 CHECK_MAKE=$ac_cv_path_CHECK_MAKE
18291 if test -n "$CHECK_MAKE"; then
18292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5
18293 $as_echo "$CHECK_MAKE" >&6; }
18294 else
18295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18296 $as_echo "no" >&6; }
18297 fi
18298 
18299 
18300   test -n "$CHECK_MAKE" && break
18301 done
18302 
18303 
18304   MAKE_CANDIDATE=""$CHECK_MAKE""
18305   DESCRIPTION="make in PATH"
18306 
18307   # On Cygwin, we require a newer version of make than on other platforms
18308   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18309     MAKE_VERSION_EXPR="-e 4\."
18310     MAKE_REQUIRED_VERSION="4.0"
18311    else
18312     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
18313     MAKE_REQUIRED_VERSION="3.81"
18314   fi
18315 
18316   if test "x$MAKE_CANDIDATE" != x; then
18317     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
18318 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
18319     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
18320     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
18321     if test "x$IS_GNU_MAKE" = x; then
18322       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
18323 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
18324     else
18325       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
18326       if test "x$IS_MODERN_MAKE" = x; then
18327         { $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
18328 $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;}
18329       else
18330         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
18331           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18332             MAKE_EXPECTED_ENV='cygwin'
18333           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18334             MAKE_EXPECTED_ENV='msys'
18335           else
18336             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
18337           fi
18338           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
18339           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
18340         else
18341           # Not relevant for non-Windows
18342           IS_MAKE_CORRECT_ENV=true
18343         fi
18344         if test "x$IS_MAKE_CORRECT_ENV" = x; then
18345           { $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
18346 $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;}
18347         else
18348           FOUND_MAKE=$MAKE_CANDIDATE
18349 
18350   # Only process if variable expands to non-empty
18351 
18352   if test "x$FOUND_MAKE" != x; then
18353     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18354 
18355   # First separate the path from the arguments. This will split at the first
18356   # space.
18357   complete="$FOUND_MAKE"
18358   path="${complete%% *}"
18359   tmp="$complete EOL"
18360   arguments="${tmp#* }"
18361 
18362   # Input might be given as Windows format, start by converting to
18363   # unix format.
18364   new_path=`$CYGPATH -u "$path"`
18365 
18366   # Now try to locate executable using which
18367   new_path=`$WHICH "$new_path" 2> /dev/null`
18368   # bat and cmd files are not always considered executable in cygwin causing which
18369   # to not find them
18370   if test "x$new_path" = x \
18371       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18372       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18373     new_path=`$CYGPATH -u "$path"`
18374   fi
18375   if test "x$new_path" = x; then
18376     # Oops. Which didn't find the executable.
18377     # The splitting of arguments from the executable at a space might have been incorrect,
18378     # since paths with space are more likely in Windows. Give it another try with the whole
18379     # argument.
18380     path="$complete"
18381     arguments="EOL"
18382     new_path=`$CYGPATH -u "$path"`
18383     new_path=`$WHICH "$new_path" 2> /dev/null`
18384     # bat and cmd files are not always considered executable in cygwin causing which
18385     # to not find them
18386     if test "x$new_path" = x \
18387         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18388         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18389       new_path=`$CYGPATH -u "$path"`
18390     fi
18391     if test "x$new_path" = x; then
18392       # It's still not found. Now this is an unrecoverable error.
18393       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18394 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18395       has_space=`$ECHO "$complete" | $GREP " "`
18396       if test "x$has_space" != x; then
18397         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18398 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18399       fi
18400       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18401     fi
18402   fi
18403 
18404   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
18405   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
18406   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
18407   # "foo.exe" is OK but "foo" is an error.
18408   #
18409   # This test is therefore slightly more accurate than "test -f" to check for file presence.
18410   # It is also a way to make sure we got the proper file name for the real test later on.
18411   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
18412   if test "x$test_shortpath" = x; then
18413     # Short path failed, file does not exist as specified.
18414     # Try adding .exe or .cmd
18415     if test -f "${new_path}.exe"; then
18416       input_to_shortpath="${new_path}.exe"
18417     elif test -f "${new_path}.cmd"; then
18418       input_to_shortpath="${new_path}.cmd"
18419     else
18420       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
18421 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
18422       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
18423 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
18424       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18425     fi
18426   else
18427     input_to_shortpath="$new_path"
18428   fi
18429 
18430   # Call helper function which possibly converts this using DOS-style short mode.
18431   # If so, the updated path is stored in $new_path.
18432   new_path="$input_to_shortpath"
18433 
18434   input_path="$input_to_shortpath"
18435   # Check if we need to convert this using DOS-style short mode. If the path
18436   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18437   # take no chances and rewrite it.
18438   # Note: m4 eats our [], so we need to use [ and ] instead.
18439   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
18440   if test "x$has_forbidden_chars" != x; then
18441     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18442     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
18443     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
18444     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
18445       # Going to short mode and back again did indeed matter. Since short mode is
18446       # case insensitive, let's make it lowercase to improve readability.
18447       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18448       # Now convert it back to Unix-style (cygpath)
18449       input_path=`$CYGPATH -u "$shortmode_path"`
18450       new_path="$input_path"
18451     fi
18452   fi
18453 
18454   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
18455   if test "x$test_cygdrive_prefix" = x; then
18456     # As a simple fix, exclude /usr/bin since it's not a real path.
18457     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
18458       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
18459       # a path prefixed by /cygdrive for fixpath to work.
18460       new_path="$CYGWIN_ROOT_PATH$input_path"
18461     fi
18462   fi
18463 
18464   # remove trailing .exe if any
18465   new_path="${new_path/%.exe/}"
18466 
18467     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18468 
18469   # First separate the path from the arguments. This will split at the first
18470   # space.
18471   complete="$FOUND_MAKE"
18472   path="${complete%% *}"
18473   tmp="$complete EOL"
18474   arguments="${tmp#* }"
18475 
18476   # Input might be given as Windows format, start by converting to
18477   # unix format.
18478   new_path="$path"
18479 
18480   windows_path="$new_path"
18481   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18482     unix_path=`$CYGPATH -u "$windows_path"`
18483     new_path="$unix_path"
18484   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18485     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18486     new_path="$unix_path"
18487   fi
18488 
18489 
18490   # Now try to locate executable using which
18491   new_path=`$WHICH "$new_path" 2> /dev/null`
18492 
18493   if test "x$new_path" = x; then
18494     # Oops. Which didn't find the executable.
18495     # The splitting of arguments from the executable at a space might have been incorrect,
18496     # since paths with space are more likely in Windows. Give it another try with the whole
18497     # argument.
18498     path="$complete"
18499     arguments="EOL"
18500     new_path="$path"
18501 
18502   windows_path="$new_path"
18503   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18504     unix_path=`$CYGPATH -u "$windows_path"`
18505     new_path="$unix_path"
18506   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18507     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18508     new_path="$unix_path"
18509   fi
18510 
18511 
18512     new_path=`$WHICH "$new_path" 2> /dev/null`
18513     # bat and cmd files are not always considered executable in MSYS causing which
18514     # to not find them
18515     if test "x$new_path" = x \
18516         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18517         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18518       new_path="$path"
18519 
18520   windows_path="$new_path"
18521   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18522     unix_path=`$CYGPATH -u "$windows_path"`
18523     new_path="$unix_path"
18524   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18525     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18526     new_path="$unix_path"
18527   fi
18528 
18529     fi
18530 
18531     if test "x$new_path" = x; then
18532       # It's still not found. Now this is an unrecoverable error.
18533       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18534 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18535       has_space=`$ECHO "$complete" | $GREP " "`
18536       if test "x$has_space" != x; then
18537         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18538 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18539       fi
18540       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18541     fi
18542   fi
18543 
18544   # Now new_path has a complete unix path to the binary
18545   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
18546     # Keep paths in /bin as-is, but remove trailing .exe if any
18547     new_path="${new_path/%.exe/}"
18548     # Do not save /bin paths to all_fixpath_prefixes!
18549   else
18550     # Not in mixed or Windows style, start by that.
18551     new_path=`cmd //c echo $new_path`
18552 
18553   input_path="$new_path"
18554   # Check if we need to convert this using DOS-style short mode. If the path
18555   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18556   # take no chances and rewrite it.
18557   # Note: m4 eats our [], so we need to use [ and ] instead.
18558   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
18559   if test "x$has_forbidden_chars" != x; then
18560     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18561     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18562   fi
18563 
18564     # Output is in $new_path
18565 
18566   windows_path="$new_path"
18567   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18568     unix_path=`$CYGPATH -u "$windows_path"`
18569     new_path="$unix_path"
18570   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18571     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18572     new_path="$unix_path"
18573   fi
18574 
18575     # remove trailing .exe if any
18576     new_path="${new_path/%.exe/}"
18577 
18578     # Save the first 10 bytes of this path to the storage, so fixpath can work.
18579     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
18580   fi
18581 
18582     else
18583       # We're on a unix platform. Hooray! :)
18584       # First separate the path from the arguments. This will split at the first
18585       # space.
18586       complete="$FOUND_MAKE"
18587       path="${complete%% *}"
18588       tmp="$complete EOL"
18589       arguments="${tmp#* }"
18590 
18591       # Cannot rely on the command "which" here since it doesn't always work.
18592       is_absolute_path=`$ECHO "$path" | $GREP ^/`
18593       if test -z "$is_absolute_path"; then
18594         # Path to executable is not absolute. Find it.
18595         IFS_save="$IFS"
18596         IFS=:
18597         for p in $PATH; do
18598           if test -f "$p/$path" && test -x "$p/$path"; then
18599             new_path="$p/$path"
18600             break
18601           fi
18602         done
18603         IFS="$IFS_save"
18604       else
18605         # This is an absolute path, we can use it without further modifications.
18606         new_path="$path"
18607       fi
18608 
18609       if test "x$new_path" = x; then
18610         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18611 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18612         has_space=`$ECHO "$complete" | $GREP " "`
18613         if test "x$has_space" != x; then
18614           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
18615 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
18616         fi
18617         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18618       fi
18619     fi
18620 
18621     # Now join together the path and the arguments once again
18622     if test "x$arguments" != xEOL; then
18623       new_complete="$new_path ${arguments% *}"
18624     else
18625       new_complete="$new_path"
18626     fi
18627 
18628     if test "x$complete" != "x$new_complete"; then
18629       FOUND_MAKE="$new_complete"
18630       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
18631 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
18632     fi
18633   fi
18634 
18635         fi
18636       fi
18637     fi
18638   fi
18639 
18640     fi
18641 
18642     if test "x$FOUND_MAKE" = x; then
18643       if test "x$TOOLCHAIN_PATH" != x; then
18644         # We have a toolchain path, check that as well before giving up.
18645         OLD_PATH=$PATH
18646         PATH=$TOOLCHAIN_PATH:$PATH
18647         for ac_prog in gmake
18648 do
18649   # Extract the first word of "$ac_prog", so it can be a program name with args.
18650 set dummy $ac_prog; ac_word=$2
18651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18652 $as_echo_n "checking for $ac_word... " >&6; }
18653 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then :
18654   $as_echo_n "(cached) " >&6
18655 else
18656   case $CHECK_TOOLSDIR_GMAKE in
18657   [\\/]* | ?:[\\/]*)
18658   ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
18659   ;;
18660   *)
18661   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18662 for as_dir in $PATH
18663 do
18664   IFS=$as_save_IFS
18665   test -z "$as_dir" && as_dir=.
18666     for ac_exec_ext in '' $ac_executable_extensions; do
18667   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18668     ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
18669     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18670     break 2
18671   fi
18672 done
18673   done
18674 IFS=$as_save_IFS
18675 
18676   ;;
18677 esac
18678 fi
18679 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE
18680 if test -n "$CHECK_TOOLSDIR_GMAKE"; then
18681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5
18682 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; }
18683 else
18684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18685 $as_echo "no" >&6; }
18686 fi
18687 
18688 
18689   test -n "$CHECK_TOOLSDIR_GMAKE" && break
18690 done
18691 
18692 
18693   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE""
18694   DESCRIPTION="gmake in tools-dir"
18695 
18696   # On Cygwin, we require a newer version of make than on other platforms
18697   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18698     MAKE_VERSION_EXPR="-e 4\."
18699     MAKE_REQUIRED_VERSION="4.0"
18700    else
18701     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
18702     MAKE_REQUIRED_VERSION="3.81"
18703   fi
18704 
18705   if test "x$MAKE_CANDIDATE" != x; then
18706     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
18707 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
18708     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
18709     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
18710     if test "x$IS_GNU_MAKE" = x; then
18711       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
18712 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
18713     else
18714       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
18715       if test "x$IS_MODERN_MAKE" = x; then
18716         { $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
18717 $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;}
18718       else
18719         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
18720           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18721             MAKE_EXPECTED_ENV='cygwin'
18722           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18723             MAKE_EXPECTED_ENV='msys'
18724           else
18725             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
18726           fi
18727           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
18728           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
18729         else
18730           # Not relevant for non-Windows
18731           IS_MAKE_CORRECT_ENV=true
18732         fi
18733         if test "x$IS_MAKE_CORRECT_ENV" = x; then
18734           { $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
18735 $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;}
18736         else
18737           FOUND_MAKE=$MAKE_CANDIDATE
18738 
18739   # Only process if variable expands to non-empty
18740 
18741   if test "x$FOUND_MAKE" != x; then
18742     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18743 
18744   # First separate the path from the arguments. This will split at the first
18745   # space.
18746   complete="$FOUND_MAKE"
18747   path="${complete%% *}"
18748   tmp="$complete EOL"
18749   arguments="${tmp#* }"
18750 
18751   # Input might be given as Windows format, start by converting to
18752   # unix format.
18753   new_path=`$CYGPATH -u "$path"`
18754 
18755   # Now try to locate executable using which
18756   new_path=`$WHICH "$new_path" 2> /dev/null`
18757   # bat and cmd files are not always considered executable in cygwin causing which
18758   # to not find them
18759   if test "x$new_path" = x \
18760       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18761       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18762     new_path=`$CYGPATH -u "$path"`
18763   fi
18764   if test "x$new_path" = x; then
18765     # Oops. Which didn't find the executable.
18766     # The splitting of arguments from the executable at a space might have been incorrect,
18767     # since paths with space are more likely in Windows. Give it another try with the whole
18768     # argument.
18769     path="$complete"
18770     arguments="EOL"
18771     new_path=`$CYGPATH -u "$path"`
18772     new_path=`$WHICH "$new_path" 2> /dev/null`
18773     # bat and cmd files are not always considered executable in cygwin causing which
18774     # to not find them
18775     if test "x$new_path" = x \
18776         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18777         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18778       new_path=`$CYGPATH -u "$path"`
18779     fi
18780     if test "x$new_path" = x; then
18781       # It's still not found. Now this is an unrecoverable error.
18782       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18783 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18784       has_space=`$ECHO "$complete" | $GREP " "`
18785       if test "x$has_space" != x; then
18786         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18787 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18788       fi
18789       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18790     fi
18791   fi
18792 
18793   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
18794   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
18795   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
18796   # "foo.exe" is OK but "foo" is an error.
18797   #
18798   # This test is therefore slightly more accurate than "test -f" to check for file presence.
18799   # It is also a way to make sure we got the proper file name for the real test later on.
18800   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
18801   if test "x$test_shortpath" = x; then
18802     # Short path failed, file does not exist as specified.
18803     # Try adding .exe or .cmd
18804     if test -f "${new_path}.exe"; then
18805       input_to_shortpath="${new_path}.exe"
18806     elif test -f "${new_path}.cmd"; then
18807       input_to_shortpath="${new_path}.cmd"
18808     else
18809       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
18810 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
18811       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
18812 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
18813       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18814     fi
18815   else
18816     input_to_shortpath="$new_path"
18817   fi
18818 
18819   # Call helper function which possibly converts this using DOS-style short mode.
18820   # If so, the updated path is stored in $new_path.
18821   new_path="$input_to_shortpath"
18822 
18823   input_path="$input_to_shortpath"
18824   # Check if we need to convert this using DOS-style short mode. If the path
18825   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18826   # take no chances and rewrite it.
18827   # Note: m4 eats our [], so we need to use [ and ] instead.
18828   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
18829   if test "x$has_forbidden_chars" != x; then
18830     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18831     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
18832     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
18833     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
18834       # Going to short mode and back again did indeed matter. Since short mode is
18835       # case insensitive, let's make it lowercase to improve readability.
18836       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18837       # Now convert it back to Unix-style (cygpath)
18838       input_path=`$CYGPATH -u "$shortmode_path"`
18839       new_path="$input_path"
18840     fi
18841   fi
18842 
18843   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
18844   if test "x$test_cygdrive_prefix" = x; then
18845     # As a simple fix, exclude /usr/bin since it's not a real path.
18846     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
18847       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
18848       # a path prefixed by /cygdrive for fixpath to work.
18849       new_path="$CYGWIN_ROOT_PATH$input_path"
18850     fi
18851   fi
18852 
18853   # remove trailing .exe if any
18854   new_path="${new_path/%.exe/}"
18855 
18856     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18857 
18858   # First separate the path from the arguments. This will split at the first
18859   # space.
18860   complete="$FOUND_MAKE"
18861   path="${complete%% *}"
18862   tmp="$complete EOL"
18863   arguments="${tmp#* }"
18864 
18865   # Input might be given as Windows format, start by converting to
18866   # unix format.
18867   new_path="$path"
18868 
18869   windows_path="$new_path"
18870   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18871     unix_path=`$CYGPATH -u "$windows_path"`
18872     new_path="$unix_path"
18873   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18874     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18875     new_path="$unix_path"
18876   fi
18877 
18878 
18879   # Now try to locate executable using which
18880   new_path=`$WHICH "$new_path" 2> /dev/null`
18881 
18882   if test "x$new_path" = x; then
18883     # Oops. Which didn't find the executable.
18884     # The splitting of arguments from the executable at a space might have been incorrect,
18885     # since paths with space are more likely in Windows. Give it another try with the whole
18886     # argument.
18887     path="$complete"
18888     arguments="EOL"
18889     new_path="$path"
18890 
18891   windows_path="$new_path"
18892   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18893     unix_path=`$CYGPATH -u "$windows_path"`
18894     new_path="$unix_path"
18895   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18896     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18897     new_path="$unix_path"
18898   fi
18899 
18900 
18901     new_path=`$WHICH "$new_path" 2> /dev/null`
18902     # bat and cmd files are not always considered executable in MSYS causing which
18903     # to not find them
18904     if test "x$new_path" = x \
18905         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18906         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18907       new_path="$path"
18908 
18909   windows_path="$new_path"
18910   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18911     unix_path=`$CYGPATH -u "$windows_path"`
18912     new_path="$unix_path"
18913   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18914     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18915     new_path="$unix_path"
18916   fi
18917 
18918     fi
18919 
18920     if test "x$new_path" = x; then
18921       # It's still not found. Now this is an unrecoverable error.
18922       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18923 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18924       has_space=`$ECHO "$complete" | $GREP " "`
18925       if test "x$has_space" != x; then
18926         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18927 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18928       fi
18929       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18930     fi
18931   fi
18932 
18933   # Now new_path has a complete unix path to the binary
18934   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
18935     # Keep paths in /bin as-is, but remove trailing .exe if any
18936     new_path="${new_path/%.exe/}"
18937     # Do not save /bin paths to all_fixpath_prefixes!
18938   else
18939     # Not in mixed or Windows style, start by that.
18940     new_path=`cmd //c echo $new_path`
18941 
18942   input_path="$new_path"
18943   # Check if we need to convert this using DOS-style short mode. If the path
18944   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18945   # take no chances and rewrite it.
18946   # Note: m4 eats our [], so we need to use [ and ] instead.
18947   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
18948   if test "x$has_forbidden_chars" != x; then
18949     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18950     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18951   fi
18952 
18953     # Output is in $new_path
18954 
18955   windows_path="$new_path"
18956   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18957     unix_path=`$CYGPATH -u "$windows_path"`
18958     new_path="$unix_path"
18959   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18960     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18961     new_path="$unix_path"
18962   fi
18963 
18964     # remove trailing .exe if any
18965     new_path="${new_path/%.exe/}"
18966 
18967     # Save the first 10 bytes of this path to the storage, so fixpath can work.
18968     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
18969   fi
18970 
18971     else
18972       # We're on a unix platform. Hooray! :)
18973       # First separate the path from the arguments. This will split at the first
18974       # space.
18975       complete="$FOUND_MAKE"
18976       path="${complete%% *}"
18977       tmp="$complete EOL"
18978       arguments="${tmp#* }"
18979 
18980       # Cannot rely on the command "which" here since it doesn't always work.
18981       is_absolute_path=`$ECHO "$path" | $GREP ^/`
18982       if test -z "$is_absolute_path"; then
18983         # Path to executable is not absolute. Find it.
18984         IFS_save="$IFS"
18985         IFS=:
18986         for p in $PATH; do
18987           if test -f "$p/$path" && test -x "$p/$path"; then
18988             new_path="$p/$path"
18989             break
18990           fi
18991         done
18992         IFS="$IFS_save"
18993       else
18994         # This is an absolute path, we can use it without further modifications.
18995         new_path="$path"
18996       fi
18997 
18998       if test "x$new_path" = x; then
18999         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19000 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19001         has_space=`$ECHO "$complete" | $GREP " "`
19002         if test "x$has_space" != x; then
19003           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
19004 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
19005         fi
19006         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19007       fi
19008     fi
19009 
19010     # Now join together the path and the arguments once again
19011     if test "x$arguments" != xEOL; then
19012       new_complete="$new_path ${arguments% *}"
19013     else
19014       new_complete="$new_path"
19015     fi
19016 
19017     if test "x$complete" != "x$new_complete"; then
19018       FOUND_MAKE="$new_complete"
19019       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
19020 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
19021     fi
19022   fi
19023 
19024         fi
19025       fi
19026     fi
19027   fi
19028 
19029         if test "x$FOUND_MAKE" = x; then
19030           for ac_prog in make
19031 do
19032   # Extract the first word of "$ac_prog", so it can be a program name with args.
19033 set dummy $ac_prog; ac_word=$2
19034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19035 $as_echo_n "checking for $ac_word... " >&6; }
19036 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then :
19037   $as_echo_n "(cached) " >&6
19038 else
19039   case $CHECK_TOOLSDIR_MAKE in
19040   [\\/]* | ?:[\\/]*)
19041   ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
19042   ;;
19043   *)
19044   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19045 for as_dir in $PATH
19046 do
19047   IFS=$as_save_IFS
19048   test -z "$as_dir" && as_dir=.
19049     for ac_exec_ext in '' $ac_executable_extensions; do
19050   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19051     ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
19052     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19053     break 2
19054   fi
19055 done
19056   done
19057 IFS=$as_save_IFS
19058 
19059   ;;
19060 esac
19061 fi
19062 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE
19063 if test -n "$CHECK_TOOLSDIR_MAKE"; then
19064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5
19065 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; }
19066 else
19067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19068 $as_echo "no" >&6; }
19069 fi
19070 
19071 
19072   test -n "$CHECK_TOOLSDIR_MAKE" && break
19073 done
19074 
19075 
19076   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE""
19077   DESCRIPTION="make in tools-dir"
19078 
19079   # On Cygwin, we require a newer version of make than on other platforms
19080   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19081     MAKE_VERSION_EXPR="-e 4\."
19082     MAKE_REQUIRED_VERSION="4.0"
19083    else
19084     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
19085     MAKE_REQUIRED_VERSION="3.81"
19086   fi
19087 
19088   if test "x$MAKE_CANDIDATE" != x; then
19089     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
19090 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
19091     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
19092     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
19093     if test "x$IS_GNU_MAKE" = x; then
19094       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
19095 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
19096     else
19097       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
19098       if test "x$IS_MODERN_MAKE" = x; then
19099         { $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
19100 $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;}
19101       else
19102         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
19103           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19104             MAKE_EXPECTED_ENV='cygwin'
19105           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19106             MAKE_EXPECTED_ENV='msys'
19107           else
19108             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
19109           fi
19110           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
19111           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
19112         else
19113           # Not relevant for non-Windows
19114           IS_MAKE_CORRECT_ENV=true
19115         fi
19116         if test "x$IS_MAKE_CORRECT_ENV" = x; then
19117           { $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
19118 $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;}
19119         else
19120           FOUND_MAKE=$MAKE_CANDIDATE
19121 
19122   # Only process if variable expands to non-empty
19123 
19124   if test "x$FOUND_MAKE" != x; then
19125     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19126 
19127   # First separate the path from the arguments. This will split at the first
19128   # space.
19129   complete="$FOUND_MAKE"
19130   path="${complete%% *}"
19131   tmp="$complete EOL"
19132   arguments="${tmp#* }"
19133 
19134   # Input might be given as Windows format, start by converting to
19135   # unix format.
19136   new_path=`$CYGPATH -u "$path"`
19137 
19138   # Now try to locate executable using which
19139   new_path=`$WHICH "$new_path" 2> /dev/null`
19140   # bat and cmd files are not always considered executable in cygwin causing which
19141   # to not find them
19142   if test "x$new_path" = x \
19143       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19144       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19145     new_path=`$CYGPATH -u "$path"`
19146   fi
19147   if test "x$new_path" = x; then
19148     # Oops. Which didn't find the executable.
19149     # The splitting of arguments from the executable at a space might have been incorrect,
19150     # since paths with space are more likely in Windows. Give it another try with the whole
19151     # argument.
19152     path="$complete"
19153     arguments="EOL"
19154     new_path=`$CYGPATH -u "$path"`
19155     new_path=`$WHICH "$new_path" 2> /dev/null`
19156     # bat and cmd files are not always considered executable in cygwin causing which
19157     # to not find them
19158     if test "x$new_path" = x \
19159         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19160         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19161       new_path=`$CYGPATH -u "$path"`
19162     fi
19163     if test "x$new_path" = x; then
19164       # It's still not found. Now this is an unrecoverable error.
19165       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19166 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19167       has_space=`$ECHO "$complete" | $GREP " "`
19168       if test "x$has_space" != x; then
19169         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19170 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19171       fi
19172       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19173     fi
19174   fi
19175 
19176   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19177   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19178   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19179   # "foo.exe" is OK but "foo" is an error.
19180   #
19181   # This test is therefore slightly more accurate than "test -f" to check for file presence.
19182   # It is also a way to make sure we got the proper file name for the real test later on.
19183   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19184   if test "x$test_shortpath" = x; then
19185     # Short path failed, file does not exist as specified.
19186     # Try adding .exe or .cmd
19187     if test -f "${new_path}.exe"; then
19188       input_to_shortpath="${new_path}.exe"
19189     elif test -f "${new_path}.cmd"; then
19190       input_to_shortpath="${new_path}.cmd"
19191     else
19192       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
19193 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
19194       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
19195 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
19196       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19197     fi
19198   else
19199     input_to_shortpath="$new_path"
19200   fi
19201 
19202   # Call helper function which possibly converts this using DOS-style short mode.
19203   # If so, the updated path is stored in $new_path.
19204   new_path="$input_to_shortpath"
19205 
19206   input_path="$input_to_shortpath"
19207   # Check if we need to convert this using DOS-style short mode. If the path
19208   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19209   # take no chances and rewrite it.
19210   # Note: m4 eats our [], so we need to use [ and ] instead.
19211   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19212   if test "x$has_forbidden_chars" != x; then
19213     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19214     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19215     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19216     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19217       # Going to short mode and back again did indeed matter. Since short mode is
19218       # case insensitive, let's make it lowercase to improve readability.
19219       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19220       # Now convert it back to Unix-style (cygpath)
19221       input_path=`$CYGPATH -u "$shortmode_path"`
19222       new_path="$input_path"
19223     fi
19224   fi
19225 
19226   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
19227   if test "x$test_cygdrive_prefix" = x; then
19228     # As a simple fix, exclude /usr/bin since it's not a real path.
19229     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
19230       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
19231       # a path prefixed by /cygdrive for fixpath to work.
19232       new_path="$CYGWIN_ROOT_PATH$input_path"
19233     fi
19234   fi
19235 
19236   # remove trailing .exe if any
19237   new_path="${new_path/%.exe/}"
19238 
19239     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19240 
19241   # First separate the path from the arguments. This will split at the first
19242   # space.
19243   complete="$FOUND_MAKE"
19244   path="${complete%% *}"
19245   tmp="$complete EOL"
19246   arguments="${tmp#* }"
19247 
19248   # Input might be given as Windows format, start by converting to
19249   # unix format.
19250   new_path="$path"
19251 
19252   windows_path="$new_path"
19253   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19254     unix_path=`$CYGPATH -u "$windows_path"`
19255     new_path="$unix_path"
19256   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19257     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19258     new_path="$unix_path"
19259   fi
19260 
19261 
19262   # Now try to locate executable using which
19263   new_path=`$WHICH "$new_path" 2> /dev/null`
19264 
19265   if test "x$new_path" = x; then
19266     # Oops. Which didn't find the executable.
19267     # The splitting of arguments from the executable at a space might have been incorrect,
19268     # since paths with space are more likely in Windows. Give it another try with the whole
19269     # argument.
19270     path="$complete"
19271     arguments="EOL"
19272     new_path="$path"
19273 
19274   windows_path="$new_path"
19275   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19276     unix_path=`$CYGPATH -u "$windows_path"`
19277     new_path="$unix_path"
19278   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19279     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19280     new_path="$unix_path"
19281   fi
19282 
19283 
19284     new_path=`$WHICH "$new_path" 2> /dev/null`
19285     # bat and cmd files are not always considered executable in MSYS causing which
19286     # to not find them
19287     if test "x$new_path" = x \
19288         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19289         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19290       new_path="$path"
19291 
19292   windows_path="$new_path"
19293   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19294     unix_path=`$CYGPATH -u "$windows_path"`
19295     new_path="$unix_path"
19296   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19297     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19298     new_path="$unix_path"
19299   fi
19300 
19301     fi
19302 
19303     if test "x$new_path" = x; then
19304       # It's still not found. Now this is an unrecoverable error.
19305       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19306 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19307       has_space=`$ECHO "$complete" | $GREP " "`
19308       if test "x$has_space" != x; then
19309         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19310 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19311       fi
19312       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19313     fi
19314   fi
19315 
19316   # Now new_path has a complete unix path to the binary
19317   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
19318     # Keep paths in /bin as-is, but remove trailing .exe if any
19319     new_path="${new_path/%.exe/}"
19320     # Do not save /bin paths to all_fixpath_prefixes!
19321   else
19322     # Not in mixed or Windows style, start by that.
19323     new_path=`cmd //c echo $new_path`
19324 
19325   input_path="$new_path"
19326   # Check if we need to convert this using DOS-style short mode. If the path
19327   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19328   # take no chances and rewrite it.
19329   # Note: m4 eats our [], so we need to use [ and ] instead.
19330   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
19331   if test "x$has_forbidden_chars" != x; then
19332     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19333     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19334   fi
19335 
19336     # Output is in $new_path
19337 
19338   windows_path="$new_path"
19339   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19340     unix_path=`$CYGPATH -u "$windows_path"`
19341     new_path="$unix_path"
19342   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19343     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19344     new_path="$unix_path"
19345   fi
19346 
19347     # remove trailing .exe if any
19348     new_path="${new_path/%.exe/}"
19349 
19350     # Save the first 10 bytes of this path to the storage, so fixpath can work.
19351     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
19352   fi
19353 
19354     else
19355       # We're on a unix platform. Hooray! :)
19356       # First separate the path from the arguments. This will split at the first
19357       # space.
19358       complete="$FOUND_MAKE"
19359       path="${complete%% *}"
19360       tmp="$complete EOL"
19361       arguments="${tmp#* }"
19362 
19363       # Cannot rely on the command "which" here since it doesn't always work.
19364       is_absolute_path=`$ECHO "$path" | $GREP ^/`
19365       if test -z "$is_absolute_path"; then
19366         # Path to executable is not absolute. Find it.
19367         IFS_save="$IFS"
19368         IFS=:
19369         for p in $PATH; do
19370           if test -f "$p/$path" && test -x "$p/$path"; then
19371             new_path="$p/$path"
19372             break
19373           fi
19374         done
19375         IFS="$IFS_save"
19376       else
19377         # This is an absolute path, we can use it without further modifications.
19378         new_path="$path"
19379       fi
19380 
19381       if test "x$new_path" = x; then
19382         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19383 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19384         has_space=`$ECHO "$complete" | $GREP " "`
19385         if test "x$has_space" != x; then
19386           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
19387 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
19388         fi
19389         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19390       fi
19391     fi
19392 
19393     # Now join together the path and the arguments once again
19394     if test "x$arguments" != xEOL; then
19395       new_complete="$new_path ${arguments% *}"
19396     else
19397       new_complete="$new_path"
19398     fi
19399 
19400     if test "x$complete" != "x$new_complete"; then
19401       FOUND_MAKE="$new_complete"
19402       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
19403 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
19404     fi
19405   fi
19406 
19407         fi
19408       fi
19409     fi
19410   fi
19411 
19412         fi
19413         PATH=$OLD_PATH
19414       fi
19415     fi
19416 
19417     if test "x$FOUND_MAKE" = x; then
19418       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
19419     fi
19420 
19421   else
19422     # The variable is set, but is it from the command line or the environment?
19423 
19424     # Try to remove the string !MAKE! from our list.
19425     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MAKE!/}
19426     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
19427       # If it failed, the variable was not from the command line. Ignore it,
19428       # but warn the user (except for BASH, which is always set by the calling BASH).
19429       if test "xMAKE" != xBASH; then
19430         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MAKE from the environment. Use command line variables instead." >&5
19431 $as_echo "$as_me: WARNING: Ignoring value of MAKE from the environment. Use command line variables instead." >&2;}
19432       fi
19433       # Try to locate tool using the code snippet
19434 
19435     # Try our hardest to locate a correct version of GNU make
19436     for ac_prog in gmake
19437 do
19438   # Extract the first word of "$ac_prog", so it can be a program name with args.
19439 set dummy $ac_prog; ac_word=$2
19440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19441 $as_echo_n "checking for $ac_word... " >&6; }
19442 if ${ac_cv_path_CHECK_GMAKE+:} false; then :
19443   $as_echo_n "(cached) " >&6
19444 else
19445   case $CHECK_GMAKE in
19446   [\\/]* | ?:[\\/]*)
19447   ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
19448   ;;
19449   *)
19450   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19451 for as_dir in $PATH
19452 do
19453   IFS=$as_save_IFS
19454   test -z "$as_dir" && as_dir=.
19455     for ac_exec_ext in '' $ac_executable_extensions; do
19456   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19457     ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
19458     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19459     break 2
19460   fi
19461 done
19462   done
19463 IFS=$as_save_IFS
19464 
19465   ;;
19466 esac
19467 fi
19468 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE
19469 if test -n "$CHECK_GMAKE"; then
19470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5
19471 $as_echo "$CHECK_GMAKE" >&6; }
19472 else
19473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19474 $as_echo "no" >&6; }
19475 fi
19476 
19477 
19478   test -n "$CHECK_GMAKE" && break
19479 done
19480 
19481 
19482   MAKE_CANDIDATE=""$CHECK_GMAKE""
19483   DESCRIPTION="gmake in PATH"
19484 
19485   # On Cygwin, we require a newer version of make than on other platforms
19486   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19487     MAKE_VERSION_EXPR="-e 4\."
19488     MAKE_REQUIRED_VERSION="4.0"
19489    else
19490     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
19491     MAKE_REQUIRED_VERSION="3.81"
19492   fi
19493 
19494   if test "x$MAKE_CANDIDATE" != x; then
19495     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
19496 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
19497     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
19498     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
19499     if test "x$IS_GNU_MAKE" = x; then
19500       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
19501 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
19502     else
19503       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
19504       if test "x$IS_MODERN_MAKE" = x; then
19505         { $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
19506 $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;}
19507       else
19508         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
19509           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19510             MAKE_EXPECTED_ENV='cygwin'
19511           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19512             MAKE_EXPECTED_ENV='msys'
19513           else
19514             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
19515           fi
19516           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
19517           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
19518         else
19519           # Not relevant for non-Windows
19520           IS_MAKE_CORRECT_ENV=true
19521         fi
19522         if test "x$IS_MAKE_CORRECT_ENV" = x; then
19523           { $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
19524 $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;}
19525         else
19526           FOUND_MAKE=$MAKE_CANDIDATE
19527 
19528   # Only process if variable expands to non-empty
19529 
19530   if test "x$FOUND_MAKE" != x; then
19531     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19532 
19533   # First separate the path from the arguments. This will split at the first
19534   # space.
19535   complete="$FOUND_MAKE"
19536   path="${complete%% *}"
19537   tmp="$complete EOL"
19538   arguments="${tmp#* }"
19539 
19540   # Input might be given as Windows format, start by converting to
19541   # unix format.
19542   new_path=`$CYGPATH -u "$path"`
19543 
19544   # Now try to locate executable using which
19545   new_path=`$WHICH "$new_path" 2> /dev/null`
19546   # bat and cmd files are not always considered executable in cygwin causing which
19547   # to not find them
19548   if test "x$new_path" = x \
19549       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19550       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19551     new_path=`$CYGPATH -u "$path"`
19552   fi
19553   if test "x$new_path" = x; then
19554     # Oops. Which didn't find the executable.
19555     # The splitting of arguments from the executable at a space might have been incorrect,
19556     # since paths with space are more likely in Windows. Give it another try with the whole
19557     # argument.
19558     path="$complete"
19559     arguments="EOL"
19560     new_path=`$CYGPATH -u "$path"`
19561     new_path=`$WHICH "$new_path" 2> /dev/null`
19562     # bat and cmd files are not always considered executable in cygwin causing which
19563     # to not find them
19564     if test "x$new_path" = x \
19565         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19566         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19567       new_path=`$CYGPATH -u "$path"`
19568     fi
19569     if test "x$new_path" = x; then
19570       # It's still not found. Now this is an unrecoverable error.
19571       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19572 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19573       has_space=`$ECHO "$complete" | $GREP " "`
19574       if test "x$has_space" != x; then
19575         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19576 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19577       fi
19578       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19579     fi
19580   fi
19581 
19582   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19583   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19584   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19585   # "foo.exe" is OK but "foo" is an error.
19586   #
19587   # This test is therefore slightly more accurate than "test -f" to check for file presence.
19588   # It is also a way to make sure we got the proper file name for the real test later on.
19589   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19590   if test "x$test_shortpath" = x; then
19591     # Short path failed, file does not exist as specified.
19592     # Try adding .exe or .cmd
19593     if test -f "${new_path}.exe"; then
19594       input_to_shortpath="${new_path}.exe"
19595     elif test -f "${new_path}.cmd"; then
19596       input_to_shortpath="${new_path}.cmd"
19597     else
19598       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
19599 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
19600       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
19601 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
19602       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19603     fi
19604   else
19605     input_to_shortpath="$new_path"
19606   fi
19607 
19608   # Call helper function which possibly converts this using DOS-style short mode.
19609   # If so, the updated path is stored in $new_path.
19610   new_path="$input_to_shortpath"
19611 
19612   input_path="$input_to_shortpath"
19613   # Check if we need to convert this using DOS-style short mode. If the path
19614   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19615   # take no chances and rewrite it.
19616   # Note: m4 eats our [], so we need to use [ and ] instead.
19617   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19618   if test "x$has_forbidden_chars" != x; then
19619     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19620     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19621     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19622     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19623       # Going to short mode and back again did indeed matter. Since short mode is
19624       # case insensitive, let's make it lowercase to improve readability.
19625       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19626       # Now convert it back to Unix-style (cygpath)
19627       input_path=`$CYGPATH -u "$shortmode_path"`
19628       new_path="$input_path"
19629     fi
19630   fi
19631 
19632   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
19633   if test "x$test_cygdrive_prefix" = x; then
19634     # As a simple fix, exclude /usr/bin since it's not a real path.
19635     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
19636       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
19637       # a path prefixed by /cygdrive for fixpath to work.
19638       new_path="$CYGWIN_ROOT_PATH$input_path"
19639     fi
19640   fi
19641 
19642   # remove trailing .exe if any
19643   new_path="${new_path/%.exe/}"
19644 
19645     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19646 
19647   # First separate the path from the arguments. This will split at the first
19648   # space.
19649   complete="$FOUND_MAKE"
19650   path="${complete%% *}"
19651   tmp="$complete EOL"
19652   arguments="${tmp#* }"
19653 
19654   # Input might be given as Windows format, start by converting to
19655   # unix format.
19656   new_path="$path"
19657 
19658   windows_path="$new_path"
19659   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19660     unix_path=`$CYGPATH -u "$windows_path"`
19661     new_path="$unix_path"
19662   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19663     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19664     new_path="$unix_path"
19665   fi
19666 
19667 
19668   # Now try to locate executable using which
19669   new_path=`$WHICH "$new_path" 2> /dev/null`
19670 
19671   if test "x$new_path" = x; then
19672     # Oops. Which didn't find the executable.
19673     # The splitting of arguments from the executable at a space might have been incorrect,
19674     # since paths with space are more likely in Windows. Give it another try with the whole
19675     # argument.
19676     path="$complete"
19677     arguments="EOL"
19678     new_path="$path"
19679 
19680   windows_path="$new_path"
19681   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19682     unix_path=`$CYGPATH -u "$windows_path"`
19683     new_path="$unix_path"
19684   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19685     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19686     new_path="$unix_path"
19687   fi
19688 
19689 
19690     new_path=`$WHICH "$new_path" 2> /dev/null`
19691     # bat and cmd files are not always considered executable in MSYS causing which
19692     # to not find them
19693     if test "x$new_path" = x \
19694         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19695         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19696       new_path="$path"
19697 
19698   windows_path="$new_path"
19699   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19700     unix_path=`$CYGPATH -u "$windows_path"`
19701     new_path="$unix_path"
19702   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19703     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19704     new_path="$unix_path"
19705   fi
19706 
19707     fi
19708 
19709     if test "x$new_path" = x; then
19710       # It's still not found. Now this is an unrecoverable error.
19711       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19712 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19713       has_space=`$ECHO "$complete" | $GREP " "`
19714       if test "x$has_space" != x; then
19715         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19716 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19717       fi
19718       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19719     fi
19720   fi
19721 
19722   # Now new_path has a complete unix path to the binary
19723   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
19724     # Keep paths in /bin as-is, but remove trailing .exe if any
19725     new_path="${new_path/%.exe/}"
19726     # Do not save /bin paths to all_fixpath_prefixes!
19727   else
19728     # Not in mixed or Windows style, start by that.
19729     new_path=`cmd //c echo $new_path`
19730 
19731   input_path="$new_path"
19732   # Check if we need to convert this using DOS-style short mode. If the path
19733   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19734   # take no chances and rewrite it.
19735   # Note: m4 eats our [], so we need to use [ and ] instead.
19736   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
19737   if test "x$has_forbidden_chars" != x; then
19738     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19739     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19740   fi
19741 
19742     # Output is in $new_path
19743 
19744   windows_path="$new_path"
19745   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19746     unix_path=`$CYGPATH -u "$windows_path"`
19747     new_path="$unix_path"
19748   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19749     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19750     new_path="$unix_path"
19751   fi
19752 
19753     # remove trailing .exe if any
19754     new_path="${new_path/%.exe/}"
19755 
19756     # Save the first 10 bytes of this path to the storage, so fixpath can work.
19757     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
19758   fi
19759 
19760     else
19761       # We're on a unix platform. Hooray! :)
19762       # First separate the path from the arguments. This will split at the first
19763       # space.
19764       complete="$FOUND_MAKE"
19765       path="${complete%% *}"
19766       tmp="$complete EOL"
19767       arguments="${tmp#* }"
19768 
19769       # Cannot rely on the command "which" here since it doesn't always work.
19770       is_absolute_path=`$ECHO "$path" | $GREP ^/`
19771       if test -z "$is_absolute_path"; then
19772         # Path to executable is not absolute. Find it.
19773         IFS_save="$IFS"
19774         IFS=:
19775         for p in $PATH; do
19776           if test -f "$p/$path" && test -x "$p/$path"; then
19777             new_path="$p/$path"
19778             break
19779           fi
19780         done
19781         IFS="$IFS_save"
19782       else
19783         # This is an absolute path, we can use it without further modifications.
19784         new_path="$path"
19785       fi
19786 
19787       if test "x$new_path" = x; then
19788         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19789 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19790         has_space=`$ECHO "$complete" | $GREP " "`
19791         if test "x$has_space" != x; then
19792           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
19793 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
19794         fi
19795         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19796       fi
19797     fi
19798 
19799     # Now join together the path and the arguments once again
19800     if test "x$arguments" != xEOL; then
19801       new_complete="$new_path ${arguments% *}"
19802     else
19803       new_complete="$new_path"
19804     fi
19805 
19806     if test "x$complete" != "x$new_complete"; then
19807       FOUND_MAKE="$new_complete"
19808       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
19809 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
19810     fi
19811   fi
19812 
19813         fi
19814       fi
19815     fi
19816   fi
19817 
19818 
19819     if test "x$FOUND_MAKE" = x; then
19820       for ac_prog in make
19821 do
19822   # Extract the first word of "$ac_prog", so it can be a program name with args.
19823 set dummy $ac_prog; ac_word=$2
19824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19825 $as_echo_n "checking for $ac_word... " >&6; }
19826 if ${ac_cv_path_CHECK_MAKE+:} false; then :
19827   $as_echo_n "(cached) " >&6
19828 else
19829   case $CHECK_MAKE in
19830   [\\/]* | ?:[\\/]*)
19831   ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
19832   ;;
19833   *)
19834   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19835 for as_dir in $PATH
19836 do
19837   IFS=$as_save_IFS
19838   test -z "$as_dir" && as_dir=.
19839     for ac_exec_ext in '' $ac_executable_extensions; do
19840   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19841     ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
19842     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19843     break 2
19844   fi
19845 done
19846   done
19847 IFS=$as_save_IFS
19848 
19849   ;;
19850 esac
19851 fi
19852 CHECK_MAKE=$ac_cv_path_CHECK_MAKE
19853 if test -n "$CHECK_MAKE"; then
19854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5
19855 $as_echo "$CHECK_MAKE" >&6; }
19856 else
19857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19858 $as_echo "no" >&6; }
19859 fi
19860 
19861 
19862   test -n "$CHECK_MAKE" && break
19863 done
19864 
19865 
19866   MAKE_CANDIDATE=""$CHECK_MAKE""
19867   DESCRIPTION="make in PATH"
19868 
19869   # On Cygwin, we require a newer version of make than on other platforms
19870   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19871     MAKE_VERSION_EXPR="-e 4\."
19872     MAKE_REQUIRED_VERSION="4.0"
19873    else
19874     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
19875     MAKE_REQUIRED_VERSION="3.81"
19876   fi
19877 
19878   if test "x$MAKE_CANDIDATE" != x; then
19879     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
19880 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
19881     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
19882     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
19883     if test "x$IS_GNU_MAKE" = x; then
19884       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
19885 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
19886     else
19887       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
19888       if test "x$IS_MODERN_MAKE" = x; then
19889         { $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
19890 $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;}
19891       else
19892         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
19893           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19894             MAKE_EXPECTED_ENV='cygwin'
19895           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19896             MAKE_EXPECTED_ENV='msys'
19897           else
19898             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
19899           fi
19900           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
19901           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
19902         else
19903           # Not relevant for non-Windows
19904           IS_MAKE_CORRECT_ENV=true
19905         fi
19906         if test "x$IS_MAKE_CORRECT_ENV" = x; then
19907           { $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
19908 $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;}
19909         else
19910           FOUND_MAKE=$MAKE_CANDIDATE
19911 
19912   # Only process if variable expands to non-empty
19913 
19914   if test "x$FOUND_MAKE" != x; then
19915     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19916 
19917   # First separate the path from the arguments. This will split at the first
19918   # space.
19919   complete="$FOUND_MAKE"
19920   path="${complete%% *}"
19921   tmp="$complete EOL"
19922   arguments="${tmp#* }"
19923 
19924   # Input might be given as Windows format, start by converting to
19925   # unix format.
19926   new_path=`$CYGPATH -u "$path"`
19927 
19928   # Now try to locate executable using which
19929   new_path=`$WHICH "$new_path" 2> /dev/null`
19930   # bat and cmd files are not always considered executable in cygwin causing which
19931   # to not find them
19932   if test "x$new_path" = x \
19933       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19934       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19935     new_path=`$CYGPATH -u "$path"`
19936   fi
19937   if test "x$new_path" = x; then
19938     # Oops. Which didn't find the executable.
19939     # The splitting of arguments from the executable at a space might have been incorrect,
19940     # since paths with space are more likely in Windows. Give it another try with the whole
19941     # argument.
19942     path="$complete"
19943     arguments="EOL"
19944     new_path=`$CYGPATH -u "$path"`
19945     new_path=`$WHICH "$new_path" 2> /dev/null`
19946     # bat and cmd files are not always considered executable in cygwin causing which
19947     # to not find them
19948     if test "x$new_path" = x \
19949         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19950         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19951       new_path=`$CYGPATH -u "$path"`
19952     fi
19953     if test "x$new_path" = x; then
19954       # It's still not found. Now this is an unrecoverable error.
19955       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19956 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19957       has_space=`$ECHO "$complete" | $GREP " "`
19958       if test "x$has_space" != x; then
19959         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19960 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19961       fi
19962       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19963     fi
19964   fi
19965 
19966   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19967   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19968   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19969   # "foo.exe" is OK but "foo" is an error.
19970   #
19971   # This test is therefore slightly more accurate than "test -f" to check for file presence.
19972   # It is also a way to make sure we got the proper file name for the real test later on.
19973   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19974   if test "x$test_shortpath" = x; then
19975     # Short path failed, file does not exist as specified.
19976     # Try adding .exe or .cmd
19977     if test -f "${new_path}.exe"; then
19978       input_to_shortpath="${new_path}.exe"
19979     elif test -f "${new_path}.cmd"; then
19980       input_to_shortpath="${new_path}.cmd"
19981     else
19982       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
19983 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
19984       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
19985 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
19986       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19987     fi
19988   else
19989     input_to_shortpath="$new_path"
19990   fi
19991 
19992   # Call helper function which possibly converts this using DOS-style short mode.
19993   # If so, the updated path is stored in $new_path.
19994   new_path="$input_to_shortpath"
19995 
19996   input_path="$input_to_shortpath"
19997   # Check if we need to convert this using DOS-style short mode. If the path
19998   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19999   # take no chances and rewrite it.
20000   # Note: m4 eats our [], so we need to use [ and ] instead.
20001   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20002   if test "x$has_forbidden_chars" != x; then
20003     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20004     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20005     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20006     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20007       # Going to short mode and back again did indeed matter. Since short mode is
20008       # case insensitive, let's make it lowercase to improve readability.
20009       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20010       # Now convert it back to Unix-style (cygpath)
20011       input_path=`$CYGPATH -u "$shortmode_path"`
20012       new_path="$input_path"
20013     fi
20014   fi
20015 
20016   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20017   if test "x$test_cygdrive_prefix" = x; then
20018     # As a simple fix, exclude /usr/bin since it's not a real path.
20019     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
20020       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20021       # a path prefixed by /cygdrive for fixpath to work.
20022       new_path="$CYGWIN_ROOT_PATH$input_path"
20023     fi
20024   fi
20025 
20026   # remove trailing .exe if any
20027   new_path="${new_path/%.exe/}"
20028 
20029     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20030 
20031   # First separate the path from the arguments. This will split at the first
20032   # space.
20033   complete="$FOUND_MAKE"
20034   path="${complete%% *}"
20035   tmp="$complete EOL"
20036   arguments="${tmp#* }"
20037 
20038   # Input might be given as Windows format, start by converting to
20039   # unix format.
20040   new_path="$path"
20041 
20042   windows_path="$new_path"
20043   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20044     unix_path=`$CYGPATH -u "$windows_path"`
20045     new_path="$unix_path"
20046   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20047     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20048     new_path="$unix_path"
20049   fi
20050 
20051 
20052   # Now try to locate executable using which
20053   new_path=`$WHICH "$new_path" 2> /dev/null`
20054 
20055   if test "x$new_path" = x; then
20056     # Oops. Which didn't find the executable.
20057     # The splitting of arguments from the executable at a space might have been incorrect,
20058     # since paths with space are more likely in Windows. Give it another try with the whole
20059     # argument.
20060     path="$complete"
20061     arguments="EOL"
20062     new_path="$path"
20063 
20064   windows_path="$new_path"
20065   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20066     unix_path=`$CYGPATH -u "$windows_path"`
20067     new_path="$unix_path"
20068   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20069     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20070     new_path="$unix_path"
20071   fi
20072 
20073 
20074     new_path=`$WHICH "$new_path" 2> /dev/null`
20075     # bat and cmd files are not always considered executable in MSYS causing which
20076     # to not find them
20077     if test "x$new_path" = x \
20078         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20079         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20080       new_path="$path"
20081 
20082   windows_path="$new_path"
20083   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20084     unix_path=`$CYGPATH -u "$windows_path"`
20085     new_path="$unix_path"
20086   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20087     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20088     new_path="$unix_path"
20089   fi
20090 
20091     fi
20092 
20093     if test "x$new_path" = x; then
20094       # It's still not found. Now this is an unrecoverable error.
20095       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20096 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20097       has_space=`$ECHO "$complete" | $GREP " "`
20098       if test "x$has_space" != x; then
20099         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20100 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20101       fi
20102       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20103     fi
20104   fi
20105 
20106   # Now new_path has a complete unix path to the binary
20107   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
20108     # Keep paths in /bin as-is, but remove trailing .exe if any
20109     new_path="${new_path/%.exe/}"
20110     # Do not save /bin paths to all_fixpath_prefixes!
20111   else
20112     # Not in mixed or Windows style, start by that.
20113     new_path=`cmd //c echo $new_path`
20114 
20115   input_path="$new_path"
20116   # Check if we need to convert this using DOS-style short mode. If the path
20117   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20118   # take no chances and rewrite it.
20119   # Note: m4 eats our [], so we need to use [ and ] instead.
20120   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20121   if test "x$has_forbidden_chars" != x; then
20122     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20123     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20124   fi
20125 
20126     # Output is in $new_path
20127 
20128   windows_path="$new_path"
20129   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20130     unix_path=`$CYGPATH -u "$windows_path"`
20131     new_path="$unix_path"
20132   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20133     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20134     new_path="$unix_path"
20135   fi
20136 
20137     # remove trailing .exe if any
20138     new_path="${new_path/%.exe/}"
20139 
20140     # Save the first 10 bytes of this path to the storage, so fixpath can work.
20141     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20142   fi
20143 
20144     else
20145       # We're on a unix platform. Hooray! :)
20146       # First separate the path from the arguments. This will split at the first
20147       # space.
20148       complete="$FOUND_MAKE"
20149       path="${complete%% *}"
20150       tmp="$complete EOL"
20151       arguments="${tmp#* }"
20152 
20153       # Cannot rely on the command "which" here since it doesn't always work.
20154       is_absolute_path=`$ECHO "$path" | $GREP ^/`
20155       if test -z "$is_absolute_path"; then
20156         # Path to executable is not absolute. Find it.
20157         IFS_save="$IFS"
20158         IFS=:
20159         for p in $PATH; do
20160           if test -f "$p/$path" && test -x "$p/$path"; then
20161             new_path="$p/$path"
20162             break
20163           fi
20164         done
20165         IFS="$IFS_save"
20166       else
20167         # This is an absolute path, we can use it without further modifications.
20168         new_path="$path"
20169       fi
20170 
20171       if test "x$new_path" = x; then
20172         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20173 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20174         has_space=`$ECHO "$complete" | $GREP " "`
20175         if test "x$has_space" != x; then
20176           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
20177 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
20178         fi
20179         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20180       fi
20181     fi
20182 
20183     # Now join together the path and the arguments once again
20184     if test "x$arguments" != xEOL; then
20185       new_complete="$new_path ${arguments% *}"
20186     else
20187       new_complete="$new_path"
20188     fi
20189 
20190     if test "x$complete" != "x$new_complete"; then
20191       FOUND_MAKE="$new_complete"
20192       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
20193 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
20194     fi
20195   fi
20196 
20197         fi
20198       fi
20199     fi
20200   fi
20201 
20202     fi
20203 
20204     if test "x$FOUND_MAKE" = x; then
20205       if test "x$TOOLCHAIN_PATH" != x; then
20206         # We have a toolchain path, check that as well before giving up.
20207         OLD_PATH=$PATH
20208         PATH=$TOOLCHAIN_PATH:$PATH
20209         for ac_prog in gmake
20210 do
20211   # Extract the first word of "$ac_prog", so it can be a program name with args.
20212 set dummy $ac_prog; ac_word=$2
20213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20214 $as_echo_n "checking for $ac_word... " >&6; }
20215 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then :
20216   $as_echo_n "(cached) " >&6
20217 else
20218   case $CHECK_TOOLSDIR_GMAKE in
20219   [\\/]* | ?:[\\/]*)
20220   ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
20221   ;;
20222   *)
20223   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20224 for as_dir in $PATH
20225 do
20226   IFS=$as_save_IFS
20227   test -z "$as_dir" && as_dir=.
20228     for ac_exec_ext in '' $ac_executable_extensions; do
20229   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20230     ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
20231     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20232     break 2
20233   fi
20234 done
20235   done
20236 IFS=$as_save_IFS
20237 
20238   ;;
20239 esac
20240 fi
20241 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE
20242 if test -n "$CHECK_TOOLSDIR_GMAKE"; then
20243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5
20244 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; }
20245 else
20246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20247 $as_echo "no" >&6; }
20248 fi
20249 
20250 
20251   test -n "$CHECK_TOOLSDIR_GMAKE" && break
20252 done
20253 
20254 
20255   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE""
20256   DESCRIPTION="gmake in tools-dir"
20257 
20258   # On Cygwin, we require a newer version of make than on other platforms
20259   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20260     MAKE_VERSION_EXPR="-e 4\."
20261     MAKE_REQUIRED_VERSION="4.0"
20262    else
20263     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
20264     MAKE_REQUIRED_VERSION="3.81"
20265   fi
20266 
20267   if test "x$MAKE_CANDIDATE" != x; then
20268     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
20269 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
20270     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
20271     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
20272     if test "x$IS_GNU_MAKE" = x; then
20273       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
20274 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
20275     else
20276       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
20277       if test "x$IS_MODERN_MAKE" = x; then
20278         { $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
20279 $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;}
20280       else
20281         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
20282           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20283             MAKE_EXPECTED_ENV='cygwin'
20284           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20285             MAKE_EXPECTED_ENV='msys'
20286           else
20287             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
20288           fi
20289           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
20290           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
20291         else
20292           # Not relevant for non-Windows
20293           IS_MAKE_CORRECT_ENV=true
20294         fi
20295         if test "x$IS_MAKE_CORRECT_ENV" = x; then
20296           { $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
20297 $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;}
20298         else
20299           FOUND_MAKE=$MAKE_CANDIDATE
20300 
20301   # Only process if variable expands to non-empty
20302 
20303   if test "x$FOUND_MAKE" != x; then
20304     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20305 
20306   # First separate the path from the arguments. This will split at the first
20307   # space.
20308   complete="$FOUND_MAKE"
20309   path="${complete%% *}"
20310   tmp="$complete EOL"
20311   arguments="${tmp#* }"
20312 
20313   # Input might be given as Windows format, start by converting to
20314   # unix format.
20315   new_path=`$CYGPATH -u "$path"`
20316 
20317   # Now try to locate executable using which
20318   new_path=`$WHICH "$new_path" 2> /dev/null`
20319   # bat and cmd files are not always considered executable in cygwin causing which
20320   # to not find them
20321   if test "x$new_path" = x \
20322       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20323       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20324     new_path=`$CYGPATH -u "$path"`
20325   fi
20326   if test "x$new_path" = x; then
20327     # Oops. Which didn't find the executable.
20328     # The splitting of arguments from the executable at a space might have been incorrect,
20329     # since paths with space are more likely in Windows. Give it another try with the whole
20330     # argument.
20331     path="$complete"
20332     arguments="EOL"
20333     new_path=`$CYGPATH -u "$path"`
20334     new_path=`$WHICH "$new_path" 2> /dev/null`
20335     # bat and cmd files are not always considered executable in cygwin causing which
20336     # to not find them
20337     if test "x$new_path" = x \
20338         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20339         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20340       new_path=`$CYGPATH -u "$path"`
20341     fi
20342     if test "x$new_path" = x; then
20343       # It's still not found. Now this is an unrecoverable error.
20344       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20345 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20346       has_space=`$ECHO "$complete" | $GREP " "`
20347       if test "x$has_space" != x; then
20348         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20349 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20350       fi
20351       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20352     fi
20353   fi
20354 
20355   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20356   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20357   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20358   # "foo.exe" is OK but "foo" is an error.
20359   #
20360   # This test is therefore slightly more accurate than "test -f" to check for file presence.
20361   # It is also a way to make sure we got the proper file name for the real test later on.
20362   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20363   if test "x$test_shortpath" = x; then
20364     # Short path failed, file does not exist as specified.
20365     # Try adding .exe or .cmd
20366     if test -f "${new_path}.exe"; then
20367       input_to_shortpath="${new_path}.exe"
20368     elif test -f "${new_path}.cmd"; then
20369       input_to_shortpath="${new_path}.cmd"
20370     else
20371       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
20372 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
20373       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
20374 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
20375       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20376     fi
20377   else
20378     input_to_shortpath="$new_path"
20379   fi
20380 
20381   # Call helper function which possibly converts this using DOS-style short mode.
20382   # If so, the updated path is stored in $new_path.
20383   new_path="$input_to_shortpath"
20384 
20385   input_path="$input_to_shortpath"
20386   # Check if we need to convert this using DOS-style short mode. If the path
20387   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20388   # take no chances and rewrite it.
20389   # Note: m4 eats our [], so we need to use [ and ] instead.
20390   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20391   if test "x$has_forbidden_chars" != x; then
20392     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20393     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20394     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20395     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20396       # Going to short mode and back again did indeed matter. Since short mode is
20397       # case insensitive, let's make it lowercase to improve readability.
20398       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20399       # Now convert it back to Unix-style (cygpath)
20400       input_path=`$CYGPATH -u "$shortmode_path"`
20401       new_path="$input_path"
20402     fi
20403   fi
20404 
20405   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20406   if test "x$test_cygdrive_prefix" = x; then
20407     # As a simple fix, exclude /usr/bin since it's not a real path.
20408     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
20409       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20410       # a path prefixed by /cygdrive for fixpath to work.
20411       new_path="$CYGWIN_ROOT_PATH$input_path"
20412     fi
20413   fi
20414 
20415   # remove trailing .exe if any
20416   new_path="${new_path/%.exe/}"
20417 
20418     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20419 
20420   # First separate the path from the arguments. This will split at the first
20421   # space.
20422   complete="$FOUND_MAKE"
20423   path="${complete%% *}"
20424   tmp="$complete EOL"
20425   arguments="${tmp#* }"
20426 
20427   # Input might be given as Windows format, start by converting to
20428   # unix format.
20429   new_path="$path"
20430 
20431   windows_path="$new_path"
20432   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20433     unix_path=`$CYGPATH -u "$windows_path"`
20434     new_path="$unix_path"
20435   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20436     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20437     new_path="$unix_path"
20438   fi
20439 
20440 
20441   # Now try to locate executable using which
20442   new_path=`$WHICH "$new_path" 2> /dev/null`
20443 
20444   if test "x$new_path" = x; then
20445     # Oops. Which didn't find the executable.
20446     # The splitting of arguments from the executable at a space might have been incorrect,
20447     # since paths with space are more likely in Windows. Give it another try with the whole
20448     # argument.
20449     path="$complete"
20450     arguments="EOL"
20451     new_path="$path"
20452 
20453   windows_path="$new_path"
20454   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20455     unix_path=`$CYGPATH -u "$windows_path"`
20456     new_path="$unix_path"
20457   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20458     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20459     new_path="$unix_path"
20460   fi
20461 
20462 
20463     new_path=`$WHICH "$new_path" 2> /dev/null`
20464     # bat and cmd files are not always considered executable in MSYS causing which
20465     # to not find them
20466     if test "x$new_path" = x \
20467         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20468         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20469       new_path="$path"
20470 
20471   windows_path="$new_path"
20472   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20473     unix_path=`$CYGPATH -u "$windows_path"`
20474     new_path="$unix_path"
20475   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20476     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20477     new_path="$unix_path"
20478   fi
20479 
20480     fi
20481 
20482     if test "x$new_path" = x; then
20483       # It's still not found. Now this is an unrecoverable error.
20484       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20485 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20486       has_space=`$ECHO "$complete" | $GREP " "`
20487       if test "x$has_space" != x; then
20488         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20489 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20490       fi
20491       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20492     fi
20493   fi
20494 
20495   # Now new_path has a complete unix path to the binary
20496   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
20497     # Keep paths in /bin as-is, but remove trailing .exe if any
20498     new_path="${new_path/%.exe/}"
20499     # Do not save /bin paths to all_fixpath_prefixes!
20500   else
20501     # Not in mixed or Windows style, start by that.
20502     new_path=`cmd //c echo $new_path`
20503 
20504   input_path="$new_path"
20505   # Check if we need to convert this using DOS-style short mode. If the path
20506   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20507   # take no chances and rewrite it.
20508   # Note: m4 eats our [], so we need to use [ and ] instead.
20509   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20510   if test "x$has_forbidden_chars" != x; then
20511     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20512     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20513   fi
20514 
20515     # Output is in $new_path
20516 
20517   windows_path="$new_path"
20518   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20519     unix_path=`$CYGPATH -u "$windows_path"`
20520     new_path="$unix_path"
20521   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20522     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20523     new_path="$unix_path"
20524   fi
20525 
20526     # remove trailing .exe if any
20527     new_path="${new_path/%.exe/}"
20528 
20529     # Save the first 10 bytes of this path to the storage, so fixpath can work.
20530     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20531   fi
20532 
20533     else
20534       # We're on a unix platform. Hooray! :)
20535       # First separate the path from the arguments. This will split at the first
20536       # space.
20537       complete="$FOUND_MAKE"
20538       path="${complete%% *}"
20539       tmp="$complete EOL"
20540       arguments="${tmp#* }"
20541 
20542       # Cannot rely on the command "which" here since it doesn't always work.
20543       is_absolute_path=`$ECHO "$path" | $GREP ^/`
20544       if test -z "$is_absolute_path"; then
20545         # Path to executable is not absolute. Find it.
20546         IFS_save="$IFS"
20547         IFS=:
20548         for p in $PATH; do
20549           if test -f "$p/$path" && test -x "$p/$path"; then
20550             new_path="$p/$path"
20551             break
20552           fi
20553         done
20554         IFS="$IFS_save"
20555       else
20556         # This is an absolute path, we can use it without further modifications.
20557         new_path="$path"
20558       fi
20559 
20560       if test "x$new_path" = x; then
20561         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20562 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20563         has_space=`$ECHO "$complete" | $GREP " "`
20564         if test "x$has_space" != x; then
20565           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
20566 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
20567         fi
20568         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20569       fi
20570     fi
20571 
20572     # Now join together the path and the arguments once again
20573     if test "x$arguments" != xEOL; then
20574       new_complete="$new_path ${arguments% *}"
20575     else
20576       new_complete="$new_path"
20577     fi
20578 
20579     if test "x$complete" != "x$new_complete"; then
20580       FOUND_MAKE="$new_complete"
20581       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
20582 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
20583     fi
20584   fi
20585 
20586         fi
20587       fi
20588     fi
20589   fi
20590 
20591         if test "x$FOUND_MAKE" = x; then
20592           for ac_prog in make
20593 do
20594   # Extract the first word of "$ac_prog", so it can be a program name with args.
20595 set dummy $ac_prog; ac_word=$2
20596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20597 $as_echo_n "checking for $ac_word... " >&6; }
20598 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then :
20599   $as_echo_n "(cached) " >&6
20600 else
20601   case $CHECK_TOOLSDIR_MAKE in
20602   [\\/]* | ?:[\\/]*)
20603   ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
20604   ;;
20605   *)
20606   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20607 for as_dir in $PATH
20608 do
20609   IFS=$as_save_IFS
20610   test -z "$as_dir" && as_dir=.
20611     for ac_exec_ext in '' $ac_executable_extensions; do
20612   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20613     ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
20614     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20615     break 2
20616   fi
20617 done
20618   done
20619 IFS=$as_save_IFS
20620 
20621   ;;
20622 esac
20623 fi
20624 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE
20625 if test -n "$CHECK_TOOLSDIR_MAKE"; then
20626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5
20627 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; }
20628 else
20629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20630 $as_echo "no" >&6; }
20631 fi
20632 
20633 
20634   test -n "$CHECK_TOOLSDIR_MAKE" && break
20635 done
20636 
20637 
20638   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE""
20639   DESCRIPTION="make in tools-dir"
20640 
20641   # On Cygwin, we require a newer version of make than on other platforms
20642   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20643     MAKE_VERSION_EXPR="-e 4\."
20644     MAKE_REQUIRED_VERSION="4.0"
20645    else
20646     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
20647     MAKE_REQUIRED_VERSION="3.81"
20648   fi
20649 
20650   if test "x$MAKE_CANDIDATE" != x; then
20651     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
20652 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
20653     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
20654     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
20655     if test "x$IS_GNU_MAKE" = x; then
20656       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
20657 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
20658     else
20659       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
20660       if test "x$IS_MODERN_MAKE" = x; then
20661         { $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
20662 $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;}
20663       else
20664         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
20665           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20666             MAKE_EXPECTED_ENV='cygwin'
20667           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20668             MAKE_EXPECTED_ENV='msys'
20669           else
20670             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
20671           fi
20672           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
20673           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
20674         else
20675           # Not relevant for non-Windows
20676           IS_MAKE_CORRECT_ENV=true
20677         fi
20678         if test "x$IS_MAKE_CORRECT_ENV" = x; then
20679           { $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
20680 $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;}
20681         else
20682           FOUND_MAKE=$MAKE_CANDIDATE
20683 
20684   # Only process if variable expands to non-empty
20685 
20686   if test "x$FOUND_MAKE" != x; then
20687     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20688 
20689   # First separate the path from the arguments. This will split at the first
20690   # space.
20691   complete="$FOUND_MAKE"
20692   path="${complete%% *}"
20693   tmp="$complete EOL"
20694   arguments="${tmp#* }"
20695 
20696   # Input might be given as Windows format, start by converting to
20697   # unix format.
20698   new_path=`$CYGPATH -u "$path"`
20699 
20700   # Now try to locate executable using which
20701   new_path=`$WHICH "$new_path" 2> /dev/null`
20702   # bat and cmd files are not always considered executable in cygwin causing which
20703   # to not find them
20704   if test "x$new_path" = x \
20705       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20706       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20707     new_path=`$CYGPATH -u "$path"`
20708   fi
20709   if test "x$new_path" = x; then
20710     # Oops. Which didn't find the executable.
20711     # The splitting of arguments from the executable at a space might have been incorrect,
20712     # since paths with space are more likely in Windows. Give it another try with the whole
20713     # argument.
20714     path="$complete"
20715     arguments="EOL"
20716     new_path=`$CYGPATH -u "$path"`
20717     new_path=`$WHICH "$new_path" 2> /dev/null`
20718     # bat and cmd files are not always considered executable in cygwin causing which
20719     # to not find them
20720     if test "x$new_path" = x \
20721         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20722         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20723       new_path=`$CYGPATH -u "$path"`
20724     fi
20725     if test "x$new_path" = x; then
20726       # It's still not found. Now this is an unrecoverable error.
20727       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20728 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20729       has_space=`$ECHO "$complete" | $GREP " "`
20730       if test "x$has_space" != x; then
20731         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20732 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20733       fi
20734       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20735     fi
20736   fi
20737 
20738   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20739   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20740   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20741   # "foo.exe" is OK but "foo" is an error.
20742   #
20743   # This test is therefore slightly more accurate than "test -f" to check for file presence.
20744   # It is also a way to make sure we got the proper file name for the real test later on.
20745   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20746   if test "x$test_shortpath" = x; then
20747     # Short path failed, file does not exist as specified.
20748     # Try adding .exe or .cmd
20749     if test -f "${new_path}.exe"; then
20750       input_to_shortpath="${new_path}.exe"
20751     elif test -f "${new_path}.cmd"; then
20752       input_to_shortpath="${new_path}.cmd"
20753     else
20754       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
20755 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
20756       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
20757 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
20758       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20759     fi
20760   else
20761     input_to_shortpath="$new_path"
20762   fi
20763 
20764   # Call helper function which possibly converts this using DOS-style short mode.
20765   # If so, the updated path is stored in $new_path.
20766   new_path="$input_to_shortpath"
20767 
20768   input_path="$input_to_shortpath"
20769   # Check if we need to convert this using DOS-style short mode. If the path
20770   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20771   # take no chances and rewrite it.
20772   # Note: m4 eats our [], so we need to use [ and ] instead.
20773   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20774   if test "x$has_forbidden_chars" != x; then
20775     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20776     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20777     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20778     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20779       # Going to short mode and back again did indeed matter. Since short mode is
20780       # case insensitive, let's make it lowercase to improve readability.
20781       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20782       # Now convert it back to Unix-style (cygpath)
20783       input_path=`$CYGPATH -u "$shortmode_path"`
20784       new_path="$input_path"
20785     fi
20786   fi
20787 
20788   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20789   if test "x$test_cygdrive_prefix" = x; then
20790     # As a simple fix, exclude /usr/bin since it's not a real path.
20791     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
20792       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20793       # a path prefixed by /cygdrive for fixpath to work.
20794       new_path="$CYGWIN_ROOT_PATH$input_path"
20795     fi
20796   fi
20797 
20798   # remove trailing .exe if any
20799   new_path="${new_path/%.exe/}"
20800 
20801     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20802 
20803   # First separate the path from the arguments. This will split at the first
20804   # space.
20805   complete="$FOUND_MAKE"
20806   path="${complete%% *}"
20807   tmp="$complete EOL"
20808   arguments="${tmp#* }"
20809 
20810   # Input might be given as Windows format, start by converting to
20811   # unix format.
20812   new_path="$path"
20813 
20814   windows_path="$new_path"
20815   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20816     unix_path=`$CYGPATH -u "$windows_path"`
20817     new_path="$unix_path"
20818   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20819     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20820     new_path="$unix_path"
20821   fi
20822 
20823 
20824   # Now try to locate executable using which
20825   new_path=`$WHICH "$new_path" 2> /dev/null`
20826 
20827   if test "x$new_path" = x; then
20828     # Oops. Which didn't find the executable.
20829     # The splitting of arguments from the executable at a space might have been incorrect,
20830     # since paths with space are more likely in Windows. Give it another try with the whole
20831     # argument.
20832     path="$complete"
20833     arguments="EOL"
20834     new_path="$path"
20835 
20836   windows_path="$new_path"
20837   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20838     unix_path=`$CYGPATH -u "$windows_path"`
20839     new_path="$unix_path"
20840   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20841     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20842     new_path="$unix_path"
20843   fi
20844 
20845 
20846     new_path=`$WHICH "$new_path" 2> /dev/null`
20847     # bat and cmd files are not always considered executable in MSYS causing which
20848     # to not find them
20849     if test "x$new_path" = x \
20850         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20851         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20852       new_path="$path"
20853 
20854   windows_path="$new_path"
20855   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20856     unix_path=`$CYGPATH -u "$windows_path"`
20857     new_path="$unix_path"
20858   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20859     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20860     new_path="$unix_path"
20861   fi
20862 
20863     fi
20864 
20865     if test "x$new_path" = x; then
20866       # It's still not found. Now this is an unrecoverable error.
20867       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20868 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20869       has_space=`$ECHO "$complete" | $GREP " "`
20870       if test "x$has_space" != x; then
20871         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20872 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20873       fi
20874       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20875     fi
20876   fi
20877 
20878   # Now new_path has a complete unix path to the binary
20879   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
20880     # Keep paths in /bin as-is, but remove trailing .exe if any
20881     new_path="${new_path/%.exe/}"
20882     # Do not save /bin paths to all_fixpath_prefixes!
20883   else
20884     # Not in mixed or Windows style, start by that.
20885     new_path=`cmd //c echo $new_path`
20886 
20887   input_path="$new_path"
20888   # Check if we need to convert this using DOS-style short mode. If the path
20889   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20890   # take no chances and rewrite it.
20891   # Note: m4 eats our [], so we need to use [ and ] instead.
20892   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20893   if test "x$has_forbidden_chars" != x; then
20894     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20895     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20896   fi
20897 
20898     # Output is in $new_path
20899 
20900   windows_path="$new_path"
20901   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20902     unix_path=`$CYGPATH -u "$windows_path"`
20903     new_path="$unix_path"
20904   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20905     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20906     new_path="$unix_path"
20907   fi
20908 
20909     # remove trailing .exe if any
20910     new_path="${new_path/%.exe/}"
20911 
20912     # Save the first 10 bytes of this path to the storage, so fixpath can work.
20913     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20914   fi
20915 
20916     else
20917       # We're on a unix platform. Hooray! :)
20918       # First separate the path from the arguments. This will split at the first
20919       # space.
20920       complete="$FOUND_MAKE"
20921       path="${complete%% *}"
20922       tmp="$complete EOL"
20923       arguments="${tmp#* }"
20924 
20925       # Cannot rely on the command "which" here since it doesn't always work.
20926       is_absolute_path=`$ECHO "$path" | $GREP ^/`
20927       if test -z "$is_absolute_path"; then
20928         # Path to executable is not absolute. Find it.
20929         IFS_save="$IFS"
20930         IFS=:
20931         for p in $PATH; do
20932           if test -f "$p/$path" && test -x "$p/$path"; then
20933             new_path="$p/$path"
20934             break
20935           fi
20936         done
20937         IFS="$IFS_save"
20938       else
20939         # This is an absolute path, we can use it without further modifications.
20940         new_path="$path"
20941       fi
20942 
20943       if test "x$new_path" = x; then
20944         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20945 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20946         has_space=`$ECHO "$complete" | $GREP " "`
20947         if test "x$has_space" != x; then
20948           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
20949 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
20950         fi
20951         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20952       fi
20953     fi
20954 
20955     # Now join together the path and the arguments once again
20956     if test "x$arguments" != xEOL; then
20957       new_complete="$new_path ${arguments% *}"
20958     else
20959       new_complete="$new_path"
20960     fi
20961 
20962     if test "x$complete" != "x$new_complete"; then
20963       FOUND_MAKE="$new_complete"
20964       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
20965 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
20966     fi
20967   fi
20968 
20969         fi
20970       fi
20971     fi
20972   fi
20973 
20974         fi
20975         PATH=$OLD_PATH
20976       fi
20977     fi
20978 
20979     if test "x$FOUND_MAKE" = x; then
20980       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
20981     fi
20982 
20983     else
20984       # If it succeeded, then it was overridden by the user. We will use it
20985       # for the tool.
20986 
20987       # First remove it from the list of overridden variables, so we can test
20988       # for unknown variables in the end.
20989       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
20990 
20991       # Check if we try to supply an empty value
20992       if test "x$MAKE" = x; then
20993         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MAKE= (no value)" >&5
20994 $as_echo "$as_me: Setting user supplied tool MAKE= (no value)" >&6;}
20995         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAKE" >&5
20996 $as_echo_n "checking for MAKE... " >&6; }
20997         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
20998 $as_echo "disabled" >&6; }
20999       else
21000         # Check if the provided tool contains a complete path.
21001         tool_specified="$MAKE"
21002         tool_basename="${tool_specified##*/}"
21003         if test "x$tool_basename" = "x$tool_specified"; then
21004           # A command without a complete path is provided, search $PATH.
21005           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MAKE=$tool_basename" >&5
21006 $as_echo "$as_me: Will search for user supplied tool MAKE=$tool_basename" >&6;}
21007           # Extract the first word of "$tool_basename", so it can be a program name with args.
21008 set dummy $tool_basename; ac_word=$2
21009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21010 $as_echo_n "checking for $ac_word... " >&6; }
21011 if ${ac_cv_path_MAKE+:} false; then :
21012   $as_echo_n "(cached) " >&6
21013 else
21014   case $MAKE in
21015   [\\/]* | ?:[\\/]*)
21016   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
21017   ;;
21018   *)
21019   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21020 for as_dir in $PATH
21021 do
21022   IFS=$as_save_IFS
21023   test -z "$as_dir" && as_dir=.
21024     for ac_exec_ext in '' $ac_executable_extensions; do
21025   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21026     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
21027     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21028     break 2
21029   fi
21030 done
21031   done
21032 IFS=$as_save_IFS
21033 
21034   ;;
21035 esac
21036 fi
21037 MAKE=$ac_cv_path_MAKE
21038 if test -n "$MAKE"; then
21039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
21040 $as_echo "$MAKE" >&6; }
21041 else
21042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21043 $as_echo "no" >&6; }
21044 fi
21045 
21046 
21047           if test "x$MAKE" = x; then
21048             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21049           fi
21050         else
21051           # Otherwise we believe it is a complete path. Use it as it is.
21052           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MAKE=$tool_specified" >&5
21053 $as_echo "$as_me: Will use user supplied tool MAKE=$tool_specified" >&6;}
21054           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAKE" >&5
21055 $as_echo_n "checking for MAKE... " >&6; }
21056           if test ! -x "$tool_specified"; then
21057             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21058 $as_echo "not found" >&6; }
21059             as_fn_error $? "User supplied tool MAKE=$tool_specified does not exist or is not executable" "$LINENO" 5
21060           fi
21061           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21062 $as_echo "$tool_specified" >&6; }
21063         fi
21064       fi
21065     fi
21066 
21067     # If MAKE was set by user, verify the version
21068 
21069   MAKE_CANDIDATE=""$MAKE""
21070   DESCRIPTION="user supplied MAKE=$MAKE"
21071 
21072   # On Cygwin, we require a newer version of make than on other platforms
21073   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21074     MAKE_VERSION_EXPR="-e 4\."
21075     MAKE_REQUIRED_VERSION="4.0"
21076    else
21077     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
21078     MAKE_REQUIRED_VERSION="3.81"
21079   fi
21080 
21081   if test "x$MAKE_CANDIDATE" != x; then
21082     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
21083 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
21084     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
21085     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
21086     if test "x$IS_GNU_MAKE" = x; then
21087       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
21088 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
21089     else
21090       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
21091       if test "x$IS_MODERN_MAKE" = x; then
21092         { $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
21093 $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;}
21094       else
21095         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
21096           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21097             MAKE_EXPECTED_ENV='cygwin'
21098           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21099             MAKE_EXPECTED_ENV='msys'
21100           else
21101             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
21102           fi
21103           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
21104           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
21105         else
21106           # Not relevant for non-Windows
21107           IS_MAKE_CORRECT_ENV=true
21108         fi
21109         if test "x$IS_MAKE_CORRECT_ENV" = x; then
21110           { $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
21111 $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;}
21112         else
21113           FOUND_MAKE=$MAKE_CANDIDATE
21114 
21115   # Only process if variable expands to non-empty
21116 
21117   if test "x$FOUND_MAKE" != x; then
21118     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21119 
21120   # First separate the path from the arguments. This will split at the first
21121   # space.
21122   complete="$FOUND_MAKE"
21123   path="${complete%% *}"
21124   tmp="$complete EOL"
21125   arguments="${tmp#* }"
21126 
21127   # Input might be given as Windows format, start by converting to
21128   # unix format.
21129   new_path=`$CYGPATH -u "$path"`
21130 
21131   # Now try to locate executable using which
21132   new_path=`$WHICH "$new_path" 2> /dev/null`
21133   # bat and cmd files are not always considered executable in cygwin causing which
21134   # to not find them
21135   if test "x$new_path" = x \
21136       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
21137       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
21138     new_path=`$CYGPATH -u "$path"`
21139   fi
21140   if test "x$new_path" = x; then
21141     # Oops. Which didn't find the executable.
21142     # The splitting of arguments from the executable at a space might have been incorrect,
21143     # since paths with space are more likely in Windows. Give it another try with the whole
21144     # argument.
21145     path="$complete"
21146     arguments="EOL"
21147     new_path=`$CYGPATH -u "$path"`
21148     new_path=`$WHICH "$new_path" 2> /dev/null`
21149     # bat and cmd files are not always considered executable in cygwin causing which
21150     # to not find them
21151     if test "x$new_path" = x \
21152         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
21153         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
21154       new_path=`$CYGPATH -u "$path"`
21155     fi
21156     if test "x$new_path" = x; then
21157       # It's still not found. Now this is an unrecoverable error.
21158       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
21159 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
21160       has_space=`$ECHO "$complete" | $GREP " "`
21161       if test "x$has_space" != x; then
21162         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
21163 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
21164       fi
21165       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
21166     fi
21167   fi
21168 
21169   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21170   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21171   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21172   # "foo.exe" is OK but "foo" is an error.
21173   #
21174   # This test is therefore slightly more accurate than "test -f" to check for file presence.
21175   # It is also a way to make sure we got the proper file name for the real test later on.
21176   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21177   if test "x$test_shortpath" = x; then
21178     # Short path failed, file does not exist as specified.
21179     # Try adding .exe or .cmd
21180     if test -f "${new_path}.exe"; then
21181       input_to_shortpath="${new_path}.exe"
21182     elif test -f "${new_path}.cmd"; then
21183       input_to_shortpath="${new_path}.cmd"
21184     else
21185       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
21186 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
21187       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
21188 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
21189       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
21190     fi
21191   else
21192     input_to_shortpath="$new_path"
21193   fi
21194 
21195   # Call helper function which possibly converts this using DOS-style short mode.
21196   # If so, the updated path is stored in $new_path.
21197   new_path="$input_to_shortpath"
21198 
21199   input_path="$input_to_shortpath"
21200   # Check if we need to convert this using DOS-style short mode. If the path
21201   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21202   # take no chances and rewrite it.
21203   # Note: m4 eats our [], so we need to use [ and ] instead.
21204   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21205   if test "x$has_forbidden_chars" != x; then
21206     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21207     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21208     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21209     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21210       # Going to short mode and back again did indeed matter. Since short mode is
21211       # case insensitive, let's make it lowercase to improve readability.
21212       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21213       # Now convert it back to Unix-style (cygpath)
21214       input_path=`$CYGPATH -u "$shortmode_path"`
21215       new_path="$input_path"
21216     fi
21217   fi
21218 
21219   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21220   if test "x$test_cygdrive_prefix" = x; then
21221     # As a simple fix, exclude /usr/bin since it's not a real path.
21222     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
21223       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21224       # a path prefixed by /cygdrive for fixpath to work.
21225       new_path="$CYGWIN_ROOT_PATH$input_path"
21226     fi
21227   fi
21228 
21229   # remove trailing .exe if any
21230   new_path="${new_path/%.exe/}"
21231 
21232     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21233 
21234   # First separate the path from the arguments. This will split at the first
21235   # space.
21236   complete="$FOUND_MAKE"
21237   path="${complete%% *}"
21238   tmp="$complete EOL"
21239   arguments="${tmp#* }"
21240 
21241   # Input might be given as Windows format, start by converting to
21242   # unix format.
21243   new_path="$path"
21244 
21245   windows_path="$new_path"
21246   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21247     unix_path=`$CYGPATH -u "$windows_path"`
21248     new_path="$unix_path"
21249   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21250     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21251     new_path="$unix_path"
21252   fi
21253 
21254 
21255   # Now try to locate executable using which
21256   new_path=`$WHICH "$new_path" 2> /dev/null`
21257 
21258   if test "x$new_path" = x; then
21259     # Oops. Which didn't find the executable.
21260     # The splitting of arguments from the executable at a space might have been incorrect,
21261     # since paths with space are more likely in Windows. Give it another try with the whole
21262     # argument.
21263     path="$complete"
21264     arguments="EOL"
21265     new_path="$path"
21266 
21267   windows_path="$new_path"
21268   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21269     unix_path=`$CYGPATH -u "$windows_path"`
21270     new_path="$unix_path"
21271   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21272     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21273     new_path="$unix_path"
21274   fi
21275 
21276 
21277     new_path=`$WHICH "$new_path" 2> /dev/null`
21278     # bat and cmd files are not always considered executable in MSYS causing which
21279     # to not find them
21280     if test "x$new_path" = x \
21281         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
21282         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
21283       new_path="$path"
21284 
21285   windows_path="$new_path"
21286   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21287     unix_path=`$CYGPATH -u "$windows_path"`
21288     new_path="$unix_path"
21289   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21290     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21291     new_path="$unix_path"
21292   fi
21293 
21294     fi
21295 
21296     if test "x$new_path" = x; then
21297       # It's still not found. Now this is an unrecoverable error.
21298       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
21299 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
21300       has_space=`$ECHO "$complete" | $GREP " "`
21301       if test "x$has_space" != x; then
21302         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
21303 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
21304       fi
21305       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
21306     fi
21307   fi
21308 
21309   # Now new_path has a complete unix path to the binary
21310   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
21311     # Keep paths in /bin as-is, but remove trailing .exe if any
21312     new_path="${new_path/%.exe/}"
21313     # Do not save /bin paths to all_fixpath_prefixes!
21314   else
21315     # Not in mixed or Windows style, start by that.
21316     new_path=`cmd //c echo $new_path`
21317 
21318   input_path="$new_path"
21319   # Check if we need to convert this using DOS-style short mode. If the path
21320   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21321   # take no chances and rewrite it.
21322   # Note: m4 eats our [], so we need to use [ and ] instead.
21323   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21324   if test "x$has_forbidden_chars" != x; then
21325     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21326     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21327   fi
21328 
21329     # Output is in $new_path
21330 
21331   windows_path="$new_path"
21332   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21333     unix_path=`$CYGPATH -u "$windows_path"`
21334     new_path="$unix_path"
21335   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21336     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21337     new_path="$unix_path"
21338   fi
21339 
21340     # remove trailing .exe if any
21341     new_path="${new_path/%.exe/}"
21342 
21343     # Save the first 10 bytes of this path to the storage, so fixpath can work.
21344     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21345   fi
21346 
21347     else
21348       # We're on a unix platform. Hooray! :)
21349       # First separate the path from the arguments. This will split at the first
21350       # space.
21351       complete="$FOUND_MAKE"
21352       path="${complete%% *}"
21353       tmp="$complete EOL"
21354       arguments="${tmp#* }"
21355 
21356       # Cannot rely on the command "which" here since it doesn't always work.
21357       is_absolute_path=`$ECHO "$path" | $GREP ^/`
21358       if test -z "$is_absolute_path"; then
21359         # Path to executable is not absolute. Find it.
21360         IFS_save="$IFS"
21361         IFS=:
21362         for p in $PATH; do
21363           if test -f "$p/$path" && test -x "$p/$path"; then
21364             new_path="$p/$path"
21365             break
21366           fi
21367         done
21368         IFS="$IFS_save"
21369       else
21370         # This is an absolute path, we can use it without further modifications.
21371         new_path="$path"
21372       fi
21373 
21374       if test "x$new_path" = x; then
21375         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
21376 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
21377         has_space=`$ECHO "$complete" | $GREP " "`
21378         if test "x$has_space" != x; then
21379           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
21380 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
21381         fi
21382         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
21383       fi
21384     fi
21385 
21386     # Now join together the path and the arguments once again
21387     if test "x$arguments" != xEOL; then
21388       new_complete="$new_path ${arguments% *}"
21389     else
21390       new_complete="$new_path"
21391     fi
21392 
21393     if test "x$complete" != "x$new_complete"; then
21394       FOUND_MAKE="$new_complete"
21395       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
21396 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
21397     fi
21398   fi
21399 
21400         fi
21401       fi
21402     fi
21403   fi
21404 
21405     if test "x$FOUND_MAKE" = x; then
21406       as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make $MAKE_REQUIRED_VERSION or newer." "$LINENO" 5
21407     fi
21408 
21409   fi
21410 
21411 
21412   MAKE=$FOUND_MAKE
21413 
21414   { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5
21415 $as_echo "$as_me: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;}
21416 
21417 
21418   # Check if make supports the output sync option and if so, setup using it.
21419   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if make --output-sync is supported" >&5
21420 $as_echo_n "checking if make --output-sync is supported... " >&6; }
21421   if $MAKE --version -O > /dev/null 2>&1; then
21422     OUTPUT_SYNC_SUPPORTED=true
21423     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21424 $as_echo "yes" >&6; }
21425     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for output-sync value" >&5
21426 $as_echo_n "checking for output-sync value... " >&6; }
21427 
21428 # Check whether --with-output-sync was given.
21429 if test "${with_output_sync+set}" = set; then :
21430   withval=$with_output_sync; OUTPUT_SYNC=$with_output_sync
21431 fi
21432 
21433     if test "x$OUTPUT_SYNC" = "x"; then
21434       OUTPUT_SYNC=none
21435     fi
21436     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_SYNC" >&5
21437 $as_echo "$OUTPUT_SYNC" >&6; }
21438     if ! $MAKE --version -O$OUTPUT_SYNC > /dev/null 2>&1; then
21439       as_fn_error $? "Make did not the support the value $OUTPUT_SYNC as output sync type." "$LINENO" 5
21440     fi
21441   else
21442     OUTPUT_SYNC_SUPPORTED=false
21443     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21444 $as_echo "no" >&6; }
21445   fi
21446 
21447 
21448 
21449 
21450 
21451 
21452   # Test if find supports -delete
21453   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5
21454 $as_echo_n "checking if find supports -delete... " >&6; }
21455   FIND_DELETE="-delete"
21456 
21457   DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?)
21458 
21459   echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete
21460 
21461   TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1`
21462   if test -f $DELETEDIR/TestIfFindSupportsDelete; then
21463     # No, it does not.
21464     $RM $DELETEDIR/TestIfFindSupportsDelete
21465     if test "x$OPENJDK_TARGET_OS" = "xaix"; then
21466       # AIX 'find' is buggy if called with '-exec {} \+' and an empty file list
21467       FIND_DELETE="-print | $XARGS $RM"
21468     else
21469       FIND_DELETE="-exec $RM \{\} \+"
21470     fi
21471     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21472 $as_echo "no" >&6; }
21473   else
21474     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21475 $as_echo "yes" >&6; }
21476   fi
21477   $RMDIR $DELETEDIR
21478 
21479 
21480 
21481   # Test which kind of tar was found
21482   if test "x$($TAR --version | $GREP "GNU tar")" != "x"; then
21483     TAR_TYPE="gnu"
21484   elif test "x$($TAR --version | $GREP "bsdtar")" != "x"; then
21485     TAR_TYPE="bsd"
21486   elif test "x$($TAR -v | $GREP "bsdtar")" != "x"; then
21487     TAR_TYPE="bsd"
21488   elif test "x$OPENJDK_BUILD_OS" = "xsolaris"; then
21489     TAR_TYPE="solaris"
21490   fi
21491   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what type of tar was found" >&5
21492 $as_echo_n "checking what type of tar was found... " >&6; }
21493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR_TYPE" >&5
21494 $as_echo "$TAR_TYPE" >&6; }
21495 
21496   TAR_CREATE_FILE_PARAM=""
21497 
21498   if test "x$TAR_TYPE" = "xgnu"; then
21499     TAR_INCLUDE_PARAM="T"
21500     TAR_SUPPORTS_TRANSFORM="true"
21501     if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
21502       # When using gnu tar for Solaris targets, need to use compatibility mode
21503       TAR_CREATE_EXTRA_PARAM="--format=ustar"
21504     fi
21505   else
21506     TAR_INCLUDE_PARAM="I"
21507     TAR_SUPPORTS_TRANSFORM="false"
21508   fi
21509 
21510 
21511 
21512 
21513 
21514 
21515   # Test that grep supports -Fx with a list of pattern which includes null pattern.
21516   # This is a problem for the grep resident on AIX.
21517   { $as_echo "$as_me:${as_lineno-$LINENO}: checking that grep ($GREP) -Fx handles empty lines in the pattern list correctly" >&5
21518 $as_echo_n "checking that grep ($GREP) -Fx handles empty lines in the pattern list correctly... " >&6; }
21519   # Multiple subsequent spaces..
21520   STACK_SPACES='aaa   bbb   ccc'
21521   # ..converted to subsequent newlines, causes STACK_LIST to be a list with some empty
21522   # patterns in it.
21523   STACK_LIST=${STACK_SPACES// /$'\n'}
21524   NEEDLE_SPACES='ccc bbb aaa'
21525   NEEDLE_LIST=${NEEDLE_SPACES// /$'\n'}
21526   RESULT="$($GREP -Fvx "$STACK_LIST" <<< "$NEEDLE_LIST")"
21527   if test "x$RESULT" == "x"; then
21528     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21529 $as_echo "yes" >&6; }
21530   else
21531     if test "x$OPENJDK_TARGET_OS" = "xaix"; then
21532       ADDINFO="Please make sure you use GNU grep, usually found at /opt/freeware/bin."
21533     fi
21534     as_fn_error $? "grep does not handle -Fx correctly. ${ADDINFO}" "$LINENO" 5
21535   fi
21536 
21537 
21538   # These tools might not be installed by default,
21539   # need hint on how to install them.
21540 
21541 
21542 
21543   # Publish this variable in the help.
21544 
21545 
21546   if [ -z "${UNZIP+x}" ]; then
21547     # The variable is not set by user, try to locate tool using the code snippet
21548     for ac_prog in unzip
21549 do
21550   # Extract the first word of "$ac_prog", so it can be a program name with args.
21551 set dummy $ac_prog; ac_word=$2
21552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21553 $as_echo_n "checking for $ac_word... " >&6; }
21554 if ${ac_cv_path_UNZIP+:} false; then :
21555   $as_echo_n "(cached) " >&6
21556 else
21557   case $UNZIP in
21558   [\\/]* | ?:[\\/]*)
21559   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
21560   ;;
21561   *)
21562   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21563 for as_dir in $PATH
21564 do
21565   IFS=$as_save_IFS
21566   test -z "$as_dir" && as_dir=.
21567     for ac_exec_ext in '' $ac_executable_extensions; do
21568   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21569     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
21570     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21571     break 2
21572   fi
21573 done
21574   done
21575 IFS=$as_save_IFS
21576 
21577   ;;
21578 esac
21579 fi
21580 UNZIP=$ac_cv_path_UNZIP
21581 if test -n "$UNZIP"; then
21582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
21583 $as_echo "$UNZIP" >&6; }
21584 else
21585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21586 $as_echo "no" >&6; }
21587 fi
21588 
21589 
21590   test -n "$UNZIP" && break
21591 done
21592 
21593   else
21594     # The variable is set, but is it from the command line or the environment?
21595 
21596     # Try to remove the string !UNZIP! from our list.
21597     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/}
21598     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21599       # If it failed, the variable was not from the command line. Ignore it,
21600       # but warn the user (except for BASH, which is always set by the calling BASH).
21601       if test "xUNZIP" != xBASH; then
21602         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5
21603 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;}
21604       fi
21605       # Try to locate tool using the code snippet
21606       for ac_prog in unzip
21607 do
21608   # Extract the first word of "$ac_prog", so it can be a program name with args.
21609 set dummy $ac_prog; ac_word=$2
21610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21611 $as_echo_n "checking for $ac_word... " >&6; }
21612 if ${ac_cv_path_UNZIP+:} false; then :
21613   $as_echo_n "(cached) " >&6
21614 else
21615   case $UNZIP in
21616   [\\/]* | ?:[\\/]*)
21617   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
21618   ;;
21619   *)
21620   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21621 for as_dir in $PATH
21622 do
21623   IFS=$as_save_IFS
21624   test -z "$as_dir" && as_dir=.
21625     for ac_exec_ext in '' $ac_executable_extensions; do
21626   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21627     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
21628     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21629     break 2
21630   fi
21631 done
21632   done
21633 IFS=$as_save_IFS
21634 
21635   ;;
21636 esac
21637 fi
21638 UNZIP=$ac_cv_path_UNZIP
21639 if test -n "$UNZIP"; then
21640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
21641 $as_echo "$UNZIP" >&6; }
21642 else
21643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21644 $as_echo "no" >&6; }
21645 fi
21646 
21647 
21648   test -n "$UNZIP" && break
21649 done
21650 
21651     else
21652       # If it succeeded, then it was overridden by the user. We will use it
21653       # for the tool.
21654 
21655       # First remove it from the list of overridden variables, so we can test
21656       # for unknown variables in the end.
21657       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21658 
21659       # Check if we try to supply an empty value
21660       if test "x$UNZIP" = x; then
21661         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNZIP= (no value)" >&5
21662 $as_echo "$as_me: Setting user supplied tool UNZIP= (no value)" >&6;}
21663         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5
21664 $as_echo_n "checking for UNZIP... " >&6; }
21665         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21666 $as_echo "disabled" >&6; }
21667       else
21668         # Check if the provided tool contains a complete path.
21669         tool_specified="$UNZIP"
21670         tool_basename="${tool_specified##*/}"
21671         if test "x$tool_basename" = "x$tool_specified"; then
21672           # A command without a complete path is provided, search $PATH.
21673           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5
21674 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;}
21675           # Extract the first word of "$tool_basename", so it can be a program name with args.
21676 set dummy $tool_basename; ac_word=$2
21677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21678 $as_echo_n "checking for $ac_word... " >&6; }
21679 if ${ac_cv_path_UNZIP+:} false; then :
21680   $as_echo_n "(cached) " >&6
21681 else
21682   case $UNZIP in
21683   [\\/]* | ?:[\\/]*)
21684   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
21685   ;;
21686   *)
21687   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21688 for as_dir in $PATH
21689 do
21690   IFS=$as_save_IFS
21691   test -z "$as_dir" && as_dir=.
21692     for ac_exec_ext in '' $ac_executable_extensions; do
21693   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21694     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
21695     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21696     break 2
21697   fi
21698 done
21699   done
21700 IFS=$as_save_IFS
21701 
21702   ;;
21703 esac
21704 fi
21705 UNZIP=$ac_cv_path_UNZIP
21706 if test -n "$UNZIP"; then
21707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
21708 $as_echo "$UNZIP" >&6; }
21709 else
21710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21711 $as_echo "no" >&6; }
21712 fi
21713 
21714 
21715           if test "x$UNZIP" = x; then
21716             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21717           fi
21718         else
21719           # Otherwise we believe it is a complete path. Use it as it is.
21720           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5
21721 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;}
21722           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5
21723 $as_echo_n "checking for UNZIP... " >&6; }
21724           if test ! -x "$tool_specified"; then
21725             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21726 $as_echo "not found" >&6; }
21727             as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
21728           fi
21729           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21730 $as_echo "$tool_specified" >&6; }
21731         fi
21732       fi
21733     fi
21734 
21735   fi
21736 
21737 
21738 
21739   if test "x$UNZIP" = x; then
21740     as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5
21741   fi
21742 
21743 
21744   # Since zip uses "ZIP" as a environment variable for passing options, we need
21745   # to name our variable differently, hence ZIPEXE.
21746 
21747 
21748 
21749   # Publish this variable in the help.
21750 
21751 
21752   if [ -z "${ZIPEXE+x}" ]; then
21753     # The variable is not set by user, try to locate tool using the code snippet
21754     for ac_prog in zip
21755 do
21756   # Extract the first word of "$ac_prog", so it can be a program name with args.
21757 set dummy $ac_prog; ac_word=$2
21758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21759 $as_echo_n "checking for $ac_word... " >&6; }
21760 if ${ac_cv_path_ZIPEXE+:} false; then :
21761   $as_echo_n "(cached) " >&6
21762 else
21763   case $ZIPEXE in
21764   [\\/]* | ?:[\\/]*)
21765   ac_cv_path_ZIPEXE="$ZIPEXE" # Let the user override the test with a path.
21766   ;;
21767   *)
21768   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21769 for as_dir in $PATH
21770 do
21771   IFS=$as_save_IFS
21772   test -z "$as_dir" && as_dir=.
21773     for ac_exec_ext in '' $ac_executable_extensions; do
21774   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21775     ac_cv_path_ZIPEXE="$as_dir/$ac_word$ac_exec_ext"
21776     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21777     break 2
21778   fi
21779 done
21780   done
21781 IFS=$as_save_IFS
21782 
21783   ;;
21784 esac
21785 fi
21786 ZIPEXE=$ac_cv_path_ZIPEXE
21787 if test -n "$ZIPEXE"; then
21788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIPEXE" >&5
21789 $as_echo "$ZIPEXE" >&6; }
21790 else
21791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21792 $as_echo "no" >&6; }
21793 fi
21794 
21795 
21796   test -n "$ZIPEXE" && break
21797 done
21798 
21799   else
21800     # The variable is set, but is it from the command line or the environment?
21801 
21802     # Try to remove the string !ZIPEXE! from our list.
21803     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIPEXE!/}
21804     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21805       # If it failed, the variable was not from the command line. Ignore it,
21806       # but warn the user (except for BASH, which is always set by the calling BASH).
21807       if test "xZIPEXE" != xBASH; then
21808         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIPEXE from the environment. Use command line variables instead." >&5
21809 $as_echo "$as_me: WARNING: Ignoring value of ZIPEXE from the environment. Use command line variables instead." >&2;}
21810       fi
21811       # Try to locate tool using the code snippet
21812       for ac_prog in zip
21813 do
21814   # Extract the first word of "$ac_prog", so it can be a program name with args.
21815 set dummy $ac_prog; ac_word=$2
21816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21817 $as_echo_n "checking for $ac_word... " >&6; }
21818 if ${ac_cv_path_ZIPEXE+:} false; then :
21819   $as_echo_n "(cached) " >&6
21820 else
21821   case $ZIPEXE in
21822   [\\/]* | ?:[\\/]*)
21823   ac_cv_path_ZIPEXE="$ZIPEXE" # Let the user override the test with a path.
21824   ;;
21825   *)
21826   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21827 for as_dir in $PATH
21828 do
21829   IFS=$as_save_IFS
21830   test -z "$as_dir" && as_dir=.
21831     for ac_exec_ext in '' $ac_executable_extensions; do
21832   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21833     ac_cv_path_ZIPEXE="$as_dir/$ac_word$ac_exec_ext"
21834     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21835     break 2
21836   fi
21837 done
21838   done
21839 IFS=$as_save_IFS
21840 
21841   ;;
21842 esac
21843 fi
21844 ZIPEXE=$ac_cv_path_ZIPEXE
21845 if test -n "$ZIPEXE"; then
21846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIPEXE" >&5
21847 $as_echo "$ZIPEXE" >&6; }
21848 else
21849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21850 $as_echo "no" >&6; }
21851 fi
21852 
21853 
21854   test -n "$ZIPEXE" && break
21855 done
21856 
21857     else
21858       # If it succeeded, then it was overridden by the user. We will use it
21859       # for the tool.
21860 
21861       # First remove it from the list of overridden variables, so we can test
21862       # for unknown variables in the end.
21863       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21864 
21865       # Check if we try to supply an empty value
21866       if test "x$ZIPEXE" = x; then
21867         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ZIPEXE= (no value)" >&5
21868 $as_echo "$as_me: Setting user supplied tool ZIPEXE= (no value)" >&6;}
21869         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIPEXE" >&5
21870 $as_echo_n "checking for ZIPEXE... " >&6; }
21871         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21872 $as_echo "disabled" >&6; }
21873       else
21874         # Check if the provided tool contains a complete path.
21875         tool_specified="$ZIPEXE"
21876         tool_basename="${tool_specified##*/}"
21877         if test "x$tool_basename" = "x$tool_specified"; then
21878           # A command without a complete path is provided, search $PATH.
21879           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIPEXE=$tool_basename" >&5
21880 $as_echo "$as_me: Will search for user supplied tool ZIPEXE=$tool_basename" >&6;}
21881           # Extract the first word of "$tool_basename", so it can be a program name with args.
21882 set dummy $tool_basename; ac_word=$2
21883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21884 $as_echo_n "checking for $ac_word... " >&6; }
21885 if ${ac_cv_path_ZIPEXE+:} false; then :
21886   $as_echo_n "(cached) " >&6
21887 else
21888   case $ZIPEXE in
21889   [\\/]* | ?:[\\/]*)
21890   ac_cv_path_ZIPEXE="$ZIPEXE" # Let the user override the test with a path.
21891   ;;
21892   *)
21893   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21894 for as_dir in $PATH
21895 do
21896   IFS=$as_save_IFS
21897   test -z "$as_dir" && as_dir=.
21898     for ac_exec_ext in '' $ac_executable_extensions; do
21899   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21900     ac_cv_path_ZIPEXE="$as_dir/$ac_word$ac_exec_ext"
21901     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21902     break 2
21903   fi
21904 done
21905   done
21906 IFS=$as_save_IFS
21907 
21908   ;;
21909 esac
21910 fi
21911 ZIPEXE=$ac_cv_path_ZIPEXE
21912 if test -n "$ZIPEXE"; then
21913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIPEXE" >&5
21914 $as_echo "$ZIPEXE" >&6; }
21915 else
21916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21917 $as_echo "no" >&6; }
21918 fi
21919 
21920 
21921           if test "x$ZIPEXE" = x; then
21922             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21923           fi
21924         else
21925           # Otherwise we believe it is a complete path. Use it as it is.
21926           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIPEXE=$tool_specified" >&5
21927 $as_echo "$as_me: Will use user supplied tool ZIPEXE=$tool_specified" >&6;}
21928           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIPEXE" >&5
21929 $as_echo_n "checking for ZIPEXE... " >&6; }
21930           if test ! -x "$tool_specified"; then
21931             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21932 $as_echo "not found" >&6; }
21933             as_fn_error $? "User supplied tool ZIPEXE=$tool_specified does not exist or is not executable" "$LINENO" 5
21934           fi
21935           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21936 $as_echo "$tool_specified" >&6; }
21937         fi
21938       fi
21939     fi
21940 
21941   fi
21942 
21943 
21944 
21945   if test "x$ZIPEXE" = x; then
21946     as_fn_error $? "Could not find required tool for ZIPEXE" "$LINENO" 5
21947   fi
21948 
21949 
21950 
21951   # Non-required basic tools
21952 
21953 
21954 
21955   # Publish this variable in the help.
21956 
21957 
21958   if [ -z "${LDD+x}" ]; then
21959     # The variable is not set by user, try to locate tool using the code snippet
21960     for ac_prog in ldd
21961 do
21962   # Extract the first word of "$ac_prog", so it can be a program name with args.
21963 set dummy $ac_prog; ac_word=$2
21964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21965 $as_echo_n "checking for $ac_word... " >&6; }
21966 if ${ac_cv_path_LDD+:} false; then :
21967   $as_echo_n "(cached) " >&6
21968 else
21969   case $LDD in
21970   [\\/]* | ?:[\\/]*)
21971   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
21972   ;;
21973   *)
21974   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21975 for as_dir in $PATH
21976 do
21977   IFS=$as_save_IFS
21978   test -z "$as_dir" && as_dir=.
21979     for ac_exec_ext in '' $ac_executable_extensions; do
21980   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21981     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
21982     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21983     break 2
21984   fi
21985 done
21986   done
21987 IFS=$as_save_IFS
21988 
21989   ;;
21990 esac
21991 fi
21992 LDD=$ac_cv_path_LDD
21993 if test -n "$LDD"; then
21994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
21995 $as_echo "$LDD" >&6; }
21996 else
21997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21998 $as_echo "no" >&6; }
21999 fi
22000 
22001 
22002   test -n "$LDD" && break
22003 done
22004 
22005   else
22006     # The variable is set, but is it from the command line or the environment?
22007 
22008     # Try to remove the string !LDD! from our list.
22009     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/}
22010     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22011       # If it failed, the variable was not from the command line. Ignore it,
22012       # but warn the user (except for BASH, which is always set by the calling BASH).
22013       if test "xLDD" != xBASH; then
22014         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5
22015 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;}
22016       fi
22017       # Try to locate tool using the code snippet
22018       for ac_prog in ldd
22019 do
22020   # Extract the first word of "$ac_prog", so it can be a program name with args.
22021 set dummy $ac_prog; ac_word=$2
22022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22023 $as_echo_n "checking for $ac_word... " >&6; }
22024 if ${ac_cv_path_LDD+:} false; then :
22025   $as_echo_n "(cached) " >&6
22026 else
22027   case $LDD in
22028   [\\/]* | ?:[\\/]*)
22029   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
22030   ;;
22031   *)
22032   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22033 for as_dir in $PATH
22034 do
22035   IFS=$as_save_IFS
22036   test -z "$as_dir" && as_dir=.
22037     for ac_exec_ext in '' $ac_executable_extensions; do
22038   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22039     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
22040     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22041     break 2
22042   fi
22043 done
22044   done
22045 IFS=$as_save_IFS
22046 
22047   ;;
22048 esac
22049 fi
22050 LDD=$ac_cv_path_LDD
22051 if test -n "$LDD"; then
22052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
22053 $as_echo "$LDD" >&6; }
22054 else
22055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22056 $as_echo "no" >&6; }
22057 fi
22058 
22059 
22060   test -n "$LDD" && break
22061 done
22062 
22063     else
22064       # If it succeeded, then it was overridden by the user. We will use it
22065       # for the tool.
22066 
22067       # First remove it from the list of overridden variables, so we can test
22068       # for unknown variables in the end.
22069       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22070 
22071       # Check if we try to supply an empty value
22072       if test "x$LDD" = x; then
22073         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LDD= (no value)" >&5
22074 $as_echo "$as_me: Setting user supplied tool LDD= (no value)" >&6;}
22075         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5
22076 $as_echo_n "checking for LDD... " >&6; }
22077         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22078 $as_echo "disabled" >&6; }
22079       else
22080         # Check if the provided tool contains a complete path.
22081         tool_specified="$LDD"
22082         tool_basename="${tool_specified##*/}"
22083         if test "x$tool_basename" = "x$tool_specified"; then
22084           # A command without a complete path is provided, search $PATH.
22085           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5
22086 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;}
22087           # Extract the first word of "$tool_basename", so it can be a program name with args.
22088 set dummy $tool_basename; ac_word=$2
22089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22090 $as_echo_n "checking for $ac_word... " >&6; }
22091 if ${ac_cv_path_LDD+:} false; then :
22092   $as_echo_n "(cached) " >&6
22093 else
22094   case $LDD in
22095   [\\/]* | ?:[\\/]*)
22096   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
22097   ;;
22098   *)
22099   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22100 for as_dir in $PATH
22101 do
22102   IFS=$as_save_IFS
22103   test -z "$as_dir" && as_dir=.
22104     for ac_exec_ext in '' $ac_executable_extensions; do
22105   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22106     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
22107     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22108     break 2
22109   fi
22110 done
22111   done
22112 IFS=$as_save_IFS
22113 
22114   ;;
22115 esac
22116 fi
22117 LDD=$ac_cv_path_LDD
22118 if test -n "$LDD"; then
22119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
22120 $as_echo "$LDD" >&6; }
22121 else
22122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22123 $as_echo "no" >&6; }
22124 fi
22125 
22126 
22127           if test "x$LDD" = x; then
22128             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22129           fi
22130         else
22131           # Otherwise we believe it is a complete path. Use it as it is.
22132           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5
22133 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;}
22134           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5
22135 $as_echo_n "checking for LDD... " >&6; }
22136           if test ! -x "$tool_specified"; then
22137             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22138 $as_echo "not found" >&6; }
22139             as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5
22140           fi
22141           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22142 $as_echo "$tool_specified" >&6; }
22143         fi
22144       fi
22145     fi
22146 
22147   fi
22148 
22149 
22150   if test "x$LDD" = "x"; then
22151     # List shared lib dependencies is used for
22152     # debug output and checking for forbidden dependencies.
22153     # We can build without it.
22154     LDD="true"
22155   fi
22156 
22157 
22158   # Publish this variable in the help.
22159 
22160 
22161   if [ -z "${READELF+x}" ]; then
22162     # The variable is not set by user, try to locate tool using the code snippet
22163     for ac_prog in greadelf readelf
22164 do
22165   # Extract the first word of "$ac_prog", so it can be a program name with args.
22166 set dummy $ac_prog; ac_word=$2
22167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22168 $as_echo_n "checking for $ac_word... " >&6; }
22169 if ${ac_cv_path_READELF+:} false; then :
22170   $as_echo_n "(cached) " >&6
22171 else
22172   case $READELF in
22173   [\\/]* | ?:[\\/]*)
22174   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
22175   ;;
22176   *)
22177   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22178 for as_dir in $PATH
22179 do
22180   IFS=$as_save_IFS
22181   test -z "$as_dir" && as_dir=.
22182     for ac_exec_ext in '' $ac_executable_extensions; do
22183   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22184     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
22185     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22186     break 2
22187   fi
22188 done
22189   done
22190 IFS=$as_save_IFS
22191 
22192   ;;
22193 esac
22194 fi
22195 READELF=$ac_cv_path_READELF
22196 if test -n "$READELF"; then
22197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
22198 $as_echo "$READELF" >&6; }
22199 else
22200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22201 $as_echo "no" >&6; }
22202 fi
22203 
22204 
22205   test -n "$READELF" && break
22206 done
22207 
22208   else
22209     # The variable is set, but is it from the command line or the environment?
22210 
22211     # Try to remove the string !READELF! from our list.
22212     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/}
22213     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22214       # If it failed, the variable was not from the command line. Ignore it,
22215       # but warn the user (except for BASH, which is always set by the calling BASH).
22216       if test "xREADELF" != xBASH; then
22217         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5
22218 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;}
22219       fi
22220       # Try to locate tool using the code snippet
22221       for ac_prog in greadelf readelf
22222 do
22223   # Extract the first word of "$ac_prog", so it can be a program name with args.
22224 set dummy $ac_prog; ac_word=$2
22225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22226 $as_echo_n "checking for $ac_word... " >&6; }
22227 if ${ac_cv_path_READELF+:} false; then :
22228   $as_echo_n "(cached) " >&6
22229 else
22230   case $READELF in
22231   [\\/]* | ?:[\\/]*)
22232   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
22233   ;;
22234   *)
22235   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22236 for as_dir in $PATH
22237 do
22238   IFS=$as_save_IFS
22239   test -z "$as_dir" && as_dir=.
22240     for ac_exec_ext in '' $ac_executable_extensions; do
22241   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22242     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
22243     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22244     break 2
22245   fi
22246 done
22247   done
22248 IFS=$as_save_IFS
22249 
22250   ;;
22251 esac
22252 fi
22253 READELF=$ac_cv_path_READELF
22254 if test -n "$READELF"; then
22255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
22256 $as_echo "$READELF" >&6; }
22257 else
22258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22259 $as_echo "no" >&6; }
22260 fi
22261 
22262 
22263   test -n "$READELF" && break
22264 done
22265 
22266     else
22267       # If it succeeded, then it was overridden by the user. We will use it
22268       # for the tool.
22269 
22270       # First remove it from the list of overridden variables, so we can test
22271       # for unknown variables in the end.
22272       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22273 
22274       # Check if we try to supply an empty value
22275       if test "x$READELF" = x; then
22276         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool READELF= (no value)" >&5
22277 $as_echo "$as_me: Setting user supplied tool READELF= (no value)" >&6;}
22278         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5
22279 $as_echo_n "checking for READELF... " >&6; }
22280         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22281 $as_echo "disabled" >&6; }
22282       else
22283         # Check if the provided tool contains a complete path.
22284         tool_specified="$READELF"
22285         tool_basename="${tool_specified##*/}"
22286         if test "x$tool_basename" = "x$tool_specified"; then
22287           # A command without a complete path is provided, search $PATH.
22288           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5
22289 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;}
22290           # Extract the first word of "$tool_basename", so it can be a program name with args.
22291 set dummy $tool_basename; ac_word=$2
22292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22293 $as_echo_n "checking for $ac_word... " >&6; }
22294 if ${ac_cv_path_READELF+:} false; then :
22295   $as_echo_n "(cached) " >&6
22296 else
22297   case $READELF in
22298   [\\/]* | ?:[\\/]*)
22299   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
22300   ;;
22301   *)
22302   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22303 for as_dir in $PATH
22304 do
22305   IFS=$as_save_IFS
22306   test -z "$as_dir" && as_dir=.
22307     for ac_exec_ext in '' $ac_executable_extensions; do
22308   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22309     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
22310     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22311     break 2
22312   fi
22313 done
22314   done
22315 IFS=$as_save_IFS
22316 
22317   ;;
22318 esac
22319 fi
22320 READELF=$ac_cv_path_READELF
22321 if test -n "$READELF"; then
22322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
22323 $as_echo "$READELF" >&6; }
22324 else
22325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22326 $as_echo "no" >&6; }
22327 fi
22328 
22329 
22330           if test "x$READELF" = x; then
22331             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22332           fi
22333         else
22334           # Otherwise we believe it is a complete path. Use it as it is.
22335           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5
22336 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;}
22337           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5
22338 $as_echo_n "checking for READELF... " >&6; }
22339           if test ! -x "$tool_specified"; then
22340             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22341 $as_echo "not found" >&6; }
22342             as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5
22343           fi
22344           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22345 $as_echo "$tool_specified" >&6; }
22346         fi
22347       fi
22348     fi
22349 
22350   fi
22351 
22352 
22353 
22354 
22355   # Publish this variable in the help.
22356 
22357 
22358   if [ -z "${DOT+x}" ]; then
22359     # The variable is not set by user, try to locate tool using the code snippet
22360     for ac_prog in dot
22361 do
22362   # Extract the first word of "$ac_prog", so it can be a program name with args.
22363 set dummy $ac_prog; ac_word=$2
22364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22365 $as_echo_n "checking for $ac_word... " >&6; }
22366 if ${ac_cv_path_DOT+:} false; then :
22367   $as_echo_n "(cached) " >&6
22368 else
22369   case $DOT in
22370   [\\/]* | ?:[\\/]*)
22371   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
22372   ;;
22373   *)
22374   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22375 for as_dir in $PATH
22376 do
22377   IFS=$as_save_IFS
22378   test -z "$as_dir" && as_dir=.
22379     for ac_exec_ext in '' $ac_executable_extensions; do
22380   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22381     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
22382     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22383     break 2
22384   fi
22385 done
22386   done
22387 IFS=$as_save_IFS
22388 
22389   ;;
22390 esac
22391 fi
22392 DOT=$ac_cv_path_DOT
22393 if test -n "$DOT"; then
22394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
22395 $as_echo "$DOT" >&6; }
22396 else
22397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22398 $as_echo "no" >&6; }
22399 fi
22400 
22401 
22402   test -n "$DOT" && break
22403 done
22404 
22405   else
22406     # The variable is set, but is it from the command line or the environment?
22407 
22408     # Try to remove the string !DOT! from our list.
22409     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DOT!/}
22410     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22411       # If it failed, the variable was not from the command line. Ignore it,
22412       # but warn the user (except for BASH, which is always set by the calling BASH).
22413       if test "xDOT" != xBASH; then
22414         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DOT from the environment. Use command line variables instead." >&5
22415 $as_echo "$as_me: WARNING: Ignoring value of DOT from the environment. Use command line variables instead." >&2;}
22416       fi
22417       # Try to locate tool using the code snippet
22418       for ac_prog in dot
22419 do
22420   # Extract the first word of "$ac_prog", so it can be a program name with args.
22421 set dummy $ac_prog; ac_word=$2
22422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22423 $as_echo_n "checking for $ac_word... " >&6; }
22424 if ${ac_cv_path_DOT+:} false; then :
22425   $as_echo_n "(cached) " >&6
22426 else
22427   case $DOT in
22428   [\\/]* | ?:[\\/]*)
22429   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
22430   ;;
22431   *)
22432   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22433 for as_dir in $PATH
22434 do
22435   IFS=$as_save_IFS
22436   test -z "$as_dir" && as_dir=.
22437     for ac_exec_ext in '' $ac_executable_extensions; do
22438   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22439     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
22440     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22441     break 2
22442   fi
22443 done
22444   done
22445 IFS=$as_save_IFS
22446 
22447   ;;
22448 esac
22449 fi
22450 DOT=$ac_cv_path_DOT
22451 if test -n "$DOT"; then
22452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
22453 $as_echo "$DOT" >&6; }
22454 else
22455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22456 $as_echo "no" >&6; }
22457 fi
22458 
22459 
22460   test -n "$DOT" && break
22461 done
22462 
22463     else
22464       # If it succeeded, then it was overridden by the user. We will use it
22465       # for the tool.
22466 
22467       # First remove it from the list of overridden variables, so we can test
22468       # for unknown variables in the end.
22469       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22470 
22471       # Check if we try to supply an empty value
22472       if test "x$DOT" = x; then
22473         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DOT= (no value)" >&5
22474 $as_echo "$as_me: Setting user supplied tool DOT= (no value)" >&6;}
22475         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DOT" >&5
22476 $as_echo_n "checking for DOT... " >&6; }
22477         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22478 $as_echo "disabled" >&6; }
22479       else
22480         # Check if the provided tool contains a complete path.
22481         tool_specified="$DOT"
22482         tool_basename="${tool_specified##*/}"
22483         if test "x$tool_basename" = "x$tool_specified"; then
22484           # A command without a complete path is provided, search $PATH.
22485           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DOT=$tool_basename" >&5
22486 $as_echo "$as_me: Will search for user supplied tool DOT=$tool_basename" >&6;}
22487           # Extract the first word of "$tool_basename", so it can be a program name with args.
22488 set dummy $tool_basename; ac_word=$2
22489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22490 $as_echo_n "checking for $ac_word... " >&6; }
22491 if ${ac_cv_path_DOT+:} false; then :
22492   $as_echo_n "(cached) " >&6
22493 else
22494   case $DOT in
22495   [\\/]* | ?:[\\/]*)
22496   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
22497   ;;
22498   *)
22499   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22500 for as_dir in $PATH
22501 do
22502   IFS=$as_save_IFS
22503   test -z "$as_dir" && as_dir=.
22504     for ac_exec_ext in '' $ac_executable_extensions; do
22505   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22506     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
22507     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22508     break 2
22509   fi
22510 done
22511   done
22512 IFS=$as_save_IFS
22513 
22514   ;;
22515 esac
22516 fi
22517 DOT=$ac_cv_path_DOT
22518 if test -n "$DOT"; then
22519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
22520 $as_echo "$DOT" >&6; }
22521 else
22522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22523 $as_echo "no" >&6; }
22524 fi
22525 
22526 
22527           if test "x$DOT" = x; then
22528             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22529           fi
22530         else
22531           # Otherwise we believe it is a complete path. Use it as it is.
22532           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DOT=$tool_specified" >&5
22533 $as_echo "$as_me: Will use user supplied tool DOT=$tool_specified" >&6;}
22534           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DOT" >&5
22535 $as_echo_n "checking for DOT... " >&6; }
22536           if test ! -x "$tool_specified"; then
22537             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22538 $as_echo "not found" >&6; }
22539             as_fn_error $? "User supplied tool DOT=$tool_specified does not exist or is not executable" "$LINENO" 5
22540           fi
22541           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22542 $as_echo "$tool_specified" >&6; }
22543         fi
22544       fi
22545     fi
22546 
22547   fi
22548 
22549 
22550 
22551 
22552   # Publish this variable in the help.
22553 
22554 
22555   if [ -z "${HG+x}" ]; then
22556     # The variable is not set by user, try to locate tool using the code snippet
22557     for ac_prog in hg
22558 do
22559   # Extract the first word of "$ac_prog", so it can be a program name with args.
22560 set dummy $ac_prog; ac_word=$2
22561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22562 $as_echo_n "checking for $ac_word... " >&6; }
22563 if ${ac_cv_path_HG+:} false; then :
22564   $as_echo_n "(cached) " >&6
22565 else
22566   case $HG in
22567   [\\/]* | ?:[\\/]*)
22568   ac_cv_path_HG="$HG" # Let the user override the test with a path.
22569   ;;
22570   *)
22571   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22572 for as_dir in $PATH
22573 do
22574   IFS=$as_save_IFS
22575   test -z "$as_dir" && as_dir=.
22576     for ac_exec_ext in '' $ac_executable_extensions; do
22577   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22578     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
22579     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22580     break 2
22581   fi
22582 done
22583   done
22584 IFS=$as_save_IFS
22585 
22586   ;;
22587 esac
22588 fi
22589 HG=$ac_cv_path_HG
22590 if test -n "$HG"; then
22591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
22592 $as_echo "$HG" >&6; }
22593 else
22594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22595 $as_echo "no" >&6; }
22596 fi
22597 
22598 
22599   test -n "$HG" && break
22600 done
22601 
22602   else
22603     # The variable is set, but is it from the command line or the environment?
22604 
22605     # Try to remove the string !HG! from our list.
22606     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/}
22607     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22608       # If it failed, the variable was not from the command line. Ignore it,
22609       # but warn the user (except for BASH, which is always set by the calling BASH).
22610       if test "xHG" != xBASH; then
22611         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5
22612 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;}
22613       fi
22614       # Try to locate tool using the code snippet
22615       for ac_prog in hg
22616 do
22617   # Extract the first word of "$ac_prog", so it can be a program name with args.
22618 set dummy $ac_prog; ac_word=$2
22619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22620 $as_echo_n "checking for $ac_word... " >&6; }
22621 if ${ac_cv_path_HG+:} false; then :
22622   $as_echo_n "(cached) " >&6
22623 else
22624   case $HG in
22625   [\\/]* | ?:[\\/]*)
22626   ac_cv_path_HG="$HG" # Let the user override the test with a path.
22627   ;;
22628   *)
22629   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22630 for as_dir in $PATH
22631 do
22632   IFS=$as_save_IFS
22633   test -z "$as_dir" && as_dir=.
22634     for ac_exec_ext in '' $ac_executable_extensions; do
22635   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22636     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
22637     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22638     break 2
22639   fi
22640 done
22641   done
22642 IFS=$as_save_IFS
22643 
22644   ;;
22645 esac
22646 fi
22647 HG=$ac_cv_path_HG
22648 if test -n "$HG"; then
22649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
22650 $as_echo "$HG" >&6; }
22651 else
22652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22653 $as_echo "no" >&6; }
22654 fi
22655 
22656 
22657   test -n "$HG" && break
22658 done
22659 
22660     else
22661       # If it succeeded, then it was overridden by the user. We will use it
22662       # for the tool.
22663 
22664       # First remove it from the list of overridden variables, so we can test
22665       # for unknown variables in the end.
22666       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22667 
22668       # Check if we try to supply an empty value
22669       if test "x$HG" = x; then
22670         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool HG= (no value)" >&5
22671 $as_echo "$as_me: Setting user supplied tool HG= (no value)" >&6;}
22672         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5
22673 $as_echo_n "checking for HG... " >&6; }
22674         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22675 $as_echo "disabled" >&6; }
22676       else
22677         # Check if the provided tool contains a complete path.
22678         tool_specified="$HG"
22679         tool_basename="${tool_specified##*/}"
22680         if test "x$tool_basename" = "x$tool_specified"; then
22681           # A command without a complete path is provided, search $PATH.
22682           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5
22683 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;}
22684           # Extract the first word of "$tool_basename", so it can be a program name with args.
22685 set dummy $tool_basename; ac_word=$2
22686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22687 $as_echo_n "checking for $ac_word... " >&6; }
22688 if ${ac_cv_path_HG+:} false; then :
22689   $as_echo_n "(cached) " >&6
22690 else
22691   case $HG in
22692   [\\/]* | ?:[\\/]*)
22693   ac_cv_path_HG="$HG" # Let the user override the test with a path.
22694   ;;
22695   *)
22696   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22697 for as_dir in $PATH
22698 do
22699   IFS=$as_save_IFS
22700   test -z "$as_dir" && as_dir=.
22701     for ac_exec_ext in '' $ac_executable_extensions; do
22702   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22703     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
22704     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22705     break 2
22706   fi
22707 done
22708   done
22709 IFS=$as_save_IFS
22710 
22711   ;;
22712 esac
22713 fi
22714 HG=$ac_cv_path_HG
22715 if test -n "$HG"; then
22716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
22717 $as_echo "$HG" >&6; }
22718 else
22719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22720 $as_echo "no" >&6; }
22721 fi
22722 
22723 
22724           if test "x$HG" = x; then
22725             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22726           fi
22727         else
22728           # Otherwise we believe it is a complete path. Use it as it is.
22729           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5
22730 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;}
22731           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5
22732 $as_echo_n "checking for HG... " >&6; }
22733           if test ! -x "$tool_specified"; then
22734             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22735 $as_echo "not found" >&6; }
22736             as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5
22737           fi
22738           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22739 $as_echo "$tool_specified" >&6; }
22740         fi
22741       fi
22742     fi
22743 
22744   fi
22745 
22746 
22747 
22748 
22749   # Publish this variable in the help.
22750 
22751 
22752   if [ -z "${STAT+x}" ]; then
22753     # The variable is not set by user, try to locate tool using the code snippet
22754     for ac_prog in stat
22755 do
22756   # Extract the first word of "$ac_prog", so it can be a program name with args.
22757 set dummy $ac_prog; ac_word=$2
22758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22759 $as_echo_n "checking for $ac_word... " >&6; }
22760 if ${ac_cv_path_STAT+:} false; then :
22761   $as_echo_n "(cached) " >&6
22762 else
22763   case $STAT in
22764   [\\/]* | ?:[\\/]*)
22765   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
22766   ;;
22767   *)
22768   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22769 for as_dir in $PATH
22770 do
22771   IFS=$as_save_IFS
22772   test -z "$as_dir" && as_dir=.
22773     for ac_exec_ext in '' $ac_executable_extensions; do
22774   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22775     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
22776     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22777     break 2
22778   fi
22779 done
22780   done
22781 IFS=$as_save_IFS
22782 
22783   ;;
22784 esac
22785 fi
22786 STAT=$ac_cv_path_STAT
22787 if test -n "$STAT"; then
22788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
22789 $as_echo "$STAT" >&6; }
22790 else
22791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22792 $as_echo "no" >&6; }
22793 fi
22794 
22795 
22796   test -n "$STAT" && break
22797 done
22798 
22799   else
22800     # The variable is set, but is it from the command line or the environment?
22801 
22802     # Try to remove the string !STAT! from our list.
22803     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/}
22804     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22805       # If it failed, the variable was not from the command line. Ignore it,
22806       # but warn the user (except for BASH, which is always set by the calling BASH).
22807       if test "xSTAT" != xBASH; then
22808         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5
22809 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;}
22810       fi
22811       # Try to locate tool using the code snippet
22812       for ac_prog in stat
22813 do
22814   # Extract the first word of "$ac_prog", so it can be a program name with args.
22815 set dummy $ac_prog; ac_word=$2
22816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22817 $as_echo_n "checking for $ac_word... " >&6; }
22818 if ${ac_cv_path_STAT+:} false; then :
22819   $as_echo_n "(cached) " >&6
22820 else
22821   case $STAT in
22822   [\\/]* | ?:[\\/]*)
22823   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
22824   ;;
22825   *)
22826   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22827 for as_dir in $PATH
22828 do
22829   IFS=$as_save_IFS
22830   test -z "$as_dir" && as_dir=.
22831     for ac_exec_ext in '' $ac_executable_extensions; do
22832   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22833     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
22834     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22835     break 2
22836   fi
22837 done
22838   done
22839 IFS=$as_save_IFS
22840 
22841   ;;
22842 esac
22843 fi
22844 STAT=$ac_cv_path_STAT
22845 if test -n "$STAT"; then
22846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
22847 $as_echo "$STAT" >&6; }
22848 else
22849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22850 $as_echo "no" >&6; }
22851 fi
22852 
22853 
22854   test -n "$STAT" && break
22855 done
22856 
22857     else
22858       # If it succeeded, then it was overridden by the user. We will use it
22859       # for the tool.
22860 
22861       # First remove it from the list of overridden variables, so we can test
22862       # for unknown variables in the end.
22863       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22864 
22865       # Check if we try to supply an empty value
22866       if test "x$STAT" = x; then
22867         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool STAT= (no value)" >&5
22868 $as_echo "$as_me: Setting user supplied tool STAT= (no value)" >&6;}
22869         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5
22870 $as_echo_n "checking for STAT... " >&6; }
22871         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22872 $as_echo "disabled" >&6; }
22873       else
22874         # Check if the provided tool contains a complete path.
22875         tool_specified="$STAT"
22876         tool_basename="${tool_specified##*/}"
22877         if test "x$tool_basename" = "x$tool_specified"; then
22878           # A command without a complete path is provided, search $PATH.
22879           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5
22880 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;}
22881           # Extract the first word of "$tool_basename", so it can be a program name with args.
22882 set dummy $tool_basename; ac_word=$2
22883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22884 $as_echo_n "checking for $ac_word... " >&6; }
22885 if ${ac_cv_path_STAT+:} false; then :
22886   $as_echo_n "(cached) " >&6
22887 else
22888   case $STAT in
22889   [\\/]* | ?:[\\/]*)
22890   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
22891   ;;
22892   *)
22893   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22894 for as_dir in $PATH
22895 do
22896   IFS=$as_save_IFS
22897   test -z "$as_dir" && as_dir=.
22898     for ac_exec_ext in '' $ac_executable_extensions; do
22899   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22900     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
22901     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22902     break 2
22903   fi
22904 done
22905   done
22906 IFS=$as_save_IFS
22907 
22908   ;;
22909 esac
22910 fi
22911 STAT=$ac_cv_path_STAT
22912 if test -n "$STAT"; then
22913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
22914 $as_echo "$STAT" >&6; }
22915 else
22916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22917 $as_echo "no" >&6; }
22918 fi
22919 
22920 
22921           if test "x$STAT" = x; then
22922             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22923           fi
22924         else
22925           # Otherwise we believe it is a complete path. Use it as it is.
22926           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5
22927 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;}
22928           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5
22929 $as_echo_n "checking for STAT... " >&6; }
22930           if test ! -x "$tool_specified"; then
22931             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22932 $as_echo "not found" >&6; }
22933             as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5
22934           fi
22935           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22936 $as_echo "$tool_specified" >&6; }
22937         fi
22938       fi
22939     fi
22940 
22941   fi
22942 
22943 
22944 
22945 
22946   # Publish this variable in the help.
22947 
22948 
22949   if [ -z "${TIME+x}" ]; then
22950     # The variable is not set by user, try to locate tool using the code snippet
22951     for ac_prog in time
22952 do
22953   # Extract the first word of "$ac_prog", so it can be a program name with args.
22954 set dummy $ac_prog; ac_word=$2
22955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22956 $as_echo_n "checking for $ac_word... " >&6; }
22957 if ${ac_cv_path_TIME+:} false; then :
22958   $as_echo_n "(cached) " >&6
22959 else
22960   case $TIME in
22961   [\\/]* | ?:[\\/]*)
22962   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
22963   ;;
22964   *)
22965   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22966 for as_dir in $PATH
22967 do
22968   IFS=$as_save_IFS
22969   test -z "$as_dir" && as_dir=.
22970     for ac_exec_ext in '' $ac_executable_extensions; do
22971   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22972     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
22973     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22974     break 2
22975   fi
22976 done
22977   done
22978 IFS=$as_save_IFS
22979 
22980   ;;
22981 esac
22982 fi
22983 TIME=$ac_cv_path_TIME
22984 if test -n "$TIME"; then
22985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
22986 $as_echo "$TIME" >&6; }
22987 else
22988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22989 $as_echo "no" >&6; }
22990 fi
22991 
22992 
22993   test -n "$TIME" && break
22994 done
22995 
22996   else
22997     # The variable is set, but is it from the command line or the environment?
22998 
22999     # Try to remove the string !TIME! from our list.
23000     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/}
23001     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
23002       # If it failed, the variable was not from the command line. Ignore it,
23003       # but warn the user (except for BASH, which is always set by the calling BASH).
23004       if test "xTIME" != xBASH; then
23005         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5
23006 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;}
23007       fi
23008       # Try to locate tool using the code snippet
23009       for ac_prog in time
23010 do
23011   # Extract the first word of "$ac_prog", so it can be a program name with args.
23012 set dummy $ac_prog; ac_word=$2
23013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23014 $as_echo_n "checking for $ac_word... " >&6; }
23015 if ${ac_cv_path_TIME+:} false; then :
23016   $as_echo_n "(cached) " >&6
23017 else
23018   case $TIME in
23019   [\\/]* | ?:[\\/]*)
23020   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
23021   ;;
23022   *)
23023   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23024 for as_dir in $PATH
23025 do
23026   IFS=$as_save_IFS
23027   test -z "$as_dir" && as_dir=.
23028     for ac_exec_ext in '' $ac_executable_extensions; do
23029   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23030     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
23031     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23032     break 2
23033   fi
23034 done
23035   done
23036 IFS=$as_save_IFS
23037 
23038   ;;
23039 esac
23040 fi
23041 TIME=$ac_cv_path_TIME
23042 if test -n "$TIME"; then
23043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
23044 $as_echo "$TIME" >&6; }
23045 else
23046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23047 $as_echo "no" >&6; }
23048 fi
23049 
23050 
23051   test -n "$TIME" && break
23052 done
23053 
23054     else
23055       # If it succeeded, then it was overridden by the user. We will use it
23056       # for the tool.
23057 
23058       # First remove it from the list of overridden variables, so we can test
23059       # for unknown variables in the end.
23060       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
23061 
23062       # Check if we try to supply an empty value
23063       if test "x$TIME" = x; then
23064         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TIME= (no value)" >&5
23065 $as_echo "$as_me: Setting user supplied tool TIME= (no value)" >&6;}
23066         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5
23067 $as_echo_n "checking for TIME... " >&6; }
23068         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
23069 $as_echo "disabled" >&6; }
23070       else
23071         # Check if the provided tool contains a complete path.
23072         tool_specified="$TIME"
23073         tool_basename="${tool_specified##*/}"
23074         if test "x$tool_basename" = "x$tool_specified"; then
23075           # A command without a complete path is provided, search $PATH.
23076           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5
23077 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;}
23078           # Extract the first word of "$tool_basename", so it can be a program name with args.
23079 set dummy $tool_basename; ac_word=$2
23080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23081 $as_echo_n "checking for $ac_word... " >&6; }
23082 if ${ac_cv_path_TIME+:} false; then :
23083   $as_echo_n "(cached) " >&6
23084 else
23085   case $TIME in
23086   [\\/]* | ?:[\\/]*)
23087   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
23088   ;;
23089   *)
23090   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23091 for as_dir in $PATH
23092 do
23093   IFS=$as_save_IFS
23094   test -z "$as_dir" && as_dir=.
23095     for ac_exec_ext in '' $ac_executable_extensions; do
23096   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23097     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
23098     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23099     break 2
23100   fi
23101 done
23102   done
23103 IFS=$as_save_IFS
23104 
23105   ;;
23106 esac
23107 fi
23108 TIME=$ac_cv_path_TIME
23109 if test -n "$TIME"; then
23110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
23111 $as_echo "$TIME" >&6; }
23112 else
23113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23114 $as_echo "no" >&6; }
23115 fi
23116 
23117 
23118           if test "x$TIME" = x; then
23119             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
23120           fi
23121         else
23122           # Otherwise we believe it is a complete path. Use it as it is.
23123           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5
23124 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;}
23125           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5
23126 $as_echo_n "checking for TIME... " >&6; }
23127           if test ! -x "$tool_specified"; then
23128             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23129 $as_echo "not found" >&6; }
23130             as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5
23131           fi
23132           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
23133 $as_echo "$tool_specified" >&6; }
23134         fi
23135       fi
23136     fi
23137 
23138   fi
23139 
23140 
23141 
23142 
23143   # Publish this variable in the help.
23144 
23145 
23146   if [ -z "${FLOCK+x}" ]; then
23147     # The variable is not set by user, try to locate tool using the code snippet
23148     for ac_prog in flock
23149 do
23150   # Extract the first word of "$ac_prog", so it can be a program name with args.
23151 set dummy $ac_prog; ac_word=$2
23152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23153 $as_echo_n "checking for $ac_word... " >&6; }
23154 if ${ac_cv_path_FLOCK+:} false; then :
23155   $as_echo_n "(cached) " >&6
23156 else
23157   case $FLOCK in
23158   [\\/]* | ?:[\\/]*)
23159   ac_cv_path_FLOCK="$FLOCK" # Let the user override the test with a path.
23160   ;;
23161   *)
23162   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23163 for as_dir in $PATH
23164 do
23165   IFS=$as_save_IFS
23166   test -z "$as_dir" && as_dir=.
23167     for ac_exec_ext in '' $ac_executable_extensions; do
23168   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23169     ac_cv_path_FLOCK="$as_dir/$ac_word$ac_exec_ext"
23170     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23171     break 2
23172   fi
23173 done
23174   done
23175 IFS=$as_save_IFS
23176 
23177   ;;
23178 esac
23179 fi
23180 FLOCK=$ac_cv_path_FLOCK
23181 if test -n "$FLOCK"; then
23182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLOCK" >&5
23183 $as_echo "$FLOCK" >&6; }
23184 else
23185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23186 $as_echo "no" >&6; }
23187 fi
23188 
23189 
23190   test -n "$FLOCK" && break
23191 done
23192 
23193   else
23194     # The variable is set, but is it from the command line or the environment?
23195 
23196     # Try to remove the string !FLOCK! from our list.
23197     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FLOCK!/}
23198     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
23199       # If it failed, the variable was not from the command line. Ignore it,
23200       # but warn the user (except for BASH, which is always set by the calling BASH).
23201       if test "xFLOCK" != xBASH; then
23202         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FLOCK from the environment. Use command line variables instead." >&5
23203 $as_echo "$as_me: WARNING: Ignoring value of FLOCK from the environment. Use command line variables instead." >&2;}
23204       fi
23205       # Try to locate tool using the code snippet
23206       for ac_prog in flock
23207 do
23208   # Extract the first word of "$ac_prog", so it can be a program name with args.
23209 set dummy $ac_prog; ac_word=$2
23210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23211 $as_echo_n "checking for $ac_word... " >&6; }
23212 if ${ac_cv_path_FLOCK+:} false; then :
23213   $as_echo_n "(cached) " >&6
23214 else
23215   case $FLOCK in
23216   [\\/]* | ?:[\\/]*)
23217   ac_cv_path_FLOCK="$FLOCK" # Let the user override the test with a path.
23218   ;;
23219   *)
23220   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23221 for as_dir in $PATH
23222 do
23223   IFS=$as_save_IFS
23224   test -z "$as_dir" && as_dir=.
23225     for ac_exec_ext in '' $ac_executable_extensions; do
23226   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23227     ac_cv_path_FLOCK="$as_dir/$ac_word$ac_exec_ext"
23228     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23229     break 2
23230   fi
23231 done
23232   done
23233 IFS=$as_save_IFS
23234 
23235   ;;
23236 esac
23237 fi
23238 FLOCK=$ac_cv_path_FLOCK
23239 if test -n "$FLOCK"; then
23240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLOCK" >&5
23241 $as_echo "$FLOCK" >&6; }
23242 else
23243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23244 $as_echo "no" >&6; }
23245 fi
23246 
23247 
23248   test -n "$FLOCK" && break
23249 done
23250 
23251     else
23252       # If it succeeded, then it was overridden by the user. We will use it
23253       # for the tool.
23254 
23255       # First remove it from the list of overridden variables, so we can test
23256       # for unknown variables in the end.
23257       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
23258 
23259       # Check if we try to supply an empty value
23260       if test "x$FLOCK" = x; then
23261         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FLOCK= (no value)" >&5
23262 $as_echo "$as_me: Setting user supplied tool FLOCK= (no value)" >&6;}
23263         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FLOCK" >&5
23264 $as_echo_n "checking for FLOCK... " >&6; }
23265         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
23266 $as_echo "disabled" >&6; }
23267       else
23268         # Check if the provided tool contains a complete path.
23269         tool_specified="$FLOCK"
23270         tool_basename="${tool_specified##*/}"
23271         if test "x$tool_basename" = "x$tool_specified"; then
23272           # A command without a complete path is provided, search $PATH.
23273           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FLOCK=$tool_basename" >&5
23274 $as_echo "$as_me: Will search for user supplied tool FLOCK=$tool_basename" >&6;}
23275           # Extract the first word of "$tool_basename", so it can be a program name with args.
23276 set dummy $tool_basename; ac_word=$2
23277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23278 $as_echo_n "checking for $ac_word... " >&6; }
23279 if ${ac_cv_path_FLOCK+:} false; then :
23280   $as_echo_n "(cached) " >&6
23281 else
23282   case $FLOCK in
23283   [\\/]* | ?:[\\/]*)
23284   ac_cv_path_FLOCK="$FLOCK" # Let the user override the test with a path.
23285   ;;
23286   *)
23287   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23288 for as_dir in $PATH
23289 do
23290   IFS=$as_save_IFS
23291   test -z "$as_dir" && as_dir=.
23292     for ac_exec_ext in '' $ac_executable_extensions; do
23293   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23294     ac_cv_path_FLOCK="$as_dir/$ac_word$ac_exec_ext"
23295     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23296     break 2
23297   fi
23298 done
23299   done
23300 IFS=$as_save_IFS
23301 
23302   ;;
23303 esac
23304 fi
23305 FLOCK=$ac_cv_path_FLOCK
23306 if test -n "$FLOCK"; then
23307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLOCK" >&5
23308 $as_echo "$FLOCK" >&6; }
23309 else
23310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23311 $as_echo "no" >&6; }
23312 fi
23313 
23314 
23315           if test "x$FLOCK" = x; then
23316             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
23317           fi
23318         else
23319           # Otherwise we believe it is a complete path. Use it as it is.
23320           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FLOCK=$tool_specified" >&5
23321 $as_echo "$as_me: Will use user supplied tool FLOCK=$tool_specified" >&6;}
23322           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FLOCK" >&5
23323 $as_echo_n "checking for FLOCK... " >&6; }
23324           if test ! -x "$tool_specified"; then
23325             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23326 $as_echo "not found" >&6; }
23327             as_fn_error $? "User supplied tool FLOCK=$tool_specified does not exist or is not executable" "$LINENO" 5
23328           fi
23329           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
23330 $as_echo "$tool_specified" >&6; }
23331         fi
23332       fi
23333     fi
23334 
23335   fi
23336 
23337 
23338   # Dtrace is usually found in /usr/sbin on Solaris, but that directory may not
23339   # be in the user path.
23340 
23341 
23342   # Publish this variable in the help.
23343 
23344 
23345   if [ -z "${DTRACE+x}" ]; then
23346     # The variable is not set by user, try to locate tool using the code snippet
23347     for ac_prog in dtrace
23348 do
23349   # Extract the first word of "$ac_prog", so it can be a program name with args.
23350 set dummy $ac_prog; ac_word=$2
23351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23352 $as_echo_n "checking for $ac_word... " >&6; }
23353 if ${ac_cv_path_DTRACE+:} false; then :
23354   $as_echo_n "(cached) " >&6
23355 else
23356   case $DTRACE in
23357   [\\/]* | ?:[\\/]*)
23358   ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
23359   ;;
23360   *)
23361   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23362 as_dummy="$PATH:/usr/sbin"
23363 for as_dir in $as_dummy
23364 do
23365   IFS=$as_save_IFS
23366   test -z "$as_dir" && as_dir=.
23367     for ac_exec_ext in '' $ac_executable_extensions; do
23368   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23369     ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
23370     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23371     break 2
23372   fi
23373 done
23374   done
23375 IFS=$as_save_IFS
23376 
23377   ;;
23378 esac
23379 fi
23380 DTRACE=$ac_cv_path_DTRACE
23381 if test -n "$DTRACE"; then
23382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
23383 $as_echo "$DTRACE" >&6; }
23384 else
23385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23386 $as_echo "no" >&6; }
23387 fi
23388 
23389 
23390   test -n "$DTRACE" && break
23391 done
23392 
23393   else
23394     # The variable is set, but is it from the command line or the environment?
23395 
23396     # Try to remove the string !DTRACE! from our list.
23397     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DTRACE!/}
23398     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
23399       # If it failed, the variable was not from the command line. Ignore it,
23400       # but warn the user (except for BASH, which is always set by the calling BASH).
23401       if test "xDTRACE" != xBASH; then
23402         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DTRACE from the environment. Use command line variables instead." >&5
23403 $as_echo "$as_me: WARNING: Ignoring value of DTRACE from the environment. Use command line variables instead." >&2;}
23404       fi
23405       # Try to locate tool using the code snippet
23406       for ac_prog in dtrace
23407 do
23408   # Extract the first word of "$ac_prog", so it can be a program name with args.
23409 set dummy $ac_prog; ac_word=$2
23410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23411 $as_echo_n "checking for $ac_word... " >&6; }
23412 if ${ac_cv_path_DTRACE+:} false; then :
23413   $as_echo_n "(cached) " >&6
23414 else
23415   case $DTRACE in
23416   [\\/]* | ?:[\\/]*)
23417   ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
23418   ;;
23419   *)
23420   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23421 as_dummy="$PATH:/usr/sbin"
23422 for as_dir in $as_dummy
23423 do
23424   IFS=$as_save_IFS
23425   test -z "$as_dir" && as_dir=.
23426     for ac_exec_ext in '' $ac_executable_extensions; do
23427   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23428     ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
23429     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23430     break 2
23431   fi
23432 done
23433   done
23434 IFS=$as_save_IFS
23435 
23436   ;;
23437 esac
23438 fi
23439 DTRACE=$ac_cv_path_DTRACE
23440 if test -n "$DTRACE"; then
23441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
23442 $as_echo "$DTRACE" >&6; }
23443 else
23444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23445 $as_echo "no" >&6; }
23446 fi
23447 
23448 
23449   test -n "$DTRACE" && break
23450 done
23451 
23452     else
23453       # If it succeeded, then it was overridden by the user. We will use it
23454       # for the tool.
23455 
23456       # First remove it from the list of overridden variables, so we can test
23457       # for unknown variables in the end.
23458       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
23459 
23460       # Check if we try to supply an empty value
23461       if test "x$DTRACE" = x; then
23462         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DTRACE= (no value)" >&5
23463 $as_echo "$as_me: Setting user supplied tool DTRACE= (no value)" >&6;}
23464         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DTRACE" >&5
23465 $as_echo_n "checking for DTRACE... " >&6; }
23466         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
23467 $as_echo "disabled" >&6; }
23468       else
23469         # Check if the provided tool contains a complete path.
23470         tool_specified="$DTRACE"
23471         tool_basename="${tool_specified##*/}"
23472         if test "x$tool_basename" = "x$tool_specified"; then
23473           # A command without a complete path is provided, search $PATH.
23474           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DTRACE=$tool_basename" >&5
23475 $as_echo "$as_me: Will search for user supplied tool DTRACE=$tool_basename" >&6;}
23476           # Extract the first word of "$tool_basename", so it can be a program name with args.
23477 set dummy $tool_basename; ac_word=$2
23478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23479 $as_echo_n "checking for $ac_word... " >&6; }
23480 if ${ac_cv_path_DTRACE+:} false; then :
23481   $as_echo_n "(cached) " >&6
23482 else
23483   case $DTRACE in
23484   [\\/]* | ?:[\\/]*)
23485   ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
23486   ;;
23487   *)
23488   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23489 for as_dir in $PATH
23490 do
23491   IFS=$as_save_IFS
23492   test -z "$as_dir" && as_dir=.
23493     for ac_exec_ext in '' $ac_executable_extensions; do
23494   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23495     ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
23496     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23497     break 2
23498   fi
23499 done
23500   done
23501 IFS=$as_save_IFS
23502 
23503   ;;
23504 esac
23505 fi
23506 DTRACE=$ac_cv_path_DTRACE
23507 if test -n "$DTRACE"; then
23508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
23509 $as_echo "$DTRACE" >&6; }
23510 else
23511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23512 $as_echo "no" >&6; }
23513 fi
23514 
23515 
23516           if test "x$DTRACE" = x; then
23517             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
23518           fi
23519         else
23520           # Otherwise we believe it is a complete path. Use it as it is.
23521           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DTRACE=$tool_specified" >&5
23522 $as_echo "$as_me: Will use user supplied tool DTRACE=$tool_specified" >&6;}
23523           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DTRACE" >&5
23524 $as_echo_n "checking for DTRACE... " >&6; }
23525           if test ! -x "$tool_specified"; then
23526             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23527 $as_echo "not found" >&6; }
23528             as_fn_error $? "User supplied tool DTRACE=$tool_specified does not exist or is not executable" "$LINENO" 5
23529           fi
23530           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
23531 $as_echo "$tool_specified" >&6; }
23532         fi
23533       fi
23534     fi
23535 
23536   fi
23537 
23538 
23539 
23540 
23541   # Publish this variable in the help.
23542 
23543 
23544   if [ -z "${PATCH+x}" ]; then
23545     # The variable is not set by user, try to locate tool using the code snippet
23546     for ac_prog in gpatch patch
23547 do
23548   # Extract the first word of "$ac_prog", so it can be a program name with args.
23549 set dummy $ac_prog; ac_word=$2
23550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23551 $as_echo_n "checking for $ac_word... " >&6; }
23552 if ${ac_cv_path_PATCH+:} false; then :
23553   $as_echo_n "(cached) " >&6
23554 else
23555   case $PATCH in
23556   [\\/]* | ?:[\\/]*)
23557   ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
23558   ;;
23559   *)
23560   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23561 for as_dir in $PATH
23562 do
23563   IFS=$as_save_IFS
23564   test -z "$as_dir" && as_dir=.
23565     for ac_exec_ext in '' $ac_executable_extensions; do
23566   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23567     ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
23568     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23569     break 2
23570   fi
23571 done
23572   done
23573 IFS=$as_save_IFS
23574 
23575   ;;
23576 esac
23577 fi
23578 PATCH=$ac_cv_path_PATCH
23579 if test -n "$PATCH"; then
23580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
23581 $as_echo "$PATCH" >&6; }
23582 else
23583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23584 $as_echo "no" >&6; }
23585 fi
23586 
23587 
23588   test -n "$PATCH" && break
23589 done
23590 
23591   else
23592     # The variable is set, but is it from the command line or the environment?
23593 
23594     # Try to remove the string !PATCH! from our list.
23595     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PATCH!/}
23596     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
23597       # If it failed, the variable was not from the command line. Ignore it,
23598       # but warn the user (except for BASH, which is always set by the calling BASH).
23599       if test "xPATCH" != xBASH; then
23600         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PATCH from the environment. Use command line variables instead." >&5
23601 $as_echo "$as_me: WARNING: Ignoring value of PATCH from the environment. Use command line variables instead." >&2;}
23602       fi
23603       # Try to locate tool using the code snippet
23604       for ac_prog in gpatch patch
23605 do
23606   # Extract the first word of "$ac_prog", so it can be a program name with args.
23607 set dummy $ac_prog; ac_word=$2
23608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23609 $as_echo_n "checking for $ac_word... " >&6; }
23610 if ${ac_cv_path_PATCH+:} false; then :
23611   $as_echo_n "(cached) " >&6
23612 else
23613   case $PATCH in
23614   [\\/]* | ?:[\\/]*)
23615   ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
23616   ;;
23617   *)
23618   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23619 for as_dir in $PATH
23620 do
23621   IFS=$as_save_IFS
23622   test -z "$as_dir" && as_dir=.
23623     for ac_exec_ext in '' $ac_executable_extensions; do
23624   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23625     ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
23626     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23627     break 2
23628   fi
23629 done
23630   done
23631 IFS=$as_save_IFS
23632 
23633   ;;
23634 esac
23635 fi
23636 PATCH=$ac_cv_path_PATCH
23637 if test -n "$PATCH"; then
23638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
23639 $as_echo "$PATCH" >&6; }
23640 else
23641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23642 $as_echo "no" >&6; }
23643 fi
23644 
23645 
23646   test -n "$PATCH" && break
23647 done
23648 
23649     else
23650       # If it succeeded, then it was overridden by the user. We will use it
23651       # for the tool.
23652 
23653       # First remove it from the list of overridden variables, so we can test
23654       # for unknown variables in the end.
23655       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
23656 
23657       # Check if we try to supply an empty value
23658       if test "x$PATCH" = x; then
23659         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PATCH= (no value)" >&5
23660 $as_echo "$as_me: Setting user supplied tool PATCH= (no value)" >&6;}
23661         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATCH" >&5
23662 $as_echo_n "checking for PATCH... " >&6; }
23663         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
23664 $as_echo "disabled" >&6; }
23665       else
23666         # Check if the provided tool contains a complete path.
23667         tool_specified="$PATCH"
23668         tool_basename="${tool_specified##*/}"
23669         if test "x$tool_basename" = "x$tool_specified"; then
23670           # A command without a complete path is provided, search $PATH.
23671           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PATCH=$tool_basename" >&5
23672 $as_echo "$as_me: Will search for user supplied tool PATCH=$tool_basename" >&6;}
23673           # Extract the first word of "$tool_basename", so it can be a program name with args.
23674 set dummy $tool_basename; ac_word=$2
23675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23676 $as_echo_n "checking for $ac_word... " >&6; }
23677 if ${ac_cv_path_PATCH+:} false; then :
23678   $as_echo_n "(cached) " >&6
23679 else
23680   case $PATCH in
23681   [\\/]* | ?:[\\/]*)
23682   ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
23683   ;;
23684   *)
23685   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23686 for as_dir in $PATH
23687 do
23688   IFS=$as_save_IFS
23689   test -z "$as_dir" && as_dir=.
23690     for ac_exec_ext in '' $ac_executable_extensions; do
23691   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23692     ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
23693     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23694     break 2
23695   fi
23696 done
23697   done
23698 IFS=$as_save_IFS
23699 
23700   ;;
23701 esac
23702 fi
23703 PATCH=$ac_cv_path_PATCH
23704 if test -n "$PATCH"; then
23705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
23706 $as_echo "$PATCH" >&6; }
23707 else
23708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23709 $as_echo "no" >&6; }
23710 fi
23711 
23712 
23713           if test "x$PATCH" = x; then
23714             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
23715           fi
23716         else
23717           # Otherwise we believe it is a complete path. Use it as it is.
23718           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PATCH=$tool_specified" >&5
23719 $as_echo "$as_me: Will use user supplied tool PATCH=$tool_specified" >&6;}
23720           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATCH" >&5
23721 $as_echo_n "checking for PATCH... " >&6; }
23722           if test ! -x "$tool_specified"; then
23723             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23724 $as_echo "not found" >&6; }
23725             as_fn_error $? "User supplied tool PATCH=$tool_specified does not exist or is not executable" "$LINENO" 5
23726           fi
23727           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
23728 $as_echo "$tool_specified" >&6; }
23729         fi
23730       fi
23731     fi
23732 
23733   fi
23734 
23735 
23736   # Check if it's GNU time
23737   IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'`
23738   if test "x$IS_GNU_TIME" != x; then
23739     IS_GNU_TIME=yes
23740   else
23741     IS_GNU_TIME=no
23742   fi
23743 
23744 
23745   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
23746 
23747 
23748 
23749   # Publish this variable in the help.
23750 
23751 
23752   if [ -z "${DSYMUTIL+x}" ]; then
23753     # The variable is not set by user, try to locate tool using the code snippet
23754     for ac_prog in dsymutil
23755 do
23756   # Extract the first word of "$ac_prog", so it can be a program name with args.
23757 set dummy $ac_prog; ac_word=$2
23758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23759 $as_echo_n "checking for $ac_word... " >&6; }
23760 if ${ac_cv_path_DSYMUTIL+:} false; then :
23761   $as_echo_n "(cached) " >&6
23762 else
23763   case $DSYMUTIL in
23764   [\\/]* | ?:[\\/]*)
23765   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
23766   ;;
23767   *)
23768   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23769 for as_dir in $PATH
23770 do
23771   IFS=$as_save_IFS
23772   test -z "$as_dir" && as_dir=.
23773     for ac_exec_ext in '' $ac_executable_extensions; do
23774   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23775     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
23776     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23777     break 2
23778   fi
23779 done
23780   done
23781 IFS=$as_save_IFS
23782 
23783   ;;
23784 esac
23785 fi
23786 DSYMUTIL=$ac_cv_path_DSYMUTIL
23787 if test -n "$DSYMUTIL"; then
23788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
23789 $as_echo "$DSYMUTIL" >&6; }
23790 else
23791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23792 $as_echo "no" >&6; }
23793 fi
23794 
23795 
23796   test -n "$DSYMUTIL" && break
23797 done
23798 
23799   else
23800     # The variable is set, but is it from the command line or the environment?
23801 
23802     # Try to remove the string !DSYMUTIL! from our list.
23803     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/}
23804     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
23805       # If it failed, the variable was not from the command line. Ignore it,
23806       # but warn the user (except for BASH, which is always set by the calling BASH).
23807       if test "xDSYMUTIL" != xBASH; then
23808         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5
23809 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;}
23810       fi
23811       # Try to locate tool using the code snippet
23812       for ac_prog in dsymutil
23813 do
23814   # Extract the first word of "$ac_prog", so it can be a program name with args.
23815 set dummy $ac_prog; ac_word=$2
23816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23817 $as_echo_n "checking for $ac_word... " >&6; }
23818 if ${ac_cv_path_DSYMUTIL+:} false; then :
23819   $as_echo_n "(cached) " >&6
23820 else
23821   case $DSYMUTIL in
23822   [\\/]* | ?:[\\/]*)
23823   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
23824   ;;
23825   *)
23826   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23827 for as_dir in $PATH
23828 do
23829   IFS=$as_save_IFS
23830   test -z "$as_dir" && as_dir=.
23831     for ac_exec_ext in '' $ac_executable_extensions; do
23832   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23833     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
23834     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23835     break 2
23836   fi
23837 done
23838   done
23839 IFS=$as_save_IFS
23840 
23841   ;;
23842 esac
23843 fi
23844 DSYMUTIL=$ac_cv_path_DSYMUTIL
23845 if test -n "$DSYMUTIL"; then
23846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
23847 $as_echo "$DSYMUTIL" >&6; }
23848 else
23849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23850 $as_echo "no" >&6; }
23851 fi
23852 
23853 
23854   test -n "$DSYMUTIL" && break
23855 done
23856 
23857     else
23858       # If it succeeded, then it was overridden by the user. We will use it
23859       # for the tool.
23860 
23861       # First remove it from the list of overridden variables, so we can test
23862       # for unknown variables in the end.
23863       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
23864 
23865       # Check if we try to supply an empty value
23866       if test "x$DSYMUTIL" = x; then
23867         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DSYMUTIL= (no value)" >&5
23868 $as_echo "$as_me: Setting user supplied tool DSYMUTIL= (no value)" >&6;}
23869         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5
23870 $as_echo_n "checking for DSYMUTIL... " >&6; }
23871         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
23872 $as_echo "disabled" >&6; }
23873       else
23874         # Check if the provided tool contains a complete path.
23875         tool_specified="$DSYMUTIL"
23876         tool_basename="${tool_specified##*/}"
23877         if test "x$tool_basename" = "x$tool_specified"; then
23878           # A command without a complete path is provided, search $PATH.
23879           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5
23880 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;}
23881           # Extract the first word of "$tool_basename", so it can be a program name with args.
23882 set dummy $tool_basename; ac_word=$2
23883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23884 $as_echo_n "checking for $ac_word... " >&6; }
23885 if ${ac_cv_path_DSYMUTIL+:} false; then :
23886   $as_echo_n "(cached) " >&6
23887 else
23888   case $DSYMUTIL in
23889   [\\/]* | ?:[\\/]*)
23890   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
23891   ;;
23892   *)
23893   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23894 for as_dir in $PATH
23895 do
23896   IFS=$as_save_IFS
23897   test -z "$as_dir" && as_dir=.
23898     for ac_exec_ext in '' $ac_executable_extensions; do
23899   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23900     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
23901     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23902     break 2
23903   fi
23904 done
23905   done
23906 IFS=$as_save_IFS
23907 
23908   ;;
23909 esac
23910 fi
23911 DSYMUTIL=$ac_cv_path_DSYMUTIL
23912 if test -n "$DSYMUTIL"; then
23913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
23914 $as_echo "$DSYMUTIL" >&6; }
23915 else
23916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23917 $as_echo "no" >&6; }
23918 fi
23919 
23920 
23921           if test "x$DSYMUTIL" = x; then
23922             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
23923           fi
23924         else
23925           # Otherwise we believe it is a complete path. Use it as it is.
23926           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5
23927 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;}
23928           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5
23929 $as_echo_n "checking for DSYMUTIL... " >&6; }
23930           if test ! -x "$tool_specified"; then
23931             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23932 $as_echo "not found" >&6; }
23933             as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5
23934           fi
23935           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
23936 $as_echo "$tool_specified" >&6; }
23937         fi
23938       fi
23939     fi
23940 
23941   fi
23942 
23943 
23944 
23945   if test "x$DSYMUTIL" = x; then
23946     as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5
23947   fi
23948 
23949 
23950 
23951 
23952 
23953   # Publish this variable in the help.
23954 
23955 
23956   if [ -z "${XATTR+x}" ]; then
23957     # The variable is not set by user, try to locate tool using the code snippet
23958     for ac_prog in xattr
23959 do
23960   # Extract the first word of "$ac_prog", so it can be a program name with args.
23961 set dummy $ac_prog; ac_word=$2
23962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23963 $as_echo_n "checking for $ac_word... " >&6; }
23964 if ${ac_cv_path_XATTR+:} false; then :
23965   $as_echo_n "(cached) " >&6
23966 else
23967   case $XATTR in
23968   [\\/]* | ?:[\\/]*)
23969   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
23970   ;;
23971   *)
23972   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23973 for as_dir in $PATH
23974 do
23975   IFS=$as_save_IFS
23976   test -z "$as_dir" && as_dir=.
23977     for ac_exec_ext in '' $ac_executable_extensions; do
23978   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23979     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
23980     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23981     break 2
23982   fi
23983 done
23984   done
23985 IFS=$as_save_IFS
23986 
23987   ;;
23988 esac
23989 fi
23990 XATTR=$ac_cv_path_XATTR
23991 if test -n "$XATTR"; then
23992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
23993 $as_echo "$XATTR" >&6; }
23994 else
23995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23996 $as_echo "no" >&6; }
23997 fi
23998 
23999 
24000   test -n "$XATTR" && break
24001 done
24002 
24003   else
24004     # The variable is set, but is it from the command line or the environment?
24005 
24006     # Try to remove the string !XATTR! from our list.
24007     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/}
24008     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
24009       # If it failed, the variable was not from the command line. Ignore it,
24010       # but warn the user (except for BASH, which is always set by the calling BASH).
24011       if test "xXATTR" != xBASH; then
24012         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5
24013 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;}
24014       fi
24015       # Try to locate tool using the code snippet
24016       for ac_prog in xattr
24017 do
24018   # Extract the first word of "$ac_prog", so it can be a program name with args.
24019 set dummy $ac_prog; ac_word=$2
24020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24021 $as_echo_n "checking for $ac_word... " >&6; }
24022 if ${ac_cv_path_XATTR+:} false; then :
24023   $as_echo_n "(cached) " >&6
24024 else
24025   case $XATTR in
24026   [\\/]* | ?:[\\/]*)
24027   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
24028   ;;
24029   *)
24030   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24031 for as_dir in $PATH
24032 do
24033   IFS=$as_save_IFS
24034   test -z "$as_dir" && as_dir=.
24035     for ac_exec_ext in '' $ac_executable_extensions; do
24036   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24037     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
24038     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24039     break 2
24040   fi
24041 done
24042   done
24043 IFS=$as_save_IFS
24044 
24045   ;;
24046 esac
24047 fi
24048 XATTR=$ac_cv_path_XATTR
24049 if test -n "$XATTR"; then
24050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
24051 $as_echo "$XATTR" >&6; }
24052 else
24053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24054 $as_echo "no" >&6; }
24055 fi
24056 
24057 
24058   test -n "$XATTR" && break
24059 done
24060 
24061     else
24062       # If it succeeded, then it was overridden by the user. We will use it
24063       # for the tool.
24064 
24065       # First remove it from the list of overridden variables, so we can test
24066       # for unknown variables in the end.
24067       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
24068 
24069       # Check if we try to supply an empty value
24070       if test "x$XATTR" = x; then
24071         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool XATTR= (no value)" >&5
24072 $as_echo "$as_me: Setting user supplied tool XATTR= (no value)" >&6;}
24073         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5
24074 $as_echo_n "checking for XATTR... " >&6; }
24075         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
24076 $as_echo "disabled" >&6; }
24077       else
24078         # Check if the provided tool contains a complete path.
24079         tool_specified="$XATTR"
24080         tool_basename="${tool_specified##*/}"
24081         if test "x$tool_basename" = "x$tool_specified"; then
24082           # A command without a complete path is provided, search $PATH.
24083           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5
24084 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;}
24085           # Extract the first word of "$tool_basename", so it can be a program name with args.
24086 set dummy $tool_basename; 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_XATTR+:} false; then :
24090   $as_echo_n "(cached) " >&6
24091 else
24092   case $XATTR in
24093   [\\/]* | ?:[\\/]*)
24094   ac_cv_path_XATTR="$XATTR" # 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_XATTR="$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 XATTR=$ac_cv_path_XATTR
24116 if test -n "$XATTR"; then
24117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
24118 $as_echo "$XATTR" >&6; }
24119 else
24120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24121 $as_echo "no" >&6; }
24122 fi
24123 
24124 
24125           if test "x$XATTR" = x; then
24126             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
24127           fi
24128         else
24129           # Otherwise we believe it is a complete path. Use it as it is.
24130           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5
24131 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;}
24132           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5
24133 $as_echo_n "checking for XATTR... " >&6; }
24134           if test ! -x "$tool_specified"; then
24135             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24136 $as_echo "not found" >&6; }
24137             as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5
24138           fi
24139           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
24140 $as_echo "$tool_specified" >&6; }
24141         fi
24142       fi
24143     fi
24144 
24145   fi
24146 
24147 
24148 
24149   if test "x$XATTR" = x; then
24150     as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5
24151   fi
24152 
24153 
24154 
24155 
24156   # Publish this variable in the help.
24157 
24158 
24159   if [ -z "${CODESIGN+x}" ]; then
24160     # The variable is not set by user, try to locate tool using the code snippet
24161     for ac_prog in codesign
24162 do
24163   # Extract the first word of "$ac_prog", so it can be a program name with args.
24164 set dummy $ac_prog; ac_word=$2
24165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24166 $as_echo_n "checking for $ac_word... " >&6; }
24167 if ${ac_cv_path_CODESIGN+:} false; then :
24168   $as_echo_n "(cached) " >&6
24169 else
24170   case $CODESIGN in
24171   [\\/]* | ?:[\\/]*)
24172   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
24173   ;;
24174   *)
24175   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24176 for as_dir in $PATH
24177 do
24178   IFS=$as_save_IFS
24179   test -z "$as_dir" && as_dir=.
24180     for ac_exec_ext in '' $ac_executable_extensions; do
24181   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24182     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
24183     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24184     break 2
24185   fi
24186 done
24187   done
24188 IFS=$as_save_IFS
24189 
24190   ;;
24191 esac
24192 fi
24193 CODESIGN=$ac_cv_path_CODESIGN
24194 if test -n "$CODESIGN"; then
24195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
24196 $as_echo "$CODESIGN" >&6; }
24197 else
24198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24199 $as_echo "no" >&6; }
24200 fi
24201 
24202 
24203   test -n "$CODESIGN" && break
24204 done
24205 
24206   else
24207     # The variable is set, but is it from the command line or the environment?
24208 
24209     # Try to remove the string !CODESIGN! from our list.
24210     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/}
24211     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
24212       # If it failed, the variable was not from the command line. Ignore it,
24213       # but warn the user (except for BASH, which is always set by the calling BASH).
24214       if test "xCODESIGN" != xBASH; then
24215         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5
24216 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;}
24217       fi
24218       # Try to locate tool using the code snippet
24219       for ac_prog in codesign
24220 do
24221   # Extract the first word of "$ac_prog", so it can be a program name with args.
24222 set dummy $ac_prog; ac_word=$2
24223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24224 $as_echo_n "checking for $ac_word... " >&6; }
24225 if ${ac_cv_path_CODESIGN+:} false; then :
24226   $as_echo_n "(cached) " >&6
24227 else
24228   case $CODESIGN in
24229   [\\/]* | ?:[\\/]*)
24230   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
24231   ;;
24232   *)
24233   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24234 for as_dir in $PATH
24235 do
24236   IFS=$as_save_IFS
24237   test -z "$as_dir" && as_dir=.
24238     for ac_exec_ext in '' $ac_executable_extensions; do
24239   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24240     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
24241     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24242     break 2
24243   fi
24244 done
24245   done
24246 IFS=$as_save_IFS
24247 
24248   ;;
24249 esac
24250 fi
24251 CODESIGN=$ac_cv_path_CODESIGN
24252 if test -n "$CODESIGN"; then
24253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
24254 $as_echo "$CODESIGN" >&6; }
24255 else
24256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24257 $as_echo "no" >&6; }
24258 fi
24259 
24260 
24261   test -n "$CODESIGN" && break
24262 done
24263 
24264     else
24265       # If it succeeded, then it was overridden by the user. We will use it
24266       # for the tool.
24267 
24268       # First remove it from the list of overridden variables, so we can test
24269       # for unknown variables in the end.
24270       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
24271 
24272       # Check if we try to supply an empty value
24273       if test "x$CODESIGN" = x; then
24274         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CODESIGN= (no value)" >&5
24275 $as_echo "$as_me: Setting user supplied tool CODESIGN= (no value)" >&6;}
24276         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5
24277 $as_echo_n "checking for CODESIGN... " >&6; }
24278         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
24279 $as_echo "disabled" >&6; }
24280       else
24281         # Check if the provided tool contains a complete path.
24282         tool_specified="$CODESIGN"
24283         tool_basename="${tool_specified##*/}"
24284         if test "x$tool_basename" = "x$tool_specified"; then
24285           # A command without a complete path is provided, search $PATH.
24286           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5
24287 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;}
24288           # Extract the first word of "$tool_basename", so it can be a program name with args.
24289 set dummy $tool_basename; ac_word=$2
24290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24291 $as_echo_n "checking for $ac_word... " >&6; }
24292 if ${ac_cv_path_CODESIGN+:} false; then :
24293   $as_echo_n "(cached) " >&6
24294 else
24295   case $CODESIGN in
24296   [\\/]* | ?:[\\/]*)
24297   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
24298   ;;
24299   *)
24300   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24301 for as_dir in $PATH
24302 do
24303   IFS=$as_save_IFS
24304   test -z "$as_dir" && as_dir=.
24305     for ac_exec_ext in '' $ac_executable_extensions; do
24306   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24307     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
24308     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24309     break 2
24310   fi
24311 done
24312   done
24313 IFS=$as_save_IFS
24314 
24315   ;;
24316 esac
24317 fi
24318 CODESIGN=$ac_cv_path_CODESIGN
24319 if test -n "$CODESIGN"; then
24320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
24321 $as_echo "$CODESIGN" >&6; }
24322 else
24323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24324 $as_echo "no" >&6; }
24325 fi
24326 
24327 
24328           if test "x$CODESIGN" = x; then
24329             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
24330           fi
24331         else
24332           # Otherwise we believe it is a complete path. Use it as it is.
24333           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5
24334 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;}
24335           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5
24336 $as_echo_n "checking for CODESIGN... " >&6; }
24337           if test ! -x "$tool_specified"; then
24338             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24339 $as_echo "not found" >&6; }
24340             as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5
24341           fi
24342           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
24343 $as_echo "$tool_specified" >&6; }
24344         fi
24345       fi
24346     fi
24347 
24348   fi
24349 
24350 
24351     if test "x$CODESIGN" != "x"; then
24352       # Verify that the openjdk_codesign certificate is present
24353       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5
24354 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; }
24355       $RM codesign-testfile
24356       $TOUCH codesign-testfile
24357       $CODESIGN -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN=
24358       $RM codesign-testfile
24359       if test "x$CODESIGN" = x; then
24360         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24361 $as_echo "no" >&6; }
24362       else
24363         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24364 $as_echo "yes" >&6; }
24365       fi
24366     fi
24367 
24368 
24369 
24370   # Publish this variable in the help.
24371 
24372 
24373   if [ -z "${SETFILE+x}" ]; then
24374     # The variable is not set by user, try to locate tool using the code snippet
24375     for ac_prog in SetFile
24376 do
24377   # Extract the first word of "$ac_prog", so it can be a program name with args.
24378 set dummy $ac_prog; ac_word=$2
24379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24380 $as_echo_n "checking for $ac_word... " >&6; }
24381 if ${ac_cv_path_SETFILE+:} false; then :
24382   $as_echo_n "(cached) " >&6
24383 else
24384   case $SETFILE in
24385   [\\/]* | ?:[\\/]*)
24386   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
24387   ;;
24388   *)
24389   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24390 for as_dir in $PATH
24391 do
24392   IFS=$as_save_IFS
24393   test -z "$as_dir" && as_dir=.
24394     for ac_exec_ext in '' $ac_executable_extensions; do
24395   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24396     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
24397     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24398     break 2
24399   fi
24400 done
24401   done
24402 IFS=$as_save_IFS
24403 
24404   ;;
24405 esac
24406 fi
24407 SETFILE=$ac_cv_path_SETFILE
24408 if test -n "$SETFILE"; then
24409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
24410 $as_echo "$SETFILE" >&6; }
24411 else
24412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24413 $as_echo "no" >&6; }
24414 fi
24415 
24416 
24417   test -n "$SETFILE" && break
24418 done
24419 
24420   else
24421     # The variable is set, but is it from the command line or the environment?
24422 
24423     # Try to remove the string !SETFILE! from our list.
24424     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/}
24425     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
24426       # If it failed, the variable was not from the command line. Ignore it,
24427       # but warn the user (except for BASH, which is always set by the calling BASH).
24428       if test "xSETFILE" != xBASH; then
24429         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5
24430 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;}
24431       fi
24432       # Try to locate tool using the code snippet
24433       for ac_prog in SetFile
24434 do
24435   # Extract the first word of "$ac_prog", so it can be a program name with args.
24436 set dummy $ac_prog; ac_word=$2
24437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24438 $as_echo_n "checking for $ac_word... " >&6; }
24439 if ${ac_cv_path_SETFILE+:} false; then :
24440   $as_echo_n "(cached) " >&6
24441 else
24442   case $SETFILE in
24443   [\\/]* | ?:[\\/]*)
24444   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
24445   ;;
24446   *)
24447   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24448 for as_dir in $PATH
24449 do
24450   IFS=$as_save_IFS
24451   test -z "$as_dir" && as_dir=.
24452     for ac_exec_ext in '' $ac_executable_extensions; do
24453   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24454     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
24455     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24456     break 2
24457   fi
24458 done
24459   done
24460 IFS=$as_save_IFS
24461 
24462   ;;
24463 esac
24464 fi
24465 SETFILE=$ac_cv_path_SETFILE
24466 if test -n "$SETFILE"; then
24467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
24468 $as_echo "$SETFILE" >&6; }
24469 else
24470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24471 $as_echo "no" >&6; }
24472 fi
24473 
24474 
24475   test -n "$SETFILE" && break
24476 done
24477 
24478     else
24479       # If it succeeded, then it was overridden by the user. We will use it
24480       # for the tool.
24481 
24482       # First remove it from the list of overridden variables, so we can test
24483       # for unknown variables in the end.
24484       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
24485 
24486       # Check if we try to supply an empty value
24487       if test "x$SETFILE" = x; then
24488         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SETFILE= (no value)" >&5
24489 $as_echo "$as_me: Setting user supplied tool SETFILE= (no value)" >&6;}
24490         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5
24491 $as_echo_n "checking for SETFILE... " >&6; }
24492         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
24493 $as_echo "disabled" >&6; }
24494       else
24495         # Check if the provided tool contains a complete path.
24496         tool_specified="$SETFILE"
24497         tool_basename="${tool_specified##*/}"
24498         if test "x$tool_basename" = "x$tool_specified"; then
24499           # A command without a complete path is provided, search $PATH.
24500           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5
24501 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;}
24502           # Extract the first word of "$tool_basename", so it can be a program name with args.
24503 set dummy $tool_basename; ac_word=$2
24504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24505 $as_echo_n "checking for $ac_word... " >&6; }
24506 if ${ac_cv_path_SETFILE+:} false; then :
24507   $as_echo_n "(cached) " >&6
24508 else
24509   case $SETFILE in
24510   [\\/]* | ?:[\\/]*)
24511   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
24512   ;;
24513   *)
24514   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24515 for as_dir in $PATH
24516 do
24517   IFS=$as_save_IFS
24518   test -z "$as_dir" && as_dir=.
24519     for ac_exec_ext in '' $ac_executable_extensions; do
24520   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24521     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
24522     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24523     break 2
24524   fi
24525 done
24526   done
24527 IFS=$as_save_IFS
24528 
24529   ;;
24530 esac
24531 fi
24532 SETFILE=$ac_cv_path_SETFILE
24533 if test -n "$SETFILE"; then
24534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
24535 $as_echo "$SETFILE" >&6; }
24536 else
24537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24538 $as_echo "no" >&6; }
24539 fi
24540 
24541 
24542           if test "x$SETFILE" = x; then
24543             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
24544           fi
24545         else
24546           # Otherwise we believe it is a complete path. Use it as it is.
24547           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5
24548 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;}
24549           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5
24550 $as_echo_n "checking for SETFILE... " >&6; }
24551           if test ! -x "$tool_specified"; then
24552             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24553 $as_echo "not found" >&6; }
24554             as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5
24555           fi
24556           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
24557 $as_echo "$tool_specified" >&6; }
24558         fi
24559       fi
24560     fi
24561 
24562   fi
24563 
24564 
24565 
24566   if test "x$SETFILE" = x; then
24567     as_fn_error $? "Could not find required tool for SETFILE" "$LINENO" 5
24568   fi
24569 
24570 
24571   fi
24572 
24573 
24574   # Check bash version
24575   # Extra [ ] to stop m4 mangling
24576    BASH_VER=`$BASH --version | $SED -n  -e 's/^.*bash.*ersion *\([0-9.]*\).*$/\1/ p'`
24577   { $as_echo "$as_me:${as_lineno-$LINENO}: checking bash version" >&5
24578 $as_echo_n "checking bash version... " >&6; }
24579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH_VER" >&5
24580 $as_echo "$BASH_VER" >&6; }
24581 
24582   BASH_MAJOR=`$ECHO $BASH_VER | $CUT -d . -f 1`
24583   BASH_MINOR=`$ECHO $BASH_VER | $CUT -d . -f 2`
24584   if test $BASH_MAJOR -lt 3 || (test $BASH_MAJOR -eq 3 && test $BASH_MINOR -lt 2); then
24585     as_fn_error $? "bash version 3.2 or better is required" "$LINENO" 5
24586   fi
24587 
24588   # Test if bash supports pipefail.
24589   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports pipefail" >&5
24590 $as_echo_n "checking if bash supports pipefail... " >&6; }
24591   if ${BASH} -c 'set -o pipefail'; then
24592     BASH_ARGS="$BASH_ARGS -o pipefail"
24593     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24594 $as_echo "yes" >&6; }
24595   else
24596     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24597 $as_echo "no" >&6; }
24598   fi
24599 
24600   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports errexit (-e)" >&5
24601 $as_echo_n "checking if bash supports errexit (-e)... " >&6; }
24602   if ${BASH} -e -c 'true'; then
24603     BASH_ARGS="$BASH_ARGS -e"
24604     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24605 $as_echo "yes" >&6; }
24606   else
24607     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24608 $as_echo "no" >&6; }
24609   fi
24610 
24611 
24612 
24613 
24614 # Check if pkg-config is available.
24615 
24616 
24617 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
24618         if test -n "$ac_tool_prefix"; then
24619   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24620 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24622 $as_echo_n "checking for $ac_word... " >&6; }
24623 if ${ac_cv_path_PKG_CONFIG+:} false; then :
24624   $as_echo_n "(cached) " >&6
24625 else
24626   case $PKG_CONFIG in
24627   [\\/]* | ?:[\\/]*)
24628   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24629   ;;
24630   *)
24631   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24632 for as_dir in $PATH
24633 do
24634   IFS=$as_save_IFS
24635   test -z "$as_dir" && as_dir=.
24636     for ac_exec_ext in '' $ac_executable_extensions; do
24637   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24638     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24639     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24640     break 2
24641   fi
24642 done
24643   done
24644 IFS=$as_save_IFS
24645 
24646   ;;
24647 esac
24648 fi
24649 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24650 if test -n "$PKG_CONFIG"; then
24651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
24652 $as_echo "$PKG_CONFIG" >&6; }
24653 else
24654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24655 $as_echo "no" >&6; }
24656 fi
24657 
24658 
24659 fi
24660 if test -z "$ac_cv_path_PKG_CONFIG"; then
24661   ac_pt_PKG_CONFIG=$PKG_CONFIG
24662   # Extract the first word of "pkg-config", so it can be a program name with args.
24663 set dummy pkg-config; ac_word=$2
24664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24665 $as_echo_n "checking for $ac_word... " >&6; }
24666 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
24667   $as_echo_n "(cached) " >&6
24668 else
24669   case $ac_pt_PKG_CONFIG in
24670   [\\/]* | ?:[\\/]*)
24671   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
24672   ;;
24673   *)
24674   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24675 for as_dir in $PATH
24676 do
24677   IFS=$as_save_IFS
24678   test -z "$as_dir" && as_dir=.
24679     for ac_exec_ext in '' $ac_executable_extensions; do
24680   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24681     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24682     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24683     break 2
24684   fi
24685 done
24686   done
24687 IFS=$as_save_IFS
24688 
24689   ;;
24690 esac
24691 fi
24692 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
24693 if test -n "$ac_pt_PKG_CONFIG"; then
24694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
24695 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
24696 else
24697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24698 $as_echo "no" >&6; }
24699 fi
24700 
24701   if test "x$ac_pt_PKG_CONFIG" = x; then
24702     PKG_CONFIG=""
24703   else
24704     case $cross_compiling:$ac_tool_warned in
24705 yes:)
24706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24707 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24708 ac_tool_warned=yes ;;
24709 esac
24710     PKG_CONFIG=$ac_pt_PKG_CONFIG
24711   fi
24712 else
24713   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
24714 fi
24715 
24716 fi
24717 if test -n "$PKG_CONFIG"; then
24718         _pkg_min_version=0.9.0
24719         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
24720 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
24721         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
24722                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24723 $as_echo "yes" >&6; }
24724         else
24725                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24726 $as_echo "no" >&6; }
24727                 PKG_CONFIG=""
24728         fi
24729 
24730 fi
24731 
24732 # After basic tools have been setup, we can check build os specific details.
24733 
24734   ###############################################################################
24735 
24736   # Note that this is the build platform OS version!
24737 
24738   OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`"
24739   OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`"
24740   OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`"
24741   OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`"
24742 
24743 
24744 
24745 
24746 
24747 # Misc basic settings
24748 
24749 
24750 # Check whether --with-default-make-target was given.
24751 if test "${with_default_make_target+set}" = set; then :
24752   withval=$with_default_make_target;
24753 fi
24754 
24755   if test "x$with_default_make_target" = "x" \
24756       || test "x$with_default_make_target" = "xyes"; then
24757     DEFAULT_MAKE_TARGET="exploded-image"
24758   elif test "x$with_default_make_target" = "xno"; then
24759     as_fn_error $? "--without-default-make-target is not a valid option" "$LINENO" 5
24760   else
24761     DEFAULT_MAKE_TARGET="$with_default_make_target"
24762   fi
24763 
24764 
24765 
24766 
24767 ###############################################################################
24768 #
24769 # Determine OpenJDK variants, options and version numbers.
24770 #
24771 ###############################################################################
24772 
24773 # We need build & target for this.
24774 
24775   # Should we build a JDK without a graphical UI?
24776   { $as_echo "$as_me:${as_lineno-$LINENO}: checking headless only" >&5
24777 $as_echo_n "checking headless only... " >&6; }
24778   # Check whether --enable-headless-only was given.
24779 if test "${enable_headless_only+set}" = set; then :
24780   enableval=$enable_headless_only;
24781 fi
24782 
24783 
24784   if test "x$enable_headless_only" = "xyes"; then
24785     ENABLE_HEADLESS_ONLY="true"
24786     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24787 $as_echo "yes" >&6; }
24788   elif test "x$enable_headless_only" = "xno"; then
24789     ENABLE_HEADLESS_ONLY="false"
24790     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24791 $as_echo "no" >&6; }
24792   elif test "x$enable_headless_only" = "x"; then
24793     ENABLE_HEADLESS_ONLY="false"
24794     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24795 $as_echo "no" >&6; }
24796   else
24797     as_fn_error $? "--enable-headless-only can only take yes or no" "$LINENO" 5
24798   fi
24799 
24800 
24801 
24802   # Should we build the complete docs, or just a lightweight version?
24803   # Check whether --enable-full-docs was given.
24804 if test "${enable_full_docs+set}" = set; then :
24805   enableval=$enable_full_docs;
24806 fi
24807 
24808 
24809   # Verify dependencies
24810   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for graphviz dot" >&5
24811 $as_echo_n "checking for graphviz dot... " >&6; }
24812   if test "x$DOT" != "x"; then
24813     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24814 $as_echo "yes" >&6; }
24815   else
24816     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, cannot generate full docs" >&5
24817 $as_echo "no, cannot generate full docs" >&6; }
24818     FULL_DOCS_DEP_MISSING=true
24819   fi
24820 
24821   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pandoc" >&5
24822 $as_echo_n "checking for pandoc... " >&6; }
24823   if test "x$PANDOC" != "x"; then
24824     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24825 $as_echo "yes" >&6; }
24826   else
24827     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, cannot generate full docs" >&5
24828 $as_echo "no, cannot generate full docs" >&6; }
24829     FULL_DOCS_DEP_MISSING=true
24830   fi
24831 
24832   { $as_echo "$as_me:${as_lineno-$LINENO}: checking full docs" >&5
24833 $as_echo_n "checking full docs... " >&6; }
24834   if test "x$enable_full_docs" = xyes; then
24835     if test "x$FULL_DOCS_DEP_MISSING" = "xtrue"; then
24836       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, missing dependencies" >&5
24837 $as_echo "no, missing dependencies" >&6; }
24838 
24839   # Print a helpful message on how to acquire the necessary build dependency.
24840   # dot is the help tag: freetype, cups, alsa etc
24841   MISSING_DEPENDENCY=dot
24842 
24843   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24844     cygwin_help $MISSING_DEPENDENCY
24845   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24846     msys_help $MISSING_DEPENDENCY
24847   else
24848     PKGHANDLER_COMMAND=
24849 
24850     case $PKGHANDLER in
24851       apt-get)
24852         apt_help     $MISSING_DEPENDENCY ;;
24853       yum)
24854         yum_help     $MISSING_DEPENDENCY ;;
24855       brew)
24856         brew_help    $MISSING_DEPENDENCY ;;
24857       port)
24858         port_help    $MISSING_DEPENDENCY ;;
24859       pkgutil)
24860         pkgutil_help $MISSING_DEPENDENCY ;;
24861       pkgadd)
24862         pkgadd_help  $MISSING_DEPENDENCY ;;
24863     esac
24864 
24865     if test "x$PKGHANDLER_COMMAND" != x; then
24866       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
24867     fi
24868   fi
24869 
24870       as_fn_error $? "Cannot enable full docs with missing dependencies. See above. $HELP_MSG" "$LINENO" 5
24871     else
24872       ENABLE_FULL_DOCS=true
24873       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5
24874 $as_echo "yes, forced" >&6; }
24875     fi
24876   elif test "x$enable_full_docs" = xno; then
24877     ENABLE_FULL_DOCS=false
24878     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5
24879 $as_echo "no, forced" >&6; }
24880   elif test "x$enable_full_docs" = x; then
24881     # Check for prerequisites
24882     if test "x$FULL_DOCS_DEP_MISSING" = xtrue; then
24883       ENABLE_FULL_DOCS=false
24884       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, missing dependencies" >&5
24885 $as_echo "no, missing dependencies" >&6; }
24886     else
24887       ENABLE_FULL_DOCS=true
24888       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, dependencies present" >&5
24889 $as_echo "yes, dependencies present" >&6; }
24890     fi
24891   else
24892     as_fn_error $? "--enable-full-docs can only take yes or no" "$LINENO" 5
24893   fi
24894 
24895 
24896 
24897   # Choose cacerts source file
24898 
24899 # Check whether --with-cacerts-file was given.
24900 if test "${with_cacerts_file+set}" = set; then :
24901   withval=$with_cacerts_file;
24902 fi
24903 
24904   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacerts file" >&5
24905 $as_echo_n "checking for cacerts file... " >&6; }
24906   if test "x$with_cacerts_file" == x; then
24907     { $as_echo "$as_me:${as_lineno-$LINENO}: result: default" >&5
24908 $as_echo "default" >&6; }
24909   else
24910     CACERTS_FILE=$with_cacerts_file
24911     if test ! -f "$CACERTS_FILE"; then
24912       { $as_echo "$as_me:${as_lineno-$LINENO}: result: fail" >&5
24913 $as_echo "fail" >&6; }
24914       as_fn_error $? "Specified cacerts file \"$CACERTS_FILE\" does not exist" "$LINENO" 5
24915     fi
24916     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CACERTS_FILE" >&5
24917 $as_echo "$CACERTS_FILE" >&6; }
24918   fi
24919 
24920 
24921   # Enable or disable unlimited crypto
24922   # Check whether --enable-unlimited-crypto was given.
24923 if test "${enable_unlimited_crypto+set}" = set; then :
24924   enableval=$enable_unlimited_crypto;
24925 else
24926   enable_unlimited_crypto=yes
24927 fi
24928 
24929   if test "x$enable_unlimited_crypto" = "xyes"; then
24930     UNLIMITED_CRYPTO=true
24931   else
24932     UNLIMITED_CRYPTO=false
24933   fi
24934 
24935 
24936   # Should we build the serviceability agent (SA)?
24937   INCLUDE_SA=true
24938   if   [[ " $JVM_VARIANTS " =~ " zero " ]]  ; then
24939     INCLUDE_SA=false
24940   fi
24941   if test "x$OPENJDK_TARGET_OS" = xaix ; then
24942     INCLUDE_SA=false
24943   fi
24944 
24945 
24946   # Compress jars
24947   COMPRESS_JARS=false
24948 
24949 
24950 
24951   # Setup default copyright year. Mostly overridden when building close to a new year.
24952 
24953 # Check whether --with-copyright-year was given.
24954 if test "${with_copyright_year+set}" = set; then :
24955   withval=$with_copyright_year;
24956 fi
24957 
24958   if test "x$with_copyright_year" = xyes; then
24959     as_fn_error $? "Copyright year must have a value" "$LINENO" 5
24960   elif test "x$with_copyright_year" != x; then
24961     COPYRIGHT_YEAR="$with_copyright_year"
24962   else
24963     COPYRIGHT_YEAR=`$DATE +'%Y'`
24964   fi
24965 
24966 
24967 
24968   # Check whether --enable-keep-packaged-modules was given.
24969 if test "${enable_keep_packaged_modules+set}" = set; then :
24970   enableval=$enable_keep_packaged_modules;
24971 fi
24972 
24973 
24974   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if packaged modules are kept" >&5
24975 $as_echo_n "checking if packaged modules are kept... " >&6; }
24976   if test "x$enable_keep_packaged_modules" = "xyes"; then
24977     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24978 $as_echo "yes" >&6; }
24979     JLINK_KEEP_PACKAGED_MODULES=true
24980   elif test "x$enable_keep_packaged_modules" = "xno"; then
24981     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24982 $as_echo "no" >&6; }
24983     JLINK_KEEP_PACKAGED_MODULES=false
24984   elif test "x$enable_keep_packaged_modules" = "x"; then
24985     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5
24986 $as_echo "yes (default)" >&6; }
24987     JLINK_KEEP_PACKAGED_MODULES=true
24988   else
24989     { $as_echo "$as_me:${as_lineno-$LINENO}: result: error" >&5
24990 $as_echo "error" >&6; }
24991     as_fn_error $? "--enable-keep-packaged-modules accepts no argument" "$LINENO" 5
24992   fi
24993 
24994 
24995 
24996 
24997   # Warn user that old version arguments are deprecated.
24998 
24999 
25000 # Check whether --with-milestone was given.
25001 if test "${with_milestone+set}" = set; then :
25002   withval=$with_milestone; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-milestone is deprecated and will be ignored." >&5
25003 $as_echo "$as_me: WARNING: Option --with-milestone is deprecated and will be ignored." >&2;}
25004 fi
25005 
25006 
25007 
25008 
25009 # Check whether --with-update-version was given.
25010 if test "${with_update_version+set}" = set; then :
25011   withval=$with_update_version; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-update-version is deprecated and will be ignored." >&5
25012 $as_echo "$as_me: WARNING: Option --with-update-version is deprecated and will be ignored." >&2;}
25013 fi
25014 
25015 
25016 
25017 
25018 # Check whether --with-user-release-suffix was given.
25019 if test "${with_user_release_suffix+set}" = set; then :
25020   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
25021 $as_echo "$as_me: WARNING: Option --with-user-release-suffix is deprecated and will be ignored." >&2;}
25022 fi
25023 
25024 
25025 
25026 
25027 # Check whether --with-build-number was given.
25028 if test "${with_build_number+set}" = set; then :
25029   withval=$with_build_number; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-build-number is deprecated and will be ignored." >&5
25030 $as_echo "$as_me: WARNING: Option --with-build-number is deprecated and will be ignored." >&2;}
25031 fi
25032 
25033 
25034 
25035 
25036 # Check whether --with-version-major was given.
25037 if test "${with_version_major+set}" = set; then :
25038   withval=$with_version_major; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-version-major is deprecated and will be ignored." >&5
25039 $as_echo "$as_me: WARNING: Option --with-version-major is deprecated and will be ignored." >&2;}
25040 fi
25041 
25042 
25043 
25044 
25045 # Check whether --with-version-minor was given.
25046 if test "${with_version_minor+set}" = set; then :
25047   withval=$with_version_minor; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-version-minor is deprecated and will be ignored." >&5
25048 $as_echo "$as_me: WARNING: Option --with-version-minor is deprecated and will be ignored." >&2;}
25049 fi
25050 
25051 
25052 
25053 
25054 # Check whether --with-version-security was given.
25055 if test "${with_version_security+set}" = set; then :
25056   withval=$with_version_security; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-version-security is deprecated and will be ignored." >&5
25057 $as_echo "$as_me: WARNING: Option --with-version-security is deprecated and will be ignored." >&2;}
25058 fi
25059 
25060 
25061 
25062   # Source the version numbers file
25063   . $AUTOCONF_DIR/version-numbers
25064 
25065   # Some non-version number information is set in that file
25066 
25067 
25068 
25069 
25070 
25071 
25072 
25073 
25074 
25075   # Override version from arguments
25076 
25077   # If --with-version-string is set, process it first. It is possible to
25078   # override parts with more specific flags, since these are processed later.
25079 
25080 # Check whether --with-version-string was given.
25081 if test "${with_version_string+set}" = set; then :
25082   withval=$with_version_string;
25083 fi
25084 
25085   if test "x$with_version_string" = xyes; then
25086     as_fn_error $? "--with-version-string must have a value" "$LINENO" 5
25087   elif test "x$with_version_string" != x; then
25088     # Additional [] needed to keep m4 from mangling shell constructs.
25089     if  [[ $with_version_string =~ ^([0-9]+)(\.([0-9]+))?(\.([0-9]+))?(\.([0-9]+))?(-([a-zA-Z]+))?((\+)([0-9]+)?(-([-a-zA-Z0-9.]+))?)?$ ]] ; then
25090       VERSION_FEATURE=${BASH_REMATCH[1]}
25091       VERSION_INTERIM=${BASH_REMATCH[3]}
25092       VERSION_UPDATE=${BASH_REMATCH[5]}
25093       VERSION_PATCH=${BASH_REMATCH[7]}
25094       VERSION_PRE=${BASH_REMATCH[9]}
25095       version_plus_separator=${BASH_REMATCH[11]}
25096       VERSION_BUILD=${BASH_REMATCH[12]}
25097       VERSION_OPT=${BASH_REMATCH[14]}
25098       # Unspecified numerical fields are interpreted as 0.
25099       if test "x$VERSION_INTERIM" = x; then
25100         VERSION_INTERIM=0
25101       fi
25102       if test "x$VERSION_UPDATE" = x; then
25103         VERSION_UPDATE=0
25104       fi
25105       if test "x$VERSION_PATCH" = x; then
25106         VERSION_PATCH=0
25107       fi
25108       if test "x$version_plus_separator" != x \
25109           && test "x$VERSION_BUILD$VERSION_OPT" = x; then
25110         as_fn_error $? "Version string contains + but both 'BUILD' and 'OPT' are missing" "$LINENO" 5
25111       fi
25112       # Stop the version part process from setting default values.
25113       # We still allow them to explicitly override though.
25114       NO_DEFAULT_VERSION_PARTS=true
25115     else
25116       as_fn_error $? "--with-version-string fails to parse as a valid version string: $with_version_string" "$LINENO" 5
25117     fi
25118   fi
25119 
25120 
25121 # Check whether --with-version-pre was given.
25122 if test "${with_version_pre+set}" = set; then :
25123   withval=$with_version_pre; with_version_pre_present=true
25124 else
25125   with_version_pre_present=false
25126 fi
25127 
25128 
25129   if test "x$with_version_pre_present" = xtrue; then
25130     if test "x$with_version_pre" = xyes; then
25131       as_fn_error $? "--with-version-pre must have a value" "$LINENO" 5
25132     elif test "x$with_version_pre" = xno; then
25133       # Interpret --without-* as empty string instead of the literal "no"
25134       VERSION_PRE=
25135     else
25136       # Only [a-zA-Z] is allowed in the VERSION_PRE. Outer [ ] to quote m4.
25137        VERSION_PRE=`$ECHO "$with_version_pre" | $TR -c -d '[a-z][A-Z]'`
25138       if test "x$VERSION_PRE" != "x$with_version_pre"; then
25139         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-version-pre value has been sanitized from '$with_version_pre' to '$VERSION_PRE'" >&5
25140 $as_echo "$as_me: WARNING: --with-version-pre value has been sanitized from '$with_version_pre' to '$VERSION_PRE'" >&2;}
25141       fi
25142     fi
25143   else
25144     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
25145       # Default is to use "internal" as pre
25146       VERSION_PRE="internal"
25147     fi
25148   fi
25149 
25150 
25151 # Check whether --with-version-opt was given.
25152 if test "${with_version_opt+set}" = set; then :
25153   withval=$with_version_opt; with_version_opt_present=true
25154 else
25155   with_version_opt_present=false
25156 fi
25157 
25158 
25159   if test "x$with_version_opt_present" = xtrue; then
25160     if test "x$with_version_opt" = xyes; then
25161       as_fn_error $? "--with-version-opt must have a value" "$LINENO" 5
25162     elif test "x$with_version_opt" = xno; then
25163       # Interpret --without-* as empty string instead of the literal "no"
25164       VERSION_OPT=
25165     else
25166       # Only [-.a-zA-Z0-9] is allowed in the VERSION_OPT. Outer [ ] to quote m4.
25167        VERSION_OPT=`$ECHO "$with_version_opt" | $TR -c -d '[a-z][A-Z][0-9].-'`
25168       if test "x$VERSION_OPT" != "x$with_version_opt"; then
25169         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-version-opt value has been sanitized from '$with_version_opt' to '$VERSION_OPT'" >&5
25170 $as_echo "$as_me: WARNING: --with-version-opt value has been sanitized from '$with_version_opt' to '$VERSION_OPT'" >&2;}
25171       fi
25172     fi
25173   else
25174     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
25175       # Default is to calculate a string like this 'adhoc.<username>.<base dir name>'
25176       # Outer [ ] to quote m4.
25177        basedirname=`$BASENAME "$TOPDIR" | $TR -d -c '[a-z][A-Z][0-9].-'`
25178       VERSION_OPT="adhoc.$USERNAME.$basedirname"
25179     fi
25180   fi
25181 
25182 
25183 # Check whether --with-version-build was given.
25184 if test "${with_version_build+set}" = set; then :
25185   withval=$with_version_build; with_version_build_present=true
25186 else
25187   with_version_build_present=false
25188 fi
25189 
25190 
25191   if test "x$with_version_build_present" = xtrue; then
25192     if test "x$with_version_build" = xyes; then
25193       as_fn_error $? "--with-version-build must have a value" "$LINENO" 5
25194     elif test "x$with_version_build" = xno; then
25195       # Interpret --without-* as empty string instead of the literal "no"
25196       VERSION_BUILD=
25197     elif test "x$with_version_build" = x; then
25198       VERSION_BUILD=
25199     else
25200 
25201   # Additional [] needed to keep m4 from mangling shell constructs.
25202   if  ! [[ "$with_version_build" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
25203     as_fn_error $? "\"$with_version_build\" is not a valid numerical value for VERSION_BUILD" "$LINENO" 5
25204   fi
25205   # Extract the version number without leading zeros.
25206   cleaned_value=${BASH_REMATCH[1]}
25207   if test "x$cleaned_value" = x; then
25208     # Special case for zero
25209     cleaned_value=${BASH_REMATCH[2]}
25210   fi
25211 
25212   if test $cleaned_value -gt 255; then
25213     as_fn_error $? "VERSION_BUILD is given as $with_version_build. This is greater than 255 which is not allowed." "$LINENO" 5
25214   fi
25215   if test "x$cleaned_value" != "x$with_version_build"; then
25216     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_BUILD has been sanitized from '$with_version_build' to '$cleaned_value'" >&5
25217 $as_echo "$as_me: WARNING: Value for VERSION_BUILD has been sanitized from '$with_version_build' to '$cleaned_value'" >&2;}
25218   fi
25219   VERSION_BUILD=$cleaned_value
25220 
25221     fi
25222   else
25223     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
25224       # Default is to not have a build number.
25225       VERSION_BUILD=""
25226       # FIXME: Until all code can cope with an empty VERSION_BUILD, set it to 0.
25227       VERSION_BUILD=0
25228     fi
25229   fi
25230 
25231 
25232 # Check whether --with-version-feature was given.
25233 if test "${with_version_feature+set}" = set; then :
25234   withval=$with_version_feature; with_version_feature_present=true
25235 else
25236   with_version_feature_present=false
25237 fi
25238 
25239 
25240   if test "x$with_version_feature_present" = xtrue; then
25241     if test "x$with_version_feature" = xyes; then
25242       as_fn_error $? "--with-version-feature must have a value" "$LINENO" 5
25243     else
25244 
25245   # Additional [] needed to keep m4 from mangling shell constructs.
25246   if  ! [[ "$with_version_feature" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
25247     as_fn_error $? "\"$with_version_feature\" is not a valid numerical value for VERSION_FEATURE" "$LINENO" 5
25248   fi
25249   # Extract the version number without leading zeros.
25250   cleaned_value=${BASH_REMATCH[1]}
25251   if test "x$cleaned_value" = x; then
25252     # Special case for zero
25253     cleaned_value=${BASH_REMATCH[2]}
25254   fi
25255 
25256   if test $cleaned_value -gt 255; then
25257     as_fn_error $? "VERSION_FEATURE is given as $with_version_feature. This is greater than 255 which is not allowed." "$LINENO" 5
25258   fi
25259   if test "x$cleaned_value" != "x$with_version_feature"; then
25260     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_FEATURE has been sanitized from '$with_version_feature' to '$cleaned_value'" >&5
25261 $as_echo "$as_me: WARNING: Value for VERSION_FEATURE has been sanitized from '$with_version_feature' to '$cleaned_value'" >&2;}
25262   fi
25263   VERSION_FEATURE=$cleaned_value
25264 
25265     fi
25266   else
25267     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
25268       # Default is to get value from version-numbers
25269       VERSION_FEATURE="$DEFAULT_VERSION_FEATURE"
25270     fi
25271   fi
25272 
25273 
25274 # Check whether --with-version-interim was given.
25275 if test "${with_version_interim+set}" = set; then :
25276   withval=$with_version_interim; with_version_interim_present=true
25277 else
25278   with_version_interim_present=false
25279 fi
25280 
25281 
25282   if test "x$with_version_interim_present" = xtrue; then
25283     if test "x$with_version_interim" = xyes; then
25284       as_fn_error $? "--with-version-interim must have a value" "$LINENO" 5
25285     elif test "x$with_version_interim" = xno; then
25286       # Interpret --without-* as empty string (i.e. 0) instead of the literal "no"
25287       VERSION_INTERIM=0
25288     elif test "x$with_version_interim" = x; then
25289       VERSION_INTERIM=0
25290     else
25291 
25292   # Additional [] needed to keep m4 from mangling shell constructs.
25293   if  ! [[ "$with_version_interim" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
25294     as_fn_error $? "\"$with_version_interim\" is not a valid numerical value for VERSION_INTERIM" "$LINENO" 5
25295   fi
25296   # Extract the version number without leading zeros.
25297   cleaned_value=${BASH_REMATCH[1]}
25298   if test "x$cleaned_value" = x; then
25299     # Special case for zero
25300     cleaned_value=${BASH_REMATCH[2]}
25301   fi
25302 
25303   if test $cleaned_value -gt 255; then
25304     as_fn_error $? "VERSION_INTERIM is given as $with_version_interim. This is greater than 255 which is not allowed." "$LINENO" 5
25305   fi
25306   if test "x$cleaned_value" != "x$with_version_interim"; then
25307     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_INTERIM has been sanitized from '$with_version_interim' to '$cleaned_value'" >&5
25308 $as_echo "$as_me: WARNING: Value for VERSION_INTERIM has been sanitized from '$with_version_interim' to '$cleaned_value'" >&2;}
25309   fi
25310   VERSION_INTERIM=$cleaned_value
25311 
25312     fi
25313   else
25314     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
25315       # Default is 0, if unspecified
25316       VERSION_INTERIM=$DEFAULT_VERSION_INTERIM
25317     fi
25318   fi
25319 
25320 
25321 # Check whether --with-version-update was given.
25322 if test "${with_version_update+set}" = set; then :
25323   withval=$with_version_update; with_version_update_present=true
25324 else
25325   with_version_update_present=false
25326 fi
25327 
25328 
25329   if test "x$with_version_update_present" = xtrue; then
25330     if test "x$with_version_update" = xyes; then
25331       as_fn_error $? "--with-version-update must have a value" "$LINENO" 5
25332     elif test "x$with_version_update" = xno; then
25333       # Interpret --without-* as empty string (i.e. 0) instead of the literal "no"
25334       VERSION_UPDATE=0
25335     elif test "x$with_version_update" = x; then
25336       VERSION_UPDATE=0
25337     else
25338 
25339   # Additional [] needed to keep m4 from mangling shell constructs.
25340   if  ! [[ "$with_version_update" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
25341     as_fn_error $? "\"$with_version_update\" is not a valid numerical value for VERSION_UPDATE" "$LINENO" 5
25342   fi
25343   # Extract the version number without leading zeros.
25344   cleaned_value=${BASH_REMATCH[1]}
25345   if test "x$cleaned_value" = x; then
25346     # Special case for zero
25347     cleaned_value=${BASH_REMATCH[2]}
25348   fi
25349 
25350   if test $cleaned_value -gt 255; then
25351     as_fn_error $? "VERSION_UPDATE is given as $with_version_update. This is greater than 255 which is not allowed." "$LINENO" 5
25352   fi
25353   if test "x$cleaned_value" != "x$with_version_update"; then
25354     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_UPDATE has been sanitized from '$with_version_update' to '$cleaned_value'" >&5
25355 $as_echo "$as_me: WARNING: Value for VERSION_UPDATE has been sanitized from '$with_version_update' to '$cleaned_value'" >&2;}
25356   fi
25357   VERSION_UPDATE=$cleaned_value
25358 
25359     fi
25360   else
25361     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
25362       # Default is 0, if unspecified
25363       VERSION_UPDATE=$DEFAULT_VERSION_UPDATE
25364     fi
25365   fi
25366 
25367 
25368 # Check whether --with-version-patch was given.
25369 if test "${with_version_patch+set}" = set; then :
25370   withval=$with_version_patch; with_version_patch_present=true
25371 else
25372   with_version_patch_present=false
25373 fi
25374 
25375 
25376   if test "x$with_version_patch_present" = xtrue; then
25377     if test "x$with_version_patch" = xyes; then
25378       as_fn_error $? "--with-version-patch must have a value" "$LINENO" 5
25379     elif test "x$with_version_patch" = xno; then
25380       # Interpret --without-* as empty string (i.e. 0) instead of the literal "no"
25381       VERSION_PATCH=0
25382     elif test "x$with_version_patch" = x; then
25383       VERSION_PATCH=0
25384     else
25385 
25386   # Additional [] needed to keep m4 from mangling shell constructs.
25387   if  ! [[ "$with_version_patch" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
25388     as_fn_error $? "\"$with_version_patch\" is not a valid numerical value for VERSION_PATCH" "$LINENO" 5
25389   fi
25390   # Extract the version number without leading zeros.
25391   cleaned_value=${BASH_REMATCH[1]}
25392   if test "x$cleaned_value" = x; then
25393     # Special case for zero
25394     cleaned_value=${BASH_REMATCH[2]}
25395   fi
25396 
25397   if test $cleaned_value -gt 255; then
25398     as_fn_error $? "VERSION_PATCH is given as $with_version_patch. This is greater than 255 which is not allowed." "$LINENO" 5
25399   fi
25400   if test "x$cleaned_value" != "x$with_version_patch"; then
25401     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_PATCH has been sanitized from '$with_version_patch' to '$cleaned_value'" >&5
25402 $as_echo "$as_me: WARNING: Value for VERSION_PATCH has been sanitized from '$with_version_patch' to '$cleaned_value'" >&2;}
25403   fi
25404   VERSION_PATCH=$cleaned_value
25405 
25406     fi
25407   else
25408     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
25409       # Default is 0, if unspecified
25410       VERSION_PATCH=$DEFAULT_VERSION_PATCH
25411     fi
25412   fi
25413 
25414   # Calculate derived version properties
25415 
25416   # Set VERSION_IS_GA based on if VERSION_PRE has a value
25417   if test "x$VERSION_PRE" = x; then
25418     VERSION_IS_GA=true
25419   else
25420     VERSION_IS_GA=false
25421   fi
25422 
25423   # VERSION_NUMBER but always with exactly 4 positions, with 0 for empty positions.
25424   VERSION_NUMBER_FOUR_POSITIONS=$VERSION_FEATURE.$VERSION_INTERIM.$VERSION_UPDATE.$VERSION_PATCH
25425 
25426   stripped_version_number=$VERSION_NUMBER_FOUR_POSITIONS
25427   # Strip trailing zeroes from stripped_version_number
25428   for i in 1 2 3 ; do stripped_version_number=${stripped_version_number%.0} ; done
25429   VERSION_NUMBER=$stripped_version_number
25430 
25431   # The complete version string, with additional build information
25432   if test "x$VERSION_BUILD$VERSION_OPT" = x; then
25433     VERSION_STRING=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE}
25434   else
25435     # If either build or opt is set, we need a + separator
25436     VERSION_STRING=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE}+$VERSION_BUILD${VERSION_OPT:+-$VERSION_OPT}
25437   fi
25438 
25439   # The short version string, just VERSION_NUMBER and PRE, if present.
25440   VERSION_SHORT=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE}
25441 
25442   # The version date
25443 
25444 # Check whether --with-version-date was given.
25445 if test "${with_version_date+set}" = set; then :
25446   withval=$with_version_date;
25447 fi
25448 
25449   if test "x$with_version_date" = xyes; then
25450     as_fn_error $? "--with-version-date must have a value" "$LINENO" 5
25451   elif test "x$with_version_date" != x; then
25452     if  ! [[ $with_version_date =~ ^[0-9]{4}-[0-9]{2}-[0-9]{2}$ ]] ; then
25453       as_fn_error $? "\"$with_version_date\" is not a valid version date" "$LINENO" 5
25454     else
25455       VERSION_DATE="$with_version_date"
25456     fi
25457   else
25458     VERSION_DATE="$DEFAULT_VERSION_DATE"
25459   fi
25460 
25461   # The vendor version string, if any
25462 
25463 # Check whether --with-vendor-version-string was given.
25464 if test "${with_vendor_version_string+set}" = set; then :
25465   withval=$with_vendor_version_string;
25466 fi
25467 
25468   if test "x$with_vendor_version_string" = xyes; then
25469     as_fn_error $? "--with-vendor-version-string must have a value" "$LINENO" 5
25470   elif  ! [[ $with_vendor_version_string =~ ^[[:graph:]]*$ ]] ; then
25471       as_fn_error $? "--with--vendor-version-string contains non-graphical characters: $with_vendor_version_string" "$LINENO" 5
25472   else
25473     VENDOR_VERSION_STRING="$with_vendor_version_string"
25474   fi
25475 
25476   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version string" >&5
25477 $as_echo_n "checking for version string... " >&6; }
25478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VERSION_STRING" >&5
25479 $as_echo "$VERSION_STRING" >&6; }
25480 
25481 
25482 
25483 
25484 
25485 
25486 
25487 
25488 
25489 
25490 
25491 
25492 
25493 
25494 
25495 
25496 
25497 ###############################################################################
25498 #
25499 # Setup BootJDK, used to bootstrap the build.
25500 #
25501 ###############################################################################
25502 
25503 
25504   BOOT_JDK_FOUND=no
25505 
25506 # Check whether --with-boot-jdk was given.
25507 if test "${with_boot_jdk+set}" = set; then :
25508   withval=$with_boot_jdk;
25509 fi
25510 
25511 
25512   # We look for the Boot JDK through various means, going from more certain to
25513   # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if
25514   # we detected something (if so, the path to the jdk is in BOOT_JDK). But we
25515   # must check if this is indeed valid; otherwise we'll continue looking.
25516 
25517   # Test: Is bootjdk explicitly set by command line arguments?
25518 
25519   if test "x$BOOT_JDK_FOUND" = xno; then
25520     # Now execute the test
25521 
25522   if test "x$with_boot_jdk" != x; then
25523     BOOT_JDK=$with_boot_jdk
25524     BOOT_JDK_FOUND=maybe
25525     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5
25526 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;}
25527   fi
25528 
25529 
25530     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
25531     if test "x$BOOT_JDK_FOUND" = xmaybe; then
25532       # Do we have a bin/java?
25533       if test ! -x "$BOOT_JDK/bin/java"; then
25534         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
25535 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
25536         BOOT_JDK_FOUND=no
25537       else
25538         # Do we have a bin/javac?
25539         if test ! -x "$BOOT_JDK/bin/javac"; then
25540           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
25541 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
25542           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
25543 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
25544           BOOT_JDK_FOUND=no
25545         else
25546           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct