1 #!/bin/bash
   2 #
   3 # ##########################################################
   4 # ### THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. ###
   5 # ##########################################################
   6 #
   7 #! /bin/sh
   8 # Guess values for system-dependent variables and create Makefiles.
   9 # Generated by GNU Autoconf 2.69 for OpenJDK jdk9.
  10 #
  11 # Report bugs to <build-dev@openjdk.java.net>.
  12 #
  13 #
  14 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  15 #
  16 #
  17 # This configure script is free software; the Free Software Foundation
  18 # gives unlimited permission to copy, distribute and modify it.
  19 ## -------------------- ##
  20 ## M4sh Initialization. ##
  21 ## -------------------- ##
  22 
  23 # Be more Bourne compatible
  24 DUALCASE=1; export DUALCASE # for MKS sh
  25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  26   emulate sh
  27   NULLCMD=:
  28   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  29   # is contrary to our usage.  Disable this feature.
  30   alias -g '${1+"$@"}'='"$@"'
  31   setopt NO_GLOB_SUBST
  32 else
  33   case `(set -o) 2>/dev/null` in #(
  34   *posix*) :
  35     set -o posix ;; #(
  36   *) :
  37      ;;
  38 esac
  39 fi
  40 
  41 
  42 as_nl='
  43 '
  44 export as_nl
  45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
  46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  49 # Prefer a ksh shell builtin over an external printf program on Solaris,
  50 # but without wasting forks for bash or zsh.
  51 if test -z "$BASH_VERSION$ZSH_VERSION" \
  52     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  53   as_echo='print -r --'
  54   as_echo_n='print -rn --'
  55 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  56   as_echo='printf %s\n'
  57   as_echo_n='printf %s'
  58 else
  59   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  60     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  61     as_echo_n='/usr/ucb/echo -n'
  62   else
  63     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  64     as_echo_n_body='eval
  65       arg=$1;
  66       case $arg in #(
  67       *"$as_nl"*)
  68         expr "X$arg" : "X\\(.*\\)$as_nl";
  69         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  70       esac;
  71       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  72     '
  73     export as_echo_n_body
  74     as_echo_n='sh -c $as_echo_n_body as_echo'
  75   fi
  76   export as_echo_body
  77   as_echo='sh -c $as_echo_body as_echo'
  78 fi
  79 
  80 # The user is always right.
  81 if test "${PATH_SEPARATOR+set}" != set; then
  82   PATH_SEPARATOR=:
  83   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  84     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  85       PATH_SEPARATOR=';'
  86   }
  87 fi
  88 
  89 
  90 # IFS
  91 # We need space, tab and new line, in precisely that order.  Quoting is
  92 # there to prevent editors from complaining about space-tab.
  93 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  94 # splitting by setting IFS to empty value.)
  95 IFS=" ""        $as_nl"
  96 
  97 # Find who we are.  Look in the path if we contain no directory separator.
  98 as_myself=
  99 case $0 in #((
 100   *[\\/]* ) as_myself=$0 ;;
 101   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 102 for as_dir in $PATH
 103 do
 104   IFS=$as_save_IFS
 105   test -z "$as_dir" && as_dir=.
 106     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 107   done
 108 IFS=$as_save_IFS
 109 
 110      ;;
 111 esac
 112 # We did not find ourselves, most probably we were run as `sh COMMAND'
 113 # in which case we are not to be found in the path.
 114 if test "x$as_myself" = x; then
 115   as_myself=$0
 116 fi
 117 if test ! -f "$as_myself"; then
 118   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 119   exit 1
 120 fi
 121 
 122 # Unset variables that we do not need and which cause bugs (e.g. in
 123 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 124 # suppresses any "Segmentation fault" message there.  '((' could
 125 # trigger a bug in pdksh 5.2.14.
 126 for as_var in BASH_ENV ENV MAIL MAILPATH
 127 do eval test x\${$as_var+set} = xset \
 128   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 129 done
 130 PS1='$ '
 131 PS2='> '
 132 PS4='+ '
 133 
 134 # NLS nuisances.
 135 LC_ALL=C
 136 export LC_ALL
 137 LANGUAGE=C
 138 export LANGUAGE
 139 
 140 # CDPATH.
 141 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 142 
 143 # Use a proper internal environment variable to ensure we don't fall
 144   # into an infinite loop, continuously re-executing ourselves.
 145   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
 146     _as_can_reexec=no; export _as_can_reexec;
 147     # We cannot yet assume a decent shell, so we have to provide a
 148 # neutralization value for shells without unset; and this also
 149 # works around shells that cannot unset nonexistent variables.
 150 # Preserve -v and -x to the replacement shell.
 151 BASH_ENV=/dev/null
 152 ENV=/dev/null
 153 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 154 case $- in # ((((
 155   *v*x* | *x*v* ) as_opts=-vx ;;
 156   *v* ) as_opts=-v ;;
 157   *x* ) as_opts=-x ;;
 158   * ) as_opts= ;;
 159 esac
 160 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
 161 # Admittedly, this is quite paranoid, since all the known shells bail
 162 # out after a failed `exec'.
 163 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
 164 as_fn_exit 255
 165   fi
 166   # We don't want this to propagate to other subprocesses.
 167           { _as_can_reexec=; unset _as_can_reexec;}
 168 if test "x$CONFIG_SHELL" = x; then
 169   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
 170   emulate sh
 171   NULLCMD=:
 172   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
 173   # is contrary to our usage.  Disable this feature.
 174   alias -g '\${1+\"\$@\"}'='\"\$@\"'
 175   setopt NO_GLOB_SUBST
 176 else
 177   case \`(set -o) 2>/dev/null\` in #(
 178   *posix*) :
 179     set -o posix ;; #(
 180   *) :
 181      ;;
 182 esac
 183 fi
 184 "
 185   as_required="as_fn_return () { (exit \$1); }
 186 as_fn_success () { as_fn_return 0; }
 187 as_fn_failure () { as_fn_return 1; }
 188 as_fn_ret_success () { return 0; }
 189 as_fn_ret_failure () { return 1; }
 190 
 191 exitcode=0
 192 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
 193 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
 194 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
 195 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
 196 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
 197 
 198 else
 199   exitcode=1; echo positional parameters were not saved.
 200 fi
 201 test x\$exitcode = x0 || exit 1
 202 test -x / || exit 1"
 203   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
 204   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
 205   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
 206   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
 207 test \$(( 1 + 1 )) = 2 || exit 1"
 208   if (eval "$as_required") 2>/dev/null; then :
 209   as_have_required=yes
 210 else
 211   as_have_required=no
 212 fi
 213   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
 214 
 215 else
 216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 217 as_found=false
 218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 219 do
 220   IFS=$as_save_IFS
 221   test -z "$as_dir" && as_dir=.
 222   as_found=:
 223   case $as_dir in #(
 224          /*)
 225            for as_base in sh bash ksh sh5; do
 226              # Try only shells that exist, to save several forks.
 227              as_shell=$as_dir/$as_base
 228              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 229                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
 230   CONFIG_SHELL=$as_shell as_have_required=yes
 231                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
 232   break 2
 233 fi
 234 fi
 235            done;;
 236        esac
 237   as_found=false
 238 done
 239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
 240               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
 241   CONFIG_SHELL=$SHELL as_have_required=yes
 242 fi; }
 243 IFS=$as_save_IFS
 244 
 245 
 246       if test "x$CONFIG_SHELL" != x; then :
 247   export CONFIG_SHELL
 248              # We cannot yet assume a decent shell, so we have to provide a
 249 # neutralization value for shells without unset; and this also
 250 # works around shells that cannot unset nonexistent variables.
 251 # Preserve -v and -x to the replacement shell.
 252 BASH_ENV=/dev/null
 253 ENV=/dev/null
 254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 255 case $- in # ((((
 256   *v*x* | *x*v* ) as_opts=-vx ;;
 257   *v* ) as_opts=-v ;;
 258   *x* ) as_opts=-x ;;
 259   * ) as_opts= ;;
 260 esac
 261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
 262 # Admittedly, this is quite paranoid, since all the known shells bail
 263 # out after a failed `exec'.
 264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
 265 exit 255
 266 fi
 267 
 268     if test x$as_have_required = xno; then :
 269   $as_echo "$0: This script requires a shell more modern than all"
 270   $as_echo "$0: the shells that I found on your system."
 271   if test x${ZSH_VERSION+set} = xset ; then
 272     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
 273     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
 274   else
 275     $as_echo "$0: Please tell bug-autoconf@gnu.org and
 276 $0: build-dev@openjdk.java.net about your system, including
 277 $0: any error possibly output before this message. Then
 278 $0: install a modern shell, or manually run the script
 279 $0: under such a shell if you do have one."
 280   fi
 281   exit 1
 282 fi
 283 fi
 284 fi
 285 SHELL=${CONFIG_SHELL-/bin/sh}
 286 export SHELL
 287 # Unset more variables known to interfere with behavior of common tools.
 288 CLICOLOR_FORCE= GREP_OPTIONS=
 289 unset CLICOLOR_FORCE GREP_OPTIONS
 290 
 291 ## --------------------- ##
 292 ## M4sh Shell Functions. ##
 293 ## --------------------- ##
 294 # as_fn_unset VAR
 295 # ---------------
 296 # Portably unset VAR.
 297 as_fn_unset ()
 298 {
 299   { eval $1=; unset $1;}
 300 }
 301 as_unset=as_fn_unset
 302 
 303 # as_fn_set_status STATUS
 304 # -----------------------
 305 # Set $? to STATUS, without forking.
 306 as_fn_set_status ()
 307 {
 308   return $1
 309 } # as_fn_set_status
 310 
 311 # as_fn_exit STATUS
 312 # -----------------
 313 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 314 as_fn_exit ()
 315 {
 316   set +e
 317   as_fn_set_status $1
 318   exit $1
 319 } # as_fn_exit
 320 
 321 # as_fn_mkdir_p
 322 # -------------
 323 # Create "$as_dir" as a directory, including parents if necessary.
 324 as_fn_mkdir_p ()
 325 {
 326 
 327   case $as_dir in #(
 328   -*) as_dir=./$as_dir;;
 329   esac
 330   test -d "$as_dir" || eval $as_mkdir_p || {
 331     as_dirs=
 332     while :; do
 333       case $as_dir in #(
 334       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 335       *) as_qdir=$as_dir;;
 336       esac
 337       as_dirs="'$as_qdir' $as_dirs"
 338       as_dir=`$as_dirname -- "$as_dir" ||
 339 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 340          X"$as_dir" : 'X\(//\)[^/]' \| \
 341          X"$as_dir" : 'X\(//\)$' \| \
 342          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 343 $as_echo X"$as_dir" |
 344     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 345             s//\1/
 346             q
 347           }
 348           /^X\(\/\/\)[^/].*/{
 349             s//\1/
 350             q
 351           }
 352           /^X\(\/\/\)$/{
 353             s//\1/
 354             q
 355           }
 356           /^X\(\/\).*/{
 357             s//\1/
 358             q
 359           }
 360           s/.*/./; q'`
 361       test -d "$as_dir" && break
 362     done
 363     test -z "$as_dirs" || eval "mkdir $as_dirs"
 364   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 365 
 366 
 367 } # as_fn_mkdir_p
 368 
 369 # as_fn_executable_p FILE
 370 # -----------------------
 371 # Test if FILE is an executable regular file.
 372 as_fn_executable_p ()
 373 {
 374   test -f "$1" && test -x "$1"
 375 } # as_fn_executable_p
 376 # as_fn_append VAR VALUE
 377 # ----------------------
 378 # Append the text in VALUE to the end of the definition contained in VAR. Take
 379 # advantage of any shell optimizations that allow amortized linear growth over
 380 # repeated appends, instead of the typical quadratic growth present in naive
 381 # implementations.
 382 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 383   eval 'as_fn_append ()
 384   {
 385     eval $1+=\$2
 386   }'
 387 else
 388   as_fn_append ()
 389   {
 390     eval $1=\$$1\$2
 391   }
 392 fi # as_fn_append
 393 
 394 # as_fn_arith ARG...
 395 # ------------------
 396 # Perform arithmetic evaluation on the ARGs, and store the result in the
 397 # global $as_val. Take advantage of shells that can avoid forks. The arguments
 398 # must be portable across $(()) and expr.
 399 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 400   eval 'as_fn_arith ()
 401   {
 402     as_val=$(( $* ))
 403   }'
 404 else
 405   as_fn_arith ()
 406   {
 407     as_val=`expr "$@" || test $? -eq 1`
 408   }
 409 fi # as_fn_arith
 410 
 411 
 412 # as_fn_error STATUS ERROR [LINENO LOG_FD]
 413 # ----------------------------------------
 414 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 415 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 416 # script with STATUS, using 1 if that was 0.
 417 as_fn_error ()
 418 {
 419   as_status=$1; test $as_status -eq 0 && as_status=1
 420   if test "$4"; then
 421     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 422     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 423   fi
 424   $as_echo "$as_me: error: $2" >&2
 425   as_fn_exit $as_status
 426 } # as_fn_error
 427 
 428 if expr a : '\(a\)' >/dev/null 2>&1 &&
 429    test "X`expr 00001 : '.*\(...\)'`" = X001; then
 430   as_expr=expr
 431 else
 432   as_expr=false
 433 fi
 434 
 435 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 436   as_basename=basename
 437 else
 438   as_basename=false
 439 fi
 440 
 441 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 442   as_dirname=dirname
 443 else
 444   as_dirname=false
 445 fi
 446 
 447 as_me=`$as_basename -- "$0" ||
 448 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 449          X"$0" : 'X\(//\)$' \| \
 450          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 451 $as_echo X/"$0" |
 452     sed '/^.*\/\([^/][^/]*\)\/*$/{
 453             s//\1/
 454             q
 455           }
 456           /^X\/\(\/\/\)$/{
 457             s//\1/
 458             q
 459           }
 460           /^X\/\(\/\).*/{
 461             s//\1/
 462             q
 463           }
 464           s/.*/./; q'`
 465 
 466 # Avoid depending upon Character Ranges.
 467 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 468 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 469 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 470 as_cr_digits='0123456789'
 471 as_cr_alnum=$as_cr_Letters$as_cr_digits
 472 
 473 
 474   as_lineno_1=$LINENO as_lineno_1a=$LINENO
 475   as_lineno_2=$LINENO as_lineno_2a=$LINENO
 476   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
 477   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
 478   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
 479   sed -n '
 480     p
 481     /[$]LINENO/=
 482   ' <$as_myself |
 483     sed '
 484       s/[$]LINENO.*/&-/
 485       t lineno
 486       b
 487       :lineno
 488       N
 489       :loop
 490       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 491       t loop
 492       s/-\n.*//
 493     ' >$as_me.lineno &&
 494   chmod +x "$as_me.lineno" ||
 495     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
 496 
 497   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
 498   # already done that, so ensure we don't try to do so again and fall
 499   # in an infinite loop.  This has already happened in practice.
 500   _as_can_reexec=no; export _as_can_reexec
 501   # Don't try to exec as it changes $[0], causing all sort of problems
 502   # (the dirname of $[0] is not the place where we might find the
 503   # original and so on.  Autoconf is especially sensitive to this).
 504   . "./$as_me.lineno"
 505   # Exit status is that of the last command.
 506   exit
 507 }
 508 
 509 ECHO_C= ECHO_N= ECHO_T=
 510 case `echo -n x` in #(((((
 511 -n*)
 512   case `echo 'xy\c'` in
 513   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 514   xy)  ECHO_C='\c';;
 515   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 516        ECHO_T=' ';;
 517   esac;;
 518 *)
 519   ECHO_N='-n';;
 520 esac
 521 
 522 rm -f conf$$ conf$$.exe conf$$.file
 523 if test -d conf$$.dir; then
 524   rm -f conf$$.dir/conf$$.file
 525 else
 526   rm -f conf$$.dir
 527   mkdir conf$$.dir 2>/dev/null
 528 fi
 529 if (echo >conf$$.file) 2>/dev/null; then
 530   if ln -s conf$$.file conf$$ 2>/dev/null; then
 531     as_ln_s='ln -s'
 532     # ... but there are two gotchas:
 533     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 534     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 535     # In both cases, we have to default to `cp -pR'.
 536     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 537       as_ln_s='cp -pR'
 538   elif ln conf$$.file conf$$ 2>/dev/null; then
 539     as_ln_s=ln
 540   else
 541     as_ln_s='cp -pR'
 542   fi
 543 else
 544   as_ln_s='cp -pR'
 545 fi
 546 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 547 rmdir conf$$.dir 2>/dev/null
 548 
 549 if mkdir -p . 2>/dev/null; then
 550   as_mkdir_p='mkdir -p "$as_dir"'
 551 else
 552   test -d ./-p && rmdir ./-p
 553   as_mkdir_p=false
 554 fi
 555 
 556 as_test_x='test -x'
 557 as_executable_p=as_fn_executable_p
 558 
 559 # Sed expression to map a string onto a valid CPP name.
 560 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 561 
 562 # Sed expression to map a string onto a valid variable name.
 563 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 564 
 565 
 566 test -n "$DJDIR" || exec 7<&0 </dev/null
 567 exec 6>&1
 568 
 569 # Name of the host.
 570 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
 571 # so uname gets run too.
 572 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 573 
 574 #
 575 # Initializations.
 576 #
 577 ac_default_prefix=/usr/local
 578 ac_clean_files=
 579 ac_config_libobj_dir=.
 580 LIBOBJS=
 581 cross_compiling=no
 582 subdirs=
 583 MFLAGS=
 584 MAKEFLAGS=
 585 
 586 # Identity of this package.
 587 PACKAGE_NAME='OpenJDK'
 588 PACKAGE_TARNAME='openjdk'
 589 PACKAGE_VERSION='jdk9'
 590 PACKAGE_STRING='OpenJDK jdk9'
 591 PACKAGE_BUGREPORT='build-dev@openjdk.java.net'
 592 PACKAGE_URL='http://openjdk.java.net'
 593 
 594 # Factoring default headers for most tests.
 595 ac_includes_default="\
 596 #include <stdio.h>
 597 #ifdef HAVE_SYS_TYPES_H
 598 # include <sys/types.h>
 599 #endif
 600 #ifdef HAVE_SYS_STAT_H
 601 # include <sys/stat.h>
 602 #endif
 603 #ifdef STDC_HEADERS
 604 # include <stdlib.h>
 605 # include <stddef.h>
 606 #else
 607 # ifdef HAVE_STDLIB_H
 608 #  include <stdlib.h>
 609 # endif
 610 #endif
 611 #ifdef HAVE_STRING_H
 612 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 613 #  include <memory.h>
 614 # endif
 615 # include <string.h>
 616 #endif
 617 #ifdef HAVE_STRINGS_H
 618 # include <strings.h>
 619 #endif
 620 #ifdef HAVE_INTTYPES_H
 621 # include <inttypes.h>
 622 #endif
 623 #ifdef HAVE_STDINT_H
 624 # include <stdint.h>
 625 #endif
 626 #ifdef HAVE_UNISTD_H
 627 # include <unistd.h>
 628 #endif"
 629 
 630 ac_subst_vars='LTLIBOBJS
 631 LIBOBJS
 632 CFLAGS_CCACHE
 633 CCACHE
 634 USE_PRECOMPILED_HEADER
 635 BUILD_ICECC
 636 ICECC
 637 ICECC_WRAPPER
 638 ICECC_CREATE_ENV
 639 ICECC_CMD
 640 ENABLE_JAVAC_SERVER
 641 ENABLE_SJAVAC
 642 SJAVAC_SERVER_JAVA_FLAGS
 643 SJAVAC_SERVER_JAVA
 644 JAVA_TOOL_FLAGS_SMALL
 645 JAVA_FLAGS_SMALL
 646 JAVA_FLAGS_JAVAC
 647 BOOTCYCLE_JVM_ARGS_BIG
 648 JAVA_FLAGS_BIG
 649 JAVA_FLAGS
 650 TEST_JOBS
 651 JOBS
 652 MEMORY_SIZE
 653 NUM_CORES
 654 ENABLE_GENERATE_CLASSLIST
 655 BUILD_FAILURE_HANDLER
 656 ENABLE_INTREE_EC
 657 VALID_JVM_FEATURES
 658 JVM_FEATURES_custom
 659 JVM_FEATURES_zeroshark
 660 JVM_FEATURES_zero
 661 JVM_FEATURES_minimal
 662 JVM_FEATURES_core
 663 JVM_FEATURES_client
 664 JVM_FEATURES_server
 665 INCLUDE_GRAAL
 666 ELF_LIBS
 667 ELF_CFLAGS
 668 STLPORT_LIB
 669 LIBZIP_CAN_USE_MMAP
 670 LIBDL
 671 LIBM
 672 USE_EXTERNAL_LCMS
 673 LCMS_LIBS
 674 LCMS_CFLAGS
 675 USE_EXTERNAL_LIBZ
 676 USE_EXTERNAL_LIBPNG
 677 PNG_LIBS
 678 PNG_CFLAGS
 679 USE_EXTERNAL_LIBGIF
 680 USE_EXTERNAL_LIBJPEG
 681 LLVM_LIBS
 682 LLVM_LDFLAGS
 683 LLVM_CFLAGS
 684 LLVM_CONFIG
 685 LIBFFI_LIB_FILE
 686 ENABLE_LIBFFI_BUNDLING
 687 LIBFFI_LIBS
 688 LIBFFI_CFLAGS
 689 ALSA_LIBS
 690 ALSA_CFLAGS
 691 FREETYPE_BUNDLE_LIB_PATH
 692 FREETYPE_LIBS
 693 FREETYPE_CFLAGS
 694 CUPS_CFLAGS
 695 X_EXTRA_LIBS
 696 X_LIBS
 697 X_PRE_LIBS
 698 X_CFLAGS
 699 XMKMF
 700 MSVCP_DLL
 701 MSVCR_DLL
 702 LIBCXX
 703 FIXPATH_DETACH_FLAG
 704 FIXPATH
 705 BUILD_GTEST
 706 ENABLE_AOT
 707 GCOV_ENABLED
 708 ZIP_EXTERNAL_DEBUG_SYMBOLS
 709 COPY_DEBUG_SYMBOLS
 710 COMPILE_WITH_DEBUG_SYMBOLS
 711 CFLAGS_WARNINGS_ARE_ERRORS
 712 BUILD_CC_DISABLE_WARNING_PREFIX
 713 DISABLE_WARNING_PREFIX
 714 WARNINGS_AS_ERRORS
 715 COMPILER_SUPPORTS_TARGET_BITS_FLAG
 716 LDFLAGS_TESTEXE
 717 LDFLAGS_TESTLIB
 718 CXXFLAGS_TESTEXE
 719 CXXFLAGS_TESTLIB
 720 CFLAGS_TESTEXE
 721 CFLAGS_TESTLIB
 722 OPENJDK_BUILD_JVM_LIBS
 723 OPENJDK_BUILD_JVM_ASFLAGS
 724 OPENJDK_BUILD_JVM_LDFLAGS
 725 OPENJDK_BUILD_JVM_CFLAGS
 726 OPENJDK_BUILD_LDFLAGS_HASH_STYLE
 727 OPENJDK_BUILD_LDFLAGS_CXX_JDK
 728 OPENJDK_BUILD_JDKEXE_LIBS
 729 OPENJDK_BUILD_JDKLIB_LIBS
 730 OPENJDK_BUILD_LDFLAGS_JDKEXE
 731 OPENJDK_BUILD_LDFLAGS_JDKLIB
 732 OPENJDK_BUILD_CXXFLAGS_JDKEXE
 733 OPENJDK_BUILD_CXXFLAGS_JDKLIB
 734 OPENJDK_BUILD_CFLAGS_JDKEXE
 735 OPENJDK_BUILD_CFLAGS_JDKLIB
 736 OPENJDK_BUILD_CXXSTD_CXXFLAG
 737 JVM_LIBS
 738 JVM_ASFLAGS
 739 JVM_LDFLAGS
 740 JVM_CFLAGS
 741 LDFLAGS_HASH_STYLE
 742 LDFLAGS_CXX_JDK
 743 JDKEXE_LIBS
 744 JDKLIB_LIBS
 745 LDFLAGS_JDKEXE
 746 LDFLAGS_JDKLIB
 747 CXXFLAGS_JDKEXE
 748 CXXFLAGS_JDKLIB
 749 CFLAGS_JDKEXE
 750 CFLAGS_JDKLIB
 751 MACOSX_VERSION_MIN
 752 CXXSTD_CXXFLAG
 753 JDK_ARCH_ABI_PROP_NAME
 754 CXX_O_FLAG_SIZE
 755 CXX_O_FLAG_NONE
 756 CXX_O_FLAG_DEBUG
 757 CXX_O_FLAG_NORM
 758 CXX_O_FLAG_HI
 759 CXX_O_FLAG_HIGHEST
 760 CXX_O_FLAG_HIGHEST_JVM
 761 C_O_FLAG_SIZE
 762 C_O_FLAG_NONE
 763 C_O_FLAG_DEBUG
 764 C_O_FLAG_NORM
 765 C_O_FLAG_HI
 766 C_O_FLAG_HIGHEST
 767 C_O_FLAG_HIGHEST_JVM
 768 JVM_CFLAGS_SYMBOLS
 769 CXXFLAGS_DEBUG_SYMBOLS
 770 CFLAGS_DEBUG_SYMBOLS
 771 CXX_FLAG_DEPS
 772 C_FLAG_DEPS
 773 SHARED_LIBRARY_FLAGS
 774 SET_SHARED_LIBRARY_MAPFILE
 775 SET_SHARED_LIBRARY_NAME
 776 SET_SHARED_LIBRARY_ORIGIN
 777 SET_EXECUTABLE_ORIGIN
 778 CXX_FLAG_REORDER
 779 C_FLAG_REORDER
 780 JVM_RCFLAGS
 781 RC_FLAGS
 782 AR_OUT_OPTION
 783 LD_OUT_OPTION
 784 EXE_OUT_OPTION
 785 CC_OUT_OPTION
 786 STRIPFLAGS
 787 ARFLAGS
 788 COMPILER_BINDCMD_FILE_FLAG
 789 COMPILER_COMMAND_FILE_FLAG
 790 COMPILER_TARGET_BITS_FLAG
 791 JT_HOME
 792 JTREGEXE
 793 HOTSPOT_TOOLCHAIN_TYPE
 794 USING_BROKEN_SUSE_LD
 795 PACKAGE_PATH
 796 BUILD_AS
 797 BUILD_LDCXX
 798 BUILD_LD
 799 BUILD_STRIP
 800 BUILD_OBJCOPY
 801 BUILD_AR
 802 BUILD_NM
 803 BUILD_CXX
 804 BUILD_CC
 805 BUILD_SYSROOT_LDFLAGS
 806 BUILD_SYSROOT_CFLAGS
 807 ac_ct_OBJDUMP
 808 OBJDUMP
 809 ac_ct_OBJCOPY
 810 OBJCOPY
 811 ac_ct_NM
 812 ac_ct_STRIP
 813 GNM
 814 NM
 815 STRIP
 816 MSBUILD
 817 DUMPBIN
 818 RC
 819 MT
 820 LIPO
 821 ac_ct_AR
 822 AR
 823 AS
 824 LDCXX
 825 LD
 826 CXXCPP
 827 CPP
 828 CXX_VERSION_NUMBER
 829 CC_VERSION_NUMBER
 830 ac_ct_CXX
 831 CXXFLAGS
 832 CXX
 833 TOOLCHAIN_PATH_CXX
 834 POTENTIAL_CXX
 835 OBJEXT
 836 EXEEXT
 837 ac_ct_CC
 838 CPPFLAGS
 839 LDFLAGS
 840 CFLAGS
 841 CC
 842 TOOLCHAIN_PATH_CC
 843 POTENTIAL_CC
 844 TOOLCHAIN_VERSION
 845 VS_LIB
 846 VS_INCLUDE
 847 VS_PATH
 848 CYGWIN_LINK
 849 SYSROOT_LDFLAGS
 850 SYSROOT_CFLAGS
 851 EXTRA_LDFLAGS
 852 EXTRA_CXXFLAGS
 853 EXTRA_CFLAGS
 854 EXE_SUFFIX
 855 OBJ_SUFFIX
 856 STATIC_LIBRARY
 857 SHARED_LIBRARY
 858 STATIC_LIBRARY_SUFFIX
 859 SHARED_LIBRARY_SUFFIX
 860 LIBRARY_PREFIX
 861 TOOLCHAIN_TYPE
 862 STATIC_BUILD
 863 IMPORT_MODULES_MAKE
 864 IMPORT_MODULES_SRC
 865 IMPORT_MODULES_MAN
 866 IMPORT_MODULES_LEGAL
 867 IMPORT_MODULES_CONF
 868 IMPORT_MODULES_LIBS
 869 IMPORT_MODULES_CMDS
 870 IMPORT_MODULES_CLASSES
 871 BUILD_OUTPUT
 872 JDK_TOPDIR
 873 NASHORN_TOPDIR
 874 HOTSPOT_TOPDIR
 875 JAXWS_TOPDIR
 876 JAXP_TOPDIR
 877 CORBA_TOPDIR
 878 LANGTOOLS_TOPDIR
 879 EXTERNAL_BUILDJDK
 880 BUILD_JDK
 881 CREATE_BUILDJDK
 882 JLINK
 883 JMOD
 884 JAVAC_FLAGS
 885 BOOT_JDK_MODULAR
 886 BOOT_JDK_SOURCETARGET
 887 JARSIGNER
 888 JAR
 889 JAVAH
 890 JAVAC
 891 JAVA
 892 BOOT_JDK
 893 JAVA_CHECK
 894 JAVAC_CHECK
 895 VERSION_IS_GA
 896 VERSION_SHORT
 897 VERSION_STRING
 898 VERSION_NUMBER_FOUR_POSITIONS
 899 VERSION_NUMBER
 900 VERSION_OPT
 901 VERSION_BUILD
 902 VERSION_PRE
 903 VERSION_PATCH
 904 VERSION_SECURITY
 905 VERSION_MINOR
 906 VERSION_MAJOR
 907 MACOSX_BUNDLE_ID_BASE
 908 MACOSX_BUNDLE_NAME_BASE
 909 HOTSPOT_VM_DISTRO
 910 COMPANY_NAME
 911 JDK_RC_PLATFORM_NAME
 912 PRODUCT_SUFFIX
 913 PRODUCT_NAME
 914 LAUNCHER_NAME
 915 JLINK_KEEP_PACKAGED_MODULES
 916 COPYRIGHT_YEAR
 917 COMPRESS_JARS
 918 INCLUDE_SA
 919 UNLIMITED_CRYPTO
 920 CACERTS_FILE
 921 ENABLE_HEADLESS_ONLY
 922 DEFAULT_MAKE_TARGET
 923 OS_VERSION_MICRO
 924 OS_VERSION_MINOR
 925 OS_VERSION_MAJOR
 926 PKG_CONFIG
 927 BASH_ARGS
 928 SETFILE
 929 CODESIGN
 930 XATTR
 931 DSYMUTIL
 932 IS_GNU_TIME
 933 PATCH
 934 DTRACE
 935 TIME
 936 STAT
 937 HG
 938 READELF
 939 OTOOL
 940 LDD
 941 ZIPEXE
 942 UNZIP
 943 TAR_SUPPORTS_TRANSFORM
 944 TAR_INCLUDE_PARAM
 945 TAR_CREATE_EXTRA_PARAM
 946 TAR_TYPE
 947 FIND_DELETE
 948 OUTPUT_SYNC
 949 OUTPUT_SYNC_SUPPORTED
 950 CHECK_TOOLSDIR_MAKE
 951 CHECK_TOOLSDIR_GMAKE
 952 CHECK_MAKE
 953 CHECK_GMAKE
 954 MAKE
 955 PKGHANDLER
 956 CONFIGURESUPPORT_OUTPUTDIR
 957 OUTPUT_ROOT
 958 CONF_NAME
 959 SPEC
 960 SDKROOT
 961 XCODEBUILD
 962 JVM_VARIANT_MAIN
 963 VALID_JVM_VARIANTS
 964 JVM_VARIANTS
 965 DEBUG_LEVEL
 966 HOTSPOT_DEBUG_LEVEL
 967 JDK_VARIANT
 968 USERNAME
 969 CANONICAL_TOPDIR
 970 ORIGINAL_TOPDIR
 971 TOPDIR
 972 PATH_SEP
 973 HOTSPOT_BUILD_CPU_DEFINE
 974 HOTSPOT_BUILD_CPU_ARCH
 975 HOTSPOT_BUILD_CPU
 976 HOTSPOT_BUILD_OS_TYPE
 977 HOTSPOT_BUILD_OS
 978 OPENJDK_BUILD_BUNDLE_PLATFORM
 979 OPENJDK_BUILD_OS_EXPORT_DIR
 980 OPENJDK_BUILD_CPU_OSARCH
 981 OPENJDK_BUILD_CPU_ISADIR
 982 OPENJDK_BUILD_CPU_LEGACY_LIB
 983 OPENJDK_BUILD_CPU_LEGACY
 984 HOTSPOT_TARGET_CPU_DEFINE
 985 HOTSPOT_TARGET_CPU_ARCH
 986 HOTSPOT_TARGET_CPU
 987 HOTSPOT_TARGET_OS_TYPE
 988 HOTSPOT_TARGET_OS
 989 DEFINE_CROSS_COMPILE_ARCH
 990 OPENJDK_TARGET_BUNDLE_PLATFORM
 991 OPENJDK_TARGET_OS_EXPORT_DIR
 992 OPENJDK_TARGET_CPU_OSARCH
 993 OPENJDK_TARGET_CPU_ISADIR
 994 OPENJDK_TARGET_CPU_LEGACY_LIB
 995 OPENJDK_TARGET_CPU_LEGACY
 996 REQUIRED_OS_VERSION
 997 REQUIRED_OS_ARCH
 998 REQUIRED_OS_NAME
 999 COMPILE_TYPE
1000 OPENJDK_TARGET_CPU_ENDIAN
1001 OPENJDK_TARGET_CPU_BITS
1002 OPENJDK_TARGET_CPU_ARCH
1003 OPENJDK_TARGET_CPU
1004 OPENJDK_TARGET_OS_ENV
1005 OPENJDK_TARGET_OS_TYPE
1006 OPENJDK_TARGET_OS
1007 OPENJDK_BUILD_CPU_ENDIAN
1008 OPENJDK_BUILD_CPU_BITS
1009 OPENJDK_BUILD_CPU_ARCH
1010 OPENJDK_BUILD_CPU
1011 OPENJDK_BUILD_OS_ENV
1012 OPENJDK_BUILD_OS_TYPE
1013 OPENJDK_BUILD_OS
1014 OPENJDK_BUILD_AUTOCONF_NAME
1015 OPENJDK_TARGET_AUTOCONF_NAME
1016 target_os
1017 target_vendor
1018 target_cpu
1019 target
1020 host_os
1021 host_vendor
1022 host_cpu
1023 host
1024 build_os
1025 build_vendor
1026 build_cpu
1027 build
1028 PANDOC
1029 NICE
1030 CPIO
1031 DF
1032 READLINK
1033 CYGPATH
1034 SED
1035 FGREP
1036 EGREP
1037 GREP
1038 AWK
1039 XARGS
1040 WHICH
1041 WC
1042 UNIQ
1043 UNAME
1044 TR
1045 TOUCH
1046 TEE
1047 TAR
1048 TAIL
1049 SORT
1050 SH
1051 RMDIR
1052 RM
1053 PRINTF
1054 NAWK
1055 MV
1056 MKTEMP
1057 MKDIR
1058 LS
1059 LN
1060 GZIP
1061 GUNZIP
1062 HEAD
1063 FIND
1064 FILE
1065 EXPR
1066 ECHO
1067 DIRNAME
1068 DIFF
1069 DATE
1070 CUT
1071 CP
1072 COMM
1073 CMP
1074 CHMOD
1075 CAT
1076 BASH
1077 BASENAME
1078 DATE_WHEN_CONFIGURED
1079 ORIGINAL_PATH
1080 CONFIGURE_COMMAND_LINE
1081 target_alias
1082 host_alias
1083 build_alias
1084 LIBS
1085 ECHO_T
1086 ECHO_N
1087 ECHO_C
1088 DEFS
1089 mandir
1090 localedir
1091 libdir
1092 psdir
1093 pdfdir
1094 dvidir
1095 htmldir
1096 infodir
1097 docdir
1098 oldincludedir
1099 includedir
1100 localstatedir
1101 sharedstatedir
1102 sysconfdir
1103 datadir
1104 datarootdir
1105 libexecdir
1106 sbindir
1107 bindir
1108 program_transform_name
1109 prefix
1110 exec_prefix
1111 PACKAGE_URL
1112 PACKAGE_BUGREPORT
1113 PACKAGE_STRING
1114 PACKAGE_VERSION
1115 PACKAGE_TARNAME
1116 PACKAGE_NAME
1117 PATH_SEPARATOR
1118 SHELL'
1119 ac_subst_files=''
1120 ac_user_opts='
1121 enable_option_checking
1122 with_target_bits
1123 enable_openjdk_only
1124 with_custom_make_dir
1125 with_jdk_variant
1126 enable_debug
1127 with_debug_level
1128 with_jvm_variants
1129 with_cpu_port
1130 with_devkit
1131 with_sys_root
1132 with_sysroot
1133 with_tools_dir
1134 with_toolchain_path
1135 with_extra_path
1136 with_sdk_name
1137 with_conf_name
1138 with_output_sync
1139 with_default_make_target
1140 enable_headless_only
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_string
1150 with_version_pre
1151 with_version_opt
1152 with_version_build
1153 with_version_major
1154 with_version_minor
1155 with_version_security
1156 with_version_patch
1157 with_boot_jdk
1158 with_build_jdk
1159 with_add_source_root
1160 with_override_source_root
1161 with_adds_and_overrides
1162 with_override_langtools
1163 with_override_corba
1164 with_override_jaxp
1165 with_override_jaxws
1166 with_override_hotspot
1167 with_override_nashorn
1168 with_override_jdk
1169 with_import_hotspot
1170 with_import_modules
1171 enable_static_build
1172 with_toolchain_type
1173 with_extra_cflags
1174 with_extra_cxxflags
1175 with_extra_ldflags
1176 with_toolchain_version
1177 with_build_devkit
1178 with_jtreg
1179 with_abi_profile
1180 enable_warnings_as_errors
1181 with_native_debug_symbols
1182 enable_debug_symbols
1183 enable_zip_debug_info
1184 enable_native_coverage
1185 enable_dtrace
1186 enable_aot
1187 enable_hotspot_gtest
1188 with_stdc__lib
1189 with_msvcr_dll
1190 with_msvcp_dll
1191 with_x
1192 with_cups
1193 with_cups_include
1194 with_freetype
1195 with_freetype_include
1196 with_freetype_lib
1197 with_freetype_src
1198 enable_freetype_bundling
1199 with_alsa
1200 with_alsa_include
1201 with_alsa_lib
1202 with_libffi
1203 with_libffi_include
1204 with_libffi_lib
1205 enable_libffi_bundling
1206 with_libjpeg
1207 with_giflib
1208 with_libpng
1209 with_zlib
1210 with_lcms
1211 with_dxsdk
1212 with_dxsdk_lib
1213 with_dxsdk_include
1214 with_libelf
1215 with_libelf_include
1216 with_libelf_lib
1217 with_jvm_features
1218 with_jvm_interpreter
1219 enable_jtreg_failure_handler
1220 enable_generate_classlist
1221 with_num_cores
1222 with_memory_size
1223 with_jobs
1224 with_test_jobs
1225 with_boot_jdk_jvmargs
1226 with_sjavac_server_java
1227 enable_sjavac
1228 enable_javac_server
1229 enable_icecc
1230 enable_precompiled_headers
1231 enable_ccache
1232 with_ccache_dir
1233 '
1234       ac_precious_vars='build_alias
1235 host_alias
1236 target_alias
1237 BASENAME
1238 BASH
1239 CAT
1240 CHMOD
1241 CMP
1242 COMM
1243 CP
1244 CUT
1245 DATE
1246 DIFF
1247 DIRNAME
1248 ECHO
1249 EXPR
1250 FILE
1251 FIND
1252 HEAD
1253 GUNZIP
1254 GZIP
1255 LN
1256 LS
1257 MKDIR
1258 MKTEMP
1259 MV
1260 NAWK
1261 PRINTF
1262 RM
1263 RMDIR
1264 SH
1265 SORT
1266 TAIL
1267 TAR
1268 TEE
1269 TOUCH
1270 TR
1271 UNAME
1272 UNIQ
1273 WC
1274 WHICH
1275 XARGS
1276 AWK
1277 GREP
1278 EGREP
1279 FGREP
1280 SED
1281 CYGPATH
1282 READLINK
1283 DF
1284 CPIO
1285 NICE
1286 PANDOC
1287 MAKE
1288 UNZIP
1289 ZIPEXE
1290 LDD
1291 OTOOL
1292 READELF
1293 HG
1294 STAT
1295 TIME
1296 DTRACE
1297 PATCH
1298 DSYMUTIL
1299 XATTR
1300 CODESIGN
1301 SETFILE
1302 PKG_CONFIG
1303 JAVA
1304 JAVAC
1305 JAVAH
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 STRIP
1322 NM
1323 GNM
1324 OBJCOPY
1325 OBJDUMP
1326 BUILD_CC
1327 BUILD_CXX
1328 BUILD_NM
1329 BUILD_AR
1330 BUILD_OBJCOPY
1331 BUILD_STRIP
1332 JTREGEXE
1333 XMKMF
1334 FREETYPE_CFLAGS
1335 FREETYPE_LIBS
1336 ALSA_CFLAGS
1337 ALSA_LIBS
1338 LIBFFI_CFLAGS
1339 LIBFFI_LIBS
1340 PNG_CFLAGS
1341 PNG_LIBS
1342 LCMS_CFLAGS
1343 LCMS_LIBS
1344 ELF_CFLAGS
1345 ELF_LIBS
1346 ICECC_CMD
1347 ICECC_CREATE_ENV
1348 ICECC_WRAPPER
1349 CCACHE'
1350 
1351 
1352 # Initialize some variables set by options.
1353 ac_init_help=
1354 ac_init_version=false
1355 ac_unrecognized_opts=
1356 ac_unrecognized_sep=
1357 # The variables have the same names as the options, with
1358 # dashes changed to underlines.
1359 cache_file=/dev/null
1360 exec_prefix=NONE
1361 no_create=
1362 no_recursion=
1363 prefix=NONE
1364 program_prefix=NONE
1365 program_suffix=NONE
1366 program_transform_name=s,x,x,
1367 silent=
1368 site=
1369 srcdir=
1370 verbose=
1371 x_includes=NONE
1372 x_libraries=NONE
1373 
1374 # Installation directory options.
1375 # These are left unexpanded so users can "make install exec_prefix=/foo"
1376 # and all the variables that are supposed to be based on exec_prefix
1377 # by default will actually change.
1378 # Use braces instead of parens because sh, perl, etc. also accept them.
1379 # (The list follows the same order as the GNU Coding Standards.)
1380 bindir='${exec_prefix}/bin'
1381 sbindir='${exec_prefix}/sbin'
1382 libexecdir='${exec_prefix}/libexec'
1383 datarootdir='${prefix}/share'
1384 datadir='${datarootdir}'
1385 sysconfdir='${prefix}/etc'
1386 sharedstatedir='${prefix}/com'
1387 localstatedir='${prefix}/var'
1388 includedir='${prefix}/include'
1389 oldincludedir='/usr/include'
1390 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1391 infodir='${datarootdir}/info'
1392 htmldir='${docdir}'
1393 dvidir='${docdir}'
1394 pdfdir='${docdir}'
1395 psdir='${docdir}'
1396 libdir='${exec_prefix}/lib'
1397 localedir='${datarootdir}/locale'
1398 mandir='${datarootdir}/man'
1399 
1400 ac_prev=
1401 ac_dashdash=
1402 for ac_option
1403 do
1404   # If the previous option needs an argument, assign it.
1405   if test -n "$ac_prev"; then
1406     eval $ac_prev=\$ac_option
1407     ac_prev=
1408     continue
1409   fi
1410 
1411   case $ac_option in
1412   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1413   *=)   ac_optarg= ;;
1414   *)    ac_optarg=yes ;;
1415   esac
1416 
1417   # Accept the important Cygnus configure options, so we can diagnose typos.
1418 
1419   case $ac_dashdash$ac_option in
1420   --)
1421     ac_dashdash=yes ;;
1422 
1423   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1424     ac_prev=bindir ;;
1425   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1426     bindir=$ac_optarg ;;
1427 
1428   -build | --build | --buil | --bui | --bu)
1429     ac_prev=build_alias ;;
1430   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1431     build_alias=$ac_optarg ;;
1432 
1433   -cache-file | --cache-file | --cache-fil | --cache-fi \
1434   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1435     ac_prev=cache_file ;;
1436   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1437   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1438     cache_file=$ac_optarg ;;
1439 
1440   --config-cache | -C)
1441     cache_file=config.cache ;;
1442 
1443   -datadir | --datadir | --datadi | --datad)
1444     ac_prev=datadir ;;
1445   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1446     datadir=$ac_optarg ;;
1447 
1448   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1449   | --dataroo | --dataro | --datar)
1450     ac_prev=datarootdir ;;
1451   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1452   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1453     datarootdir=$ac_optarg ;;
1454 
1455   -disable-* | --disable-*)
1456     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1457     # Reject names that are not valid shell variable names.
1458     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1459       as_fn_error $? "invalid feature name: $ac_useropt"
1460     ac_useropt_orig=$ac_useropt
1461     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1462     case $ac_user_opts in
1463       *"
1464 "enable_$ac_useropt"
1465 "*) ;;
1466       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1467          ac_unrecognized_sep=', ';;
1468     esac
1469     eval enable_$ac_useropt=no ;;
1470 
1471   -docdir | --docdir | --docdi | --doc | --do)
1472     ac_prev=docdir ;;
1473   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1474     docdir=$ac_optarg ;;
1475 
1476   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1477     ac_prev=dvidir ;;
1478   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1479     dvidir=$ac_optarg ;;
1480 
1481   -enable-* | --enable-*)
1482     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1483     # Reject names that are not valid shell variable names.
1484     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1485       as_fn_error $? "invalid feature name: $ac_useropt"
1486     ac_useropt_orig=$ac_useropt
1487     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1488     case $ac_user_opts in
1489       *"
1490 "enable_$ac_useropt"
1491 "*) ;;
1492       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1493          ac_unrecognized_sep=', ';;
1494     esac
1495     eval enable_$ac_useropt=\$ac_optarg ;;
1496 
1497   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1498   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1499   | --exec | --exe | --ex)
1500     ac_prev=exec_prefix ;;
1501   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1502   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1503   | --exec=* | --exe=* | --ex=*)
1504     exec_prefix=$ac_optarg ;;
1505 
1506   -gas | --gas | --ga | --g)
1507     # Obsolete; use --with-gas.
1508     with_gas=yes ;;
1509 
1510   -help | --help | --hel | --he | -h)
1511     ac_init_help=long ;;
1512   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1513     ac_init_help=recursive ;;
1514   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1515     ac_init_help=short ;;
1516 
1517   -host | --host | --hos | --ho)
1518     ac_prev=host_alias ;;
1519   -host=* | --host=* | --hos=* | --ho=*)
1520     host_alias=$ac_optarg ;;
1521 
1522   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1523     ac_prev=htmldir ;;
1524   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1525   | --ht=*)
1526     htmldir=$ac_optarg ;;
1527 
1528   -includedir | --includedir | --includedi | --included | --include \
1529   | --includ | --inclu | --incl | --inc)
1530     ac_prev=includedir ;;
1531   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1532   | --includ=* | --inclu=* | --incl=* | --inc=*)
1533     includedir=$ac_optarg ;;
1534 
1535   -infodir | --infodir | --infodi | --infod | --info | --inf)
1536     ac_prev=infodir ;;
1537   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1538     infodir=$ac_optarg ;;
1539 
1540   -libdir | --libdir | --libdi | --libd)
1541     ac_prev=libdir ;;
1542   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1543     libdir=$ac_optarg ;;
1544 
1545   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1546   | --libexe | --libex | --libe)
1547     ac_prev=libexecdir ;;
1548   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1549   | --libexe=* | --libex=* | --libe=*)
1550     libexecdir=$ac_optarg ;;
1551 
1552   -localedir | --localedir | --localedi | --localed | --locale)
1553     ac_prev=localedir ;;
1554   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1555     localedir=$ac_optarg ;;
1556 
1557   -localstatedir | --localstatedir | --localstatedi | --localstated \
1558   | --localstate | --localstat | --localsta | --localst | --locals)
1559     ac_prev=localstatedir ;;
1560   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1561   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1562     localstatedir=$ac_optarg ;;
1563 
1564   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1565     ac_prev=mandir ;;
1566   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1567     mandir=$ac_optarg ;;
1568 
1569   -nfp | --nfp | --nf)
1570     # Obsolete; use --without-fp.
1571     with_fp=no ;;
1572 
1573   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1574   | --no-cr | --no-c | -n)
1575     no_create=yes ;;
1576 
1577   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1578   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1579     no_recursion=yes ;;
1580 
1581   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1582   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1583   | --oldin | --oldi | --old | --ol | --o)
1584     ac_prev=oldincludedir ;;
1585   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1586   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1587   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1588     oldincludedir=$ac_optarg ;;
1589 
1590   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1591     ac_prev=prefix ;;
1592   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1593     prefix=$ac_optarg ;;
1594 
1595   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1596   | --program-pre | --program-pr | --program-p)
1597     ac_prev=program_prefix ;;
1598   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1599   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1600     program_prefix=$ac_optarg ;;
1601 
1602   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1603   | --program-suf | --program-su | --program-s)
1604     ac_prev=program_suffix ;;
1605   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1606   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1607     program_suffix=$ac_optarg ;;
1608 
1609   -program-transform-name | --program-transform-name \
1610   | --program-transform-nam | --program-transform-na \
1611   | --program-transform-n | --program-transform- \
1612   | --program-transform | --program-transfor \
1613   | --program-transfo | --program-transf \
1614   | --program-trans | --program-tran \
1615   | --progr-tra | --program-tr | --program-t)
1616     ac_prev=program_transform_name ;;
1617   -program-transform-name=* | --program-transform-name=* \
1618   | --program-transform-nam=* | --program-transform-na=* \
1619   | --program-transform-n=* | --program-transform-=* \
1620   | --program-transform=* | --program-transfor=* \
1621   | --program-transfo=* | --program-transf=* \
1622   | --program-trans=* | --program-tran=* \
1623   | --progr-tra=* | --program-tr=* | --program-t=*)
1624     program_transform_name=$ac_optarg ;;
1625 
1626   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1627     ac_prev=pdfdir ;;
1628   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1629     pdfdir=$ac_optarg ;;
1630 
1631   -psdir | --psdir | --psdi | --psd | --ps)
1632     ac_prev=psdir ;;
1633   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1634     psdir=$ac_optarg ;;
1635 
1636   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1637   | -silent | --silent | --silen | --sile | --sil)
1638     silent=yes ;;
1639 
1640   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1641     ac_prev=sbindir ;;
1642   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1643   | --sbi=* | --sb=*)
1644     sbindir=$ac_optarg ;;
1645 
1646   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1647   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1648   | --sharedst | --shareds | --shared | --share | --shar \
1649   | --sha | --sh)
1650     ac_prev=sharedstatedir ;;
1651   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1652   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1653   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1654   | --sha=* | --sh=*)
1655     sharedstatedir=$ac_optarg ;;
1656 
1657   -site | --site | --sit)
1658     ac_prev=site ;;
1659   -site=* | --site=* | --sit=*)
1660     site=$ac_optarg ;;
1661 
1662   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1663     ac_prev=srcdir ;;
1664   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1665     srcdir=$ac_optarg ;;
1666 
1667   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1668   | --syscon | --sysco | --sysc | --sys | --sy)
1669     ac_prev=sysconfdir ;;
1670   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1671   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1672     sysconfdir=$ac_optarg ;;
1673 
1674   -target | --target | --targe | --targ | --tar | --ta | --t)
1675     ac_prev=target_alias ;;
1676   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1677     target_alias=$ac_optarg ;;
1678 
1679   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1680     verbose=yes ;;
1681 
1682   -version | --version | --versio | --versi | --vers | -V)
1683     ac_init_version=: ;;
1684 
1685   -with-* | --with-*)
1686     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1687     # Reject names that are not valid shell variable names.
1688     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1689       as_fn_error $? "invalid package name: $ac_useropt"
1690     ac_useropt_orig=$ac_useropt
1691     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1692     case $ac_user_opts in
1693       *"
1694 "with_$ac_useropt"
1695 "*) ;;
1696       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1697          ac_unrecognized_sep=', ';;
1698     esac
1699     eval with_$ac_useropt=\$ac_optarg ;;
1700 
1701   -without-* | --without-*)
1702     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1703     # Reject names that are not valid shell variable names.
1704     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1705       as_fn_error $? "invalid package name: $ac_useropt"
1706     ac_useropt_orig=$ac_useropt
1707     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1708     case $ac_user_opts in
1709       *"
1710 "with_$ac_useropt"
1711 "*) ;;
1712       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1713          ac_unrecognized_sep=', ';;
1714     esac
1715     eval with_$ac_useropt=no ;;
1716 
1717   --x)
1718     # Obsolete; use --with-x.
1719     with_x=yes ;;
1720 
1721   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1722   | --x-incl | --x-inc | --x-in | --x-i)
1723     ac_prev=x_includes ;;
1724   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1725   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1726     x_includes=$ac_optarg ;;
1727 
1728   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1729   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1730     ac_prev=x_libraries ;;
1731   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1732   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1733     x_libraries=$ac_optarg ;;
1734 
1735   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1736 Try \`$0 --help' for more information"
1737     ;;
1738 
1739   *=*)
1740     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1741     # Reject names that are not valid shell variable names.
1742     case $ac_envvar in #(
1743       '' | [0-9]* | *[!_$as_cr_alnum]* )
1744       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1745     esac
1746     eval $ac_envvar=\$ac_optarg
1747     export $ac_envvar ;;
1748 
1749   *)
1750     # FIXME: should be removed in autoconf 3.0.
1751     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1752     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1753       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1754     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1755     ;;
1756 
1757   esac
1758 done
1759 
1760 if test -n "$ac_prev"; then
1761   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1762   as_fn_error $? "missing argument to $ac_option"
1763 fi
1764 
1765 if test -n "$ac_unrecognized_opts"; then
1766   case $enable_option_checking in
1767     no) ;;
1768     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1769     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1770   esac
1771 fi
1772 
1773 # Check all directory arguments for consistency.
1774 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1775                 datadir sysconfdir sharedstatedir localstatedir includedir \
1776                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1777                 libdir localedir mandir
1778 do
1779   eval ac_val=\$$ac_var
1780   # Remove trailing slashes.
1781   case $ac_val in
1782     */ )
1783       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1784       eval $ac_var=\$ac_val;;
1785   esac
1786   # Be sure to have absolute directory names.
1787   case $ac_val in
1788     [\\/$]* | ?:[\\/]* )  continue;;
1789     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1790   esac
1791   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1792 done
1793 
1794 # There might be people who depend on the old broken behavior: `$host'
1795 # used to hold the argument of --host etc.
1796 # FIXME: To remove some day.
1797 build=$build_alias
1798 host=$host_alias
1799 target=$target_alias
1800 
1801 # FIXME: To remove some day.
1802 if test "x$host_alias" != x; then
1803   if test "x$build_alias" = x; then
1804     cross_compiling=maybe
1805   elif test "x$build_alias" != "x$host_alias"; then
1806     cross_compiling=yes
1807   fi
1808 fi
1809 
1810 ac_tool_prefix=
1811 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1812 
1813 test "$silent" = yes && exec 6>/dev/null
1814 
1815 
1816 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1817 ac_ls_di=`ls -di .` &&
1818 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1819   as_fn_error $? "working directory cannot be determined"
1820 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1821   as_fn_error $? "pwd does not report name of working directory"
1822 
1823 
1824 # Find the source files, if location was not specified.
1825 if test -z "$srcdir"; then
1826   ac_srcdir_defaulted=yes
1827   # Try the directory containing this script, then the parent directory.
1828   ac_confdir=`$as_dirname -- "$as_myself" ||
1829 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1830          X"$as_myself" : 'X\(//\)[^/]' \| \
1831          X"$as_myself" : 'X\(//\)$' \| \
1832          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1833 $as_echo X"$as_myself" |
1834     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1835             s//\1/
1836             q
1837           }
1838           /^X\(\/\/\)[^/].*/{
1839             s//\1/
1840             q
1841           }
1842           /^X\(\/\/\)$/{
1843             s//\1/
1844             q
1845           }
1846           /^X\(\/\).*/{
1847             s//\1/
1848             q
1849           }
1850           s/.*/./; q'`
1851   srcdir=$ac_confdir
1852   if test ! -r "$srcdir/$ac_unique_file"; then
1853     srcdir=..
1854   fi
1855 else
1856   ac_srcdir_defaulted=no
1857 fi
1858 if test ! -r "$srcdir/$ac_unique_file"; then
1859   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1860   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1861 fi
1862 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1863 ac_abs_confdir=`(
1864         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1865         pwd)`
1866 # When building in place, set srcdir=.
1867 if test "$ac_abs_confdir" = "$ac_pwd"; then
1868   srcdir=.
1869 fi
1870 # Remove unnecessary trailing slashes from srcdir.
1871 # Double slashes in file names in object file debugging info
1872 # mess up M-x gdb in Emacs.
1873 case $srcdir in
1874 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1875 esac
1876 for ac_var in $ac_precious_vars; do
1877   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1878   eval ac_env_${ac_var}_value=\$${ac_var}
1879   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1880   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1881 done
1882 
1883 #
1884 # Report the --help message.
1885 #
1886 if test "$ac_init_help" = "long"; then
1887   # Omit some internal or obsolete options to make the list less imposing.
1888   # This message is too long to be a string in the A/UX 3.1 sh.
1889   cat <<_ACEOF
1890 \`configure' configures OpenJDK jdk9 to adapt to many kinds of systems.
1891 
1892 Usage: $0 [OPTION]... [VAR=VALUE]...
1893 
1894 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1895 VAR=VALUE.  See below for descriptions of some of the useful variables.
1896 
1897 Defaults for the options are specified in brackets.
1898 
1899 Configuration:
1900   -h, --help              display this help and exit
1901       --help=short        display options specific to this package
1902       --help=recursive    display the short help of all the included packages
1903   -V, --version           display version information and exit
1904   -q, --quiet, --silent   do not print \`checking ...' messages
1905       --cache-file=FILE   cache test results in FILE [disabled]
1906   -C, --config-cache      alias for \`--cache-file=config.cache'
1907   -n, --no-create         do not create output files
1908       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1909 
1910 Installation directories:
1911   --prefix=PREFIX         install architecture-independent files in PREFIX
1912                           [$ac_default_prefix]
1913   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1914                           [PREFIX]
1915 
1916 By default, \`make install' will install all the files in
1917 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1918 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1919 for instance \`--prefix=\$HOME'.
1920 
1921 For better control, use the options below.
1922 
1923 Fine tuning of the installation directories:
1924   --bindir=DIR            user executables [EPREFIX/bin]
1925   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1926   --libexecdir=DIR        program executables [EPREFIX/libexec]
1927   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1928   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1929   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1930   --libdir=DIR            object code libraries [EPREFIX/lib]
1931   --includedir=DIR        C header files [PREFIX/include]
1932   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1933   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1934   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1935   --infodir=DIR           info documentation [DATAROOTDIR/info]
1936   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1937   --mandir=DIR            man documentation [DATAROOTDIR/man]
1938   --docdir=DIR            documentation root [DATAROOTDIR/doc/openjdk]
1939   --htmldir=DIR           html documentation [DOCDIR]
1940   --dvidir=DIR            dvi documentation [DOCDIR]
1941   --pdfdir=DIR            pdf documentation [DOCDIR]
1942   --psdir=DIR             ps documentation [DOCDIR]
1943 _ACEOF
1944 
1945   cat <<\_ACEOF
1946 
1947 X features:
1948   --x-includes=DIR    X include files are in DIR
1949   --x-libraries=DIR   X library files are in DIR
1950 
1951 System types:
1952   --build=BUILD     configure for building on BUILD [guessed]
1953   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1954   --target=TARGET   configure for building compilers for TARGET [HOST]
1955 _ACEOF
1956 fi
1957 
1958 if test -n "$ac_init_help"; then
1959   case $ac_init_help in
1960      short | recursive ) echo "Configuration of OpenJDK jdk9:";;
1961    esac
1962   cat <<\_ACEOF
1963 
1964 Optional Features:
1965   --disable-option-checking  ignore unrecognized --enable/--with options
1966   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1967   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1968   --enable-openjdk-only   suppress building custom source even if present
1969                           [disabled]
1970   --enable-debug          set the debug level to fastdebug (shorthand for
1971                           --with-debug-level=fastdebug) [disabled]
1972   --enable-headless-only  only build headless (no GUI) support [disabled]
1973   --disable-unlimited-crypto
1974                           Disable unlimited crypto policy [enabled]
1975   --disable-keep-packaged-modules
1976                           Do not keep packaged modules in jdk image [enable]
1977   --enable-static-build   enable static library build [disabled]
1978   --disable-warnings-as-errors
1979                           do not consider native warnings to be an error
1980                           [enabled]
1981   --enable-debug-symbols  Deprecated. Option is kept for backwards
1982                           compatibility and is ignored
1983   --enable-zip-debug-info Deprecated. Option is kept for backwards
1984                           compatibility and is ignored
1985   --enable-native-coverage
1986                           enable native compilation with code coverage
1987                           data[disabled]
1988   --enable-dtrace[=yes/no/auto]
1989                           enable dtrace. Default is auto, where dtrace is
1990                           enabled if all dependencies are present.
1991   --enable-aot[=yes/no/auto]
1992                           enable ahead of time compilation feature. Default is
1993                           auto, where aot is enabled if all dependencies are
1994                           present.
1995   --disable-hotspot-gtest Disables building of the Hotspot unit tests
1996   --disable-freetype-bundling
1997                           disable bundling of the freetype library with the
1998                           build result [enabled on Windows or when using
1999                           --with-freetype, disabled otherwise]
2000   --enable-libffi-bundling
2001                           enable bundling of libffi.so to make the built JDK
2002                           runnable on more systems
2003   --enable-jtreg-failure-handler
2004                           forces build of the jtreg failure handler to be
2005                           enabled, missing dependencies become fatal errors.
2006                           Default is auto, where the failure handler is built
2007                           if all dependencies are present and otherwise just
2008                           disabled.
2009   --disable-generate-classlist
2010                           forces enabling or disabling of the generation of a
2011                           CDS classlist at build time. Default is to generate
2012                           it when either the server or client JVMs are built.
2013   --enable-sjavac         use sjavac to do fast incremental compiles
2014                           [disabled]
2015   --disable-javac-server  disable javac server [enabled]
2016   --enable-icecc          enable distribted compilation of native code using
2017                           icecc/icecream [disabled]
2018   --disable-precompiled-headers
2019                           disable using precompiled headers when compiling C++
2020                           [enabled]
2021   --enable-ccache         enable using ccache to speed up recompilations
2022                           [disabled]
2023 
2024 Optional Packages:
2025   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
2026   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
2027   --with-target-bits      build 32-bit or 64-bit binaries (for platforms that
2028                           support it), e.g. --with-target-bits=32 [guessed]
2029   --with-custom-make-dir  Deprecated. Option is kept for backwards
2030                           compatibility and is ignored
2031   --with-jdk-variant      JDK variant to build (normal) [normal]
2032   --with-debug-level      set the debug level (release, fastdebug, slowdebug,
2033                           optimized) [release]
2034   --with-jvm-variants     JVM variants (separated by commas) to build
2035                           (server,client,minimal,core,zero,zeroshark,custom)
2036                           [server]
2037   --with-cpu-port         specify sources to use for Hotspot 64-bit ARM port
2038                           (arm64,aarch64) [aarch64]
2039   --with-devkit           use this devkit for compilers, tools and resources
2040   --with-sys-root         alias for --with-sysroot for backwards compatability
2041   --with-sysroot          use this directory as sysroot
2042   --with-tools-dir        alias for --with-toolchain-path for backwards
2043                           compatibility
2044   --with-toolchain-path   prepend these directories when searching for
2045                           toolchain binaries (compilers etc)
2046   --with-extra-path       prepend these directories to the default path
2047   --with-sdk-name         use the platform SDK of the given name. [macosx]
2048   --with-conf-name        use this as the name of the configuration [generated
2049                           from important configuration options]
2050   --with-output-sync      set make output sync type if supported by make.
2051                           [recurse]
2052   --with-default-make-target
2053                           set the default make target [exploded-image]
2054   --with-cacerts-file     specify alternative cacerts file
2055   --with-copyright-year   Set copyright year value for build [current year]
2056   --with-milestone        Deprecated. Option is kept for backwards
2057                           compatibility and is ignored
2058   --with-update-version   Deprecated. Option is kept for backwards
2059                           compatibility and is ignored
2060   --with-user-release-suffix
2061                           Deprecated. Option is kept for backwards
2062                           compatibility and is ignored
2063   --with-build-number     Deprecated. Option is kept for backwards
2064                           compatibility and is ignored
2065   --with-version-string   Set version string [calculated]
2066   --with-version-pre      Set the base part of the version 'PRE' field
2067                           (pre-release identifier) ['internal']
2068   --with-version-opt      Set version 'OPT' field (build metadata)
2069                           [<timestamp>.<user>.<dirname>]
2070   --with-version-build    Set version 'BUILD' field (build number) [not
2071                           specified]
2072   --with-version-major    Set version 'MAJOR' field (first number) [current
2073                           source value]
2074   --with-version-minor    Set version 'MINOR' field (second number) [current
2075                           source value]
2076   --with-version-security Set version 'SECURITY' field (third number) [current
2077                           source value]
2078   --with-version-patch    Set version 'PATCH' field (fourth number) [not
2079                           specified]
2080   --with-boot-jdk         path to Boot JDK (used to bootstrap build) [probed]
2081   --with-build-jdk        path to JDK of same version as is being built[the
2082                           newly built JDK]
2083   --with-add-source-root  Deprecated. Option is kept for backwards
2084                           compatibility and is ignored
2085   --with-override-source-root
2086                           Deprecated. Option is kept for backwards
2087                           compatibility and is ignored
2088   --with-adds-and-overrides
2089                           Deprecated. Option is kept for backwards
2090                           compatibility and is ignored
2091   --with-override-langtools
2092                           Deprecated. Option is kept for backwards
2093                           compatibility and is ignored
2094   --with-override-corba   Deprecated. Option is kept for backwards
2095                           compatibility and is ignored
2096   --with-override-jaxp    Deprecated. Option is kept for backwards
2097                           compatibility and is ignored
2098   --with-override-jaxws   Deprecated. Option is kept for backwards
2099                           compatibility and is ignored
2100   --with-override-hotspot Deprecated. Option is kept for backwards
2101                           compatibility and is ignored
2102   --with-override-nashorn Deprecated. Option is kept for backwards
2103                           compatibility and is ignored
2104   --with-override-jdk     Deprecated. Option is kept for backwards
2105                           compatibility and is ignored
2106   --with-import_hotspot   Deprecated. Option is kept for backwards
2107                           compatibility and is ignored
2108   --with-import-modules   import a set of prebuilt modules either as a zip
2109                           file or an exploded directory
2110   --with-toolchain-type   the toolchain type (or family) to use, use '--help'
2111                           to show possible values [platform dependent]
2112   --with-extra-cflags     extra flags to be used when compiling jdk c-files
2113   --with-extra-cxxflags   extra flags to be used when compiling jdk c++-files
2114   --with-extra-ldflags    extra flags to be used when linking jdk
2115   --with-toolchain-version
2116                           the version of the toolchain to look for, use
2117                           '--help' to show possible values [platform
2118                           dependent]
2119   --with-build-devkit     Devkit to use for the build platform toolchain
2120   --with-jtreg            Regression Test Harness [probed]
2121   --with-abi-profile      specify ABI profile for ARM builds
2122                           (arm-vfp-sflt,arm-vfp-hflt,arm-sflt,
2123                           armv5-vfp-sflt,armv6-vfp-hflt,arm64,aarch64)
2124                           [toolchain dependent]
2125   --with-native-debug-symbols
2126                           set the native debug symbol configuration (none,
2127                           internal, external, zipped) [varying]
2128   --with-stdc++lib=<static>,<dynamic>,<default>
2129                           force linking of the C++ runtime on Linux to either
2130                           static or dynamic, default is static with dynamic as
2131                           fallback
2132   --with-msvcr-dll        path to microsoft C runtime dll (msvcr*.dll)
2133                           (Windows only) [probed]
2134   --with-msvcp-dll        path to microsoft C++ runtime dll (msvcp*.dll)
2135                           (Windows only) [probed]
2136   --with-x                use the X Window System
2137   --with-cups             specify prefix directory for the cups package
2138                           (expecting the headers under PATH/include)
2139   --with-cups-include     specify directory for the cups include files
2140   --with-freetype         specify prefix directory for the freetype package
2141                           (expecting the libraries under PATH/lib and the
2142                           headers under PATH/include)
2143   --with-freetype-include specify directory for the freetype include files
2144   --with-freetype-lib     specify directory for the freetype library
2145   --with-freetype-src     specify directory with freetype sources to
2146                           automatically build the library (experimental,
2147                           Windows-only)
2148   --with-alsa             specify prefix directory for the alsa package
2149                           (expecting the libraries under PATH/lib and the
2150                           headers under PATH/include)
2151   --with-alsa-include     specify directory for the alsa include files
2152   --with-alsa-lib         specify directory for the alsa library
2153   --with-libffi           specify prefix directory for the libffi package
2154                           (expecting the libraries under PATH/lib and the
2155                           headers under PATH/include)
2156   --with-libffi-include   specify directory for the libffi include files
2157   --with-libffi-lib       specify directory for the libffi library
2158   --with-libjpeg          use libjpeg from build system or OpenJDK source
2159                           (system, bundled) [bundled]
2160   --with-giflib           use giflib from build system or OpenJDK source
2161                           (system, bundled) [bundled]
2162   --with-libpng           use libpng from build system or OpenJDK source
2163                           (system, bundled) [bundled]
2164   --with-zlib             use zlib from build system or OpenJDK source
2165                           (system, bundled) [bundled]
2166   --with-lcms             use lcms2 from build system or OpenJDK source
2167                           (system, bundled) [bundled]
2168   --with-dxsdk            Deprecated. Option is kept for backwards
2169                           compatibility and is ignored
2170   --with-dxsdk-lib        Deprecated. Option is kept for backwards
2171                           compatibility and is ignored
2172   --with-dxsdk-include    Deprecated. Option is kept for backwards
2173                           compatibility and is ignored
2174   --with-libelf           specify prefix directory for the libelf package
2175                           (expecting the libraries under PATH/lib and the
2176                           headers under PATH/include)
2177   --with-libelf-include   specify directory for the libelf include files
2178   --with-libelf-lib       specify directory for the libelf library
2179   --with-jvm-features     additional JVM features to enable (separated by
2180                           comma), use '--help' to show possible values [none]
2181   --with-jvm-interpreter  Deprecated. Option is kept for backwards
2182                           compatibility and is ignored
2183   --with-num-cores        number of cores in the build system, e.g.
2184                           --with-num-cores=8 [probed]
2185   --with-memory-size      memory (in MB) available in the build system, e.g.
2186                           --with-memory-size=1024 [probed]
2187   --with-jobs             number of parallel jobs to let make run [calculated
2188                           based on cores and memory]
2189   --with-test-jobs        number of parallel tests jobs to run [based on build
2190                           jobs]
2191   --with-boot-jdk-jvmargs specify JVM arguments to be passed to all java
2192                           invocations of boot JDK, overriding the default
2193                           values, e.g --with-boot-jdk-jvmargs="-Xmx8G
2194                           -enableassertions"
2195   --with-sjavac-server-java
2196                           use this java binary for running the sjavac
2197                           background server [Boot JDK java]
2198   --with-ccache-dir       where to store ccache files [~/.ccache]
2199 
2200 Some influential environment variables:
2201   BASENAME    Override default value for BASENAME
2202   BASH        Override default value for BASH
2203   CAT         Override default value for CAT
2204   CHMOD       Override default value for CHMOD
2205   CMP         Override default value for CMP
2206   COMM        Override default value for COMM
2207   CP          Override default value for CP
2208   CUT         Override default value for CUT
2209   DATE        Override default value for DATE
2210   DIFF        Override default value for DIFF
2211   DIRNAME     Override default value for DIRNAME
2212   ECHO        Override default value for ECHO
2213   EXPR        Override default value for EXPR
2214   FILE        Override default value for FILE
2215   FIND        Override default value for FIND
2216   HEAD        Override default value for HEAD
2217   GUNZIP      Override default value for GUNZIP
2218   GZIP        Override default value for GZIP
2219   LN          Override default value for LN
2220   LS          Override default value for LS
2221   MKDIR       Override default value for MKDIR
2222   MKTEMP      Override default value for MKTEMP
2223   MV          Override default value for MV
2224   NAWK        Override default value for NAWK
2225   PRINTF      Override default value for PRINTF
2226   RM          Override default value for RM
2227   RMDIR       Override default value for RMDIR
2228   SH          Override default value for SH
2229   SORT        Override default value for SORT
2230   TAIL        Override default value for TAIL
2231   TAR         Override default value for TAR
2232   TEE         Override default value for TEE
2233   TOUCH       Override default value for TOUCH
2234   TR          Override default value for TR
2235   UNAME       Override default value for UNAME
2236   UNIQ        Override default value for UNIQ
2237   WC          Override default value for WC
2238   WHICH       Override default value for WHICH
2239   XARGS       Override default value for XARGS
2240   AWK         Override default value for AWK
2241   GREP        Override default value for GREP
2242   EGREP       Override default value for EGREP
2243   FGREP       Override default value for FGREP
2244   SED         Override default value for SED
2245   CYGPATH     Override default value for CYGPATH
2246   READLINK    Override default value for READLINK
2247   DF          Override default value for DF
2248   CPIO        Override default value for CPIO
2249   NICE        Override default value for NICE
2250   PANDOC      Override default value for PANDOC
2251   MAKE        Override default value for MAKE
2252   UNZIP       Override default value for UNZIP
2253   ZIPEXE      Override default value for ZIPEXE
2254   LDD         Override default value for LDD
2255   OTOOL       Override default value for OTOOL
2256   READELF     Override default value for READELF
2257   HG          Override default value for HG
2258   STAT        Override default value for STAT
2259   TIME        Override default value for TIME
2260   DTRACE      Override default value for DTRACE
2261   PATCH       Override default value for PATCH
2262   DSYMUTIL    Override default value for DSYMUTIL
2263   XATTR       Override default value for XATTR
2264   CODESIGN    Override default value for CODESIGN
2265   SETFILE     Override default value for SETFILE
2266   PKG_CONFIG  path to pkg-config utility
2267   JAVA        Override default value for JAVA
2268   JAVAC       Override default value for JAVAC
2269   JAVAH       Override default value for JAVAH
2270   JAR         Override default value for JAR
2271   JARSIGNER   Override default value for JARSIGNER
2272   CC          C compiler command
2273   CFLAGS      C compiler flags
2274   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2275               nonstandard directory <lib dir>
2276   LIBS        libraries to pass to the linker, e.g. -l<library>
2277   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2278               you have headers in a nonstandard directory <include dir>
2279   CXX         C++ compiler command
2280   CXXFLAGS    C++ compiler flags
2281   CPP         C preprocessor
2282   CXXCPP      C++ preprocessor
2283   AS          Override default value for AS
2284   AR          Override default value for AR
2285   LIPO        Override default value for LIPO
2286   STRIP       Override default value for STRIP
2287   NM          Override default value for NM
2288   GNM         Override default value for GNM
2289   OBJCOPY     Override default value for OBJCOPY
2290   OBJDUMP     Override default value for OBJDUMP
2291   BUILD_CC    Override default value for BUILD_CC
2292   BUILD_CXX   Override default value for BUILD_CXX
2293   BUILD_NM    Override default value for BUILD_NM
2294   BUILD_AR    Override default value for BUILD_AR
2295   BUILD_OBJCOPY
2296               Override default value for BUILD_OBJCOPY
2297   BUILD_STRIP Override default value for BUILD_STRIP
2298   JTREGEXE    Override default value for JTREGEXE
2299   XMKMF       Path to xmkmf, Makefile generator for X Window System
2300   FREETYPE_CFLAGS
2301               C compiler flags for FREETYPE, overriding pkg-config
2302   FREETYPE_LIBS
2303               linker flags for FREETYPE, overriding pkg-config
2304   ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
2305   ALSA_LIBS   linker flags for ALSA, overriding pkg-config
2306   LIBFFI_CFLAGS
2307               C compiler flags for LIBFFI, overriding pkg-config
2308   LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
2309   PNG_CFLAGS  C compiler flags for PNG, overriding pkg-config
2310   PNG_LIBS    linker flags for PNG, overriding pkg-config
2311   LCMS_CFLAGS C compiler flags for LCMS, overriding pkg-config
2312   LCMS_LIBS   linker flags for LCMS, overriding pkg-config
2313   ELF_CFLAGS  C compiler flags for ELF, overriding pkg-config
2314   ELF_LIBS    linker flags for ELF, overriding pkg-config
2315   ICECC_CMD   Override default value for ICECC_CMD
2316   ICECC_CREATE_ENV
2317               Override default value for ICECC_CREATE_ENV
2318   ICECC_WRAPPER
2319               Override default value for ICECC_WRAPPER
2320   CCACHE      Override default value for CCACHE
2321 
2322 Use these variables to override the choices made by `configure' or to help
2323 it to find libraries and programs with nonstandard names/locations.
2324 
2325 Report bugs to <build-dev@openjdk.java.net>.
2326 OpenJDK home page: <http://openjdk.java.net>.
2327 _ACEOF
2328 ac_status=$?
2329 fi
2330 
2331 if test "$ac_init_help" = "recursive"; then
2332   # If there are subdirs, report their specific --help.
2333   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2334     test -d "$ac_dir" ||
2335       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2336       continue
2337     ac_builddir=.
2338 
2339 case "$ac_dir" in
2340 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2341 *)
2342   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2343   # A ".." for each directory in $ac_dir_suffix.
2344   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2345   case $ac_top_builddir_sub in
2346   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2347   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2348   esac ;;
2349 esac
2350 ac_abs_top_builddir=$ac_pwd
2351 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2352 # for backward compatibility:
2353 ac_top_builddir=$ac_top_build_prefix
2354 
2355 case $srcdir in
2356   .)  # We are building in place.
2357     ac_srcdir=.
2358     ac_top_srcdir=$ac_top_builddir_sub
2359     ac_abs_top_srcdir=$ac_pwd ;;
2360   [\\/]* | ?:[\\/]* )  # Absolute name.
2361     ac_srcdir=$srcdir$ac_dir_suffix;
2362     ac_top_srcdir=$srcdir
2363     ac_abs_top_srcdir=$srcdir ;;
2364   *) # Relative name.
2365     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2366     ac_top_srcdir=$ac_top_build_prefix$srcdir
2367     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2368 esac
2369 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2370 
2371     cd "$ac_dir" || { ac_status=$?; continue; }
2372     # Check for guested configure.
2373     if test -f "$ac_srcdir/configure.gnu"; then
2374       echo &&
2375       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2376     elif test -f "$ac_srcdir/configure"; then
2377       echo &&
2378       $SHELL "$ac_srcdir/configure" --help=recursive
2379     else
2380       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2381     fi || ac_status=$?
2382     cd "$ac_pwd" || { ac_status=$?; break; }
2383   done
2384 fi
2385 
2386 test -n "$ac_init_help" && exit $ac_status
2387 if $ac_init_version; then
2388   cat <<\_ACEOF
2389 OpenJDK configure jdk9
2390 generated by GNU Autoconf 2.69
2391 
2392 Copyright (C) 2012 Free Software Foundation, Inc.
2393 This configure script is free software; the Free Software Foundation
2394 gives unlimited permission to copy, distribute and modify it.
2395 _ACEOF
2396   exit
2397 fi
2398 
2399 ## ------------------------ ##
2400 ## Autoconf initialization. ##
2401 ## ------------------------ ##
2402 
2403 # ac_fn_c_try_compile LINENO
2404 # --------------------------
2405 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2406 ac_fn_c_try_compile ()
2407 {
2408   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2409   rm -f conftest.$ac_objext
2410   if { { ac_try="$ac_compile"
2411 case "(($ac_try" in
2412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2413   *) ac_try_echo=$ac_try;;
2414 esac
2415 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2416 $as_echo "$ac_try_echo"; } >&5
2417   (eval "$ac_compile") 2>conftest.err
2418   ac_status=$?
2419   if test -s conftest.err; then
2420     grep -v '^ *+' conftest.err >conftest.er1
2421     cat conftest.er1 >&5
2422     mv -f conftest.er1 conftest.err
2423   fi
2424   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2425   test $ac_status = 0; } && {
2426          test -z "$ac_c_werror_flag" ||
2427          test ! -s conftest.err
2428        } && test -s conftest.$ac_objext; then :
2429   ac_retval=0
2430 else
2431   $as_echo "$as_me: failed program was:" >&5
2432 sed 's/^/| /' conftest.$ac_ext >&5
2433 
2434         ac_retval=1
2435 fi
2436   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2437   as_fn_set_status $ac_retval
2438 
2439 } # ac_fn_c_try_compile
2440 
2441 # ac_fn_cxx_try_compile LINENO
2442 # ----------------------------
2443 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2444 ac_fn_cxx_try_compile ()
2445 {
2446   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2447   rm -f conftest.$ac_objext
2448   if { { ac_try="$ac_compile"
2449 case "(($ac_try" in
2450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2451   *) ac_try_echo=$ac_try;;
2452 esac
2453 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2454 $as_echo "$ac_try_echo"; } >&5
2455   (eval "$ac_compile") 2>conftest.err
2456   ac_status=$?
2457   if test -s conftest.err; then
2458     grep -v '^ *+' conftest.err >conftest.er1
2459     cat conftest.er1 >&5
2460     mv -f conftest.er1 conftest.err
2461   fi
2462   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2463   test $ac_status = 0; } && {
2464          test -z "$ac_cxx_werror_flag" ||
2465          test ! -s conftest.err
2466        } && test -s conftest.$ac_objext; then :
2467   ac_retval=0
2468 else
2469   $as_echo "$as_me: failed program was:" >&5
2470 sed 's/^/| /' conftest.$ac_ext >&5
2471 
2472         ac_retval=1
2473 fi
2474   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2475   as_fn_set_status $ac_retval
2476 
2477 } # ac_fn_cxx_try_compile
2478 
2479 # ac_fn_c_try_cpp LINENO
2480 # ----------------------
2481 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2482 ac_fn_c_try_cpp ()
2483 {
2484   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2485   if { { ac_try="$ac_cpp conftest.$ac_ext"
2486 case "(($ac_try" in
2487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2488   *) ac_try_echo=$ac_try;;
2489 esac
2490 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2491 $as_echo "$ac_try_echo"; } >&5
2492   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2493   ac_status=$?
2494   if test -s conftest.err; then
2495     grep -v '^ *+' conftest.err >conftest.er1
2496     cat conftest.er1 >&5
2497     mv -f conftest.er1 conftest.err
2498   fi
2499   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2500   test $ac_status = 0; } > conftest.i && {
2501          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2502          test ! -s conftest.err
2503        }; then :
2504   ac_retval=0
2505 else
2506   $as_echo "$as_me: failed program was:" >&5
2507 sed 's/^/| /' conftest.$ac_ext >&5
2508 
2509     ac_retval=1
2510 fi
2511   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2512   as_fn_set_status $ac_retval
2513 
2514 } # ac_fn_c_try_cpp
2515 
2516 # ac_fn_cxx_try_cpp LINENO
2517 # ------------------------
2518 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2519 ac_fn_cxx_try_cpp ()
2520 {
2521   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2522   if { { ac_try="$ac_cpp conftest.$ac_ext"
2523 case "(($ac_try" in
2524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2525   *) ac_try_echo=$ac_try;;
2526 esac
2527 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2528 $as_echo "$ac_try_echo"; } >&5
2529   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2530   ac_status=$?
2531   if test -s conftest.err; then
2532     grep -v '^ *+' conftest.err >conftest.er1
2533     cat conftest.er1 >&5
2534     mv -f conftest.er1 conftest.err
2535   fi
2536   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2537   test $ac_status = 0; } > conftest.i && {
2538          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2539          test ! -s conftest.err
2540        }; then :
2541   ac_retval=0
2542 else
2543   $as_echo "$as_me: failed program was:" >&5
2544 sed 's/^/| /' conftest.$ac_ext >&5
2545 
2546     ac_retval=1
2547 fi
2548   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2549   as_fn_set_status $ac_retval
2550 
2551 } # ac_fn_cxx_try_cpp
2552 
2553 # ac_fn_c_try_link LINENO
2554 # -----------------------
2555 # Try to link conftest.$ac_ext, and return whether this succeeded.
2556 ac_fn_c_try_link ()
2557 {
2558   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2559   rm -f conftest.$ac_objext conftest$ac_exeext
2560   if { { ac_try="$ac_link"
2561 case "(($ac_try" in
2562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2563   *) ac_try_echo=$ac_try;;
2564 esac
2565 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2566 $as_echo "$ac_try_echo"; } >&5
2567   (eval "$ac_link") 2>conftest.err
2568   ac_status=$?
2569   if test -s conftest.err; then
2570     grep -v '^ *+' conftest.err >conftest.er1
2571     cat conftest.er1 >&5
2572     mv -f conftest.er1 conftest.err
2573   fi
2574   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2575   test $ac_status = 0; } && {
2576          test -z "$ac_c_werror_flag" ||
2577          test ! -s conftest.err
2578        } && test -s conftest$ac_exeext && {
2579          test "$cross_compiling" = yes ||
2580          test -x conftest$ac_exeext
2581        }; then :
2582   ac_retval=0
2583 else
2584   $as_echo "$as_me: failed program was:" >&5
2585 sed 's/^/| /' conftest.$ac_ext >&5
2586 
2587         ac_retval=1
2588 fi
2589   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2590   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2591   # interfere with the next link command; also delete a directory that is
2592   # left behind by Apple's compiler.  We do this before executing the actions.
2593   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2594   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2595   as_fn_set_status $ac_retval
2596 
2597 } # ac_fn_c_try_link
2598 
2599 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2600 # ---------------------------------------------------------
2601 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2602 # the include files in INCLUDES and setting the cache variable VAR
2603 # accordingly.
2604 ac_fn_cxx_check_header_mongrel ()
2605 {
2606   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2607   if eval \${$3+:} false; then :
2608   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2609 $as_echo_n "checking for $2... " >&6; }
2610 if eval \${$3+:} false; then :
2611   $as_echo_n "(cached) " >&6
2612 fi
2613 eval ac_res=\$$3
2614                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2615 $as_echo "$ac_res" >&6; }
2616 else
2617   # Is the header compilable?
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2619 $as_echo_n "checking $2 usability... " >&6; }
2620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2621 /* end confdefs.h.  */
2622 $4
2623 #include <$2>
2624 _ACEOF
2625 if ac_fn_cxx_try_compile "$LINENO"; then :
2626   ac_header_compiler=yes
2627 else
2628   ac_header_compiler=no
2629 fi
2630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2632 $as_echo "$ac_header_compiler" >&6; }
2633 
2634 # Is the header present?
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2636 $as_echo_n "checking $2 presence... " >&6; }
2637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2638 /* end confdefs.h.  */
2639 #include <$2>
2640 _ACEOF
2641 if ac_fn_cxx_try_cpp "$LINENO"; then :
2642   ac_header_preproc=yes
2643 else
2644   ac_header_preproc=no
2645 fi
2646 rm -f conftest.err conftest.i conftest.$ac_ext
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2648 $as_echo "$ac_header_preproc" >&6; }
2649 
2650 # So?  What about this header?
2651 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2652   yes:no: )
2653     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2654 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2655     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2656 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2657     ;;
2658   no:yes:* )
2659     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2660 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2661     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2662 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2663     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2664 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2665     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2666 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2667     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2668 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2669 ( $as_echo "## ----------------------------------------- ##
2670 ## Report this to build-dev@openjdk.java.net ##
2671 ## ----------------------------------------- ##"
2672      ) | sed "s/^/$as_me: WARNING:     /" >&2
2673     ;;
2674 esac
2675   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2676 $as_echo_n "checking for $2... " >&6; }
2677 if eval \${$3+:} false; then :
2678   $as_echo_n "(cached) " >&6
2679 else
2680   eval "$3=\$ac_header_compiler"
2681 fi
2682 eval ac_res=\$$3
2683                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2684 $as_echo "$ac_res" >&6; }
2685 fi
2686   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2687 
2688 } # ac_fn_cxx_check_header_mongrel
2689 
2690 # ac_fn_cxx_try_run LINENO
2691 # ------------------------
2692 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2693 # that executables *can* be run.
2694 ac_fn_cxx_try_run ()
2695 {
2696   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2697   if { { ac_try="$ac_link"
2698 case "(($ac_try" in
2699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2700   *) ac_try_echo=$ac_try;;
2701 esac
2702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2703 $as_echo "$ac_try_echo"; } >&5
2704   (eval "$ac_link") 2>&5
2705   ac_status=$?
2706   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2707   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2708   { { case "(($ac_try" in
2709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2710   *) ac_try_echo=$ac_try;;
2711 esac
2712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2713 $as_echo "$ac_try_echo"; } >&5
2714   (eval "$ac_try") 2>&5
2715   ac_status=$?
2716   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2717   test $ac_status = 0; }; }; then :
2718   ac_retval=0
2719 else
2720   $as_echo "$as_me: program exited with status $ac_status" >&5
2721        $as_echo "$as_me: failed program was:" >&5
2722 sed 's/^/| /' conftest.$ac_ext >&5
2723 
2724        ac_retval=$ac_status
2725 fi
2726   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2727   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2728   as_fn_set_status $ac_retval
2729 
2730 } # ac_fn_cxx_try_run
2731 
2732 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2733 # ---------------------------------------------------------
2734 # Tests whether HEADER exists and can be compiled using the include files in
2735 # INCLUDES, setting the cache variable VAR accordingly.
2736 ac_fn_cxx_check_header_compile ()
2737 {
2738   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2739   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2740 $as_echo_n "checking for $2... " >&6; }
2741 if eval \${$3+:} false; then :
2742   $as_echo_n "(cached) " >&6
2743 else
2744   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2745 /* end confdefs.h.  */
2746 $4
2747 #include <$2>
2748 _ACEOF
2749 if ac_fn_cxx_try_compile "$LINENO"; then :
2750   eval "$3=yes"
2751 else
2752   eval "$3=no"
2753 fi
2754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2755 fi
2756 eval ac_res=\$$3
2757                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2758 $as_echo "$ac_res" >&6; }
2759   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2760 
2761 } # ac_fn_cxx_check_header_compile
2762 
2763 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2764 # ----------------------------------------------
2765 # Tries to find the compile-time value of EXPR in a program that includes
2766 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2767 # computed
2768 ac_fn_cxx_compute_int ()
2769 {
2770   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2771   if test "$cross_compiling" = yes; then
2772     # Depending upon the size, compute the lo and hi bounds.
2773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2774 /* end confdefs.h.  */
2775 $4
2776 int
2777 main ()
2778 {
2779 static int test_array [1 - 2 * !(($2) >= 0)];
2780 test_array [0] = 0;
2781 return test_array [0];
2782 
2783   ;
2784   return 0;
2785 }
2786 _ACEOF
2787 if ac_fn_cxx_try_compile "$LINENO"; then :
2788   ac_lo=0 ac_mid=0
2789   while :; do
2790     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2791 /* end confdefs.h.  */
2792 $4
2793 int
2794 main ()
2795 {
2796 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2797 test_array [0] = 0;
2798 return test_array [0];
2799 
2800   ;
2801   return 0;
2802 }
2803 _ACEOF
2804 if ac_fn_cxx_try_compile "$LINENO"; then :
2805   ac_hi=$ac_mid; break
2806 else
2807   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2808                         if test $ac_lo -le $ac_mid; then
2809                           ac_lo= ac_hi=
2810                           break
2811                         fi
2812                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2813 fi
2814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2815   done
2816 else
2817   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2818 /* end confdefs.h.  */
2819 $4
2820 int
2821 main ()
2822 {
2823 static int test_array [1 - 2 * !(($2) < 0)];
2824 test_array [0] = 0;
2825 return test_array [0];
2826 
2827   ;
2828   return 0;
2829 }
2830 _ACEOF
2831 if ac_fn_cxx_try_compile "$LINENO"; then :
2832   ac_hi=-1 ac_mid=-1
2833   while :; do
2834     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2835 /* end confdefs.h.  */
2836 $4
2837 int
2838 main ()
2839 {
2840 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2841 test_array [0] = 0;
2842 return test_array [0];
2843 
2844   ;
2845   return 0;
2846 }
2847 _ACEOF
2848 if ac_fn_cxx_try_compile "$LINENO"; then :
2849   ac_lo=$ac_mid; break
2850 else
2851   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2852                         if test $ac_mid -le $ac_hi; then
2853                           ac_lo= ac_hi=
2854                           break
2855                         fi
2856                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2857 fi
2858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2859   done
2860 else
2861   ac_lo= ac_hi=
2862 fi
2863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2864 fi
2865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2866 # Binary search between lo and hi bounds.
2867 while test "x$ac_lo" != "x$ac_hi"; do
2868   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2869   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2870 /* end confdefs.h.  */
2871 $4
2872 int
2873 main ()
2874 {
2875 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2876 test_array [0] = 0;
2877 return test_array [0];
2878 
2879   ;
2880   return 0;
2881 }
2882 _ACEOF
2883 if ac_fn_cxx_try_compile "$LINENO"; then :
2884   ac_hi=$ac_mid
2885 else
2886   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2887 fi
2888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2889 done
2890 case $ac_lo in #((
2891 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2892 '') ac_retval=1 ;;
2893 esac
2894   else
2895     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2896 /* end confdefs.h.  */
2897 $4
2898 static long int longval () { return $2; }
2899 static unsigned long int ulongval () { return $2; }
2900 #include <stdio.h>
2901 #include <stdlib.h>
2902 int
2903 main ()
2904 {
2905 
2906   FILE *f = fopen ("conftest.val", "w");
2907   if (! f)
2908     return 1;
2909   if (($2) < 0)
2910     {
2911       long int i = longval ();
2912       if (i != ($2))
2913         return 1;
2914       fprintf (f, "%ld", i);
2915     }
2916   else
2917     {
2918       unsigned long int i = ulongval ();
2919       if (i != ($2))
2920         return 1;
2921       fprintf (f, "%lu", i);
2922     }
2923   /* Do not output a trailing newline, as this causes \r\n confusion
2924      on some platforms.  */
2925   return ferror (f) || fclose (f) != 0;
2926 
2927   ;
2928   return 0;
2929 }
2930 _ACEOF
2931 if ac_fn_cxx_try_run "$LINENO"; then :
2932   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2933 else
2934   ac_retval=1
2935 fi
2936 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2937   conftest.$ac_objext conftest.beam conftest.$ac_ext
2938 rm -f conftest.val
2939 
2940   fi
2941   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2942   as_fn_set_status $ac_retval
2943 
2944 } # ac_fn_cxx_compute_int
2945 
2946 # ac_fn_cxx_try_link LINENO
2947 # -------------------------
2948 # Try to link conftest.$ac_ext, and return whether this succeeded.
2949 ac_fn_cxx_try_link ()
2950 {
2951   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2952   rm -f conftest.$ac_objext conftest$ac_exeext
2953   if { { ac_try="$ac_link"
2954 case "(($ac_try" in
2955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2956   *) ac_try_echo=$ac_try;;
2957 esac
2958 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2959 $as_echo "$ac_try_echo"; } >&5
2960   (eval "$ac_link") 2>conftest.err
2961   ac_status=$?
2962   if test -s conftest.err; then
2963     grep -v '^ *+' conftest.err >conftest.er1
2964     cat conftest.er1 >&5
2965     mv -f conftest.er1 conftest.err
2966   fi
2967   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2968   test $ac_status = 0; } && {
2969          test -z "$ac_cxx_werror_flag" ||
2970          test ! -s conftest.err
2971        } && test -s conftest$ac_exeext && {
2972          test "$cross_compiling" = yes ||
2973          test -x conftest$ac_exeext
2974        }; then :
2975   ac_retval=0
2976 else
2977   $as_echo "$as_me: failed program was:" >&5
2978 sed 's/^/| /' conftest.$ac_ext >&5
2979 
2980         ac_retval=1
2981 fi
2982   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2983   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2984   # interfere with the next link command; also delete a directory that is
2985   # left behind by Apple's compiler.  We do this before executing the actions.
2986   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2987   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2988   as_fn_set_status $ac_retval
2989 
2990 } # ac_fn_cxx_try_link
2991 
2992 # ac_fn_cxx_check_func LINENO FUNC VAR
2993 # ------------------------------------
2994 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2995 ac_fn_cxx_check_func ()
2996 {
2997   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2998   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2999 $as_echo_n "checking for $2... " >&6; }
3000 if eval \${$3+:} false; then :
3001   $as_echo_n "(cached) " >&6
3002 else
3003   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3004 /* end confdefs.h.  */
3005 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
3006    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3007 #define $2 innocuous_$2
3008 
3009 /* System header to define __stub macros and hopefully few prototypes,
3010     which can conflict with char $2 (); below.
3011     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3012     <limits.h> exists even on freestanding compilers.  */
3013 
3014 #ifdef __STDC__
3015 # include <limits.h>
3016 #else
3017 # include <assert.h>
3018 #endif
3019 
3020 #undef $2
3021 
3022 /* Override any GCC internal prototype to avoid an error.
3023    Use char because int might match the return type of a GCC
3024    builtin and then its argument prototype would still apply.  */
3025 #ifdef __cplusplus
3026 extern "C"
3027 #endif
3028 char $2 ();
3029 /* The GNU C library defines this for functions which it implements
3030     to always fail with ENOSYS.  Some functions are actually named
3031     something starting with __ and the normal name is an alias.  */
3032 #if defined __stub_$2 || defined __stub___$2
3033 choke me
3034 #endif
3035 
3036 int
3037 main ()
3038 {
3039 return $2 ();
3040   ;
3041   return 0;
3042 }
3043 _ACEOF
3044 if ac_fn_cxx_try_link "$LINENO"; then :
3045   eval "$3=yes"
3046 else
3047   eval "$3=no"
3048 fi
3049 rm -f core conftest.err conftest.$ac_objext \
3050     conftest$ac_exeext conftest.$ac_ext
3051 fi
3052 eval ac_res=\$$3
3053                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3054 $as_echo "$ac_res" >&6; }
3055   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3056 
3057 } # ac_fn_cxx_check_func
3058 
3059 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
3060 # -------------------------------------------------------
3061 # Tests whether HEADER exists and can be compiled using the include files in
3062 # INCLUDES, setting the cache variable VAR accordingly.
3063 ac_fn_c_check_header_compile ()
3064 {
3065   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3066   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3067 $as_echo_n "checking for $2... " >&6; }
3068 if eval \${$3+:} false; then :
3069   $as_echo_n "(cached) " >&6
3070 else
3071   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3072 /* end confdefs.h.  */
3073 $4
3074 #include <$2>
3075 _ACEOF
3076 if ac_fn_c_try_compile "$LINENO"; then :
3077   eval "$3=yes"
3078 else
3079   eval "$3=no"
3080 fi
3081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3082 fi
3083 eval ac_res=\$$3
3084                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3085 $as_echo "$ac_res" >&6; }
3086   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3087 
3088 } # ac_fn_c_check_header_compile
3089 cat >config.log <<_ACEOF
3090 This file contains any messages produced by compilers while
3091 running configure, to aid debugging if configure makes a mistake.
3092 
3093 It was created by OpenJDK $as_me jdk9, which was
3094 generated by GNU Autoconf 2.69.  Invocation command line was
3095 
3096   $ $0 $@
3097 
3098 _ACEOF
3099 exec 5>>config.log
3100 {
3101 cat <<_ASUNAME
3102 ## --------- ##
3103 ## Platform. ##
3104 ## --------- ##
3105 
3106 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3107 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3108 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3109 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3110 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3111 
3112 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3113 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
3114 
3115 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
3116 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
3117 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3118 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
3119 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
3120 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
3121 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
3122 
3123 _ASUNAME
3124 
3125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3126 for as_dir in $PATH
3127 do
3128   IFS=$as_save_IFS
3129   test -z "$as_dir" && as_dir=.
3130     $as_echo "PATH: $as_dir"
3131   done
3132 IFS=$as_save_IFS
3133 
3134 } >&5
3135 
3136 cat >&5 <<_ACEOF
3137 
3138 
3139 ## ----------- ##
3140 ## Core tests. ##
3141 ## ----------- ##
3142 
3143 _ACEOF
3144 
3145 
3146 # Keep a trace of the command line.
3147 # Strip out --no-create and --no-recursion so they do not pile up.
3148 # Strip out --silent because we don't want to record it for future runs.
3149 # Also quote any args containing shell meta-characters.
3150 # Make two passes to allow for proper duplicate-argument suppression.
3151 ac_configure_args=
3152 ac_configure_args0=
3153 ac_configure_args1=
3154 ac_must_keep_next=false
3155 for ac_pass in 1 2
3156 do
3157   for ac_arg
3158   do
3159     case $ac_arg in
3160     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3161     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3162     | -silent | --silent | --silen | --sile | --sil)
3163       continue ;;
3164     *\'*)
3165       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3166     esac
3167     case $ac_pass in
3168     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3169     2)
3170       as_fn_append ac_configure_args1 " '$ac_arg'"
3171       if test $ac_must_keep_next = true; then
3172         ac_must_keep_next=false # Got value, back to normal.
3173       else
3174         case $ac_arg in
3175           *=* | --config-cache | -C | -disable-* | --disable-* \
3176           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3177           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3178           | -with-* | --with-* | -without-* | --without-* | --x)
3179             case "$ac_configure_args0 " in
3180               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3181             esac
3182             ;;
3183           -* ) ac_must_keep_next=true ;;
3184         esac
3185       fi
3186       as_fn_append ac_configure_args " '$ac_arg'"
3187       ;;
3188     esac
3189   done
3190 done
3191 { ac_configure_args0=; unset ac_configure_args0;}
3192 { ac_configure_args1=; unset ac_configure_args1;}
3193 
3194 # When interrupted or exit'd, cleanup temporary files, and complete
3195 # config.log.  We remove comments because anyway the quotes in there
3196 # would cause problems or look ugly.
3197 # WARNING: Use '\'' to represent an apostrophe within the trap.
3198 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3199 trap 'exit_status=$?
3200   # Save into config.log some information that might help in debugging.
3201   {
3202     echo
3203 
3204     $as_echo "## ---------------- ##
3205 ## Cache variables. ##
3206 ## ---------------- ##"
3207     echo
3208     # The following way of writing the cache mishandles newlines in values,
3209 (
3210   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3211     eval ac_val=\$$ac_var
3212     case $ac_val in #(
3213     *${as_nl}*)
3214       case $ac_var in #(
3215       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3216 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3217       esac
3218       case $ac_var in #(
3219       _ | IFS | as_nl) ;; #(
3220       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3221       *) { eval $ac_var=; unset $ac_var;} ;;
3222       esac ;;
3223     esac
3224   done
3225   (set) 2>&1 |
3226     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3227     *${as_nl}ac_space=\ *)
3228       sed -n \
3229         "s/'\''/'\''\\\\'\'''\''/g;
3230           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3231       ;; #(
3232     *)
3233       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3234       ;;
3235     esac |
3236     sort
3237 )
3238     echo
3239 
3240     $as_echo "## ----------------- ##
3241 ## Output variables. ##
3242 ## ----------------- ##"
3243     echo
3244     for ac_var in $ac_subst_vars
3245     do
3246       eval ac_val=\$$ac_var
3247       case $ac_val in
3248       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3249       esac
3250       $as_echo "$ac_var='\''$ac_val'\''"
3251     done | sort
3252     echo
3253 
3254     if test -n "$ac_subst_files"; then
3255       $as_echo "## ------------------- ##
3256 ## File substitutions. ##
3257 ## ------------------- ##"
3258       echo
3259       for ac_var in $ac_subst_files
3260       do
3261         eval ac_val=\$$ac_var
3262         case $ac_val in
3263         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3264         esac
3265         $as_echo "$ac_var='\''$ac_val'\''"
3266       done | sort
3267       echo
3268     fi
3269 
3270     if test -s confdefs.h; then
3271       $as_echo "## ----------- ##
3272 ## confdefs.h. ##
3273 ## ----------- ##"
3274       echo
3275       cat confdefs.h
3276       echo
3277     fi
3278     test "$ac_signal" != 0 &&
3279       $as_echo "$as_me: caught signal $ac_signal"
3280     $as_echo "$as_me: exit $exit_status"
3281   } >&5
3282   rm -f core *.core core.conftest.* &&
3283     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3284     exit $exit_status
3285 ' 0
3286 for ac_signal in 1 2 13 15; do
3287   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3288 done
3289 ac_signal=0
3290 
3291 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3292 rm -f -r conftest* confdefs.h
3293 
3294 $as_echo "/* confdefs.h */" > confdefs.h
3295 
3296 # Predefined preprocessor variables.
3297 
3298 cat >>confdefs.h <<_ACEOF
3299 #define PACKAGE_NAME "$PACKAGE_NAME"
3300 _ACEOF
3301 
3302 cat >>confdefs.h <<_ACEOF
3303 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3304 _ACEOF
3305 
3306 cat >>confdefs.h <<_ACEOF
3307 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3308 _ACEOF
3309 
3310 cat >>confdefs.h <<_ACEOF
3311 #define PACKAGE_STRING "$PACKAGE_STRING"
3312 _ACEOF
3313 
3314 cat >>confdefs.h <<_ACEOF
3315 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3316 _ACEOF
3317 
3318 cat >>confdefs.h <<_ACEOF
3319 #define PACKAGE_URL "$PACKAGE_URL"
3320 _ACEOF
3321 
3322 
3323 # Let the site file select an alternate cache file if it wants to.
3324 # Prefer an explicitly selected file to automatically selected ones.
3325 ac_site_file1=NONE
3326 ac_site_file2=NONE
3327 if test -n "$CONFIG_SITE"; then
3328   # We do not want a PATH search for config.site.
3329   case $CONFIG_SITE in #((
3330     -*)  ac_site_file1=./$CONFIG_SITE;;
3331     */*) ac_site_file1=$CONFIG_SITE;;
3332     *)   ac_site_file1=./$CONFIG_SITE;;
3333   esac
3334 elif test "x$prefix" != xNONE; then
3335   ac_site_file1=$prefix/share/config.site
3336   ac_site_file2=$prefix/etc/config.site
3337 else
3338   ac_site_file1=$ac_default_prefix/share/config.site
3339   ac_site_file2=$ac_default_prefix/etc/config.site
3340 fi
3341 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3342 do
3343   test "x$ac_site_file" = xNONE && continue
3344   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3345     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3346 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3347     sed 's/^/| /' "$ac_site_file" >&5
3348     . "$ac_site_file" \
3349       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3350 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3351 as_fn_error $? "failed to load site script $ac_site_file
3352 See \`config.log' for more details" "$LINENO" 5; }
3353   fi
3354 done
3355 
3356 if test -r "$cache_file"; then
3357   # Some versions of bash will fail to source /dev/null (special files
3358   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3359   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3360     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3361 $as_echo "$as_me: loading cache $cache_file" >&6;}
3362     case $cache_file in
3363       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3364       *)                      . "./$cache_file";;
3365     esac
3366   fi
3367 else
3368   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3369 $as_echo "$as_me: creating cache $cache_file" >&6;}
3370   >$cache_file
3371 fi
3372 
3373 # Check that the precious variables saved in the cache have kept the same
3374 # value.
3375 ac_cache_corrupted=false
3376 for ac_var in $ac_precious_vars; do
3377   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3378   eval ac_new_set=\$ac_env_${ac_var}_set
3379   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3380   eval ac_new_val=\$ac_env_${ac_var}_value
3381   case $ac_old_set,$ac_new_set in
3382     set,)
3383       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3384 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3385       ac_cache_corrupted=: ;;
3386     ,set)
3387       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3388 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3389       ac_cache_corrupted=: ;;
3390     ,);;
3391     *)
3392       if test "x$ac_old_val" != "x$ac_new_val"; then
3393         # differences in whitespace do not lead to failure.
3394         ac_old_val_w=`echo x $ac_old_val`
3395         ac_new_val_w=`echo x $ac_new_val`
3396         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3397           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3398 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3399           ac_cache_corrupted=:
3400         else
3401           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3402 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3403           eval $ac_var=\$ac_old_val
3404         fi
3405         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3406 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3407         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3408 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3409       fi;;
3410   esac
3411   # Pass precious variables to config.status.
3412   if test "$ac_new_set" = set; then
3413     case $ac_new_val in
3414     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3415     *) ac_arg=$ac_var=$ac_new_val ;;
3416     esac
3417     case " $ac_configure_args " in
3418       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3419       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3420     esac
3421   fi
3422 done
3423 if $ac_cache_corrupted; then
3424   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3425 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3426   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3427 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3428   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3429 fi
3430 ## -------------------- ##
3431 ## Main body of script. ##
3432 ## -------------------- ##
3433 
3434 ac_ext=c
3435 ac_cpp='$CPP $CPPFLAGS'
3436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3439 
3440 
3441 
3442 ac_aux_dir=
3443 for ac_dir in $TOPDIR/common/autoconf/build-aux "$srcdir"/$TOPDIR/common/autoconf/build-aux; do
3444   if test -f "$ac_dir/install-sh"; then
3445     ac_aux_dir=$ac_dir
3446     ac_install_sh="$ac_aux_dir/install-sh -c"
3447     break
3448   elif test -f "$ac_dir/install.sh"; then
3449     ac_aux_dir=$ac_dir
3450     ac_install_sh="$ac_aux_dir/install.sh -c"
3451     break
3452   elif test -f "$ac_dir/shtool"; then
3453     ac_aux_dir=$ac_dir
3454     ac_install_sh="$ac_aux_dir/shtool install -c"
3455     break
3456   fi
3457 done
3458 if test -z "$ac_aux_dir"; then
3459   as_fn_error $? "cannot find install-sh, install.sh, or shtool in $TOPDIR/common/autoconf/build-aux \"$srcdir\"/$TOPDIR/common/autoconf/build-aux" "$LINENO" 5
3460 fi
3461 
3462 # These three variables are undocumented and unsupported,
3463 # and are intended to be withdrawn in a future Autoconf release.
3464 # They can cause serious problems if a builder's source tree is in a directory
3465 # whose full name contains unusual characters.
3466 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3467 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3468 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3469 
3470 
3471 # pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
3472 
3473 #
3474 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
3475 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3476 #
3477 # This code is free software; you can redistribute it and/or modify it
3478 # under the terms of the GNU General Public License version 2 only, as
3479 # published by the Free Software Foundation.  Oracle designates this
3480 # particular file as subject to the "Classpath" exception as provided
3481 # by Oracle in the LICENSE file that accompanied this code.
3482 #
3483 # This code is distributed in the hope that it will be useful, but WITHOUT
3484 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3485 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3486 # version 2 for more details (a copy is included in the LICENSE file that
3487 # accompanied this code).
3488 #
3489 # You should have received a copy of the GNU General Public License version
3490 # 2 along with this work; if not, write to the Free Software Foundation,
3491 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3492 #
3493 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3494 # or visit www.oracle.com if you need additional information or have any
3495 # questions.
3496 #
3497 
3498 #
3499 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
3500 #
3501 # This program is free software; you can redistribute it and/or modify
3502 # it under the terms of the GNU General Public License as published by
3503 # the Free Software Foundation; either version 2 of the License, or
3504 # (at your option) any later version.
3505 #
3506 # This program is distributed in the hope that it will be useful, but
3507 # WITHOUT ANY WARRANTY; without even the implied warranty of
3508 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
3509 # General Public License for more details.
3510 #
3511 # You should have received a copy of the GNU General Public License
3512 # along with this program; if not, write to the Free Software
3513 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
3514 #
3515 # As a special exception to the GNU General Public License, if you
3516 # distribute this file as part of a program that contains a
3517 # configuration script generated by Autoconf, you may include it under
3518 # the same distribution terms that you use for the rest of that program.
3519 
3520 # PKG_PROG_PKG_CONFIG([MIN-VERSION])
3521 # ----------------------------------
3522 # PKG_PROG_PKG_CONFIG
3523 
3524 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
3525 #
3526 # Check to see whether a particular set of modules exists.  Similar
3527 # to PKG_CHECK_MODULES(), but does not set variables or print errors.
3528 #
3529 #
3530 # Similar to PKG_CHECK_MODULES, make sure that the first instance of
3531 # this or PKG_CHECK_MODULES is called, or make sure to call
3532 # PKG_CHECK_EXISTS manually
3533 # --------------------------------------------------------------
3534 
3535 
3536 
3537 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
3538 # ---------------------------------------------
3539 # _PKG_CONFIG
3540 
3541 # _PKG_SHORT_ERRORS_SUPPORTED
3542 # -----------------------------
3543 # _PKG_SHORT_ERRORS_SUPPORTED
3544 
3545 
3546 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
3547 # [ACTION-IF-NOT-FOUND])
3548 #
3549 #
3550 # Note that if there is a possibility the first call to
3551 # PKG_CHECK_MODULES might not happen, you should be sure to include an
3552 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
3553 #
3554 #
3555 # --------------------------------------------------------------
3556 # PKG_CHECK_MODULES
3557 
3558 
3559 # Include these first...
3560 #
3561 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
3562 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3563 #
3564 # This code is free software; you can redistribute it and/or modify it
3565 # under the terms of the GNU General Public License version 2 only, as
3566 # published by the Free Software Foundation.  Oracle designates this
3567 # particular file as subject to the "Classpath" exception as provided
3568 # by Oracle in the LICENSE file that accompanied this code.
3569 #
3570 # This code is distributed in the hope that it will be useful, but WITHOUT
3571 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3572 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3573 # version 2 for more details (a copy is included in the LICENSE file that
3574 # accompanied this code).
3575 #
3576 # You should have received a copy of the GNU General Public License version
3577 # 2 along with this work; if not, write to the Free Software Foundation,
3578 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3579 #
3580 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3581 # or visit www.oracle.com if you need additional information or have any
3582 # questions.
3583 #
3584 
3585 # Create a function/macro that takes a series of named arguments. The call is
3586 # similar to AC_DEFUN, but the setup of the function looks like this:
3587 # BASIC_DEFUN_NAMED([MYFUNC], [FOO *BAR], [$@], [
3588 # ... do something
3589 #   AC_MSG_NOTICE([Value of BAR is ARG_BAR])
3590 # ])
3591 # A star (*) in front of a named argument means that it is required and it's
3592 # presence will be verified. To pass e.g. the first value as a normal indexed
3593 # argument, use [m4_shift($@)] as the third argument instead of [$@]. These
3594 # arguments are referenced in the function by their name prefixed by ARG_, e.g.
3595 # "ARG_FOO".
3596 #
3597 # The generated function can be called like this:
3598 # MYFUNC(FOO: [foo-val],
3599 #     BAR: [
3600 #         $ECHO hello world
3601 #     ])
3602 # Note that the argument value must start on the same line as the argument name.
3603 #
3604 # Argument 1: Name of the function to define
3605 # Argument 2: List of legal named arguments, with a * prefix for required arguments
3606 # Argument 3: Argument array to treat as named, typically $@
3607 # Argument 4: The main function body
3608 
3609 
3610 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3)
3611 # If so, then append $1 to $2 \
3612 # Also set JVM_ARG_OK to true/false depending on outcome.
3613 
3614 
3615 # Appends a string to a path variable, only adding the : when needed.
3616 
3617 
3618 # Prepends a string to a path variable, only adding the : when needed.
3619 
3620 
3621 # This will make sure the given variable points to a full and proper
3622 # path. This means:
3623 # 1) There will be no spaces in the path. On unix platforms,
3624 #    spaces in the path will result in an error. On Windows,
3625 #    the path will be rewritten using short-style to be space-free.
3626 # 2) The path will be absolute, and it will be in unix-style (on
3627 #     cygwin).
3628 # $1: The name of the variable to fix
3629 
3630 
3631 # This will make sure the given variable points to a executable
3632 # with a full and proper path. This means:
3633 # 1) There will be no spaces in the path. On unix platforms,
3634 #    spaces in the path will result in an error. On Windows,
3635 #    the path will be rewritten using short-style to be space-free.
3636 # 2) The path will be absolute, and it will be in unix-style (on
3637 #     cygwin).
3638 # Any arguments given to the executable is preserved.
3639 # If the input variable does not have a directory specification, then
3640 # it need to be in the PATH.
3641 # $1: The name of the variable to fix
3642 
3643 
3644 
3645 
3646 # Register a --with argument but mark it as deprecated
3647 # $1: The name of the with argument to deprecate, not including --with-
3648 
3649 
3650 # Register a --enable argument but mark it as deprecated
3651 # $1: The name of the with argument to deprecate, not including --enable-
3652 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -)
3653 # $3: Messages to user.
3654 
3655 
3656 
3657 
3658 # Test that variable $1 denoting a program is not empty. If empty, exit with an error.
3659 # $1: variable to check
3660 
3661 
3662 # Check that there are no unprocessed overridden variables left.
3663 # If so, they are an incorrect argument and we will exit with an error.
3664 
3665 
3666 # Setup a tool for the given variable. If correctly specified by the user,
3667 # use that value, otherwise search for the tool using the supplied code snippet.
3668 # $1: variable to set
3669 # $2: code snippet to call to look for the tool
3670 # $3: code snippet to call if variable was used to find tool
3671 
3672 
3673 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool
3674 # $1: variable to set
3675 # $2: executable name (or list of names) to look for
3676 # $3: [path]
3677 
3678 
3679 # Call BASIC_SETUP_TOOL with AC_CHECK_TOOLS to locate the tool
3680 # $1: variable to set
3681 # $2: executable name (or list of names) to look for
3682 
3683 
3684 # Like BASIC_PATH_PROGS but fails if no tool was found.
3685 # $1: variable to set
3686 # $2: executable name (or list of names) to look for
3687 # $3: [path]
3688 
3689 
3690 # Like BASIC_SETUP_TOOL but fails if no tool was found.
3691 # $1: variable to set
3692 # $2: autoconf macro to call to look for the special tool
3693 
3694 
3695 # Setup the most fundamental tools that relies on not much else to set up,
3696 # but is used by much of the early bootstrap code.
3697 
3698 
3699 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3700 
3701 
3702 # Evaluates platform specific overrides for devkit variables.
3703 # $1: Name of variable
3704 
3705 
3706 
3707 
3708 
3709 
3710 #%%% Simple tools %%%
3711 
3712 # Check if we have found a usable version of make
3713 # $1: the path to a potential make binary (or empty)
3714 # $2: the description on how we found this
3715 
3716 
3717 
3718 
3719 # Goes looking for a usable version of GNU make.
3720 
3721 
3722 
3723 
3724 
3725 
3726 
3727 
3728 
3729 
3730 # Check if build directory is on local disk. If not possible to determine,
3731 # we prefer to claim it's local.
3732 # Argument 1: directory to test
3733 # Argument 2: what to do if it is on local disk
3734 # Argument 3: what to do otherwise (remote disk or failure)
3735 
3736 
3737 # Check that source files have basic read permissions set. This might
3738 # not be the case in cygwin in certain conditions.
3739 
3740 
3741 
3742 
3743 # Check for support for specific options in bash
3744 
3745 
3746 ################################################################################
3747 #
3748 # Default make target
3749 #
3750 
3751 
3752 # Code to run after AC_OUTPUT
3753 
3754 
3755 #
3756 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
3757 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3758 #
3759 # This code is free software; you can redistribute it and/or modify it
3760 # under the terms of the GNU General Public License version 2 only, as
3761 # published by the Free Software Foundation.  Oracle designates this
3762 # particular file as subject to the "Classpath" exception as provided
3763 # by Oracle in the LICENSE file that accompanied this code.
3764 #
3765 # This code is distributed in the hope that it will be useful, but WITHOUT
3766 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3767 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3768 # version 2 for more details (a copy is included in the LICENSE file that
3769 # accompanied this code).
3770 #
3771 # You should have received a copy of the GNU General Public License version
3772 # 2 along with this work; if not, write to the Free Software Foundation,
3773 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3774 #
3775 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3776 # or visit www.oracle.com if you need additional information or have any
3777 # questions.
3778 #
3779 
3780 
3781 
3782 
3783 
3784 # Helper function which possibly converts a path using DOS-style short mode.
3785 # If so, the updated path is stored in $new_path.
3786 # $1: The path to check
3787 
3788 
3789 # Helper function which possibly converts a path using DOS-style short mode.
3790 # If so, the updated path is stored in $new_path.
3791 # $1: The path to check
3792 
3793 
3794 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted
3795 # and could probably be heavily simplified. However, all changes in this
3796 # area tend to need lot of testing in different scenarios, and in lack of
3797 # proper unit testing, cleaning this up has not been deemed worth the effort
3798 # at the moment.
3799 
3800 
3801 
3802 
3803 
3804 
3805 
3806 
3807 
3808 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3809 
3810 
3811 
3812 
3813 # ... then the rest
3814 #
3815 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
3816 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3817 #
3818 # This code is free software; you can redistribute it and/or modify it
3819 # under the terms of the GNU General Public License version 2 only, as
3820 # published by the Free Software Foundation.  Oracle designates this
3821 # particular file as subject to the "Classpath" exception as provided
3822 # by Oracle in the LICENSE file that accompanied this code.
3823 #
3824 # This code is distributed in the hope that it will be useful, but WITHOUT
3825 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3826 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3827 # version 2 for more details (a copy is included in the LICENSE file that
3828 # accompanied this code).
3829 #
3830 # You should have received a copy of the GNU General Public License version
3831 # 2 along with this work; if not, write to the Free Software Foundation,
3832 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3833 #
3834 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3835 # or visit www.oracle.com if you need additional information or have any
3836 # questions.
3837 #
3838 
3839 ########################################################################
3840 # This file handles detection of the Boot JDK. The Boot JDK detection
3841 # process has been developed as a response to solve a complex real-world
3842 # problem. Initially, it was simple, but it has grown as platform after
3843 # platform, idiosyncracy after idiosyncracy has been supported.
3844 #
3845 # The basic idea is this:
3846 # 1) You need an acceptable *) JDK to use as a Boot JDK
3847 # 2) There are several ways to locate a JDK, that are mostly platform
3848 #    dependent **)
3849 # 3) You can have multiple JDKs installed
3850 # 4) If possible, configure should try to dig out an acceptable JDK
3851 #    automatically, without having to resort to command-line options
3852 #
3853 # *)  acceptable means e.g. JDK7 for building JDK8, a complete JDK (with
3854 #     javac) and not a JRE, etc.
3855 #
3856 # **) On Windows we typically use a well-known path.
3857 #     On MacOSX we typically use the tool java_home.
3858 #     On Linux we typically find javac in the $PATH, and then follow a
3859 #     chain of symlinks that often ends up in a real JDK.
3860 #
3861 # This leads to the code where we check in different ways to locate a
3862 # JDK, and if one is found, check if it is acceptable. If not, we print
3863 # our reasons for rejecting it (useful when debugging non-working
3864 # configure situations) and continue checking the next one.
3865 ########################################################################
3866 
3867 # Execute the check given as argument, and verify the result
3868 # If the Boot JDK was previously found, do nothing
3869 # $1 A command line (typically autoconf macro) to execute
3870 
3871 
3872 # Test: Is bootjdk explicitly set by command line arguments?
3873 
3874 
3875 # Test: Is $JAVA_HOME set?
3876 
3877 
3878 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
3879 
3880 
3881 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX)
3882 # $1: Argument to the java_home binary (optional)
3883 
3884 
3885 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home?
3886 
3887 
3888 # Look for a jdk in the given path. If there are multiple, try to select the newest.
3889 # If found, set BOOT_JDK and BOOT_JDK_FOUND.
3890 # $1 = Path to directory containing jdk installations.
3891 # $2 = String to append to the found JDK directory to get the proper JDK home
3892 
3893 
3894 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given
3895 # environmental variable as base for where to look.
3896 # $1 Name of an environmal variable, assumed to point to the Program Files directory.
3897 
3898 
3899 # Test: Is there a JDK installed in default, well-known locations?
3900 
3901 
3902 # Check that a command-line tool in the Boot JDK is correct
3903 # $1 = name of variable to assign
3904 # $2 = name of binary
3905 
3906 
3907 ###############################################################################
3908 #
3909 # We need a Boot JDK to bootstrap the build.
3910 #
3911 
3912 
3913 
3914 
3915 
3916 # BUILD_JDK: the location of the latest JDK that can run
3917 #   on the host system and supports the target class file version
3918 #   generated in this JDK build.  This variable should only be
3919 #   used after the launchers are built.
3920 #
3921 
3922 # Execute the check given as argument, and verify the result.
3923 # If the JDK was previously found, do nothing.
3924 # $1 A command line (typically autoconf macro) to execute
3925 
3926 
3927 # By default the BUILD_JDK is the JDK_OUTPUTDIR.  If the target architecture
3928 # is different than the host system doing the build (e.g. cross-compilation),
3929 # a special BUILD_JDK is built as part of the build process.  An external
3930 # prebuilt BUILD_JDK can also be supplied.
3931 
3932 
3933 #
3934 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
3935 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3936 #
3937 # This code is free software; you can redistribute it and/or modify it
3938 # under the terms of the GNU General Public License version 2 only, as
3939 # published by the Free Software Foundation.  Oracle designates this
3940 # particular file as subject to the "Classpath" exception as provided
3941 # by Oracle in the LICENSE file that accompanied this code.
3942 #
3943 # This code is distributed in the hope that it will be useful, but WITHOUT
3944 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3945 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3946 # version 2 for more details (a copy is included in the LICENSE file that
3947 # accompanied this code).
3948 #
3949 # You should have received a copy of the GNU General Public License version
3950 # 2 along with this work; if not, write to the Free Software Foundation,
3951 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3952 #
3953 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3954 # or visit www.oracle.com if you need additional information or have any
3955 # questions.
3956 #
3957 
3958 
3959 
3960 
3961 
3962 
3963 
3964 
3965 
3966 
3967 
3968 
3969 
3970 
3971 
3972 
3973 
3974 ################################################################################
3975 #
3976 # Runs icecc-create-env once and prints the error if it fails
3977 #
3978 # $1: arguments to icecc-create-env
3979 # $2: log file
3980 #
3981 
3982 
3983 ################################################################################
3984 #
3985 # Optionally enable distributed compilation of native code using icecc/icecream
3986 #
3987 
3988 
3989 
3990 
3991 
3992 
3993 
3994 #
3995 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
3996 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3997 #
3998 # This code is free software; you can redistribute it and/or modify it
3999 # under the terms of the GNU General Public License version 2 only, as
4000 # published by the Free Software Foundation.  Oracle designates this
4001 # particular file as subject to the "Classpath" exception as provided
4002 # by Oracle in the LICENSE file that accompanied this code.
4003 #
4004 # This code is distributed in the hope that it will be useful, but WITHOUT
4005 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4006 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4007 # version 2 for more details (a copy is included in the LICENSE file that
4008 # accompanied this code).
4009 #
4010 # You should have received a copy of the GNU General Public License version
4011 # 2 along with this work; if not, write to the Free Software Foundation,
4012 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4013 #
4014 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4015 # or visit www.oracle.com if you need additional information or have any
4016 # questions.
4017 #
4018 
4019 ################################################################################
4020 #
4021 # Setup ABI profile (for arm)
4022 #
4023 
4024 
4025 # Reset the global CFLAGS/LDFLAGS variables and initialize them with the
4026 # corresponding configure arguments instead
4027 
4028 
4029 # Setup the sysroot flags and add them to global CFLAGS and LDFLAGS so
4030 # that configure can use them while detecting compilers.
4031 # TOOLCHAIN_TYPE is available here.
4032 # Param 1 - Optional prefix to all variables. (e.g BUILD_)
4033 
4034 
4035 
4036 
4037 
4038 
4039 # Documentation on common flags used for solstudio in HIGHEST.
4040 #
4041 # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be
4042 #          done with care, there are some assumptions below that need to
4043 #          be understood about the use of pointers, and IEEE behavior.
4044 #
4045 # -fns: Use non-standard floating point mode (not IEEE 754)
4046 # -fsimple: Do some simplification of floating point arithmetic (not IEEE 754)
4047 # -fsingle: Use single precision floating point with 'float'
4048 # -xalias_level=basic: Assume memory references via basic pointer types do not alias
4049 #   (Source with excessing pointer casting and data access with mixed
4050 #    pointer types are not recommended)
4051 # -xbuiltin=%all: Use intrinsic or inline versions for math/std functions
4052 #   (If you expect perfect errno behavior, do not use this)
4053 # -xdepend: Loop data dependency optimizations (need -xO3 or higher)
4054 # -xrestrict: Pointer parameters to functions do not overlap
4055 #   (Similar to -xalias_level=basic usage, but less obvious sometimes.
4056 #    If you pass in multiple pointers to the same data, do not use this)
4057 # -xlibmil: Inline some library routines
4058 #   (If you expect perfect errno behavior, do not use this)
4059 # -xlibmopt: Use optimized math routines (CURRENTLY DISABLED)
4060 #   (If you expect perfect errno behavior, do not use this)
4061 #  Can cause undefined external on Solaris 8 X86 on __sincos, removing for now
4062 
4063     # FIXME: this will never happen since sparc != sparcv9, ie 32 bit, which we don't build anymore.
4064     # Bug?
4065     #if test "x$OPENJDK_TARGET_CPU" = xsparc; then
4066     #  CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s"
4067     #  CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s"
4068     #fi
4069 
4070 
4071 
4072 
4073 
4074 
4075 ################################################################################
4076 # $1 - Either BUILD or TARGET to pick the correct OS/CPU variables to check
4077 #      conditionals against.
4078 # $2 - Optional prefix for each variable defined.
4079 
4080 
4081 # FLAGS_C_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE],
4082 #                                  IF_FALSE: [RUN-IF-FALSE])
4083 # ------------------------------------------------------------
4084 # Check that the C compiler supports an argument
4085 
4086 
4087 
4088 
4089 # FLAGS_CXX_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE],
4090 #                                    IF_FALSE: [RUN-IF-FALSE])
4091 # ------------------------------------------------------------
4092 # Check that the C++ compiler supports an argument
4093 
4094 
4095 
4096 
4097 # FLAGS_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE],
4098 #                                IF_FALSE: [RUN-IF-FALSE])
4099 # ------------------------------------------------------------
4100 # Check that the C and C++ compilers support an argument
4101 
4102 
4103 
4104 
4105 # FLAGS_LINKER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE],
4106 #                                   IF_FALSE: [RUN-IF-FALSE])
4107 # ------------------------------------------------------------
4108 # Check that the linker support an argument
4109 
4110 
4111 
4112 
4113 
4114 
4115 # FLAGS_SETUP_GCC6_COMPILER_FLAGS([PREFIX])
4116 # Arguments:
4117 # $1 - Optional prefix for each variable defined.
4118 
4119 
4120 #
4121 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
4122 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4123 #
4124 # This code is free software; you can redistribute it and/or modify it
4125 # under the terms of the GNU General Public License version 2 only, as
4126 # published by the Free Software Foundation.  Oracle designates this
4127 # particular file as subject to the "Classpath" exception as provided
4128 # by Oracle in the LICENSE file that accompanied this code.
4129 #
4130 # This code is distributed in the hope that it will be useful, but WITHOUT
4131 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4132 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4133 # version 2 for more details (a copy is included in the LICENSE file that
4134 # accompanied this code).
4135 #
4136 # You should have received a copy of the GNU General Public License version
4137 # 2 along with this work; if not, write to the Free Software Foundation,
4138 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4139 #
4140 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4141 # or visit www.oracle.com if you need additional information or have any
4142 # questions.
4143 #
4144 
4145 
4146 
4147 
4148 
4149 cygwin_help() {
4150   case $1 in
4151     unzip)
4152       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )"
4153       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
4154       ;;
4155     zip)
4156       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )"
4157       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
4158       ;;
4159     make)
4160       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )"
4161       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
4162       ;;
4163     freetype)
4164       HELP_MSG="
4165 The freetype library can now be build during the configure process.
4166 Download the freetype sources and unpack them into an arbitrary directory:
4167 
4168 wget http://download.savannah.gnu.org/releases/freetype/freetype-2.5.3.tar.gz
4169 tar -xzf freetype-2.5.3.tar.gz
4170 
4171 Then run configure with '--with-freetype-src=<freetype_src>'. This will
4172 automatically build the freetype library into '<freetype_src>/lib64' for 64-bit
4173 builds or into '<freetype_src>/lib32' for 32-bit builds.
4174 Afterwards you can always use '--with-freetype-include=<freetype_src>/include'
4175 and '--with-freetype-lib=<freetype_src>/lib32|64' for other builds.
4176 
4177 Alternatively you can unpack the sources like this to use the default directory:
4178 
4179 tar --one-top-level=$HOME/freetype --strip-components=1 -xzf freetype-2.5.3.tar.gz"
4180       ;;
4181   esac
4182 }
4183 
4184 msys_help() {
4185   PKGHANDLER_COMMAND=""
4186 }
4187 
4188 apt_help() {
4189   case $1 in
4190     reduced)
4191       PKGHANDLER_COMMAND="sudo apt-get install gcc-multilib g++-multilib" ;;
4192     devkit)
4193       PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;;
4194     openjdk)
4195       PKGHANDLER_COMMAND="sudo apt-get install openjdk-8-jdk" ;;
4196     alsa)
4197       PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;;
4198     cups)
4199       PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;;
4200     freetype)
4201       PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;;
4202     ffi)
4203       PKGHANDLER_COMMAND="sudo apt-get install libffi-dev" ;;
4204     x11)
4205       PKGHANDLER_COMMAND="sudo apt-get install libx11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;;
4206     ccache)
4207       PKGHANDLER_COMMAND="sudo apt-get install ccache" ;;
4208     dtrace)
4209       PKGHANDLER_COMMAND="sudo apt-get install systemtap-sdt-dev" ;;
4210     elf)
4211       PKGHANDLER_COMMAND="sudo apt-get install libelf-dev" ;;
4212   esac
4213 }
4214 
4215 yum_help() {
4216   case $1 in
4217     devkit)
4218       PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;;
4219     openjdk)
4220       PKGHANDLER_COMMAND="sudo yum install java-1.8.0-openjdk-devel" ;;
4221     alsa)
4222       PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;;
4223     cups)
4224       PKGHANDLER_COMMAND="sudo yum install cups-devel" ;;
4225     freetype)
4226       PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;;
4227     x11)
4228       PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel libXi-devel" ;;
4229     ccache)
4230       PKGHANDLER_COMMAND="sudo yum install ccache" ;;
4231     elf)
4232       PKGHANDLER_COMMAND="sudo yum install elfutils-libelf-devel" ;;
4233   esac
4234 }
4235 
4236 brew_help() {
4237   case $1 in
4238     openjdk)
4239       PKGHANDLER_COMMAND="brew cask install java" ;;
4240     freetype)
4241       PKGHANDLER_COMMAND="brew install freetype" ;;
4242     ccache)
4243       PKGHANDLER_COMMAND="brew install ccache" ;;
4244   esac
4245 }
4246 
4247 port_help() {
4248   PKGHANDLER_COMMAND=""
4249 }
4250 
4251 pkgutil_help() {
4252   PKGHANDLER_COMMAND=""
4253 }
4254 
4255 pkgadd_help() {
4256   PKGHANDLER_COMMAND=""
4257 }
4258 
4259 # This function will check if we're called from the "configure" wrapper while
4260 # printing --help. If so, we will print out additional information that can
4261 # only be extracted within the autoconf script, and then exit. This must be
4262 # called at the very beginning in configure.ac.
4263 
4264 
4265 
4266 
4267 
4268 
4269 #
4270 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
4271 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4272 #
4273 # This code is free software; you can redistribute it and/or modify it
4274 # under the terms of the GNU General Public License version 2 only, as
4275 # published by the Free Software Foundation.  Oracle designates this
4276 # particular file as subject to the "Classpath" exception as provided
4277 # by Oracle in the LICENSE file that accompanied this code.
4278 #
4279 # This code is distributed in the hope that it will be useful, but WITHOUT
4280 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4281 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4282 # version 2 for more details (a copy is included in the LICENSE file that
4283 # accompanied this code).
4284 #
4285 # You should have received a copy of the GNU General Public License version
4286 # 2 along with this work; if not, write to the Free Software Foundation,
4287 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4288 #
4289 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4290 # or visit www.oracle.com if you need additional information or have any
4291 # questions.
4292 #
4293 
4294 # All valid JVM features, regardless of platform
4295 VALID_JVM_FEATURES="compiler1 compiler2 zero shark minimal dtrace jvmti jvmci \
4296     graal fprof vm-structs jni-check services management all-gcs nmt cds \
4297     static-build link-time-opt aot"
4298 
4299 # All valid JVM variants
4300 VALID_JVM_VARIANTS="server client minimal core zero zeroshark custom"
4301 
4302 ###############################################################################
4303 # Check if the specified JVM variant should be built. To be used in shell if
4304 # constructs, like this:
4305 # if HOTSPOT_CHECK_JVM_VARIANT(server); then
4306 #
4307 # Only valid to use after HOTSPOT_SETUP_JVM_VARIANTS has setup variants.
4308 
4309 # Definition kept in one line to allow inlining in if statements.
4310 # Additional [] needed to keep m4 from mangling shell constructs.
4311 
4312 
4313 ###############################################################################
4314 # Check if the specified JVM features are explicitly enabled. To be used in
4315 # shell if constructs, like this:
4316 # if HOTSPOT_CHECK_JVM_FEATURE(jvmti); then
4317 #
4318 # Only valid to use after HOTSPOT_SETUP_JVM_FEATURES has setup features.
4319 
4320 # Definition kept in one line to allow inlining in if statements.
4321 # Additional [] needed to keep m4 from mangling shell constructs.
4322 
4323 
4324 ###############################################################################
4325 # Check which variants of the JVM that we want to build. Available variants are:
4326 #   server: normal interpreter, and a tiered C1/C2 compiler
4327 #   client: normal interpreter, and C1 (no C2 compiler)
4328 #   minimal: reduced form of client with optional features stripped out
4329 #   core: normal interpreter only, no compiler
4330 #   zero: C++ based interpreter only, no compiler
4331 #   zeroshark: C++ based interpreter, and a llvm-based compiler
4332 #   custom: baseline JVM with no default features
4333 #
4334 
4335 
4336 ###############################################################################
4337 # Check if dtrace should be enabled and has all prerequisites present.
4338 #
4339 
4340 
4341 ################################################################################
4342 # Check if AOT should be enabled
4343 #
4344 
4345 
4346 ###############################################################################
4347 # Set up all JVM features for each JVM variant.
4348 #
4349 
4350 
4351 ###############################################################################
4352 # Validate JVM features once all setup is complete, including custom setup.
4353 #
4354 
4355 
4356 ################################################################################
4357 #
4358 # Specify which sources will be used to build the 64-bit ARM port
4359 #
4360 # --with-cpu-port=arm64   will use hotspot/src/cpu/arm
4361 # --with-cpu-port=aarch64 will use hotspot/src/cpu/aarch64
4362 #
4363 
4364 
4365 
4366 ################################################################################
4367 # Check if gtest should be built
4368 #
4369 
4370 
4371 #
4372 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
4373 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4374 #
4375 # This code is free software; you can redistribute it and/or modify it
4376 # under the terms of the GNU General Public License version 2 only, as
4377 # published by the Free Software Foundation.  Oracle designates this
4378 # particular file as subject to the "Classpath" exception as provided
4379 # by Oracle in the LICENSE file that accompanied this code.
4380 #
4381 # This code is distributed in the hope that it will be useful, but WITHOUT
4382 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4383 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4384 # version 2 for more details (a copy is included in the LICENSE file that
4385 # accompanied this code).
4386 #
4387 # You should have received a copy of the GNU General Public License version
4388 # 2 along with this work; if not, write to the Free Software Foundation,
4389 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4390 #
4391 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4392 # or visit www.oracle.com if you need additional information or have any
4393 # questions.
4394 #
4395 
4396 ###############################################################################
4397 # Check which variant of the JDK that we want to build.
4398 # Currently we have:
4399 #    normal:   standard edition
4400 # but the custom make system may add other variants
4401 #
4402 # Effectively the JDK variant gives a name to a specific set of
4403 # modules to compile into the JDK.
4404 
4405 
4406 ###############################################################################
4407 # Set the debug level
4408 #    release: no debug information, all optimizations, no asserts.
4409 #    optimized: no debug information, all optimizations, no asserts, HotSpot target is 'optimized'.
4410 #    fastdebug: debug information (-g), all optimizations, all asserts
4411 #    slowdebug: debug information (-g), no optimizations, all asserts
4412 
4413 
4414 ###############################################################################
4415 #
4416 # Should we build only OpenJDK even if closed sources are present?
4417 #
4418 
4419 
4420 
4421 
4422 ###############################################################################
4423 #
4424 # Enable or disable the elliptic curve crypto implementation
4425 #
4426 
4427 
4428 
4429 
4430 ################################################################################
4431 #
4432 # Gcov coverage data for hotspot
4433 #
4434 
4435 
4436 ################################################################################
4437 #
4438 # Static build support.  When enabled will generate static
4439 # libraries instead of shared libraries for all JDK libs.
4440 #
4441 
4442 
4443 ################################################################################
4444 #
4445 # jlink options.
4446 # We always keep packaged modules in JDK image.
4447 #
4448 
4449 
4450 ################################################################################
4451 #
4452 # Check if building of the jtreg failure handler should be enabled.
4453 #
4454 
4455 
4456 ################################################################################
4457 #
4458 # Enable or disable generation of the classlist at build time
4459 #
4460 
4461 
4462 #
4463 # Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
4464 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4465 #
4466 # This code is free software; you can redistribute it and/or modify it
4467 # under the terms of the GNU General Public License version 2 only, as
4468 # published by the Free Software Foundation.  Oracle designates this
4469 # particular file as subject to the "Classpath" exception as provided
4470 # by Oracle in the LICENSE file that accompanied this code.
4471 #
4472 # This code is distributed in the hope that it will be useful, but WITHOUT
4473 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4474 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4475 # version 2 for more details (a copy is included in the LICENSE file that
4476 # accompanied this code).
4477 #
4478 # You should have received a copy of the GNU General Public License version
4479 # 2 along with this work; if not, write to the Free Software Foundation,
4480 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4481 #
4482 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4483 # or visit www.oracle.com if you need additional information or have any
4484 # questions.
4485 #
4486 
4487 ###############################################################################
4488 #
4489 # Setup version numbers
4490 #
4491 
4492 # Verify that a given string represents a valid version number, and assign it
4493 # to a variable.
4494 
4495 # Argument 1: the variable to assign to
4496 # Argument 2: the value given by the user
4497 
4498 
4499 
4500 
4501 #
4502 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4503 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4504 #
4505 # This code is free software; you can redistribute it and/or modify it
4506 # under the terms of the GNU General Public License version 2 only, as
4507 # published by the Free Software Foundation.  Oracle designates this
4508 # particular file as subject to the "Classpath" exception as provided
4509 # by Oracle in the LICENSE file that accompanied this code.
4510 #
4511 # This code is distributed in the hope that it will be useful, but WITHOUT
4512 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4513 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4514 # version 2 for more details (a copy is included in the LICENSE file that
4515 # accompanied this code).
4516 #
4517 # You should have received a copy of the GNU General Public License version
4518 # 2 along with this work; if not, write to the Free Software Foundation,
4519 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4520 #
4521 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4522 # or visit www.oracle.com if you need additional information or have any
4523 # questions.
4524 #
4525 
4526 # Major library component reside in separate files.
4527 #
4528 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4529 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4530 #
4531 # This code is free software; you can redistribute it and/or modify it
4532 # under the terms of the GNU General Public License version 2 only, as
4533 # published by the Free Software Foundation.  Oracle designates this
4534 # particular file as subject to the "Classpath" exception as provided
4535 # by Oracle in the LICENSE file that accompanied this code.
4536 #
4537 # This code is distributed in the hope that it will be useful, but WITHOUT
4538 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4539 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4540 # version 2 for more details (a copy is included in the LICENSE file that
4541 # accompanied this code).
4542 #
4543 # You should have received a copy of the GNU General Public License version
4544 # 2 along with this work; if not, write to the Free Software Foundation,
4545 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4546 #
4547 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4548 # or visit www.oracle.com if you need additional information or have any
4549 # questions.
4550 #
4551 
4552 ################################################################################
4553 # Setup alsa (Advanced Linux Sound Architecture)
4554 ################################################################################
4555 
4556 
4557 #
4558 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
4559 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4560 #
4561 # This code is free software; you can redistribute it and/or modify it
4562 # under the terms of the GNU General Public License version 2 only, as
4563 # published by the Free Software Foundation.  Oracle designates this
4564 # particular file as subject to the "Classpath" exception as provided
4565 # by Oracle in the LICENSE file that accompanied this code.
4566 #
4567 # This code is distributed in the hope that it will be useful, but WITHOUT
4568 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4569 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4570 # version 2 for more details (a copy is included in the LICENSE file that
4571 # accompanied this code).
4572 #
4573 # You should have received a copy of the GNU General Public License version
4574 # 2 along with this work; if not, write to the Free Software Foundation,
4575 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4576 #
4577 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4578 # or visit www.oracle.com if you need additional information or have any
4579 # questions.
4580 #
4581 
4582 ################################################################################
4583 # Setup bundled libraries.
4584 #
4585 # For libjpeg, giflib, libpng, lcms2 and zlib, the source is present in the
4586 # OpenJDK repository. Default is to use these libraries as bundled, but they
4587 # might be replaced by en external version by the user.
4588 ################################################################################
4589 
4590 
4591 ################################################################################
4592 # Setup libjpeg
4593 ################################################################################
4594 
4595 
4596 ################################################################################
4597 # Setup giflib
4598 ################################################################################
4599 
4600 
4601 ################################################################################
4602 # Setup libpng
4603 ################################################################################
4604 
4605 
4606 ################################################################################
4607 # Setup zlib
4608 ################################################################################
4609 
4610 
4611 ################################################################################
4612 # Setup lcms (Little CMS)
4613 ################################################################################
4614 
4615 
4616 #
4617 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4618 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4619 #
4620 # This code is free software; you can redistribute it and/or modify it
4621 # under the terms of the GNU General Public License version 2 only, as
4622 # published by the Free Software Foundation.  Oracle designates this
4623 # particular file as subject to the "Classpath" exception as provided
4624 # by Oracle in the LICENSE file that accompanied this code.
4625 #
4626 # This code is distributed in the hope that it will be useful, but WITHOUT
4627 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4628 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4629 # version 2 for more details (a copy is included in the LICENSE file that
4630 # accompanied this code).
4631 #
4632 # You should have received a copy of the GNU General Public License version
4633 # 2 along with this work; if not, write to the Free Software Foundation,
4634 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4635 #
4636 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4637 # or visit www.oracle.com if you need additional information or have any
4638 # questions.
4639 #
4640 
4641 ################################################################################
4642 # Setup cups (Common Unix Printing System)
4643 ################################################################################
4644 
4645 
4646 #
4647 # Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
4648 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4649 #
4650 # This code is free software; you can redistribute it and/or modify it
4651 # under the terms of the GNU General Public License version 2 only, as
4652 # published by the Free Software Foundation.  Oracle designates this
4653 # particular file as subject to the "Classpath" exception as provided
4654 # by Oracle in the LICENSE file that accompanied this code.
4655 #
4656 # This code is distributed in the hope that it will be useful, but WITHOUT
4657 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4658 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4659 # version 2 for more details (a copy is included in the LICENSE file that
4660 # accompanied this code).
4661 #
4662 # You should have received a copy of the GNU General Public License version
4663 # 2 along with this work; if not, write to the Free Software Foundation,
4664 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4665 #
4666 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4667 # or visit www.oracle.com if you need additional information or have any
4668 # questions.
4669 #
4670 
4671 ################################################################################
4672 # Setup libffi (Foreign Function Interface)
4673 ################################################################################
4674 
4675 
4676 #
4677 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
4678 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4679 #
4680 # This code is free software; you can redistribute it and/or modify it
4681 # under the terms of the GNU General Public License version 2 only, as
4682 # published by the Free Software Foundation.  Oracle designates this
4683 # particular file as subject to the "Classpath" exception as provided
4684 # by Oracle in the LICENSE file that accompanied this code.
4685 #
4686 # This code is distributed in the hope that it will be useful, but WITHOUT
4687 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4688 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4689 # version 2 for more details (a copy is included in the LICENSE file that
4690 # accompanied this code).
4691 #
4692 # You should have received a copy of the GNU General Public License version
4693 # 2 along with this work; if not, write to the Free Software Foundation,
4694 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4695 #
4696 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4697 # or visit www.oracle.com if you need additional information or have any
4698 # questions.
4699 #
4700 
4701 ################################################################################
4702 # Build the freetype lib from source
4703 ################################################################################
4704 
4705 
4706 ################################################################################
4707 # Check if a potential freeype library match is correct and usable
4708 ################################################################################
4709 
4710 
4711 ################################################################################
4712 # Setup freetype (The FreeType2 font rendering library)
4713 ################################################################################
4714 
4715 
4716 #
4717 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4718 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4719 #
4720 # This code is free software; you can redistribute it and/or modify it
4721 # under the terms of the GNU General Public License version 2 only, as
4722 # published by the Free Software Foundation.  Oracle designates this
4723 # particular file as subject to the "Classpath" exception as provided
4724 # by Oracle in the LICENSE file that accompanied this code.
4725 #
4726 # This code is distributed in the hope that it will be useful, but WITHOUT
4727 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4728 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4729 # version 2 for more details (a copy is included in the LICENSE file that
4730 # accompanied this code).
4731 #
4732 # You should have received a copy of the GNU General Public License version
4733 # 2 along with this work; if not, write to the Free Software Foundation,
4734 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4735 #
4736 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4737 # or visit www.oracle.com if you need additional information or have any
4738 # questions.
4739 #
4740 
4741 ################################################################################
4742 # Setup the standard C/C++ runtime libraries.
4743 #
4744 # Most importantly, determine if stdc++ should be linked statically or
4745 # dynamically.
4746 ################################################################################
4747 
4748 
4749 #
4750 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4751 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4752 #
4753 # This code is free software; you can redistribute it and/or modify it
4754 # under the terms of the GNU General Public License version 2 only, as
4755 # published by the Free Software Foundation.  Oracle designates this
4756 # particular file as subject to the "Classpath" exception as provided
4757 # by Oracle in the LICENSE file that accompanied this code.
4758 #
4759 # This code is distributed in the hope that it will be useful, but WITHOUT
4760 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4761 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4762 # version 2 for more details (a copy is included in the LICENSE file that
4763 # accompanied this code).
4764 #
4765 # You should have received a copy of the GNU General Public License version
4766 # 2 along with this work; if not, write to the Free Software Foundation,
4767 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4768 #
4769 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4770 # or visit www.oracle.com if you need additional information or have any
4771 # questions.
4772 #
4773 
4774 ################################################################################
4775 # Setup X11 Windows system
4776 ################################################################################
4777 
4778 
4779 #
4780 # Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
4781 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4782 #
4783 # This code is free software; you can redistribute it and/or modify it
4784 # under the terms of the GNU General Public License version 2 only, as
4785 # published by the Free Software Foundation.  Oracle designates this
4786 # particular file as subject to the "Classpath" exception as provided
4787 # by Oracle in the LICENSE file that accompanied this code.
4788 #
4789 # This code is distributed in the hope that it will be useful, but WITHOUT
4790 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4791 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4792 # version 2 for more details (a copy is included in the LICENSE file that
4793 # accompanied this code).
4794 #
4795 # You should have received a copy of the GNU General Public License version
4796 # 2 along with this work; if not, write to the Free Software Foundation,
4797 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4798 #
4799 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4800 # or visit www.oracle.com if you need additional information or have any
4801 # questions.
4802 #
4803 
4804 ################################################################################
4805 # Setup libelf (ELF library)
4806 ################################################################################
4807 
4808 
4809 
4810 ################################################################################
4811 # Determine which libraries are needed for this configuration
4812 ################################################################################
4813 
4814 
4815 ################################################################################
4816 # Parse library options, and setup needed libraries
4817 ################################################################################
4818 
4819 
4820 ################################################################################
4821 # Setup llvm (Low-Level VM)
4822 ################################################################################
4823 
4824 
4825 ################################################################################
4826 # Setup various libraries, typically small system libraries
4827 ################################################################################
4828 
4829 
4830 ################################################################################
4831 # libstlport.so.1 is needed for running gtest on Solaris. Find it to
4832 # redistribute it in the test image.
4833 ################################################################################
4834 
4835 
4836 
4837 #
4838 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
4839 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4840 #
4841 # This code is free software; you can redistribute it and/or modify it
4842 # under the terms of the GNU General Public License version 2 only, as
4843 # published by the Free Software Foundation.  Oracle designates this
4844 # particular file as subject to the "Classpath" exception as provided
4845 # by Oracle in the LICENSE file that accompanied this code.
4846 #
4847 # This code is distributed in the hope that it will be useful, but WITHOUT
4848 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4849 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4850 # version 2 for more details (a copy is included in the LICENSE file that
4851 # accompanied this code).
4852 #
4853 # You should have received a copy of the GNU General Public License version
4854 # 2 along with this work; if not, write to the Free Software Foundation,
4855 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4856 #
4857 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4858 # or visit www.oracle.com if you need additional information or have any
4859 # questions.
4860 #
4861 
4862 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4863 # Converts autoconf style CPU name to OpenJDK style, into
4864 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN.
4865 
4866 
4867 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4868 # Converts autoconf style OS name to OpenJDK style, into
4869 # VAR_OS, VAR_OS_TYPE and VAR_OS_ENV.
4870 
4871 
4872 # Expects $host_os $host_cpu $build_os and $build_cpu
4873 # and $with_target_bits to have been setup!
4874 #
4875 # Translate the standard triplet(quadruplet) definition
4876 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU,
4877 # OPENJDK_BUILD_OS, etc.
4878 
4879 
4880 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour
4881 # accordingly. Must be done after setting up build and target system, but before
4882 # doing anything else with these values.
4883 
4884 
4885 # Setup the legacy variables, for controlling the old makefiles.
4886 #
4887 
4888 
4889 # $1 - Either TARGET or BUILD to setup the variables for.
4890 
4891 
4892 
4893 
4894 #%%% Build and target systems %%%
4895 
4896 
4897 
4898 
4899 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS.
4900 # Add -mX to various FLAGS variables.
4901 
4902 
4903 
4904 
4905 
4906 
4907 #
4908 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4909 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4910 #
4911 # This code is free software; you can redistribute it and/or modify it
4912 # under the terms of the GNU General Public License version 2 only, as
4913 # published by the Free Software Foundation.  Oracle designates this
4914 # particular file as subject to the "Classpath" exception as provided
4915 # by Oracle in the LICENSE file that accompanied this code.
4916 #
4917 # This code is distributed in the hope that it will be useful, but WITHOUT
4918 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4919 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4920 # version 2 for more details (a copy is included in the LICENSE file that
4921 # accompanied this code).
4922 #
4923 # You should have received a copy of the GNU General Public License version
4924 # 2 along with this work; if not, write to the Free Software Foundation,
4925 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4926 #
4927 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4928 # or visit www.oracle.com if you need additional information or have any
4929 # questions.
4930 #
4931 
4932 
4933 
4934 
4935 
4936 
4937 
4938 ################################################################################
4939 # Define a mechanism for importing extra prebuilt modules
4940 #
4941 
4942 
4943 
4944 #
4945 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4946 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4947 #
4948 # This code is free software; you can redistribute it and/or modify it
4949 # under the terms of the GNU General Public License version 2 only, as
4950 # published by the Free Software Foundation.  Oracle designates this
4951 # particular file as subject to the "Classpath" exception as provided
4952 # by Oracle in the LICENSE file that accompanied this code.
4953 #
4954 # This code is distributed in the hope that it will be useful, but WITHOUT
4955 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4956 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4957 # version 2 for more details (a copy is included in the LICENSE file that
4958 # accompanied this code).
4959 #
4960 # You should have received a copy of the GNU General Public License version
4961 # 2 along with this work; if not, write to the Free Software Foundation,
4962 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4963 #
4964 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4965 # or visit www.oracle.com if you need additional information or have any
4966 # questions.
4967 #
4968 
4969 ########################################################################
4970 # This file is responsible for detecting, verifying and setting up the
4971 # toolchain, i.e. the compiler, linker and related utilities. It will setup
4972 # proper paths to the binaries, but it will not setup any flags.
4973 #
4974 # The binaries used is determined by the toolchain type, which is the family of
4975 # compilers and related tools that are used.
4976 ########################################################################
4977 
4978 
4979 # All valid toolchains, regardless of platform (used by help.m4)
4980 VALID_TOOLCHAINS_all="gcc clang solstudio xlc microsoft"
4981 
4982 # These toolchains are valid on different platforms
4983 VALID_TOOLCHAINS_linux="gcc clang"
4984 VALID_TOOLCHAINS_solaris="solstudio"
4985 VALID_TOOLCHAINS_macosx="gcc clang"
4986 VALID_TOOLCHAINS_aix="xlc"
4987 VALID_TOOLCHAINS_windows="microsoft"
4988 
4989 # Toolchain descriptions
4990 TOOLCHAIN_DESCRIPTION_clang="clang/LLVM"
4991 TOOLCHAIN_DESCRIPTION_gcc="GNU Compiler Collection"
4992 TOOLCHAIN_DESCRIPTION_microsoft="Microsoft Visual Studio"
4993 TOOLCHAIN_DESCRIPTION_solstudio="Oracle Solaris Studio"
4994 TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++"
4995 
4996 # Minimum supported versions, empty means unspecified
4997 TOOLCHAIN_MINIMUM_VERSION_clang="3.2"
4998 TOOLCHAIN_MINIMUM_VERSION_gcc="4.3"
4999 TOOLCHAIN_MINIMUM_VERSION_microsoft="16.00.30319.01" # VS2010
5000 TOOLCHAIN_MINIMUM_VERSION_solstudio="5.13"
5001 TOOLCHAIN_MINIMUM_VERSION_xlc=""
5002 
5003 # Prepare the system so that TOOLCHAIN_CHECK_COMPILER_VERSION can be called.
5004 # Must have CC_VERSION_NUMBER and CXX_VERSION_NUMBER.
5005 # $1 - optional variable prefix for compiler and version variables (BUILD_)
5006 # $2 - optional variable prefix for comparable variable (OPENJDK_BUILD_)
5007 
5008 
5009 # Check if the configured compiler (C and C++) is of a specific version or
5010 # newer. TOOLCHAIN_PREPARE_FOR_VERSION_COMPARISONS must have been called before.
5011 #
5012 # Arguments:
5013 #   VERSION:   The version string to check against the found version
5014 #   IF_AT_LEAST:   block to run if the compiler is at least this version (>=)
5015 #   IF_OLDER_THAN:   block to run if the compiler is older than this version (<)
5016 #   PREFIX:   Optional variable prefix for compiler to compare version for (OPENJDK_BUILD_)
5017 
5018 
5019 
5020 
5021 # Setup a number of variables describing how native output files are
5022 # named on this platform/toolchain.
5023 
5024 
5025 # Determine which toolchain type to use, and make sure it is valid for this
5026 # platform. Setup various information about the selected toolchain.
5027 
5028 
5029 # Before we start detecting the toolchain executables, we might need some
5030 # special setup, e.g. additional paths etc.
5031 
5032 
5033 # Restore path, etc
5034 
5035 
5036 # Check if a compiler is of the toolchain type we expect, and save the version
5037 # information from it. If the compiler does not match the expected type,
5038 # this function will abort using AC_MSG_ERROR. If it matches, the version will
5039 # be stored in CC_VERSION_NUMBER/CXX_VERSION_NUMBER (as a dotted number), and
5040 # the full version string in CC_VERSION_STRING/CXX_VERSION_STRING.
5041 #
5042 # $1 = compiler to test (CC or CXX)
5043 # $2 = human readable name of compiler (C or C++)
5044 
5045 
5046 # Try to locate the given C or C++ compiler in the path, or otherwise.
5047 #
5048 # $1 = compiler to test (CC or CXX)
5049 # $2 = human readable name of compiler (C or C++)
5050 # $3 = compiler name to search for
5051 
5052 
5053 # Detect the core components of the toolchain, i.e. the compilers (CC and CXX),
5054 # preprocessor (CPP and CXXCPP), the linker (LD), the assembler (AS) and the
5055 # archiver (AR). Verify that the compilers are correct according to the
5056 # toolchain type.
5057 
5058 
5059 # Setup additional tools that is considered a part of the toolchain, but not the
5060 # core part. Many of these are highly platform-specific and do not exist,
5061 # and/or are not needed on all platforms.
5062 
5063 
5064 # Setup the build tools (i.e, the compiler and linker used to build programs
5065 # that should be run on the build platform, not the target platform, as a build
5066 # helper). Since the non-cross-compile case uses the normal, target compilers
5067 # for this, we can only do this after these have been setup.
5068 
5069 
5070 # Do some additional checks on the detected tools.
5071 
5072 
5073 # Setup the JTReg Regression Test Harness.
5074 
5075 
5076 #
5077 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
5078 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5079 #
5080 # This code is free software; you can redistribute it and/or modify it
5081 # under the terms of the GNU General Public License version 2 only, as
5082 # published by the Free Software Foundation.  Oracle designates this
5083 # particular file as subject to the "Classpath" exception as provided
5084 # by Oracle in the LICENSE file that accompanied this code.
5085 #
5086 # This code is distributed in the hope that it will be useful, but WITHOUT
5087 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
5088 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
5089 # version 2 for more details (a copy is included in the LICENSE file that
5090 # accompanied this code).
5091 #
5092 # You should have received a copy of the GNU General Public License version
5093 # 2 along with this work; if not, write to the Free Software Foundation,
5094 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
5095 #
5096 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
5097 # or visit www.oracle.com if you need additional information or have any
5098 # questions.
5099 #
5100 
5101 ################################################################################
5102 # The order of these defines the priority by which we try to find them.
5103 VALID_VS_VERSIONS="2013 2012 2010"
5104 
5105 VS_DESCRIPTION_2010="Microsoft Visual Studio 2010"
5106 VS_VERSION_INTERNAL_2010=100
5107 VS_MSVCR_2010=msvcr100.dll
5108 # We don't use msvcp on Visual Studio 2010
5109 #VS_MSVCP_2010=msvcp100.dll
5110 VS_ENVVAR_2010="VS100COMNTOOLS"
5111 VS_VS_INSTALLDIR_2010="Microsoft Visual Studio 10.0"
5112 VS_SDK_INSTALLDIR_2010="Microsoft SDKs/Windows/v7.1"
5113 VS_VS_PLATFORM_NAME_2010="v100"
5114 VS_SDK_PLATFORM_NAME_2010="Windows7.1SDK"
5115 
5116 VS_DESCRIPTION_2012="Microsoft Visual Studio 2012"
5117 VS_VERSION_INTERNAL_2012=110
5118 VS_MSVCR_2012=msvcr110.dll
5119 VS_MSVCP_2012=msvcp110.dll
5120 VS_ENVVAR_2012="VS110COMNTOOLS"
5121 VS_VS_INSTALLDIR_2012="Microsoft Visual Studio 11.0"
5122 VS_SDK_INSTALLDIR_2012=
5123 VS_VS_PLATFORM_NAME_2012="v110"
5124 VS_SDK_PLATFORM_NAME_2012=
5125 
5126 VS_DESCRIPTION_2013="Microsoft Visual Studio 2013"
5127 VS_VERSION_INTERNAL_2013=120
5128 VS_MSVCR_2013=msvcr120.dll
5129 VS_MSVCP_2013=msvcp120.dll
5130 VS_ENVVAR_2013="VS120COMNTOOLS"
5131 VS_VS_INSTALLDIR_2013="Microsoft Visual Studio 12.0"
5132 VS_SDK_INSTALLDIR_2013=
5133 VS_VS_PLATFORM_NAME_2013="v120"
5134 VS_SDK_PLATFORM_NAME_2013=
5135 
5136 ################################################################################
5137 
5138 
5139 
5140 ################################################################################
5141 
5142 
5143 
5144 ################################################################################
5145 # Finds the bat or cmd file in Visual Studio or the SDK that sets up a proper
5146 # build environment and assigns it to VS_ENV_CMD
5147 
5148 
5149 ################################################################################
5150 
5151 
5152 
5153 ################################################################################
5154 # Check if the VS env variables were setup prior to running configure.
5155 # If not, then find vcvarsall.bat and run it automatically, and integrate
5156 # the set env variables into the spec file.
5157 
5158 
5159 
5160 
5161 
5162 
5163 
5164 
5165 
5166 
5167 
5168 
5169 
5170 
5171 # This line needs to be here, verbatim, after all includes and the dummy hook
5172 # definitions. It is replaced with custom functionality when building
5173 # custom sources.
5174 #CUSTOM_AUTOCONF_INCLUDE
5175 
5176 # Do not change or remove the following line, it is needed for consistency checks:
5177 DATE_WHEN_GENERATED=1490856742
5178 
5179 ###############################################################################
5180 #
5181 # Initialization / Boot-strapping
5182 #
5183 # The bootstrapping process needs to solve the "chicken or the egg" problem,
5184 # thus it jumps back and forth, each time gaining something needed later on.
5185 #
5186 ###############################################################################
5187 
5188 # If we are requested to print additional help, do that and then exit.
5189 # This must be the very first call.
5190 
5191   if test "x$CONFIGURE_PRINT_ADDITIONAL_HELP" != x; then
5192 
5193     # Print available toolchains
5194     $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
5195     $PRINTF "Which are valid to use depends on the build platform.\n"
5196     for toolchain in $VALID_TOOLCHAINS_all; do
5197       # Use indirect variable referencing
5198       toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain
5199       TOOLCHAIN_DESCRIPTION=${!toolchain_var_name}
5200       $PRINTF "  %-10s  %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION"
5201     done
5202     $PRINTF "\n"
5203 
5204     # Print available jvm features
5205     $PRINTF "The following JVM features are available as arguments to --with-jvm-features.\n"
5206     $PRINTF "Which are valid to use depends on the target platform.\n  "
5207     $PRINTF "%s " $VALID_JVM_FEATURES
5208     $PRINTF "\n"
5209 
5210     # And now exit directly
5211     exit 0
5212   fi
5213 
5214 
5215 # Basic initialization that must happen first of all in the normal process.
5216 
5217   # Save the original command line. This is passed to us by the wrapper configure script.
5218 
5219   # Save the path variable before it gets changed
5220   ORIGINAL_PATH="$PATH"
5221 
5222   DATE_WHEN_CONFIGURED=`LANG=C date`
5223 
5224   { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5
5225 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;}
5226   { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5
5227 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;}
5228 
5229 
5230   # Start with tools that do not need have cross compilation support
5231   # and can be expected to be found in the default PATH. These tools are
5232   # used by configure.
5233 
5234   # First are all the simple required tools.
5235 
5236 
5237 
5238   # Publish this variable in the help.
5239 
5240 
5241   if [ -z "${BASENAME+x}" ]; then
5242     # The variable is not set by user, try to locate tool using the code snippet
5243     for ac_prog in basename
5244 do
5245   # Extract the first word of "$ac_prog", so it can be a program name with args.
5246 set dummy $ac_prog; ac_word=$2
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5248 $as_echo_n "checking for $ac_word... " >&6; }
5249 if ${ac_cv_path_BASENAME+:} false; then :
5250   $as_echo_n "(cached) " >&6
5251 else
5252   case $BASENAME in
5253   [\\/]* | ?:[\\/]*)
5254   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
5255   ;;
5256   *)
5257   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5258 for as_dir in $PATH
5259 do
5260   IFS=$as_save_IFS
5261   test -z "$as_dir" && as_dir=.
5262     for ac_exec_ext in '' $ac_executable_extensions; do
5263   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5264     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
5265     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5266     break 2
5267   fi
5268 done
5269   done
5270 IFS=$as_save_IFS
5271 
5272   ;;
5273 esac
5274 fi
5275 BASENAME=$ac_cv_path_BASENAME
5276 if test -n "$BASENAME"; then
5277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
5278 $as_echo "$BASENAME" >&6; }
5279 else
5280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5281 $as_echo "no" >&6; }
5282 fi
5283 
5284 
5285   test -n "$BASENAME" && break
5286 done
5287 
5288   else
5289     # The variable is set, but is it from the command line or the environment?
5290 
5291     # Try to remove the string !BASENAME! from our list.
5292     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/}
5293     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5294       # If it failed, the variable was not from the command line. Ignore it,
5295       # but warn the user (except for BASH, which is always set by the calling BASH).
5296       if test "xBASENAME" != xBASH; then
5297         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5
5298 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;}
5299       fi
5300       # Try to locate tool using the code snippet
5301       for ac_prog in basename
5302 do
5303   # Extract the first word of "$ac_prog", so it can be a program name with args.
5304 set dummy $ac_prog; ac_word=$2
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5306 $as_echo_n "checking for $ac_word... " >&6; }
5307 if ${ac_cv_path_BASENAME+:} false; then :
5308   $as_echo_n "(cached) " >&6
5309 else
5310   case $BASENAME in
5311   [\\/]* | ?:[\\/]*)
5312   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
5313   ;;
5314   *)
5315   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5316 for as_dir in $PATH
5317 do
5318   IFS=$as_save_IFS
5319   test -z "$as_dir" && as_dir=.
5320     for ac_exec_ext in '' $ac_executable_extensions; do
5321   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5322     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
5323     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5324     break 2
5325   fi
5326 done
5327   done
5328 IFS=$as_save_IFS
5329 
5330   ;;
5331 esac
5332 fi
5333 BASENAME=$ac_cv_path_BASENAME
5334 if test -n "$BASENAME"; then
5335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
5336 $as_echo "$BASENAME" >&6; }
5337 else
5338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5339 $as_echo "no" >&6; }
5340 fi
5341 
5342 
5343   test -n "$BASENAME" && break
5344 done
5345 
5346     else
5347       # If it succeeded, then it was overridden by the user. We will use it
5348       # for the tool.
5349 
5350       # First remove it from the list of overridden variables, so we can test
5351       # for unknown variables in the end.
5352       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5353 
5354       # Check if we try to supply an empty value
5355       if test "x$BASENAME" = x; then
5356         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BASENAME= (no value)" >&5
5357 $as_echo "$as_me: Setting user supplied tool BASENAME= (no value)" >&6;}
5358         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5
5359 $as_echo_n "checking for BASENAME... " >&6; }
5360         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5361 $as_echo "disabled" >&6; }
5362       else
5363         # Check if the provided tool contains a complete path.
5364         tool_specified="$BASENAME"
5365         tool_basename="${tool_specified##*/}"
5366         if test "x$tool_basename" = "x$tool_specified"; then
5367           # A command without a complete path is provided, search $PATH.
5368           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5
5369 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;}
5370           # Extract the first word of "$tool_basename", so it can be a program name with args.
5371 set dummy $tool_basename; ac_word=$2
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5373 $as_echo_n "checking for $ac_word... " >&6; }
5374 if ${ac_cv_path_BASENAME+:} false; then :
5375   $as_echo_n "(cached) " >&6
5376 else
5377   case $BASENAME in
5378   [\\/]* | ?:[\\/]*)
5379   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
5380   ;;
5381   *)
5382   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5383 for as_dir in $PATH
5384 do
5385   IFS=$as_save_IFS
5386   test -z "$as_dir" && as_dir=.
5387     for ac_exec_ext in '' $ac_executable_extensions; do
5388   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5389     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
5390     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5391     break 2
5392   fi
5393 done
5394   done
5395 IFS=$as_save_IFS
5396 
5397   ;;
5398 esac
5399 fi
5400 BASENAME=$ac_cv_path_BASENAME
5401 if test -n "$BASENAME"; then
5402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
5403 $as_echo "$BASENAME" >&6; }
5404 else
5405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5406 $as_echo "no" >&6; }
5407 fi
5408 
5409 
5410           if test "x$BASENAME" = x; then
5411             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5412           fi
5413         else
5414           # Otherwise we believe it is a complete path. Use it as it is.
5415           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5
5416 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;}
5417           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5
5418 $as_echo_n "checking for BASENAME... " >&6; }
5419           if test ! -x "$tool_specified"; then
5420             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5421 $as_echo "not found" >&6; }
5422             as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5
5423           fi
5424           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5425 $as_echo "$tool_specified" >&6; }
5426         fi
5427       fi
5428     fi
5429 
5430   fi
5431 
5432 
5433 
5434   if test "x$BASENAME" = x; then
5435     as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5
5436   fi
5437 
5438 
5439 
5440 
5441 
5442   # Publish this variable in the help.
5443 
5444 
5445   if [ -z "${BASH+x}" ]; then
5446     # The variable is not set by user, try to locate tool using the code snippet
5447     for ac_prog in bash
5448 do
5449   # Extract the first word of "$ac_prog", so it can be a program name with args.
5450 set dummy $ac_prog; ac_word=$2
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5452 $as_echo_n "checking for $ac_word... " >&6; }
5453 if ${ac_cv_path_BASH+:} false; then :
5454   $as_echo_n "(cached) " >&6
5455 else
5456   case $BASH in
5457   [\\/]* | ?:[\\/]*)
5458   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
5459   ;;
5460   *)
5461   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5462 for as_dir in $PATH
5463 do
5464   IFS=$as_save_IFS
5465   test -z "$as_dir" && as_dir=.
5466     for ac_exec_ext in '' $ac_executable_extensions; do
5467   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5468     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
5469     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5470     break 2
5471   fi
5472 done
5473   done
5474 IFS=$as_save_IFS
5475 
5476   ;;
5477 esac
5478 fi
5479 BASH=$ac_cv_path_BASH
5480 if test -n "$BASH"; then
5481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
5482 $as_echo "$BASH" >&6; }
5483 else
5484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5485 $as_echo "no" >&6; }
5486 fi
5487 
5488 
5489   test -n "$BASH" && break
5490 done
5491 
5492   else
5493     # The variable is set, but is it from the command line or the environment?
5494 
5495     # Try to remove the string !BASH! from our list.
5496     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/}
5497     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5498       # If it failed, the variable was not from the command line. Ignore it,
5499       # but warn the user (except for BASH, which is always set by the calling BASH).
5500       if test "xBASH" != xBASH; then
5501         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5
5502 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;}
5503       fi
5504       # Try to locate tool using the code snippet
5505       for ac_prog in bash
5506 do
5507   # Extract the first word of "$ac_prog", so it can be a program name with args.
5508 set dummy $ac_prog; ac_word=$2
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5510 $as_echo_n "checking for $ac_word... " >&6; }
5511 if ${ac_cv_path_BASH+:} false; then :
5512   $as_echo_n "(cached) " >&6
5513 else
5514   case $BASH in
5515   [\\/]* | ?:[\\/]*)
5516   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
5517   ;;
5518   *)
5519   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5520 for as_dir in $PATH
5521 do
5522   IFS=$as_save_IFS
5523   test -z "$as_dir" && as_dir=.
5524     for ac_exec_ext in '' $ac_executable_extensions; do
5525   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5526     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
5527     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5528     break 2
5529   fi
5530 done
5531   done
5532 IFS=$as_save_IFS
5533 
5534   ;;
5535 esac
5536 fi
5537 BASH=$ac_cv_path_BASH
5538 if test -n "$BASH"; then
5539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
5540 $as_echo "$BASH" >&6; }
5541 else
5542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5543 $as_echo "no" >&6; }
5544 fi
5545 
5546 
5547   test -n "$BASH" && break
5548 done
5549 
5550     else
5551       # If it succeeded, then it was overridden by the user. We will use it
5552       # for the tool.
5553 
5554       # First remove it from the list of overridden variables, so we can test
5555       # for unknown variables in the end.
5556       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5557 
5558       # Check if we try to supply an empty value
5559       if test "x$BASH" = x; then
5560         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BASH= (no value)" >&5
5561 $as_echo "$as_me: Setting user supplied tool BASH= (no value)" >&6;}
5562         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5
5563 $as_echo_n "checking for BASH... " >&6; }
5564         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5565 $as_echo "disabled" >&6; }
5566       else
5567         # Check if the provided tool contains a complete path.
5568         tool_specified="$BASH"
5569         tool_basename="${tool_specified##*/}"
5570         if test "x$tool_basename" = "x$tool_specified"; then
5571           # A command without a complete path is provided, search $PATH.
5572           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5
5573 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;}
5574           # Extract the first word of "$tool_basename", so it can be a program name with args.
5575 set dummy $tool_basename; ac_word=$2
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5577 $as_echo_n "checking for $ac_word... " >&6; }
5578 if ${ac_cv_path_BASH+:} false; then :
5579   $as_echo_n "(cached) " >&6
5580 else
5581   case $BASH in
5582   [\\/]* | ?:[\\/]*)
5583   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
5584   ;;
5585   *)
5586   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5587 for as_dir in $PATH
5588 do
5589   IFS=$as_save_IFS
5590   test -z "$as_dir" && as_dir=.
5591     for ac_exec_ext in '' $ac_executable_extensions; do
5592   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5593     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
5594     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5595     break 2
5596   fi
5597 done
5598   done
5599 IFS=$as_save_IFS
5600 
5601   ;;
5602 esac
5603 fi
5604 BASH=$ac_cv_path_BASH
5605 if test -n "$BASH"; then
5606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
5607 $as_echo "$BASH" >&6; }
5608 else
5609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5610 $as_echo "no" >&6; }
5611 fi
5612 
5613 
5614           if test "x$BASH" = x; then
5615             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5616           fi
5617         else
5618           # Otherwise we believe it is a complete path. Use it as it is.
5619           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5
5620 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;}
5621           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5
5622 $as_echo_n "checking for BASH... " >&6; }
5623           if test ! -x "$tool_specified"; then
5624             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5625 $as_echo "not found" >&6; }
5626             as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5
5627           fi
5628           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5629 $as_echo "$tool_specified" >&6; }
5630         fi
5631       fi
5632     fi
5633 
5634   fi
5635 
5636 
5637 
5638   if test "x$BASH" = x; then
5639     as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5
5640   fi
5641 
5642 
5643 
5644 
5645 
5646   # Publish this variable in the help.
5647 
5648 
5649   if [ -z "${CAT+x}" ]; then
5650     # The variable is not set by user, try to locate tool using the code snippet
5651     for ac_prog in cat
5652 do
5653   # Extract the first word of "$ac_prog", so it can be a program name with args.
5654 set dummy $ac_prog; ac_word=$2
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5656 $as_echo_n "checking for $ac_word... " >&6; }
5657 if ${ac_cv_path_CAT+:} false; then :
5658   $as_echo_n "(cached) " >&6
5659 else
5660   case $CAT in
5661   [\\/]* | ?:[\\/]*)
5662   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
5663   ;;
5664   *)
5665   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5666 for as_dir in $PATH
5667 do
5668   IFS=$as_save_IFS
5669   test -z "$as_dir" && as_dir=.
5670     for ac_exec_ext in '' $ac_executable_extensions; do
5671   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5672     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
5673     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5674     break 2
5675   fi
5676 done
5677   done
5678 IFS=$as_save_IFS
5679 
5680   ;;
5681 esac
5682 fi
5683 CAT=$ac_cv_path_CAT
5684 if test -n "$CAT"; then
5685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5686 $as_echo "$CAT" >&6; }
5687 else
5688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5689 $as_echo "no" >&6; }
5690 fi
5691 
5692 
5693   test -n "$CAT" && break
5694 done
5695 
5696   else
5697     # The variable is set, but is it from the command line or the environment?
5698 
5699     # Try to remove the string !CAT! from our list.
5700     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/}
5701     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5702       # If it failed, the variable was not from the command line. Ignore it,
5703       # but warn the user (except for BASH, which is always set by the calling BASH).
5704       if test "xCAT" != xBASH; then
5705         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5
5706 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;}
5707       fi
5708       # Try to locate tool using the code snippet
5709       for ac_prog in cat
5710 do
5711   # Extract the first word of "$ac_prog", so it can be a program name with args.
5712 set dummy $ac_prog; ac_word=$2
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5714 $as_echo_n "checking for $ac_word... " >&6; }
5715 if ${ac_cv_path_CAT+:} false; then :
5716   $as_echo_n "(cached) " >&6
5717 else
5718   case $CAT in
5719   [\\/]* | ?:[\\/]*)
5720   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
5721   ;;
5722   *)
5723   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5724 for as_dir in $PATH
5725 do
5726   IFS=$as_save_IFS
5727   test -z "$as_dir" && as_dir=.
5728     for ac_exec_ext in '' $ac_executable_extensions; do
5729   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5730     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
5731     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5732     break 2
5733   fi
5734 done
5735   done
5736 IFS=$as_save_IFS
5737 
5738   ;;
5739 esac
5740 fi
5741 CAT=$ac_cv_path_CAT
5742 if test -n "$CAT"; then
5743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5744 $as_echo "$CAT" >&6; }
5745 else
5746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5747 $as_echo "no" >&6; }
5748 fi
5749 
5750 
5751   test -n "$CAT" && break
5752 done
5753 
5754     else
5755       # If it succeeded, then it was overridden by the user. We will use it
5756       # for the tool.
5757 
5758       # First remove it from the list of overridden variables, so we can test
5759       # for unknown variables in the end.
5760       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5761 
5762       # Check if we try to supply an empty value
5763       if test "x$CAT" = x; then
5764         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CAT= (no value)" >&5
5765 $as_echo "$as_me: Setting user supplied tool CAT= (no value)" >&6;}
5766         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5
5767 $as_echo_n "checking for CAT... " >&6; }
5768         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5769 $as_echo "disabled" >&6; }
5770       else
5771         # Check if the provided tool contains a complete path.
5772         tool_specified="$CAT"
5773         tool_basename="${tool_specified##*/}"
5774         if test "x$tool_basename" = "x$tool_specified"; then
5775           # A command without a complete path is provided, search $PATH.
5776           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5
5777 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;}
5778           # Extract the first word of "$tool_basename", so it can be a program name with args.
5779 set dummy $tool_basename; ac_word=$2
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5781 $as_echo_n "checking for $ac_word... " >&6; }
5782 if ${ac_cv_path_CAT+:} false; then :
5783   $as_echo_n "(cached) " >&6
5784 else
5785   case $CAT in
5786   [\\/]* | ?:[\\/]*)
5787   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
5788   ;;
5789   *)
5790   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5791 for as_dir in $PATH
5792 do
5793   IFS=$as_save_IFS
5794   test -z "$as_dir" && as_dir=.
5795     for ac_exec_ext in '' $ac_executable_extensions; do
5796   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5797     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
5798     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5799     break 2
5800   fi
5801 done
5802   done
5803 IFS=$as_save_IFS
5804 
5805   ;;
5806 esac
5807 fi
5808 CAT=$ac_cv_path_CAT
5809 if test -n "$CAT"; then
5810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5811 $as_echo "$CAT" >&6; }
5812 else
5813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5814 $as_echo "no" >&6; }
5815 fi
5816 
5817 
5818           if test "x$CAT" = x; then
5819             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5820           fi
5821         else
5822           # Otherwise we believe it is a complete path. Use it as it is.
5823           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5
5824 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;}
5825           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5
5826 $as_echo_n "checking for CAT... " >&6; }
5827           if test ! -x "$tool_specified"; then
5828             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5829 $as_echo "not found" >&6; }
5830             as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5
5831           fi
5832           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5833 $as_echo "$tool_specified" >&6; }
5834         fi
5835       fi
5836     fi
5837 
5838   fi
5839 
5840 
5841 
5842   if test "x$CAT" = x; then
5843     as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5
5844   fi
5845 
5846 
5847 
5848 
5849 
5850   # Publish this variable in the help.
5851 
5852 
5853   if [ -z "${CHMOD+x}" ]; then
5854     # The variable is not set by user, try to locate tool using the code snippet
5855     for ac_prog in chmod
5856 do
5857   # Extract the first word of "$ac_prog", so it can be a program name with args.
5858 set dummy $ac_prog; ac_word=$2
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5860 $as_echo_n "checking for $ac_word... " >&6; }
5861 if ${ac_cv_path_CHMOD+:} false; then :
5862   $as_echo_n "(cached) " >&6
5863 else
5864   case $CHMOD in
5865   [\\/]* | ?:[\\/]*)
5866   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5867   ;;
5868   *)
5869   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5870 for as_dir in $PATH
5871 do
5872   IFS=$as_save_IFS
5873   test -z "$as_dir" && as_dir=.
5874     for ac_exec_ext in '' $ac_executable_extensions; do
5875   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5876     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5877     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5878     break 2
5879   fi
5880 done
5881   done
5882 IFS=$as_save_IFS
5883 
5884   ;;
5885 esac
5886 fi
5887 CHMOD=$ac_cv_path_CHMOD
5888 if test -n "$CHMOD"; then
5889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5890 $as_echo "$CHMOD" >&6; }
5891 else
5892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5893 $as_echo "no" >&6; }
5894 fi
5895 
5896 
5897   test -n "$CHMOD" && break
5898 done
5899 
5900   else
5901     # The variable is set, but is it from the command line or the environment?
5902 
5903     # Try to remove the string !CHMOD! from our list.
5904     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/}
5905     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5906       # If it failed, the variable was not from the command line. Ignore it,
5907       # but warn the user (except for BASH, which is always set by the calling BASH).
5908       if test "xCHMOD" != xBASH; then
5909         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5
5910 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;}
5911       fi
5912       # Try to locate tool using the code snippet
5913       for ac_prog in chmod
5914 do
5915   # Extract the first word of "$ac_prog", so it can be a program name with args.
5916 set dummy $ac_prog; ac_word=$2
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5918 $as_echo_n "checking for $ac_word... " >&6; }
5919 if ${ac_cv_path_CHMOD+:} false; then :
5920   $as_echo_n "(cached) " >&6
5921 else
5922   case $CHMOD in
5923   [\\/]* | ?:[\\/]*)
5924   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5925   ;;
5926   *)
5927   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5928 for as_dir in $PATH
5929 do
5930   IFS=$as_save_IFS
5931   test -z "$as_dir" && as_dir=.
5932     for ac_exec_ext in '' $ac_executable_extensions; do
5933   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5934     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5935     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5936     break 2
5937   fi
5938 done
5939   done
5940 IFS=$as_save_IFS
5941 
5942   ;;
5943 esac
5944 fi
5945 CHMOD=$ac_cv_path_CHMOD
5946 if test -n "$CHMOD"; then
5947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5948 $as_echo "$CHMOD" >&6; }
5949 else
5950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5951 $as_echo "no" >&6; }
5952 fi
5953 
5954 
5955   test -n "$CHMOD" && break
5956 done
5957 
5958     else
5959       # If it succeeded, then it was overridden by the user. We will use it
5960       # for the tool.
5961 
5962       # First remove it from the list of overridden variables, so we can test
5963       # for unknown variables in the end.
5964       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5965 
5966       # Check if we try to supply an empty value
5967       if test "x$CHMOD" = x; then
5968         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CHMOD= (no value)" >&5
5969 $as_echo "$as_me: Setting user supplied tool CHMOD= (no value)" >&6;}
5970         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5
5971 $as_echo_n "checking for CHMOD... " >&6; }
5972         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5973 $as_echo "disabled" >&6; }
5974       else
5975         # Check if the provided tool contains a complete path.
5976         tool_specified="$CHMOD"
5977         tool_basename="${tool_specified##*/}"
5978         if test "x$tool_basename" = "x$tool_specified"; then
5979           # A command without a complete path is provided, search $PATH.
5980           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5
5981 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;}
5982           # Extract the first word of "$tool_basename", so it can be a program name with args.
5983 set dummy $tool_basename; ac_word=$2
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5985 $as_echo_n "checking for $ac_word... " >&6; }
5986 if ${ac_cv_path_CHMOD+:} false; then :
5987   $as_echo_n "(cached) " >&6
5988 else
5989   case $CHMOD in
5990   [\\/]* | ?:[\\/]*)
5991   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5992   ;;
5993   *)
5994   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5995 for as_dir in $PATH
5996 do
5997   IFS=$as_save_IFS
5998   test -z "$as_dir" && as_dir=.
5999     for ac_exec_ext in '' $ac_executable_extensions; do
6000   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6001     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
6002     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6003     break 2
6004   fi
6005 done
6006   done
6007 IFS=$as_save_IFS
6008 
6009   ;;
6010 esac
6011 fi
6012 CHMOD=$ac_cv_path_CHMOD
6013 if test -n "$CHMOD"; then
6014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
6015 $as_echo "$CHMOD" >&6; }
6016 else
6017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6018 $as_echo "no" >&6; }
6019 fi
6020 
6021 
6022           if test "x$CHMOD" = x; then
6023             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6024           fi
6025         else
6026           # Otherwise we believe it is a complete path. Use it as it is.
6027           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5
6028 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;}
6029           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5
6030 $as_echo_n "checking for CHMOD... " >&6; }
6031           if test ! -x "$tool_specified"; then
6032             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6033 $as_echo "not found" >&6; }
6034             as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5
6035           fi
6036           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6037 $as_echo "$tool_specified" >&6; }
6038         fi
6039       fi
6040     fi
6041 
6042   fi
6043 
6044 
6045 
6046   if test "x$CHMOD" = x; then
6047     as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5
6048   fi
6049 
6050 
6051 
6052 
6053 
6054   # Publish this variable in the help.
6055 
6056 
6057   if [ -z "${CMP+x}" ]; then
6058     # The variable is not set by user, try to locate tool using the code snippet
6059     for ac_prog in cmp
6060 do
6061   # Extract the first word of "$ac_prog", so it can be a program name with args.
6062 set dummy $ac_prog; ac_word=$2
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6064 $as_echo_n "checking for $ac_word... " >&6; }
6065 if ${ac_cv_path_CMP+:} false; then :
6066   $as_echo_n "(cached) " >&6
6067 else
6068   case $CMP in
6069   [\\/]* | ?:[\\/]*)
6070   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6071   ;;
6072   *)
6073   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6074 for as_dir in $PATH
6075 do
6076   IFS=$as_save_IFS
6077   test -z "$as_dir" && as_dir=.
6078     for ac_exec_ext in '' $ac_executable_extensions; do
6079   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6080     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6081     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6082     break 2
6083   fi
6084 done
6085   done
6086 IFS=$as_save_IFS
6087 
6088   ;;
6089 esac
6090 fi
6091 CMP=$ac_cv_path_CMP
6092 if test -n "$CMP"; then
6093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
6094 $as_echo "$CMP" >&6; }
6095 else
6096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6097 $as_echo "no" >&6; }
6098 fi
6099 
6100 
6101   test -n "$CMP" && break
6102 done
6103 
6104   else
6105     # The variable is set, but is it from the command line or the environment?
6106 
6107     # Try to remove the string !CMP! from our list.
6108     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/}
6109     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6110       # If it failed, the variable was not from the command line. Ignore it,
6111       # but warn the user (except for BASH, which is always set by the calling BASH).
6112       if test "xCMP" != xBASH; then
6113         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5
6114 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;}
6115       fi
6116       # Try to locate tool using the code snippet
6117       for ac_prog in cmp
6118 do
6119   # Extract the first word of "$ac_prog", so it can be a program name with args.
6120 set dummy $ac_prog; ac_word=$2
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6122 $as_echo_n "checking for $ac_word... " >&6; }
6123 if ${ac_cv_path_CMP+:} false; then :
6124   $as_echo_n "(cached) " >&6
6125 else
6126   case $CMP in
6127   [\\/]* | ?:[\\/]*)
6128   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6129   ;;
6130   *)
6131   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6132 for as_dir in $PATH
6133 do
6134   IFS=$as_save_IFS
6135   test -z "$as_dir" && as_dir=.
6136     for ac_exec_ext in '' $ac_executable_extensions; do
6137   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6138     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6139     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6140     break 2
6141   fi
6142 done
6143   done
6144 IFS=$as_save_IFS
6145 
6146   ;;
6147 esac
6148 fi
6149 CMP=$ac_cv_path_CMP
6150 if test -n "$CMP"; then
6151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
6152 $as_echo "$CMP" >&6; }
6153 else
6154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6155 $as_echo "no" >&6; }
6156 fi
6157 
6158 
6159   test -n "$CMP" && break
6160 done
6161 
6162     else
6163       # If it succeeded, then it was overridden by the user. We will use it
6164       # for the tool.
6165 
6166       # First remove it from the list of overridden variables, so we can test
6167       # for unknown variables in the end.
6168       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6169 
6170       # Check if we try to supply an empty value
6171       if test "x$CMP" = x; then
6172         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CMP= (no value)" >&5
6173 $as_echo "$as_me: Setting user supplied tool CMP= (no value)" >&6;}
6174         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5
6175 $as_echo_n "checking for CMP... " >&6; }
6176         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6177 $as_echo "disabled" >&6; }
6178       else
6179         # Check if the provided tool contains a complete path.
6180         tool_specified="$CMP"
6181         tool_basename="${tool_specified##*/}"
6182         if test "x$tool_basename" = "x$tool_specified"; then
6183           # A command without a complete path is provided, search $PATH.
6184           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5
6185 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;}
6186           # Extract the first word of "$tool_basename", so it can be a program name with args.
6187 set dummy $tool_basename; ac_word=$2
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6189 $as_echo_n "checking for $ac_word... " >&6; }
6190 if ${ac_cv_path_CMP+:} false; then :
6191   $as_echo_n "(cached) " >&6
6192 else
6193   case $CMP in
6194   [\\/]* | ?:[\\/]*)
6195   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6196   ;;
6197   *)
6198   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6199 for as_dir in $PATH
6200 do
6201   IFS=$as_save_IFS
6202   test -z "$as_dir" && as_dir=.
6203     for ac_exec_ext in '' $ac_executable_extensions; do
6204   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6205     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6206     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6207     break 2
6208   fi
6209 done
6210   done
6211 IFS=$as_save_IFS
6212 
6213   ;;
6214 esac
6215 fi
6216 CMP=$ac_cv_path_CMP
6217 if test -n "$CMP"; then
6218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
6219 $as_echo "$CMP" >&6; }
6220 else
6221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6222 $as_echo "no" >&6; }
6223 fi
6224 
6225 
6226           if test "x$CMP" = x; then
6227             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6228           fi
6229         else
6230           # Otherwise we believe it is a complete path. Use it as it is.
6231           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5
6232 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;}
6233           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5
6234 $as_echo_n "checking for CMP... " >&6; }
6235           if test ! -x "$tool_specified"; then
6236             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6237 $as_echo "not found" >&6; }
6238             as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5
6239           fi
6240           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6241 $as_echo "$tool_specified" >&6; }
6242         fi
6243       fi
6244     fi
6245 
6246   fi
6247 
6248 
6249 
6250   if test "x$CMP" = x; then
6251     as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5
6252   fi
6253 
6254 
6255 
6256 
6257 
6258   # Publish this variable in the help.
6259 
6260 
6261   if [ -z "${COMM+x}" ]; then
6262     # The variable is not set by user, try to locate tool using the code snippet
6263     for ac_prog in comm
6264 do
6265   # Extract the first word of "$ac_prog", so it can be a program name with args.
6266 set dummy $ac_prog; ac_word=$2
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6268 $as_echo_n "checking for $ac_word... " >&6; }
6269 if ${ac_cv_path_COMM+:} false; then :
6270   $as_echo_n "(cached) " >&6
6271 else
6272   case $COMM in
6273   [\\/]* | ?:[\\/]*)
6274   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
6275   ;;
6276   *)
6277   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6278 for as_dir in $PATH
6279 do
6280   IFS=$as_save_IFS
6281   test -z "$as_dir" && as_dir=.
6282     for ac_exec_ext in '' $ac_executable_extensions; do
6283   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6284     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
6285     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6286     break 2
6287   fi
6288 done
6289   done
6290 IFS=$as_save_IFS
6291 
6292   ;;
6293 esac
6294 fi
6295 COMM=$ac_cv_path_COMM
6296 if test -n "$COMM"; then
6297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
6298 $as_echo "$COMM" >&6; }
6299 else
6300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6301 $as_echo "no" >&6; }
6302 fi
6303 
6304 
6305   test -n "$COMM" && break
6306 done
6307 
6308   else
6309     # The variable is set, but is it from the command line or the environment?
6310 
6311     # Try to remove the string !COMM! from our list.
6312     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/}
6313     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6314       # If it failed, the variable was not from the command line. Ignore it,
6315       # but warn the user (except for BASH, which is always set by the calling BASH).
6316       if test "xCOMM" != xBASH; then
6317         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5
6318 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;}
6319       fi
6320       # Try to locate tool using the code snippet
6321       for ac_prog in comm
6322 do
6323   # Extract the first word of "$ac_prog", so it can be a program name with args.
6324 set dummy $ac_prog; ac_word=$2
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6326 $as_echo_n "checking for $ac_word... " >&6; }
6327 if ${ac_cv_path_COMM+:} false; then :
6328   $as_echo_n "(cached) " >&6
6329 else
6330   case $COMM in
6331   [\\/]* | ?:[\\/]*)
6332   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
6333   ;;
6334   *)
6335   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6336 for as_dir in $PATH
6337 do
6338   IFS=$as_save_IFS
6339   test -z "$as_dir" && as_dir=.
6340     for ac_exec_ext in '' $ac_executable_extensions; do
6341   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6342     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
6343     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6344     break 2
6345   fi
6346 done
6347   done
6348 IFS=$as_save_IFS
6349 
6350   ;;
6351 esac
6352 fi
6353 COMM=$ac_cv_path_COMM
6354 if test -n "$COMM"; then
6355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
6356 $as_echo "$COMM" >&6; }
6357 else
6358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6359 $as_echo "no" >&6; }
6360 fi
6361 
6362 
6363   test -n "$COMM" && break
6364 done
6365 
6366     else
6367       # If it succeeded, then it was overridden by the user. We will use it
6368       # for the tool.
6369 
6370       # First remove it from the list of overridden variables, so we can test
6371       # for unknown variables in the end.
6372       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6373 
6374       # Check if we try to supply an empty value
6375       if test "x$COMM" = x; then
6376         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool COMM= (no value)" >&5
6377 $as_echo "$as_me: Setting user supplied tool COMM= (no value)" >&6;}
6378         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
6379 $as_echo_n "checking for COMM... " >&6; }
6380         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6381 $as_echo "disabled" >&6; }
6382       else
6383         # Check if the provided tool contains a complete path.
6384         tool_specified="$COMM"
6385         tool_basename="${tool_specified##*/}"
6386         if test "x$tool_basename" = "x$tool_specified"; then
6387           # A command without a complete path is provided, search $PATH.
6388           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5
6389 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;}
6390           # Extract the first word of "$tool_basename", so it can be a program name with args.
6391 set dummy $tool_basename; ac_word=$2
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6393 $as_echo_n "checking for $ac_word... " >&6; }
6394 if ${ac_cv_path_COMM+:} false; then :
6395   $as_echo_n "(cached) " >&6
6396 else
6397   case $COMM in
6398   [\\/]* | ?:[\\/]*)
6399   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
6400   ;;
6401   *)
6402   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6403 for as_dir in $PATH
6404 do
6405   IFS=$as_save_IFS
6406   test -z "$as_dir" && as_dir=.
6407     for ac_exec_ext in '' $ac_executable_extensions; do
6408   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6409     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
6410     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6411     break 2
6412   fi
6413 done
6414   done
6415 IFS=$as_save_IFS
6416 
6417   ;;
6418 esac
6419 fi
6420 COMM=$ac_cv_path_COMM
6421 if test -n "$COMM"; then
6422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
6423 $as_echo "$COMM" >&6; }
6424 else
6425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6426 $as_echo "no" >&6; }
6427 fi
6428 
6429 
6430           if test "x$COMM" = x; then
6431             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6432           fi
6433         else
6434           # Otherwise we believe it is a complete path. Use it as it is.
6435           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5
6436 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;}
6437           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
6438 $as_echo_n "checking for COMM... " >&6; }
6439           if test ! -x "$tool_specified"; then
6440             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6441 $as_echo "not found" >&6; }
6442             as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5
6443           fi
6444           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6445 $as_echo "$tool_specified" >&6; }
6446         fi
6447       fi
6448     fi
6449 
6450   fi
6451 
6452 
6453 
6454   if test "x$COMM" = x; then
6455     as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5
6456   fi
6457 
6458 
6459 
6460 
6461 
6462   # Publish this variable in the help.
6463 
6464 
6465   if [ -z "${CP+x}" ]; then
6466     # The variable is not set by user, try to locate tool using the code snippet
6467     for ac_prog in cp
6468 do
6469   # Extract the first word of "$ac_prog", so it can be a program name with args.
6470 set dummy $ac_prog; ac_word=$2
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6472 $as_echo_n "checking for $ac_word... " >&6; }
6473 if ${ac_cv_path_CP+:} false; then :
6474   $as_echo_n "(cached) " >&6
6475 else
6476   case $CP in
6477   [\\/]* | ?:[\\/]*)
6478   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6479   ;;
6480   *)
6481   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6482 for as_dir in $PATH
6483 do
6484   IFS=$as_save_IFS
6485   test -z "$as_dir" && as_dir=.
6486     for ac_exec_ext in '' $ac_executable_extensions; do
6487   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6488     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6489     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6490     break 2
6491   fi
6492 done
6493   done
6494 IFS=$as_save_IFS
6495 
6496   ;;
6497 esac
6498 fi
6499 CP=$ac_cv_path_CP
6500 if test -n "$CP"; then
6501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
6502 $as_echo "$CP" >&6; }
6503 else
6504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6505 $as_echo "no" >&6; }
6506 fi
6507 
6508 
6509   test -n "$CP" && break
6510 done
6511 
6512   else
6513     # The variable is set, but is it from the command line or the environment?
6514 
6515     # Try to remove the string !CP! from our list.
6516     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/}
6517     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6518       # If it failed, the variable was not from the command line. Ignore it,
6519       # but warn the user (except for BASH, which is always set by the calling BASH).
6520       if test "xCP" != xBASH; then
6521         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5
6522 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;}
6523       fi
6524       # Try to locate tool using the code snippet
6525       for ac_prog in cp
6526 do
6527   # Extract the first word of "$ac_prog", so it can be a program name with args.
6528 set dummy $ac_prog; ac_word=$2
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6530 $as_echo_n "checking for $ac_word... " >&6; }
6531 if ${ac_cv_path_CP+:} false; then :
6532   $as_echo_n "(cached) " >&6
6533 else
6534   case $CP in
6535   [\\/]* | ?:[\\/]*)
6536   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6537   ;;
6538   *)
6539   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6540 for as_dir in $PATH
6541 do
6542   IFS=$as_save_IFS
6543   test -z "$as_dir" && as_dir=.
6544     for ac_exec_ext in '' $ac_executable_extensions; do
6545   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6546     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6547     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6548     break 2
6549   fi
6550 done
6551   done
6552 IFS=$as_save_IFS
6553 
6554   ;;
6555 esac
6556 fi
6557 CP=$ac_cv_path_CP
6558 if test -n "$CP"; then
6559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
6560 $as_echo "$CP" >&6; }
6561 else
6562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6563 $as_echo "no" >&6; }
6564 fi
6565 
6566 
6567   test -n "$CP" && break
6568 done
6569 
6570     else
6571       # If it succeeded, then it was overridden by the user. We will use it
6572       # for the tool.
6573 
6574       # First remove it from the list of overridden variables, so we can test
6575       # for unknown variables in the end.
6576       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6577 
6578       # Check if we try to supply an empty value
6579       if test "x$CP" = x; then
6580         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CP= (no value)" >&5
6581 $as_echo "$as_me: Setting user supplied tool CP= (no value)" >&6;}
6582         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5
6583 $as_echo_n "checking for CP... " >&6; }
6584         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6585 $as_echo "disabled" >&6; }
6586       else
6587         # Check if the provided tool contains a complete path.
6588         tool_specified="$CP"
6589         tool_basename="${tool_specified##*/}"
6590         if test "x$tool_basename" = "x$tool_specified"; then
6591           # A command without a complete path is provided, search $PATH.
6592           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5
6593 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;}
6594           # Extract the first word of "$tool_basename", so it can be a program name with args.
6595 set dummy $tool_basename; ac_word=$2
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6597 $as_echo_n "checking for $ac_word... " >&6; }
6598 if ${ac_cv_path_CP+:} false; then :
6599   $as_echo_n "(cached) " >&6
6600 else
6601   case $CP in
6602   [\\/]* | ?:[\\/]*)
6603   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6604   ;;
6605   *)
6606   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6607 for as_dir in $PATH
6608 do
6609   IFS=$as_save_IFS
6610   test -z "$as_dir" && as_dir=.
6611     for ac_exec_ext in '' $ac_executable_extensions; do
6612   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6613     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6614     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6615     break 2
6616   fi
6617 done
6618   done
6619 IFS=$as_save_IFS
6620 
6621   ;;
6622 esac
6623 fi
6624 CP=$ac_cv_path_CP
6625 if test -n "$CP"; then
6626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
6627 $as_echo "$CP" >&6; }
6628 else
6629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6630 $as_echo "no" >&6; }
6631 fi
6632 
6633 
6634           if test "x$CP" = x; then
6635             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6636           fi
6637         else
6638           # Otherwise we believe it is a complete path. Use it as it is.
6639           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5
6640 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;}
6641           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5
6642 $as_echo_n "checking for CP... " >&6; }
6643           if test ! -x "$tool_specified"; then
6644             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6645 $as_echo "not found" >&6; }
6646             as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5
6647           fi
6648           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6649 $as_echo "$tool_specified" >&6; }
6650         fi
6651       fi
6652     fi
6653 
6654   fi
6655 
6656 
6657 
6658   if test "x$CP" = x; then
6659     as_fn_error $? "Could not find required tool for CP" "$LINENO" 5
6660   fi
6661 
6662 
6663 
6664 
6665 
6666   # Publish this variable in the help.
6667 
6668 
6669   if [ -z "${CUT+x}" ]; then
6670     # The variable is not set by user, try to locate tool using the code snippet
6671     for ac_prog in cut
6672 do
6673   # Extract the first word of "$ac_prog", so it can be a program name with args.
6674 set dummy $ac_prog; ac_word=$2
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6676 $as_echo_n "checking for $ac_word... " >&6; }
6677 if ${ac_cv_path_CUT+:} false; then :
6678   $as_echo_n "(cached) " >&6
6679 else
6680   case $CUT in
6681   [\\/]* | ?:[\\/]*)
6682   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
6683   ;;
6684   *)
6685   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6686 for as_dir in $PATH
6687 do
6688   IFS=$as_save_IFS
6689   test -z "$as_dir" && as_dir=.
6690     for ac_exec_ext in '' $ac_executable_extensions; do
6691   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6692     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
6693     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6694     break 2
6695   fi
6696 done
6697   done
6698 IFS=$as_save_IFS
6699 
6700   ;;
6701 esac
6702 fi
6703 CUT=$ac_cv_path_CUT
6704 if test -n "$CUT"; then
6705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
6706 $as_echo "$CUT" >&6; }
6707 else
6708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6709 $as_echo "no" >&6; }
6710 fi
6711 
6712 
6713   test -n "$CUT" && break
6714 done
6715 
6716   else
6717     # The variable is set, but is it from the command line or the environment?
6718 
6719     # Try to remove the string !CUT! from our list.
6720     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/}
6721     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6722       # If it failed, the variable was not from the command line. Ignore it,
6723       # but warn the user (except for BASH, which is always set by the calling BASH).
6724       if test "xCUT" != xBASH; then
6725         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5
6726 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;}
6727       fi
6728       # Try to locate tool using the code snippet
6729       for ac_prog in cut
6730 do
6731   # Extract the first word of "$ac_prog", so it can be a program name with args.
6732 set dummy $ac_prog; ac_word=$2
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6734 $as_echo_n "checking for $ac_word... " >&6; }
6735 if ${ac_cv_path_CUT+:} false; then :
6736   $as_echo_n "(cached) " >&6
6737 else
6738   case $CUT in
6739   [\\/]* | ?:[\\/]*)
6740   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
6741   ;;
6742   *)
6743   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6744 for as_dir in $PATH
6745 do
6746   IFS=$as_save_IFS
6747   test -z "$as_dir" && as_dir=.
6748     for ac_exec_ext in '' $ac_executable_extensions; do
6749   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6750     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
6751     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6752     break 2
6753   fi
6754 done
6755   done
6756 IFS=$as_save_IFS
6757 
6758   ;;
6759 esac
6760 fi
6761 CUT=$ac_cv_path_CUT
6762 if test -n "$CUT"; then
6763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
6764 $as_echo "$CUT" >&6; }
6765 else
6766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6767 $as_echo "no" >&6; }
6768 fi
6769 
6770 
6771   test -n "$CUT" && break
6772 done
6773 
6774     else
6775       # If it succeeded, then it was overridden by the user. We will use it
6776       # for the tool.
6777 
6778       # First remove it from the list of overridden variables, so we can test
6779       # for unknown variables in the end.
6780       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6781 
6782       # Check if we try to supply an empty value
6783       if test "x$CUT" = x; then
6784         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CUT= (no value)" >&5
6785 $as_echo "$as_me: Setting user supplied tool CUT= (no value)" >&6;}
6786         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5
6787 $as_echo_n "checking for CUT... " >&6; }
6788         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6789 $as_echo "disabled" >&6; }
6790       else
6791         # Check if the provided tool contains a complete path.
6792         tool_specified="$CUT"
6793         tool_basename="${tool_specified##*/}"
6794         if test "x$tool_basename" = "x$tool_specified"; then
6795           # A command without a complete path is provided, search $PATH.
6796           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5
6797 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;}
6798           # Extract the first word of "$tool_basename", so it can be a program name with args.
6799 set dummy $tool_basename; ac_word=$2
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6801 $as_echo_n "checking for $ac_word... " >&6; }
6802 if ${ac_cv_path_CUT+:} false; then :
6803   $as_echo_n "(cached) " >&6
6804 else
6805   case $CUT in
6806   [\\/]* | ?:[\\/]*)
6807   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
6808   ;;
6809   *)
6810   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6811 for as_dir in $PATH
6812 do
6813   IFS=$as_save_IFS
6814   test -z "$as_dir" && as_dir=.
6815     for ac_exec_ext in '' $ac_executable_extensions; do
6816   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6817     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
6818     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6819     break 2
6820   fi
6821 done
6822   done
6823 IFS=$as_save_IFS
6824 
6825   ;;
6826 esac
6827 fi
6828 CUT=$ac_cv_path_CUT
6829 if test -n "$CUT"; then
6830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
6831 $as_echo "$CUT" >&6; }
6832 else
6833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6834 $as_echo "no" >&6; }
6835 fi
6836 
6837 
6838           if test "x$CUT" = x; then
6839             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6840           fi
6841         else
6842           # Otherwise we believe it is a complete path. Use it as it is.
6843           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5
6844 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;}
6845           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5
6846 $as_echo_n "checking for CUT... " >&6; }
6847           if test ! -x "$tool_specified"; then
6848             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6849 $as_echo "not found" >&6; }
6850             as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5
6851           fi
6852           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6853 $as_echo "$tool_specified" >&6; }
6854         fi
6855       fi
6856     fi
6857 
6858   fi
6859 
6860 
6861 
6862   if test "x$CUT" = x; then
6863     as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5
6864   fi
6865 
6866 
6867 
6868 
6869 
6870   # Publish this variable in the help.
6871 
6872 
6873   if [ -z "${DATE+x}" ]; then
6874     # The variable is not set by user, try to locate tool using the code snippet
6875     for ac_prog in date
6876 do
6877   # Extract the first word of "$ac_prog", so it can be a program name with args.
6878 set dummy $ac_prog; ac_word=$2
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6880 $as_echo_n "checking for $ac_word... " >&6; }
6881 if ${ac_cv_path_DATE+:} false; then :
6882   $as_echo_n "(cached) " >&6
6883 else
6884   case $DATE in
6885   [\\/]* | ?:[\\/]*)
6886   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6887   ;;
6888   *)
6889   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6890 for as_dir in $PATH
6891 do
6892   IFS=$as_save_IFS
6893   test -z "$as_dir" && as_dir=.
6894     for ac_exec_ext in '' $ac_executable_extensions; do
6895   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6896     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6897     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6898     break 2
6899   fi
6900 done
6901   done
6902 IFS=$as_save_IFS
6903 
6904   ;;
6905 esac
6906 fi
6907 DATE=$ac_cv_path_DATE
6908 if test -n "$DATE"; then
6909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6910 $as_echo "$DATE" >&6; }
6911 else
6912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6913 $as_echo "no" >&6; }
6914 fi
6915 
6916 
6917   test -n "$DATE" && break
6918 done
6919 
6920   else
6921     # The variable is set, but is it from the command line or the environment?
6922 
6923     # Try to remove the string !DATE! from our list.
6924     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/}
6925     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6926       # If it failed, the variable was not from the command line. Ignore it,
6927       # but warn the user (except for BASH, which is always set by the calling BASH).
6928       if test "xDATE" != xBASH; then
6929         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5
6930 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;}
6931       fi
6932       # Try to locate tool using the code snippet
6933       for ac_prog in date
6934 do
6935   # Extract the first word of "$ac_prog", so it can be a program name with args.
6936 set dummy $ac_prog; ac_word=$2
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6938 $as_echo_n "checking for $ac_word... " >&6; }
6939 if ${ac_cv_path_DATE+:} false; then :
6940   $as_echo_n "(cached) " >&6
6941 else
6942   case $DATE in
6943   [\\/]* | ?:[\\/]*)
6944   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6945   ;;
6946   *)
6947   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6948 for as_dir in $PATH
6949 do
6950   IFS=$as_save_IFS
6951   test -z "$as_dir" && as_dir=.
6952     for ac_exec_ext in '' $ac_executable_extensions; do
6953   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6954     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6955     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6956     break 2
6957   fi
6958 done
6959   done
6960 IFS=$as_save_IFS
6961 
6962   ;;
6963 esac
6964 fi
6965 DATE=$ac_cv_path_DATE
6966 if test -n "$DATE"; then
6967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6968 $as_echo "$DATE" >&6; }
6969 else
6970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6971 $as_echo "no" >&6; }
6972 fi
6973 
6974 
6975   test -n "$DATE" && break
6976 done
6977 
6978     else
6979       # If it succeeded, then it was overridden by the user. We will use it
6980       # for the tool.
6981 
6982       # First remove it from the list of overridden variables, so we can test
6983       # for unknown variables in the end.
6984       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6985 
6986       # Check if we try to supply an empty value
6987       if test "x$DATE" = x; then
6988         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DATE= (no value)" >&5
6989 $as_echo "$as_me: Setting user supplied tool DATE= (no value)" >&6;}
6990         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5
6991 $as_echo_n "checking for DATE... " >&6; }
6992         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6993 $as_echo "disabled" >&6; }
6994       else
6995         # Check if the provided tool contains a complete path.
6996         tool_specified="$DATE"
6997         tool_basename="${tool_specified##*/}"
6998         if test "x$tool_basename" = "x$tool_specified"; then
6999           # A command without a complete path is provided, search $PATH.
7000           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5
7001 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;}
7002           # Extract the first word of "$tool_basename", so it can be a program name with args.
7003 set dummy $tool_basename; ac_word=$2
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7005 $as_echo_n "checking for $ac_word... " >&6; }
7006 if ${ac_cv_path_DATE+:} false; then :
7007   $as_echo_n "(cached) " >&6
7008 else
7009   case $DATE in
7010   [\\/]* | ?:[\\/]*)
7011   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
7012   ;;
7013   *)
7014   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7015 for as_dir in $PATH
7016 do
7017   IFS=$as_save_IFS
7018   test -z "$as_dir" && as_dir=.
7019     for ac_exec_ext in '' $ac_executable_extensions; do
7020   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7021     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
7022     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7023     break 2
7024   fi
7025 done
7026   done
7027 IFS=$as_save_IFS
7028 
7029   ;;
7030 esac
7031 fi
7032 DATE=$ac_cv_path_DATE
7033 if test -n "$DATE"; then
7034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
7035 $as_echo "$DATE" >&6; }
7036 else
7037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7038 $as_echo "no" >&6; }
7039 fi
7040 
7041 
7042           if test "x$DATE" = x; then
7043             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7044           fi
7045         else
7046           # Otherwise we believe it is a complete path. Use it as it is.
7047           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5
7048 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;}
7049           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5
7050 $as_echo_n "checking for DATE... " >&6; }
7051           if test ! -x "$tool_specified"; then
7052             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7053 $as_echo "not found" >&6; }
7054             as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5
7055           fi
7056           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7057 $as_echo "$tool_specified" >&6; }
7058         fi
7059       fi
7060     fi
7061 
7062   fi
7063 
7064 
7065 
7066   if test "x$DATE" = x; then
7067     as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5
7068   fi
7069 
7070 
7071 
7072 
7073 
7074   # Publish this variable in the help.
7075 
7076 
7077   if [ -z "${DIFF+x}" ]; then
7078     # The variable is not set by user, try to locate tool using the code snippet
7079     for ac_prog in gdiff diff
7080 do
7081   # Extract the first word of "$ac_prog", so it can be a program name with args.
7082 set dummy $ac_prog; ac_word=$2
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7084 $as_echo_n "checking for $ac_word... " >&6; }
7085 if ${ac_cv_path_DIFF+:} false; then :
7086   $as_echo_n "(cached) " >&6
7087 else
7088   case $DIFF in
7089   [\\/]* | ?:[\\/]*)
7090   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
7091   ;;
7092   *)
7093   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7094 for as_dir in $PATH
7095 do
7096   IFS=$as_save_IFS
7097   test -z "$as_dir" && as_dir=.
7098     for ac_exec_ext in '' $ac_executable_extensions; do
7099   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7100     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
7101     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7102     break 2
7103   fi
7104 done
7105   done
7106 IFS=$as_save_IFS
7107 
7108   ;;
7109 esac
7110 fi
7111 DIFF=$ac_cv_path_DIFF
7112 if test -n "$DIFF"; then
7113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
7114 $as_echo "$DIFF" >&6; }
7115 else
7116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7117 $as_echo "no" >&6; }
7118 fi
7119 
7120 
7121   test -n "$DIFF" && break
7122 done
7123 
7124   else
7125     # The variable is set, but is it from the command line or the environment?
7126 
7127     # Try to remove the string !DIFF! from our list.
7128     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/}
7129     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7130       # If it failed, the variable was not from the command line. Ignore it,
7131       # but warn the user (except for BASH, which is always set by the calling BASH).
7132       if test "xDIFF" != xBASH; then
7133         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5
7134 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;}
7135       fi
7136       # Try to locate tool using the code snippet
7137       for ac_prog in gdiff diff
7138 do
7139   # Extract the first word of "$ac_prog", so it can be a program name with args.
7140 set dummy $ac_prog; ac_word=$2
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7142 $as_echo_n "checking for $ac_word... " >&6; }
7143 if ${ac_cv_path_DIFF+:} false; then :
7144   $as_echo_n "(cached) " >&6
7145 else
7146   case $DIFF in
7147   [\\/]* | ?:[\\/]*)
7148   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
7149   ;;
7150   *)
7151   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7152 for as_dir in $PATH
7153 do
7154   IFS=$as_save_IFS
7155   test -z "$as_dir" && as_dir=.
7156     for ac_exec_ext in '' $ac_executable_extensions; do
7157   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7158     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
7159     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7160     break 2
7161   fi
7162 done
7163   done
7164 IFS=$as_save_IFS
7165 
7166   ;;
7167 esac
7168 fi
7169 DIFF=$ac_cv_path_DIFF
7170 if test -n "$DIFF"; then
7171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
7172 $as_echo "$DIFF" >&6; }
7173 else
7174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7175 $as_echo "no" >&6; }
7176 fi
7177 
7178 
7179   test -n "$DIFF" && break
7180 done
7181 
7182     else
7183       # If it succeeded, then it was overridden by the user. We will use it
7184       # for the tool.
7185 
7186       # First remove it from the list of overridden variables, so we can test
7187       # for unknown variables in the end.
7188       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7189 
7190       # Check if we try to supply an empty value
7191       if test "x$DIFF" = x; then
7192         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DIFF= (no value)" >&5
7193 $as_echo "$as_me: Setting user supplied tool DIFF= (no value)" >&6;}
7194         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5
7195 $as_echo_n "checking for DIFF... " >&6; }
7196         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7197 $as_echo "disabled" >&6; }
7198       else
7199         # Check if the provided tool contains a complete path.
7200         tool_specified="$DIFF"
7201         tool_basename="${tool_specified##*/}"
7202         if test "x$tool_basename" = "x$tool_specified"; then
7203           # A command without a complete path is provided, search $PATH.
7204           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5
7205 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;}
7206           # Extract the first word of "$tool_basename", so it can be a program name with args.
7207 set dummy $tool_basename; ac_word=$2
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7209 $as_echo_n "checking for $ac_word... " >&6; }
7210 if ${ac_cv_path_DIFF+:} false; then :
7211   $as_echo_n "(cached) " >&6
7212 else
7213   case $DIFF in
7214   [\\/]* | ?:[\\/]*)
7215   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
7216   ;;
7217   *)
7218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7219 for as_dir in $PATH
7220 do
7221   IFS=$as_save_IFS
7222   test -z "$as_dir" && as_dir=.
7223     for ac_exec_ext in '' $ac_executable_extensions; do
7224   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7225     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
7226     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7227     break 2
7228   fi
7229 done
7230   done
7231 IFS=$as_save_IFS
7232 
7233   ;;
7234 esac
7235 fi
7236 DIFF=$ac_cv_path_DIFF
7237 if test -n "$DIFF"; then
7238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
7239 $as_echo "$DIFF" >&6; }
7240 else
7241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7242 $as_echo "no" >&6; }
7243 fi
7244 
7245 
7246           if test "x$DIFF" = x; then
7247             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7248           fi
7249         else
7250           # Otherwise we believe it is a complete path. Use it as it is.
7251           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5
7252 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;}
7253           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5
7254 $as_echo_n "checking for DIFF... " >&6; }
7255           if test ! -x "$tool_specified"; then
7256             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7257 $as_echo "not found" >&6; }
7258             as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5
7259           fi
7260           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7261 $as_echo "$tool_specified" >&6; }
7262         fi
7263       fi
7264     fi
7265 
7266   fi
7267 
7268 
7269 
7270   if test "x$DIFF" = x; then
7271     as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5
7272   fi
7273 
7274 
7275 
7276 
7277 
7278   # Publish this variable in the help.
7279 
7280 
7281   if [ -z "${DIRNAME+x}" ]; then
7282     # The variable is not set by user, try to locate tool using the code snippet
7283     for ac_prog in dirname
7284 do
7285   # Extract the first word of "$ac_prog", so it can be a program name with args.
7286 set dummy $ac_prog; ac_word=$2
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7288 $as_echo_n "checking for $ac_word... " >&6; }
7289 if ${ac_cv_path_DIRNAME+:} false; then :
7290   $as_echo_n "(cached) " >&6
7291 else
7292   case $DIRNAME in
7293   [\\/]* | ?:[\\/]*)
7294   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
7295   ;;
7296   *)
7297   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7298 for as_dir in $PATH
7299 do
7300   IFS=$as_save_IFS
7301   test -z "$as_dir" && as_dir=.
7302     for ac_exec_ext in '' $ac_executable_extensions; do
7303   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7304     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
7305     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7306     break 2
7307   fi
7308 done
7309   done
7310 IFS=$as_save_IFS
7311 
7312   ;;
7313 esac
7314 fi
7315 DIRNAME=$ac_cv_path_DIRNAME
7316 if test -n "$DIRNAME"; then
7317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
7318 $as_echo "$DIRNAME" >&6; }
7319 else
7320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7321 $as_echo "no" >&6; }
7322 fi
7323 
7324 
7325   test -n "$DIRNAME" && break
7326 done
7327 
7328   else
7329     # The variable is set, but is it from the command line or the environment?
7330 
7331     # Try to remove the string !DIRNAME! from our list.
7332     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/}
7333     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7334       # If it failed, the variable was not from the command line. Ignore it,
7335       # but warn the user (except for BASH, which is always set by the calling BASH).
7336       if test "xDIRNAME" != xBASH; then
7337         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5
7338 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;}
7339       fi
7340       # Try to locate tool using the code snippet
7341       for ac_prog in dirname
7342 do
7343   # Extract the first word of "$ac_prog", so it can be a program name with args.
7344 set dummy $ac_prog; ac_word=$2
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7346 $as_echo_n "checking for $ac_word... " >&6; }
7347 if ${ac_cv_path_DIRNAME+:} false; then :
7348   $as_echo_n "(cached) " >&6
7349 else
7350   case $DIRNAME in
7351   [\\/]* | ?:[\\/]*)
7352   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
7353   ;;
7354   *)
7355   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7356 for as_dir in $PATH
7357 do
7358   IFS=$as_save_IFS
7359   test -z "$as_dir" && as_dir=.
7360     for ac_exec_ext in '' $ac_executable_extensions; do
7361   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7362     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
7363     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7364     break 2
7365   fi
7366 done
7367   done
7368 IFS=$as_save_IFS
7369 
7370   ;;
7371 esac
7372 fi
7373 DIRNAME=$ac_cv_path_DIRNAME
7374 if test -n "$DIRNAME"; then
7375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
7376 $as_echo "$DIRNAME" >&6; }
7377 else
7378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7379 $as_echo "no" >&6; }
7380 fi
7381 
7382 
7383   test -n "$DIRNAME" && break
7384 done
7385 
7386     else
7387       # If it succeeded, then it was overridden by the user. We will use it
7388       # for the tool.
7389 
7390       # First remove it from the list of overridden variables, so we can test
7391       # for unknown variables in the end.
7392       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7393 
7394       # Check if we try to supply an empty value
7395       if test "x$DIRNAME" = x; then
7396         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DIRNAME= (no value)" >&5
7397 $as_echo "$as_me: Setting user supplied tool DIRNAME= (no value)" >&6;}
7398         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5
7399 $as_echo_n "checking for DIRNAME... " >&6; }
7400         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7401 $as_echo "disabled" >&6; }
7402       else
7403         # Check if the provided tool contains a complete path.
7404         tool_specified="$DIRNAME"
7405         tool_basename="${tool_specified##*/}"
7406         if test "x$tool_basename" = "x$tool_specified"; then
7407           # A command without a complete path is provided, search $PATH.
7408           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5
7409 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;}
7410           # Extract the first word of "$tool_basename", so it can be a program name with args.
7411 set dummy $tool_basename; ac_word=$2
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7413 $as_echo_n "checking for $ac_word... " >&6; }
7414 if ${ac_cv_path_DIRNAME+:} false; then :
7415   $as_echo_n "(cached) " >&6
7416 else
7417   case $DIRNAME in
7418   [\\/]* | ?:[\\/]*)
7419   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
7420   ;;
7421   *)
7422   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7423 for as_dir in $PATH
7424 do
7425   IFS=$as_save_IFS
7426   test -z "$as_dir" && as_dir=.
7427     for ac_exec_ext in '' $ac_executable_extensions; do
7428   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7429     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
7430     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7431     break 2
7432   fi
7433 done
7434   done
7435 IFS=$as_save_IFS
7436 
7437   ;;
7438 esac
7439 fi
7440 DIRNAME=$ac_cv_path_DIRNAME
7441 if test -n "$DIRNAME"; then
7442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
7443 $as_echo "$DIRNAME" >&6; }
7444 else
7445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7446 $as_echo "no" >&6; }
7447 fi
7448 
7449 
7450           if test "x$DIRNAME" = x; then
7451             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7452           fi
7453         else
7454           # Otherwise we believe it is a complete path. Use it as it is.
7455           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5
7456 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;}
7457           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5
7458 $as_echo_n "checking for DIRNAME... " >&6; }
7459           if test ! -x "$tool_specified"; then
7460             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7461 $as_echo "not found" >&6; }
7462             as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
7463           fi
7464           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7465 $as_echo "$tool_specified" >&6; }
7466         fi
7467       fi
7468     fi
7469 
7470   fi
7471 
7472 
7473 
7474   if test "x$DIRNAME" = x; then
7475     as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5
7476   fi
7477 
7478 
7479 
7480 
7481 
7482   # Publish this variable in the help.
7483 
7484 
7485   if [ -z "${ECHO+x}" ]; then
7486     # The variable is not set by user, try to locate tool using the code snippet
7487     for ac_prog in echo
7488 do
7489   # Extract the first word of "$ac_prog", so it can be a program name with args.
7490 set dummy $ac_prog; ac_word=$2
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7492 $as_echo_n "checking for $ac_word... " >&6; }
7493 if ${ac_cv_path_ECHO+:} false; then :
7494   $as_echo_n "(cached) " >&6
7495 else
7496   case $ECHO in
7497   [\\/]* | ?:[\\/]*)
7498   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
7499   ;;
7500   *)
7501   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7502 for as_dir in $PATH
7503 do
7504   IFS=$as_save_IFS
7505   test -z "$as_dir" && as_dir=.
7506     for ac_exec_ext in '' $ac_executable_extensions; do
7507   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7508     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
7509     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7510     break 2
7511   fi
7512 done
7513   done
7514 IFS=$as_save_IFS
7515 
7516   ;;
7517 esac
7518 fi
7519 ECHO=$ac_cv_path_ECHO
7520 if test -n "$ECHO"; then
7521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
7522 $as_echo "$ECHO" >&6; }
7523 else
7524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7525 $as_echo "no" >&6; }
7526 fi
7527 
7528 
7529   test -n "$ECHO" && break
7530 done
7531 
7532   else
7533     # The variable is set, but is it from the command line or the environment?
7534 
7535     # Try to remove the string !ECHO! from our list.
7536     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/}
7537     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7538       # If it failed, the variable was not from the command line. Ignore it,
7539       # but warn the user (except for BASH, which is always set by the calling BASH).
7540       if test "xECHO" != xBASH; then
7541         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5
7542 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;}
7543       fi
7544       # Try to locate tool using the code snippet
7545       for ac_prog in echo
7546 do
7547   # Extract the first word of "$ac_prog", so it can be a program name with args.
7548 set dummy $ac_prog; ac_word=$2
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7550 $as_echo_n "checking for $ac_word... " >&6; }
7551 if ${ac_cv_path_ECHO+:} false; then :
7552   $as_echo_n "(cached) " >&6
7553 else
7554   case $ECHO in
7555   [\\/]* | ?:[\\/]*)
7556   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
7557   ;;
7558   *)
7559   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7560 for as_dir in $PATH
7561 do
7562   IFS=$as_save_IFS
7563   test -z "$as_dir" && as_dir=.
7564     for ac_exec_ext in '' $ac_executable_extensions; do
7565   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7566     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
7567     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7568     break 2
7569   fi
7570 done
7571   done
7572 IFS=$as_save_IFS
7573 
7574   ;;
7575 esac
7576 fi
7577 ECHO=$ac_cv_path_ECHO
7578 if test -n "$ECHO"; then
7579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
7580 $as_echo "$ECHO" >&6; }
7581 else
7582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7583 $as_echo "no" >&6; }
7584 fi
7585 
7586 
7587   test -n "$ECHO" && break
7588 done
7589 
7590     else
7591       # If it succeeded, then it was overridden by the user. We will use it
7592       # for the tool.
7593 
7594       # First remove it from the list of overridden variables, so we can test
7595       # for unknown variables in the end.
7596       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7597 
7598       # Check if we try to supply an empty value
7599       if test "x$ECHO" = x; then
7600         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ECHO= (no value)" >&5
7601 $as_echo "$as_me: Setting user supplied tool ECHO= (no value)" >&6;}
7602         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5
7603 $as_echo_n "checking for ECHO... " >&6; }
7604         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7605 $as_echo "disabled" >&6; }
7606       else
7607         # Check if the provided tool contains a complete path.
7608         tool_specified="$ECHO"
7609         tool_basename="${tool_specified##*/}"
7610         if test "x$tool_basename" = "x$tool_specified"; then
7611           # A command without a complete path is provided, search $PATH.
7612           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5
7613 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;}
7614           # Extract the first word of "$tool_basename", so it can be a program name with args.
7615 set dummy $tool_basename; ac_word=$2
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7617 $as_echo_n "checking for $ac_word... " >&6; }
7618 if ${ac_cv_path_ECHO+:} false; then :
7619   $as_echo_n "(cached) " >&6
7620 else
7621   case $ECHO in
7622   [\\/]* | ?:[\\/]*)
7623   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
7624   ;;
7625   *)
7626   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7627 for as_dir in $PATH
7628 do
7629   IFS=$as_save_IFS
7630   test -z "$as_dir" && as_dir=.
7631     for ac_exec_ext in '' $ac_executable_extensions; do
7632   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7633     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
7634     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7635     break 2
7636   fi
7637 done
7638   done
7639 IFS=$as_save_IFS
7640 
7641   ;;
7642 esac
7643 fi
7644 ECHO=$ac_cv_path_ECHO
7645 if test -n "$ECHO"; then
7646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
7647 $as_echo "$ECHO" >&6; }
7648 else
7649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7650 $as_echo "no" >&6; }
7651 fi
7652 
7653 
7654           if test "x$ECHO" = x; then
7655             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7656           fi
7657         else
7658           # Otherwise we believe it is a complete path. Use it as it is.
7659           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5
7660 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;}
7661           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5
7662 $as_echo_n "checking for ECHO... " >&6; }
7663           if test ! -x "$tool_specified"; then
7664             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7665 $as_echo "not found" >&6; }
7666             as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5
7667           fi
7668           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7669 $as_echo "$tool_specified" >&6; }
7670         fi
7671       fi
7672     fi
7673 
7674   fi
7675 
7676 
7677 
7678   if test "x$ECHO" = x; then
7679     as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5
7680   fi
7681 
7682 
7683 
7684 
7685 
7686   # Publish this variable in the help.
7687 
7688 
7689   if [ -z "${EXPR+x}" ]; then
7690     # The variable is not set by user, try to locate tool using the code snippet
7691     for ac_prog in expr
7692 do
7693   # Extract the first word of "$ac_prog", so it can be a program name with args.
7694 set dummy $ac_prog; ac_word=$2
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7696 $as_echo_n "checking for $ac_word... " >&6; }
7697 if ${ac_cv_path_EXPR+:} false; then :
7698   $as_echo_n "(cached) " >&6
7699 else
7700   case $EXPR in
7701   [\\/]* | ?:[\\/]*)
7702   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
7703   ;;
7704   *)
7705   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7706 for as_dir in $PATH
7707 do
7708   IFS=$as_save_IFS
7709   test -z "$as_dir" && as_dir=.
7710     for ac_exec_ext in '' $ac_executable_extensions; do
7711   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7712     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
7713     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7714     break 2
7715   fi
7716 done
7717   done
7718 IFS=$as_save_IFS
7719 
7720   ;;
7721 esac
7722 fi
7723 EXPR=$ac_cv_path_EXPR
7724 if test -n "$EXPR"; then
7725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
7726 $as_echo "$EXPR" >&6; }
7727 else
7728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7729 $as_echo "no" >&6; }
7730 fi
7731 
7732 
7733   test -n "$EXPR" && break
7734 done
7735 
7736   else
7737     # The variable is set, but is it from the command line or the environment?
7738 
7739     # Try to remove the string !EXPR! from our list.
7740     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/}
7741     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7742       # If it failed, the variable was not from the command line. Ignore it,
7743       # but warn the user (except for BASH, which is always set by the calling BASH).
7744       if test "xEXPR" != xBASH; then
7745         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5
7746 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;}
7747       fi
7748       # Try to locate tool using the code snippet
7749       for ac_prog in expr
7750 do
7751   # Extract the first word of "$ac_prog", so it can be a program name with args.
7752 set dummy $ac_prog; ac_word=$2
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7754 $as_echo_n "checking for $ac_word... " >&6; }
7755 if ${ac_cv_path_EXPR+:} false; then :
7756   $as_echo_n "(cached) " >&6
7757 else
7758   case $EXPR in
7759   [\\/]* | ?:[\\/]*)
7760   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
7761   ;;
7762   *)
7763   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7764 for as_dir in $PATH
7765 do
7766   IFS=$as_save_IFS
7767   test -z "$as_dir" && as_dir=.
7768     for ac_exec_ext in '' $ac_executable_extensions; do
7769   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7770     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
7771     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7772     break 2
7773   fi
7774 done
7775   done
7776 IFS=$as_save_IFS
7777 
7778   ;;
7779 esac
7780 fi
7781 EXPR=$ac_cv_path_EXPR
7782 if test -n "$EXPR"; then
7783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
7784 $as_echo "$EXPR" >&6; }
7785 else
7786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7787 $as_echo "no" >&6; }
7788 fi
7789 
7790 
7791   test -n "$EXPR" && break
7792 done
7793 
7794     else
7795       # If it succeeded, then it was overridden by the user. We will use it
7796       # for the tool.
7797 
7798       # First remove it from the list of overridden variables, so we can test
7799       # for unknown variables in the end.
7800       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7801 
7802       # Check if we try to supply an empty value
7803       if test "x$EXPR" = x; then
7804         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool EXPR= (no value)" >&5
7805 $as_echo "$as_me: Setting user supplied tool EXPR= (no value)" >&6;}
7806         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5
7807 $as_echo_n "checking for EXPR... " >&6; }
7808         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7809 $as_echo "disabled" >&6; }
7810       else
7811         # Check if the provided tool contains a complete path.
7812         tool_specified="$EXPR"
7813         tool_basename="${tool_specified##*/}"
7814         if test "x$tool_basename" = "x$tool_specified"; then
7815           # A command without a complete path is provided, search $PATH.
7816           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5
7817 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;}
7818           # Extract the first word of "$tool_basename", so it can be a program name with args.
7819 set dummy $tool_basename; ac_word=$2
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7821 $as_echo_n "checking for $ac_word... " >&6; }
7822 if ${ac_cv_path_EXPR+:} false; then :
7823   $as_echo_n "(cached) " >&6
7824 else
7825   case $EXPR in
7826   [\\/]* | ?:[\\/]*)
7827   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
7828   ;;
7829   *)
7830   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7831 for as_dir in $PATH
7832 do
7833   IFS=$as_save_IFS
7834   test -z "$as_dir" && as_dir=.
7835     for ac_exec_ext in '' $ac_executable_extensions; do
7836   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7837     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
7838     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7839     break 2
7840   fi
7841 done
7842   done
7843 IFS=$as_save_IFS
7844 
7845   ;;
7846 esac
7847 fi
7848 EXPR=$ac_cv_path_EXPR
7849 if test -n "$EXPR"; then
7850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
7851 $as_echo "$EXPR" >&6; }
7852 else
7853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7854 $as_echo "no" >&6; }
7855 fi
7856 
7857 
7858           if test "x$EXPR" = x; then
7859             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7860           fi
7861         else
7862           # Otherwise we believe it is a complete path. Use it as it is.
7863           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5
7864 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;}
7865           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5
7866 $as_echo_n "checking for EXPR... " >&6; }
7867           if test ! -x "$tool_specified"; then
7868             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7869 $as_echo "not found" >&6; }
7870             as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5
7871           fi
7872           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7873 $as_echo "$tool_specified" >&6; }
7874         fi
7875       fi
7876     fi
7877 
7878   fi
7879 
7880 
7881 
7882   if test "x$EXPR" = x; then
7883     as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5
7884   fi
7885 
7886 
7887 
7888 
7889 
7890   # Publish this variable in the help.
7891 
7892 
7893   if [ -z "${FILE+x}" ]; then
7894     # The variable is not set by user, try to locate tool using the code snippet
7895     for ac_prog in file
7896 do
7897   # Extract the first word of "$ac_prog", so it can be a program name with args.
7898 set dummy $ac_prog; ac_word=$2
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7900 $as_echo_n "checking for $ac_word... " >&6; }
7901 if ${ac_cv_path_FILE+:} false; then :
7902   $as_echo_n "(cached) " >&6
7903 else
7904   case $FILE in
7905   [\\/]* | ?:[\\/]*)
7906   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7907   ;;
7908   *)
7909   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7910 for as_dir in $PATH
7911 do
7912   IFS=$as_save_IFS
7913   test -z "$as_dir" && as_dir=.
7914     for ac_exec_ext in '' $ac_executable_extensions; do
7915   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7916     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7917     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7918     break 2
7919   fi
7920 done
7921   done
7922 IFS=$as_save_IFS
7923 
7924   ;;
7925 esac
7926 fi
7927 FILE=$ac_cv_path_FILE
7928 if test -n "$FILE"; then
7929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7930 $as_echo "$FILE" >&6; }
7931 else
7932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7933 $as_echo "no" >&6; }
7934 fi
7935 
7936 
7937   test -n "$FILE" && break
7938 done
7939 
7940   else
7941     # The variable is set, but is it from the command line or the environment?
7942 
7943     # Try to remove the string !FILE! from our list.
7944     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/}
7945     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7946       # If it failed, the variable was not from the command line. Ignore it,
7947       # but warn the user (except for BASH, which is always set by the calling BASH).
7948       if test "xFILE" != xBASH; then
7949         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5
7950 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;}
7951       fi
7952       # Try to locate tool using the code snippet
7953       for ac_prog in file
7954 do
7955   # Extract the first word of "$ac_prog", so it can be a program name with args.
7956 set dummy $ac_prog; ac_word=$2
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7958 $as_echo_n "checking for $ac_word... " >&6; }
7959 if ${ac_cv_path_FILE+:} false; then :
7960   $as_echo_n "(cached) " >&6
7961 else
7962   case $FILE in
7963   [\\/]* | ?:[\\/]*)
7964   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7965   ;;
7966   *)
7967   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7968 for as_dir in $PATH
7969 do
7970   IFS=$as_save_IFS
7971   test -z "$as_dir" && as_dir=.
7972     for ac_exec_ext in '' $ac_executable_extensions; do
7973   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7974     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7975     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7976     break 2
7977   fi
7978 done
7979   done
7980 IFS=$as_save_IFS
7981 
7982   ;;
7983 esac
7984 fi
7985 FILE=$ac_cv_path_FILE
7986 if test -n "$FILE"; then
7987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7988 $as_echo "$FILE" >&6; }
7989 else
7990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7991 $as_echo "no" >&6; }
7992 fi
7993 
7994 
7995   test -n "$FILE" && break
7996 done
7997 
7998     else
7999       # If it succeeded, then it was overridden by the user. We will use it
8000       # for the tool.
8001 
8002       # First remove it from the list of overridden variables, so we can test
8003       # for unknown variables in the end.
8004       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8005 
8006       # Check if we try to supply an empty value
8007       if test "x$FILE" = x; then
8008         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FILE= (no value)" >&5
8009 $as_echo "$as_me: Setting user supplied tool FILE= (no value)" >&6;}
8010         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5
8011 $as_echo_n "checking for FILE... " >&6; }
8012         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8013 $as_echo "disabled" >&6; }
8014       else
8015         # Check if the provided tool contains a complete path.
8016         tool_specified="$FILE"
8017         tool_basename="${tool_specified##*/}"
8018         if test "x$tool_basename" = "x$tool_specified"; then
8019           # A command without a complete path is provided, search $PATH.
8020           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5
8021 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;}
8022           # Extract the first word of "$tool_basename", so it can be a program name with args.
8023 set dummy $tool_basename; ac_word=$2
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8025 $as_echo_n "checking for $ac_word... " >&6; }
8026 if ${ac_cv_path_FILE+:} false; then :
8027   $as_echo_n "(cached) " >&6
8028 else
8029   case $FILE in
8030   [\\/]* | ?:[\\/]*)
8031   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
8032   ;;
8033   *)
8034   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8035 for as_dir in $PATH
8036 do
8037   IFS=$as_save_IFS
8038   test -z "$as_dir" && as_dir=.
8039     for ac_exec_ext in '' $ac_executable_extensions; do
8040   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8041     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
8042     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8043     break 2
8044   fi
8045 done
8046   done
8047 IFS=$as_save_IFS
8048 
8049   ;;
8050 esac
8051 fi
8052 FILE=$ac_cv_path_FILE
8053 if test -n "$FILE"; then
8054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
8055 $as_echo "$FILE" >&6; }
8056 else
8057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8058 $as_echo "no" >&6; }
8059 fi
8060 
8061 
8062           if test "x$FILE" = x; then
8063             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8064           fi
8065         else
8066           # Otherwise we believe it is a complete path. Use it as it is.
8067           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5
8068 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;}
8069           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5
8070 $as_echo_n "checking for FILE... " >&6; }
8071           if test ! -x "$tool_specified"; then
8072             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8073 $as_echo "not found" >&6; }
8074             as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5
8075           fi
8076           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8077 $as_echo "$tool_specified" >&6; }
8078         fi
8079       fi
8080     fi
8081 
8082   fi
8083 
8084 
8085 
8086   if test "x$FILE" = x; then
8087     as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5
8088   fi
8089 
8090 
8091 
8092 
8093 
8094   # Publish this variable in the help.
8095 
8096 
8097   if [ -z "${FIND+x}" ]; then
8098     # The variable is not set by user, try to locate tool using the code snippet
8099     for ac_prog in find
8100 do
8101   # Extract the first word of "$ac_prog", so it can be a program name with args.
8102 set dummy $ac_prog; ac_word=$2
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8104 $as_echo_n "checking for $ac_word... " >&6; }
8105 if ${ac_cv_path_FIND+:} false; then :
8106   $as_echo_n "(cached) " >&6
8107 else
8108   case $FIND in
8109   [\\/]* | ?:[\\/]*)
8110   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
8111   ;;
8112   *)
8113   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8114 for as_dir in $PATH
8115 do
8116   IFS=$as_save_IFS
8117   test -z "$as_dir" && as_dir=.
8118     for ac_exec_ext in '' $ac_executable_extensions; do
8119   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8120     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
8121     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8122     break 2
8123   fi
8124 done
8125   done
8126 IFS=$as_save_IFS
8127 
8128   ;;
8129 esac
8130 fi
8131 FIND=$ac_cv_path_FIND
8132 if test -n "$FIND"; then
8133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
8134 $as_echo "$FIND" >&6; }
8135 else
8136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8137 $as_echo "no" >&6; }
8138 fi
8139 
8140 
8141   test -n "$FIND" && break
8142 done
8143 
8144   else
8145     # The variable is set, but is it from the command line or the environment?
8146 
8147     # Try to remove the string !FIND! from our list.
8148     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/}
8149     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8150       # If it failed, the variable was not from the command line. Ignore it,
8151       # but warn the user (except for BASH, which is always set by the calling BASH).
8152       if test "xFIND" != xBASH; then
8153         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5
8154 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;}
8155       fi
8156       # Try to locate tool using the code snippet
8157       for ac_prog in find
8158 do
8159   # Extract the first word of "$ac_prog", so it can be a program name with args.
8160 set dummy $ac_prog; ac_word=$2
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8162 $as_echo_n "checking for $ac_word... " >&6; }
8163 if ${ac_cv_path_FIND+:} false; then :
8164   $as_echo_n "(cached) " >&6
8165 else
8166   case $FIND in
8167   [\\/]* | ?:[\\/]*)
8168   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
8169   ;;
8170   *)
8171   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8172 for as_dir in $PATH
8173 do
8174   IFS=$as_save_IFS
8175   test -z "$as_dir" && as_dir=.
8176     for ac_exec_ext in '' $ac_executable_extensions; do
8177   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8178     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
8179     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8180     break 2
8181   fi
8182 done
8183   done
8184 IFS=$as_save_IFS
8185 
8186   ;;
8187 esac
8188 fi
8189 FIND=$ac_cv_path_FIND
8190 if test -n "$FIND"; then
8191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
8192 $as_echo "$FIND" >&6; }
8193 else
8194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8195 $as_echo "no" >&6; }
8196 fi
8197 
8198 
8199   test -n "$FIND" && break
8200 done
8201 
8202     else
8203       # If it succeeded, then it was overridden by the user. We will use it
8204       # for the tool.
8205 
8206       # First remove it from the list of overridden variables, so we can test
8207       # for unknown variables in the end.
8208       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8209 
8210       # Check if we try to supply an empty value
8211       if test "x$FIND" = x; then
8212         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FIND= (no value)" >&5
8213 $as_echo "$as_me: Setting user supplied tool FIND= (no value)" >&6;}
8214         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5
8215 $as_echo_n "checking for FIND... " >&6; }
8216         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8217 $as_echo "disabled" >&6; }
8218       else
8219         # Check if the provided tool contains a complete path.
8220         tool_specified="$FIND"
8221         tool_basename="${tool_specified##*/}"
8222         if test "x$tool_basename" = "x$tool_specified"; then
8223           # A command without a complete path is provided, search $PATH.
8224           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5
8225 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;}
8226           # Extract the first word of "$tool_basename", so it can be a program name with args.
8227 set dummy $tool_basename; ac_word=$2
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8229 $as_echo_n "checking for $ac_word... " >&6; }
8230 if ${ac_cv_path_FIND+:} false; then :
8231   $as_echo_n "(cached) " >&6
8232 else
8233   case $FIND in
8234   [\\/]* | ?:[\\/]*)
8235   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
8236   ;;
8237   *)
8238   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8239 for as_dir in $PATH
8240 do
8241   IFS=$as_save_IFS
8242   test -z "$as_dir" && as_dir=.
8243     for ac_exec_ext in '' $ac_executable_extensions; do
8244   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8245     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
8246     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8247     break 2
8248   fi
8249 done
8250   done
8251 IFS=$as_save_IFS
8252 
8253   ;;
8254 esac
8255 fi
8256 FIND=$ac_cv_path_FIND
8257 if test -n "$FIND"; then
8258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
8259 $as_echo "$FIND" >&6; }
8260 else
8261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8262 $as_echo "no" >&6; }
8263 fi
8264 
8265 
8266           if test "x$FIND" = x; then
8267             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8268           fi
8269         else
8270           # Otherwise we believe it is a complete path. Use it as it is.
8271           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5
8272 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;}
8273           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5
8274 $as_echo_n "checking for FIND... " >&6; }
8275           if test ! -x "$tool_specified"; then
8276             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8277 $as_echo "not found" >&6; }
8278             as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5
8279           fi
8280           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8281 $as_echo "$tool_specified" >&6; }
8282         fi
8283       fi
8284     fi
8285 
8286   fi
8287 
8288 
8289 
8290   if test "x$FIND" = x; then
8291     as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5
8292   fi
8293 
8294 
8295 
8296 
8297 
8298   # Publish this variable in the help.
8299 
8300 
8301   if [ -z "${HEAD+x}" ]; then
8302     # The variable is not set by user, try to locate tool using the code snippet
8303     for ac_prog in head
8304 do
8305   # Extract the first word of "$ac_prog", so it can be a program name with args.
8306 set dummy $ac_prog; ac_word=$2
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8308 $as_echo_n "checking for $ac_word... " >&6; }
8309 if ${ac_cv_path_HEAD+:} false; then :
8310   $as_echo_n "(cached) " >&6
8311 else
8312   case $HEAD in
8313   [\\/]* | ?:[\\/]*)
8314   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
8315   ;;
8316   *)
8317   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8318 for as_dir in $PATH
8319 do
8320   IFS=$as_save_IFS
8321   test -z "$as_dir" && as_dir=.
8322     for ac_exec_ext in '' $ac_executable_extensions; do
8323   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8324     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
8325     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8326     break 2
8327   fi
8328 done
8329   done
8330 IFS=$as_save_IFS
8331 
8332   ;;
8333 esac
8334 fi
8335 HEAD=$ac_cv_path_HEAD
8336 if test -n "$HEAD"; then
8337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
8338 $as_echo "$HEAD" >&6; }
8339 else
8340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8341 $as_echo "no" >&6; }
8342 fi
8343 
8344 
8345   test -n "$HEAD" && break
8346 done
8347 
8348   else
8349     # The variable is set, but is it from the command line or the environment?
8350 
8351     # Try to remove the string !HEAD! from our list.
8352     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/}
8353     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8354       # If it failed, the variable was not from the command line. Ignore it,
8355       # but warn the user (except for BASH, which is always set by the calling BASH).
8356       if test "xHEAD" != xBASH; then
8357         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5
8358 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;}
8359       fi
8360       # Try to locate tool using the code snippet
8361       for ac_prog in head
8362 do
8363   # Extract the first word of "$ac_prog", so it can be a program name with args.
8364 set dummy $ac_prog; ac_word=$2
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8366 $as_echo_n "checking for $ac_word... " >&6; }
8367 if ${ac_cv_path_HEAD+:} false; then :
8368   $as_echo_n "(cached) " >&6
8369 else
8370   case $HEAD in
8371   [\\/]* | ?:[\\/]*)
8372   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
8373   ;;
8374   *)
8375   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8376 for as_dir in $PATH
8377 do
8378   IFS=$as_save_IFS
8379   test -z "$as_dir" && as_dir=.
8380     for ac_exec_ext in '' $ac_executable_extensions; do
8381   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8382     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
8383     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8384     break 2
8385   fi
8386 done
8387   done
8388 IFS=$as_save_IFS
8389 
8390   ;;
8391 esac
8392 fi
8393 HEAD=$ac_cv_path_HEAD
8394 if test -n "$HEAD"; then
8395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
8396 $as_echo "$HEAD" >&6; }
8397 else
8398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8399 $as_echo "no" >&6; }
8400 fi
8401 
8402 
8403   test -n "$HEAD" && break
8404 done
8405 
8406     else
8407       # If it succeeded, then it was overridden by the user. We will use it
8408       # for the tool.
8409 
8410       # First remove it from the list of overridden variables, so we can test
8411       # for unknown variables in the end.
8412       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8413 
8414       # Check if we try to supply an empty value
8415       if test "x$HEAD" = x; then
8416         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool HEAD= (no value)" >&5
8417 $as_echo "$as_me: Setting user supplied tool HEAD= (no value)" >&6;}
8418         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5
8419 $as_echo_n "checking for HEAD... " >&6; }
8420         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8421 $as_echo "disabled" >&6; }
8422       else
8423         # Check if the provided tool contains a complete path.
8424         tool_specified="$HEAD"
8425         tool_basename="${tool_specified##*/}"
8426         if test "x$tool_basename" = "x$tool_specified"; then
8427           # A command without a complete path is provided, search $PATH.
8428           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5
8429 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;}
8430           # Extract the first word of "$tool_basename", so it can be a program name with args.
8431 set dummy $tool_basename; ac_word=$2
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8433 $as_echo_n "checking for $ac_word... " >&6; }
8434 if ${ac_cv_path_HEAD+:} false; then :
8435   $as_echo_n "(cached) " >&6
8436 else
8437   case $HEAD in
8438   [\\/]* | ?:[\\/]*)
8439   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
8440   ;;
8441   *)
8442   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8443 for as_dir in $PATH
8444 do
8445   IFS=$as_save_IFS
8446   test -z "$as_dir" && as_dir=.
8447     for ac_exec_ext in '' $ac_executable_extensions; do
8448   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8449     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
8450     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8451     break 2
8452   fi
8453 done
8454   done
8455 IFS=$as_save_IFS
8456 
8457   ;;
8458 esac
8459 fi
8460 HEAD=$ac_cv_path_HEAD
8461 if test -n "$HEAD"; then
8462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
8463 $as_echo "$HEAD" >&6; }
8464 else
8465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8466 $as_echo "no" >&6; }
8467 fi
8468 
8469 
8470           if test "x$HEAD" = x; then
8471             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8472           fi
8473         else
8474           # Otherwise we believe it is a complete path. Use it as it is.
8475           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5
8476 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;}
8477           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5
8478 $as_echo_n "checking for HEAD... " >&6; }
8479           if test ! -x "$tool_specified"; then
8480             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8481 $as_echo "not found" >&6; }
8482             as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5
8483           fi
8484           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8485 $as_echo "$tool_specified" >&6; }
8486         fi
8487       fi
8488     fi
8489 
8490   fi
8491 
8492 
8493 
8494   if test "x$HEAD" = x; then
8495     as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5
8496   fi
8497 
8498 
8499 
8500 
8501 
8502   # Publish this variable in the help.
8503 
8504 
8505   if [ -z "${GUNZIP+x}" ]; then
8506     # The variable is not set by user, try to locate tool using the code snippet
8507     for ac_prog in gunzip
8508 do
8509   # Extract the first word of "$ac_prog", so it can be a program name with args.
8510 set dummy $ac_prog; ac_word=$2
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8512 $as_echo_n "checking for $ac_word... " >&6; }
8513 if ${ac_cv_path_GUNZIP+:} false; then :
8514   $as_echo_n "(cached) " >&6
8515 else
8516   case $GUNZIP in
8517   [\\/]* | ?:[\\/]*)
8518   ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path.
8519   ;;
8520   *)
8521   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8522 for as_dir in $PATH
8523 do
8524   IFS=$as_save_IFS
8525   test -z "$as_dir" && as_dir=.
8526     for ac_exec_ext in '' $ac_executable_extensions; do
8527   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8528     ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext"
8529     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8530     break 2
8531   fi
8532 done
8533   done
8534 IFS=$as_save_IFS
8535 
8536   ;;
8537 esac
8538 fi
8539 GUNZIP=$ac_cv_path_GUNZIP
8540 if test -n "$GUNZIP"; then
8541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5
8542 $as_echo "$GUNZIP" >&6; }
8543 else
8544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8545 $as_echo "no" >&6; }
8546 fi
8547 
8548 
8549   test -n "$GUNZIP" && break
8550 done
8551 
8552   else
8553     # The variable is set, but is it from the command line or the environment?
8554 
8555     # Try to remove the string !GUNZIP! from our list.
8556     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GUNZIP!/}
8557     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8558       # If it failed, the variable was not from the command line. Ignore it,
8559       # but warn the user (except for BASH, which is always set by the calling BASH).
8560       if test "xGUNZIP" != xBASH; then
8561         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GUNZIP from the environment. Use command line variables instead." >&5
8562 $as_echo "$as_me: WARNING: Ignoring value of GUNZIP from the environment. Use command line variables instead." >&2;}
8563       fi
8564       # Try to locate tool using the code snippet
8565       for ac_prog in gunzip
8566 do
8567   # Extract the first word of "$ac_prog", so it can be a program name with args.
8568 set dummy $ac_prog; ac_word=$2
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8570 $as_echo_n "checking for $ac_word... " >&6; }
8571 if ${ac_cv_path_GUNZIP+:} false; then :
8572   $as_echo_n "(cached) " >&6
8573 else
8574   case $GUNZIP in
8575   [\\/]* | ?:[\\/]*)
8576   ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path.
8577   ;;
8578   *)
8579   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8580 for as_dir in $PATH
8581 do
8582   IFS=$as_save_IFS
8583   test -z "$as_dir" && as_dir=.
8584     for ac_exec_ext in '' $ac_executable_extensions; do
8585   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8586     ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext"
8587     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8588     break 2
8589   fi
8590 done
8591   done
8592 IFS=$as_save_IFS
8593 
8594   ;;
8595 esac
8596 fi
8597 GUNZIP=$ac_cv_path_GUNZIP
8598 if test -n "$GUNZIP"; then
8599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5
8600 $as_echo "$GUNZIP" >&6; }
8601 else
8602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8603 $as_echo "no" >&6; }
8604 fi
8605 
8606 
8607   test -n "$GUNZIP" && break
8608 done
8609 
8610     else
8611       # If it succeeded, then it was overridden by the user. We will use it
8612       # for the tool.
8613 
8614       # First remove it from the list of overridden variables, so we can test
8615       # for unknown variables in the end.
8616       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8617 
8618       # Check if we try to supply an empty value
8619       if test "x$GUNZIP" = x; then
8620         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GUNZIP= (no value)" >&5
8621 $as_echo "$as_me: Setting user supplied tool GUNZIP= (no value)" >&6;}
8622         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUNZIP" >&5
8623 $as_echo_n "checking for GUNZIP... " >&6; }
8624         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8625 $as_echo "disabled" >&6; }
8626       else
8627         # Check if the provided tool contains a complete path.
8628         tool_specified="$GUNZIP"
8629         tool_basename="${tool_specified##*/}"
8630         if test "x$tool_basename" = "x$tool_specified"; then
8631           # A command without a complete path is provided, search $PATH.
8632           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GUNZIP=$tool_basename" >&5
8633 $as_echo "$as_me: Will search for user supplied tool GUNZIP=$tool_basename" >&6;}
8634           # Extract the first word of "$tool_basename", so it can be a program name with args.
8635 set dummy $tool_basename; ac_word=$2
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8637 $as_echo_n "checking for $ac_word... " >&6; }
8638 if ${ac_cv_path_GUNZIP+:} false; then :
8639   $as_echo_n "(cached) " >&6
8640 else
8641   case $GUNZIP in
8642   [\\/]* | ?:[\\/]*)
8643   ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path.
8644   ;;
8645   *)
8646   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8647 for as_dir in $PATH
8648 do
8649   IFS=$as_save_IFS
8650   test -z "$as_dir" && as_dir=.
8651     for ac_exec_ext in '' $ac_executable_extensions; do
8652   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8653     ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext"
8654     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8655     break 2
8656   fi
8657 done
8658   done
8659 IFS=$as_save_IFS
8660 
8661   ;;
8662 esac
8663 fi
8664 GUNZIP=$ac_cv_path_GUNZIP
8665 if test -n "$GUNZIP"; then
8666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5
8667 $as_echo "$GUNZIP" >&6; }
8668 else
8669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8670 $as_echo "no" >&6; }
8671 fi
8672 
8673 
8674           if test "x$GUNZIP" = x; then
8675             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8676           fi
8677         else
8678           # Otherwise we believe it is a complete path. Use it as it is.
8679           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GUNZIP=$tool_specified" >&5
8680 $as_echo "$as_me: Will use user supplied tool GUNZIP=$tool_specified" >&6;}
8681           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUNZIP" >&5
8682 $as_echo_n "checking for GUNZIP... " >&6; }
8683           if test ! -x "$tool_specified"; then
8684             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8685 $as_echo "not found" >&6; }
8686             as_fn_error $? "User supplied tool GUNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
8687           fi
8688           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8689 $as_echo "$tool_specified" >&6; }
8690         fi
8691       fi
8692     fi
8693 
8694   fi
8695 
8696 
8697 
8698   if test "x$GUNZIP" = x; then
8699     as_fn_error $? "Could not find required tool for GUNZIP" "$LINENO" 5
8700   fi
8701 
8702 
8703 
8704 
8705 
8706   # Publish this variable in the help.
8707 
8708 
8709   if [ -z "${GZIP+x}" ]; then
8710     # The variable is not set by user, try to locate tool using the code snippet
8711     for ac_prog in pigz gzip
8712 do
8713   # Extract the first word of "$ac_prog", so it can be a program name with args.
8714 set dummy $ac_prog; ac_word=$2
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8716 $as_echo_n "checking for $ac_word... " >&6; }
8717 if ${ac_cv_path_GZIP+:} false; then :
8718   $as_echo_n "(cached) " >&6
8719 else
8720   case $GZIP in
8721   [\\/]* | ?:[\\/]*)
8722   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8723   ;;
8724   *)
8725   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8726 for as_dir in $PATH
8727 do
8728   IFS=$as_save_IFS
8729   test -z "$as_dir" && as_dir=.
8730     for ac_exec_ext in '' $ac_executable_extensions; do
8731   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8732     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8733     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8734     break 2
8735   fi
8736 done
8737   done
8738 IFS=$as_save_IFS
8739 
8740   ;;
8741 esac
8742 fi
8743 GZIP=$ac_cv_path_GZIP
8744 if test -n "$GZIP"; then
8745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
8746 $as_echo "$GZIP" >&6; }
8747 else
8748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8749 $as_echo "no" >&6; }
8750 fi
8751 
8752 
8753   test -n "$GZIP" && break
8754 done
8755 
8756   else
8757     # The variable is set, but is it from the command line or the environment?
8758 
8759     # Try to remove the string !GZIP! from our list.
8760     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GZIP!/}
8761     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8762       # If it failed, the variable was not from the command line. Ignore it,
8763       # but warn the user (except for BASH, which is always set by the calling BASH).
8764       if test "xGZIP" != xBASH; then
8765         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GZIP from the environment. Use command line variables instead." >&5
8766 $as_echo "$as_me: WARNING: Ignoring value of GZIP from the environment. Use command line variables instead." >&2;}
8767       fi
8768       # Try to locate tool using the code snippet
8769       for ac_prog in pigz gzip
8770 do
8771   # Extract the first word of "$ac_prog", so it can be a program name with args.
8772 set dummy $ac_prog; ac_word=$2
8773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8774 $as_echo_n "checking for $ac_word... " >&6; }
8775 if ${ac_cv_path_GZIP+:} false; then :
8776   $as_echo_n "(cached) " >&6
8777 else
8778   case $GZIP in
8779   [\\/]* | ?:[\\/]*)
8780   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8781   ;;
8782   *)
8783   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8784 for as_dir in $PATH
8785 do
8786   IFS=$as_save_IFS
8787   test -z "$as_dir" && as_dir=.
8788     for ac_exec_ext in '' $ac_executable_extensions; do
8789   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8790     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8791     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8792     break 2
8793   fi
8794 done
8795   done
8796 IFS=$as_save_IFS
8797 
8798   ;;
8799 esac
8800 fi
8801 GZIP=$ac_cv_path_GZIP
8802 if test -n "$GZIP"; then
8803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
8804 $as_echo "$GZIP" >&6; }
8805 else
8806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8807 $as_echo "no" >&6; }
8808 fi
8809 
8810 
8811   test -n "$GZIP" && break
8812 done
8813 
8814     else
8815       # If it succeeded, then it was overridden by the user. We will use it
8816       # for the tool.
8817 
8818       # First remove it from the list of overridden variables, so we can test
8819       # for unknown variables in the end.
8820       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8821 
8822       # Check if we try to supply an empty value
8823       if test "x$GZIP" = x; then
8824         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GZIP= (no value)" >&5
8825 $as_echo "$as_me: Setting user supplied tool GZIP= (no value)" >&6;}
8826         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GZIP" >&5
8827 $as_echo_n "checking for GZIP... " >&6; }
8828         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8829 $as_echo "disabled" >&6; }
8830       else
8831         # Check if the provided tool contains a complete path.
8832         tool_specified="$GZIP"
8833         tool_basename="${tool_specified##*/}"
8834         if test "x$tool_basename" = "x$tool_specified"; then
8835           # A command without a complete path is provided, search $PATH.
8836           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GZIP=$tool_basename" >&5
8837 $as_echo "$as_me: Will search for user supplied tool GZIP=$tool_basename" >&6;}
8838           # Extract the first word of "$tool_basename", so it can be a program name with args.
8839 set dummy $tool_basename; ac_word=$2
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8841 $as_echo_n "checking for $ac_word... " >&6; }
8842 if ${ac_cv_path_GZIP+:} false; then :
8843   $as_echo_n "(cached) " >&6
8844 else
8845   case $GZIP in
8846   [\\/]* | ?:[\\/]*)
8847   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8848   ;;
8849   *)
8850   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8851 for as_dir in $PATH
8852 do
8853   IFS=$as_save_IFS
8854   test -z "$as_dir" && as_dir=.
8855     for ac_exec_ext in '' $ac_executable_extensions; do
8856   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8857     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8858     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8859     break 2
8860   fi
8861 done
8862   done
8863 IFS=$as_save_IFS
8864 
8865   ;;
8866 esac
8867 fi
8868 GZIP=$ac_cv_path_GZIP
8869 if test -n "$GZIP"; then
8870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
8871 $as_echo "$GZIP" >&6; }
8872 else
8873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8874 $as_echo "no" >&6; }
8875 fi
8876 
8877 
8878           if test "x$GZIP" = x; then
8879             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8880           fi
8881         else
8882           # Otherwise we believe it is a complete path. Use it as it is.
8883           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GZIP=$tool_specified" >&5
8884 $as_echo "$as_me: Will use user supplied tool GZIP=$tool_specified" >&6;}
8885           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GZIP" >&5
8886 $as_echo_n "checking for GZIP... " >&6; }
8887           if test ! -x "$tool_specified"; then
8888             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8889 $as_echo "not found" >&6; }
8890             as_fn_error $? "User supplied tool GZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
8891           fi
8892           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8893 $as_echo "$tool_specified" >&6; }
8894         fi
8895       fi
8896     fi
8897 
8898   fi
8899 
8900 
8901 
8902   if test "x$GZIP" = x; then
8903     as_fn_error $? "Could not find required tool for GZIP" "$LINENO" 5
8904   fi
8905 
8906 
8907 
8908 
8909 
8910   # Publish this variable in the help.
8911 
8912 
8913   if [ -z "${LN+x}" ]; then
8914     # The variable is not set by user, try to locate tool using the code snippet
8915     for ac_prog in ln
8916 do
8917   # Extract the first word of "$ac_prog", so it can be a program name with args.
8918 set dummy $ac_prog; ac_word=$2
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8920 $as_echo_n "checking for $ac_word... " >&6; }
8921 if ${ac_cv_path_LN+:} false; then :
8922   $as_echo_n "(cached) " >&6
8923 else
8924   case $LN in
8925   [\\/]* | ?:[\\/]*)
8926   ac_cv_path_LN="$LN" # Let the user override the test with a path.
8927   ;;
8928   *)
8929   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8930 for as_dir in $PATH
8931 do
8932   IFS=$as_save_IFS
8933   test -z "$as_dir" && as_dir=.
8934     for ac_exec_ext in '' $ac_executable_extensions; do
8935   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8936     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
8937     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8938     break 2
8939   fi
8940 done
8941   done
8942 IFS=$as_save_IFS
8943 
8944   ;;
8945 esac
8946 fi
8947 LN=$ac_cv_path_LN
8948 if test -n "$LN"; then
8949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
8950 $as_echo "$LN" >&6; }
8951 else
8952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8953 $as_echo "no" >&6; }
8954 fi
8955 
8956 
8957   test -n "$LN" && break
8958 done
8959 
8960   else
8961     # The variable is set, but is it from the command line or the environment?
8962 
8963     # Try to remove the string !LN! from our list.
8964     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/}
8965     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8966       # If it failed, the variable was not from the command line. Ignore it,
8967       # but warn the user (except for BASH, which is always set by the calling BASH).
8968       if test "xLN" != xBASH; then
8969         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5
8970 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;}
8971       fi
8972       # Try to locate tool using the code snippet
8973       for ac_prog in ln
8974 do
8975   # Extract the first word of "$ac_prog", so it can be a program name with args.
8976 set dummy $ac_prog; ac_word=$2
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8978 $as_echo_n "checking for $ac_word... " >&6; }
8979 if ${ac_cv_path_LN+:} false; then :
8980   $as_echo_n "(cached) " >&6
8981 else
8982   case $LN in
8983   [\\/]* | ?:[\\/]*)
8984   ac_cv_path_LN="$LN" # Let the user override the test with a path.
8985   ;;
8986   *)
8987   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8988 for as_dir in $PATH
8989 do
8990   IFS=$as_save_IFS
8991   test -z "$as_dir" && as_dir=.
8992     for ac_exec_ext in '' $ac_executable_extensions; do
8993   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8994     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
8995     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8996     break 2
8997   fi
8998 done
8999   done
9000 IFS=$as_save_IFS
9001 
9002   ;;
9003 esac
9004 fi
9005 LN=$ac_cv_path_LN
9006 if test -n "$LN"; then
9007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
9008 $as_echo "$LN" >&6; }
9009 else
9010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9011 $as_echo "no" >&6; }
9012 fi
9013 
9014 
9015   test -n "$LN" && break
9016 done
9017 
9018     else
9019       # If it succeeded, then it was overridden by the user. We will use it
9020       # for the tool.
9021 
9022       # First remove it from the list of overridden variables, so we can test
9023       # for unknown variables in the end.
9024       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9025 
9026       # Check if we try to supply an empty value
9027       if test "x$LN" = x; then
9028         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LN= (no value)" >&5
9029 $as_echo "$as_me: Setting user supplied tool LN= (no value)" >&6;}
9030         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5
9031 $as_echo_n "checking for LN... " >&6; }
9032         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9033 $as_echo "disabled" >&6; }
9034       else
9035         # Check if the provided tool contains a complete path.
9036         tool_specified="$LN"
9037         tool_basename="${tool_specified##*/}"
9038         if test "x$tool_basename" = "x$tool_specified"; then
9039           # A command without a complete path is provided, search $PATH.
9040           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5
9041 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;}
9042           # Extract the first word of "$tool_basename", so it can be a program name with args.
9043 set dummy $tool_basename; ac_word=$2
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9045 $as_echo_n "checking for $ac_word... " >&6; }
9046 if ${ac_cv_path_LN+:} false; then :
9047   $as_echo_n "(cached) " >&6
9048 else
9049   case $LN in
9050   [\\/]* | ?:[\\/]*)
9051   ac_cv_path_LN="$LN" # Let the user override the test with a path.
9052   ;;
9053   *)
9054   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9055 for as_dir in $PATH
9056 do
9057   IFS=$as_save_IFS
9058   test -z "$as_dir" && as_dir=.
9059     for ac_exec_ext in '' $ac_executable_extensions; do
9060   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9061     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
9062     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9063     break 2
9064   fi
9065 done
9066   done
9067 IFS=$as_save_IFS
9068 
9069   ;;
9070 esac
9071 fi
9072 LN=$ac_cv_path_LN
9073 if test -n "$LN"; then
9074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
9075 $as_echo "$LN" >&6; }
9076 else
9077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9078 $as_echo "no" >&6; }
9079 fi
9080 
9081 
9082           if test "x$LN" = x; then
9083             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9084           fi
9085         else
9086           # Otherwise we believe it is a complete path. Use it as it is.
9087           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5
9088 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;}
9089           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5
9090 $as_echo_n "checking for LN... " >&6; }
9091           if test ! -x "$tool_specified"; then
9092             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9093 $as_echo "not found" >&6; }
9094             as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5
9095           fi
9096           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9097 $as_echo "$tool_specified" >&6; }
9098         fi
9099       fi
9100     fi
9101 
9102   fi
9103 
9104 
9105 
9106   if test "x$LN" = x; then
9107     as_fn_error $? "Could not find required tool for LN" "$LINENO" 5
9108   fi
9109 
9110 
9111 
9112 
9113 
9114   # Publish this variable in the help.
9115 
9116 
9117   if [ -z "${LS+x}" ]; then
9118     # The variable is not set by user, try to locate tool using the code snippet
9119     for ac_prog in ls
9120 do
9121   # Extract the first word of "$ac_prog", so it can be a program name with args.
9122 set dummy $ac_prog; ac_word=$2
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9124 $as_echo_n "checking for $ac_word... " >&6; }
9125 if ${ac_cv_path_LS+:} false; then :
9126   $as_echo_n "(cached) " >&6
9127 else
9128   case $LS in
9129   [\\/]* | ?:[\\/]*)
9130   ac_cv_path_LS="$LS" # Let the user override the test with a path.
9131   ;;
9132   *)
9133   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9134 for as_dir in $PATH
9135 do
9136   IFS=$as_save_IFS
9137   test -z "$as_dir" && as_dir=.
9138     for ac_exec_ext in '' $ac_executable_extensions; do
9139   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9140     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
9141     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9142     break 2
9143   fi
9144 done
9145   done
9146 IFS=$as_save_IFS
9147 
9148   ;;
9149 esac
9150 fi
9151 LS=$ac_cv_path_LS
9152 if test -n "$LS"; then
9153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
9154 $as_echo "$LS" >&6; }
9155 else
9156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9157 $as_echo "no" >&6; }
9158 fi
9159 
9160 
9161   test -n "$LS" && break
9162 done
9163 
9164   else
9165     # The variable is set, but is it from the command line or the environment?
9166 
9167     # Try to remove the string !LS! from our list.
9168     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/}
9169     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9170       # If it failed, the variable was not from the command line. Ignore it,
9171       # but warn the user (except for BASH, which is always set by the calling BASH).
9172       if test "xLS" != xBASH; then
9173         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5
9174 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;}
9175       fi
9176       # Try to locate tool using the code snippet
9177       for ac_prog in ls
9178 do
9179   # Extract the first word of "$ac_prog", so it can be a program name with args.
9180 set dummy $ac_prog; ac_word=$2
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9182 $as_echo_n "checking for $ac_word... " >&6; }
9183 if ${ac_cv_path_LS+:} false; then :
9184   $as_echo_n "(cached) " >&6
9185 else
9186   case $LS in
9187   [\\/]* | ?:[\\/]*)
9188   ac_cv_path_LS="$LS" # Let the user override the test with a path.
9189   ;;
9190   *)
9191   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9192 for as_dir in $PATH
9193 do
9194   IFS=$as_save_IFS
9195   test -z "$as_dir" && as_dir=.
9196     for ac_exec_ext in '' $ac_executable_extensions; do
9197   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9198     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
9199     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9200     break 2
9201   fi
9202 done
9203   done
9204 IFS=$as_save_IFS
9205 
9206   ;;
9207 esac
9208 fi
9209 LS=$ac_cv_path_LS
9210 if test -n "$LS"; then
9211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
9212 $as_echo "$LS" >&6; }
9213 else
9214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9215 $as_echo "no" >&6; }
9216 fi
9217 
9218 
9219   test -n "$LS" && break
9220 done
9221 
9222     else
9223       # If it succeeded, then it was overridden by the user. We will use it
9224       # for the tool.
9225 
9226       # First remove it from the list of overridden variables, so we can test
9227       # for unknown variables in the end.
9228       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9229 
9230       # Check if we try to supply an empty value
9231       if test "x$LS" = x; then
9232         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LS= (no value)" >&5
9233 $as_echo "$as_me: Setting user supplied tool LS= (no value)" >&6;}
9234         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5
9235 $as_echo_n "checking for LS... " >&6; }
9236         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9237 $as_echo "disabled" >&6; }
9238       else
9239         # Check if the provided tool contains a complete path.
9240         tool_specified="$LS"
9241         tool_basename="${tool_specified##*/}"
9242         if test "x$tool_basename" = "x$tool_specified"; then
9243           # A command without a complete path is provided, search $PATH.
9244           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5
9245 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;}
9246           # Extract the first word of "$tool_basename", so it can be a program name with args.
9247 set dummy $tool_basename; ac_word=$2
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9249 $as_echo_n "checking for $ac_word... " >&6; }
9250 if ${ac_cv_path_LS+:} false; then :
9251   $as_echo_n "(cached) " >&6
9252 else
9253   case $LS in
9254   [\\/]* | ?:[\\/]*)
9255   ac_cv_path_LS="$LS" # Let the user override the test with a path.
9256   ;;
9257   *)
9258   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9259 for as_dir in $PATH
9260 do
9261   IFS=$as_save_IFS
9262   test -z "$as_dir" && as_dir=.
9263     for ac_exec_ext in '' $ac_executable_extensions; do
9264   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9265     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
9266     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9267     break 2
9268   fi
9269 done
9270   done
9271 IFS=$as_save_IFS
9272 
9273   ;;
9274 esac
9275 fi
9276 LS=$ac_cv_path_LS
9277 if test -n "$LS"; then
9278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
9279 $as_echo "$LS" >&6; }
9280 else
9281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9282 $as_echo "no" >&6; }
9283 fi
9284 
9285 
9286           if test "x$LS" = x; then
9287             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9288           fi
9289         else
9290           # Otherwise we believe it is a complete path. Use it as it is.
9291           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5
9292 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;}
9293           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5
9294 $as_echo_n "checking for LS... " >&6; }
9295           if test ! -x "$tool_specified"; then
9296             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9297 $as_echo "not found" >&6; }
9298             as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5
9299           fi
9300           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9301 $as_echo "$tool_specified" >&6; }
9302         fi
9303       fi
9304     fi
9305 
9306   fi
9307 
9308 
9309 
9310   if test "x$LS" = x; then
9311     as_fn_error $? "Could not find required tool for LS" "$LINENO" 5
9312   fi
9313 
9314 
9315 
9316 
9317 
9318   # Publish this variable in the help.
9319 
9320 
9321   if [ -z "${MKDIR+x}" ]; then
9322     # The variable is not set by user, try to locate tool using the code snippet
9323     for ac_prog in mkdir
9324 do
9325   # Extract the first word of "$ac_prog", so it can be a program name with args.
9326 set dummy $ac_prog; ac_word=$2
9327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9328 $as_echo_n "checking for $ac_word... " >&6; }
9329 if ${ac_cv_path_MKDIR+:} false; then :
9330   $as_echo_n "(cached) " >&6
9331 else
9332   case $MKDIR in
9333   [\\/]* | ?:[\\/]*)
9334   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
9335   ;;
9336   *)
9337   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9338 for as_dir in $PATH
9339 do
9340   IFS=$as_save_IFS
9341   test -z "$as_dir" && as_dir=.
9342     for ac_exec_ext in '' $ac_executable_extensions; do
9343   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9344     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
9345     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9346     break 2
9347   fi
9348 done
9349   done
9350 IFS=$as_save_IFS
9351 
9352   ;;
9353 esac
9354 fi
9355 MKDIR=$ac_cv_path_MKDIR
9356 if test -n "$MKDIR"; then
9357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
9358 $as_echo "$MKDIR" >&6; }
9359 else
9360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9361 $as_echo "no" >&6; }
9362 fi
9363 
9364 
9365   test -n "$MKDIR" && break
9366 done
9367 
9368   else
9369     # The variable is set, but is it from the command line or the environment?
9370 
9371     # Try to remove the string !MKDIR! from our list.
9372     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/}
9373     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9374       # If it failed, the variable was not from the command line. Ignore it,
9375       # but warn the user (except for BASH, which is always set by the calling BASH).
9376       if test "xMKDIR" != xBASH; then
9377         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5
9378 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;}
9379       fi
9380       # Try to locate tool using the code snippet
9381       for ac_prog in mkdir
9382 do
9383   # Extract the first word of "$ac_prog", so it can be a program name with args.
9384 set dummy $ac_prog; ac_word=$2
9385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9386 $as_echo_n "checking for $ac_word... " >&6; }
9387 if ${ac_cv_path_MKDIR+:} false; then :
9388   $as_echo_n "(cached) " >&6
9389 else
9390   case $MKDIR in
9391   [\\/]* | ?:[\\/]*)
9392   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
9393   ;;
9394   *)
9395   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9396 for as_dir in $PATH
9397 do
9398   IFS=$as_save_IFS
9399   test -z "$as_dir" && as_dir=.
9400     for ac_exec_ext in '' $ac_executable_extensions; do
9401   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9402     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
9403     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9404     break 2
9405   fi
9406 done
9407   done
9408 IFS=$as_save_IFS
9409 
9410   ;;
9411 esac
9412 fi
9413 MKDIR=$ac_cv_path_MKDIR
9414 if test -n "$MKDIR"; then
9415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
9416 $as_echo "$MKDIR" >&6; }
9417 else
9418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9419 $as_echo "no" >&6; }
9420 fi
9421 
9422 
9423   test -n "$MKDIR" && break
9424 done
9425 
9426     else
9427       # If it succeeded, then it was overridden by the user. We will use it
9428       # for the tool.
9429 
9430       # First remove it from the list of overridden variables, so we can test
9431       # for unknown variables in the end.
9432       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9433 
9434       # Check if we try to supply an empty value
9435       if test "x$MKDIR" = x; then
9436         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MKDIR= (no value)" >&5
9437 $as_echo "$as_me: Setting user supplied tool MKDIR= (no value)" >&6;}
9438         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5
9439 $as_echo_n "checking for MKDIR... " >&6; }
9440         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9441 $as_echo "disabled" >&6; }
9442       else
9443         # Check if the provided tool contains a complete path.
9444         tool_specified="$MKDIR"
9445         tool_basename="${tool_specified##*/}"
9446         if test "x$tool_basename" = "x$tool_specified"; then
9447           # A command without a complete path is provided, search $PATH.
9448           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5
9449 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;}
9450           # Extract the first word of "$tool_basename", so it can be a program name with args.
9451 set dummy $tool_basename; ac_word=$2
9452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9453 $as_echo_n "checking for $ac_word... " >&6; }
9454 if ${ac_cv_path_MKDIR+:} false; then :
9455   $as_echo_n "(cached) " >&6
9456 else
9457   case $MKDIR in
9458   [\\/]* | ?:[\\/]*)
9459   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
9460   ;;
9461   *)
9462   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9463 for as_dir in $PATH
9464 do
9465   IFS=$as_save_IFS
9466   test -z "$as_dir" && as_dir=.
9467     for ac_exec_ext in '' $ac_executable_extensions; do
9468   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9469     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
9470     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9471     break 2
9472   fi
9473 done
9474   done
9475 IFS=$as_save_IFS
9476 
9477   ;;
9478 esac
9479 fi
9480 MKDIR=$ac_cv_path_MKDIR
9481 if test -n "$MKDIR"; then
9482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
9483 $as_echo "$MKDIR" >&6; }
9484 else
9485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9486 $as_echo "no" >&6; }
9487 fi
9488 
9489 
9490           if test "x$MKDIR" = x; then
9491             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9492           fi
9493         else
9494           # Otherwise we believe it is a complete path. Use it as it is.
9495           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5
9496 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;}
9497           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5
9498 $as_echo_n "checking for MKDIR... " >&6; }
9499           if test ! -x "$tool_specified"; then
9500             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9501 $as_echo "not found" >&6; }
9502             as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5
9503           fi
9504           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9505 $as_echo "$tool_specified" >&6; }
9506         fi
9507       fi
9508     fi
9509 
9510   fi
9511 
9512 
9513 
9514   if test "x$MKDIR" = x; then
9515     as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5
9516   fi
9517 
9518 
9519 
9520 
9521 
9522   # Publish this variable in the help.
9523 
9524 
9525   if [ -z "${MKTEMP+x}" ]; then
9526     # The variable is not set by user, try to locate tool using the code snippet
9527     for ac_prog in mktemp
9528 do
9529   # Extract the first word of "$ac_prog", so it can be a program name with args.
9530 set dummy $ac_prog; ac_word=$2
9531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9532 $as_echo_n "checking for $ac_word... " >&6; }
9533 if ${ac_cv_path_MKTEMP+:} false; then :
9534   $as_echo_n "(cached) " >&6
9535 else
9536   case $MKTEMP in
9537   [\\/]* | ?:[\\/]*)
9538   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
9539   ;;
9540   *)
9541   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9542 for as_dir in $PATH
9543 do
9544   IFS=$as_save_IFS
9545   test -z "$as_dir" && as_dir=.
9546     for ac_exec_ext in '' $ac_executable_extensions; do
9547   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9548     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
9549     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9550     break 2
9551   fi
9552 done
9553   done
9554 IFS=$as_save_IFS
9555 
9556   ;;
9557 esac
9558 fi
9559 MKTEMP=$ac_cv_path_MKTEMP
9560 if test -n "$MKTEMP"; then
9561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
9562 $as_echo "$MKTEMP" >&6; }
9563 else
9564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9565 $as_echo "no" >&6; }
9566 fi
9567 
9568 
9569   test -n "$MKTEMP" && break
9570 done
9571 
9572   else
9573     # The variable is set, but is it from the command line or the environment?
9574 
9575     # Try to remove the string !MKTEMP! from our list.
9576     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/}
9577     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9578       # If it failed, the variable was not from the command line. Ignore it,
9579       # but warn the user (except for BASH, which is always set by the calling BASH).
9580       if test "xMKTEMP" != xBASH; then
9581         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5
9582 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;}
9583       fi
9584       # Try to locate tool using the code snippet
9585       for ac_prog in mktemp
9586 do
9587   # Extract the first word of "$ac_prog", so it can be a program name with args.
9588 set dummy $ac_prog; ac_word=$2
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9590 $as_echo_n "checking for $ac_word... " >&6; }
9591 if ${ac_cv_path_MKTEMP+:} false; then :
9592   $as_echo_n "(cached) " >&6
9593 else
9594   case $MKTEMP in
9595   [\\/]* | ?:[\\/]*)
9596   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
9597   ;;
9598   *)
9599   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9600 for as_dir in $PATH
9601 do
9602   IFS=$as_save_IFS
9603   test -z "$as_dir" && as_dir=.
9604     for ac_exec_ext in '' $ac_executable_extensions; do
9605   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9606     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
9607     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9608     break 2
9609   fi
9610 done
9611   done
9612 IFS=$as_save_IFS
9613 
9614   ;;
9615 esac
9616 fi
9617 MKTEMP=$ac_cv_path_MKTEMP
9618 if test -n "$MKTEMP"; then
9619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
9620 $as_echo "$MKTEMP" >&6; }
9621 else
9622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9623 $as_echo "no" >&6; }
9624 fi
9625 
9626 
9627   test -n "$MKTEMP" && break
9628 done
9629 
9630     else
9631       # If it succeeded, then it was overridden by the user. We will use it
9632       # for the tool.
9633 
9634       # First remove it from the list of overridden variables, so we can test
9635       # for unknown variables in the end.
9636       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9637 
9638       # Check if we try to supply an empty value
9639       if test "x$MKTEMP" = x; then
9640         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MKTEMP= (no value)" >&5
9641 $as_echo "$as_me: Setting user supplied tool MKTEMP= (no value)" >&6;}
9642         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5
9643 $as_echo_n "checking for MKTEMP... " >&6; }
9644         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9645 $as_echo "disabled" >&6; }
9646       else
9647         # Check if the provided tool contains a complete path.
9648         tool_specified="$MKTEMP"
9649         tool_basename="${tool_specified##*/}"
9650         if test "x$tool_basename" = "x$tool_specified"; then
9651           # A command without a complete path is provided, search $PATH.
9652           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5
9653 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;}
9654           # Extract the first word of "$tool_basename", so it can be a program name with args.
9655 set dummy $tool_basename; ac_word=$2
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9657 $as_echo_n "checking for $ac_word... " >&6; }
9658 if ${ac_cv_path_MKTEMP+:} false; then :
9659   $as_echo_n "(cached) " >&6
9660 else
9661   case $MKTEMP in
9662   [\\/]* | ?:[\\/]*)
9663   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
9664   ;;
9665   *)
9666   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9667 for as_dir in $PATH
9668 do
9669   IFS=$as_save_IFS
9670   test -z "$as_dir" && as_dir=.
9671     for ac_exec_ext in '' $ac_executable_extensions; do
9672   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9673     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
9674     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9675     break 2
9676   fi
9677 done
9678   done
9679 IFS=$as_save_IFS
9680 
9681   ;;
9682 esac
9683 fi
9684 MKTEMP=$ac_cv_path_MKTEMP
9685 if test -n "$MKTEMP"; then
9686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
9687 $as_echo "$MKTEMP" >&6; }
9688 else
9689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9690 $as_echo "no" >&6; }
9691 fi
9692 
9693 
9694           if test "x$MKTEMP" = x; then
9695             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9696           fi
9697         else
9698           # Otherwise we believe it is a complete path. Use it as it is.
9699           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5
9700 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;}
9701           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5
9702 $as_echo_n "checking for MKTEMP... " >&6; }
9703           if test ! -x "$tool_specified"; then
9704             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9705 $as_echo "not found" >&6; }
9706             as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5
9707           fi
9708           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9709 $as_echo "$tool_specified" >&6; }
9710         fi
9711       fi
9712     fi
9713 
9714   fi
9715 
9716 
9717 
9718   if test "x$MKTEMP" = x; then
9719     as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5
9720   fi
9721 
9722 
9723 
9724 
9725 
9726   # Publish this variable in the help.
9727 
9728 
9729   if [ -z "${MV+x}" ]; then
9730     # The variable is not set by user, try to locate tool using the code snippet
9731     for ac_prog in mv
9732 do
9733   # Extract the first word of "$ac_prog", so it can be a program name with args.
9734 set dummy $ac_prog; ac_word=$2
9735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9736 $as_echo_n "checking for $ac_word... " >&6; }
9737 if ${ac_cv_path_MV+:} false; then :
9738   $as_echo_n "(cached) " >&6
9739 else
9740   case $MV in
9741   [\\/]* | ?:[\\/]*)
9742   ac_cv_path_MV="$MV" # Let the user override the test with a path.
9743   ;;
9744   *)
9745   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9746 for as_dir in $PATH
9747 do
9748   IFS=$as_save_IFS
9749   test -z "$as_dir" && as_dir=.
9750     for ac_exec_ext in '' $ac_executable_extensions; do
9751   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9752     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9753     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9754     break 2
9755   fi
9756 done
9757   done
9758 IFS=$as_save_IFS
9759 
9760   ;;
9761 esac
9762 fi
9763 MV=$ac_cv_path_MV
9764 if test -n "$MV"; then
9765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9766 $as_echo "$MV" >&6; }
9767 else
9768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9769 $as_echo "no" >&6; }
9770 fi
9771 
9772 
9773   test -n "$MV" && break
9774 done
9775 
9776   else
9777     # The variable is set, but is it from the command line or the environment?
9778 
9779     # Try to remove the string !MV! from our list.
9780     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/}
9781     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9782       # If it failed, the variable was not from the command line. Ignore it,
9783       # but warn the user (except for BASH, which is always set by the calling BASH).
9784       if test "xMV" != xBASH; then
9785         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5
9786 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;}
9787       fi
9788       # Try to locate tool using the code snippet
9789       for ac_prog in mv
9790 do
9791   # Extract the first word of "$ac_prog", so it can be a program name with args.
9792 set dummy $ac_prog; ac_word=$2
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9794 $as_echo_n "checking for $ac_word... " >&6; }
9795 if ${ac_cv_path_MV+:} false; then :
9796   $as_echo_n "(cached) " >&6
9797 else
9798   case $MV in
9799   [\\/]* | ?:[\\/]*)
9800   ac_cv_path_MV="$MV" # Let the user override the test with a path.
9801   ;;
9802   *)
9803   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9804 for as_dir in $PATH
9805 do
9806   IFS=$as_save_IFS
9807   test -z "$as_dir" && as_dir=.
9808     for ac_exec_ext in '' $ac_executable_extensions; do
9809   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9810     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9811     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9812     break 2
9813   fi
9814 done
9815   done
9816 IFS=$as_save_IFS
9817 
9818   ;;
9819 esac
9820 fi
9821 MV=$ac_cv_path_MV
9822 if test -n "$MV"; then
9823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9824 $as_echo "$MV" >&6; }
9825 else
9826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9827 $as_echo "no" >&6; }
9828 fi
9829 
9830 
9831   test -n "$MV" && break
9832 done
9833 
9834     else
9835       # If it succeeded, then it was overridden by the user. We will use it
9836       # for the tool.
9837 
9838       # First remove it from the list of overridden variables, so we can test
9839       # for unknown variables in the end.
9840       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9841 
9842       # Check if we try to supply an empty value
9843       if test "x$MV" = x; then
9844         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MV= (no value)" >&5
9845 $as_echo "$as_me: Setting user supplied tool MV= (no value)" >&6;}
9846         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5
9847 $as_echo_n "checking for MV... " >&6; }
9848         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9849 $as_echo "disabled" >&6; }
9850       else
9851         # Check if the provided tool contains a complete path.
9852         tool_specified="$MV"
9853         tool_basename="${tool_specified##*/}"
9854         if test "x$tool_basename" = "x$tool_specified"; then
9855           # A command without a complete path is provided, search $PATH.
9856           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5
9857 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;}
9858           # Extract the first word of "$tool_basename", so it can be a program name with args.
9859 set dummy $tool_basename; ac_word=$2
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9861 $as_echo_n "checking for $ac_word... " >&6; }
9862 if ${ac_cv_path_MV+:} false; then :
9863   $as_echo_n "(cached) " >&6
9864 else
9865   case $MV in
9866   [\\/]* | ?:[\\/]*)
9867   ac_cv_path_MV="$MV" # Let the user override the test with a path.
9868   ;;
9869   *)
9870   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9871 for as_dir in $PATH
9872 do
9873   IFS=$as_save_IFS
9874   test -z "$as_dir" && as_dir=.
9875     for ac_exec_ext in '' $ac_executable_extensions; do
9876   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9877     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9878     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9879     break 2
9880   fi
9881 done
9882   done
9883 IFS=$as_save_IFS
9884 
9885   ;;
9886 esac
9887 fi
9888 MV=$ac_cv_path_MV
9889 if test -n "$MV"; then
9890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9891 $as_echo "$MV" >&6; }
9892 else
9893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9894 $as_echo "no" >&6; }
9895 fi
9896 
9897 
9898           if test "x$MV" = x; then
9899             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9900           fi
9901         else
9902           # Otherwise we believe it is a complete path. Use it as it is.
9903           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5
9904 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;}
9905           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5
9906 $as_echo_n "checking for MV... " >&6; }
9907           if test ! -x "$tool_specified"; then
9908             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9909 $as_echo "not found" >&6; }
9910             as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5
9911           fi
9912           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9913 $as_echo "$tool_specified" >&6; }
9914         fi
9915       fi
9916     fi
9917 
9918   fi
9919 
9920 
9921 
9922   if test "x$MV" = x; then
9923     as_fn_error $? "Could not find required tool for MV" "$LINENO" 5
9924   fi
9925 
9926 
9927 
9928 
9929 
9930   # Publish this variable in the help.
9931 
9932 
9933   if [ -z "${NAWK+x}" ]; then
9934     # The variable is not set by user, try to locate tool using the code snippet
9935     for ac_prog in nawk gawk awk
9936 do
9937   # Extract the first word of "$ac_prog", so it can be a program name with args.
9938 set dummy $ac_prog; ac_word=$2
9939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9940 $as_echo_n "checking for $ac_word... " >&6; }
9941 if ${ac_cv_path_NAWK+:} false; then :
9942   $as_echo_n "(cached) " >&6
9943 else
9944   case $NAWK in
9945   [\\/]* | ?:[\\/]*)
9946   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
9947   ;;
9948   *)
9949   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9950 for as_dir in $PATH
9951 do
9952   IFS=$as_save_IFS
9953   test -z "$as_dir" && as_dir=.
9954     for ac_exec_ext in '' $ac_executable_extensions; do
9955   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9956     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
9957     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9958     break 2
9959   fi
9960 done
9961   done
9962 IFS=$as_save_IFS
9963 
9964   ;;
9965 esac
9966 fi
9967 NAWK=$ac_cv_path_NAWK
9968 if test -n "$NAWK"; then
9969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
9970 $as_echo "$NAWK" >&6; }
9971 else
9972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9973 $as_echo "no" >&6; }
9974 fi
9975 
9976 
9977   test -n "$NAWK" && break
9978 done
9979 
9980   else
9981     # The variable is set, but is it from the command line or the environment?
9982 
9983     # Try to remove the string !NAWK! from our list.
9984     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/}
9985     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9986       # If it failed, the variable was not from the command line. Ignore it,
9987       # but warn the user (except for BASH, which is always set by the calling BASH).
9988       if test "xNAWK" != xBASH; then
9989         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5
9990 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;}
9991       fi
9992       # Try to locate tool using the code snippet
9993       for ac_prog in nawk gawk awk
9994 do
9995   # Extract the first word of "$ac_prog", so it can be a program name with args.
9996 set dummy $ac_prog; ac_word=$2
9997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9998 $as_echo_n "checking for $ac_word... " >&6; }
9999 if ${ac_cv_path_NAWK+:} false; then :
10000   $as_echo_n "(cached) " >&6
10001 else
10002   case $NAWK in
10003   [\\/]* | ?:[\\/]*)
10004   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
10005   ;;
10006   *)
10007   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10008 for as_dir in $PATH
10009 do
10010   IFS=$as_save_IFS
10011   test -z "$as_dir" && as_dir=.
10012     for ac_exec_ext in '' $ac_executable_extensions; do
10013   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10014     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
10015     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10016     break 2
10017   fi
10018 done
10019   done
10020 IFS=$as_save_IFS
10021 
10022   ;;
10023 esac
10024 fi
10025 NAWK=$ac_cv_path_NAWK
10026 if test -n "$NAWK"; then
10027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
10028 $as_echo "$NAWK" >&6; }
10029 else
10030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10031 $as_echo "no" >&6; }
10032 fi
10033 
10034 
10035   test -n "$NAWK" && break
10036 done
10037 
10038     else
10039       # If it succeeded, then it was overridden by the user. We will use it
10040       # for the tool.
10041 
10042       # First remove it from the list of overridden variables, so we can test
10043       # for unknown variables in the end.
10044       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10045 
10046       # Check if we try to supply an empty value
10047       if test "x$NAWK" = x; then
10048         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NAWK= (no value)" >&5
10049 $as_echo "$as_me: Setting user supplied tool NAWK= (no value)" >&6;}
10050         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5
10051 $as_echo_n "checking for NAWK... " >&6; }
10052         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10053 $as_echo "disabled" >&6; }
10054       else
10055         # Check if the provided tool contains a complete path.
10056         tool_specified="$NAWK"
10057         tool_basename="${tool_specified##*/}"
10058         if test "x$tool_basename" = "x$tool_specified"; then
10059           # A command without a complete path is provided, search $PATH.
10060           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5
10061 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;}
10062           # Extract the first word of "$tool_basename", so it can be a program name with args.
10063 set dummy $tool_basename; ac_word=$2
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10065 $as_echo_n "checking for $ac_word... " >&6; }
10066 if ${ac_cv_path_NAWK+:} false; then :
10067   $as_echo_n "(cached) " >&6
10068 else
10069   case $NAWK in
10070   [\\/]* | ?:[\\/]*)
10071   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
10072   ;;
10073   *)
10074   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10075 for as_dir in $PATH
10076 do
10077   IFS=$as_save_IFS
10078   test -z "$as_dir" && as_dir=.
10079     for ac_exec_ext in '' $ac_executable_extensions; do
10080   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10081     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
10082     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10083     break 2
10084   fi
10085 done
10086   done
10087 IFS=$as_save_IFS
10088 
10089   ;;
10090 esac
10091 fi
10092 NAWK=$ac_cv_path_NAWK
10093 if test -n "$NAWK"; then
10094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
10095 $as_echo "$NAWK" >&6; }
10096 else
10097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10098 $as_echo "no" >&6; }
10099 fi
10100 
10101 
10102           if test "x$NAWK" = x; then
10103             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10104           fi
10105         else
10106           # Otherwise we believe it is a complete path. Use it as it is.
10107           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5
10108 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;}
10109           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5
10110 $as_echo_n "checking for NAWK... " >&6; }
10111           if test ! -x "$tool_specified"; then
10112             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10113 $as_echo "not found" >&6; }
10114             as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5
10115           fi
10116           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10117 $as_echo "$tool_specified" >&6; }
10118         fi
10119       fi
10120     fi
10121 
10122   fi
10123 
10124 
10125 
10126   if test "x$NAWK" = x; then
10127     as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5
10128   fi
10129 
10130 
10131 
10132 
10133 
10134   # Publish this variable in the help.
10135 
10136 
10137   if [ -z "${PRINTF+x}" ]; then
10138     # The variable is not set by user, try to locate tool using the code snippet
10139     for ac_prog in printf
10140 do
10141   # Extract the first word of "$ac_prog", so it can be a program name with args.
10142 set dummy $ac_prog; ac_word=$2
10143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10144 $as_echo_n "checking for $ac_word... " >&6; }
10145 if ${ac_cv_path_PRINTF+:} false; then :
10146   $as_echo_n "(cached) " >&6
10147 else
10148   case $PRINTF in
10149   [\\/]* | ?:[\\/]*)
10150   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
10151   ;;
10152   *)
10153   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10154 for as_dir in $PATH
10155 do
10156   IFS=$as_save_IFS
10157   test -z "$as_dir" && as_dir=.
10158     for ac_exec_ext in '' $ac_executable_extensions; do
10159   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10160     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
10161     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10162     break 2
10163   fi
10164 done
10165   done
10166 IFS=$as_save_IFS
10167 
10168   ;;
10169 esac
10170 fi
10171 PRINTF=$ac_cv_path_PRINTF
10172 if test -n "$PRINTF"; then
10173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
10174 $as_echo "$PRINTF" >&6; }
10175 else
10176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10177 $as_echo "no" >&6; }
10178 fi
10179 
10180 
10181   test -n "$PRINTF" && break
10182 done
10183 
10184   else
10185     # The variable is set, but is it from the command line or the environment?
10186 
10187     # Try to remove the string !PRINTF! from our list.
10188     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/}
10189     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10190       # If it failed, the variable was not from the command line. Ignore it,
10191       # but warn the user (except for BASH, which is always set by the calling BASH).
10192       if test "xPRINTF" != xBASH; then
10193         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5
10194 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;}
10195       fi
10196       # Try to locate tool using the code snippet
10197       for ac_prog in printf
10198 do
10199   # Extract the first word of "$ac_prog", so it can be a program name with args.
10200 set dummy $ac_prog; ac_word=$2
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10202 $as_echo_n "checking for $ac_word... " >&6; }
10203 if ${ac_cv_path_PRINTF+:} false; then :
10204   $as_echo_n "(cached) " >&6
10205 else
10206   case $PRINTF in
10207   [\\/]* | ?:[\\/]*)
10208   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
10209   ;;
10210   *)
10211   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10212 for as_dir in $PATH
10213 do
10214   IFS=$as_save_IFS
10215   test -z "$as_dir" && as_dir=.
10216     for ac_exec_ext in '' $ac_executable_extensions; do
10217   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10218     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
10219     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10220     break 2
10221   fi
10222 done
10223   done
10224 IFS=$as_save_IFS
10225 
10226   ;;
10227 esac
10228 fi
10229 PRINTF=$ac_cv_path_PRINTF
10230 if test -n "$PRINTF"; then
10231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
10232 $as_echo "$PRINTF" >&6; }
10233 else
10234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10235 $as_echo "no" >&6; }
10236 fi
10237 
10238 
10239   test -n "$PRINTF" && break
10240 done
10241 
10242     else
10243       # If it succeeded, then it was overridden by the user. We will use it
10244       # for the tool.
10245 
10246       # First remove it from the list of overridden variables, so we can test
10247       # for unknown variables in the end.
10248       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10249 
10250       # Check if we try to supply an empty value
10251       if test "x$PRINTF" = x; then
10252         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PRINTF= (no value)" >&5
10253 $as_echo "$as_me: Setting user supplied tool PRINTF= (no value)" >&6;}
10254         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5
10255 $as_echo_n "checking for PRINTF... " >&6; }
10256         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10257 $as_echo "disabled" >&6; }
10258       else
10259         # Check if the provided tool contains a complete path.
10260         tool_specified="$PRINTF"
10261         tool_basename="${tool_specified##*/}"
10262         if test "x$tool_basename" = "x$tool_specified"; then
10263           # A command without a complete path is provided, search $PATH.
10264           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5
10265 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;}
10266           # Extract the first word of "$tool_basename", so it can be a program name with args.
10267 set dummy $tool_basename; ac_word=$2
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10269 $as_echo_n "checking for $ac_word... " >&6; }
10270 if ${ac_cv_path_PRINTF+:} false; then :
10271   $as_echo_n "(cached) " >&6
10272 else
10273   case $PRINTF in
10274   [\\/]* | ?:[\\/]*)
10275   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
10276   ;;
10277   *)
10278   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10279 for as_dir in $PATH
10280 do
10281   IFS=$as_save_IFS
10282   test -z "$as_dir" && as_dir=.
10283     for ac_exec_ext in '' $ac_executable_extensions; do
10284   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10285     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
10286     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10287     break 2
10288   fi
10289 done
10290   done
10291 IFS=$as_save_IFS
10292 
10293   ;;
10294 esac
10295 fi
10296 PRINTF=$ac_cv_path_PRINTF
10297 if test -n "$PRINTF"; then
10298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
10299 $as_echo "$PRINTF" >&6; }
10300 else
10301   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10302 $as_echo "no" >&6; }
10303 fi
10304 
10305 
10306           if test "x$PRINTF" = x; then
10307             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10308           fi
10309         else
10310           # Otherwise we believe it is a complete path. Use it as it is.
10311           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5
10312 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;}
10313           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5
10314 $as_echo_n "checking for PRINTF... " >&6; }
10315           if test ! -x "$tool_specified"; then
10316             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10317 $as_echo "not found" >&6; }
10318             as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5
10319           fi
10320           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10321 $as_echo "$tool_specified" >&6; }
10322         fi
10323       fi
10324     fi
10325 
10326   fi
10327 
10328 
10329 
10330   if test "x$PRINTF" = x; then
10331     as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5
10332   fi
10333 
10334 
10335 
10336 
10337 
10338   # Publish this variable in the help.
10339 
10340 
10341   if [ -z "${RM+x}" ]; then
10342     # The variable is not set by user, try to locate tool using the code snippet
10343     for ac_prog in rm
10344 do
10345   # Extract the first word of "$ac_prog", so it can be a program name with args.
10346 set dummy $ac_prog; ac_word=$2
10347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10348 $as_echo_n "checking for $ac_word... " >&6; }
10349 if ${ac_cv_path_RM+:} false; then :
10350   $as_echo_n "(cached) " >&6
10351 else
10352   case $RM in
10353   [\\/]* | ?:[\\/]*)
10354   ac_cv_path_RM="$RM" # Let the user override the test with a path.
10355   ;;
10356   *)
10357   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10358 for as_dir in $PATH
10359 do
10360   IFS=$as_save_IFS
10361   test -z "$as_dir" && as_dir=.
10362     for ac_exec_ext in '' $ac_executable_extensions; do
10363   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10364     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
10365     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10366     break 2
10367   fi
10368 done
10369   done
10370 IFS=$as_save_IFS
10371 
10372   ;;
10373 esac
10374 fi
10375 RM=$ac_cv_path_RM
10376 if test -n "$RM"; then
10377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
10378 $as_echo "$RM" >&6; }
10379 else
10380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10381 $as_echo "no" >&6; }
10382 fi
10383 
10384 
10385   test -n "$RM" && break
10386 done
10387 
10388   else
10389     # The variable is set, but is it from the command line or the environment?
10390 
10391     # Try to remove the string !RM! from our list.
10392     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/}
10393     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10394       # If it failed, the variable was not from the command line. Ignore it,
10395       # but warn the user (except for BASH, which is always set by the calling BASH).
10396       if test "xRM" != xBASH; then
10397         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5
10398 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;}
10399       fi
10400       # Try to locate tool using the code snippet
10401       for ac_prog in rm
10402 do
10403   # Extract the first word of "$ac_prog", so it can be a program name with args.
10404 set dummy $ac_prog; ac_word=$2
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10406 $as_echo_n "checking for $ac_word... " >&6; }
10407 if ${ac_cv_path_RM+:} false; then :
10408   $as_echo_n "(cached) " >&6
10409 else
10410   case $RM in
10411   [\\/]* | ?:[\\/]*)
10412   ac_cv_path_RM="$RM" # Let the user override the test with a path.
10413   ;;
10414   *)
10415   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10416 for as_dir in $PATH
10417 do
10418   IFS=$as_save_IFS
10419   test -z "$as_dir" && as_dir=.
10420     for ac_exec_ext in '' $ac_executable_extensions; do
10421   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10422     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
10423     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10424     break 2
10425   fi
10426 done
10427   done
10428 IFS=$as_save_IFS
10429 
10430   ;;
10431 esac
10432 fi
10433 RM=$ac_cv_path_RM
10434 if test -n "$RM"; then
10435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
10436 $as_echo "$RM" >&6; }
10437 else
10438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10439 $as_echo "no" >&6; }
10440 fi
10441 
10442 
10443   test -n "$RM" && break
10444 done
10445 
10446     else
10447       # If it succeeded, then it was overridden by the user. We will use it
10448       # for the tool.
10449 
10450       # First remove it from the list of overridden variables, so we can test
10451       # for unknown variables in the end.
10452       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10453 
10454       # Check if we try to supply an empty value
10455       if test "x$RM" = x; then
10456         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool RM= (no value)" >&5
10457 $as_echo "$as_me: Setting user supplied tool RM= (no value)" >&6;}
10458         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5
10459 $as_echo_n "checking for RM... " >&6; }
10460         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10461 $as_echo "disabled" >&6; }
10462       else
10463         # Check if the provided tool contains a complete path.
10464         tool_specified="$RM"
10465         tool_basename="${tool_specified##*/}"
10466         if test "x$tool_basename" = "x$tool_specified"; then
10467           # A command without a complete path is provided, search $PATH.
10468           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5
10469 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;}
10470           # Extract the first word of "$tool_basename", so it can be a program name with args.
10471 set dummy $tool_basename; ac_word=$2
10472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10473 $as_echo_n "checking for $ac_word... " >&6; }
10474 if ${ac_cv_path_RM+:} false; then :
10475   $as_echo_n "(cached) " >&6
10476 else
10477   case $RM in
10478   [\\/]* | ?:[\\/]*)
10479   ac_cv_path_RM="$RM" # Let the user override the test with a path.
10480   ;;
10481   *)
10482   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10483 for as_dir in $PATH
10484 do
10485   IFS=$as_save_IFS
10486   test -z "$as_dir" && as_dir=.
10487     for ac_exec_ext in '' $ac_executable_extensions; do
10488   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10489     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
10490     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10491     break 2
10492   fi
10493 done
10494   done
10495 IFS=$as_save_IFS
10496 
10497   ;;
10498 esac
10499 fi
10500 RM=$ac_cv_path_RM
10501 if test -n "$RM"; then
10502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
10503 $as_echo "$RM" >&6; }
10504 else
10505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10506 $as_echo "no" >&6; }
10507 fi
10508 
10509 
10510           if test "x$RM" = x; then
10511             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10512           fi
10513         else
10514           # Otherwise we believe it is a complete path. Use it as it is.
10515           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5
10516 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;}
10517           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5
10518 $as_echo_n "checking for RM... " >&6; }
10519           if test ! -x "$tool_specified"; then
10520             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10521 $as_echo "not found" >&6; }
10522             as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5
10523           fi
10524           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10525 $as_echo "$tool_specified" >&6; }
10526         fi
10527       fi
10528     fi
10529 
10530   fi
10531 
10532 
10533 
10534   if test "x$RM" = x; then
10535     as_fn_error $? "Could not find required tool for RM" "$LINENO" 5
10536   fi
10537 
10538 
10539 
10540 
10541 
10542   # Publish this variable in the help.
10543 
10544 
10545   if [ -z "${RMDIR+x}" ]; then
10546     # The variable is not set by user, try to locate tool using the code snippet
10547     for ac_prog in rmdir
10548 do
10549   # Extract the first word of "$ac_prog", so it can be a program name with args.
10550 set dummy $ac_prog; ac_word=$2
10551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10552 $as_echo_n "checking for $ac_word... " >&6; }
10553 if ${ac_cv_path_RMDIR+:} false; then :
10554   $as_echo_n "(cached) " >&6
10555 else
10556   case $RMDIR in
10557   [\\/]* | ?:[\\/]*)
10558   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
10559   ;;
10560   *)
10561   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10562 for as_dir in $PATH
10563 do
10564   IFS=$as_save_IFS
10565   test -z "$as_dir" && as_dir=.
10566     for ac_exec_ext in '' $ac_executable_extensions; do
10567   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10568     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
10569     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10570     break 2
10571   fi
10572 done
10573   done
10574 IFS=$as_save_IFS
10575 
10576   ;;
10577 esac
10578 fi
10579 RMDIR=$ac_cv_path_RMDIR
10580 if test -n "$RMDIR"; then
10581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
10582 $as_echo "$RMDIR" >&6; }
10583 else
10584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10585 $as_echo "no" >&6; }
10586 fi
10587 
10588 
10589   test -n "$RMDIR" && break
10590 done
10591 
10592   else
10593     # The variable is set, but is it from the command line or the environment?
10594 
10595     # Try to remove the string !RMDIR! from our list.
10596     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RMDIR!/}
10597     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10598       # If it failed, the variable was not from the command line. Ignore it,
10599       # but warn the user (except for BASH, which is always set by the calling BASH).
10600       if test "xRMDIR" != xBASH; then
10601         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RMDIR from the environment. Use command line variables instead." >&5
10602 $as_echo "$as_me: WARNING: Ignoring value of RMDIR from the environment. Use command line variables instead." >&2;}
10603       fi
10604       # Try to locate tool using the code snippet
10605       for ac_prog in rmdir
10606 do
10607   # Extract the first word of "$ac_prog", so it can be a program name with args.
10608 set dummy $ac_prog; ac_word=$2
10609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10610 $as_echo_n "checking for $ac_word... " >&6; }
10611 if ${ac_cv_path_RMDIR+:} false; then :
10612   $as_echo_n "(cached) " >&6
10613 else
10614   case $RMDIR in
10615   [\\/]* | ?:[\\/]*)
10616   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
10617   ;;
10618   *)
10619   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10620 for as_dir in $PATH
10621 do
10622   IFS=$as_save_IFS
10623   test -z "$as_dir" && as_dir=.
10624     for ac_exec_ext in '' $ac_executable_extensions; do
10625   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10626     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
10627     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10628     break 2
10629   fi
10630 done
10631   done
10632 IFS=$as_save_IFS
10633 
10634   ;;
10635 esac
10636 fi
10637 RMDIR=$ac_cv_path_RMDIR
10638 if test -n "$RMDIR"; then
10639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
10640 $as_echo "$RMDIR" >&6; }
10641 else
10642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10643 $as_echo "no" >&6; }
10644 fi
10645 
10646 
10647   test -n "$RMDIR" && break
10648 done
10649 
10650     else
10651       # If it succeeded, then it was overridden by the user. We will use it
10652       # for the tool.
10653 
10654       # First remove it from the list of overridden variables, so we can test
10655       # for unknown variables in the end.
10656       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10657 
10658       # Check if we try to supply an empty value
10659       if test "x$RMDIR" = x; then
10660         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool RMDIR= (no value)" >&5
10661 $as_echo "$as_me: Setting user supplied tool RMDIR= (no value)" >&6;}
10662         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RMDIR" >&5
10663 $as_echo_n "checking for RMDIR... " >&6; }
10664         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10665 $as_echo "disabled" >&6; }
10666       else
10667         # Check if the provided tool contains a complete path.
10668         tool_specified="$RMDIR"
10669         tool_basename="${tool_specified##*/}"
10670         if test "x$tool_basename" = "x$tool_specified"; then
10671           # A command without a complete path is provided, search $PATH.
10672           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RMDIR=$tool_basename" >&5
10673 $as_echo "$as_me: Will search for user supplied tool RMDIR=$tool_basename" >&6;}
10674           # Extract the first word of "$tool_basename", so it can be a program name with args.
10675 set dummy $tool_basename; ac_word=$2
10676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10677 $as_echo_n "checking for $ac_word... " >&6; }
10678 if ${ac_cv_path_RMDIR+:} false; then :
10679   $as_echo_n "(cached) " >&6
10680 else
10681   case $RMDIR in
10682   [\\/]* | ?:[\\/]*)
10683   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
10684   ;;
10685   *)
10686   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10687 for as_dir in $PATH
10688 do
10689   IFS=$as_save_IFS
10690   test -z "$as_dir" && as_dir=.
10691     for ac_exec_ext in '' $ac_executable_extensions; do
10692   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10693     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
10694     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10695     break 2
10696   fi
10697 done
10698   done
10699 IFS=$as_save_IFS
10700 
10701   ;;
10702 esac
10703 fi
10704 RMDIR=$ac_cv_path_RMDIR
10705 if test -n "$RMDIR"; then
10706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
10707 $as_echo "$RMDIR" >&6; }
10708 else
10709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10710 $as_echo "no" >&6; }
10711 fi
10712 
10713 
10714           if test "x$RMDIR" = x; then
10715             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10716           fi
10717         else
10718           # Otherwise we believe it is a complete path. Use it as it is.
10719           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RMDIR=$tool_specified" >&5
10720 $as_echo "$as_me: Will use user supplied tool RMDIR=$tool_specified" >&6;}
10721           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RMDIR" >&5
10722 $as_echo_n "checking for RMDIR... " >&6; }
10723           if test ! -x "$tool_specified"; then
10724             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10725 $as_echo "not found" >&6; }
10726             as_fn_error $? "User supplied tool RMDIR=$tool_specified does not exist or is not executable" "$LINENO" 5
10727           fi
10728           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10729 $as_echo "$tool_specified" >&6; }
10730         fi
10731       fi
10732     fi
10733 
10734   fi
10735 
10736 
10737 
10738   if test "x$RMDIR" = x; then
10739     as_fn_error $? "Could not find required tool for RMDIR" "$LINENO" 5
10740   fi
10741 
10742 
10743 
10744 
10745 
10746   # Publish this variable in the help.
10747 
10748 
10749   if [ -z "${SH+x}" ]; then
10750     # The variable is not set by user, try to locate tool using the code snippet
10751     for ac_prog in sh
10752 do
10753   # Extract the first word of "$ac_prog", so it can be a program name with args.
10754 set dummy $ac_prog; ac_word=$2
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10756 $as_echo_n "checking for $ac_word... " >&6; }
10757 if ${ac_cv_path_SH+:} false; then :
10758   $as_echo_n "(cached) " >&6
10759 else
10760   case $SH in
10761   [\\/]* | ?:[\\/]*)
10762   ac_cv_path_SH="$SH" # Let the user override the test with a path.
10763   ;;
10764   *)
10765   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10766 for as_dir in $PATH
10767 do
10768   IFS=$as_save_IFS
10769   test -z "$as_dir" && as_dir=.
10770     for ac_exec_ext in '' $ac_executable_extensions; do
10771   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10772     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
10773     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10774     break 2
10775   fi
10776 done
10777   done
10778 IFS=$as_save_IFS
10779 
10780   ;;
10781 esac
10782 fi
10783 SH=$ac_cv_path_SH
10784 if test -n "$SH"; then
10785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
10786 $as_echo "$SH" >&6; }
10787 else
10788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10789 $as_echo "no" >&6; }
10790 fi
10791 
10792 
10793   test -n "$SH" && break
10794 done
10795 
10796   else
10797     # The variable is set, but is it from the command line or the environment?
10798 
10799     # Try to remove the string !SH! from our list.
10800     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/}
10801     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10802       # If it failed, the variable was not from the command line. Ignore it,
10803       # but warn the user (except for BASH, which is always set by the calling BASH).
10804       if test "xSH" != xBASH; then
10805         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5
10806 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;}
10807       fi
10808       # Try to locate tool using the code snippet
10809       for ac_prog in sh
10810 do
10811   # Extract the first word of "$ac_prog", so it can be a program name with args.
10812 set dummy $ac_prog; ac_word=$2
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10814 $as_echo_n "checking for $ac_word... " >&6; }
10815 if ${ac_cv_path_SH+:} false; then :
10816   $as_echo_n "(cached) " >&6
10817 else
10818   case $SH in
10819   [\\/]* | ?:[\\/]*)
10820   ac_cv_path_SH="$SH" # Let the user override the test with a path.
10821   ;;
10822   *)
10823   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10824 for as_dir in $PATH
10825 do
10826   IFS=$as_save_IFS
10827   test -z "$as_dir" && as_dir=.
10828     for ac_exec_ext in '' $ac_executable_extensions; do
10829   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10830     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
10831     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10832     break 2
10833   fi
10834 done
10835   done
10836 IFS=$as_save_IFS
10837 
10838   ;;
10839 esac
10840 fi
10841 SH=$ac_cv_path_SH
10842 if test -n "$SH"; then
10843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
10844 $as_echo "$SH" >&6; }
10845 else
10846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10847 $as_echo "no" >&6; }
10848 fi
10849 
10850 
10851   test -n "$SH" && break
10852 done
10853 
10854     else
10855       # If it succeeded, then it was overridden by the user. We will use it
10856       # for the tool.
10857 
10858       # First remove it from the list of overridden variables, so we can test
10859       # for unknown variables in the end.
10860       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10861 
10862       # Check if we try to supply an empty value
10863       if test "x$SH" = x; then
10864         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SH= (no value)" >&5
10865 $as_echo "$as_me: Setting user supplied tool SH= (no value)" >&6;}
10866         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5
10867 $as_echo_n "checking for SH... " >&6; }
10868         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10869 $as_echo "disabled" >&6; }
10870       else
10871         # Check if the provided tool contains a complete path.
10872         tool_specified="$SH"
10873         tool_basename="${tool_specified##*/}"
10874         if test "x$tool_basename" = "x$tool_specified"; then
10875           # A command without a complete path is provided, search $PATH.
10876           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5
10877 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;}
10878           # Extract the first word of "$tool_basename", so it can be a program name with args.
10879 set dummy $tool_basename; ac_word=$2
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10881 $as_echo_n "checking for $ac_word... " >&6; }
10882 if ${ac_cv_path_SH+:} false; then :
10883   $as_echo_n "(cached) " >&6
10884 else
10885   case $SH in
10886   [\\/]* | ?:[\\/]*)
10887   ac_cv_path_SH="$SH" # Let the user override the test with a path.
10888   ;;
10889   *)
10890   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10891 for as_dir in $PATH
10892 do
10893   IFS=$as_save_IFS
10894   test -z "$as_dir" && as_dir=.
10895     for ac_exec_ext in '' $ac_executable_extensions; do
10896   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10897     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
10898     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10899     break 2
10900   fi
10901 done
10902   done
10903 IFS=$as_save_IFS
10904 
10905   ;;
10906 esac
10907 fi
10908 SH=$ac_cv_path_SH
10909 if test -n "$SH"; then
10910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
10911 $as_echo "$SH" >&6; }
10912 else
10913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10914 $as_echo "no" >&6; }
10915 fi
10916 
10917 
10918           if test "x$SH" = x; then
10919             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10920           fi
10921         else
10922           # Otherwise we believe it is a complete path. Use it as it is.
10923           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5
10924 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;}
10925           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5
10926 $as_echo_n "checking for SH... " >&6; }
10927           if test ! -x "$tool_specified"; then
10928             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10929 $as_echo "not found" >&6; }
10930             as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5
10931           fi
10932           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10933 $as_echo "$tool_specified" >&6; }
10934         fi
10935       fi
10936     fi
10937 
10938   fi
10939 
10940 
10941 
10942   if test "x$SH" = x; then
10943     as_fn_error $? "Could not find required tool for SH" "$LINENO" 5
10944   fi
10945 
10946 
10947 
10948 
10949 
10950   # Publish this variable in the help.
10951 
10952 
10953   if [ -z "${SORT+x}" ]; then
10954     # The variable is not set by user, try to locate tool using the code snippet
10955     for ac_prog in sort
10956 do
10957   # Extract the first word of "$ac_prog", so it can be a program name with args.
10958 set dummy $ac_prog; ac_word=$2
10959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10960 $as_echo_n "checking for $ac_word... " >&6; }
10961 if ${ac_cv_path_SORT+:} false; then :
10962   $as_echo_n "(cached) " >&6
10963 else
10964   case $SORT in
10965   [\\/]* | ?:[\\/]*)
10966   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
10967   ;;
10968   *)
10969   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10970 for as_dir in $PATH
10971 do
10972   IFS=$as_save_IFS
10973   test -z "$as_dir" && as_dir=.
10974     for ac_exec_ext in '' $ac_executable_extensions; do
10975   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10976     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
10977     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10978     break 2
10979   fi
10980 done
10981   done
10982 IFS=$as_save_IFS
10983 
10984   ;;
10985 esac
10986 fi
10987 SORT=$ac_cv_path_SORT
10988 if test -n "$SORT"; then
10989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
10990 $as_echo "$SORT" >&6; }
10991 else
10992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10993 $as_echo "no" >&6; }
10994 fi
10995 
10996 
10997   test -n "$SORT" && break
10998 done
10999 
11000   else
11001     # The variable is set, but is it from the command line or the environment?
11002 
11003     # Try to remove the string !SORT! from our list.
11004     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/}
11005     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11006       # If it failed, the variable was not from the command line. Ignore it,
11007       # but warn the user (except for BASH, which is always set by the calling BASH).
11008       if test "xSORT" != xBASH; then
11009         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5
11010 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;}
11011       fi
11012       # Try to locate tool using the code snippet
11013       for ac_prog in sort
11014 do
11015   # Extract the first word of "$ac_prog", so it can be a program name with args.
11016 set dummy $ac_prog; ac_word=$2
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11018 $as_echo_n "checking for $ac_word... " >&6; }
11019 if ${ac_cv_path_SORT+:} false; then :
11020   $as_echo_n "(cached) " >&6
11021 else
11022   case $SORT in
11023   [\\/]* | ?:[\\/]*)
11024   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
11025   ;;
11026   *)
11027   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11028 for as_dir in $PATH
11029 do
11030   IFS=$as_save_IFS
11031   test -z "$as_dir" && as_dir=.
11032     for ac_exec_ext in '' $ac_executable_extensions; do
11033   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11034     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
11035     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11036     break 2
11037   fi
11038 done
11039   done
11040 IFS=$as_save_IFS
11041 
11042   ;;
11043 esac
11044 fi
11045 SORT=$ac_cv_path_SORT
11046 if test -n "$SORT"; then
11047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
11048 $as_echo "$SORT" >&6; }
11049 else
11050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11051 $as_echo "no" >&6; }
11052 fi
11053 
11054 
11055   test -n "$SORT" && break
11056 done
11057 
11058     else
11059       # If it succeeded, then it was overridden by the user. We will use it
11060       # for the tool.
11061 
11062       # First remove it from the list of overridden variables, so we can test
11063       # for unknown variables in the end.
11064       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11065 
11066       # Check if we try to supply an empty value
11067       if test "x$SORT" = x; then
11068         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SORT= (no value)" >&5
11069 $as_echo "$as_me: Setting user supplied tool SORT= (no value)" >&6;}
11070         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5
11071 $as_echo_n "checking for SORT... " >&6; }
11072         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11073 $as_echo "disabled" >&6; }
11074       else
11075         # Check if the provided tool contains a complete path.
11076         tool_specified="$SORT"
11077         tool_basename="${tool_specified##*/}"
11078         if test "x$tool_basename" = "x$tool_specified"; then
11079           # A command without a complete path is provided, search $PATH.
11080           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5
11081 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;}
11082           # Extract the first word of "$tool_basename", so it can be a program name with args.
11083 set dummy $tool_basename; ac_word=$2
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11085 $as_echo_n "checking for $ac_word... " >&6; }
11086 if ${ac_cv_path_SORT+:} false; then :
11087   $as_echo_n "(cached) " >&6
11088 else
11089   case $SORT in
11090   [\\/]* | ?:[\\/]*)
11091   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
11092   ;;
11093   *)
11094   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11095 for as_dir in $PATH
11096 do
11097   IFS=$as_save_IFS
11098   test -z "$as_dir" && as_dir=.
11099     for ac_exec_ext in '' $ac_executable_extensions; do
11100   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11101     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
11102     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11103     break 2
11104   fi
11105 done
11106   done
11107 IFS=$as_save_IFS
11108 
11109   ;;
11110 esac
11111 fi
11112 SORT=$ac_cv_path_SORT
11113 if test -n "$SORT"; then
11114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
11115 $as_echo "$SORT" >&6; }
11116 else
11117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11118 $as_echo "no" >&6; }
11119 fi
11120 
11121 
11122           if test "x$SORT" = x; then
11123             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11124           fi
11125         else
11126           # Otherwise we believe it is a complete path. Use it as it is.
11127           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5
11128 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;}
11129           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5
11130 $as_echo_n "checking for SORT... " >&6; }
11131           if test ! -x "$tool_specified"; then
11132             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11133 $as_echo "not found" >&6; }
11134             as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5
11135           fi
11136           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11137 $as_echo "$tool_specified" >&6; }
11138         fi
11139       fi
11140     fi
11141 
11142   fi
11143 
11144 
11145 
11146   if test "x$SORT" = x; then
11147     as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5
11148   fi
11149 
11150 
11151 
11152 
11153 
11154   # Publish this variable in the help.
11155 
11156 
11157   if [ -z "${TAIL+x}" ]; then
11158     # The variable is not set by user, try to locate tool using the code snippet
11159     for ac_prog in tail
11160 do
11161   # Extract the first word of "$ac_prog", so it can be a program name with args.
11162 set dummy $ac_prog; ac_word=$2
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11164 $as_echo_n "checking for $ac_word... " >&6; }
11165 if ${ac_cv_path_TAIL+:} false; then :
11166   $as_echo_n "(cached) " >&6
11167 else
11168   case $TAIL in
11169   [\\/]* | ?:[\\/]*)
11170   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
11171   ;;
11172   *)
11173   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11174 for as_dir in $PATH
11175 do
11176   IFS=$as_save_IFS
11177   test -z "$as_dir" && as_dir=.
11178     for ac_exec_ext in '' $ac_executable_extensions; do
11179   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11180     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
11181     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11182     break 2
11183   fi
11184 done
11185   done
11186 IFS=$as_save_IFS
11187 
11188   ;;
11189 esac
11190 fi
11191 TAIL=$ac_cv_path_TAIL
11192 if test -n "$TAIL"; then
11193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
11194 $as_echo "$TAIL" >&6; }
11195 else
11196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11197 $as_echo "no" >&6; }
11198 fi
11199 
11200 
11201   test -n "$TAIL" && break
11202 done
11203 
11204   else
11205     # The variable is set, but is it from the command line or the environment?
11206 
11207     # Try to remove the string !TAIL! from our list.
11208     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/}
11209     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11210       # If it failed, the variable was not from the command line. Ignore it,
11211       # but warn the user (except for BASH, which is always set by the calling BASH).
11212       if test "xTAIL" != xBASH; then
11213         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5
11214 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;}
11215       fi
11216       # Try to locate tool using the code snippet
11217       for ac_prog in tail
11218 do
11219   # Extract the first word of "$ac_prog", so it can be a program name with args.
11220 set dummy $ac_prog; ac_word=$2
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11222 $as_echo_n "checking for $ac_word... " >&6; }
11223 if ${ac_cv_path_TAIL+:} false; then :
11224   $as_echo_n "(cached) " >&6
11225 else
11226   case $TAIL in
11227   [\\/]* | ?:[\\/]*)
11228   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
11229   ;;
11230   *)
11231   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11232 for as_dir in $PATH
11233 do
11234   IFS=$as_save_IFS
11235   test -z "$as_dir" && as_dir=.
11236     for ac_exec_ext in '' $ac_executable_extensions; do
11237   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11238     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
11239     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11240     break 2
11241   fi
11242 done
11243   done
11244 IFS=$as_save_IFS
11245 
11246   ;;
11247 esac
11248 fi
11249 TAIL=$ac_cv_path_TAIL
11250 if test -n "$TAIL"; then
11251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
11252 $as_echo "$TAIL" >&6; }
11253 else
11254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11255 $as_echo "no" >&6; }
11256 fi
11257 
11258 
11259   test -n "$TAIL" && break
11260 done
11261 
11262     else
11263       # If it succeeded, then it was overridden by the user. We will use it
11264       # for the tool.
11265 
11266       # First remove it from the list of overridden variables, so we can test
11267       # for unknown variables in the end.
11268       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11269 
11270       # Check if we try to supply an empty value
11271       if test "x$TAIL" = x; then
11272         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TAIL= (no value)" >&5
11273 $as_echo "$as_me: Setting user supplied tool TAIL= (no value)" >&6;}
11274         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5
11275 $as_echo_n "checking for TAIL... " >&6; }
11276         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11277 $as_echo "disabled" >&6; }
11278       else
11279         # Check if the provided tool contains a complete path.
11280         tool_specified="$TAIL"
11281         tool_basename="${tool_specified##*/}"
11282         if test "x$tool_basename" = "x$tool_specified"; then
11283           # A command without a complete path is provided, search $PATH.
11284           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5
11285 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;}
11286           # Extract the first word of "$tool_basename", so it can be a program name with args.
11287 set dummy $tool_basename; ac_word=$2
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11289 $as_echo_n "checking for $ac_word... " >&6; }
11290 if ${ac_cv_path_TAIL+:} false; then :
11291   $as_echo_n "(cached) " >&6
11292 else
11293   case $TAIL in
11294   [\\/]* | ?:[\\/]*)
11295   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
11296   ;;
11297   *)
11298   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11299 for as_dir in $PATH
11300 do
11301   IFS=$as_save_IFS
11302   test -z "$as_dir" && as_dir=.
11303     for ac_exec_ext in '' $ac_executable_extensions; do
11304   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11305     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
11306     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11307     break 2
11308   fi
11309 done
11310   done
11311 IFS=$as_save_IFS
11312 
11313   ;;
11314 esac
11315 fi
11316 TAIL=$ac_cv_path_TAIL
11317 if test -n "$TAIL"; then
11318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
11319 $as_echo "$TAIL" >&6; }
11320 else
11321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11322 $as_echo "no" >&6; }
11323 fi
11324 
11325 
11326           if test "x$TAIL" = x; then
11327             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11328           fi
11329         else
11330           # Otherwise we believe it is a complete path. Use it as it is.
11331           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5
11332 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;}
11333           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5
11334 $as_echo_n "checking for TAIL... " >&6; }
11335           if test ! -x "$tool_specified"; then
11336             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11337 $as_echo "not found" >&6; }
11338             as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5
11339           fi
11340           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11341 $as_echo "$tool_specified" >&6; }
11342         fi
11343       fi
11344     fi
11345 
11346   fi
11347 
11348 
11349 
11350   if test "x$TAIL" = x; then
11351     as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5
11352   fi
11353 
11354 
11355 
11356 
11357 
11358   # Publish this variable in the help.
11359 
11360 
11361   if [ -z "${TAR+x}" ]; then
11362     # The variable is not set by user, try to locate tool using the code snippet
11363     for ac_prog in gtar tar
11364 do
11365   # Extract the first word of "$ac_prog", so it can be a program name with args.
11366 set dummy $ac_prog; ac_word=$2
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11368 $as_echo_n "checking for $ac_word... " >&6; }
11369 if ${ac_cv_path_TAR+:} false; then :
11370   $as_echo_n "(cached) " >&6
11371 else
11372   case $TAR in
11373   [\\/]* | ?:[\\/]*)
11374   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
11375   ;;
11376   *)
11377   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11378 for as_dir in $PATH
11379 do
11380   IFS=$as_save_IFS
11381   test -z "$as_dir" && as_dir=.
11382     for ac_exec_ext in '' $ac_executable_extensions; do
11383   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11384     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
11385     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11386     break 2
11387   fi
11388 done
11389   done
11390 IFS=$as_save_IFS
11391 
11392   ;;
11393 esac
11394 fi
11395 TAR=$ac_cv_path_TAR
11396 if test -n "$TAR"; then
11397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
11398 $as_echo "$TAR" >&6; }
11399 else
11400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11401 $as_echo "no" >&6; }
11402 fi
11403 
11404 
11405   test -n "$TAR" && break
11406 done
11407 
11408   else
11409     # The variable is set, but is it from the command line or the environment?
11410 
11411     # Try to remove the string !TAR! from our list.
11412     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/}
11413     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11414       # If it failed, the variable was not from the command line. Ignore it,
11415       # but warn the user (except for BASH, which is always set by the calling BASH).
11416       if test "xTAR" != xBASH; then
11417         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5
11418 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;}
11419       fi
11420       # Try to locate tool using the code snippet
11421       for ac_prog in gtar tar
11422 do
11423   # Extract the first word of "$ac_prog", so it can be a program name with args.
11424 set dummy $ac_prog; ac_word=$2
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11426 $as_echo_n "checking for $ac_word... " >&6; }
11427 if ${ac_cv_path_TAR+:} false; then :
11428   $as_echo_n "(cached) " >&6
11429 else
11430   case $TAR in
11431   [\\/]* | ?:[\\/]*)
11432   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
11433   ;;
11434   *)
11435   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11436 for as_dir in $PATH
11437 do
11438   IFS=$as_save_IFS
11439   test -z "$as_dir" && as_dir=.
11440     for ac_exec_ext in '' $ac_executable_extensions; do
11441   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11442     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
11443     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11444     break 2
11445   fi
11446 done
11447   done
11448 IFS=$as_save_IFS
11449 
11450   ;;
11451 esac
11452 fi
11453 TAR=$ac_cv_path_TAR
11454 if test -n "$TAR"; then
11455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
11456 $as_echo "$TAR" >&6; }
11457 else
11458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11459 $as_echo "no" >&6; }
11460 fi
11461 
11462 
11463   test -n "$TAR" && break
11464 done
11465 
11466     else
11467       # If it succeeded, then it was overridden by the user. We will use it
11468       # for the tool.
11469 
11470       # First remove it from the list of overridden variables, so we can test
11471       # for unknown variables in the end.
11472       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11473 
11474       # Check if we try to supply an empty value
11475       if test "x$TAR" = x; then
11476         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TAR= (no value)" >&5
11477 $as_echo "$as_me: Setting user supplied tool TAR= (no value)" >&6;}
11478         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
11479 $as_echo_n "checking for TAR... " >&6; }
11480         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11481 $as_echo "disabled" >&6; }
11482       else
11483         # Check if the provided tool contains a complete path.
11484         tool_specified="$TAR"
11485         tool_basename="${tool_specified##*/}"
11486         if test "x$tool_basename" = "x$tool_specified"; then
11487           # A command without a complete path is provided, search $PATH.
11488           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5
11489 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;}
11490           # Extract the first word of "$tool_basename", so it can be a program name with args.
11491 set dummy $tool_basename; ac_word=$2
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11493 $as_echo_n "checking for $ac_word... " >&6; }
11494 if ${ac_cv_path_TAR+:} false; then :
11495   $as_echo_n "(cached) " >&6
11496 else
11497   case $TAR in
11498   [\\/]* | ?:[\\/]*)
11499   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
11500   ;;
11501   *)
11502   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11503 for as_dir in $PATH
11504 do
11505   IFS=$as_save_IFS
11506   test -z "$as_dir" && as_dir=.
11507     for ac_exec_ext in '' $ac_executable_extensions; do
11508   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11509     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
11510     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11511     break 2
11512   fi
11513 done
11514   done
11515 IFS=$as_save_IFS
11516 
11517   ;;
11518 esac
11519 fi
11520 TAR=$ac_cv_path_TAR
11521 if test -n "$TAR"; then
11522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
11523 $as_echo "$TAR" >&6; }
11524 else
11525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11526 $as_echo "no" >&6; }
11527 fi
11528 
11529 
11530           if test "x$TAR" = x; then
11531             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11532           fi
11533         else
11534           # Otherwise we believe it is a complete path. Use it as it is.
11535           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5
11536 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;}
11537           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
11538 $as_echo_n "checking for TAR... " >&6; }
11539           if test ! -x "$tool_specified"; then
11540             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11541 $as_echo "not found" >&6; }
11542             as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5
11543           fi
11544           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11545 $as_echo "$tool_specified" >&6; }
11546         fi
11547       fi
11548     fi
11549 
11550   fi
11551 
11552 
11553 
11554   if test "x$TAR" = x; then
11555     as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5
11556   fi
11557 
11558 
11559 
11560 
11561 
11562   # Publish this variable in the help.
11563 
11564 
11565   if [ -z "${TEE+x}" ]; then
11566     # The variable is not set by user, try to locate tool using the code snippet
11567     for ac_prog in tee
11568 do
11569   # Extract the first word of "$ac_prog", so it can be a program name with args.
11570 set dummy $ac_prog; ac_word=$2
11571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11572 $as_echo_n "checking for $ac_word... " >&6; }
11573 if ${ac_cv_path_TEE+:} false; then :
11574   $as_echo_n "(cached) " >&6
11575 else
11576   case $TEE in
11577   [\\/]* | ?:[\\/]*)
11578   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
11579   ;;
11580   *)
11581   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11582 for as_dir in $PATH
11583 do
11584   IFS=$as_save_IFS
11585   test -z "$as_dir" && as_dir=.
11586     for ac_exec_ext in '' $ac_executable_extensions; do
11587   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11588     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
11589     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11590     break 2
11591   fi
11592 done
11593   done
11594 IFS=$as_save_IFS
11595 
11596   ;;
11597 esac
11598 fi
11599 TEE=$ac_cv_path_TEE
11600 if test -n "$TEE"; then
11601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
11602 $as_echo "$TEE" >&6; }
11603 else
11604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11605 $as_echo "no" >&6; }
11606 fi
11607 
11608 
11609   test -n "$TEE" && break
11610 done
11611 
11612   else
11613     # The variable is set, but is it from the command line or the environment?
11614 
11615     # Try to remove the string !TEE! from our list.
11616     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/}
11617     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11618       # If it failed, the variable was not from the command line. Ignore it,
11619       # but warn the user (except for BASH, which is always set by the calling BASH).
11620       if test "xTEE" != xBASH; then
11621         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5
11622 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;}
11623       fi
11624       # Try to locate tool using the code snippet
11625       for ac_prog in tee
11626 do
11627   # Extract the first word of "$ac_prog", so it can be a program name with args.
11628 set dummy $ac_prog; ac_word=$2
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11630 $as_echo_n "checking for $ac_word... " >&6; }
11631 if ${ac_cv_path_TEE+:} false; then :
11632   $as_echo_n "(cached) " >&6
11633 else
11634   case $TEE in
11635   [\\/]* | ?:[\\/]*)
11636   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
11637   ;;
11638   *)
11639   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11640 for as_dir in $PATH
11641 do
11642   IFS=$as_save_IFS
11643   test -z "$as_dir" && as_dir=.
11644     for ac_exec_ext in '' $ac_executable_extensions; do
11645   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11646     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
11647     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11648     break 2
11649   fi
11650 done
11651   done
11652 IFS=$as_save_IFS
11653 
11654   ;;
11655 esac
11656 fi
11657 TEE=$ac_cv_path_TEE
11658 if test -n "$TEE"; then
11659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
11660 $as_echo "$TEE" >&6; }
11661 else
11662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11663 $as_echo "no" >&6; }
11664 fi
11665 
11666 
11667   test -n "$TEE" && break
11668 done
11669 
11670     else
11671       # If it succeeded, then it was overridden by the user. We will use it
11672       # for the tool.
11673 
11674       # First remove it from the list of overridden variables, so we can test
11675       # for unknown variables in the end.
11676       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11677 
11678       # Check if we try to supply an empty value
11679       if test "x$TEE" = x; then
11680         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TEE= (no value)" >&5
11681 $as_echo "$as_me: Setting user supplied tool TEE= (no value)" >&6;}
11682         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5
11683 $as_echo_n "checking for TEE... " >&6; }
11684         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11685 $as_echo "disabled" >&6; }
11686       else
11687         # Check if the provided tool contains a complete path.
11688         tool_specified="$TEE"
11689         tool_basename="${tool_specified##*/}"
11690         if test "x$tool_basename" = "x$tool_specified"; then
11691           # A command without a complete path is provided, search $PATH.
11692           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5
11693 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;}
11694           # Extract the first word of "$tool_basename", so it can be a program name with args.
11695 set dummy $tool_basename; ac_word=$2
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11697 $as_echo_n "checking for $ac_word... " >&6; }
11698 if ${ac_cv_path_TEE+:} false; then :
11699   $as_echo_n "(cached) " >&6
11700 else
11701   case $TEE in
11702   [\\/]* | ?:[\\/]*)
11703   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
11704   ;;
11705   *)
11706   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11707 for as_dir in $PATH
11708 do
11709   IFS=$as_save_IFS
11710   test -z "$as_dir" && as_dir=.
11711     for ac_exec_ext in '' $ac_executable_extensions; do
11712   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11713     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
11714     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11715     break 2
11716   fi
11717 done
11718   done
11719 IFS=$as_save_IFS
11720 
11721   ;;
11722 esac
11723 fi
11724 TEE=$ac_cv_path_TEE
11725 if test -n "$TEE"; then
11726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
11727 $as_echo "$TEE" >&6; }
11728 else
11729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11730 $as_echo "no" >&6; }
11731 fi
11732 
11733 
11734           if test "x$TEE" = x; then
11735             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11736           fi
11737         else
11738           # Otherwise we believe it is a complete path. Use it as it is.
11739           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5
11740 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;}
11741           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5
11742 $as_echo_n "checking for TEE... " >&6; }
11743           if test ! -x "$tool_specified"; then
11744             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11745 $as_echo "not found" >&6; }
11746             as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5
11747           fi
11748           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11749 $as_echo "$tool_specified" >&6; }
11750         fi
11751       fi
11752     fi
11753 
11754   fi
11755 
11756 
11757 
11758   if test "x$TEE" = x; then
11759     as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5
11760   fi
11761 
11762 
11763 
11764 
11765 
11766   # Publish this variable in the help.
11767 
11768 
11769   if [ -z "${TOUCH+x}" ]; then
11770     # The variable is not set by user, try to locate tool using the code snippet
11771     for ac_prog in touch
11772 do
11773   # Extract the first word of "$ac_prog", so it can be a program name with args.
11774 set dummy $ac_prog; ac_word=$2
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11776 $as_echo_n "checking for $ac_word... " >&6; }
11777 if ${ac_cv_path_TOUCH+:} false; then :
11778   $as_echo_n "(cached) " >&6
11779 else
11780   case $TOUCH in
11781   [\\/]* | ?:[\\/]*)
11782   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
11783   ;;
11784   *)
11785   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11786 for as_dir in $PATH
11787 do
11788   IFS=$as_save_IFS
11789   test -z "$as_dir" && as_dir=.
11790     for ac_exec_ext in '' $ac_executable_extensions; do
11791   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11792     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
11793     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11794     break 2
11795   fi
11796 done
11797   done
11798 IFS=$as_save_IFS
11799 
11800   ;;
11801 esac
11802 fi
11803 TOUCH=$ac_cv_path_TOUCH
11804 if test -n "$TOUCH"; then
11805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
11806 $as_echo "$TOUCH" >&6; }
11807 else
11808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11809 $as_echo "no" >&6; }
11810 fi
11811 
11812 
11813   test -n "$TOUCH" && break
11814 done
11815 
11816   else
11817     # The variable is set, but is it from the command line or the environment?
11818 
11819     # Try to remove the string !TOUCH! from our list.
11820     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/}
11821     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11822       # If it failed, the variable was not from the command line. Ignore it,
11823       # but warn the user (except for BASH, which is always set by the calling BASH).
11824       if test "xTOUCH" != xBASH; then
11825         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5
11826 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;}
11827       fi
11828       # Try to locate tool using the code snippet
11829       for ac_prog in touch
11830 do
11831   # Extract the first word of "$ac_prog", so it can be a program name with args.
11832 set dummy $ac_prog; ac_word=$2
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11834 $as_echo_n "checking for $ac_word... " >&6; }
11835 if ${ac_cv_path_TOUCH+:} false; then :
11836   $as_echo_n "(cached) " >&6
11837 else
11838   case $TOUCH in
11839   [\\/]* | ?:[\\/]*)
11840   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
11841   ;;
11842   *)
11843   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11844 for as_dir in $PATH
11845 do
11846   IFS=$as_save_IFS
11847   test -z "$as_dir" && as_dir=.
11848     for ac_exec_ext in '' $ac_executable_extensions; do
11849   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11850     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
11851     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11852     break 2
11853   fi
11854 done
11855   done
11856 IFS=$as_save_IFS
11857 
11858   ;;
11859 esac
11860 fi
11861 TOUCH=$ac_cv_path_TOUCH
11862 if test -n "$TOUCH"; then
11863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
11864 $as_echo "$TOUCH" >&6; }
11865 else
11866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11867 $as_echo "no" >&6; }
11868 fi
11869 
11870 
11871   test -n "$TOUCH" && break
11872 done
11873 
11874     else
11875       # If it succeeded, then it was overridden by the user. We will use it
11876       # for the tool.
11877 
11878       # First remove it from the list of overridden variables, so we can test
11879       # for unknown variables in the end.
11880       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11881 
11882       # Check if we try to supply an empty value
11883       if test "x$TOUCH" = x; then
11884         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TOUCH= (no value)" >&5
11885 $as_echo "$as_me: Setting user supplied tool TOUCH= (no value)" >&6;}
11886         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5
11887 $as_echo_n "checking for TOUCH... " >&6; }
11888         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11889 $as_echo "disabled" >&6; }
11890       else
11891         # Check if the provided tool contains a complete path.
11892         tool_specified="$TOUCH"
11893         tool_basename="${tool_specified##*/}"
11894         if test "x$tool_basename" = "x$tool_specified"; then
11895           # A command without a complete path is provided, search $PATH.
11896           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5
11897 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;}
11898           # Extract the first word of "$tool_basename", so it can be a program name with args.
11899 set dummy $tool_basename; ac_word=$2
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11901 $as_echo_n "checking for $ac_word... " >&6; }
11902 if ${ac_cv_path_TOUCH+:} false; then :
11903   $as_echo_n "(cached) " >&6
11904 else
11905   case $TOUCH in
11906   [\\/]* | ?:[\\/]*)
11907   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
11908   ;;
11909   *)
11910   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11911 for as_dir in $PATH
11912 do
11913   IFS=$as_save_IFS
11914   test -z "$as_dir" && as_dir=.
11915     for ac_exec_ext in '' $ac_executable_extensions; do
11916   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11917     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
11918     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11919     break 2
11920   fi
11921 done
11922   done
11923 IFS=$as_save_IFS
11924 
11925   ;;
11926 esac
11927 fi
11928 TOUCH=$ac_cv_path_TOUCH
11929 if test -n "$TOUCH"; then
11930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
11931 $as_echo "$TOUCH" >&6; }
11932 else
11933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11934 $as_echo "no" >&6; }
11935 fi
11936 
11937 
11938           if test "x$TOUCH" = x; then
11939             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11940           fi
11941         else
11942           # Otherwise we believe it is a complete path. Use it as it is.
11943           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5
11944 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;}
11945           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5
11946 $as_echo_n "checking for TOUCH... " >&6; }
11947           if test ! -x "$tool_specified"; then
11948             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11949 $as_echo "not found" >&6; }
11950             as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5
11951           fi
11952           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11953 $as_echo "$tool_specified" >&6; }
11954         fi
11955       fi
11956     fi
11957 
11958   fi
11959 
11960 
11961 
11962   if test "x$TOUCH" = x; then
11963     as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5
11964   fi
11965 
11966 
11967 
11968 
11969 
11970   # Publish this variable in the help.
11971 
11972 
11973   if [ -z "${TR+x}" ]; then
11974     # The variable is not set by user, try to locate tool using the code snippet
11975     for ac_prog in tr
11976 do
11977   # Extract the first word of "$ac_prog", so it can be a program name with args.
11978 set dummy $ac_prog; ac_word=$2
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11980 $as_echo_n "checking for $ac_word... " >&6; }
11981 if ${ac_cv_path_TR+:} false; then :
11982   $as_echo_n "(cached) " >&6
11983 else
11984   case $TR in
11985   [\\/]* | ?:[\\/]*)
11986   ac_cv_path_TR="$TR" # Let the user override the test with a path.
11987   ;;
11988   *)
11989   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11990 for as_dir in $PATH
11991 do
11992   IFS=$as_save_IFS
11993   test -z "$as_dir" && as_dir=.
11994     for ac_exec_ext in '' $ac_executable_extensions; do
11995   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11996     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
11997     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11998     break 2
11999   fi
12000 done
12001   done
12002 IFS=$as_save_IFS
12003 
12004   ;;
12005 esac
12006 fi
12007 TR=$ac_cv_path_TR
12008 if test -n "$TR"; then
12009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
12010 $as_echo "$TR" >&6; }
12011 else
12012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12013 $as_echo "no" >&6; }
12014 fi
12015 
12016 
12017   test -n "$TR" && break
12018 done
12019 
12020   else
12021     # The variable is set, but is it from the command line or the environment?
12022 
12023     # Try to remove the string !TR! from our list.
12024     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/}
12025     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12026       # If it failed, the variable was not from the command line. Ignore it,
12027       # but warn the user (except for BASH, which is always set by the calling BASH).
12028       if test "xTR" != xBASH; then
12029         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5
12030 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;}
12031       fi
12032       # Try to locate tool using the code snippet
12033       for ac_prog in tr
12034 do
12035   # Extract the first word of "$ac_prog", so it can be a program name with args.
12036 set dummy $ac_prog; ac_word=$2
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12038 $as_echo_n "checking for $ac_word... " >&6; }
12039 if ${ac_cv_path_TR+:} false; then :
12040   $as_echo_n "(cached) " >&6
12041 else
12042   case $TR in
12043   [\\/]* | ?:[\\/]*)
12044   ac_cv_path_TR="$TR" # Let the user override the test with a path.
12045   ;;
12046   *)
12047   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12048 for as_dir in $PATH
12049 do
12050   IFS=$as_save_IFS
12051   test -z "$as_dir" && as_dir=.
12052     for ac_exec_ext in '' $ac_executable_extensions; do
12053   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12054     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
12055     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12056     break 2
12057   fi
12058 done
12059   done
12060 IFS=$as_save_IFS
12061 
12062   ;;
12063 esac
12064 fi
12065 TR=$ac_cv_path_TR
12066 if test -n "$TR"; then
12067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
12068 $as_echo "$TR" >&6; }
12069 else
12070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12071 $as_echo "no" >&6; }
12072 fi
12073 
12074 
12075   test -n "$TR" && break
12076 done
12077 
12078     else
12079       # If it succeeded, then it was overridden by the user. We will use it
12080       # for the tool.
12081 
12082       # First remove it from the list of overridden variables, so we can test
12083       # for unknown variables in the end.
12084       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12085 
12086       # Check if we try to supply an empty value
12087       if test "x$TR" = x; then
12088         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TR= (no value)" >&5
12089 $as_echo "$as_me: Setting user supplied tool TR= (no value)" >&6;}
12090         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5
12091 $as_echo_n "checking for TR... " >&6; }
12092         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12093 $as_echo "disabled" >&6; }
12094       else
12095         # Check if the provided tool contains a complete path.
12096         tool_specified="$TR"
12097         tool_basename="${tool_specified##*/}"
12098         if test "x$tool_basename" = "x$tool_specified"; then
12099           # A command without a complete path is provided, search $PATH.
12100           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5
12101 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;}
12102           # Extract the first word of "$tool_basename", so it can be a program name with args.
12103 set dummy $tool_basename; ac_word=$2
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12105 $as_echo_n "checking for $ac_word... " >&6; }
12106 if ${ac_cv_path_TR+:} false; then :
12107   $as_echo_n "(cached) " >&6
12108 else
12109   case $TR in
12110   [\\/]* | ?:[\\/]*)
12111   ac_cv_path_TR="$TR" # Let the user override the test with a path.
12112   ;;
12113   *)
12114   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12115 for as_dir in $PATH
12116 do
12117   IFS=$as_save_IFS
12118   test -z "$as_dir" && as_dir=.
12119     for ac_exec_ext in '' $ac_executable_extensions; do
12120   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12121     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
12122     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12123     break 2
12124   fi
12125 done
12126   done
12127 IFS=$as_save_IFS
12128 
12129   ;;
12130 esac
12131 fi
12132 TR=$ac_cv_path_TR
12133 if test -n "$TR"; then
12134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
12135 $as_echo "$TR" >&6; }
12136 else
12137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12138 $as_echo "no" >&6; }
12139 fi
12140 
12141 
12142           if test "x$TR" = x; then
12143             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12144           fi
12145         else
12146           # Otherwise we believe it is a complete path. Use it as it is.
12147           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5
12148 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;}
12149           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5
12150 $as_echo_n "checking for TR... " >&6; }
12151           if test ! -x "$tool_specified"; then
12152             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12153 $as_echo "not found" >&6; }
12154             as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5
12155           fi
12156           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12157 $as_echo "$tool_specified" >&6; }
12158         fi
12159       fi
12160     fi
12161 
12162   fi
12163 
12164 
12165 
12166   if test "x$TR" = x; then
12167     as_fn_error $? "Could not find required tool for TR" "$LINENO" 5
12168   fi
12169 
12170 
12171 
12172 
12173 
12174   # Publish this variable in the help.
12175 
12176 
12177   if [ -z "${UNAME+x}" ]; then
12178     # The variable is not set by user, try to locate tool using the code snippet
12179     for ac_prog in uname
12180 do
12181   # Extract the first word of "$ac_prog", so it can be a program name with args.
12182 set dummy $ac_prog; ac_word=$2
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12184 $as_echo_n "checking for $ac_word... " >&6; }
12185 if ${ac_cv_path_UNAME+:} false; then :
12186   $as_echo_n "(cached) " >&6
12187 else
12188   case $UNAME in
12189   [\\/]* | ?:[\\/]*)
12190   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
12191   ;;
12192   *)
12193   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12194 for as_dir in $PATH
12195 do
12196   IFS=$as_save_IFS
12197   test -z "$as_dir" && as_dir=.
12198     for ac_exec_ext in '' $ac_executable_extensions; do
12199   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12200     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
12201     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12202     break 2
12203   fi
12204 done
12205   done
12206 IFS=$as_save_IFS
12207 
12208   ;;
12209 esac
12210 fi
12211 UNAME=$ac_cv_path_UNAME
12212 if test -n "$UNAME"; then
12213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
12214 $as_echo "$UNAME" >&6; }
12215 else
12216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12217 $as_echo "no" >&6; }
12218 fi
12219 
12220 
12221   test -n "$UNAME" && break
12222 done
12223 
12224   else
12225     # The variable is set, but is it from the command line or the environment?
12226 
12227     # Try to remove the string !UNAME! from our list.
12228     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/}
12229     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12230       # If it failed, the variable was not from the command line. Ignore it,
12231       # but warn the user (except for BASH, which is always set by the calling BASH).
12232       if test "xUNAME" != xBASH; then
12233         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5
12234 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;}
12235       fi
12236       # Try to locate tool using the code snippet
12237       for ac_prog in uname
12238 do
12239   # Extract the first word of "$ac_prog", so it can be a program name with args.
12240 set dummy $ac_prog; ac_word=$2
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12242 $as_echo_n "checking for $ac_word... " >&6; }
12243 if ${ac_cv_path_UNAME+:} false; then :
12244   $as_echo_n "(cached) " >&6
12245 else
12246   case $UNAME in
12247   [\\/]* | ?:[\\/]*)
12248   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
12249   ;;
12250   *)
12251   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12252 for as_dir in $PATH
12253 do
12254   IFS=$as_save_IFS
12255   test -z "$as_dir" && as_dir=.
12256     for ac_exec_ext in '' $ac_executable_extensions; do
12257   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12258     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
12259     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12260     break 2
12261   fi
12262 done
12263   done
12264 IFS=$as_save_IFS
12265 
12266   ;;
12267 esac
12268 fi
12269 UNAME=$ac_cv_path_UNAME
12270 if test -n "$UNAME"; then
12271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
12272 $as_echo "$UNAME" >&6; }
12273 else
12274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12275 $as_echo "no" >&6; }
12276 fi
12277 
12278 
12279   test -n "$UNAME" && break
12280 done
12281 
12282     else
12283       # If it succeeded, then it was overridden by the user. We will use it
12284       # for the tool.
12285 
12286       # First remove it from the list of overridden variables, so we can test
12287       # for unknown variables in the end.
12288       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12289 
12290       # Check if we try to supply an empty value
12291       if test "x$UNAME" = x; then
12292         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNAME= (no value)" >&5
12293 $as_echo "$as_me: Setting user supplied tool UNAME= (no value)" >&6;}
12294         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5
12295 $as_echo_n "checking for UNAME... " >&6; }
12296         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12297 $as_echo "disabled" >&6; }
12298       else
12299         # Check if the provided tool contains a complete path.
12300         tool_specified="$UNAME"
12301         tool_basename="${tool_specified##*/}"
12302         if test "x$tool_basename" = "x$tool_specified"; then
12303           # A command without a complete path is provided, search $PATH.
12304           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5
12305 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;}
12306           # Extract the first word of "$tool_basename", so it can be a program name with args.
12307 set dummy $tool_basename; ac_word=$2
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12309 $as_echo_n "checking for $ac_word... " >&6; }
12310 if ${ac_cv_path_UNAME+:} false; then :
12311   $as_echo_n "(cached) " >&6
12312 else
12313   case $UNAME in
12314   [\\/]* | ?:[\\/]*)
12315   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
12316   ;;
12317   *)
12318   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12319 for as_dir in $PATH
12320 do
12321   IFS=$as_save_IFS
12322   test -z "$as_dir" && as_dir=.
12323     for ac_exec_ext in '' $ac_executable_extensions; do
12324   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12325     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
12326     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12327     break 2
12328   fi
12329 done
12330   done
12331 IFS=$as_save_IFS
12332 
12333   ;;
12334 esac
12335 fi
12336 UNAME=$ac_cv_path_UNAME
12337 if test -n "$UNAME"; then
12338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
12339 $as_echo "$UNAME" >&6; }
12340 else
12341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12342 $as_echo "no" >&6; }
12343 fi
12344 
12345 
12346           if test "x$UNAME" = x; then
12347             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12348           fi
12349         else
12350           # Otherwise we believe it is a complete path. Use it as it is.
12351           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5
12352 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;}
12353           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5
12354 $as_echo_n "checking for UNAME... " >&6; }
12355           if test ! -x "$tool_specified"; then
12356             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12357 $as_echo "not found" >&6; }
12358             as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
12359           fi
12360           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12361 $as_echo "$tool_specified" >&6; }
12362         fi
12363       fi
12364     fi
12365 
12366   fi
12367 
12368 
12369 
12370   if test "x$UNAME" = x; then
12371     as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5
12372   fi
12373 
12374 
12375 
12376 
12377 
12378   # Publish this variable in the help.
12379 
12380 
12381   if [ -z "${UNIQ+x}" ]; then
12382     # The variable is not set by user, try to locate tool using the code snippet
12383     for ac_prog in uniq
12384 do
12385   # Extract the first word of "$ac_prog", so it can be a program name with args.
12386 set dummy $ac_prog; ac_word=$2
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12388 $as_echo_n "checking for $ac_word... " >&6; }
12389 if ${ac_cv_path_UNIQ+:} false; then :
12390   $as_echo_n "(cached) " >&6
12391 else
12392   case $UNIQ in
12393   [\\/]* | ?:[\\/]*)
12394   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
12395   ;;
12396   *)
12397   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12398 for as_dir in $PATH
12399 do
12400   IFS=$as_save_IFS
12401   test -z "$as_dir" && as_dir=.
12402     for ac_exec_ext in '' $ac_executable_extensions; do
12403   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12404     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
12405     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12406     break 2
12407   fi
12408 done
12409   done
12410 IFS=$as_save_IFS
12411 
12412   ;;
12413 esac
12414 fi
12415 UNIQ=$ac_cv_path_UNIQ
12416 if test -n "$UNIQ"; then
12417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
12418 $as_echo "$UNIQ" >&6; }
12419 else
12420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12421 $as_echo "no" >&6; }
12422 fi
12423 
12424 
12425   test -n "$UNIQ" && break
12426 done
12427 
12428   else
12429     # The variable is set, but is it from the command line or the environment?
12430 
12431     # Try to remove the string !UNIQ! from our list.
12432     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/}
12433     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12434       # If it failed, the variable was not from the command line. Ignore it,
12435       # but warn the user (except for BASH, which is always set by the calling BASH).
12436       if test "xUNIQ" != xBASH; then
12437         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5
12438 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;}
12439       fi
12440       # Try to locate tool using the code snippet
12441       for ac_prog in uniq
12442 do
12443   # Extract the first word of "$ac_prog", so it can be a program name with args.
12444 set dummy $ac_prog; ac_word=$2
12445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12446 $as_echo_n "checking for $ac_word... " >&6; }
12447 if ${ac_cv_path_UNIQ+:} false; then :
12448   $as_echo_n "(cached) " >&6
12449 else
12450   case $UNIQ in
12451   [\\/]* | ?:[\\/]*)
12452   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
12453   ;;
12454   *)
12455   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12456 for as_dir in $PATH
12457 do
12458   IFS=$as_save_IFS
12459   test -z "$as_dir" && as_dir=.
12460     for ac_exec_ext in '' $ac_executable_extensions; do
12461   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12462     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
12463     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12464     break 2
12465   fi
12466 done
12467   done
12468 IFS=$as_save_IFS
12469 
12470   ;;
12471 esac
12472 fi
12473 UNIQ=$ac_cv_path_UNIQ
12474 if test -n "$UNIQ"; then
12475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
12476 $as_echo "$UNIQ" >&6; }
12477 else
12478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12479 $as_echo "no" >&6; }
12480 fi
12481 
12482 
12483   test -n "$UNIQ" && break
12484 done
12485 
12486     else
12487       # If it succeeded, then it was overridden by the user. We will use it
12488       # for the tool.
12489 
12490       # First remove it from the list of overridden variables, so we can test
12491       # for unknown variables in the end.
12492       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12493 
12494       # Check if we try to supply an empty value
12495       if test "x$UNIQ" = x; then
12496         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNIQ= (no value)" >&5
12497 $as_echo "$as_me: Setting user supplied tool UNIQ= (no value)" >&6;}
12498         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5
12499 $as_echo_n "checking for UNIQ... " >&6; }
12500         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12501 $as_echo "disabled" >&6; }
12502       else
12503         # Check if the provided tool contains a complete path.
12504         tool_specified="$UNIQ"
12505         tool_basename="${tool_specified##*/}"
12506         if test "x$tool_basename" = "x$tool_specified"; then
12507           # A command without a complete path is provided, search $PATH.
12508           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5
12509 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;}
12510           # Extract the first word of "$tool_basename", so it can be a program name with args.
12511 set dummy $tool_basename; ac_word=$2
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12513 $as_echo_n "checking for $ac_word... " >&6; }
12514 if ${ac_cv_path_UNIQ+:} false; then :
12515   $as_echo_n "(cached) " >&6
12516 else
12517   case $UNIQ in
12518   [\\/]* | ?:[\\/]*)
12519   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
12520   ;;
12521   *)
12522   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12523 for as_dir in $PATH
12524 do
12525   IFS=$as_save_IFS
12526   test -z "$as_dir" && as_dir=.
12527     for ac_exec_ext in '' $ac_executable_extensions; do
12528   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12529     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
12530     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12531     break 2
12532   fi
12533 done
12534   done
12535 IFS=$as_save_IFS
12536 
12537   ;;
12538 esac
12539 fi
12540 UNIQ=$ac_cv_path_UNIQ
12541 if test -n "$UNIQ"; then
12542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
12543 $as_echo "$UNIQ" >&6; }
12544 else
12545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12546 $as_echo "no" >&6; }
12547 fi
12548 
12549 
12550           if test "x$UNIQ" = x; then
12551             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12552           fi
12553         else
12554           # Otherwise we believe it is a complete path. Use it as it is.
12555           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5
12556 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;}
12557           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5
12558 $as_echo_n "checking for UNIQ... " >&6; }
12559           if test ! -x "$tool_specified"; then
12560             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12561 $as_echo "not found" >&6; }
12562             as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5
12563           fi
12564           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12565 $as_echo "$tool_specified" >&6; }
12566         fi
12567       fi
12568     fi
12569 
12570   fi
12571 
12572 
12573 
12574   if test "x$UNIQ" = x; then
12575     as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5
12576   fi
12577 
12578 
12579 
12580 
12581 
12582   # Publish this variable in the help.
12583 
12584 
12585   if [ -z "${WC+x}" ]; then
12586     # The variable is not set by user, try to locate tool using the code snippet
12587     for ac_prog in wc
12588 do
12589   # Extract the first word of "$ac_prog", so it can be a program name with args.
12590 set dummy $ac_prog; ac_word=$2
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12592 $as_echo_n "checking for $ac_word... " >&6; }
12593 if ${ac_cv_path_WC+:} false; then :
12594   $as_echo_n "(cached) " >&6
12595 else
12596   case $WC in
12597   [\\/]* | ?:[\\/]*)
12598   ac_cv_path_WC="$WC" # Let the user override the test with a path.
12599   ;;
12600   *)
12601   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12602 for as_dir in $PATH
12603 do
12604   IFS=$as_save_IFS
12605   test -z "$as_dir" && as_dir=.
12606     for ac_exec_ext in '' $ac_executable_extensions; do
12607   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12608     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
12609     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12610     break 2
12611   fi
12612 done
12613   done
12614 IFS=$as_save_IFS
12615 
12616   ;;
12617 esac
12618 fi
12619 WC=$ac_cv_path_WC
12620 if test -n "$WC"; then
12621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
12622 $as_echo "$WC" >&6; }
12623 else
12624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12625 $as_echo "no" >&6; }
12626 fi
12627 
12628 
12629   test -n "$WC" && break
12630 done
12631 
12632   else
12633     # The variable is set, but is it from the command line or the environment?
12634 
12635     # Try to remove the string !WC! from our list.
12636     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/}
12637     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12638       # If it failed, the variable was not from the command line. Ignore it,
12639       # but warn the user (except for BASH, which is always set by the calling BASH).
12640       if test "xWC" != xBASH; then
12641         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5
12642 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;}
12643       fi
12644       # Try to locate tool using the code snippet
12645       for ac_prog in wc
12646 do
12647   # Extract the first word of "$ac_prog", so it can be a program name with args.
12648 set dummy $ac_prog; ac_word=$2
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12650 $as_echo_n "checking for $ac_word... " >&6; }
12651 if ${ac_cv_path_WC+:} false; then :
12652   $as_echo_n "(cached) " >&6
12653 else
12654   case $WC in
12655   [\\/]* | ?:[\\/]*)
12656   ac_cv_path_WC="$WC" # Let the user override the test with a path.
12657   ;;
12658   *)
12659   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12660 for as_dir in $PATH
12661 do
12662   IFS=$as_save_IFS
12663   test -z "$as_dir" && as_dir=.
12664     for ac_exec_ext in '' $ac_executable_extensions; do
12665   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12666     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
12667     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12668     break 2
12669   fi
12670 done
12671   done
12672 IFS=$as_save_IFS
12673 
12674   ;;
12675 esac
12676 fi
12677 WC=$ac_cv_path_WC
12678 if test -n "$WC"; then
12679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
12680 $as_echo "$WC" >&6; }
12681 else
12682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12683 $as_echo "no" >&6; }
12684 fi
12685 
12686 
12687   test -n "$WC" && break
12688 done
12689 
12690     else
12691       # If it succeeded, then it was overridden by the user. We will use it
12692       # for the tool.
12693 
12694       # First remove it from the list of overridden variables, so we can test
12695       # for unknown variables in the end.
12696       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12697 
12698       # Check if we try to supply an empty value
12699       if test "x$WC" = x; then
12700         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool WC= (no value)" >&5
12701 $as_echo "$as_me: Setting user supplied tool WC= (no value)" >&6;}
12702         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5
12703 $as_echo_n "checking for WC... " >&6; }
12704         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12705 $as_echo "disabled" >&6; }
12706       else
12707         # Check if the provided tool contains a complete path.
12708         tool_specified="$WC"
12709         tool_basename="${tool_specified##*/}"
12710         if test "x$tool_basename" = "x$tool_specified"; then
12711           # A command without a complete path is provided, search $PATH.
12712           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5
12713 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;}
12714           # Extract the first word of "$tool_basename", so it can be a program name with args.
12715 set dummy $tool_basename; ac_word=$2
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12717 $as_echo_n "checking for $ac_word... " >&6; }
12718 if ${ac_cv_path_WC+:} false; then :
12719   $as_echo_n "(cached) " >&6
12720 else
12721   case $WC in
12722   [\\/]* | ?:[\\/]*)
12723   ac_cv_path_WC="$WC" # Let the user override the test with a path.
12724   ;;
12725   *)
12726   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12727 for as_dir in $PATH
12728 do
12729   IFS=$as_save_IFS
12730   test -z "$as_dir" && as_dir=.
12731     for ac_exec_ext in '' $ac_executable_extensions; do
12732   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12733     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
12734     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12735     break 2
12736   fi
12737 done
12738   done
12739 IFS=$as_save_IFS
12740 
12741   ;;
12742 esac
12743 fi
12744 WC=$ac_cv_path_WC
12745 if test -n "$WC"; then
12746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
12747 $as_echo "$WC" >&6; }
12748 else
12749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12750 $as_echo "no" >&6; }
12751 fi
12752 
12753 
12754           if test "x$WC" = x; then
12755             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12756           fi
12757         else
12758           # Otherwise we believe it is a complete path. Use it as it is.
12759           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5
12760 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;}
12761           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5
12762 $as_echo_n "checking for WC... " >&6; }
12763           if test ! -x "$tool_specified"; then
12764             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12765 $as_echo "not found" >&6; }
12766             as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5
12767           fi
12768           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12769 $as_echo "$tool_specified" >&6; }
12770         fi
12771       fi
12772     fi
12773 
12774   fi
12775 
12776 
12777 
12778   if test "x$WC" = x; then
12779     as_fn_error $? "Could not find required tool for WC" "$LINENO" 5
12780   fi
12781 
12782 
12783 
12784 
12785 
12786   # Publish this variable in the help.
12787 
12788 
12789   if [ -z "${WHICH+x}" ]; then
12790     # The variable is not set by user, try to locate tool using the code snippet
12791     for ac_prog in which
12792 do
12793   # Extract the first word of "$ac_prog", so it can be a program name with args.
12794 set dummy $ac_prog; ac_word=$2
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12796 $as_echo_n "checking for $ac_word... " >&6; }
12797 if ${ac_cv_path_WHICH+:} false; then :
12798   $as_echo_n "(cached) " >&6
12799 else
12800   case $WHICH in
12801   [\\/]* | ?:[\\/]*)
12802   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
12803   ;;
12804   *)
12805   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12806 for as_dir in $PATH
12807 do
12808   IFS=$as_save_IFS
12809   test -z "$as_dir" && as_dir=.
12810     for ac_exec_ext in '' $ac_executable_extensions; do
12811   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12812     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
12813     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12814     break 2
12815   fi
12816 done
12817   done
12818 IFS=$as_save_IFS
12819 
12820   ;;
12821 esac
12822 fi
12823 WHICH=$ac_cv_path_WHICH
12824 if test -n "$WHICH"; then
12825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
12826 $as_echo "$WHICH" >&6; }
12827 else
12828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12829 $as_echo "no" >&6; }
12830 fi
12831 
12832 
12833   test -n "$WHICH" && break
12834 done
12835 
12836   else
12837     # The variable is set, but is it from the command line or the environment?
12838 
12839     # Try to remove the string !WHICH! from our list.
12840     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/}
12841     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12842       # If it failed, the variable was not from the command line. Ignore it,
12843       # but warn the user (except for BASH, which is always set by the calling BASH).
12844       if test "xWHICH" != xBASH; then
12845         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5
12846 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;}
12847       fi
12848       # Try to locate tool using the code snippet
12849       for ac_prog in which
12850 do
12851   # Extract the first word of "$ac_prog", so it can be a program name with args.
12852 set dummy $ac_prog; ac_word=$2
12853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12854 $as_echo_n "checking for $ac_word... " >&6; }
12855 if ${ac_cv_path_WHICH+:} false; then :
12856   $as_echo_n "(cached) " >&6
12857 else
12858   case $WHICH in
12859   [\\/]* | ?:[\\/]*)
12860   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
12861   ;;
12862   *)
12863   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12864 for as_dir in $PATH
12865 do
12866   IFS=$as_save_IFS
12867   test -z "$as_dir" && as_dir=.
12868     for ac_exec_ext in '' $ac_executable_extensions; do
12869   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12870     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
12871     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12872     break 2
12873   fi
12874 done
12875   done
12876 IFS=$as_save_IFS
12877 
12878   ;;
12879 esac
12880 fi
12881 WHICH=$ac_cv_path_WHICH
12882 if test -n "$WHICH"; then
12883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
12884 $as_echo "$WHICH" >&6; }
12885 else
12886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12887 $as_echo "no" >&6; }
12888 fi
12889 
12890 
12891   test -n "$WHICH" && break
12892 done
12893 
12894     else
12895       # If it succeeded, then it was overridden by the user. We will use it
12896       # for the tool.
12897 
12898       # First remove it from the list of overridden variables, so we can test
12899       # for unknown variables in the end.
12900       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12901 
12902       # Check if we try to supply an empty value
12903       if test "x$WHICH" = x; then
12904         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool WHICH= (no value)" >&5
12905 $as_echo "$as_me: Setting user supplied tool WHICH= (no value)" >&6;}
12906         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5
12907 $as_echo_n "checking for WHICH... " >&6; }
12908         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12909 $as_echo "disabled" >&6; }
12910       else
12911         # Check if the provided tool contains a complete path.
12912         tool_specified="$WHICH"
12913         tool_basename="${tool_specified##*/}"
12914         if test "x$tool_basename" = "x$tool_specified"; then
12915           # A command without a complete path is provided, search $PATH.
12916           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5
12917 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;}
12918           # Extract the first word of "$tool_basename", so it can be a program name with args.
12919 set dummy $tool_basename; ac_word=$2
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12921 $as_echo_n "checking for $ac_word... " >&6; }
12922 if ${ac_cv_path_WHICH+:} false; then :
12923   $as_echo_n "(cached) " >&6
12924 else
12925   case $WHICH in
12926   [\\/]* | ?:[\\/]*)
12927   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
12928   ;;
12929   *)
12930   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12931 for as_dir in $PATH
12932 do
12933   IFS=$as_save_IFS
12934   test -z "$as_dir" && as_dir=.
12935     for ac_exec_ext in '' $ac_executable_extensions; do
12936   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12937     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
12938     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12939     break 2
12940   fi
12941 done
12942   done
12943 IFS=$as_save_IFS
12944 
12945   ;;
12946 esac
12947 fi
12948 WHICH=$ac_cv_path_WHICH
12949 if test -n "$WHICH"; then
12950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
12951 $as_echo "$WHICH" >&6; }
12952 else
12953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12954 $as_echo "no" >&6; }
12955 fi
12956 
12957 
12958           if test "x$WHICH" = x; then
12959             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12960           fi
12961         else
12962           # Otherwise we believe it is a complete path. Use it as it is.
12963           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5
12964 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;}
12965           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5
12966 $as_echo_n "checking for WHICH... " >&6; }
12967           if test ! -x "$tool_specified"; then
12968             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12969 $as_echo "not found" >&6; }
12970             as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5
12971           fi
12972           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12973 $as_echo "$tool_specified" >&6; }
12974         fi
12975       fi
12976     fi
12977 
12978   fi
12979 
12980 
12981 
12982   if test "x$WHICH" = x; then
12983     as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5
12984   fi
12985 
12986 
12987 
12988 
12989 
12990   # Publish this variable in the help.
12991 
12992 
12993   if [ -z "${XARGS+x}" ]; then
12994     # The variable is not set by user, try to locate tool using the code snippet
12995     for ac_prog in xargs
12996 do
12997   # Extract the first word of "$ac_prog", so it can be a program name with args.
12998 set dummy $ac_prog; ac_word=$2
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13000 $as_echo_n "checking for $ac_word... " >&6; }
13001 if ${ac_cv_path_XARGS+:} false; then :
13002   $as_echo_n "(cached) " >&6
13003 else
13004   case $XARGS in
13005   [\\/]* | ?:[\\/]*)
13006   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
13007   ;;
13008   *)
13009   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13010 for as_dir in $PATH
13011 do
13012   IFS=$as_save_IFS
13013   test -z "$as_dir" && as_dir=.
13014     for ac_exec_ext in '' $ac_executable_extensions; do
13015   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13016     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
13017     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13018     break 2
13019   fi
13020 done
13021   done
13022 IFS=$as_save_IFS
13023 
13024   ;;
13025 esac
13026 fi
13027 XARGS=$ac_cv_path_XARGS
13028 if test -n "$XARGS"; then
13029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
13030 $as_echo "$XARGS" >&6; }
13031 else
13032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13033 $as_echo "no" >&6; }
13034 fi
13035 
13036 
13037   test -n "$XARGS" && break
13038 done
13039 
13040   else
13041     # The variable is set, but is it from the command line or the environment?
13042 
13043     # Try to remove the string !XARGS! from our list.
13044     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/}
13045     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13046       # If it failed, the variable was not from the command line. Ignore it,
13047       # but warn the user (except for BASH, which is always set by the calling BASH).
13048       if test "xXARGS" != xBASH; then
13049         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5
13050 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;}
13051       fi
13052       # Try to locate tool using the code snippet
13053       for ac_prog in xargs
13054 do
13055   # Extract the first word of "$ac_prog", so it can be a program name with args.
13056 set dummy $ac_prog; ac_word=$2
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13058 $as_echo_n "checking for $ac_word... " >&6; }
13059 if ${ac_cv_path_XARGS+:} false; then :
13060   $as_echo_n "(cached) " >&6
13061 else
13062   case $XARGS in
13063   [\\/]* | ?:[\\/]*)
13064   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
13065   ;;
13066   *)
13067   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13068 for as_dir in $PATH
13069 do
13070   IFS=$as_save_IFS
13071   test -z "$as_dir" && as_dir=.
13072     for ac_exec_ext in '' $ac_executable_extensions; do
13073   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13074     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
13075     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13076     break 2
13077   fi
13078 done
13079   done
13080 IFS=$as_save_IFS
13081 
13082   ;;
13083 esac
13084 fi
13085 XARGS=$ac_cv_path_XARGS
13086 if test -n "$XARGS"; then
13087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
13088 $as_echo "$XARGS" >&6; }
13089 else
13090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13091 $as_echo "no" >&6; }
13092 fi
13093 
13094 
13095   test -n "$XARGS" && break
13096 done
13097 
13098     else
13099       # If it succeeded, then it was overridden by the user. We will use it
13100       # for the tool.
13101 
13102       # First remove it from the list of overridden variables, so we can test
13103       # for unknown variables in the end.
13104       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13105 
13106       # Check if we try to supply an empty value
13107       if test "x$XARGS" = x; then
13108         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool XARGS= (no value)" >&5
13109 $as_echo "$as_me: Setting user supplied tool XARGS= (no value)" >&6;}
13110         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5
13111 $as_echo_n "checking for XARGS... " >&6; }
13112         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13113 $as_echo "disabled" >&6; }
13114       else
13115         # Check if the provided tool contains a complete path.
13116         tool_specified="$XARGS"
13117         tool_basename="${tool_specified##*/}"
13118         if test "x$tool_basename" = "x$tool_specified"; then
13119           # A command without a complete path is provided, search $PATH.
13120           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5
13121 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;}
13122           # Extract the first word of "$tool_basename", so it can be a program name with args.
13123 set dummy $tool_basename; ac_word=$2
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13125 $as_echo_n "checking for $ac_word... " >&6; }
13126 if ${ac_cv_path_XARGS+:} false; then :
13127   $as_echo_n "(cached) " >&6
13128 else
13129   case $XARGS in
13130   [\\/]* | ?:[\\/]*)
13131   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
13132   ;;
13133   *)
13134   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13135 for as_dir in $PATH
13136 do
13137   IFS=$as_save_IFS
13138   test -z "$as_dir" && as_dir=.
13139     for ac_exec_ext in '' $ac_executable_extensions; do
13140   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13141     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
13142     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13143     break 2
13144   fi
13145 done
13146   done
13147 IFS=$as_save_IFS
13148 
13149   ;;
13150 esac
13151 fi
13152 XARGS=$ac_cv_path_XARGS
13153 if test -n "$XARGS"; then
13154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
13155 $as_echo "$XARGS" >&6; }
13156 else
13157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13158 $as_echo "no" >&6; }
13159 fi
13160 
13161 
13162           if test "x$XARGS" = x; then
13163             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13164           fi
13165         else
13166           # Otherwise we believe it is a complete path. Use it as it is.
13167           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5
13168 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;}
13169           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5
13170 $as_echo_n "checking for XARGS... " >&6; }
13171           if test ! -x "$tool_specified"; then
13172             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13173 $as_echo "not found" >&6; }
13174             as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5
13175           fi
13176           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13177 $as_echo "$tool_specified" >&6; }
13178         fi
13179       fi
13180     fi
13181 
13182   fi
13183 
13184 
13185 
13186   if test "x$XARGS" = x; then
13187     as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5
13188   fi
13189 
13190 
13191 
13192   # Then required tools that require some special treatment.
13193 
13194 
13195   # Publish this variable in the help.
13196 
13197 
13198   if [ -z "${AWK+x}" ]; then
13199     # The variable is not set by user, try to locate tool using the code snippet
13200     for ac_prog in gawk mawk nawk awk
13201 do
13202   # Extract the first word of "$ac_prog", so it can be a program name with args.
13203 set dummy $ac_prog; ac_word=$2
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13205 $as_echo_n "checking for $ac_word... " >&6; }
13206 if ${ac_cv_prog_AWK+:} false; then :
13207   $as_echo_n "(cached) " >&6
13208 else
13209   if test -n "$AWK"; then
13210   ac_cv_prog_AWK="$AWK" # Let the user override the test.
13211 else
13212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13213 for as_dir in $PATH
13214 do
13215   IFS=$as_save_IFS
13216   test -z "$as_dir" && as_dir=.
13217     for ac_exec_ext in '' $ac_executable_extensions; do
13218   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13219     ac_cv_prog_AWK="$ac_prog"
13220     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13221     break 2
13222   fi
13223 done
13224   done
13225 IFS=$as_save_IFS
13226 
13227 fi
13228 fi
13229 AWK=$ac_cv_prog_AWK
13230 if test -n "$AWK"; then
13231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13232 $as_echo "$AWK" >&6; }
13233 else
13234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13235 $as_echo "no" >&6; }
13236 fi
13237 
13238 
13239   test -n "$AWK" && break
13240 done
13241 
13242   else
13243     # The variable is set, but is it from the command line or the environment?
13244 
13245     # Try to remove the string !AWK! from our list.
13246     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/}
13247     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13248       # If it failed, the variable was not from the command line. Ignore it,
13249       # but warn the user (except for BASH, which is always set by the calling BASH).
13250       if test "xAWK" != xBASH; then
13251         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5
13252 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;}
13253       fi
13254       # Try to locate tool using the code snippet
13255       for ac_prog in gawk mawk nawk awk
13256 do
13257   # Extract the first word of "$ac_prog", so it can be a program name with args.
13258 set dummy $ac_prog; ac_word=$2
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13260 $as_echo_n "checking for $ac_word... " >&6; }
13261 if ${ac_cv_prog_AWK+:} false; then :
13262   $as_echo_n "(cached) " >&6
13263 else
13264   if test -n "$AWK"; then
13265   ac_cv_prog_AWK="$AWK" # Let the user override the test.
13266 else
13267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13268 for as_dir in $PATH
13269 do
13270   IFS=$as_save_IFS
13271   test -z "$as_dir" && as_dir=.
13272     for ac_exec_ext in '' $ac_executable_extensions; do
13273   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13274     ac_cv_prog_AWK="$ac_prog"
13275     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13276     break 2
13277   fi
13278 done
13279   done
13280 IFS=$as_save_IFS
13281 
13282 fi
13283 fi
13284 AWK=$ac_cv_prog_AWK
13285 if test -n "$AWK"; then
13286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13287 $as_echo "$AWK" >&6; }
13288 else
13289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13290 $as_echo "no" >&6; }
13291 fi
13292 
13293 
13294   test -n "$AWK" && break
13295 done
13296 
13297     else
13298       # If it succeeded, then it was overridden by the user. We will use it
13299       # for the tool.
13300 
13301       # First remove it from the list of overridden variables, so we can test
13302       # for unknown variables in the end.
13303       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13304 
13305       # Check if we try to supply an empty value
13306       if test "x$AWK" = x; then
13307         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AWK= (no value)" >&5
13308 $as_echo "$as_me: Setting user supplied tool AWK= (no value)" >&6;}
13309         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5
13310 $as_echo_n "checking for AWK... " >&6; }
13311         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13312 $as_echo "disabled" >&6; }
13313       else
13314         # Check if the provided tool contains a complete path.
13315         tool_specified="$AWK"
13316         tool_basename="${tool_specified##*/}"
13317         if test "x$tool_basename" = "x$tool_specified"; then
13318           # A command without a complete path is provided, search $PATH.
13319           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5
13320 $as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;}
13321           # Extract the first word of "$tool_basename", so it can be a program name with args.
13322 set dummy $tool_basename; ac_word=$2
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13324 $as_echo_n "checking for $ac_word... " >&6; }
13325 if ${ac_cv_path_AWK+:} false; then :
13326   $as_echo_n "(cached) " >&6
13327 else
13328   case $AWK in
13329   [\\/]* | ?:[\\/]*)
13330   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
13331   ;;
13332   *)
13333   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13334 for as_dir in $PATH
13335 do
13336   IFS=$as_save_IFS
13337   test -z "$as_dir" && as_dir=.
13338     for ac_exec_ext in '' $ac_executable_extensions; do
13339   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13340     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
13341     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13342     break 2
13343   fi
13344 done
13345   done
13346 IFS=$as_save_IFS
13347 
13348   ;;
13349 esac
13350 fi
13351 AWK=$ac_cv_path_AWK
13352 if test -n "$AWK"; then
13353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13354 $as_echo "$AWK" >&6; }
13355 else
13356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13357 $as_echo "no" >&6; }
13358 fi
13359 
13360 
13361           if test "x$AWK" = x; then
13362             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13363           fi
13364         else
13365           # Otherwise we believe it is a complete path. Use it as it is.
13366           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5
13367 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;}
13368           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5
13369 $as_echo_n "checking for AWK... " >&6; }
13370           if test ! -x "$tool_specified"; then
13371             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13372 $as_echo "not found" >&6; }
13373             as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5
13374           fi
13375           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13376 $as_echo "$tool_specified" >&6; }
13377         fi
13378       fi
13379     fi
13380 
13381   fi
13382 
13383 
13384   if test "x$AWK" = x; then
13385     as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5
13386   fi
13387 
13388 
13389 
13390 
13391   # Publish this variable in the help.
13392 
13393 
13394   if [ -z "${GREP+x}" ]; then
13395     # The variable is not set by user, try to locate tool using the code snippet
13396     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
13397 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
13398 if ${ac_cv_path_GREP+:} false; then :
13399   $as_echo_n "(cached) " >&6
13400 else
13401   if test -z "$GREP"; then
13402   ac_path_GREP_found=false
13403   # Loop through the user's path and test for each of PROGNAME-LIST
13404   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13405 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13406 do
13407   IFS=$as_save_IFS
13408   test -z "$as_dir" && as_dir=.
13409     for ac_prog in grep ggrep; do
13410     for ac_exec_ext in '' $ac_executable_extensions; do
13411       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
13412       as_fn_executable_p "$ac_path_GREP" || continue
13413 # Check for GNU ac_path_GREP and select it if it is found.
13414   # Check for GNU $ac_path_GREP
13415 case `"$ac_path_GREP" --version 2>&1` in
13416 *GNU*)
13417   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
13418 *)
13419   ac_count=0
13420   $as_echo_n 0123456789 >"conftest.in"
13421   while :
13422   do
13423     cat "conftest.in" "conftest.in" >"conftest.tmp"
13424     mv "conftest.tmp" "conftest.in"
13425     cp "conftest.in" "conftest.nl"
13426     $as_echo 'GREP' >> "conftest.nl"
13427     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13428     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13429     as_fn_arith $ac_count + 1 && ac_count=$as_val
13430     if test $ac_count -gt ${ac_path_GREP_max-0}; then
13431       # Best one so far, save it but keep looking for a better one
13432       ac_cv_path_GREP="$ac_path_GREP"
13433       ac_path_GREP_max=$ac_count
13434     fi
13435     # 10*(2^10) chars as input seems more than enough
13436     test $ac_count -gt 10 && break
13437   done
13438   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13439 esac
13440 
13441       $ac_path_GREP_found && break 3
13442     done
13443   done
13444   done
13445 IFS=$as_save_IFS
13446   if test -z "$ac_cv_path_GREP"; then
13447     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13448   fi
13449 else
13450   ac_cv_path_GREP=$GREP
13451 fi
13452 
13453 fi
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
13455 $as_echo "$ac_cv_path_GREP" >&6; }
13456  GREP="$ac_cv_path_GREP"
13457 
13458 
13459   else
13460     # The variable is set, but is it from the command line or the environment?
13461 
13462     # Try to remove the string !GREP! from our list.
13463     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/}
13464     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13465       # If it failed, the variable was not from the command line. Ignore it,
13466       # but warn the user (except for BASH, which is always set by the calling BASH).
13467       if test "xGREP" != xBASH; then
13468         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5
13469 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;}
13470       fi
13471       # Try to locate tool using the code snippet
13472       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
13473 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
13474 if ${ac_cv_path_GREP+:} false; then :
13475   $as_echo_n "(cached) " >&6
13476 else
13477   if test -z "$GREP"; then
13478   ac_path_GREP_found=false
13479   # Loop through the user's path and test for each of PROGNAME-LIST
13480   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13481 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13482 do
13483   IFS=$as_save_IFS
13484   test -z "$as_dir" && as_dir=.
13485     for ac_prog in grep ggrep; do
13486     for ac_exec_ext in '' $ac_executable_extensions; do
13487       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
13488       as_fn_executable_p "$ac_path_GREP" || continue
13489 # Check for GNU ac_path_GREP and select it if it is found.
13490   # Check for GNU $ac_path_GREP
13491 case `"$ac_path_GREP" --version 2>&1` in
13492 *GNU*)
13493   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
13494 *)
13495   ac_count=0
13496   $as_echo_n 0123456789 >"conftest.in"
13497   while :
13498   do
13499     cat "conftest.in" "conftest.in" >"conftest.tmp"
13500     mv "conftest.tmp" "conftest.in"
13501     cp "conftest.in" "conftest.nl"
13502     $as_echo 'GREP' >> "conftest.nl"
13503     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13504     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13505     as_fn_arith $ac_count + 1 && ac_count=$as_val
13506     if test $ac_count -gt ${ac_path_GREP_max-0}; then
13507       # Best one so far, save it but keep looking for a better one
13508       ac_cv_path_GREP="$ac_path_GREP"
13509       ac_path_GREP_max=$ac_count
13510     fi
13511     # 10*(2^10) chars as input seems more than enough
13512     test $ac_count -gt 10 && break
13513   done
13514   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13515 esac
13516 
13517       $ac_path_GREP_found && break 3
13518     done
13519   done
13520   done
13521 IFS=$as_save_IFS
13522   if test -z "$ac_cv_path_GREP"; then
13523     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13524   fi
13525 else
13526   ac_cv_path_GREP=$GREP
13527 fi
13528 
13529 fi
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
13531 $as_echo "$ac_cv_path_GREP" >&6; }
13532  GREP="$ac_cv_path_GREP"
13533 
13534 
13535     else
13536       # If it succeeded, then it was overridden by the user. We will use it
13537       # for the tool.
13538 
13539       # First remove it from the list of overridden variables, so we can test
13540       # for unknown variables in the end.
13541       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13542 
13543       # Check if we try to supply an empty value
13544       if test "x$GREP" = x; then
13545         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GREP= (no value)" >&5
13546 $as_echo "$as_me: Setting user supplied tool GREP= (no value)" >&6;}
13547         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5
13548 $as_echo_n "checking for GREP... " >&6; }
13549         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13550 $as_echo "disabled" >&6; }
13551       else
13552         # Check if the provided tool contains a complete path.
13553         tool_specified="$GREP"
13554         tool_basename="${tool_specified##*/}"
13555         if test "x$tool_basename" = "x$tool_specified"; then
13556           # A command without a complete path is provided, search $PATH.
13557           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5
13558 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;}
13559           # Extract the first word of "$tool_basename", so it can be a program name with args.
13560 set dummy $tool_basename; ac_word=$2
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13562 $as_echo_n "checking for $ac_word... " >&6; }
13563 if ${ac_cv_path_GREP+:} false; then :
13564   $as_echo_n "(cached) " >&6
13565 else
13566   case $GREP in
13567   [\\/]* | ?:[\\/]*)
13568   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
13569   ;;
13570   *)
13571   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13572 for as_dir in $PATH
13573 do
13574   IFS=$as_save_IFS
13575   test -z "$as_dir" && as_dir=.
13576     for ac_exec_ext in '' $ac_executable_extensions; do
13577   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13578     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
13579     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13580     break 2
13581   fi
13582 done
13583   done
13584 IFS=$as_save_IFS
13585 
13586   ;;
13587 esac
13588 fi
13589 GREP=$ac_cv_path_GREP
13590 if test -n "$GREP"; then
13591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
13592 $as_echo "$GREP" >&6; }
13593 else
13594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13595 $as_echo "no" >&6; }
13596 fi
13597 
13598 
13599           if test "x$GREP" = x; then
13600             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13601           fi
13602         else
13603           # Otherwise we believe it is a complete path. Use it as it is.
13604           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5
13605 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;}
13606           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5
13607 $as_echo_n "checking for GREP... " >&6; }
13608           if test ! -x "$tool_specified"; then
13609             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13610 $as_echo "not found" >&6; }
13611             as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5
13612           fi
13613           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13614 $as_echo "$tool_specified" >&6; }
13615         fi
13616       fi
13617     fi
13618 
13619   fi
13620 
13621 
13622   if test "x$GREP" = x; then
13623     as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5
13624   fi
13625 
13626 
13627 
13628 
13629   # Publish this variable in the help.
13630 
13631 
13632   if [ -z "${EGREP+x}" ]; then
13633     # The variable is not set by user, try to locate tool using the code snippet
13634     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
13635 $as_echo_n "checking for egrep... " >&6; }
13636 if ${ac_cv_path_EGREP+:} false; then :
13637   $as_echo_n "(cached) " >&6
13638 else
13639   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
13640    then ac_cv_path_EGREP="$GREP -E"
13641    else
13642      if test -z "$EGREP"; then
13643   ac_path_EGREP_found=false
13644   # Loop through the user's path and test for each of PROGNAME-LIST
13645   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13646 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13647 do
13648   IFS=$as_save_IFS
13649   test -z "$as_dir" && as_dir=.
13650     for ac_prog in egrep; do
13651     for ac_exec_ext in '' $ac_executable_extensions; do
13652       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
13653       as_fn_executable_p "$ac_path_EGREP" || continue
13654 # Check for GNU ac_path_EGREP and select it if it is found.
13655   # Check for GNU $ac_path_EGREP
13656 case `"$ac_path_EGREP" --version 2>&1` in
13657 *GNU*)
13658   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
13659 *)
13660   ac_count=0
13661   $as_echo_n 0123456789 >"conftest.in"
13662   while :
13663   do
13664     cat "conftest.in" "conftest.in" >"conftest.tmp"
13665     mv "conftest.tmp" "conftest.in"
13666     cp "conftest.in" "conftest.nl"
13667     $as_echo 'EGREP' >> "conftest.nl"
13668     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13669     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13670     as_fn_arith $ac_count + 1 && ac_count=$as_val
13671     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
13672       # Best one so far, save it but keep looking for a better one
13673       ac_cv_path_EGREP="$ac_path_EGREP"
13674       ac_path_EGREP_max=$ac_count
13675     fi
13676     # 10*(2^10) chars as input seems more than enough
13677     test $ac_count -gt 10 && break
13678   done
13679   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13680 esac
13681 
13682       $ac_path_EGREP_found && break 3
13683     done
13684   done
13685   done
13686 IFS=$as_save_IFS
13687   if test -z "$ac_cv_path_EGREP"; then
13688     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13689   fi
13690 else
13691   ac_cv_path_EGREP=$EGREP
13692 fi
13693 
13694    fi
13695 fi
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
13697 $as_echo "$ac_cv_path_EGREP" >&6; }
13698  EGREP="$ac_cv_path_EGREP"
13699 
13700 
13701   else
13702     # The variable is set, but is it from the command line or the environment?
13703 
13704     # Try to remove the string !EGREP! from our list.
13705     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/}
13706     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13707       # If it failed, the variable was not from the command line. Ignore it,
13708       # but warn the user (except for BASH, which is always set by the calling BASH).
13709       if test "xEGREP" != xBASH; then
13710         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5
13711 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;}
13712       fi
13713       # Try to locate tool using the code snippet
13714       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
13715 $as_echo_n "checking for egrep... " >&6; }
13716 if ${ac_cv_path_EGREP+:} false; then :
13717   $as_echo_n "(cached) " >&6
13718 else
13719   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
13720    then ac_cv_path_EGREP="$GREP -E"
13721    else
13722      if test -z "$EGREP"; then
13723   ac_path_EGREP_found=false
13724   # Loop through the user's path and test for each of PROGNAME-LIST
13725   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13726 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13727 do
13728   IFS=$as_save_IFS
13729   test -z "$as_dir" && as_dir=.
13730     for ac_prog in egrep; do
13731     for ac_exec_ext in '' $ac_executable_extensions; do
13732       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
13733       as_fn_executable_p "$ac_path_EGREP" || continue
13734 # Check for GNU ac_path_EGREP and select it if it is found.
13735   # Check for GNU $ac_path_EGREP
13736 case `"$ac_path_EGREP" --version 2>&1` in
13737 *GNU*)
13738   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
13739 *)
13740   ac_count=0
13741   $as_echo_n 0123456789 >"conftest.in"
13742   while :
13743   do
13744     cat "conftest.in" "conftest.in" >"conftest.tmp"
13745     mv "conftest.tmp" "conftest.in"
13746     cp "conftest.in" "conftest.nl"
13747     $as_echo 'EGREP' >> "conftest.nl"
13748     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13749     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13750     as_fn_arith $ac_count + 1 && ac_count=$as_val
13751     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
13752       # Best one so far, save it but keep looking for a better one
13753       ac_cv_path_EGREP="$ac_path_EGREP"
13754       ac_path_EGREP_max=$ac_count
13755     fi
13756     # 10*(2^10) chars as input seems more than enough
13757     test $ac_count -gt 10 && break
13758   done
13759   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13760 esac
13761 
13762       $ac_path_EGREP_found && break 3
13763     done
13764   done
13765   done
13766 IFS=$as_save_IFS
13767   if test -z "$ac_cv_path_EGREP"; then
13768     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13769   fi
13770 else
13771   ac_cv_path_EGREP=$EGREP
13772 fi
13773 
13774    fi
13775 fi
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
13777 $as_echo "$ac_cv_path_EGREP" >&6; }
13778  EGREP="$ac_cv_path_EGREP"
13779 
13780 
13781     else
13782       # If it succeeded, then it was overridden by the user. We will use it
13783       # for the tool.
13784 
13785       # First remove it from the list of overridden variables, so we can test
13786       # for unknown variables in the end.
13787       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13788 
13789       # Check if we try to supply an empty value
13790       if test "x$EGREP" = x; then
13791         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool EGREP= (no value)" >&5
13792 $as_echo "$as_me: Setting user supplied tool EGREP= (no value)" >&6;}
13793         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5
13794 $as_echo_n "checking for EGREP... " >&6; }
13795         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13796 $as_echo "disabled" >&6; }
13797       else
13798         # Check if the provided tool contains a complete path.
13799         tool_specified="$EGREP"
13800         tool_basename="${tool_specified##*/}"
13801         if test "x$tool_basename" = "x$tool_specified"; then
13802           # A command without a complete path is provided, search $PATH.
13803           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5
13804 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;}
13805           # Extract the first word of "$tool_basename", so it can be a program name with args.
13806 set dummy $tool_basename; ac_word=$2
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13808 $as_echo_n "checking for $ac_word... " >&6; }
13809 if ${ac_cv_path_EGREP+:} false; then :
13810   $as_echo_n "(cached) " >&6
13811 else
13812   case $EGREP in
13813   [\\/]* | ?:[\\/]*)
13814   ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
13815   ;;
13816   *)
13817   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13818 for as_dir in $PATH
13819 do
13820   IFS=$as_save_IFS
13821   test -z "$as_dir" && as_dir=.
13822     for ac_exec_ext in '' $ac_executable_extensions; do
13823   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13824     ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
13825     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13826     break 2
13827   fi
13828 done
13829   done
13830 IFS=$as_save_IFS
13831 
13832   ;;
13833 esac
13834 fi
13835 EGREP=$ac_cv_path_EGREP
13836 if test -n "$EGREP"; then
13837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
13838 $as_echo "$EGREP" >&6; }
13839 else
13840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13841 $as_echo "no" >&6; }
13842 fi
13843 
13844 
13845           if test "x$EGREP" = x; then
13846             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13847           fi
13848         else
13849           # Otherwise we believe it is a complete path. Use it as it is.
13850           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5
13851 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;}
13852           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5
13853 $as_echo_n "checking for EGREP... " >&6; }
13854           if test ! -x "$tool_specified"; then
13855             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13856 $as_echo "not found" >&6; }
13857             as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
13858           fi
13859           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13860 $as_echo "$tool_specified" >&6; }
13861         fi
13862       fi
13863     fi
13864 
13865   fi
13866 
13867 
13868   if test "x$EGREP" = x; then
13869     as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5
13870   fi
13871 
13872 
13873 
13874 
13875   # Publish this variable in the help.
13876 
13877 
13878   if [ -z "${FGREP+x}" ]; then
13879     # The variable is not set by user, try to locate tool using the code snippet
13880     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13881 $as_echo_n "checking for fgrep... " >&6; }
13882 if ${ac_cv_path_FGREP+:} false; then :
13883   $as_echo_n "(cached) " >&6
13884 else
13885   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
13886    then ac_cv_path_FGREP="$GREP -F"
13887    else
13888      if test -z "$FGREP"; then
13889   ac_path_FGREP_found=false
13890   # Loop through the user's path and test for each of PROGNAME-LIST
13891   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13892 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13893 do
13894   IFS=$as_save_IFS
13895   test -z "$as_dir" && as_dir=.
13896     for ac_prog in fgrep; do
13897     for ac_exec_ext in '' $ac_executable_extensions; do
13898       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
13899       as_fn_executable_p "$ac_path_FGREP" || continue
13900 # Check for GNU ac_path_FGREP and select it if it is found.
13901   # Check for GNU $ac_path_FGREP
13902 case `"$ac_path_FGREP" --version 2>&1` in
13903 *GNU*)
13904   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
13905 *)
13906   ac_count=0
13907   $as_echo_n 0123456789 >"conftest.in"
13908   while :
13909   do
13910     cat "conftest.in" "conftest.in" >"conftest.tmp"
13911     mv "conftest.tmp" "conftest.in"
13912     cp "conftest.in" "conftest.nl"
13913     $as_echo 'FGREP' >> "conftest.nl"
13914     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
13915     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13916     as_fn_arith $ac_count + 1 && ac_count=$as_val
13917     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13918       # Best one so far, save it but keep looking for a better one
13919       ac_cv_path_FGREP="$ac_path_FGREP"
13920       ac_path_FGREP_max=$ac_count
13921     fi
13922     # 10*(2^10) chars as input seems more than enough
13923     test $ac_count -gt 10 && break
13924   done
13925   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13926 esac
13927 
13928       $ac_path_FGREP_found && break 3
13929     done
13930   done
13931   done
13932 IFS=$as_save_IFS
13933   if test -z "$ac_cv_path_FGREP"; then
13934     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13935   fi
13936 else
13937   ac_cv_path_FGREP=$FGREP
13938 fi
13939 
13940    fi
13941 fi
13942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13943 $as_echo "$ac_cv_path_FGREP" >&6; }
13944  FGREP="$ac_cv_path_FGREP"
13945 
13946 
13947   else
13948     # The variable is set, but is it from the command line or the environment?
13949 
13950     # Try to remove the string !FGREP! from our list.
13951     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/}
13952     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13953       # If it failed, the variable was not from the command line. Ignore it,
13954       # but warn the user (except for BASH, which is always set by the calling BASH).
13955       if test "xFGREP" != xBASH; then
13956         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5
13957 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;}
13958       fi
13959       # Try to locate tool using the code snippet
13960       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13961 $as_echo_n "checking for fgrep... " >&6; }
13962 if ${ac_cv_path_FGREP+:} false; then :
13963   $as_echo_n "(cached) " >&6
13964 else
13965   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
13966    then ac_cv_path_FGREP="$GREP -F"
13967    else
13968      if test -z "$FGREP"; then
13969   ac_path_FGREP_found=false
13970   # Loop through the user's path and test for each of PROGNAME-LIST
13971   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13972 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13973 do
13974   IFS=$as_save_IFS
13975   test -z "$as_dir" && as_dir=.
13976     for ac_prog in fgrep; do
13977     for ac_exec_ext in '' $ac_executable_extensions; do
13978       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
13979       as_fn_executable_p "$ac_path_FGREP" || continue
13980 # Check for GNU ac_path_FGREP and select it if it is found.
13981   # Check for GNU $ac_path_FGREP
13982 case `"$ac_path_FGREP" --version 2>&1` in
13983 *GNU*)
13984   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
13985 *)
13986   ac_count=0
13987   $as_echo_n 0123456789 >"conftest.in"
13988   while :
13989   do
13990     cat "conftest.in" "conftest.in" >"conftest.tmp"
13991     mv "conftest.tmp" "conftest.in"
13992     cp "conftest.in" "conftest.nl"
13993     $as_echo 'FGREP' >> "conftest.nl"
13994     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
13995     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13996     as_fn_arith $ac_count + 1 && ac_count=$as_val
13997     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13998       # Best one so far, save it but keep looking for a better one
13999       ac_cv_path_FGREP="$ac_path_FGREP"
14000       ac_path_FGREP_max=$ac_count
14001     fi
14002     # 10*(2^10) chars as input seems more than enough
14003     test $ac_count -gt 10 && break
14004   done
14005   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
14006 esac
14007 
14008       $ac_path_FGREP_found && break 3
14009     done
14010   done
14011   done
14012 IFS=$as_save_IFS
14013   if test -z "$ac_cv_path_FGREP"; then
14014     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
14015   fi
14016 else
14017   ac_cv_path_FGREP=$FGREP
14018 fi
14019 
14020    fi
14021 fi
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
14023 $as_echo "$ac_cv_path_FGREP" >&6; }
14024  FGREP="$ac_cv_path_FGREP"
14025 
14026 
14027     else
14028       # If it succeeded, then it was overridden by the user. We will use it
14029       # for the tool.
14030 
14031       # First remove it from the list of overridden variables, so we can test
14032       # for unknown variables in the end.
14033       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14034 
14035       # Check if we try to supply an empty value
14036       if test "x$FGREP" = x; then
14037         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FGREP= (no value)" >&5
14038 $as_echo "$as_me: Setting user supplied tool FGREP= (no value)" >&6;}
14039         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5
14040 $as_echo_n "checking for FGREP... " >&6; }
14041         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14042 $as_echo "disabled" >&6; }
14043       else
14044         # Check if the provided tool contains a complete path.
14045         tool_specified="$FGREP"
14046         tool_basename="${tool_specified##*/}"
14047         if test "x$tool_basename" = "x$tool_specified"; then
14048           # A command without a complete path is provided, search $PATH.
14049           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5
14050 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;}
14051           # Extract the first word of "$tool_basename", so it can be a program name with args.
14052 set dummy $tool_basename; ac_word=$2
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14054 $as_echo_n "checking for $ac_word... " >&6; }
14055 if ${ac_cv_path_FGREP+:} false; then :
14056   $as_echo_n "(cached) " >&6
14057 else
14058   case $FGREP in
14059   [\\/]* | ?:[\\/]*)
14060   ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path.
14061   ;;
14062   *)
14063   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14064 for as_dir in $PATH
14065 do
14066   IFS=$as_save_IFS
14067   test -z "$as_dir" && as_dir=.
14068     for ac_exec_ext in '' $ac_executable_extensions; do
14069   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14070     ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext"
14071     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14072     break 2
14073   fi
14074 done
14075   done
14076 IFS=$as_save_IFS
14077 
14078   ;;
14079 esac
14080 fi
14081 FGREP=$ac_cv_path_FGREP
14082 if test -n "$FGREP"; then
14083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5
14084 $as_echo "$FGREP" >&6; }
14085 else
14086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14087 $as_echo "no" >&6; }
14088 fi
14089 
14090 
14091           if test "x$FGREP" = x; then
14092             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14093           fi
14094         else
14095           # Otherwise we believe it is a complete path. Use it as it is.
14096           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5
14097 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;}
14098           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5
14099 $as_echo_n "checking for FGREP... " >&6; }
14100           if test ! -x "$tool_specified"; then
14101             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14102 $as_echo "not found" >&6; }
14103             as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
14104           fi
14105           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14106 $as_echo "$tool_specified" >&6; }
14107         fi
14108       fi
14109     fi
14110 
14111   fi
14112 
14113 
14114   if test "x$FGREP" = x; then
14115     as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5
14116   fi
14117 
14118 
14119 
14120 
14121   # Publish this variable in the help.
14122 
14123 
14124   if [ -z "${SED+x}" ]; then
14125     # The variable is not set by user, try to locate tool using the code snippet
14126     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
14127 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
14128 if ${ac_cv_path_SED+:} false; then :
14129   $as_echo_n "(cached) " >&6
14130 else
14131             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
14132      for ac_i in 1 2 3 4 5 6 7; do
14133        ac_script="$ac_script$as_nl$ac_script"
14134      done
14135      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
14136      { ac_script=; unset ac_script;}
14137      if test -z "$SED"; then
14138   ac_path_SED_found=false
14139   # Loop through the user's path and test for each of PROGNAME-LIST
14140   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14141 for as_dir in $PATH
14142 do
14143   IFS=$as_save_IFS
14144   test -z "$as_dir" && as_dir=.
14145     for ac_prog in sed gsed; do
14146     for ac_exec_ext in '' $ac_executable_extensions; do
14147       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
14148       as_fn_executable_p "$ac_path_SED" || continue
14149 # Check for GNU ac_path_SED and select it if it is found.
14150   # Check for GNU $ac_path_SED
14151 case `"$ac_path_SED" --version 2>&1` in
14152 *GNU*)
14153   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
14154 *)
14155   ac_count=0
14156   $as_echo_n 0123456789 >"conftest.in"
14157   while :
14158   do
14159     cat "conftest.in" "conftest.in" >"conftest.tmp"
14160     mv "conftest.tmp" "conftest.in"
14161     cp "conftest.in" "conftest.nl"
14162     $as_echo '' >> "conftest.nl"
14163     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
14164     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
14165     as_fn_arith $ac_count + 1 && ac_count=$as_val
14166     if test $ac_count -gt ${ac_path_SED_max-0}; then
14167       # Best one so far, save it but keep looking for a better one
14168       ac_cv_path_SED="$ac_path_SED"
14169       ac_path_SED_max=$ac_count
14170     fi
14171     # 10*(2^10) chars as input seems more than enough
14172     test $ac_count -gt 10 && break
14173   done
14174   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
14175 esac
14176 
14177       $ac_path_SED_found && break 3
14178     done
14179   done
14180   done
14181 IFS=$as_save_IFS
14182   if test -z "$ac_cv_path_SED"; then
14183     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
14184   fi
14185 else
14186   ac_cv_path_SED=$SED
14187 fi
14188 
14189 fi
14190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
14191 $as_echo "$ac_cv_path_SED" >&6; }
14192  SED="$ac_cv_path_SED"
14193   rm -f conftest.sed
14194 
14195   else
14196     # The variable is set, but is it from the command line or the environment?
14197 
14198     # Try to remove the string !SED! from our list.
14199     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/}
14200     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14201       # If it failed, the variable was not from the command line. Ignore it,
14202       # but warn the user (except for BASH, which is always set by the calling BASH).
14203       if test "xSED" != xBASH; then
14204         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5
14205 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;}
14206       fi
14207       # Try to locate tool using the code snippet
14208       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
14209 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
14210 if ${ac_cv_path_SED+:} false; then :
14211   $as_echo_n "(cached) " >&6
14212 else
14213             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
14214      for ac_i in 1 2 3 4 5 6 7; do
14215        ac_script="$ac_script$as_nl$ac_script"
14216      done
14217      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
14218      { ac_script=; unset ac_script;}
14219      if test -z "$SED"; then
14220   ac_path_SED_found=false
14221   # Loop through the user's path and test for each of PROGNAME-LIST
14222   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14223 for as_dir in $PATH
14224 do
14225   IFS=$as_save_IFS
14226   test -z "$as_dir" && as_dir=.
14227     for ac_prog in sed gsed; do
14228     for ac_exec_ext in '' $ac_executable_extensions; do
14229       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
14230       as_fn_executable_p "$ac_path_SED" || continue
14231 # Check for GNU ac_path_SED and select it if it is found.
14232   # Check for GNU $ac_path_SED
14233 case `"$ac_path_SED" --version 2>&1` in
14234 *GNU*)
14235   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
14236 *)
14237   ac_count=0
14238   $as_echo_n 0123456789 >"conftest.in"
14239   while :
14240   do
14241     cat "conftest.in" "conftest.in" >"conftest.tmp"
14242     mv "conftest.tmp" "conftest.in"
14243     cp "conftest.in" "conftest.nl"
14244     $as_echo '' >> "conftest.nl"
14245     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
14246     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
14247     as_fn_arith $ac_count + 1 && ac_count=$as_val
14248     if test $ac_count -gt ${ac_path_SED_max-0}; then
14249       # Best one so far, save it but keep looking for a better one
14250       ac_cv_path_SED="$ac_path_SED"
14251       ac_path_SED_max=$ac_count
14252     fi
14253     # 10*(2^10) chars as input seems more than enough
14254     test $ac_count -gt 10 && break
14255   done
14256   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
14257 esac
14258 
14259       $ac_path_SED_found && break 3
14260     done
14261   done
14262   done
14263 IFS=$as_save_IFS
14264   if test -z "$ac_cv_path_SED"; then
14265     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
14266   fi
14267 else
14268   ac_cv_path_SED=$SED
14269 fi
14270 
14271 fi
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
14273 $as_echo "$ac_cv_path_SED" >&6; }
14274  SED="$ac_cv_path_SED"
14275   rm -f conftest.sed
14276 
14277     else
14278       # If it succeeded, then it was overridden by the user. We will use it
14279       # for the tool.
14280 
14281       # First remove it from the list of overridden variables, so we can test
14282       # for unknown variables in the end.
14283       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14284 
14285       # Check if we try to supply an empty value
14286       if test "x$SED" = x; then
14287         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SED= (no value)" >&5
14288 $as_echo "$as_me: Setting user supplied tool SED= (no value)" >&6;}
14289         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5
14290 $as_echo_n "checking for SED... " >&6; }
14291         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14292 $as_echo "disabled" >&6; }
14293       else
14294         # Check if the provided tool contains a complete path.
14295         tool_specified="$SED"
14296         tool_basename="${tool_specified##*/}"
14297         if test "x$tool_basename" = "x$tool_specified"; then
14298           # A command without a complete path is provided, search $PATH.
14299           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5
14300 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;}
14301           # Extract the first word of "$tool_basename", so it can be a program name with args.
14302 set dummy $tool_basename; ac_word=$2
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14304 $as_echo_n "checking for $ac_word... " >&6; }
14305 if ${ac_cv_path_SED+:} false; then :
14306   $as_echo_n "(cached) " >&6
14307 else
14308   case $SED in
14309   [\\/]* | ?:[\\/]*)
14310   ac_cv_path_SED="$SED" # Let the user override the test with a path.
14311   ;;
14312   *)
14313   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14314 for as_dir in $PATH
14315 do
14316   IFS=$as_save_IFS
14317   test -z "$as_dir" && as_dir=.
14318     for ac_exec_ext in '' $ac_executable_extensions; do
14319   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14320     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
14321     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14322     break 2
14323   fi
14324 done
14325   done
14326 IFS=$as_save_IFS
14327 
14328   ;;
14329 esac
14330 fi
14331 SED=$ac_cv_path_SED
14332 if test -n "$SED"; then
14333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
14334 $as_echo "$SED" >&6; }
14335 else
14336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14337 $as_echo "no" >&6; }
14338 fi
14339 
14340 
14341           if test "x$SED" = x; then
14342             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14343           fi
14344         else
14345           # Otherwise we believe it is a complete path. Use it as it is.
14346           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5
14347 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;}
14348           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5
14349 $as_echo_n "checking for SED... " >&6; }
14350           if test ! -x "$tool_specified"; then
14351             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14352 $as_echo "not found" >&6; }
14353             as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5
14354           fi
14355           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14356 $as_echo "$tool_specified" >&6; }
14357         fi
14358       fi
14359     fi
14360 
14361   fi
14362 
14363 
14364   if test "x$SED" = x; then
14365     as_fn_error $? "Could not find required tool for SED" "$LINENO" 5
14366   fi
14367 
14368 
14369 
14370   # Always force rm.
14371   RM="$RM -f"
14372 
14373   # pwd behaves differently on various platforms and some don't support the -L flag.
14374   # Always use the bash builtin pwd to get uniform behavior.
14375   THEPWDCMD=pwd
14376 
14377   # These are not required on all platforms
14378 
14379 
14380   # Publish this variable in the help.
14381 
14382 
14383   if [ -z "${CYGPATH+x}" ]; then
14384     # The variable is not set by user, try to locate tool using the code snippet
14385     for ac_prog in cygpath
14386 do
14387   # Extract the first word of "$ac_prog", so it can be a program name with args.
14388 set dummy $ac_prog; ac_word=$2
14389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14390 $as_echo_n "checking for $ac_word... " >&6; }
14391 if ${ac_cv_path_CYGPATH+:} false; then :
14392   $as_echo_n "(cached) " >&6
14393 else
14394   case $CYGPATH in
14395   [\\/]* | ?:[\\/]*)
14396   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
14397   ;;
14398   *)
14399   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14400 for as_dir in $PATH
14401 do
14402   IFS=$as_save_IFS
14403   test -z "$as_dir" && as_dir=.
14404     for ac_exec_ext in '' $ac_executable_extensions; do
14405   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14406     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
14407     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14408     break 2
14409   fi
14410 done
14411   done
14412 IFS=$as_save_IFS
14413 
14414   ;;
14415 esac
14416 fi
14417 CYGPATH=$ac_cv_path_CYGPATH
14418 if test -n "$CYGPATH"; then
14419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
14420 $as_echo "$CYGPATH" >&6; }
14421 else
14422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14423 $as_echo "no" >&6; }
14424 fi
14425 
14426 
14427   test -n "$CYGPATH" && break
14428 done
14429 
14430   else
14431     # The variable is set, but is it from the command line or the environment?
14432 
14433     # Try to remove the string !CYGPATH! from our list.
14434     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/}
14435     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14436       # If it failed, the variable was not from the command line. Ignore it,
14437       # but warn the user (except for BASH, which is always set by the calling BASH).
14438       if test "xCYGPATH" != xBASH; then
14439         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5
14440 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;}
14441       fi
14442       # Try to locate tool using the code snippet
14443       for ac_prog in cygpath
14444 do
14445   # Extract the first word of "$ac_prog", so it can be a program name with args.
14446 set dummy $ac_prog; ac_word=$2
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14448 $as_echo_n "checking for $ac_word... " >&6; }
14449 if ${ac_cv_path_CYGPATH+:} false; then :
14450   $as_echo_n "(cached) " >&6
14451 else
14452   case $CYGPATH in
14453   [\\/]* | ?:[\\/]*)
14454   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
14455   ;;
14456   *)
14457   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14458 for as_dir in $PATH
14459 do
14460   IFS=$as_save_IFS
14461   test -z "$as_dir" && as_dir=.
14462     for ac_exec_ext in '' $ac_executable_extensions; do
14463   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14464     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
14465     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14466     break 2
14467   fi
14468 done
14469   done
14470 IFS=$as_save_IFS
14471 
14472   ;;
14473 esac
14474 fi
14475 CYGPATH=$ac_cv_path_CYGPATH
14476 if test -n "$CYGPATH"; then
14477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
14478 $as_echo "$CYGPATH" >&6; }
14479 else
14480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14481 $as_echo "no" >&6; }
14482 fi
14483 
14484 
14485   test -n "$CYGPATH" && break
14486 done
14487 
14488     else
14489       # If it succeeded, then it was overridden by the user. We will use it
14490       # for the tool.
14491 
14492       # First remove it from the list of overridden variables, so we can test
14493       # for unknown variables in the end.
14494       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14495 
14496       # Check if we try to supply an empty value
14497       if test "x$CYGPATH" = x; then
14498         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CYGPATH= (no value)" >&5
14499 $as_echo "$as_me: Setting user supplied tool CYGPATH= (no value)" >&6;}
14500         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5
14501 $as_echo_n "checking for CYGPATH... " >&6; }
14502         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14503 $as_echo "disabled" >&6; }
14504       else
14505         # Check if the provided tool contains a complete path.
14506         tool_specified="$CYGPATH"
14507         tool_basename="${tool_specified##*/}"
14508         if test "x$tool_basename" = "x$tool_specified"; then
14509           # A command without a complete path is provided, search $PATH.
14510           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5
14511 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;}
14512           # Extract the first word of "$tool_basename", so it can be a program name with args.
14513 set dummy $tool_basename; ac_word=$2
14514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14515 $as_echo_n "checking for $ac_word... " >&6; }
14516 if ${ac_cv_path_CYGPATH+:} false; then :
14517   $as_echo_n "(cached) " >&6
14518 else
14519   case $CYGPATH in
14520   [\\/]* | ?:[\\/]*)
14521   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
14522   ;;
14523   *)
14524   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14525 for as_dir in $PATH
14526 do
14527   IFS=$as_save_IFS
14528   test -z "$as_dir" && as_dir=.
14529     for ac_exec_ext in '' $ac_executable_extensions; do
14530   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14531     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
14532     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14533     break 2
14534   fi
14535 done
14536   done
14537 IFS=$as_save_IFS
14538 
14539   ;;
14540 esac
14541 fi
14542 CYGPATH=$ac_cv_path_CYGPATH
14543 if test -n "$CYGPATH"; then
14544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
14545 $as_echo "$CYGPATH" >&6; }
14546 else
14547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14548 $as_echo "no" >&6; }
14549 fi
14550 
14551 
14552           if test "x$CYGPATH" = x; then
14553             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14554           fi
14555         else
14556           # Otherwise we believe it is a complete path. Use it as it is.
14557           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5
14558 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;}
14559           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5
14560 $as_echo_n "checking for CYGPATH... " >&6; }
14561           if test ! -x "$tool_specified"; then
14562             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14563 $as_echo "not found" >&6; }
14564             as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5
14565           fi
14566           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14567 $as_echo "$tool_specified" >&6; }
14568         fi
14569       fi
14570     fi
14571 
14572   fi
14573 
14574 
14575 
14576 
14577   # Publish this variable in the help.
14578 
14579 
14580   if [ -z "${READLINK+x}" ]; then
14581     # The variable is not set by user, try to locate tool using the code snippet
14582     for ac_prog in greadlink readlink
14583 do
14584   # Extract the first word of "$ac_prog", so it can be a program name with args.
14585 set dummy $ac_prog; ac_word=$2
14586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14587 $as_echo_n "checking for $ac_word... " >&6; }
14588 if ${ac_cv_path_READLINK+:} false; then :
14589   $as_echo_n "(cached) " >&6
14590 else
14591   case $READLINK in
14592   [\\/]* | ?:[\\/]*)
14593   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
14594   ;;
14595   *)
14596   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14597 for as_dir in $PATH
14598 do
14599   IFS=$as_save_IFS
14600   test -z "$as_dir" && as_dir=.
14601     for ac_exec_ext in '' $ac_executable_extensions; do
14602   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14603     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
14604     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14605     break 2
14606   fi
14607 done
14608   done
14609 IFS=$as_save_IFS
14610 
14611   ;;
14612 esac
14613 fi
14614 READLINK=$ac_cv_path_READLINK
14615 if test -n "$READLINK"; then
14616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
14617 $as_echo "$READLINK" >&6; }
14618 else
14619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14620 $as_echo "no" >&6; }
14621 fi
14622 
14623 
14624   test -n "$READLINK" && break
14625 done
14626 
14627   else
14628     # The variable is set, but is it from the command line or the environment?
14629 
14630     # Try to remove the string !READLINK! from our list.
14631     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/}
14632     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14633       # If it failed, the variable was not from the command line. Ignore it,
14634       # but warn the user (except for BASH, which is always set by the calling BASH).
14635       if test "xREADLINK" != xBASH; then
14636         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5
14637 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;}
14638       fi
14639       # Try to locate tool using the code snippet
14640       for ac_prog in greadlink readlink
14641 do
14642   # Extract the first word of "$ac_prog", so it can be a program name with args.
14643 set dummy $ac_prog; ac_word=$2
14644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14645 $as_echo_n "checking for $ac_word... " >&6; }
14646 if ${ac_cv_path_READLINK+:} false; then :
14647   $as_echo_n "(cached) " >&6
14648 else
14649   case $READLINK in
14650   [\\/]* | ?:[\\/]*)
14651   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
14652   ;;
14653   *)
14654   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14655 for as_dir in $PATH
14656 do
14657   IFS=$as_save_IFS
14658   test -z "$as_dir" && as_dir=.
14659     for ac_exec_ext in '' $ac_executable_extensions; do
14660   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14661     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
14662     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14663     break 2
14664   fi
14665 done
14666   done
14667 IFS=$as_save_IFS
14668 
14669   ;;
14670 esac
14671 fi
14672 READLINK=$ac_cv_path_READLINK
14673 if test -n "$READLINK"; then
14674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
14675 $as_echo "$READLINK" >&6; }
14676 else
14677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14678 $as_echo "no" >&6; }
14679 fi
14680 
14681 
14682   test -n "$READLINK" && break
14683 done
14684 
14685     else
14686       # If it succeeded, then it was overridden by the user. We will use it
14687       # for the tool.
14688 
14689       # First remove it from the list of overridden variables, so we can test
14690       # for unknown variables in the end.
14691       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14692 
14693       # Check if we try to supply an empty value
14694       if test "x$READLINK" = x; then
14695         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool READLINK= (no value)" >&5
14696 $as_echo "$as_me: Setting user supplied tool READLINK= (no value)" >&6;}
14697         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5
14698 $as_echo_n "checking for READLINK... " >&6; }
14699         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14700 $as_echo "disabled" >&6; }
14701       else
14702         # Check if the provided tool contains a complete path.
14703         tool_specified="$READLINK"
14704         tool_basename="${tool_specified##*/}"
14705         if test "x$tool_basename" = "x$tool_specified"; then
14706           # A command without a complete path is provided, search $PATH.
14707           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5
14708 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;}
14709           # Extract the first word of "$tool_basename", so it can be a program name with args.
14710 set dummy $tool_basename; ac_word=$2
14711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14712 $as_echo_n "checking for $ac_word... " >&6; }
14713 if ${ac_cv_path_READLINK+:} false; then :
14714   $as_echo_n "(cached) " >&6
14715 else
14716   case $READLINK in
14717   [\\/]* | ?:[\\/]*)
14718   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
14719   ;;
14720   *)
14721   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14722 for as_dir in $PATH
14723 do
14724   IFS=$as_save_IFS
14725   test -z "$as_dir" && as_dir=.
14726     for ac_exec_ext in '' $ac_executable_extensions; do
14727   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14728     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
14729     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14730     break 2
14731   fi
14732 done
14733   done
14734 IFS=$as_save_IFS
14735 
14736   ;;
14737 esac
14738 fi
14739 READLINK=$ac_cv_path_READLINK
14740 if test -n "$READLINK"; then
14741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
14742 $as_echo "$READLINK" >&6; }
14743 else
14744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14745 $as_echo "no" >&6; }
14746 fi
14747 
14748 
14749           if test "x$READLINK" = x; then
14750             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14751           fi
14752         else
14753           # Otherwise we believe it is a complete path. Use it as it is.
14754           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5
14755 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;}
14756           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5
14757 $as_echo_n "checking for READLINK... " >&6; }
14758           if test ! -x "$tool_specified"; then
14759             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14760 $as_echo "not found" >&6; }
14761             as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5
14762           fi
14763           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14764 $as_echo "$tool_specified" >&6; }
14765         fi
14766       fi
14767     fi
14768 
14769   fi
14770 
14771 
14772 
14773 
14774   # Publish this variable in the help.
14775 
14776 
14777   if [ -z "${DF+x}" ]; then
14778     # The variable is not set by user, try to locate tool using the code snippet
14779     for ac_prog in df
14780 do
14781   # Extract the first word of "$ac_prog", so it can be a program name with args.
14782 set dummy $ac_prog; ac_word=$2
14783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14784 $as_echo_n "checking for $ac_word... " >&6; }
14785 if ${ac_cv_path_DF+:} false; then :
14786   $as_echo_n "(cached) " >&6
14787 else
14788   case $DF in
14789   [\\/]* | ?:[\\/]*)
14790   ac_cv_path_DF="$DF" # Let the user override the test with a path.
14791   ;;
14792   *)
14793   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14794 for as_dir in $PATH
14795 do
14796   IFS=$as_save_IFS
14797   test -z "$as_dir" && as_dir=.
14798     for ac_exec_ext in '' $ac_executable_extensions; do
14799   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14800     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
14801     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14802     break 2
14803   fi
14804 done
14805   done
14806 IFS=$as_save_IFS
14807 
14808   ;;
14809 esac
14810 fi
14811 DF=$ac_cv_path_DF
14812 if test -n "$DF"; then
14813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
14814 $as_echo "$DF" >&6; }
14815 else
14816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14817 $as_echo "no" >&6; }
14818 fi
14819 
14820 
14821   test -n "$DF" && break
14822 done
14823 
14824   else
14825     # The variable is set, but is it from the command line or the environment?
14826 
14827     # Try to remove the string !DF! from our list.
14828     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/}
14829     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14830       # If it failed, the variable was not from the command line. Ignore it,
14831       # but warn the user (except for BASH, which is always set by the calling BASH).
14832       if test "xDF" != xBASH; then
14833         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5
14834 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;}
14835       fi
14836       # Try to locate tool using the code snippet
14837       for ac_prog in df
14838 do
14839   # Extract the first word of "$ac_prog", so it can be a program name with args.
14840 set dummy $ac_prog; ac_word=$2
14841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14842 $as_echo_n "checking for $ac_word... " >&6; }
14843 if ${ac_cv_path_DF+:} false; then :
14844   $as_echo_n "(cached) " >&6
14845 else
14846   case $DF in
14847   [\\/]* | ?:[\\/]*)
14848   ac_cv_path_DF="$DF" # Let the user override the test with a path.
14849   ;;
14850   *)
14851   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14852 for as_dir in $PATH
14853 do
14854   IFS=$as_save_IFS
14855   test -z "$as_dir" && as_dir=.
14856     for ac_exec_ext in '' $ac_executable_extensions; do
14857   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14858     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
14859     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14860     break 2
14861   fi
14862 done
14863   done
14864 IFS=$as_save_IFS
14865 
14866   ;;
14867 esac
14868 fi
14869 DF=$ac_cv_path_DF
14870 if test -n "$DF"; then
14871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
14872 $as_echo "$DF" >&6; }
14873 else
14874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14875 $as_echo "no" >&6; }
14876 fi
14877 
14878 
14879   test -n "$DF" && break
14880 done
14881 
14882     else
14883       # If it succeeded, then it was overridden by the user. We will use it
14884       # for the tool.
14885 
14886       # First remove it from the list of overridden variables, so we can test
14887       # for unknown variables in the end.
14888       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14889 
14890       # Check if we try to supply an empty value
14891       if test "x$DF" = x; then
14892         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DF= (no value)" >&5
14893 $as_echo "$as_me: Setting user supplied tool DF= (no value)" >&6;}
14894         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5
14895 $as_echo_n "checking for DF... " >&6; }
14896         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14897 $as_echo "disabled" >&6; }
14898       else
14899         # Check if the provided tool contains a complete path.
14900         tool_specified="$DF"
14901         tool_basename="${tool_specified##*/}"
14902         if test "x$tool_basename" = "x$tool_specified"; then
14903           # A command without a complete path is provided, search $PATH.
14904           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5
14905 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;}
14906           # Extract the first word of "$tool_basename", so it can be a program name with args.
14907 set dummy $tool_basename; ac_word=$2
14908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14909 $as_echo_n "checking for $ac_word... " >&6; }
14910 if ${ac_cv_path_DF+:} false; then :
14911   $as_echo_n "(cached) " >&6
14912 else
14913   case $DF in
14914   [\\/]* | ?:[\\/]*)
14915   ac_cv_path_DF="$DF" # Let the user override the test with a path.
14916   ;;
14917   *)
14918   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14919 for as_dir in $PATH
14920 do
14921   IFS=$as_save_IFS
14922   test -z "$as_dir" && as_dir=.
14923     for ac_exec_ext in '' $ac_executable_extensions; do
14924   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14925     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
14926     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14927     break 2
14928   fi
14929 done
14930   done
14931 IFS=$as_save_IFS
14932 
14933   ;;
14934 esac
14935 fi
14936 DF=$ac_cv_path_DF
14937 if test -n "$DF"; then
14938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
14939 $as_echo "$DF" >&6; }
14940 else
14941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14942 $as_echo "no" >&6; }
14943 fi
14944 
14945 
14946           if test "x$DF" = x; then
14947             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14948           fi
14949         else
14950           # Otherwise we believe it is a complete path. Use it as it is.
14951           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5
14952 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;}
14953           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5
14954 $as_echo_n "checking for DF... " >&6; }
14955           if test ! -x "$tool_specified"; then
14956             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14957 $as_echo "not found" >&6; }
14958             as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5
14959           fi
14960           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14961 $as_echo "$tool_specified" >&6; }
14962         fi
14963       fi
14964     fi
14965 
14966   fi
14967 
14968 
14969 
14970 
14971   # Publish this variable in the help.
14972 
14973 
14974   if [ -z "${CPIO+x}" ]; then
14975     # The variable is not set by user, try to locate tool using the code snippet
14976     for ac_prog in cpio bsdcpio
14977 do
14978   # Extract the first word of "$ac_prog", so it can be a program name with args.
14979 set dummy $ac_prog; ac_word=$2
14980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14981 $as_echo_n "checking for $ac_word... " >&6; }
14982 if ${ac_cv_path_CPIO+:} false; then :
14983   $as_echo_n "(cached) " >&6
14984 else
14985   case $CPIO in
14986   [\\/]* | ?:[\\/]*)
14987   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
14988   ;;
14989   *)
14990   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14991 for as_dir in $PATH
14992 do
14993   IFS=$as_save_IFS
14994   test -z "$as_dir" && as_dir=.
14995     for ac_exec_ext in '' $ac_executable_extensions; do
14996   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14997     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
14998     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14999     break 2
15000   fi
15001 done
15002   done
15003 IFS=$as_save_IFS
15004 
15005   ;;
15006 esac
15007 fi
15008 CPIO=$ac_cv_path_CPIO
15009 if test -n "$CPIO"; then
15010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
15011 $as_echo "$CPIO" >&6; }
15012 else
15013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15014 $as_echo "no" >&6; }
15015 fi
15016 
15017 
15018   test -n "$CPIO" && break
15019 done
15020 
15021   else
15022     # The variable is set, but is it from the command line or the environment?
15023 
15024     # Try to remove the string !CPIO! from our list.
15025     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/}
15026     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
15027       # If it failed, the variable was not from the command line. Ignore it,
15028       # but warn the user (except for BASH, which is always set by the calling BASH).
15029       if test "xCPIO" != xBASH; then
15030         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5
15031 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;}
15032       fi
15033       # Try to locate tool using the code snippet
15034       for ac_prog in cpio bsdcpio
15035 do
15036   # Extract the first word of "$ac_prog", so it can be a program name with args.
15037 set dummy $ac_prog; ac_word=$2
15038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15039 $as_echo_n "checking for $ac_word... " >&6; }
15040 if ${ac_cv_path_CPIO+:} false; then :
15041   $as_echo_n "(cached) " >&6
15042 else
15043   case $CPIO in
15044   [\\/]* | ?:[\\/]*)
15045   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
15046   ;;
15047   *)
15048   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15049 for as_dir in $PATH
15050 do
15051   IFS=$as_save_IFS
15052   test -z "$as_dir" && as_dir=.
15053     for ac_exec_ext in '' $ac_executable_extensions; do
15054   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15055     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
15056     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15057     break 2
15058   fi
15059 done
15060   done
15061 IFS=$as_save_IFS
15062 
15063   ;;
15064 esac
15065 fi
15066 CPIO=$ac_cv_path_CPIO
15067 if test -n "$CPIO"; then
15068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
15069 $as_echo "$CPIO" >&6; }
15070 else
15071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15072 $as_echo "no" >&6; }
15073 fi
15074 
15075 
15076   test -n "$CPIO" && break
15077 done
15078 
15079     else
15080       # If it succeeded, then it was overridden by the user. We will use it
15081       # for the tool.
15082 
15083       # First remove it from the list of overridden variables, so we can test
15084       # for unknown variables in the end.
15085       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
15086 
15087       # Check if we try to supply an empty value
15088       if test "x$CPIO" = x; then
15089         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CPIO= (no value)" >&5
15090 $as_echo "$as_me: Setting user supplied tool CPIO= (no value)" >&6;}
15091         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5
15092 $as_echo_n "checking for CPIO... " >&6; }
15093         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
15094 $as_echo "disabled" >&6; }
15095       else
15096         # Check if the provided tool contains a complete path.
15097         tool_specified="$CPIO"
15098         tool_basename="${tool_specified##*/}"
15099         if test "x$tool_basename" = "x$tool_specified"; then
15100           # A command without a complete path is provided, search $PATH.
15101           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5
15102 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;}
15103           # Extract the first word of "$tool_basename", so it can be a program name with args.
15104 set dummy $tool_basename; ac_word=$2
15105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15106 $as_echo_n "checking for $ac_word... " >&6; }
15107 if ${ac_cv_path_CPIO+:} false; then :
15108   $as_echo_n "(cached) " >&6
15109 else
15110   case $CPIO in
15111   [\\/]* | ?:[\\/]*)
15112   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
15113   ;;
15114   *)
15115   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15116 for as_dir in $PATH
15117 do
15118   IFS=$as_save_IFS
15119   test -z "$as_dir" && as_dir=.
15120     for ac_exec_ext in '' $ac_executable_extensions; do
15121   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15122     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
15123     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15124     break 2
15125   fi
15126 done
15127   done
15128 IFS=$as_save_IFS
15129 
15130   ;;
15131 esac
15132 fi
15133 CPIO=$ac_cv_path_CPIO
15134 if test -n "$CPIO"; then
15135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
15136 $as_echo "$CPIO" >&6; }
15137 else
15138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15139 $as_echo "no" >&6; }
15140 fi
15141 
15142 
15143           if test "x$CPIO" = x; then
15144             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
15145           fi
15146         else
15147           # Otherwise we believe it is a complete path. Use it as it is.
15148           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5
15149 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;}
15150           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5
15151 $as_echo_n "checking for CPIO... " >&6; }
15152           if test ! -x "$tool_specified"; then
15153             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15154 $as_echo "not found" >&6; }
15155             as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5
15156           fi
15157           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
15158 $as_echo "$tool_specified" >&6; }
15159         fi
15160       fi
15161     fi
15162 
15163   fi
15164 
15165 
15166 
15167 
15168   # Publish this variable in the help.
15169 
15170 
15171   if [ -z "${NICE+x}" ]; then
15172     # The variable is not set by user, try to locate tool using the code snippet
15173     for ac_prog in nice
15174 do
15175   # Extract the first word of "$ac_prog", so it can be a program name with args.
15176 set dummy $ac_prog; ac_word=$2
15177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15178 $as_echo_n "checking for $ac_word... " >&6; }
15179 if ${ac_cv_path_NICE+:} false; then :
15180   $as_echo_n "(cached) " >&6
15181 else
15182   case $NICE in
15183   [\\/]* | ?:[\\/]*)
15184   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
15185   ;;
15186   *)
15187   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15188 for as_dir in $PATH
15189 do
15190   IFS=$as_save_IFS
15191   test -z "$as_dir" && as_dir=.
15192     for ac_exec_ext in '' $ac_executable_extensions; do
15193   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15194     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
15195     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15196     break 2
15197   fi
15198 done
15199   done
15200 IFS=$as_save_IFS
15201 
15202   ;;
15203 esac
15204 fi
15205 NICE=$ac_cv_path_NICE
15206 if test -n "$NICE"; then
15207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5
15208 $as_echo "$NICE" >&6; }
15209 else
15210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15211 $as_echo "no" >&6; }
15212 fi
15213 
15214 
15215   test -n "$NICE" && break
15216 done
15217 
15218   else
15219     # The variable is set, but is it from the command line or the environment?
15220 
15221     # Try to remove the string !NICE! from our list.
15222     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NICE!/}
15223     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
15224       # If it failed, the variable was not from the command line. Ignore it,
15225       # but warn the user (except for BASH, which is always set by the calling BASH).
15226       if test "xNICE" != xBASH; then
15227         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NICE from the environment. Use command line variables instead." >&5
15228 $as_echo "$as_me: WARNING: Ignoring value of NICE from the environment. Use command line variables instead." >&2;}
15229       fi
15230       # Try to locate tool using the code snippet
15231       for ac_prog in nice
15232 do
15233   # Extract the first word of "$ac_prog", so it can be a program name with args.
15234 set dummy $ac_prog; ac_word=$2
15235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15236 $as_echo_n "checking for $ac_word... " >&6; }
15237 if ${ac_cv_path_NICE+:} false; then :
15238   $as_echo_n "(cached) " >&6
15239 else
15240   case $NICE in
15241   [\\/]* | ?:[\\/]*)
15242   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
15243   ;;
15244   *)
15245   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15246 for as_dir in $PATH
15247 do
15248   IFS=$as_save_IFS
15249   test -z "$as_dir" && as_dir=.
15250     for ac_exec_ext in '' $ac_executable_extensions; do
15251   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15252     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
15253     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15254     break 2
15255   fi
15256 done
15257   done
15258 IFS=$as_save_IFS
15259 
15260   ;;
15261 esac
15262 fi
15263 NICE=$ac_cv_path_NICE
15264 if test -n "$NICE"; then
15265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5
15266 $as_echo "$NICE" >&6; }
15267 else
15268   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15269 $as_echo "no" >&6; }
15270 fi
15271 
15272 
15273   test -n "$NICE" && break
15274 done
15275 
15276     else
15277       # If it succeeded, then it was overridden by the user. We will use it
15278       # for the tool.
15279 
15280       # First remove it from the list of overridden variables, so we can test
15281       # for unknown variables in the end.
15282       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
15283 
15284       # Check if we try to supply an empty value
15285       if test "x$NICE" = x; then
15286         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NICE= (no value)" >&5
15287 $as_echo "$as_me: Setting user supplied tool NICE= (no value)" >&6;}
15288         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NICE" >&5
15289 $as_echo_n "checking for NICE... " >&6; }
15290         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
15291 $as_echo "disabled" >&6; }
15292       else
15293         # Check if the provided tool contains a complete path.
15294         tool_specified="$NICE"
15295         tool_basename="${tool_specified##*/}"
15296         if test "x$tool_basename" = "x$tool_specified"; then
15297           # A command without a complete path is provided, search $PATH.
15298           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NICE=$tool_basename" >&5
15299 $as_echo "$as_me: Will search for user supplied tool NICE=$tool_basename" >&6;}
15300           # Extract the first word of "$tool_basename", so it can be a program name with args.
15301 set dummy $tool_basename; ac_word=$2
15302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15303 $as_echo_n "checking for $ac_word... " >&6; }
15304 if ${ac_cv_path_NICE+:} false; then :
15305   $as_echo_n "(cached) " >&6
15306 else
15307   case $NICE in
15308   [\\/]* | ?:[\\/]*)
15309   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
15310   ;;
15311   *)
15312   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15313 for as_dir in $PATH
15314 do
15315   IFS=$as_save_IFS
15316   test -z "$as_dir" && as_dir=.
15317     for ac_exec_ext in '' $ac_executable_extensions; do
15318   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15319     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
15320     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15321     break 2
15322   fi
15323 done
15324   done
15325 IFS=$as_save_IFS
15326 
15327   ;;
15328 esac
15329 fi
15330 NICE=$ac_cv_path_NICE
15331 if test -n "$NICE"; then
15332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5
15333 $as_echo "$NICE" >&6; }
15334 else
15335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15336 $as_echo "no" >&6; }
15337 fi
15338 
15339 
15340           if test "x$NICE" = x; then
15341             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
15342           fi
15343         else
15344           # Otherwise we believe it is a complete path. Use it as it is.
15345           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NICE=$tool_specified" >&5
15346 $as_echo "$as_me: Will use user supplied tool NICE=$tool_specified" >&6;}
15347           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NICE" >&5
15348 $as_echo_n "checking for NICE... " >&6; }
15349           if test ! -x "$tool_specified"; then
15350             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15351 $as_echo "not found" >&6; }
15352             as_fn_error $? "User supplied tool NICE=$tool_specified does not exist or is not executable" "$LINENO" 5
15353           fi
15354           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
15355 $as_echo "$tool_specified" >&6; }
15356         fi
15357       fi
15358     fi
15359 
15360   fi
15361 
15362 
15363 
15364 
15365   # Publish this variable in the help.
15366 
15367 
15368   if [ -z "${PANDOC+x}" ]; then
15369     # The variable is not set by user, try to locate tool using the code snippet
15370     for ac_prog in pandoc
15371 do
15372   # Extract the first word of "$ac_prog", so it can be a program name with args.
15373 set dummy $ac_prog; ac_word=$2
15374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15375 $as_echo_n "checking for $ac_word... " >&6; }
15376 if ${ac_cv_path_PANDOC+:} false; then :
15377   $as_echo_n "(cached) " >&6
15378 else
15379   case $PANDOC in
15380   [\\/]* | ?:[\\/]*)
15381   ac_cv_path_PANDOC="$PANDOC" # Let the user override the test with a path.
15382   ;;
15383   *)
15384   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15385 for as_dir in $PATH
15386 do
15387   IFS=$as_save_IFS
15388   test -z "$as_dir" && as_dir=.
15389     for ac_exec_ext in '' $ac_executable_extensions; do
15390   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15391     ac_cv_path_PANDOC="$as_dir/$ac_word$ac_exec_ext"
15392     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15393     break 2
15394   fi
15395 done
15396   done
15397 IFS=$as_save_IFS
15398 
15399   ;;
15400 esac
15401 fi
15402 PANDOC=$ac_cv_path_PANDOC
15403 if test -n "$PANDOC"; then
15404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANDOC" >&5
15405 $as_echo "$PANDOC" >&6; }
15406 else
15407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15408 $as_echo "no" >&6; }
15409 fi
15410 
15411 
15412   test -n "$PANDOC" && break
15413 done
15414 
15415   else
15416     # The variable is set, but is it from the command line or the environment?
15417 
15418     # Try to remove the string !PANDOC! from our list.
15419     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PANDOC!/}
15420     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
15421       # If it failed, the variable was not from the command line. Ignore it,
15422       # but warn the user (except for BASH, which is always set by the calling BASH).
15423       if test "xPANDOC" != xBASH; then
15424         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PANDOC from the environment. Use command line variables instead." >&5
15425 $as_echo "$as_me: WARNING: Ignoring value of PANDOC from the environment. Use command line variables instead." >&2;}
15426       fi
15427       # Try to locate tool using the code snippet
15428       for ac_prog in pandoc
15429 do
15430   # Extract the first word of "$ac_prog", so it can be a program name with args.
15431 set dummy $ac_prog; ac_word=$2
15432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15433 $as_echo_n "checking for $ac_word... " >&6; }
15434 if ${ac_cv_path_PANDOC+:} false; then :
15435   $as_echo_n "(cached) " >&6
15436 else
15437   case $PANDOC in
15438   [\\/]* | ?:[\\/]*)
15439   ac_cv_path_PANDOC="$PANDOC" # Let the user override the test with a path.
15440   ;;
15441   *)
15442   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15443 for as_dir in $PATH
15444 do
15445   IFS=$as_save_IFS
15446   test -z "$as_dir" && as_dir=.
15447     for ac_exec_ext in '' $ac_executable_extensions; do
15448   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15449     ac_cv_path_PANDOC="$as_dir/$ac_word$ac_exec_ext"
15450     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15451     break 2
15452   fi
15453 done
15454   done
15455 IFS=$as_save_IFS
15456 
15457   ;;
15458 esac
15459 fi
15460 PANDOC=$ac_cv_path_PANDOC
15461 if test -n "$PANDOC"; then
15462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANDOC" >&5
15463 $as_echo "$PANDOC" >&6; }
15464 else
15465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15466 $as_echo "no" >&6; }
15467 fi
15468 
15469 
15470   test -n "$PANDOC" && break
15471 done
15472 
15473     else
15474       # If it succeeded, then it was overridden by the user. We will use it
15475       # for the tool.
15476 
15477       # First remove it from the list of overridden variables, so we can test
15478       # for unknown variables in the end.
15479       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
15480 
15481       # Check if we try to supply an empty value
15482       if test "x$PANDOC" = x; then
15483         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PANDOC= (no value)" >&5
15484 $as_echo "$as_me: Setting user supplied tool PANDOC= (no value)" >&6;}
15485         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANDOC" >&5
15486 $as_echo_n "checking for PANDOC... " >&6; }
15487         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
15488 $as_echo "disabled" >&6; }
15489       else
15490         # Check if the provided tool contains a complete path.
15491         tool_specified="$PANDOC"
15492         tool_basename="${tool_specified##*/}"
15493         if test "x$tool_basename" = "x$tool_specified"; then
15494           # A command without a complete path is provided, search $PATH.
15495           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PANDOC=$tool_basename" >&5
15496 $as_echo "$as_me: Will search for user supplied tool PANDOC=$tool_basename" >&6;}
15497           # Extract the first word of "$tool_basename", so it can be a program name with args.
15498 set dummy $tool_basename; ac_word=$2
15499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15500 $as_echo_n "checking for $ac_word... " >&6; }
15501 if ${ac_cv_path_PANDOC+:} false; then :
15502   $as_echo_n "(cached) " >&6
15503 else
15504   case $PANDOC in
15505   [\\/]* | ?:[\\/]*)
15506   ac_cv_path_PANDOC="$PANDOC" # Let the user override the test with a path.
15507   ;;
15508   *)
15509   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15510 for as_dir in $PATH
15511 do
15512   IFS=$as_save_IFS
15513   test -z "$as_dir" && as_dir=.
15514     for ac_exec_ext in '' $ac_executable_extensions; do
15515   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15516     ac_cv_path_PANDOC="$as_dir/$ac_word$ac_exec_ext"
15517     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15518     break 2
15519   fi
15520 done
15521   done
15522 IFS=$as_save_IFS
15523 
15524   ;;
15525 esac
15526 fi
15527 PANDOC=$ac_cv_path_PANDOC
15528 if test -n "$PANDOC"; then
15529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANDOC" >&5
15530 $as_echo "$PANDOC" >&6; }
15531 else
15532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15533 $as_echo "no" >&6; }
15534 fi
15535 
15536 
15537           if test "x$PANDOC" = x; then
15538             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
15539           fi
15540         else
15541           # Otherwise we believe it is a complete path. Use it as it is.
15542           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PANDOC=$tool_specified" >&5
15543 $as_echo "$as_me: Will use user supplied tool PANDOC=$tool_specified" >&6;}
15544           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANDOC" >&5
15545 $as_echo_n "checking for PANDOC... " >&6; }
15546           if test ! -x "$tool_specified"; then
15547             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15548 $as_echo "not found" >&6; }
15549             as_fn_error $? "User supplied tool PANDOC=$tool_specified does not exist or is not executable" "$LINENO" 5
15550           fi
15551           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
15552 $as_echo "$tool_specified" >&6; }
15553         fi
15554       fi
15555     fi
15556 
15557   fi
15558 
15559 
15560 
15561 
15562 # Now we can determine OpenJDK build and target platforms. This is required to
15563 # have early on.
15564 # Make sure we can run config.sub.
15565 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
15566   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
15567 
15568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
15569 $as_echo_n "checking build system type... " >&6; }
15570 if ${ac_cv_build+:} false; then :
15571   $as_echo_n "(cached) " >&6
15572 else
15573   ac_build_alias=$build_alias
15574 test "x$ac_build_alias" = x &&
15575   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
15576 test "x$ac_build_alias" = x &&
15577   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
15578 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
15579   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
15580 
15581 fi
15582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
15583 $as_echo "$ac_cv_build" >&6; }
15584 case $ac_cv_build in
15585 *-*-*) ;;
15586 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
15587 esac
15588 build=$ac_cv_build
15589 ac_save_IFS=$IFS; IFS='-'
15590 set x $ac_cv_build
15591 shift
15592 build_cpu=$1
15593 build_vendor=$2
15594 shift; shift
15595 # Remember, the first character of IFS is used to create $*,
15596 # except with old shells:
15597 build_os=$*
15598 IFS=$ac_save_IFS
15599 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
15600 
15601 
15602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
15603 $as_echo_n "checking host system type... " >&6; }
15604 if ${ac_cv_host+:} false; then :
15605   $as_echo_n "(cached) " >&6
15606 else
15607   if test "x$host_alias" = x; then
15608   ac_cv_host=$ac_cv_build
15609 else
15610   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
15611     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
15612 fi
15613 
15614 fi
15615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
15616 $as_echo "$ac_cv_host" >&6; }
15617 case $ac_cv_host in
15618 *-*-*) ;;
15619 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
15620 esac
15621 host=$ac_cv_host
15622 ac_save_IFS=$IFS; IFS='-'
15623 set x $ac_cv_host
15624 shift
15625 host_cpu=$1
15626 host_vendor=$2
15627 shift; shift
15628 # Remember, the first character of IFS is used to create $*,
15629 # except with old shells:
15630 host_os=$*
15631 IFS=$ac_save_IFS
15632 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
15633 
15634 
15635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
15636 $as_echo_n "checking target system type... " >&6; }
15637 if ${ac_cv_target+:} false; then :
15638   $as_echo_n "(cached) " >&6
15639 else
15640   if test "x$target_alias" = x; then
15641   ac_cv_target=$ac_cv_host
15642 else
15643   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
15644     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
15645 fi
15646 
15647 fi
15648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
15649 $as_echo "$ac_cv_target" >&6; }
15650 case $ac_cv_target in
15651 *-*-*) ;;
15652 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
15653 esac
15654 target=$ac_cv_target
15655 ac_save_IFS=$IFS; IFS='-'
15656 set x $ac_cv_target
15657 shift
15658 target_cpu=$1
15659 target_vendor=$2
15660 shift; shift
15661 # Remember, the first character of IFS is used to create $*,
15662 # except with old shells:
15663 target_os=$*
15664 IFS=$ac_save_IFS
15665 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
15666 
15667 
15668 # The aliases save the names the user supplied, while $host etc.
15669 # will get canonicalized.
15670 test -n "$target_alias" &&
15671   test "$program_prefix$program_suffix$program_transform_name" = \
15672     NONENONEs,x,x, &&
15673   program_prefix=${target_alias}-
15674 
15675   # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target"
15676   # is confusing; it assumes you are cross-compiling a cross-compiler (!)  and "target" is thus the target of the
15677   # product you're building. The target of this build is called "host". Since this is confusing to most people, we
15678   # have not adopted that system, but use "target" as the platform we are building for. In some places though we need
15679   # to use the configure naming style.
15680 
15681 
15682 
15683 
15684 
15685   # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME
15686   # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME
15687   # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build,
15688   # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME.
15689   OPENJDK_TARGET_AUTOCONF_NAME="$host"
15690   OPENJDK_BUILD_AUTOCONF_NAME="$build"
15691 
15692 
15693 
15694   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
15695 
15696   case "$build_os" in
15697     *linux*)
15698       VAR_OS=linux
15699       VAR_OS_TYPE=unix
15700       ;;
15701     *solaris*)
15702       VAR_OS=solaris
15703       VAR_OS_TYPE=unix
15704       ;;
15705     *darwin*)
15706       VAR_OS=macosx
15707       VAR_OS_TYPE=unix
15708       ;;
15709     *bsd*)
15710       VAR_OS=bsd
15711       VAR_OS_TYPE=unix
15712       ;;
15713     *cygwin*)
15714       VAR_OS=windows
15715       VAR_OS_ENV=windows.cygwin
15716       ;;
15717     *mingw*)
15718       VAR_OS=windows
15719       VAR_OS_ENV=windows.msys
15720       ;;
15721     *aix*)
15722       VAR_OS=aix
15723       VAR_OS_TYPE=unix
15724       ;;
15725     *)
15726       as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5
15727       ;;
15728   esac
15729 
15730 
15731   # First argument is the cpu name from the trip/quad
15732   case "$build_cpu" in
15733     x86_64)
15734       VAR_CPU=x86_64
15735       VAR_CPU_ARCH=x86
15736       VAR_CPU_BITS=64
15737       VAR_CPU_ENDIAN=little
15738       ;;
15739     i?86)
15740       VAR_CPU=x86
15741       VAR_CPU_ARCH=x86
15742       VAR_CPU_BITS=32
15743       VAR_CPU_ENDIAN=little
15744       ;;
15745     arm*)
15746       VAR_CPU=arm
15747       VAR_CPU_ARCH=arm
15748       VAR_CPU_BITS=32
15749       VAR_CPU_ENDIAN=little
15750       ;;
15751     aarch64)
15752       VAR_CPU=aarch64
15753       VAR_CPU_ARCH=aarch64
15754       VAR_CPU_BITS=64
15755       VAR_CPU_ENDIAN=little
15756       ;;
15757     powerpc)
15758       VAR_CPU=ppc
15759       VAR_CPU_ARCH=ppc
15760       VAR_CPU_BITS=32
15761       VAR_CPU_ENDIAN=big
15762       ;;
15763     powerpc64)
15764       VAR_CPU=ppc64
15765       VAR_CPU_ARCH=ppc
15766       VAR_CPU_BITS=64
15767       VAR_CPU_ENDIAN=big
15768       ;;
15769     powerpc64le)
15770       VAR_CPU=ppc64le
15771       VAR_CPU_ARCH=ppc
15772       VAR_CPU_BITS=64
15773       VAR_CPU_ENDIAN=little
15774       ;;
15775     s390)
15776       VAR_CPU=s390
15777       VAR_CPU_ARCH=s390
15778       VAR_CPU_BITS=32
15779       VAR_CPU_ENDIAN=big
15780       ;;
15781     s390x)
15782       VAR_CPU=s390x
15783       VAR_CPU_ARCH=s390
15784       VAR_CPU_BITS=64
15785       VAR_CPU_ENDIAN=big
15786       ;;
15787     sparc)
15788       VAR_CPU=sparc
15789       VAR_CPU_ARCH=sparc
15790       VAR_CPU_BITS=32
15791       VAR_CPU_ENDIAN=big
15792       ;;
15793     sparcv9|sparc64)
15794       VAR_CPU=sparcv9
15795       VAR_CPU_ARCH=sparc
15796       VAR_CPU_BITS=64
15797       VAR_CPU_ENDIAN=big
15798       ;;
15799     *)
15800       as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5
15801       ;;
15802   esac
15803 
15804   # ..and setup our own variables. (Do this explicitly to facilitate searching)
15805   OPENJDK_BUILD_OS="$VAR_OS"
15806   if test "x$VAR_OS_TYPE" != x; then
15807     OPENJDK_BUILD_OS_TYPE="$VAR_OS_TYPE"
15808   else
15809     OPENJDK_BUILD_OS_TYPE="$VAR_OS"
15810   fi
15811   if test "x$VAR_OS_ENV" != x; then
15812     OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV"
15813   else
15814     OPENJDK_BUILD_OS_ENV="$VAR_OS"
15815   fi
15816   OPENJDK_BUILD_CPU="$VAR_CPU"
15817   OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH"
15818   OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS"
15819   OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN"
15820 
15821 
15822 
15823 
15824 
15825 
15826 
15827 
15828   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5
15829 $as_echo_n "checking openjdk-build os-cpu... " >&6; }
15830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5
15831 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; }
15832 
15833   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
15834 
15835   case "$host_os" in
15836     *linux*)
15837       VAR_OS=linux
15838       VAR_OS_TYPE=unix
15839       ;;
15840     *solaris*)
15841       VAR_OS=solaris
15842       VAR_OS_TYPE=unix
15843       ;;
15844     *darwin*)
15845       VAR_OS=macosx
15846       VAR_OS_TYPE=unix
15847       ;;
15848     *bsd*)
15849       VAR_OS=bsd
15850       VAR_OS_TYPE=unix
15851       ;;
15852     *cygwin*)
15853       VAR_OS=windows
15854       VAR_OS_ENV=windows.cygwin
15855       ;;
15856     *mingw*)
15857       VAR_OS=windows
15858       VAR_OS_ENV=windows.msys
15859       ;;
15860     *aix*)
15861       VAR_OS=aix
15862       VAR_OS_TYPE=unix
15863       ;;
15864     *)
15865       as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5
15866       ;;
15867   esac
15868 
15869 
15870   # First argument is the cpu name from the trip/quad
15871   case "$host_cpu" in
15872     x86_64)
15873       VAR_CPU=x86_64
15874       VAR_CPU_ARCH=x86
15875       VAR_CPU_BITS=64
15876       VAR_CPU_ENDIAN=little
15877       ;;
15878     i?86)
15879       VAR_CPU=x86
15880       VAR_CPU_ARCH=x86
15881       VAR_CPU_BITS=32
15882       VAR_CPU_ENDIAN=little
15883       ;;
15884     arm*)
15885       VAR_CPU=arm
15886       VAR_CPU_ARCH=arm
15887       VAR_CPU_BITS=32
15888       VAR_CPU_ENDIAN=little
15889       ;;
15890     aarch64)
15891       VAR_CPU=aarch64
15892       VAR_CPU_ARCH=aarch64
15893       VAR_CPU_BITS=64
15894       VAR_CPU_ENDIAN=little
15895       ;;
15896     powerpc)
15897       VAR_CPU=ppc
15898       VAR_CPU_ARCH=ppc
15899       VAR_CPU_BITS=32
15900       VAR_CPU_ENDIAN=big
15901       ;;
15902     powerpc64)
15903       VAR_CPU=ppc64
15904       VAR_CPU_ARCH=ppc
15905       VAR_CPU_BITS=64
15906       VAR_CPU_ENDIAN=big
15907       ;;
15908     powerpc64le)
15909       VAR_CPU=ppc64le
15910       VAR_CPU_ARCH=ppc
15911       VAR_CPU_BITS=64
15912       VAR_CPU_ENDIAN=little
15913       ;;
15914     s390)
15915       VAR_CPU=s390
15916       VAR_CPU_ARCH=s390
15917       VAR_CPU_BITS=32
15918       VAR_CPU_ENDIAN=big
15919       ;;
15920     s390x)
15921       VAR_CPU=s390x
15922       VAR_CPU_ARCH=s390
15923       VAR_CPU_BITS=64
15924       VAR_CPU_ENDIAN=big
15925       ;;
15926     sparc)
15927       VAR_CPU=sparc
15928       VAR_CPU_ARCH=sparc
15929       VAR_CPU_BITS=32
15930       VAR_CPU_ENDIAN=big
15931       ;;
15932     sparcv9|sparc64)
15933       VAR_CPU=sparcv9
15934       VAR_CPU_ARCH=sparc
15935       VAR_CPU_BITS=64
15936       VAR_CPU_ENDIAN=big
15937       ;;
15938     *)
15939       as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5
15940       ;;
15941   esac
15942 
15943   # ... and setup our own variables. (Do this explicitly to facilitate searching)
15944   OPENJDK_TARGET_OS="$VAR_OS"
15945   if test "x$VAR_OS_TYPE" != x; then
15946     OPENJDK_TARGET_OS_TYPE="$VAR_OS_TYPE"
15947   else
15948     OPENJDK_TARGET_OS_TYPE="$VAR_OS"
15949   fi
15950   if test "x$VAR_OS_ENV" != x; then
15951     OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV"
15952   else
15953     OPENJDK_TARGET_OS_ENV="$VAR_OS"
15954   fi
15955   OPENJDK_TARGET_CPU="$VAR_CPU"
15956   OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH"
15957   OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS"
15958   OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN"
15959 
15960 
15961 
15962 
15963 
15964 
15965 
15966 
15967   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5
15968 $as_echo_n "checking openjdk-target os-cpu... " >&6; }
15969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5
15970 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; }
15971 
15972 
15973 
15974 # Check whether --with-target-bits was given.
15975 if test "${with_target_bits+set}" = set; then :
15976   withval=$with_target_bits;
15977 fi
15978 
15979 
15980   # We have three types of compiles:
15981   # native  == normal compilation, target system == build system
15982   # cross   == traditional cross compilation, target system != build system; special toolchain needed
15983   # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines
15984   #
15985   if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then
15986     # We're doing a proper cross-compilation
15987     COMPILE_TYPE="cross"
15988   else
15989     COMPILE_TYPE="native"
15990   fi
15991 
15992   if test "x$with_target_bits" != x; then
15993     if test "x$COMPILE_TYPE" = "xcross"; then
15994       as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5
15995     fi
15996 
15997     if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
15998       # A reduced build is requested
15999       COMPILE_TYPE="reduced"
16000       OPENJDK_TARGET_CPU_BITS=32
16001       if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then
16002         OPENJDK_TARGET_CPU=x86
16003       elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then
16004         OPENJDK_TARGET_CPU=sparc
16005       else
16006         as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5
16007       fi
16008     elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
16009       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
16010     elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then
16011       { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5
16012 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;}
16013     else
16014       as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5
16015     fi
16016   fi
16017 
16018 
16019   { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5
16020 $as_echo_n "checking compilation type... " >&6; }
16021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5
16022 $as_echo "$COMPILE_TYPE" >&6; }
16023 
16024 
16025   if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
16026     REQUIRED_OS_NAME=SunOS
16027     REQUIRED_OS_VERSION=5.10
16028   fi
16029   if test "x$OPENJDK_TARGET_OS" = "xlinux"; then
16030     REQUIRED_OS_NAME=Linux
16031     REQUIRED_OS_VERSION=2.6
16032   fi
16033   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
16034     REQUIRED_OS_NAME=Windows
16035     if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then
16036       REQUIRED_OS_VERSION=5.2
16037     else
16038       REQUIRED_OS_VERSION=5.1
16039     fi
16040   fi
16041   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
16042     REQUIRED_OS_NAME="Mac OS X"
16043     REQUIRED_OS_VERSION=11.2
16044   fi
16045   if test "x$OPENJDK_TARGET_OS" = "xaix"; then
16046     REQUIRED_OS_NAME=AIX
16047     REQUIRED_OS_VERSION=7.1
16048   fi
16049   REQUIRED_OS_ARCH=${OPENJDK_TARGET_CPU}
16050 
16051 
16052 
16053 
16054 
16055 
16056 
16057   # Also store the legacy naming of the cpu.
16058   # Ie i586 and amd64 instead of x86 and x86_64
16059   OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU"
16060   if test "x$OPENJDK_TARGET_CPU" = xx86; then
16061     OPENJDK_TARGET_CPU_LEGACY="i586"
16062   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
16063     # On all platforms except MacOSX replace x86_64 with amd64.
16064     OPENJDK_TARGET_CPU_LEGACY="amd64"
16065   fi
16066 
16067 
16068   # And the second legacy naming of the cpu.
16069   # Ie i386 and amd64 instead of x86 and x86_64.
16070   OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU"
16071   if test "x$OPENJDK_TARGET_CPU" = xx86; then
16072     OPENJDK_TARGET_CPU_LEGACY_LIB="i386"
16073   elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then
16074     OPENJDK_TARGET_CPU_LEGACY_LIB="amd64"
16075   fi
16076 
16077 
16078   # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to
16079   # /amd64 or /sparcv9. This string is appended to some library paths, like this:
16080   # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so
16081   OPENJDK_TARGET_CPU_ISADIR=""
16082   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
16083     if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
16084       OPENJDK_TARGET_CPU_ISADIR="/amd64"
16085     elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
16086       OPENJDK_TARGET_CPU_ISADIR="/sparcv9"
16087     fi
16088   fi
16089 
16090 
16091   # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property
16092   OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU"
16093   if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then
16094     # On linux only, we replace x86 with i386.
16095     OPENJDK_TARGET_CPU_OSARCH="i386"
16096   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
16097     # On all platforms except macosx, we replace x86_64 with amd64.
16098     OPENJDK_TARGET_CPU_OSARCH="amd64"
16099   fi
16100 
16101 
16102   OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU"
16103   if test "x$OPENJDK_TARGET_CPU" = xx86; then
16104     OPENJDK_TARGET_CPU_JLI="i386"
16105   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
16106     # On all platforms except macosx, we replace x86_64 with amd64.
16107     OPENJDK_TARGET_CPU_JLI="amd64"
16108   fi
16109 
16110   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
16111       OPENJDK_TARGET_OS_EXPORT_DIR=macosx
16112   else
16113       OPENJDK_TARGET_OS_EXPORT_DIR=${OPENJDK_TARGET_OS_TYPE}
16114   fi
16115 
16116 
16117   # The new version string in JDK 9 also defined new naming of OS and ARCH for bundles
16118   # Macosx is osx and x86_64 is x64
16119   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
16120     OPENJDK_TARGET_OS_BUNDLE="osx"
16121   else
16122     OPENJDK_TARGET_OS_BUNDLE="$OPENJDK_TARGET_OS"
16123   fi
16124   if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
16125     OPENJDK_TARGET_CPU_BUNDLE="x64"
16126   else
16127     OPENJDK_TARGET_CPU_BUNDLE="$OPENJDK_TARGET_CPU"
16128   fi
16129   OPENJDK_TARGET_BUNDLE_PLATFORM="${OPENJDK_TARGET_OS_BUNDLE}-${OPENJDK_TARGET_CPU_BUNDLE}"
16130 
16131 
16132   if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
16133     # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in
16134     # unpack200.exe. This variable is used in
16135     # FLAGS_SETUP_COMPILER_FLAGS_FOR_JDK_HELPER.
16136     if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then
16137       OPENJDK_TARGET_ADD_LP64="-D_LP64=1"
16138     fi
16139   fi
16140 
16141   if test "x$COMPILE_TYPE" = "xcross"; then
16142     # FIXME: ... or should this include reduced builds..?
16143     DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY"
16144   else
16145     DEFINE_CROSS_COMPILE_ARCH=""
16146   fi
16147 
16148 
16149   # Convert openjdk platform names to hotspot names
16150 
16151   HOTSPOT_TARGET_OS=${OPENJDK_TARGET_OS}
16152   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
16153     HOTSPOT_TARGET_OS=bsd
16154   fi
16155 
16156 
16157   HOTSPOT_TARGET_OS_TYPE=${OPENJDK_TARGET_OS_TYPE}
16158   if test "x$OPENJDK_TARGET_OS_TYPE" = xunix; then
16159     HOTSPOT_TARGET_OS_TYPE=posix
16160   fi
16161 
16162 
16163   HOTSPOT_TARGET_CPU=${OPENJDK_TARGET_CPU}
16164   if test "x$OPENJDK_TARGET_CPU" = xx86; then
16165     HOTSPOT_TARGET_CPU=x86_32
16166   elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
16167     HOTSPOT_TARGET_CPU=sparc
16168   elif test "x$OPENJDK_TARGET_CPU" = xppc64; then
16169     HOTSPOT_TARGET_CPU=ppc_64
16170   elif test "x$OPENJDK_TARGET_CPU" = xppc64le; then
16171     HOTSPOT_TARGET_CPU=ppc_64
16172   fi
16173 
16174 
16175   # This is identical with OPENJDK_*, but define anyway for consistency.
16176   HOTSPOT_TARGET_CPU_ARCH=${OPENJDK_TARGET_CPU_ARCH}
16177 
16178 
16179   # Setup HOTSPOT_TARGET_CPU_DEFINE
16180   if test "x$OPENJDK_TARGET_CPU" = xx86; then
16181     HOTSPOT_TARGET_CPU_DEFINE=IA32
16182   elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then
16183     HOTSPOT_TARGET_CPU_DEFINE=AMD64
16184   elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
16185     HOTSPOT_TARGET_CPU_DEFINE=SPARC
16186   elif test "x$OPENJDK_TARGET_CPU" = xaarch64; then
16187     HOTSPOT_TARGET_CPU_DEFINE=AARCH64
16188   elif test "x$OPENJDK_TARGET_CPU" = xppc64; then
16189     HOTSPOT_TARGET_CPU_DEFINE=PPC64
16190   elif test "x$OPENJDK_TARGET_CPU" = xppc64le; then
16191     HOTSPOT_TARGET_CPU_DEFINE=PPC64
16192 
16193   # The cpu defines below are for zero, we don't support them directly.
16194   elif test "x$OPENJDK_TARGET_CPU" = xsparc; then
16195     HOTSPOT_TARGET_CPU_DEFINE=SPARC
16196   elif test "x$OPENJDK_TARGET_CPU" = xppc; then
16197     HOTSPOT_TARGET_CPU_DEFINE=PPC32
16198   elif test "x$OPENJDK_TARGET_CPU" = xs390; then
16199     HOTSPOT_TARGET_CPU_DEFINE=S390
16200   elif test "x$OPENJDK_TARGET_CPU" = xs390x; then
16201     HOTSPOT_TARGET_CPU_DEFINE=S390
16202   elif test "x$OPENJDK_TARGET_CPU" != x; then
16203     HOTSPOT_TARGET_CPU_DEFINE=$(echo $OPENJDK_TARGET_CPU | tr a-z A-Z)
16204   fi
16205 
16206 
16207 
16208 
16209   # Also store the legacy naming of the cpu.
16210   # Ie i586 and amd64 instead of x86 and x86_64
16211   OPENJDK_BUILD_CPU_LEGACY="$OPENJDK_BUILD_CPU"
16212   if test "x$OPENJDK_BUILD_CPU" = xx86; then
16213     OPENJDK_BUILD_CPU_LEGACY="i586"
16214   elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16215     # On all platforms except MacOSX replace x86_64 with amd64.
16216     OPENJDK_BUILD_CPU_LEGACY="amd64"
16217   fi
16218 
16219 
16220   # And the second legacy naming of the cpu.
16221   # Ie i386 and amd64 instead of x86 and x86_64.
16222   OPENJDK_BUILD_CPU_LEGACY_LIB="$OPENJDK_BUILD_CPU"
16223   if test "x$OPENJDK_BUILD_CPU" = xx86; then
16224     OPENJDK_BUILD_CPU_LEGACY_LIB="i386"
16225   elif test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16226     OPENJDK_BUILD_CPU_LEGACY_LIB="amd64"
16227   fi
16228 
16229 
16230   # OPENJDK_BUILD_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to
16231   # /amd64 or /sparcv9. This string is appended to some library paths, like this:
16232   # /usr/lib${OPENJDK_BUILD_CPU_ISADIR}/libexample.so
16233   OPENJDK_BUILD_CPU_ISADIR=""
16234   if test "x$OPENJDK_BUILD_OS" = xsolaris; then
16235     if test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16236       OPENJDK_BUILD_CPU_ISADIR="/amd64"
16237     elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then
16238       OPENJDK_BUILD_CPU_ISADIR="/sparcv9"
16239     fi
16240   fi
16241 
16242 
16243   # Setup OPENJDK_BUILD_CPU_OSARCH, which is used to set the os.arch Java system property
16244   OPENJDK_BUILD_CPU_OSARCH="$OPENJDK_BUILD_CPU"
16245   if test "x$OPENJDK_BUILD_OS" = xlinux && test "x$OPENJDK_BUILD_CPU" = xx86; then
16246     # On linux only, we replace x86 with i386.
16247     OPENJDK_BUILD_CPU_OSARCH="i386"
16248   elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16249     # On all platforms except macosx, we replace x86_64 with amd64.
16250     OPENJDK_BUILD_CPU_OSARCH="amd64"
16251   fi
16252 
16253 
16254   OPENJDK_BUILD_CPU_JLI="$OPENJDK_BUILD_CPU"
16255   if test "x$OPENJDK_BUILD_CPU" = xx86; then
16256     OPENJDK_BUILD_CPU_JLI="i386"
16257   elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16258     # On all platforms except macosx, we replace x86_64 with amd64.
16259     OPENJDK_BUILD_CPU_JLI="amd64"
16260   fi
16261 
16262   if test "x$OPENJDK_BUILD_OS" = xmacosx; then
16263       OPENJDK_BUILD_OS_EXPORT_DIR=macosx
16264   else
16265       OPENJDK_BUILD_OS_EXPORT_DIR=${OPENJDK_BUILD_OS_TYPE}
16266   fi
16267 
16268 
16269   # The new version string in JDK 9 also defined new naming of OS and ARCH for bundles
16270   # Macosx is osx and x86_64 is x64
16271   if test "x$OPENJDK_BUILD_OS" = xmacosx; then
16272     OPENJDK_BUILD_OS_BUNDLE="osx"
16273   else
16274     OPENJDK_BUILD_OS_BUNDLE="$OPENJDK_TARGET_OS"
16275   fi
16276   if test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16277     OPENJDK_BUILD_CPU_BUNDLE="x64"
16278   else
16279     OPENJDK_BUILD_CPU_BUNDLE="$OPENJDK_BUILD_CPU"
16280   fi
16281   OPENJDK_BUILD_BUNDLE_PLATFORM="${OPENJDK_BUILD_OS_BUNDLE}-${OPENJDK_BUILD_CPU_BUNDLE}"
16282 
16283 
16284   if test "x$OPENJDK_BUILD_CPU_BITS" = x64; then
16285     # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in
16286     # unpack200.exe. This variable is used in
16287     # FLAGS_SETUP_COMPILER_FLAGS_FOR_JDK_HELPER.
16288     if test "x$OPENJDK_BUILD_OS" = xlinux || test "x$OPENJDK_BUILD_OS" = xmacosx; then
16289       OPENJDK_BUILD_ADD_LP64="-D_LP64=1"
16290     fi
16291   fi
16292 
16293   if test "x$COMPILE_TYPE" = "xcross"; then
16294     # FIXME: ... or should this include reduced builds..?
16295     DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_BUILD_CPU_LEGACY"
16296   else
16297     DEFINE_CROSS_COMPILE_ARCH=""
16298   fi
16299 
16300 
16301   # Convert openjdk platform names to hotspot names
16302 
16303   HOTSPOT_BUILD_OS=${OPENJDK_BUILD_OS}
16304   if test "x$OPENJDK_BUILD_OS" = xmacosx; then
16305     HOTSPOT_BUILD_OS=bsd
16306   fi
16307 
16308 
16309   HOTSPOT_BUILD_OS_TYPE=${OPENJDK_BUILD_OS_TYPE}
16310   if test "x$OPENJDK_BUILD_OS_TYPE" = xunix; then
16311     HOTSPOT_BUILD_OS_TYPE=posix
16312   fi
16313 
16314 
16315   HOTSPOT_BUILD_CPU=${OPENJDK_BUILD_CPU}
16316   if test "x$OPENJDK_BUILD_CPU" = xx86; then
16317     HOTSPOT_BUILD_CPU=x86_32
16318   elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then
16319     HOTSPOT_BUILD_CPU=sparc
16320   elif test "x$OPENJDK_BUILD_CPU" = xppc64; then
16321     HOTSPOT_BUILD_CPU=ppc_64
16322   elif test "x$OPENJDK_BUILD_CPU" = xppc64le; then
16323     HOTSPOT_BUILD_CPU=ppc_64
16324   fi
16325 
16326 
16327   # This is identical with OPENJDK_*, but define anyway for consistency.
16328   HOTSPOT_BUILD_CPU_ARCH=${OPENJDK_BUILD_CPU_ARCH}
16329 
16330 
16331   # Setup HOTSPOT_BUILD_CPU_DEFINE
16332   if test "x$OPENJDK_BUILD_CPU" = xx86; then
16333     HOTSPOT_BUILD_CPU_DEFINE=IA32
16334   elif test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16335     HOTSPOT_BUILD_CPU_DEFINE=AMD64
16336   elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then
16337     HOTSPOT_BUILD_CPU_DEFINE=SPARC
16338   elif test "x$OPENJDK_BUILD_CPU" = xaarch64; then
16339     HOTSPOT_BUILD_CPU_DEFINE=AARCH64
16340   elif test "x$OPENJDK_BUILD_CPU" = xppc64; then
16341     HOTSPOT_BUILD_CPU_DEFINE=PPC64
16342   elif test "x$OPENJDK_BUILD_CPU" = xppc64le; then
16343     HOTSPOT_BUILD_CPU_DEFINE=PPC64
16344 
16345   # The cpu defines below are for zero, we don't support them directly.
16346   elif test "x$OPENJDK_BUILD_CPU" = xsparc; then
16347     HOTSPOT_BUILD_CPU_DEFINE=SPARC
16348   elif test "x$OPENJDK_BUILD_CPU" = xppc; then
16349     HOTSPOT_BUILD_CPU_DEFINE=PPC32
16350   elif test "x$OPENJDK_BUILD_CPU" = xs390; then
16351     HOTSPOT_BUILD_CPU_DEFINE=S390
16352   elif test "x$OPENJDK_BUILD_CPU" = xs390x; then
16353     HOTSPOT_BUILD_CPU_DEFINE=S390
16354   elif test "x$OPENJDK_BUILD_CPU" != x; then
16355     HOTSPOT_BUILD_CPU_DEFINE=$(echo $OPENJDK_BUILD_CPU | tr a-z A-Z)
16356   fi
16357 
16358 
16359 
16360 
16361 
16362 
16363 # Continue setting up basic stuff. Most remaining code require fundamental tools.
16364 
16365   # Save the current directory this script was started from
16366   CURDIR="$PWD"
16367 
16368   # We might need to rewrite ORIGINAL_PATH, if it includes "#", to quote them
16369   # for make. We couldn't do this when we retrieved ORIGINAL_PATH, since SED
16370   # was not available at that time.
16371   REWRITTEN_PATH=`$ECHO "$ORIGINAL_PATH" | $SED -e 's/#/\\\\#/g'`
16372   if test "x$REWRITTEN_PATH" != "x$ORIGINAL_PATH"; then
16373     ORIGINAL_PATH="$REWRITTEN_PATH"
16374     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&5
16375 $as_echo "$as_me: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&6;}
16376   fi
16377 
16378   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
16379     PATH_SEP=";"
16380 
16381   SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m`
16382   if test $SRC_ROOT_LENGTH -gt 100; then
16383     as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5
16384   fi
16385 
16386   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16387     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5
16388 $as_echo_n "checking cygwin release... " >&6; }
16389     CYGWIN_VERSION=`$UNAME -r`
16390     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5
16391 $as_echo "$CYGWIN_VERSION" >&6; }
16392     WINDOWS_ENV_VENDOR='cygwin'
16393     WINDOWS_ENV_VERSION="$CYGWIN_VERSION"
16394 
16395     CYGWIN_VERSION_OLD=`$ECHO $CYGWIN_VERSION | $GREP -e '^1\.0-6'`
16396     if test "x$CYGWIN_VERSION_OLD" != x; then
16397       { $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
16398 $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;}
16399       as_fn_error $? "Cannot continue" "$LINENO" 5
16400     fi
16401     if test "x$CYGPATH" = x; then
16402       as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5
16403     fi
16404     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5
16405 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; }
16406     # The cmd output ends with Windows line endings (CR/LF)
16407     cygwin_winpath_root=`cd / ; cmd /c cd | $TR -d '\r\n'`
16408     # Force cygpath to report the proper root by including a trailing space, and then stripping it off again.
16409     CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "`
16410     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5
16411 $as_echo "$CYGWIN_ROOT_PATH" >&6; }
16412     WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH"
16413     test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/`
16414     if test "x$test_cygdrive_prefix" = x; then
16415       as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5
16416     fi
16417   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16418     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5
16419 $as_echo_n "checking msys release... " >&6; }
16420     MSYS_VERSION=`$UNAME -r`
16421     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5
16422 $as_echo "$MSYS_VERSION" >&6; }
16423 
16424     WINDOWS_ENV_VENDOR='msys'
16425     WINDOWS_ENV_VERSION="$MSYS_VERSION"
16426 
16427     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5
16428 $as_echo_n "checking msys root directory as unix-style path... " >&6; }
16429     # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
16430     MSYS_ROOT_PATH=`cd / ; cmd /c cd | $GREP ".*"`
16431 
16432   windows_path="$MSYS_ROOT_PATH"
16433   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16434     unix_path=`$CYGPATH -u "$windows_path"`
16435     MSYS_ROOT_PATH="$unix_path"
16436   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16437     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16438     MSYS_ROOT_PATH="$unix_path"
16439   fi
16440 
16441     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5
16442 $as_echo "$MSYS_ROOT_PATH" >&6; }
16443     WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH"
16444   else
16445     as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5
16446   fi
16447 
16448   # Test if windows or unix (cygwin/msys) find is first in path.
16449   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5
16450 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; }
16451   FIND_BINARY_OUTPUT=`find --version 2>&1`
16452   if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then
16453     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5
16454 $as_echo "unix style" >&6; }
16455   elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then
16456     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5
16457 $as_echo "Windows" >&6; }
16458     { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5
16459 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;}
16460     { $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
16461 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;}
16462     as_fn_error $? "Cannot continue" "$LINENO" 5
16463   else
16464     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
16465 $as_echo "unknown" >&6; }
16466     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5
16467 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;}
16468   fi
16469 
16470   else
16471     PATH_SEP=":"
16472   fi
16473 
16474 
16475   # We get the top-level directory from the supporting wrappers.
16476   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for top-level directory" >&5
16477 $as_echo_n "checking for top-level directory... " >&6; }
16478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5
16479 $as_echo "$TOPDIR" >&6; }
16480 
16481 
16482   # Save the original version of TOPDIR for string comparisons
16483   ORIGINAL_TOPDIR="$TOPDIR"
16484 
16485 
16486   # We can only call BASIC_FIXUP_PATH after BASIC_CHECK_PATHS_WINDOWS.
16487 
16488   # Only process if variable expands to non-empty
16489 
16490   if test "x$CURDIR" != x; then
16491     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16492 
16493   # Input might be given as Windows format, start by converting to
16494   # unix format.
16495   path="$CURDIR"
16496   new_path=`$CYGPATH -u "$path"`
16497 
16498   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16499   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16500   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16501   # "foo.exe" is OK but "foo" is an error.
16502   #
16503   # This test is therefore slightly more accurate than "test -f" to check for file precense.
16504   # It is also a way to make sure we got the proper file name for the real test later on.
16505   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16506   if test "x$test_shortpath" = x; then
16507     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
16508 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
16509     as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5
16510   fi
16511 
16512   # Call helper function which possibly converts this using DOS-style short mode.
16513   # If so, the updated path is stored in $new_path.
16514 
16515   input_path="$new_path"
16516   # Check if we need to convert this using DOS-style short mode. If the path
16517   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16518   # take no chances and rewrite it.
16519   # Note: m4 eats our [], so we need to use [ and ] instead.
16520   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16521   if test "x$has_forbidden_chars" != x; then
16522     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16523     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16524     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16525     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16526       # Going to short mode and back again did indeed matter. Since short mode is
16527       # case insensitive, let's make it lowercase to improve readability.
16528       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16529       # Now convert it back to Unix-style (cygpath)
16530       input_path=`$CYGPATH -u "$shortmode_path"`
16531       new_path="$input_path"
16532     fi
16533   fi
16534 
16535   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16536   if test "x$test_cygdrive_prefix" = x; then
16537     # As a simple fix, exclude /usr/bin since it's not a real path.
16538     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
16539       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16540       # a path prefixed by /cygdrive for fixpath to work.
16541       new_path="$CYGWIN_ROOT_PATH$input_path"
16542     fi
16543   fi
16544 
16545 
16546   if test "x$path" != "x$new_path"; then
16547     CURDIR="$new_path"
16548     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
16549 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
16550   fi
16551 
16552     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16553 
16554   path="$CURDIR"
16555   has_colon=`$ECHO $path | $GREP ^.:`
16556   new_path="$path"
16557   if test "x$has_colon" = x; then
16558     # Not in mixed or Windows style, start by that.
16559     new_path=`cmd //c echo $path`
16560   fi
16561 
16562 
16563   input_path="$new_path"
16564   # Check if we need to convert this using DOS-style short mode. If the path
16565   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16566   # take no chances and rewrite it.
16567   # Note: m4 eats our [], so we need to use [ and ] instead.
16568   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16569   if test "x$has_forbidden_chars" != x; then
16570     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16571     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16572   fi
16573 
16574 
16575   windows_path="$new_path"
16576   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16577     unix_path=`$CYGPATH -u "$windows_path"`
16578     new_path="$unix_path"
16579   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16580     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16581     new_path="$unix_path"
16582   fi
16583 
16584   if test "x$path" != "x$new_path"; then
16585     CURDIR="$new_path"
16586     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
16587 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
16588   fi
16589 
16590   # Save the first 10 bytes of this path to the storage, so fixpath can work.
16591   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16592 
16593     else
16594       # We're on a unix platform. Hooray! :)
16595       path="$CURDIR"
16596       has_space=`$ECHO "$path" | $GREP " "`
16597       if test "x$has_space" != x; then
16598         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
16599 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
16600         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
16601       fi
16602 
16603       # Use eval to expand a potential ~
16604       eval path="$path"
16605       if test ! -f "$path" && test ! -d "$path"; then
16606         as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5
16607       fi
16608 
16609       if test -d "$path"; then
16610         CURDIR="`cd "$path"; $THEPWDCMD -L`"
16611       else
16612         dir="`$DIRNAME "$path"`"
16613         base="`$BASENAME "$path"`"
16614         CURDIR="`cd "$dir"; $THEPWDCMD -L`/$base"
16615       fi
16616     fi
16617   fi
16618 
16619 
16620   # Only process if variable expands to non-empty
16621 
16622   if test "x$TOPDIR" != x; then
16623     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16624 
16625   # Input might be given as Windows format, start by converting to
16626   # unix format.
16627   path="$TOPDIR"
16628   new_path=`$CYGPATH -u "$path"`
16629 
16630   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16631   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16632   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16633   # "foo.exe" is OK but "foo" is an error.
16634   #
16635   # This test is therefore slightly more accurate than "test -f" to check for file precense.
16636   # It is also a way to make sure we got the proper file name for the real test later on.
16637   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16638   if test "x$test_shortpath" = x; then
16639     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
16640 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
16641     as_fn_error $? "Cannot locate the the path of TOPDIR" "$LINENO" 5
16642   fi
16643 
16644   # Call helper function which possibly converts this using DOS-style short mode.
16645   # If so, the updated path is stored in $new_path.
16646 
16647   input_path="$new_path"
16648   # Check if we need to convert this using DOS-style short mode. If the path
16649   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16650   # take no chances and rewrite it.
16651   # Note: m4 eats our [], so we need to use [ and ] instead.
16652   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16653   if test "x$has_forbidden_chars" != x; then
16654     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16655     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16656     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16657     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16658       # Going to short mode and back again did indeed matter. Since short mode is
16659       # case insensitive, let's make it lowercase to improve readability.
16660       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16661       # Now convert it back to Unix-style (cygpath)
16662       input_path=`$CYGPATH -u "$shortmode_path"`
16663       new_path="$input_path"
16664     fi
16665   fi
16666 
16667   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16668   if test "x$test_cygdrive_prefix" = x; then
16669     # As a simple fix, exclude /usr/bin since it's not a real path.
16670     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
16671       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16672       # a path prefixed by /cygdrive for fixpath to work.
16673       new_path="$CYGWIN_ROOT_PATH$input_path"
16674     fi
16675   fi
16676 
16677 
16678   if test "x$path" != "x$new_path"; then
16679     TOPDIR="$new_path"
16680     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
16681 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
16682   fi
16683 
16684     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16685 
16686   path="$TOPDIR"
16687   has_colon=`$ECHO $path | $GREP ^.:`
16688   new_path="$path"
16689   if test "x$has_colon" = x; then
16690     # Not in mixed or Windows style, start by that.
16691     new_path=`cmd //c echo $path`
16692   fi
16693 
16694 
16695   input_path="$new_path"
16696   # Check if we need to convert this using DOS-style short mode. If the path
16697   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16698   # take no chances and rewrite it.
16699   # Note: m4 eats our [], so we need to use [ and ] instead.
16700   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16701   if test "x$has_forbidden_chars" != x; then
16702     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16703     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16704   fi
16705 
16706 
16707   windows_path="$new_path"
16708   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16709     unix_path=`$CYGPATH -u "$windows_path"`
16710     new_path="$unix_path"
16711   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16712     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16713     new_path="$unix_path"
16714   fi
16715 
16716   if test "x$path" != "x$new_path"; then
16717     TOPDIR="$new_path"
16718     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
16719 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
16720   fi
16721 
16722   # Save the first 10 bytes of this path to the storage, so fixpath can work.
16723   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16724 
16725     else
16726       # We're on a unix platform. Hooray! :)
16727       path="$TOPDIR"
16728       has_space=`$ECHO "$path" | $GREP " "`
16729       if test "x$has_space" != x; then
16730         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
16731 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
16732         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
16733       fi
16734 
16735       # Use eval to expand a potential ~
16736       eval path="$path"
16737       if test ! -f "$path" && test ! -d "$path"; then
16738         as_fn_error $? "The path of TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5
16739       fi
16740 
16741       if test -d "$path"; then
16742         TOPDIR="`cd "$path"; $THEPWDCMD -L`"
16743       else
16744         dir="`$DIRNAME "$path"`"
16745         base="`$BASENAME "$path"`"
16746         TOPDIR="`cd "$dir"; $THEPWDCMD -L`/$base"
16747       fi
16748     fi
16749   fi
16750 
16751   # SRC_ROOT is a traditional alias for TOPDIR.
16752   SRC_ROOT=$TOPDIR
16753 
16754   # Calculate a canonical version of TOPDIR for string comparisons
16755   CANONICAL_TOPDIR=$TOPDIR
16756 
16757   if test "x$OPENJDK_BUILD_OS" != xwindows; then
16758     # Follow a chain of symbolic links. Use readlink
16759     # where it exists, else fall back to horribly
16760     # complicated shell code.
16761     if test "x$READLINK_TESTED" != yes; then
16762       # On MacOSX there is a readlink tool with a different
16763       # purpose than the GNU readlink tool. Check the found readlink.
16764       ISGNU=`$READLINK --version 2>&1 | $GREP GNU`
16765       if test "x$ISGNU" = x; then
16766         # A readlink that we do not know how to use.
16767         # Are there other non-GNU readlinks out there?
16768         READLINK_TESTED=yes
16769         READLINK=
16770       fi
16771     fi
16772 
16773     if test "x$READLINK" != x; then
16774       CANONICAL_TOPDIR=`$READLINK -f $CANONICAL_TOPDIR`
16775     else
16776       # Save the current directory for restoring afterwards
16777       STARTDIR=$PWD
16778       COUNTER=0
16779       sym_link_dir=`$DIRNAME $CANONICAL_TOPDIR`
16780       sym_link_file=`$BASENAME $CANONICAL_TOPDIR`
16781       cd $sym_link_dir
16782       # Use -P flag to resolve symlinks in directories.
16783       cd `$THEPWDCMD -P`
16784       sym_link_dir=`$THEPWDCMD -P`
16785       # Resolve file symlinks
16786       while test $COUNTER -lt 20; do
16787         ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'`
16788         if test "x$ISLINK" == x; then
16789           # This is not a symbolic link! We are done!
16790           break
16791         fi
16792         # Again resolve directory symlinks since the target of the just found
16793         # link could be in a different directory
16794         cd `$DIRNAME $ISLINK`
16795         sym_link_dir=`$THEPWDCMD -P`
16796         sym_link_file=`$BASENAME $ISLINK`
16797         let COUNTER=COUNTER+1
16798       done
16799       cd $STARTDIR
16800       CANONICAL_TOPDIR=$sym_link_dir/$sym_link_file
16801     fi
16802   fi
16803 
16804 
16805 
16806   # Locate the directory of this script.
16807   AUTOCONF_DIR=$TOPDIR/common/autoconf
16808 
16809   # Setup username (for use in adhoc version strings etc)
16810   # Outer [ ] to quote m4.
16811    USERNAME=`$ECHO "$USER" | $TR -d -c '[a-z][A-Z][0-9]'`
16812 
16813 
16814 
16815 # Check if it's a pure open build or if custom sources are to be used.
16816 
16817   # Check whether --enable-openjdk-only was given.
16818 if test "${enable_openjdk_only+set}" = set; then :
16819   enableval=$enable_openjdk_only;
16820 else
16821   enable_openjdk_only="no"
16822 fi
16823 
16824 
16825   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if custom source is suppressed (openjdk-only)" >&5
16826 $as_echo_n "checking if custom source is suppressed (openjdk-only)... " >&6; }
16827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_openjdk_only" >&5
16828 $as_echo "$enable_openjdk_only" >&6; }
16829   if test "x$enable_openjdk_only" = "xyes"; then
16830     SUPPRESS_CUSTOM_EXTENSIONS="true"
16831   elif test "x$enable_openjdk_only" = "xno"; then
16832     SUPPRESS_CUSTOM_EXTENSIONS="false"
16833   else
16834     as_fn_error $? "Invalid value for --enable-openjdk-only: $enable_openjdk_only" "$LINENO" 5
16835   fi
16836 
16837   # custom-make-dir is deprecated. Please use your custom-hook.m4 to override
16838   # the IncludeCustomExtension macro.
16839 
16840 
16841 # Check whether --with-custom-make-dir was given.
16842 if test "${with_custom_make_dir+set}" = set; then :
16843   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
16844 $as_echo "$as_me: WARNING: Option --with-custom-make-dir is deprecated and will be ignored." >&2;}
16845 fi
16846 
16847 
16848 
16849 
16850 # These are needed to be able to create a configuration name (and thus the output directory)
16851 
16852   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5
16853 $as_echo_n "checking which variant of the JDK to build... " >&6; }
16854 
16855 # Check whether --with-jdk-variant was given.
16856 if test "${with_jdk_variant+set}" = set; then :
16857   withval=$with_jdk_variant;
16858 fi
16859 
16860 
16861   if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then
16862     JDK_VARIANT="normal"
16863   else
16864     as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5
16865   fi
16866 
16867 
16868 
16869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5
16870 $as_echo "$JDK_VARIANT" >&6; }
16871 
16872 
16873   DEBUG_LEVEL="release"
16874   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5
16875 $as_echo_n "checking which debug level to use... " >&6; }
16876   # Check whether --enable-debug was given.
16877 if test "${enable_debug+set}" = set; then :
16878   enableval=$enable_debug;
16879         ENABLE_DEBUG="${enableval}"
16880         DEBUG_LEVEL="fastdebug"
16881 
16882 else
16883   ENABLE_DEBUG="no"
16884 fi
16885 
16886 
16887 
16888 # Check whether --with-debug-level was given.
16889 if test "${with_debug_level+set}" = set; then :
16890   withval=$with_debug_level;
16891         DEBUG_LEVEL="${withval}"
16892         if test "x$ENABLE_DEBUG" = xyes; then
16893           as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5
16894         fi
16895 
16896 fi
16897 
16898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5
16899 $as_echo "$DEBUG_LEVEL" >&6; }
16900 
16901   if test "x$DEBUG_LEVEL" != xrelease && \
16902       test "x$DEBUG_LEVEL" != xoptimized && \
16903       test "x$DEBUG_LEVEL" != xfastdebug && \
16904       test "x$DEBUG_LEVEL" != xslowdebug; then
16905     as_fn_error $? "Allowed debug levels are: release, fastdebug, slowdebug and optimized" "$LINENO" 5
16906   fi
16907 
16908   # Translate DEBUG_LEVEL to debug level used by Hotspot
16909   HOTSPOT_DEBUG_LEVEL="$DEBUG_LEVEL"
16910   if test "x$DEBUG_LEVEL" = xrelease; then
16911     HOTSPOT_DEBUG_LEVEL="product"
16912   elif test "x$DEBUG_LEVEL" = xslowdebug; then
16913     HOTSPOT_DEBUG_LEVEL="debug"
16914   fi
16915 
16916   if test "x$DEBUG_LEVEL" = xoptimized; then
16917     # The debug level 'optimized' is a little special because it is currently only
16918     # applicable to the HotSpot build where it means to build a completely
16919     # optimized version of the VM without any debugging code (like for the
16920     # 'release' debug level which is called 'product' in the HotSpot build) but
16921     # with the exception that it can contain additional code which is otherwise
16922     # protected by '#ifndef PRODUCT' macros. These 'optimized' builds are used to
16923     # test new and/or experimental features which are not intended for customer
16924     # shipment. Because these new features need to be tested and benchmarked in
16925     # real world scenarios, we want to build the containing JDK at the 'release'
16926     # debug level.
16927     DEBUG_LEVEL="release"
16928   fi
16929 
16930 
16931 
16932 
16933 
16934 
16935 # Check whether --with-jvm-variants was given.
16936 if test "${with_jvm_variants+set}" = set; then :
16937   withval=$with_jvm_variants;
16938 fi
16939 
16940 
16941 
16942 
16943 # Check whether --with-cpu-port was given.
16944 if test "${with_cpu_port+set}" = set; then :
16945   withval=$with_cpu_port;
16946 fi
16947 
16948 
16949   if test "x$with_cpu_port" != x; then
16950     if test "x$OPENJDK_TARGET_CPU" != xaarch64; then
16951       as_fn_error $? "--with-cpu-port only available on aarch64" "$LINENO" 5
16952     fi
16953     if test "x$with_cpu_port" != xarm64 && \
16954         test "x$with_cpu_port" != xaarch64; then
16955       as_fn_error $? "--with-cpu-port must specify arm64 or aarch64" "$LINENO" 5
16956     fi
16957     HOTSPOT_TARGET_CPU_PORT="$with_cpu_port"
16958   fi
16959 
16960 
16961   if test "x$with_jvm_variants" = x; then
16962     with_jvm_variants="server"
16963   fi
16964   JVM_VARIANTS_OPT="$with_jvm_variants"
16965 
16966   # Has the user listed more than one variant?
16967   # Additional [] needed to keep m4 from mangling shell constructs.
16968   if  [[ "$JVM_VARIANTS_OPT" =~ "," ]] ; then
16969     BUILDING_MULTIPLE_JVM_VARIANTS=true
16970   else
16971     BUILDING_MULTIPLE_JVM_VARIANTS=false
16972   fi
16973   # Replace the commas with AND for use in the build directory name.
16974   JVM_VARIANTS_WITH_AND=`$ECHO "$JVM_VARIANTS_OPT" | $SED -e 's/,/AND/g'`
16975 
16976   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5
16977 $as_echo_n "checking which variants of the JVM to build... " >&6; }
16978   # JVM_VARIANTS is a space-separated list.
16979   # Also use minimal, not minimal1 (which is kept for backwards compatibility).
16980   JVM_VARIANTS=`$ECHO $JVM_VARIANTS_OPT | $SED -e 's/,/ /g' -e 's/minimal1/minimal/'`
16981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JVM_VARIANTS" >&5
16982 $as_echo "$JVM_VARIANTS" >&6; }
16983 
16984   # Check that the selected variants are valid
16985 
16986   # grep filter function inspired by a comment to http://stackoverflow.com/a/1617326
16987   # Notice that the original variant failes on SLES 10 and 11
16988   NEEDLE=${VALID_JVM_VARIANTS// /$'\n'}
16989   STACK=${JVM_VARIANTS// /$'\n'}
16990   INVALID_VARIANTS=`$GREP -Fvx "${NEEDLE}" <<< "${STACK}"`
16991   if test "x$INVALID_VARIANTS" != x; then
16992     { $as_echo "$as_me:${as_lineno-$LINENO}: Unknown variant(s) specified: $INVALID_VARIANTS" >&5
16993 $as_echo "$as_me: Unknown variant(s) specified: $INVALID_VARIANTS" >&6;}
16994     as_fn_error $? "The available JVM variants are: $VALID_JVM_VARIANTS" "$LINENO" 5
16995   fi
16996 
16997   # All "special" variants share the same output directory ("server")
16998   VALID_MULTIPLE_JVM_VARIANTS="server client minimal"
16999   NEEDLE=${VALID_MULTIPLE_JVM_VARIANTS// /$'\n'}
17000   STACK=${JVM_VARIANTS// /$'\n'}
17001   INVALID_MULTIPLE_VARIANTS=`$GREP -Fvx "${NEEDLE}" <<< "${STACK}"`
17002   if  test "x$INVALID_MULTIPLE_VARIANTS" != x && test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = xtrue; then
17003     as_fn_error $? "You cannot build multiple variants with anything else than $VALID_MULTIPLE_JVM_VARIANTS." "$LINENO" 5
17004   fi
17005 
17006   # The "main" variant is the one used by other libs to link against during the
17007   # build.
17008   if test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = "xtrue"; then
17009     MAIN_VARIANT_PRIO_ORDER="server client minimal"
17010     for variant in $MAIN_VARIANT_PRIO_ORDER; do
17011       if   [[ " $JVM_VARIANTS " =~ " $variant " ]]  ; then
17012         JVM_VARIANT_MAIN="$variant"
17013         break
17014       fi
17015     done
17016   else
17017     JVM_VARIANT_MAIN="$JVM_VARIANTS"
17018   fi
17019 
17020 
17021 
17022 
17023 
17024   if   [[ " $JVM_VARIANTS " =~ " zero " ]]   ||   [[ " $JVM_VARIANTS " =~ " zeroshark " ]]  ; then
17025     # zero behaves as a platform and rewrites these values. This is really weird. :(
17026     # We are guaranteed that we do not build any other variants when building zero.
17027     HOTSPOT_TARGET_CPU=zero
17028     HOTSPOT_TARGET_CPU_ARCH=zero
17029   fi
17030 
17031 
17032 # With basic setup done, call the custom early hook.
17033 
17034 
17035 # Check if we have devkits, extra paths or sysroot set.
17036 
17037 
17038 # Check whether --with-devkit was given.
17039 if test "${with_devkit+set}" = set; then :
17040   withval=$with_devkit;
17041 
17042   # Only process if variable expands to non-empty
17043 
17044   if test "x$with_devkit" != x; then
17045     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17046 
17047   # Input might be given as Windows format, start by converting to
17048   # unix format.
17049   path="$with_devkit"
17050   new_path=`$CYGPATH -u "$path"`
17051 
17052   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
17053   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
17054   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
17055   # "foo.exe" is OK but "foo" is an error.
17056   #
17057   # This test is therefore slightly more accurate than "test -f" to check for file precense.
17058   # It is also a way to make sure we got the proper file name for the real test later on.
17059   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
17060   if test "x$test_shortpath" = x; then
17061     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
17062 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
17063     as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5
17064   fi
17065 
17066   # Call helper function which possibly converts this using DOS-style short mode.
17067   # If so, the updated path is stored in $new_path.
17068 
17069   input_path="$new_path"
17070   # Check if we need to convert this using DOS-style short mode. If the path
17071   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17072   # take no chances and rewrite it.
17073   # Note: m4 eats our [], so we need to use [ and ] instead.
17074   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
17075   if test "x$has_forbidden_chars" != x; then
17076     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17077     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
17078     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
17079     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
17080       # Going to short mode and back again did indeed matter. Since short mode is
17081       # case insensitive, let's make it lowercase to improve readability.
17082       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17083       # Now convert it back to Unix-style (cygpath)
17084       input_path=`$CYGPATH -u "$shortmode_path"`
17085       new_path="$input_path"
17086     fi
17087   fi
17088 
17089   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
17090   if test "x$test_cygdrive_prefix" = x; then
17091     # As a simple fix, exclude /usr/bin since it's not a real path.
17092     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
17093       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
17094       # a path prefixed by /cygdrive for fixpath to work.
17095       new_path="$CYGWIN_ROOT_PATH$input_path"
17096     fi
17097   fi
17098 
17099 
17100   if test "x$path" != "x$new_path"; then
17101     with_devkit="$new_path"
17102     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
17103 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
17104   fi
17105 
17106     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17107 
17108   path="$with_devkit"
17109   has_colon=`$ECHO $path | $GREP ^.:`
17110   new_path="$path"
17111   if test "x$has_colon" = x; then
17112     # Not in mixed or Windows style, start by that.
17113     new_path=`cmd //c echo $path`
17114   fi
17115 
17116 
17117   input_path="$new_path"
17118   # Check if we need to convert this using DOS-style short mode. If the path
17119   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17120   # take no chances and rewrite it.
17121   # Note: m4 eats our [], so we need to use [ and ] instead.
17122   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
17123   if test "x$has_forbidden_chars" != x; then
17124     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17125     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17126   fi
17127 
17128 
17129   windows_path="$new_path"
17130   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17131     unix_path=`$CYGPATH -u "$windows_path"`
17132     new_path="$unix_path"
17133   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17134     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17135     new_path="$unix_path"
17136   fi
17137 
17138   if test "x$path" != "x$new_path"; then
17139     with_devkit="$new_path"
17140     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
17141 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
17142   fi
17143 
17144   # Save the first 10 bytes of this path to the storage, so fixpath can work.
17145   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
17146 
17147     else
17148       # We're on a unix platform. Hooray! :)
17149       path="$with_devkit"
17150       has_space=`$ECHO "$path" | $GREP " "`
17151       if test "x$has_space" != x; then
17152         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
17153 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
17154         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
17155       fi
17156 
17157       # Use eval to expand a potential ~
17158       eval path="$path"
17159       if test ! -f "$path" && test ! -d "$path"; then
17160         as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5
17161       fi
17162 
17163       if test -d "$path"; then
17164         with_devkit="`cd "$path"; $THEPWDCMD -L`"
17165       else
17166         dir="`$DIRNAME "$path"`"
17167         base="`$BASENAME "$path"`"
17168         with_devkit="`cd "$dir"; $THEPWDCMD -L`/$base"
17169       fi
17170     fi
17171   fi
17172 
17173         DEVKIT_ROOT="$with_devkit"
17174         # Check for a meta data info file in the root of the devkit
17175         if test -f "$DEVKIT_ROOT/devkit.info"; then
17176           . $DEVKIT_ROOT/devkit.info
17177           # This potentially sets the following:
17178           # A descriptive name of the devkit
17179 
17180   if test "x$DEVKIT_NAME" = x; then
17181     eval DEVKIT_NAME="\${DEVKIT_NAME_${OPENJDK_TARGET_CPU}}"
17182   fi
17183 
17184           # Corresponds to --with-extra-path
17185 
17186   if test "x$DEVKIT_EXTRA_PATH" = x; then
17187     eval DEVKIT_EXTRA_PATH="\${DEVKIT_EXTRA_PATH_${OPENJDK_TARGET_CPU}}"
17188   fi
17189 
17190           # Corresponds to --with-toolchain-path
17191 
17192   if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then
17193     eval DEVKIT_TOOLCHAIN_PATH="\${DEVKIT_TOOLCHAIN_PATH_${OPENJDK_TARGET_CPU}}"
17194   fi
17195 
17196           # Corresponds to --with-sysroot
17197 
17198   if test "x$DEVKIT_SYSROOT" = x; then
17199     eval DEVKIT_SYSROOT="\${DEVKIT_SYSROOT_${OPENJDK_TARGET_CPU}}"
17200   fi
17201 
17202 
17203           # Identifies the Visual Studio version in the devkit
17204 
17205   if test "x$DEVKIT_VS_VERSION" = x; then
17206     eval DEVKIT_VS_VERSION="\${DEVKIT_VS_VERSION_${OPENJDK_TARGET_CPU}}"
17207   fi
17208 
17209           # The Visual Studio include environment variable
17210 
17211   if test "x$DEVKIT_VS_INCLUDE" = x; then
17212     eval DEVKIT_VS_INCLUDE="\${DEVKIT_VS_INCLUDE_${OPENJDK_TARGET_CPU}}"
17213   fi
17214 
17215           # The Visual Studio lib environment variable
17216 
17217   if test "x$DEVKIT_VS_LIB" = x; then
17218     eval DEVKIT_VS_LIB="\${DEVKIT_VS_LIB_${OPENJDK_TARGET_CPU}}"
17219   fi
17220 
17221           # Corresponds to --with-msvcr-dll
17222 
17223   if test "x$DEVKIT_MSVCR_DLL" = x; then
17224     eval DEVKIT_MSVCR_DLL="\${DEVKIT_MSVCR_DLL_${OPENJDK_TARGET_CPU}}"
17225   fi
17226 
17227           # Corresponds to --with-msvcp-dll
17228 
17229   if test "x$DEVKIT_MSVCP_DLL" = x; then
17230     eval DEVKIT_MSVCP_DLL="\${DEVKIT_MSVCP_DLL_${OPENJDK_TARGET_CPU}}"
17231   fi
17232 
17233         fi
17234 
17235         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devkit" >&5
17236 $as_echo_n "checking for devkit... " >&6; }
17237         if test "x$DEVKIT_NAME" != x; then
17238           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_NAME in $DEVKIT_ROOT" >&5
17239 $as_echo "$DEVKIT_NAME in $DEVKIT_ROOT" >&6; }
17240         else
17241           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_ROOT" >&5
17242 $as_echo "$DEVKIT_ROOT" >&6; }
17243         fi
17244 
17245 
17246   if test "x$DEVKIT_EXTRA_PATH" != x; then
17247     if test "x$EXTRA_PATH" = x; then
17248       EXTRA_PATH="$DEVKIT_EXTRA_PATH"
17249     else
17250       EXTRA_PATH="$DEVKIT_EXTRA_PATH:$EXTRA_PATH"
17251     fi
17252   fi
17253 
17254 
17255         # Fallback default of just /bin if DEVKIT_PATH is not defined
17256         if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then
17257           DEVKIT_TOOLCHAIN_PATH="$DEVKIT_ROOT/bin"
17258         fi
17259 
17260   if test "x$DEVKIT_TOOLCHAIN_PATH" != x; then
17261     if test "x$TOOLCHAIN_PATH" = x; then
17262       TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH"
17263     else
17264       TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH:$TOOLCHAIN_PATH"
17265     fi
17266   fi
17267 
17268 
17269         # If DEVKIT_SYSROOT is set, use that, otherwise try a couple of known
17270         # places for backwards compatiblity.
17271         if test "x$DEVKIT_SYSROOT" != x; then
17272           SYSROOT="$DEVKIT_SYSROOT"
17273         elif test -d "$DEVKIT_ROOT/$host_alias/libc"; then
17274           SYSROOT="$DEVKIT_ROOT/$host_alias/libc"
17275         elif test -d "$DEVKIT_ROOT/$host/sys-root"; then
17276           SYSROOT="$DEVKIT_ROOT/$host/sys-root"
17277         fi
17278 
17279 
17280 fi
17281 
17282 
17283   # You can force the sysroot if the sysroot encoded into the compiler tools
17284   # is not correct.
17285 
17286 # Check whether --with-sys-root was given.
17287 if test "${with_sys_root+set}" = set; then :
17288   withval=$with_sys_root; SYSROOT=$with_sys_root
17289 
17290 fi
17291 
17292 
17293 
17294 # Check whether --with-sysroot was given.
17295 if test "${with_sysroot+set}" = set; then :
17296   withval=$with_sysroot; SYSROOT=$with_sysroot
17297 
17298 fi
17299 
17300 
17301 
17302 # Check whether --with-tools-dir was given.
17303 if test "${with_tools_dir+set}" = set; then :
17304   withval=$with_tools_dir;
17305   if test "x$with_tools_dir" != x; then
17306     if test "x$TOOLCHAIN_PATH" = x; then
17307       TOOLCHAIN_PATH="$with_tools_dir"
17308     else
17309       TOOLCHAIN_PATH="$with_tools_dir:$TOOLCHAIN_PATH"
17310     fi
17311   fi
17312 
17313 
17314 fi
17315 
17316 
17317 
17318 # Check whether --with-toolchain-path was given.
17319 if test "${with_toolchain_path+set}" = set; then :
17320   withval=$with_toolchain_path;
17321   if test "x$with_toolchain_path" != x; then
17322     if test "x$TOOLCHAIN_PATH" = x; then
17323       TOOLCHAIN_PATH="$with_toolchain_path"
17324     else
17325       TOOLCHAIN_PATH="$with_toolchain_path:$TOOLCHAIN_PATH"
17326     fi
17327   fi
17328 
17329 
17330 fi
17331 
17332 
17333 
17334 # Check whether --with-extra-path was given.
17335 if test "${with_extra_path+set}" = set; then :
17336   withval=$with_extra_path;
17337   if test "x$with_extra_path" != x; then
17338     if test "x$EXTRA_PATH" = x; then
17339       EXTRA_PATH="$with_extra_path"
17340     else
17341       EXTRA_PATH="$with_extra_path:$EXTRA_PATH"
17342     fi
17343   fi
17344 
17345 
17346 fi
17347 
17348 
17349   if test "x$OPENJDK_BUILD_OS" = "xmacosx"; then
17350     # If a devkit has been supplied, find xcodebuild in the toolchain_path.
17351     # If not, detect if Xcode is installed by running xcodebuild -version
17352     # if no Xcode installed, xcodebuild exits with 1
17353     # if Xcode is installed, even if xcode-select is misconfigured, then it exits with 0
17354     if test "x$DEVKIT_ROOT" != x || /usr/bin/xcodebuild -version >/dev/null 2>&1; then
17355       # We need to use xcodebuild in the toolchain dir provided by the user, this will
17356       # fall back on the stub binary in /usr/bin/xcodebuild
17357       # Extract the first word of "xcodebuild", so it can be a program name with args.
17358 set dummy xcodebuild; ac_word=$2
17359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17360 $as_echo_n "checking for $ac_word... " >&6; }
17361 if ${ac_cv_path_XCODEBUILD+:} false; then :
17362   $as_echo_n "(cached) " >&6
17363 else
17364   case $XCODEBUILD in
17365   [\\/]* | ?:[\\/]*)
17366   ac_cv_path_XCODEBUILD="$XCODEBUILD" # Let the user override the test with a path.
17367   ;;
17368   *)
17369   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17370 for as_dir in $TOOLCHAIN_PATH
17371 do
17372   IFS=$as_save_IFS
17373   test -z "$as_dir" && as_dir=.
17374     for ac_exec_ext in '' $ac_executable_extensions; do
17375   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17376     ac_cv_path_XCODEBUILD="$as_dir/$ac_word$ac_exec_ext"
17377     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17378     break 2
17379   fi
17380 done
17381   done
17382 IFS=$as_save_IFS
17383 
17384   test -z "$ac_cv_path_XCODEBUILD" && ac_cv_path_XCODEBUILD="/usr/bin/xcodebuild"
17385   ;;
17386 esac
17387 fi
17388 XCODEBUILD=$ac_cv_path_XCODEBUILD
17389 if test -n "$XCODEBUILD"; then
17390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODEBUILD" >&5
17391 $as_echo "$XCODEBUILD" >&6; }
17392 else
17393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17394 $as_echo "no" >&6; }
17395 fi
17396 
17397 
17398     else
17399       # this should result in SYSROOT being empty, unless --with-sysroot is provided
17400       # when only the command line tools are installed there are no SDKs, so headers
17401       # are copied into the system frameworks
17402       XCODEBUILD=
17403 
17404     fi
17405 
17406     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdk name" >&5
17407 $as_echo_n "checking for sdk name... " >&6; }
17408 
17409 # Check whether --with-sdk-name was given.
17410 if test "${with_sdk_name+set}" = set; then :
17411   withval=$with_sdk_name; SDKNAME=$with_sdk_name
17412 
17413 fi
17414 
17415     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDKNAME" >&5
17416 $as_echo "$SDKNAME" >&6; }
17417 
17418     # if toolchain path is specified then don't rely on system headers, they may not compile
17419     HAVE_SYSTEM_FRAMEWORK_HEADERS=0
17420     test -z "$TOOLCHAIN_PATH" && \
17421       HAVE_SYSTEM_FRAMEWORK_HEADERS=`test ! -f /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h; echo $?`
17422 
17423     if test -z "$SYSROOT"; then
17424       if test -n "$XCODEBUILD"; then
17425         # if we don't have system headers, use default SDK name (last resort)
17426         if test -z "$SDKNAME" -a $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then
17427           SDKNAME=${SDKNAME:-macosx}
17428         fi
17429 
17430         if test -n "$SDKNAME"; then
17431           # Call xcodebuild to determine SYSROOT
17432           SYSROOT=`"$XCODEBUILD" -sdk $SDKNAME -version | $GREP '^Path: ' | $SED 's/Path: //'`
17433         fi
17434       else
17435         if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then
17436           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
17437         fi
17438       fi
17439     else
17440       # warn user if --with-sdk-name was also set
17441       if test -n "$with_sdk_name"; then
17442         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&5
17443 $as_echo "$as_me: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&2;}
17444       fi
17445     fi
17446 
17447     if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0 -a -z "$SYSROOT"; then
17448       # If no system framework headers, then SYSROOT must be set, or we won't build
17449       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
17450     fi
17451 
17452     # Perform a basic sanity test
17453     if test ! -f "$SYSROOT/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h"; then
17454       if test -z "$SYSROOT"; then
17455         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
17456       else
17457         as_fn_error $? "Invalid SDK or SYSROOT path, dependent framework headers not found" "$LINENO" 5
17458       fi
17459     fi
17460 
17461     # set SDKROOT too, Xcode tools will pick it up
17462     SDKROOT="$SYSROOT"
17463 
17464   fi
17465 
17466   # Prepend the extra path to the global path
17467 
17468   if test "x$EXTRA_PATH" != x; then
17469     if test "x$PATH" = x; then
17470       PATH="$EXTRA_PATH"
17471     else
17472       PATH="$EXTRA_PATH:$PATH"
17473     fi
17474   fi
17475 
17476 
17477   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
17478 $as_echo_n "checking for sysroot... " >&6; }
17479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSROOT" >&5
17480 $as_echo "$SYSROOT" >&6; }
17481   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for toolchain path" >&5
17482 $as_echo_n "checking for toolchain path... " >&6; }
17483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH" >&5
17484 $as_echo "$TOOLCHAIN_PATH" >&6; }
17485   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra path" >&5
17486 $as_echo_n "checking for extra path... " >&6; }
17487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_PATH" >&5
17488 $as_echo "$EXTRA_PATH" >&6; }
17489 
17490 
17491 # To properly create a configuration name, we need to have the OpenJDK target
17492 # and options (variants and debug level) parsed.
17493 
17494 
17495 
17496 # Check whether --with-conf-name was given.
17497 if test "${with_conf_name+set}" = set; then :
17498   withval=$with_conf_name;  CONF_NAME=${with_conf_name}
17499 fi
17500 
17501 
17502   # Test from where we are running configure, in or outside of src root.
17503   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to store configuration" >&5
17504 $as_echo_n "checking where to store configuration... " >&6; }
17505   if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" \
17506       || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" \
17507       || test "x$CURDIR" = "x$SRC_ROOT/make" ; then
17508     # We are running configure from the src root.
17509     # Create a default ./build/target-variant-debuglevel output root.
17510     if test "x${CONF_NAME}" = x; then
17511       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default location" >&5
17512 $as_echo "in default location" >&6; }
17513       CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${JVM_VARIANTS_WITH_AND}-${DEBUG_LEVEL}"
17514     else
17515       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5
17516 $as_echo "in build directory with custom name" >&6; }
17517     fi
17518     OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}"
17519     $MKDIR -p "$OUTPUT_ROOT"
17520     if test ! -d "$OUTPUT_ROOT"; then
17521       as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5
17522     fi
17523   else
17524     # We are running configure from outside of the src dir.
17525     # Then use the current directory as output dir!
17526     # If configuration is situated in normal build directory, just use the build
17527     # directory name as configuration name, otherwise use the complete path.
17528     if test "x${CONF_NAME}" = x; then
17529       CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${SRC_ROOT}/build/!!"`
17530     fi
17531     OUTPUT_ROOT="$CURDIR"
17532     { $as_echo "$as_me:${as_lineno-$LINENO}: result: in current directory" >&5
17533 $as_echo "in current directory" >&6; }
17534 
17535     # WARNING: This might be a bad thing to do. You need to be sure you want to
17536     # have a configuration in this directory. Do some sanity checks!
17537 
17538     if test ! -e "$OUTPUT_ROOT/spec.gmk"; then
17539       # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for
17540       # other files
17541       files_present=`$LS $OUTPUT_ROOT`
17542       # Configure has already touched config.log and confdefs.h in the current dir when this check
17543       # is performed.
17544       filtered_files=`$ECHO "$files_present" \
17545           | $SED -e 's/config.log//g' \
17546               -e 's/configure.log//g' \
17547               -e 's/confdefs.h//g' \
17548               -e 's/ //g' \
17549           | $TR -d '\n'`
17550       if test "x$filtered_files" != x; then
17551         { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5
17552 $as_echo "$as_me: Current directory is $CURDIR." >&6;}
17553         { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5
17554 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;}
17555         { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5
17556 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;}
17557         { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5
17558 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;}
17559         { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5
17560 $as_echo "$as_me: seriously mess up just about everything." >&6;}
17561         { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $SRC_ROOT' and restart configure" >&5
17562 $as_echo "$as_me: Try 'cd $SRC_ROOT' and restart configure" >&6;}
17563         { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5
17564 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;}
17565         as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5
17566       fi
17567     fi
17568   fi
17569   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5
17570 $as_echo_n "checking what configuration name to use... " >&6; }
17571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5
17572 $as_echo "$CONF_NAME" >&6; }
17573 
17574 
17575   # Only process if variable expands to non-empty
17576 
17577   if test "x$OUTPUT_ROOT" != x; then
17578     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17579 
17580   # Input might be given as Windows format, start by converting to
17581   # unix format.
17582   path="$OUTPUT_ROOT"
17583   new_path=`$CYGPATH -u "$path"`
17584 
17585   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
17586   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
17587   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
17588   # "foo.exe" is OK but "foo" is an error.
17589   #
17590   # This test is therefore slightly more accurate than "test -f" to check for file precense.
17591   # It is also a way to make sure we got the proper file name for the real test later on.
17592   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
17593   if test "x$test_shortpath" = x; then
17594     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
17595 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
17596     as_fn_error $? "Cannot locate the the path of OUTPUT_ROOT" "$LINENO" 5
17597   fi
17598 
17599   # Call helper function which possibly converts this using DOS-style short mode.
17600   # If so, the updated path is stored in $new_path.
17601 
17602   input_path="$new_path"
17603   # Check if we need to convert this using DOS-style short mode. If the path
17604   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17605   # take no chances and rewrite it.
17606   # Note: m4 eats our [], so we need to use [ and ] instead.
17607   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
17608   if test "x$has_forbidden_chars" != x; then
17609     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17610     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
17611     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
17612     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
17613       # Going to short mode and back again did indeed matter. Since short mode is
17614       # case insensitive, let's make it lowercase to improve readability.
17615       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17616       # Now convert it back to Unix-style (cygpath)
17617       input_path=`$CYGPATH -u "$shortmode_path"`
17618       new_path="$input_path"
17619     fi
17620   fi
17621 
17622   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
17623   if test "x$test_cygdrive_prefix" = x; then
17624     # As a simple fix, exclude /usr/bin since it's not a real path.
17625     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
17626       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
17627       # a path prefixed by /cygdrive for fixpath to work.
17628       new_path="$CYGWIN_ROOT_PATH$input_path"
17629     fi
17630   fi
17631 
17632 
17633   if test "x$path" != "x$new_path"; then
17634     OUTPUT_ROOT="$new_path"
17635     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
17636 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
17637   fi
17638 
17639     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17640 
17641   path="$OUTPUT_ROOT"
17642   has_colon=`$ECHO $path | $GREP ^.:`
17643   new_path="$path"
17644   if test "x$has_colon" = x; then
17645     # Not in mixed or Windows style, start by that.
17646     new_path=`cmd //c echo $path`
17647   fi
17648 
17649 
17650   input_path="$new_path"
17651   # Check if we need to convert this using DOS-style short mode. If the path
17652   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17653   # take no chances and rewrite it.
17654   # Note: m4 eats our [], so we need to use [ and ] instead.
17655   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
17656   if test "x$has_forbidden_chars" != x; then
17657     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17658     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17659   fi
17660 
17661 
17662   windows_path="$new_path"
17663   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17664     unix_path=`$CYGPATH -u "$windows_path"`
17665     new_path="$unix_path"
17666   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17667     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17668     new_path="$unix_path"
17669   fi
17670 
17671   if test "x$path" != "x$new_path"; then
17672     OUTPUT_ROOT="$new_path"
17673     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
17674 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
17675   fi
17676 
17677   # Save the first 10 bytes of this path to the storage, so fixpath can work.
17678   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
17679 
17680     else
17681       # We're on a unix platform. Hooray! :)
17682       path="$OUTPUT_ROOT"
17683       has_space=`$ECHO "$path" | $GREP " "`
17684       if test "x$has_space" != x; then
17685         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
17686 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
17687         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
17688       fi
17689 
17690       # Use eval to expand a potential ~
17691       eval path="$path"
17692       if test ! -f "$path" && test ! -d "$path"; then
17693         as_fn_error $? "The path of OUTPUT_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5
17694       fi
17695 
17696       if test -d "$path"; then
17697         OUTPUT_ROOT="`cd "$path"; $THEPWDCMD -L`"
17698       else
17699         dir="`$DIRNAME "$path"`"
17700         base="`$BASENAME "$path"`"
17701         OUTPUT_ROOT="`cd "$dir"; $THEPWDCMD -L`/$base"
17702       fi
17703     fi
17704   fi
17705 
17706 
17707   CONFIGURESUPPORT_OUTPUTDIR="$OUTPUT_ROOT/configure-support"
17708   $MKDIR -p "$CONFIGURESUPPORT_OUTPUTDIR"
17709 
17710   SPEC="$OUTPUT_ROOT/spec.gmk"
17711 
17712 
17713 
17714 
17715 
17716   # The spec.gmk file contains all variables for the make system.
17717   ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in"
17718 
17719   # The bootcycle-spec.gmk file contains support for boot cycle builds.
17720   ac_config_files="$ac_config_files $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in"
17721 
17722   # The buildjdk-spec.gmk file contains support for building a buildjdk when cross compiling.
17723   ac_config_files="$ac_config_files $OUTPUT_ROOT/buildjdk-spec.gmk:$AUTOCONF_DIR/buildjdk-spec.gmk.in"
17724 
17725   # The compare.sh is used to compare the build output to other builds.
17726   ac_config_files="$ac_config_files $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in"
17727 
17728   # The generated Makefile knows where the spec.gmk is and where the source is.
17729   # You can run make from the OUTPUT_ROOT, or from the top-level Makefile
17730   # which will look for generated configurations
17731   ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in"
17732 
17733 
17734 
17735 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY.
17736 
17737   for ac_prog in apt-get yum brew port pkgutil pkgadd
17738 do
17739   # Extract the first word of "$ac_prog", so it can be a program name with args.
17740 set dummy $ac_prog; ac_word=$2
17741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17742 $as_echo_n "checking for $ac_word... " >&6; }
17743 if ${ac_cv_prog_PKGHANDLER+:} false; then :
17744   $as_echo_n "(cached) " >&6
17745 else
17746   if test -n "$PKGHANDLER"; then
17747   ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test.
17748 else
17749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17750 for as_dir in $PATH
17751 do
17752   IFS=$as_save_IFS
17753   test -z "$as_dir" && as_dir=.
17754     for ac_exec_ext in '' $ac_executable_extensions; do
17755   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17756     ac_cv_prog_PKGHANDLER="$ac_prog"
17757     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17758     break 2
17759   fi
17760 done
17761   done
17762 IFS=$as_save_IFS
17763 
17764 fi
17765 fi
17766 PKGHANDLER=$ac_cv_prog_PKGHANDLER
17767 if test -n "$PKGHANDLER"; then
17768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5
17769 $as_echo "$PKGHANDLER" >&6; }
17770 else
17771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17772 $as_echo "no" >&6; }
17773 fi
17774 
17775 
17776   test -n "$PKGHANDLER" && break
17777 done
17778 
17779 
17780 
17781 # Setup tools that requires more complex handling, or that is not needed by the configure script.
17782 
17783 
17784 
17785   # Publish this variable in the help.
17786 
17787 
17788   if [ -z "${MAKE+x}" ]; then
17789     # The variable is not set by user, try to locate tool using the code snippet
17790 
17791     # Try our hardest to locate a correct version of GNU make
17792     for ac_prog in gmake
17793 do
17794   # Extract the first word of "$ac_prog", so it can be a program name with args.
17795 set dummy $ac_prog; ac_word=$2
17796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17797 $as_echo_n "checking for $ac_word... " >&6; }
17798 if ${ac_cv_path_CHECK_GMAKE+:} false; then :
17799   $as_echo_n "(cached) " >&6
17800 else
17801   case $CHECK_GMAKE in
17802   [\\/]* | ?:[\\/]*)
17803   ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
17804   ;;
17805   *)
17806   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17807 for as_dir in $PATH
17808 do
17809   IFS=$as_save_IFS
17810   test -z "$as_dir" && as_dir=.
17811     for ac_exec_ext in '' $ac_executable_extensions; do
17812   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17813     ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
17814     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17815     break 2
17816   fi
17817 done
17818   done
17819 IFS=$as_save_IFS
17820 
17821   ;;
17822 esac
17823 fi
17824 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE
17825 if test -n "$CHECK_GMAKE"; then
17826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5
17827 $as_echo "$CHECK_GMAKE" >&6; }
17828 else
17829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17830 $as_echo "no" >&6; }
17831 fi
17832 
17833 
17834   test -n "$CHECK_GMAKE" && break
17835 done
17836 
17837 
17838   MAKE_CANDIDATE=""$CHECK_GMAKE""
17839   DESCRIPTION="gmake in PATH"
17840 
17841   # On Cygwin, we require a newer version of make than on other platforms
17842   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17843     MAKE_VERSION_EXPR="-e 4\."
17844     MAKE_REQUIRED_VERSION="4.0"
17845    else
17846     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
17847     MAKE_REQUIRED_VERSION="3.81"
17848   fi
17849 
17850   if test "x$MAKE_CANDIDATE" != x; then
17851     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
17852 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
17853     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
17854     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
17855     if test "x$IS_GNU_MAKE" = x; then
17856       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
17857 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
17858     else
17859       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
17860       if test "x$IS_MODERN_MAKE" = x; then
17861         { $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
17862 $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;}
17863       else
17864         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
17865           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17866             MAKE_EXPECTED_ENV='cygwin'
17867           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17868             MAKE_EXPECTED_ENV='msys'
17869           else
17870             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
17871           fi
17872           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
17873           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
17874         else
17875           # Not relevant for non-Windows
17876           IS_MAKE_CORRECT_ENV=true
17877         fi
17878         if test "x$IS_MAKE_CORRECT_ENV" = x; then
17879           { $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
17880 $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;}
17881         else
17882           FOUND_MAKE=$MAKE_CANDIDATE
17883 
17884   # Only process if variable expands to non-empty
17885 
17886   if test "x$FOUND_MAKE" != x; then
17887     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17888 
17889   # First separate the path from the arguments. This will split at the first
17890   # space.
17891   complete="$FOUND_MAKE"
17892   path="${complete%% *}"
17893   tmp="$complete EOL"
17894   arguments="${tmp#* }"
17895 
17896   # Input might be given as Windows format, start by converting to
17897   # unix format.
17898   new_path=`$CYGPATH -u "$path"`
17899 
17900   # Now try to locate executable using which
17901   new_path=`$WHICH "$new_path" 2> /dev/null`
17902   # bat and cmd files are not always considered executable in cygwin causing which
17903   # to not find them
17904   if test "x$new_path" = x \
17905       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17906       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17907     new_path=`$CYGPATH -u "$path"`
17908   fi
17909   if test "x$new_path" = x; then
17910     # Oops. Which didn't find the executable.
17911     # The splitting of arguments from the executable at a space might have been incorrect,
17912     # since paths with space are more likely in Windows. Give it another try with the whole
17913     # argument.
17914     path="$complete"
17915     arguments="EOL"
17916     new_path=`$CYGPATH -u "$path"`
17917     new_path=`$WHICH "$new_path" 2> /dev/null`
17918     # bat and cmd files are not always considered executable in cygwin causing which
17919     # to not find them
17920     if test "x$new_path" = x \
17921         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17922         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17923       new_path=`$CYGPATH -u "$path"`
17924     fi
17925     if test "x$new_path" = x; then
17926       # It's still not found. Now this is an unrecoverable error.
17927       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17928 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17929       has_space=`$ECHO "$complete" | $GREP " "`
17930       if test "x$has_space" != x; then
17931         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17932 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17933       fi
17934       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17935     fi
17936   fi
17937 
17938   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
17939   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
17940   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
17941   # "foo.exe" is OK but "foo" is an error.
17942   #
17943   # This test is therefore slightly more accurate than "test -f" to check for file presence.
17944   # It is also a way to make sure we got the proper file name for the real test later on.
17945   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
17946   if test "x$test_shortpath" = x; then
17947     # Short path failed, file does not exist as specified.
17948     # Try adding .exe or .cmd
17949     if test -f "${new_path}.exe"; then
17950       input_to_shortpath="${new_path}.exe"
17951     elif test -f "${new_path}.cmd"; then
17952       input_to_shortpath="${new_path}.cmd"
17953     else
17954       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
17955 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
17956       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
17957 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
17958       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17959     fi
17960   else
17961     input_to_shortpath="$new_path"
17962   fi
17963 
17964   # Call helper function which possibly converts this using DOS-style short mode.
17965   # If so, the updated path is stored in $new_path.
17966   new_path="$input_to_shortpath"
17967 
17968   input_path="$input_to_shortpath"
17969   # Check if we need to convert this using DOS-style short mode. If the path
17970   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17971   # take no chances and rewrite it.
17972   # Note: m4 eats our [], so we need to use [ and ] instead.
17973   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
17974   if test "x$has_forbidden_chars" != x; then
17975     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17976     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
17977     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
17978     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
17979       # Going to short mode and back again did indeed matter. Since short mode is
17980       # case insensitive, let's make it lowercase to improve readability.
17981       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17982       # Now convert it back to Unix-style (cygpath)
17983       input_path=`$CYGPATH -u "$shortmode_path"`
17984       new_path="$input_path"
17985     fi
17986   fi
17987 
17988   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
17989   if test "x$test_cygdrive_prefix" = x; then
17990     # As a simple fix, exclude /usr/bin since it's not a real path.
17991     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
17992       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
17993       # a path prefixed by /cygdrive for fixpath to work.
17994       new_path="$CYGWIN_ROOT_PATH$input_path"
17995     fi
17996   fi
17997 
17998   # remove trailing .exe if any
17999   new_path="${new_path/%.exe/}"
18000 
18001     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18002 
18003   # First separate the path from the arguments. This will split at the first
18004   # space.
18005   complete="$FOUND_MAKE"
18006   path="${complete%% *}"
18007   tmp="$complete EOL"
18008   arguments="${tmp#* }"
18009 
18010   # Input might be given as Windows format, start by converting to
18011   # unix format.
18012   new_path="$path"
18013 
18014   windows_path="$new_path"
18015   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18016     unix_path=`$CYGPATH -u "$windows_path"`
18017     new_path="$unix_path"
18018   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18019     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18020     new_path="$unix_path"
18021   fi
18022 
18023 
18024   # Now try to locate executable using which
18025   new_path=`$WHICH "$new_path" 2> /dev/null`
18026 
18027   if test "x$new_path" = x; then
18028     # Oops. Which didn't find the executable.
18029     # The splitting of arguments from the executable at a space might have been incorrect,
18030     # since paths with space are more likely in Windows. Give it another try with the whole
18031     # argument.
18032     path="$complete"
18033     arguments="EOL"
18034     new_path="$path"
18035 
18036   windows_path="$new_path"
18037   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18038     unix_path=`$CYGPATH -u "$windows_path"`
18039     new_path="$unix_path"
18040   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18041     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18042     new_path="$unix_path"
18043   fi
18044 
18045 
18046     new_path=`$WHICH "$new_path" 2> /dev/null`
18047     # bat and cmd files are not always considered executable in MSYS causing which
18048     # to not find them
18049     if test "x$new_path" = x \
18050         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18051         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18052       new_path="$path"
18053 
18054   windows_path="$new_path"
18055   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18056     unix_path=`$CYGPATH -u "$windows_path"`
18057     new_path="$unix_path"
18058   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18059     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18060     new_path="$unix_path"
18061   fi
18062 
18063     fi
18064 
18065     if test "x$new_path" = x; then
18066       # It's still not found. Now this is an unrecoverable error.
18067       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18068 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18069       has_space=`$ECHO "$complete" | $GREP " "`
18070       if test "x$has_space" != x; then
18071         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18072 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18073       fi
18074       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18075     fi
18076   fi
18077 
18078   # Now new_path has a complete unix path to the binary
18079   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
18080     # Keep paths in /bin as-is, but remove trailing .exe if any
18081     new_path="${new_path/%.exe/}"
18082     # Do not save /bin paths to all_fixpath_prefixes!
18083   else
18084     # Not in mixed or Windows style, start by that.
18085     new_path=`cmd //c echo $new_path`
18086 
18087   input_path="$new_path"
18088   # Check if we need to convert this using DOS-style short mode. If the path
18089   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18090   # take no chances and rewrite it.
18091   # Note: m4 eats our [], so we need to use [ and ] instead.
18092   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
18093   if test "x$has_forbidden_chars" != x; then
18094     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18095     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18096   fi
18097 
18098     # Output is in $new_path
18099 
18100   windows_path="$new_path"
18101   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18102     unix_path=`$CYGPATH -u "$windows_path"`
18103     new_path="$unix_path"
18104   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18105     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18106     new_path="$unix_path"
18107   fi
18108 
18109     # remove trailing .exe if any
18110     new_path="${new_path/%.exe/}"
18111 
18112     # Save the first 10 bytes of this path to the storage, so fixpath can work.
18113     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
18114   fi
18115 
18116     else
18117       # We're on a unix platform. Hooray! :)
18118       # First separate the path from the arguments. This will split at the first
18119       # space.
18120       complete="$FOUND_MAKE"
18121       path="${complete%% *}"
18122       tmp="$complete EOL"
18123       arguments="${tmp#* }"
18124 
18125       # Cannot rely on the command "which" here since it doesn't always work.
18126       is_absolute_path=`$ECHO "$path" | $GREP ^/`
18127       if test -z "$is_absolute_path"; then
18128         # Path to executable is not absolute. Find it.
18129         IFS_save="$IFS"
18130         IFS=:
18131         for p in $PATH; do
18132           if test -f "$p/$path" && test -x "$p/$path"; then
18133             new_path="$p/$path"
18134             break
18135           fi
18136         done
18137         IFS="$IFS_save"
18138       else
18139         # This is an absolute path, we can use it without further modifications.
18140         new_path="$path"
18141       fi
18142 
18143       if test "x$new_path" = x; then
18144         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18145 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18146         has_space=`$ECHO "$complete" | $GREP " "`
18147         if test "x$has_space" != x; then
18148           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
18149 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
18150         fi
18151         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18152       fi
18153     fi
18154 
18155     # Now join together the path and the arguments once again
18156     if test "x$arguments" != xEOL; then
18157       new_complete="$new_path ${arguments% *}"
18158     else
18159       new_complete="$new_path"
18160     fi
18161 
18162     if test "x$complete" != "x$new_complete"; then
18163       FOUND_MAKE="$new_complete"
18164       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
18165 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
18166     fi
18167   fi
18168 
18169         fi
18170       fi
18171     fi
18172   fi
18173 
18174 
18175     if test "x$FOUND_MAKE" = x; then
18176       for ac_prog in make
18177 do
18178   # Extract the first word of "$ac_prog", so it can be a program name with args.
18179 set dummy $ac_prog; ac_word=$2
18180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18181 $as_echo_n "checking for $ac_word... " >&6; }
18182 if ${ac_cv_path_CHECK_MAKE+:} false; then :
18183   $as_echo_n "(cached) " >&6
18184 else
18185   case $CHECK_MAKE in
18186   [\\/]* | ?:[\\/]*)
18187   ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
18188   ;;
18189   *)
18190   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18191 for as_dir in $PATH
18192 do
18193   IFS=$as_save_IFS
18194   test -z "$as_dir" && as_dir=.
18195     for ac_exec_ext in '' $ac_executable_extensions; do
18196   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18197     ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
18198     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18199     break 2
18200   fi
18201 done
18202   done
18203 IFS=$as_save_IFS
18204 
18205   ;;
18206 esac
18207 fi
18208 CHECK_MAKE=$ac_cv_path_CHECK_MAKE
18209 if test -n "$CHECK_MAKE"; then
18210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5
18211 $as_echo "$CHECK_MAKE" >&6; }
18212 else
18213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18214 $as_echo "no" >&6; }
18215 fi
18216 
18217 
18218   test -n "$CHECK_MAKE" && break
18219 done
18220 
18221 
18222   MAKE_CANDIDATE=""$CHECK_MAKE""
18223   DESCRIPTION="make in PATH"
18224 
18225   # On Cygwin, we require a newer version of make than on other platforms
18226   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18227     MAKE_VERSION_EXPR="-e 4\."
18228     MAKE_REQUIRED_VERSION="4.0"
18229    else
18230     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
18231     MAKE_REQUIRED_VERSION="3.81"
18232   fi
18233 
18234   if test "x$MAKE_CANDIDATE" != x; then
18235     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
18236 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
18237     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
18238     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
18239     if test "x$IS_GNU_MAKE" = x; then
18240       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
18241 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
18242     else
18243       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
18244       if test "x$IS_MODERN_MAKE" = x; then
18245         { $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
18246 $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;}
18247       else
18248         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
18249           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18250             MAKE_EXPECTED_ENV='cygwin'
18251           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18252             MAKE_EXPECTED_ENV='msys'
18253           else
18254             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
18255           fi
18256           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
18257           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
18258         else
18259           # Not relevant for non-Windows
18260           IS_MAKE_CORRECT_ENV=true
18261         fi
18262         if test "x$IS_MAKE_CORRECT_ENV" = x; then
18263           { $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
18264 $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;}
18265         else
18266           FOUND_MAKE=$MAKE_CANDIDATE
18267 
18268   # Only process if variable expands to non-empty
18269 
18270   if test "x$FOUND_MAKE" != x; then
18271     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18272 
18273   # First separate the path from the arguments. This will split at the first
18274   # space.
18275   complete="$FOUND_MAKE"
18276   path="${complete%% *}"
18277   tmp="$complete EOL"
18278   arguments="${tmp#* }"
18279 
18280   # Input might be given as Windows format, start by converting to
18281   # unix format.
18282   new_path=`$CYGPATH -u "$path"`
18283 
18284   # Now try to locate executable using which
18285   new_path=`$WHICH "$new_path" 2> /dev/null`
18286   # bat and cmd files are not always considered executable in cygwin causing which
18287   # to not find them
18288   if test "x$new_path" = x \
18289       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18290       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18291     new_path=`$CYGPATH -u "$path"`
18292   fi
18293   if test "x$new_path" = x; then
18294     # Oops. Which didn't find the executable.
18295     # The splitting of arguments from the executable at a space might have been incorrect,
18296     # since paths with space are more likely in Windows. Give it another try with the whole
18297     # argument.
18298     path="$complete"
18299     arguments="EOL"
18300     new_path=`$CYGPATH -u "$path"`
18301     new_path=`$WHICH "$new_path" 2> /dev/null`
18302     # bat and cmd files are not always considered executable in cygwin causing which
18303     # to not find them
18304     if test "x$new_path" = x \
18305         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18306         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18307       new_path=`$CYGPATH -u "$path"`
18308     fi
18309     if test "x$new_path" = x; then
18310       # It's still not found. Now this is an unrecoverable error.
18311       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18312 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18313       has_space=`$ECHO "$complete" | $GREP " "`
18314       if test "x$has_space" != x; then
18315         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18316 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18317       fi
18318       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18319     fi
18320   fi
18321 
18322   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
18323   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
18324   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
18325   # "foo.exe" is OK but "foo" is an error.
18326   #
18327   # This test is therefore slightly more accurate than "test -f" to check for file presence.
18328   # It is also a way to make sure we got the proper file name for the real test later on.
18329   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
18330   if test "x$test_shortpath" = x; then
18331     # Short path failed, file does not exist as specified.
18332     # Try adding .exe or .cmd
18333     if test -f "${new_path}.exe"; then
18334       input_to_shortpath="${new_path}.exe"
18335     elif test -f "${new_path}.cmd"; then
18336       input_to_shortpath="${new_path}.cmd"
18337     else
18338       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
18339 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
18340       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
18341 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
18342       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18343     fi
18344   else
18345     input_to_shortpath="$new_path"
18346   fi
18347 
18348   # Call helper function which possibly converts this using DOS-style short mode.
18349   # If so, the updated path is stored in $new_path.
18350   new_path="$input_to_shortpath"
18351 
18352   input_path="$input_to_shortpath"
18353   # Check if we need to convert this using DOS-style short mode. If the path
18354   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18355   # take no chances and rewrite it.
18356   # Note: m4 eats our [], so we need to use [ and ] instead.
18357   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
18358   if test "x$has_forbidden_chars" != x; then
18359     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18360     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
18361     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
18362     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
18363       # Going to short mode and back again did indeed matter. Since short mode is
18364       # case insensitive, let's make it lowercase to improve readability.
18365       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18366       # Now convert it back to Unix-style (cygpath)
18367       input_path=`$CYGPATH -u "$shortmode_path"`
18368       new_path="$input_path"
18369     fi
18370   fi
18371 
18372   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
18373   if test "x$test_cygdrive_prefix" = x; then
18374     # As a simple fix, exclude /usr/bin since it's not a real path.
18375     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
18376       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
18377       # a path prefixed by /cygdrive for fixpath to work.
18378       new_path="$CYGWIN_ROOT_PATH$input_path"
18379     fi
18380   fi
18381 
18382   # remove trailing .exe if any
18383   new_path="${new_path/%.exe/}"
18384 
18385     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18386 
18387   # First separate the path from the arguments. This will split at the first
18388   # space.
18389   complete="$FOUND_MAKE"
18390   path="${complete%% *}"
18391   tmp="$complete EOL"
18392   arguments="${tmp#* }"
18393 
18394   # Input might be given as Windows format, start by converting to
18395   # unix format.
18396   new_path="$path"
18397 
18398   windows_path="$new_path"
18399   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18400     unix_path=`$CYGPATH -u "$windows_path"`
18401     new_path="$unix_path"
18402   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18403     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18404     new_path="$unix_path"
18405   fi
18406 
18407 
18408   # Now try to locate executable using which
18409   new_path=`$WHICH "$new_path" 2> /dev/null`
18410 
18411   if test "x$new_path" = x; then
18412     # Oops. Which didn't find the executable.
18413     # The splitting of arguments from the executable at a space might have been incorrect,
18414     # since paths with space are more likely in Windows. Give it another try with the whole
18415     # argument.
18416     path="$complete"
18417     arguments="EOL"
18418     new_path="$path"
18419 
18420   windows_path="$new_path"
18421   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18422     unix_path=`$CYGPATH -u "$windows_path"`
18423     new_path="$unix_path"
18424   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18425     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18426     new_path="$unix_path"
18427   fi
18428 
18429 
18430     new_path=`$WHICH "$new_path" 2> /dev/null`
18431     # bat and cmd files are not always considered executable in MSYS causing which
18432     # to not find them
18433     if test "x$new_path" = x \
18434         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18435         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18436       new_path="$path"
18437 
18438   windows_path="$new_path"
18439   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18440     unix_path=`$CYGPATH -u "$windows_path"`
18441     new_path="$unix_path"
18442   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18443     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18444     new_path="$unix_path"
18445   fi
18446 
18447     fi
18448 
18449     if test "x$new_path" = x; then
18450       # It's still not found. Now this is an unrecoverable error.
18451       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18452 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18453       has_space=`$ECHO "$complete" | $GREP " "`
18454       if test "x$has_space" != x; then
18455         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18456 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18457       fi
18458       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18459     fi
18460   fi
18461 
18462   # Now new_path has a complete unix path to the binary
18463   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
18464     # Keep paths in /bin as-is, but remove trailing .exe if any
18465     new_path="${new_path/%.exe/}"
18466     # Do not save /bin paths to all_fixpath_prefixes!
18467   else
18468     # Not in mixed or Windows style, start by that.
18469     new_path=`cmd //c echo $new_path`
18470 
18471   input_path="$new_path"
18472   # Check if we need to convert this using DOS-style short mode. If the path
18473   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18474   # take no chances and rewrite it.
18475   # Note: m4 eats our [], so we need to use [ and ] instead.
18476   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
18477   if test "x$has_forbidden_chars" != x; then
18478     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18479     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18480   fi
18481 
18482     # Output is in $new_path
18483 
18484   windows_path="$new_path"
18485   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18486     unix_path=`$CYGPATH -u "$windows_path"`
18487     new_path="$unix_path"
18488   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18489     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18490     new_path="$unix_path"
18491   fi
18492 
18493     # remove trailing .exe if any
18494     new_path="${new_path/%.exe/}"
18495 
18496     # Save the first 10 bytes of this path to the storage, so fixpath can work.
18497     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
18498   fi
18499 
18500     else
18501       # We're on a unix platform. Hooray! :)
18502       # First separate the path from the arguments. This will split at the first
18503       # space.
18504       complete="$FOUND_MAKE"
18505       path="${complete%% *}"
18506       tmp="$complete EOL"
18507       arguments="${tmp#* }"
18508 
18509       # Cannot rely on the command "which" here since it doesn't always work.
18510       is_absolute_path=`$ECHO "$path" | $GREP ^/`
18511       if test -z "$is_absolute_path"; then
18512         # Path to executable is not absolute. Find it.
18513         IFS_save="$IFS"
18514         IFS=:
18515         for p in $PATH; do
18516           if test -f "$p/$path" && test -x "$p/$path"; then
18517             new_path="$p/$path"
18518             break
18519           fi
18520         done
18521         IFS="$IFS_save"
18522       else
18523         # This is an absolute path, we can use it without further modifications.
18524         new_path="$path"
18525       fi
18526 
18527       if test "x$new_path" = x; then
18528         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18529 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18530         has_space=`$ECHO "$complete" | $GREP " "`
18531         if test "x$has_space" != x; then
18532           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
18533 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
18534         fi
18535         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18536       fi
18537     fi
18538 
18539     # Now join together the path and the arguments once again
18540     if test "x$arguments" != xEOL; then
18541       new_complete="$new_path ${arguments% *}"
18542     else
18543       new_complete="$new_path"
18544     fi
18545 
18546     if test "x$complete" != "x$new_complete"; then
18547       FOUND_MAKE="$new_complete"
18548       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
18549 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
18550     fi
18551   fi
18552 
18553         fi
18554       fi
18555     fi
18556   fi
18557 
18558     fi
18559 
18560     if test "x$FOUND_MAKE" = x; then
18561       if test "x$TOOLCHAIN_PATH" != x; then
18562         # We have a toolchain path, check that as well before giving up.
18563         OLD_PATH=$PATH
18564         PATH=$TOOLCHAIN_PATH:$PATH
18565         for ac_prog in gmake
18566 do
18567   # Extract the first word of "$ac_prog", so it can be a program name with args.
18568 set dummy $ac_prog; ac_word=$2
18569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18570 $as_echo_n "checking for $ac_word... " >&6; }
18571 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then :
18572   $as_echo_n "(cached) " >&6
18573 else
18574   case $CHECK_TOOLSDIR_GMAKE in
18575   [\\/]* | ?:[\\/]*)
18576   ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
18577   ;;
18578   *)
18579   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18580 for as_dir in $PATH
18581 do
18582   IFS=$as_save_IFS
18583   test -z "$as_dir" && as_dir=.
18584     for ac_exec_ext in '' $ac_executable_extensions; do
18585   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18586     ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
18587     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18588     break 2
18589   fi
18590 done
18591   done
18592 IFS=$as_save_IFS
18593 
18594   ;;
18595 esac
18596 fi
18597 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE
18598 if test -n "$CHECK_TOOLSDIR_GMAKE"; then
18599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5
18600 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; }
18601 else
18602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18603 $as_echo "no" >&6; }
18604 fi
18605 
18606 
18607   test -n "$CHECK_TOOLSDIR_GMAKE" && break
18608 done
18609 
18610 
18611   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE""
18612   DESCRIPTION="gmake in tools-dir"
18613 
18614   # On Cygwin, we require a newer version of make than on other platforms
18615   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18616     MAKE_VERSION_EXPR="-e 4\."
18617     MAKE_REQUIRED_VERSION="4.0"
18618    else
18619     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
18620     MAKE_REQUIRED_VERSION="3.81"
18621   fi
18622 
18623   if test "x$MAKE_CANDIDATE" != x; then
18624     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
18625 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
18626     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
18627     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
18628     if test "x$IS_GNU_MAKE" = x; then
18629       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
18630 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
18631     else
18632       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
18633       if test "x$IS_MODERN_MAKE" = x; then
18634         { $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
18635 $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;}
18636       else
18637         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
18638           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18639             MAKE_EXPECTED_ENV='cygwin'
18640           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18641             MAKE_EXPECTED_ENV='msys'
18642           else
18643             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
18644           fi
18645           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
18646           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
18647         else
18648           # Not relevant for non-Windows
18649           IS_MAKE_CORRECT_ENV=true
18650         fi
18651         if test "x$IS_MAKE_CORRECT_ENV" = x; then
18652           { $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
18653 $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;}
18654         else
18655           FOUND_MAKE=$MAKE_CANDIDATE
18656 
18657   # Only process if variable expands to non-empty
18658 
18659   if test "x$FOUND_MAKE" != x; then
18660     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18661 
18662   # First separate the path from the arguments. This will split at the first
18663   # space.
18664   complete="$FOUND_MAKE"
18665   path="${complete%% *}"
18666   tmp="$complete EOL"
18667   arguments="${tmp#* }"
18668 
18669   # Input might be given as Windows format, start by converting to
18670   # unix format.
18671   new_path=`$CYGPATH -u "$path"`
18672 
18673   # Now try to locate executable using which
18674   new_path=`$WHICH "$new_path" 2> /dev/null`
18675   # bat and cmd files are not always considered executable in cygwin causing which
18676   # to not find them
18677   if test "x$new_path" = x \
18678       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18679       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18680     new_path=`$CYGPATH -u "$path"`
18681   fi
18682   if test "x$new_path" = x; then
18683     # Oops. Which didn't find the executable.
18684     # The splitting of arguments from the executable at a space might have been incorrect,
18685     # since paths with space are more likely in Windows. Give it another try with the whole
18686     # argument.
18687     path="$complete"
18688     arguments="EOL"
18689     new_path=`$CYGPATH -u "$path"`
18690     new_path=`$WHICH "$new_path" 2> /dev/null`
18691     # bat and cmd files are not always considered executable in cygwin causing which
18692     # to not find them
18693     if test "x$new_path" = x \
18694         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18695         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18696       new_path=`$CYGPATH -u "$path"`
18697     fi
18698     if test "x$new_path" = x; then
18699       # It's still not found. Now this is an unrecoverable error.
18700       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18701 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18702       has_space=`$ECHO "$complete" | $GREP " "`
18703       if test "x$has_space" != x; then
18704         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18705 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18706       fi
18707       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18708     fi
18709   fi
18710 
18711   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
18712   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
18713   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
18714   # "foo.exe" is OK but "foo" is an error.
18715   #
18716   # This test is therefore slightly more accurate than "test -f" to check for file presence.
18717   # It is also a way to make sure we got the proper file name for the real test later on.
18718   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
18719   if test "x$test_shortpath" = x; then
18720     # Short path failed, file does not exist as specified.
18721     # Try adding .exe or .cmd
18722     if test -f "${new_path}.exe"; then
18723       input_to_shortpath="${new_path}.exe"
18724     elif test -f "${new_path}.cmd"; then
18725       input_to_shortpath="${new_path}.cmd"
18726     else
18727       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
18728 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
18729       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
18730 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
18731       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18732     fi
18733   else
18734     input_to_shortpath="$new_path"
18735   fi
18736 
18737   # Call helper function which possibly converts this using DOS-style short mode.
18738   # If so, the updated path is stored in $new_path.
18739   new_path="$input_to_shortpath"
18740 
18741   input_path="$input_to_shortpath"
18742   # Check if we need to convert this using DOS-style short mode. If the path
18743   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18744   # take no chances and rewrite it.
18745   # Note: m4 eats our [], so we need to use [ and ] instead.
18746   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
18747   if test "x$has_forbidden_chars" != x; then
18748     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18749     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
18750     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
18751     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
18752       # Going to short mode and back again did indeed matter. Since short mode is
18753       # case insensitive, let's make it lowercase to improve readability.
18754       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18755       # Now convert it back to Unix-style (cygpath)
18756       input_path=`$CYGPATH -u "$shortmode_path"`
18757       new_path="$input_path"
18758     fi
18759   fi
18760 
18761   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
18762   if test "x$test_cygdrive_prefix" = x; then
18763     # As a simple fix, exclude /usr/bin since it's not a real path.
18764     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
18765       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
18766       # a path prefixed by /cygdrive for fixpath to work.
18767       new_path="$CYGWIN_ROOT_PATH$input_path"
18768     fi
18769   fi
18770 
18771   # remove trailing .exe if any
18772   new_path="${new_path/%.exe/}"
18773 
18774     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18775 
18776   # First separate the path from the arguments. This will split at the first
18777   # space.
18778   complete="$FOUND_MAKE"
18779   path="${complete%% *}"
18780   tmp="$complete EOL"
18781   arguments="${tmp#* }"
18782 
18783   # Input might be given as Windows format, start by converting to
18784   # unix format.
18785   new_path="$path"
18786 
18787   windows_path="$new_path"
18788   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18789     unix_path=`$CYGPATH -u "$windows_path"`
18790     new_path="$unix_path"
18791   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18792     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18793     new_path="$unix_path"
18794   fi
18795 
18796 
18797   # Now try to locate executable using which
18798   new_path=`$WHICH "$new_path" 2> /dev/null`
18799 
18800   if test "x$new_path" = x; then
18801     # Oops. Which didn't find the executable.
18802     # The splitting of arguments from the executable at a space might have been incorrect,
18803     # since paths with space are more likely in Windows. Give it another try with the whole
18804     # argument.
18805     path="$complete"
18806     arguments="EOL"
18807     new_path="$path"
18808 
18809   windows_path="$new_path"
18810   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18811     unix_path=`$CYGPATH -u "$windows_path"`
18812     new_path="$unix_path"
18813   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18814     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18815     new_path="$unix_path"
18816   fi
18817 
18818 
18819     new_path=`$WHICH "$new_path" 2> /dev/null`
18820     # bat and cmd files are not always considered executable in MSYS causing which
18821     # to not find them
18822     if test "x$new_path" = x \
18823         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18824         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18825       new_path="$path"
18826 
18827   windows_path="$new_path"
18828   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18829     unix_path=`$CYGPATH -u "$windows_path"`
18830     new_path="$unix_path"
18831   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18832     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18833     new_path="$unix_path"
18834   fi
18835 
18836     fi
18837 
18838     if test "x$new_path" = x; then
18839       # It's still not found. Now this is an unrecoverable error.
18840       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18841 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18842       has_space=`$ECHO "$complete" | $GREP " "`
18843       if test "x$has_space" != x; then
18844         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18845 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18846       fi
18847       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18848     fi
18849   fi
18850 
18851   # Now new_path has a complete unix path to the binary
18852   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
18853     # Keep paths in /bin as-is, but remove trailing .exe if any
18854     new_path="${new_path/%.exe/}"
18855     # Do not save /bin paths to all_fixpath_prefixes!
18856   else
18857     # Not in mixed or Windows style, start by that.
18858     new_path=`cmd //c echo $new_path`
18859 
18860   input_path="$new_path"
18861   # Check if we need to convert this using DOS-style short mode. If the path
18862   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18863   # take no chances and rewrite it.
18864   # Note: m4 eats our [], so we need to use [ and ] instead.
18865   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
18866   if test "x$has_forbidden_chars" != x; then
18867     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18868     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18869   fi
18870 
18871     # Output is in $new_path
18872 
18873   windows_path="$new_path"
18874   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18875     unix_path=`$CYGPATH -u "$windows_path"`
18876     new_path="$unix_path"
18877   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18878     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18879     new_path="$unix_path"
18880   fi
18881 
18882     # remove trailing .exe if any
18883     new_path="${new_path/%.exe/}"
18884 
18885     # Save the first 10 bytes of this path to the storage, so fixpath can work.
18886     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
18887   fi
18888 
18889     else
18890       # We're on a unix platform. Hooray! :)
18891       # First separate the path from the arguments. This will split at the first
18892       # space.
18893       complete="$FOUND_MAKE"
18894       path="${complete%% *}"
18895       tmp="$complete EOL"
18896       arguments="${tmp#* }"
18897 
18898       # Cannot rely on the command "which" here since it doesn't always work.
18899       is_absolute_path=`$ECHO "$path" | $GREP ^/`
18900       if test -z "$is_absolute_path"; then
18901         # Path to executable is not absolute. Find it.
18902         IFS_save="$IFS"
18903         IFS=:
18904         for p in $PATH; do
18905           if test -f "$p/$path" && test -x "$p/$path"; then
18906             new_path="$p/$path"
18907             break
18908           fi
18909         done
18910         IFS="$IFS_save"
18911       else
18912         # This is an absolute path, we can use it without further modifications.
18913         new_path="$path"
18914       fi
18915 
18916       if test "x$new_path" = x; then
18917         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18918 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18919         has_space=`$ECHO "$complete" | $GREP " "`
18920         if test "x$has_space" != x; then
18921           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
18922 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
18923         fi
18924         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18925       fi
18926     fi
18927 
18928     # Now join together the path and the arguments once again
18929     if test "x$arguments" != xEOL; then
18930       new_complete="$new_path ${arguments% *}"
18931     else
18932       new_complete="$new_path"
18933     fi
18934 
18935     if test "x$complete" != "x$new_complete"; then
18936       FOUND_MAKE="$new_complete"
18937       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
18938 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
18939     fi
18940   fi
18941 
18942         fi
18943       fi
18944     fi
18945   fi
18946 
18947         if test "x$FOUND_MAKE" = x; then
18948           for ac_prog in make
18949 do
18950   # Extract the first word of "$ac_prog", so it can be a program name with args.
18951 set dummy $ac_prog; ac_word=$2
18952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18953 $as_echo_n "checking for $ac_word... " >&6; }
18954 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then :
18955   $as_echo_n "(cached) " >&6
18956 else
18957   case $CHECK_TOOLSDIR_MAKE in
18958   [\\/]* | ?:[\\/]*)
18959   ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
18960   ;;
18961   *)
18962   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18963 for as_dir in $PATH
18964 do
18965   IFS=$as_save_IFS
18966   test -z "$as_dir" && as_dir=.
18967     for ac_exec_ext in '' $ac_executable_extensions; do
18968   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18969     ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
18970     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18971     break 2
18972   fi
18973 done
18974   done
18975 IFS=$as_save_IFS
18976 
18977   ;;
18978 esac
18979 fi
18980 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE
18981 if test -n "$CHECK_TOOLSDIR_MAKE"; then
18982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5
18983 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; }
18984 else
18985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18986 $as_echo "no" >&6; }
18987 fi
18988 
18989 
18990   test -n "$CHECK_TOOLSDIR_MAKE" && break
18991 done
18992 
18993 
18994   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE""
18995   DESCRIPTION="make in tools-dir"
18996 
18997   # On Cygwin, we require a newer version of make than on other platforms
18998   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18999     MAKE_VERSION_EXPR="-e 4\."
19000     MAKE_REQUIRED_VERSION="4.0"
19001    else
19002     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
19003     MAKE_REQUIRED_VERSION="3.81"
19004   fi
19005 
19006   if test "x$MAKE_CANDIDATE" != x; then
19007     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
19008 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
19009     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
19010     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
19011     if test "x$IS_GNU_MAKE" = x; then
19012       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
19013 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
19014     else
19015       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
19016       if test "x$IS_MODERN_MAKE" = x; then
19017         { $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
19018 $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;}
19019       else
19020         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
19021           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19022             MAKE_EXPECTED_ENV='cygwin'
19023           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19024             MAKE_EXPECTED_ENV='msys'
19025           else
19026             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
19027           fi
19028           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
19029           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
19030         else
19031           # Not relevant for non-Windows
19032           IS_MAKE_CORRECT_ENV=true
19033         fi
19034         if test "x$IS_MAKE_CORRECT_ENV" = x; then
19035           { $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
19036 $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;}
19037         else
19038           FOUND_MAKE=$MAKE_CANDIDATE
19039 
19040   # Only process if variable expands to non-empty
19041 
19042   if test "x$FOUND_MAKE" != x; then
19043     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19044 
19045   # First separate the path from the arguments. This will split at the first
19046   # space.
19047   complete="$FOUND_MAKE"
19048   path="${complete%% *}"
19049   tmp="$complete EOL"
19050   arguments="${tmp#* }"
19051 
19052   # Input might be given as Windows format, start by converting to
19053   # unix format.
19054   new_path=`$CYGPATH -u "$path"`
19055 
19056   # Now try to locate executable using which
19057   new_path=`$WHICH "$new_path" 2> /dev/null`
19058   # bat and cmd files are not always considered executable in cygwin causing which
19059   # to not find them
19060   if test "x$new_path" = x \
19061       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19062       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19063     new_path=`$CYGPATH -u "$path"`
19064   fi
19065   if test "x$new_path" = x; then
19066     # Oops. Which didn't find the executable.
19067     # The splitting of arguments from the executable at a space might have been incorrect,
19068     # since paths with space are more likely in Windows. Give it another try with the whole
19069     # argument.
19070     path="$complete"
19071     arguments="EOL"
19072     new_path=`$CYGPATH -u "$path"`
19073     new_path=`$WHICH "$new_path" 2> /dev/null`
19074     # bat and cmd files are not always considered executable in cygwin causing which
19075     # to not find them
19076     if test "x$new_path" = x \
19077         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19078         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19079       new_path=`$CYGPATH -u "$path"`
19080     fi
19081     if test "x$new_path" = x; then
19082       # It's still not found. Now this is an unrecoverable error.
19083       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19084 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19085       has_space=`$ECHO "$complete" | $GREP " "`
19086       if test "x$has_space" != x; then
19087         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19088 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19089       fi
19090       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19091     fi
19092   fi
19093 
19094   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19095   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19096   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19097   # "foo.exe" is OK but "foo" is an error.
19098   #
19099   # This test is therefore slightly more accurate than "test -f" to check for file presence.
19100   # It is also a way to make sure we got the proper file name for the real test later on.
19101   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19102   if test "x$test_shortpath" = x; then
19103     # Short path failed, file does not exist as specified.
19104     # Try adding .exe or .cmd
19105     if test -f "${new_path}.exe"; then
19106       input_to_shortpath="${new_path}.exe"
19107     elif test -f "${new_path}.cmd"; then
19108       input_to_shortpath="${new_path}.cmd"
19109     else
19110       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
19111 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
19112       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
19113 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
19114       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19115     fi
19116   else
19117     input_to_shortpath="$new_path"
19118   fi
19119 
19120   # Call helper function which possibly converts this using DOS-style short mode.
19121   # If so, the updated path is stored in $new_path.
19122   new_path="$input_to_shortpath"
19123 
19124   input_path="$input_to_shortpath"
19125   # Check if we need to convert this using DOS-style short mode. If the path
19126   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19127   # take no chances and rewrite it.
19128   # Note: m4 eats our [], so we need to use [ and ] instead.
19129   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19130   if test "x$has_forbidden_chars" != x; then
19131     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19132     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19133     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19134     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19135       # Going to short mode and back again did indeed matter. Since short mode is
19136       # case insensitive, let's make it lowercase to improve readability.
19137       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19138       # Now convert it back to Unix-style (cygpath)
19139       input_path=`$CYGPATH -u "$shortmode_path"`
19140       new_path="$input_path"
19141     fi
19142   fi
19143 
19144   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
19145   if test "x$test_cygdrive_prefix" = x; then
19146     # As a simple fix, exclude /usr/bin since it's not a real path.
19147     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
19148       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
19149       # a path prefixed by /cygdrive for fixpath to work.
19150       new_path="$CYGWIN_ROOT_PATH$input_path"
19151     fi
19152   fi
19153 
19154   # remove trailing .exe if any
19155   new_path="${new_path/%.exe/}"
19156 
19157     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19158 
19159   # First separate the path from the arguments. This will split at the first
19160   # space.
19161   complete="$FOUND_MAKE"
19162   path="${complete%% *}"
19163   tmp="$complete EOL"
19164   arguments="${tmp#* }"
19165 
19166   # Input might be given as Windows format, start by converting to
19167   # unix format.
19168   new_path="$path"
19169 
19170   windows_path="$new_path"
19171   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19172     unix_path=`$CYGPATH -u "$windows_path"`
19173     new_path="$unix_path"
19174   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19175     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19176     new_path="$unix_path"
19177   fi
19178 
19179 
19180   # Now try to locate executable using which
19181   new_path=`$WHICH "$new_path" 2> /dev/null`
19182 
19183   if test "x$new_path" = x; then
19184     # Oops. Which didn't find the executable.
19185     # The splitting of arguments from the executable at a space might have been incorrect,
19186     # since paths with space are more likely in Windows. Give it another try with the whole
19187     # argument.
19188     path="$complete"
19189     arguments="EOL"
19190     new_path="$path"
19191 
19192   windows_path="$new_path"
19193   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19194     unix_path=`$CYGPATH -u "$windows_path"`
19195     new_path="$unix_path"
19196   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19197     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19198     new_path="$unix_path"
19199   fi
19200 
19201 
19202     new_path=`$WHICH "$new_path" 2> /dev/null`
19203     # bat and cmd files are not always considered executable in MSYS causing which
19204     # to not find them
19205     if test "x$new_path" = x \
19206         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19207         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19208       new_path="$path"
19209 
19210   windows_path="$new_path"
19211   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19212     unix_path=`$CYGPATH -u "$windows_path"`
19213     new_path="$unix_path"
19214   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19215     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19216     new_path="$unix_path"
19217   fi
19218 
19219     fi
19220 
19221     if test "x$new_path" = x; then
19222       # It's still not found. Now this is an unrecoverable error.
19223       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19224 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19225       has_space=`$ECHO "$complete" | $GREP " "`
19226       if test "x$has_space" != x; then
19227         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19228 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19229       fi
19230       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19231     fi
19232   fi
19233 
19234   # Now new_path has a complete unix path to the binary
19235   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
19236     # Keep paths in /bin as-is, but remove trailing .exe if any
19237     new_path="${new_path/%.exe/}"
19238     # Do not save /bin paths to all_fixpath_prefixes!
19239   else
19240     # Not in mixed or Windows style, start by that.
19241     new_path=`cmd //c echo $new_path`
19242 
19243   input_path="$new_path"
19244   # Check if we need to convert this using DOS-style short mode. If the path
19245   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19246   # take no chances and rewrite it.
19247   # Note: m4 eats our [], so we need to use [ and ] instead.
19248   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
19249   if test "x$has_forbidden_chars" != x; then
19250     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19251     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19252   fi
19253 
19254     # Output is in $new_path
19255 
19256   windows_path="$new_path"
19257   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19258     unix_path=`$CYGPATH -u "$windows_path"`
19259     new_path="$unix_path"
19260   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19261     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19262     new_path="$unix_path"
19263   fi
19264 
19265     # remove trailing .exe if any
19266     new_path="${new_path/%.exe/}"
19267 
19268     # Save the first 10 bytes of this path to the storage, so fixpath can work.
19269     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
19270   fi
19271 
19272     else
19273       # We're on a unix platform. Hooray! :)
19274       # First separate the path from the arguments. This will split at the first
19275       # space.
19276       complete="$FOUND_MAKE"
19277       path="${complete%% *}"
19278       tmp="$complete EOL"
19279       arguments="${tmp#* }"
19280 
19281       # Cannot rely on the command "which" here since it doesn't always work.
19282       is_absolute_path=`$ECHO "$path" | $GREP ^/`
19283       if test -z "$is_absolute_path"; then
19284         # Path to executable is not absolute. Find it.
19285         IFS_save="$IFS"
19286         IFS=:
19287         for p in $PATH; do
19288           if test -f "$p/$path" && test -x "$p/$path"; then
19289             new_path="$p/$path"
19290             break
19291           fi
19292         done
19293         IFS="$IFS_save"
19294       else
19295         # This is an absolute path, we can use it without further modifications.
19296         new_path="$path"
19297       fi
19298 
19299       if test "x$new_path" = x; then
19300         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19301 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19302         has_space=`$ECHO "$complete" | $GREP " "`
19303         if test "x$has_space" != x; then
19304           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
19305 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
19306         fi
19307         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19308       fi
19309     fi
19310 
19311     # Now join together the path and the arguments once again
19312     if test "x$arguments" != xEOL; then
19313       new_complete="$new_path ${arguments% *}"
19314     else
19315       new_complete="$new_path"
19316     fi
19317 
19318     if test "x$complete" != "x$new_complete"; then
19319       FOUND_MAKE="$new_complete"
19320       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
19321 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
19322     fi
19323   fi
19324 
19325         fi
19326       fi
19327     fi
19328   fi
19329 
19330         fi
19331         PATH=$OLD_PATH
19332       fi
19333     fi
19334 
19335     if test "x$FOUND_MAKE" = x; then
19336       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
19337     fi
19338 
19339   else
19340     # The variable is set, but is it from the command line or the environment?
19341 
19342     # Try to remove the string !MAKE! from our list.
19343     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MAKE!/}
19344     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
19345       # If it failed, the variable was not from the command line. Ignore it,
19346       # but warn the user (except for BASH, which is always set by the calling BASH).
19347       if test "xMAKE" != xBASH; then
19348         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MAKE from the environment. Use command line variables instead." >&5
19349 $as_echo "$as_me: WARNING: Ignoring value of MAKE from the environment. Use command line variables instead." >&2;}
19350       fi
19351       # Try to locate tool using the code snippet
19352 
19353     # Try our hardest to locate a correct version of GNU make
19354     for ac_prog in gmake
19355 do
19356   # Extract the first word of "$ac_prog", so it can be a program name with args.
19357 set dummy $ac_prog; ac_word=$2
19358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19359 $as_echo_n "checking for $ac_word... " >&6; }
19360 if ${ac_cv_path_CHECK_GMAKE+:} false; then :
19361   $as_echo_n "(cached) " >&6
19362 else
19363   case $CHECK_GMAKE in
19364   [\\/]* | ?:[\\/]*)
19365   ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
19366   ;;
19367   *)
19368   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19369 for as_dir in $PATH
19370 do
19371   IFS=$as_save_IFS
19372   test -z "$as_dir" && as_dir=.
19373     for ac_exec_ext in '' $ac_executable_extensions; do
19374   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19375     ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
19376     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19377     break 2
19378   fi
19379 done
19380   done
19381 IFS=$as_save_IFS
19382 
19383   ;;
19384 esac
19385 fi
19386 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE
19387 if test -n "$CHECK_GMAKE"; then
19388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5
19389 $as_echo "$CHECK_GMAKE" >&6; }
19390 else
19391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19392 $as_echo "no" >&6; }
19393 fi
19394 
19395 
19396   test -n "$CHECK_GMAKE" && break
19397 done
19398 
19399 
19400   MAKE_CANDIDATE=""$CHECK_GMAKE""
19401   DESCRIPTION="gmake in PATH"
19402 
19403   # On Cygwin, we require a newer version of make than on other platforms
19404   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19405     MAKE_VERSION_EXPR="-e 4\."
19406     MAKE_REQUIRED_VERSION="4.0"
19407    else
19408     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
19409     MAKE_REQUIRED_VERSION="3.81"
19410   fi
19411 
19412   if test "x$MAKE_CANDIDATE" != x; then
19413     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
19414 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
19415     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
19416     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
19417     if test "x$IS_GNU_MAKE" = x; then
19418       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
19419 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
19420     else
19421       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
19422       if test "x$IS_MODERN_MAKE" = x; then
19423         { $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
19424 $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;}
19425       else
19426         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
19427           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19428             MAKE_EXPECTED_ENV='cygwin'
19429           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19430             MAKE_EXPECTED_ENV='msys'
19431           else
19432             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
19433           fi
19434           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
19435           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
19436         else
19437           # Not relevant for non-Windows
19438           IS_MAKE_CORRECT_ENV=true
19439         fi
19440         if test "x$IS_MAKE_CORRECT_ENV" = x; then
19441           { $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
19442 $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;}
19443         else
19444           FOUND_MAKE=$MAKE_CANDIDATE
19445 
19446   # Only process if variable expands to non-empty
19447 
19448   if test "x$FOUND_MAKE" != x; then
19449     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19450 
19451   # First separate the path from the arguments. This will split at the first
19452   # space.
19453   complete="$FOUND_MAKE"
19454   path="${complete%% *}"
19455   tmp="$complete EOL"
19456   arguments="${tmp#* }"
19457 
19458   # Input might be given as Windows format, start by converting to
19459   # unix format.
19460   new_path=`$CYGPATH -u "$path"`
19461 
19462   # Now try to locate executable using which
19463   new_path=`$WHICH "$new_path" 2> /dev/null`
19464   # bat and cmd files are not always considered executable in cygwin causing which
19465   # to not find them
19466   if test "x$new_path" = x \
19467       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19468       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19469     new_path=`$CYGPATH -u "$path"`
19470   fi
19471   if test "x$new_path" = x; then
19472     # Oops. Which didn't find the executable.
19473     # The splitting of arguments from the executable at a space might have been incorrect,
19474     # since paths with space are more likely in Windows. Give it another try with the whole
19475     # argument.
19476     path="$complete"
19477     arguments="EOL"
19478     new_path=`$CYGPATH -u "$path"`
19479     new_path=`$WHICH "$new_path" 2> /dev/null`
19480     # bat and cmd files are not always considered executable in cygwin causing which
19481     # to not find them
19482     if test "x$new_path" = x \
19483         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19484         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19485       new_path=`$CYGPATH -u "$path"`
19486     fi
19487     if test "x$new_path" = x; then
19488       # It's still not found. Now this is an unrecoverable error.
19489       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19490 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19491       has_space=`$ECHO "$complete" | $GREP " "`
19492       if test "x$has_space" != x; then
19493         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19494 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19495       fi
19496       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19497     fi
19498   fi
19499 
19500   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19501   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19502   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19503   # "foo.exe" is OK but "foo" is an error.
19504   #
19505   # This test is therefore slightly more accurate than "test -f" to check for file presence.
19506   # It is also a way to make sure we got the proper file name for the real test later on.
19507   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19508   if test "x$test_shortpath" = x; then
19509     # Short path failed, file does not exist as specified.
19510     # Try adding .exe or .cmd
19511     if test -f "${new_path}.exe"; then
19512       input_to_shortpath="${new_path}.exe"
19513     elif test -f "${new_path}.cmd"; then
19514       input_to_shortpath="${new_path}.cmd"
19515     else
19516       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
19517 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
19518       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
19519 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
19520       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19521     fi
19522   else
19523     input_to_shortpath="$new_path"
19524   fi
19525 
19526   # Call helper function which possibly converts this using DOS-style short mode.
19527   # If so, the updated path is stored in $new_path.
19528   new_path="$input_to_shortpath"
19529 
19530   input_path="$input_to_shortpath"
19531   # Check if we need to convert this using DOS-style short mode. If the path
19532   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19533   # take no chances and rewrite it.
19534   # Note: m4 eats our [], so we need to use [ and ] instead.
19535   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19536   if test "x$has_forbidden_chars" != x; then
19537     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19538     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19539     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19540     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19541       # Going to short mode and back again did indeed matter. Since short mode is
19542       # case insensitive, let's make it lowercase to improve readability.
19543       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19544       # Now convert it back to Unix-style (cygpath)
19545       input_path=`$CYGPATH -u "$shortmode_path"`
19546       new_path="$input_path"
19547     fi
19548   fi
19549 
19550   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
19551   if test "x$test_cygdrive_prefix" = x; then
19552     # As a simple fix, exclude /usr/bin since it's not a real path.
19553     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
19554       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
19555       # a path prefixed by /cygdrive for fixpath to work.
19556       new_path="$CYGWIN_ROOT_PATH$input_path"
19557     fi
19558   fi
19559 
19560   # remove trailing .exe if any
19561   new_path="${new_path/%.exe/}"
19562 
19563     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19564 
19565   # First separate the path from the arguments. This will split at the first
19566   # space.
19567   complete="$FOUND_MAKE"
19568   path="${complete%% *}"
19569   tmp="$complete EOL"
19570   arguments="${tmp#* }"
19571 
19572   # Input might be given as Windows format, start by converting to
19573   # unix format.
19574   new_path="$path"
19575 
19576   windows_path="$new_path"
19577   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19578     unix_path=`$CYGPATH -u "$windows_path"`
19579     new_path="$unix_path"
19580   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19581     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19582     new_path="$unix_path"
19583   fi
19584 
19585 
19586   # Now try to locate executable using which
19587   new_path=`$WHICH "$new_path" 2> /dev/null`
19588 
19589   if test "x$new_path" = x; then
19590     # Oops. Which didn't find the executable.
19591     # The splitting of arguments from the executable at a space might have been incorrect,
19592     # since paths with space are more likely in Windows. Give it another try with the whole
19593     # argument.
19594     path="$complete"
19595     arguments="EOL"
19596     new_path="$path"
19597 
19598   windows_path="$new_path"
19599   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19600     unix_path=`$CYGPATH -u "$windows_path"`
19601     new_path="$unix_path"
19602   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19603     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19604     new_path="$unix_path"
19605   fi
19606 
19607 
19608     new_path=`$WHICH "$new_path" 2> /dev/null`
19609     # bat and cmd files are not always considered executable in MSYS causing which
19610     # to not find them
19611     if test "x$new_path" = x \
19612         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19613         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19614       new_path="$path"
19615 
19616   windows_path="$new_path"
19617   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19618     unix_path=`$CYGPATH -u "$windows_path"`
19619     new_path="$unix_path"
19620   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19621     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19622     new_path="$unix_path"
19623   fi
19624 
19625     fi
19626 
19627     if test "x$new_path" = x; then
19628       # It's still not found. Now this is an unrecoverable error.
19629       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19630 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19631       has_space=`$ECHO "$complete" | $GREP " "`
19632       if test "x$has_space" != x; then
19633         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19634 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19635       fi
19636       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19637     fi
19638   fi
19639 
19640   # Now new_path has a complete unix path to the binary
19641   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
19642     # Keep paths in /bin as-is, but remove trailing .exe if any
19643     new_path="${new_path/%.exe/}"
19644     # Do not save /bin paths to all_fixpath_prefixes!
19645   else
19646     # Not in mixed or Windows style, start by that.
19647     new_path=`cmd //c echo $new_path`
19648 
19649   input_path="$new_path"
19650   # Check if we need to convert this using DOS-style short mode. If the path
19651   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19652   # take no chances and rewrite it.
19653   # Note: m4 eats our [], so we need to use [ and ] instead.
19654   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
19655   if test "x$has_forbidden_chars" != x; then
19656     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19657     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19658   fi
19659 
19660     # Output is in $new_path
19661 
19662   windows_path="$new_path"
19663   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19664     unix_path=`$CYGPATH -u "$windows_path"`
19665     new_path="$unix_path"
19666   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19667     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19668     new_path="$unix_path"
19669   fi
19670 
19671     # remove trailing .exe if any
19672     new_path="${new_path/%.exe/}"
19673 
19674     # Save the first 10 bytes of this path to the storage, so fixpath can work.
19675     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
19676   fi
19677 
19678     else
19679       # We're on a unix platform. Hooray! :)
19680       # First separate the path from the arguments. This will split at the first
19681       # space.
19682       complete="$FOUND_MAKE"
19683       path="${complete%% *}"
19684       tmp="$complete EOL"
19685       arguments="${tmp#* }"
19686 
19687       # Cannot rely on the command "which" here since it doesn't always work.
19688       is_absolute_path=`$ECHO "$path" | $GREP ^/`
19689       if test -z "$is_absolute_path"; then
19690         # Path to executable is not absolute. Find it.
19691         IFS_save="$IFS"
19692         IFS=:
19693         for p in $PATH; do
19694           if test -f "$p/$path" && test -x "$p/$path"; then
19695             new_path="$p/$path"
19696             break
19697           fi
19698         done
19699         IFS="$IFS_save"
19700       else
19701         # This is an absolute path, we can use it without further modifications.
19702         new_path="$path"
19703       fi
19704 
19705       if test "x$new_path" = x; then
19706         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19707 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19708         has_space=`$ECHO "$complete" | $GREP " "`
19709         if test "x$has_space" != x; then
19710           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
19711 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
19712         fi
19713         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19714       fi
19715     fi
19716 
19717     # Now join together the path and the arguments once again
19718     if test "x$arguments" != xEOL; then
19719       new_complete="$new_path ${arguments% *}"
19720     else
19721       new_complete="$new_path"
19722     fi
19723 
19724     if test "x$complete" != "x$new_complete"; then
19725       FOUND_MAKE="$new_complete"
19726       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
19727 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
19728     fi
19729   fi
19730 
19731         fi
19732       fi
19733     fi
19734   fi
19735 
19736 
19737     if test "x$FOUND_MAKE" = x; then
19738       for ac_prog in make
19739 do
19740   # Extract the first word of "$ac_prog", so it can be a program name with args.
19741 set dummy $ac_prog; ac_word=$2
19742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19743 $as_echo_n "checking for $ac_word... " >&6; }
19744 if ${ac_cv_path_CHECK_MAKE+:} false; then :
19745   $as_echo_n "(cached) " >&6
19746 else
19747   case $CHECK_MAKE in
19748   [\\/]* | ?:[\\/]*)
19749   ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
19750   ;;
19751   *)
19752   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19753 for as_dir in $PATH
19754 do
19755   IFS=$as_save_IFS
19756   test -z "$as_dir" && as_dir=.
19757     for ac_exec_ext in '' $ac_executable_extensions; do
19758   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19759     ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
19760     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19761     break 2
19762   fi
19763 done
19764   done
19765 IFS=$as_save_IFS
19766 
19767   ;;
19768 esac
19769 fi
19770 CHECK_MAKE=$ac_cv_path_CHECK_MAKE
19771 if test -n "$CHECK_MAKE"; then
19772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5
19773 $as_echo "$CHECK_MAKE" >&6; }
19774 else
19775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19776 $as_echo "no" >&6; }
19777 fi
19778 
19779 
19780   test -n "$CHECK_MAKE" && break
19781 done
19782 
19783 
19784   MAKE_CANDIDATE=""$CHECK_MAKE""
19785   DESCRIPTION="make in PATH"
19786 
19787   # On Cygwin, we require a newer version of make than on other platforms
19788   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19789     MAKE_VERSION_EXPR="-e 4\."
19790     MAKE_REQUIRED_VERSION="4.0"
19791    else
19792     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
19793     MAKE_REQUIRED_VERSION="3.81"
19794   fi
19795 
19796   if test "x$MAKE_CANDIDATE" != x; then
19797     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
19798 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
19799     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
19800     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
19801     if test "x$IS_GNU_MAKE" = x; then
19802       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
19803 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
19804     else
19805       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
19806       if test "x$IS_MODERN_MAKE" = x; then
19807         { $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
19808 $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;}
19809       else
19810         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
19811           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19812             MAKE_EXPECTED_ENV='cygwin'
19813           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19814             MAKE_EXPECTED_ENV='msys'
19815           else
19816             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
19817           fi
19818           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
19819           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
19820         else
19821           # Not relevant for non-Windows
19822           IS_MAKE_CORRECT_ENV=true
19823         fi
19824         if test "x$IS_MAKE_CORRECT_ENV" = x; then
19825           { $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
19826 $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;}
19827         else
19828           FOUND_MAKE=$MAKE_CANDIDATE
19829 
19830   # Only process if variable expands to non-empty
19831 
19832   if test "x$FOUND_MAKE" != x; then
19833     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19834 
19835   # First separate the path from the arguments. This will split at the first
19836   # space.
19837   complete="$FOUND_MAKE"
19838   path="${complete%% *}"
19839   tmp="$complete EOL"
19840   arguments="${tmp#* }"
19841 
19842   # Input might be given as Windows format, start by converting to
19843   # unix format.
19844   new_path=`$CYGPATH -u "$path"`
19845 
19846   # Now try to locate executable using which
19847   new_path=`$WHICH "$new_path" 2> /dev/null`
19848   # bat and cmd files are not always considered executable in cygwin causing which
19849   # to not find them
19850   if test "x$new_path" = x \
19851       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19852       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19853     new_path=`$CYGPATH -u "$path"`
19854   fi
19855   if test "x$new_path" = x; then
19856     # Oops. Which didn't find the executable.
19857     # The splitting of arguments from the executable at a space might have been incorrect,
19858     # since paths with space are more likely in Windows. Give it another try with the whole
19859     # argument.
19860     path="$complete"
19861     arguments="EOL"
19862     new_path=`$CYGPATH -u "$path"`
19863     new_path=`$WHICH "$new_path" 2> /dev/null`
19864     # bat and cmd files are not always considered executable in cygwin causing which
19865     # to not find them
19866     if test "x$new_path" = x \
19867         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19868         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19869       new_path=`$CYGPATH -u "$path"`
19870     fi
19871     if test "x$new_path" = x; then
19872       # It's still not found. Now this is an unrecoverable error.
19873       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19874 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19875       has_space=`$ECHO "$complete" | $GREP " "`
19876       if test "x$has_space" != x; then
19877         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19878 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19879       fi
19880       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19881     fi
19882   fi
19883 
19884   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19885   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19886   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19887   # "foo.exe" is OK but "foo" is an error.
19888   #
19889   # This test is therefore slightly more accurate than "test -f" to check for file presence.
19890   # It is also a way to make sure we got the proper file name for the real test later on.
19891   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19892   if test "x$test_shortpath" = x; then
19893     # Short path failed, file does not exist as specified.
19894     # Try adding .exe or .cmd
19895     if test -f "${new_path}.exe"; then
19896       input_to_shortpath="${new_path}.exe"
19897     elif test -f "${new_path}.cmd"; then
19898       input_to_shortpath="${new_path}.cmd"
19899     else
19900       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
19901 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
19902       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
19903 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
19904       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19905     fi
19906   else
19907     input_to_shortpath="$new_path"
19908   fi
19909 
19910   # Call helper function which possibly converts this using DOS-style short mode.
19911   # If so, the updated path is stored in $new_path.
19912   new_path="$input_to_shortpath"
19913 
19914   input_path="$input_to_shortpath"
19915   # Check if we need to convert this using DOS-style short mode. If the path
19916   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19917   # take no chances and rewrite it.
19918   # Note: m4 eats our [], so we need to use [ and ] instead.
19919   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19920   if test "x$has_forbidden_chars" != x; then
19921     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19922     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19923     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19924     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19925       # Going to short mode and back again did indeed matter. Since short mode is
19926       # case insensitive, let's make it lowercase to improve readability.
19927       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19928       # Now convert it back to Unix-style (cygpath)
19929       input_path=`$CYGPATH -u "$shortmode_path"`
19930       new_path="$input_path"
19931     fi
19932   fi
19933 
19934   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
19935   if test "x$test_cygdrive_prefix" = x; then
19936     # As a simple fix, exclude /usr/bin since it's not a real path.
19937     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
19938       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
19939       # a path prefixed by /cygdrive for fixpath to work.
19940       new_path="$CYGWIN_ROOT_PATH$input_path"
19941     fi
19942   fi
19943 
19944   # remove trailing .exe if any
19945   new_path="${new_path/%.exe/}"
19946 
19947     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19948 
19949   # First separate the path from the arguments. This will split at the first
19950   # space.
19951   complete="$FOUND_MAKE"
19952   path="${complete%% *}"
19953   tmp="$complete EOL"
19954   arguments="${tmp#* }"
19955 
19956   # Input might be given as Windows format, start by converting to
19957   # unix format.
19958   new_path="$path"
19959 
19960   windows_path="$new_path"
19961   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19962     unix_path=`$CYGPATH -u "$windows_path"`
19963     new_path="$unix_path"
19964   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19965     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19966     new_path="$unix_path"
19967   fi
19968 
19969 
19970   # Now try to locate executable using which
19971   new_path=`$WHICH "$new_path" 2> /dev/null`
19972 
19973   if test "x$new_path" = x; then
19974     # Oops. Which didn't find the executable.
19975     # The splitting of arguments from the executable at a space might have been incorrect,
19976     # since paths with space are more likely in Windows. Give it another try with the whole
19977     # argument.
19978     path="$complete"
19979     arguments="EOL"
19980     new_path="$path"
19981 
19982   windows_path="$new_path"
19983   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19984     unix_path=`$CYGPATH -u "$windows_path"`
19985     new_path="$unix_path"
19986   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19987     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19988     new_path="$unix_path"
19989   fi
19990 
19991 
19992     new_path=`$WHICH "$new_path" 2> /dev/null`
19993     # bat and cmd files are not always considered executable in MSYS causing which
19994     # to not find them
19995     if test "x$new_path" = x \
19996         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19997         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19998       new_path="$path"
19999 
20000   windows_path="$new_path"
20001   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20002     unix_path=`$CYGPATH -u "$windows_path"`
20003     new_path="$unix_path"
20004   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20005     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20006     new_path="$unix_path"
20007   fi
20008 
20009     fi
20010 
20011     if test "x$new_path" = x; then
20012       # It's still not found. Now this is an unrecoverable error.
20013       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20014 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20015       has_space=`$ECHO "$complete" | $GREP " "`
20016       if test "x$has_space" != x; then
20017         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20018 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20019       fi
20020       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20021     fi
20022   fi
20023 
20024   # Now new_path has a complete unix path to the binary
20025   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
20026     # Keep paths in /bin as-is, but remove trailing .exe if any
20027     new_path="${new_path/%.exe/}"
20028     # Do not save /bin paths to all_fixpath_prefixes!
20029   else
20030     # Not in mixed or Windows style, start by that.
20031     new_path=`cmd //c echo $new_path`
20032 
20033   input_path="$new_path"
20034   # Check if we need to convert this using DOS-style short mode. If the path
20035   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20036   # take no chances and rewrite it.
20037   # Note: m4 eats our [], so we need to use [ and ] instead.
20038   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20039   if test "x$has_forbidden_chars" != x; then
20040     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20041     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20042   fi
20043 
20044     # Output is in $new_path
20045 
20046   windows_path="$new_path"
20047   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20048     unix_path=`$CYGPATH -u "$windows_path"`
20049     new_path="$unix_path"
20050   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20051     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20052     new_path="$unix_path"
20053   fi
20054 
20055     # remove trailing .exe if any
20056     new_path="${new_path/%.exe/}"
20057 
20058     # Save the first 10 bytes of this path to the storage, so fixpath can work.
20059     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20060   fi
20061 
20062     else
20063       # We're on a unix platform. Hooray! :)
20064       # First separate the path from the arguments. This will split at the first
20065       # space.
20066       complete="$FOUND_MAKE"
20067       path="${complete%% *}"
20068       tmp="$complete EOL"
20069       arguments="${tmp#* }"
20070 
20071       # Cannot rely on the command "which" here since it doesn't always work.
20072       is_absolute_path=`$ECHO "$path" | $GREP ^/`
20073       if test -z "$is_absolute_path"; then
20074         # Path to executable is not absolute. Find it.
20075         IFS_save="$IFS"
20076         IFS=:
20077         for p in $PATH; do
20078           if test -f "$p/$path" && test -x "$p/$path"; then
20079             new_path="$p/$path"
20080             break
20081           fi
20082         done
20083         IFS="$IFS_save"
20084       else
20085         # This is an absolute path, we can use it without further modifications.
20086         new_path="$path"
20087       fi
20088 
20089       if test "x$new_path" = x; then
20090         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20091 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20092         has_space=`$ECHO "$complete" | $GREP " "`
20093         if test "x$has_space" != x; then
20094           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
20095 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
20096         fi
20097         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20098       fi
20099     fi
20100 
20101     # Now join together the path and the arguments once again
20102     if test "x$arguments" != xEOL; then
20103       new_complete="$new_path ${arguments% *}"
20104     else
20105       new_complete="$new_path"
20106     fi
20107 
20108     if test "x$complete" != "x$new_complete"; then
20109       FOUND_MAKE="$new_complete"
20110       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
20111 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
20112     fi
20113   fi
20114 
20115         fi
20116       fi
20117     fi
20118   fi
20119 
20120     fi
20121 
20122     if test "x$FOUND_MAKE" = x; then
20123       if test "x$TOOLCHAIN_PATH" != x; then
20124         # We have a toolchain path, check that as well before giving up.
20125         OLD_PATH=$PATH
20126         PATH=$TOOLCHAIN_PATH:$PATH
20127         for ac_prog in gmake
20128 do
20129   # Extract the first word of "$ac_prog", so it can be a program name with args.
20130 set dummy $ac_prog; ac_word=$2
20131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20132 $as_echo_n "checking for $ac_word... " >&6; }
20133 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then :
20134   $as_echo_n "(cached) " >&6
20135 else
20136   case $CHECK_TOOLSDIR_GMAKE in
20137   [\\/]* | ?:[\\/]*)
20138   ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
20139   ;;
20140   *)
20141   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20142 for as_dir in $PATH
20143 do
20144   IFS=$as_save_IFS
20145   test -z "$as_dir" && as_dir=.
20146     for ac_exec_ext in '' $ac_executable_extensions; do
20147   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20148     ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
20149     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20150     break 2
20151   fi
20152 done
20153   done
20154 IFS=$as_save_IFS
20155 
20156   ;;
20157 esac
20158 fi
20159 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE
20160 if test -n "$CHECK_TOOLSDIR_GMAKE"; then
20161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5
20162 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; }
20163 else
20164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20165 $as_echo "no" >&6; }
20166 fi
20167 
20168 
20169   test -n "$CHECK_TOOLSDIR_GMAKE" && break
20170 done
20171 
20172 
20173   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE""
20174   DESCRIPTION="gmake in tools-dir"
20175 
20176   # On Cygwin, we require a newer version of make than on other platforms
20177   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20178     MAKE_VERSION_EXPR="-e 4\."
20179     MAKE_REQUIRED_VERSION="4.0"
20180    else
20181     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
20182     MAKE_REQUIRED_VERSION="3.81"
20183   fi
20184 
20185   if test "x$MAKE_CANDIDATE" != x; then
20186     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
20187 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
20188     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
20189     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
20190     if test "x$IS_GNU_MAKE" = x; then
20191       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
20192 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
20193     else
20194       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
20195       if test "x$IS_MODERN_MAKE" = x; then
20196         { $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
20197 $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;}
20198       else
20199         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
20200           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20201             MAKE_EXPECTED_ENV='cygwin'
20202           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20203             MAKE_EXPECTED_ENV='msys'
20204           else
20205             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
20206           fi
20207           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
20208           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
20209         else
20210           # Not relevant for non-Windows
20211           IS_MAKE_CORRECT_ENV=true
20212         fi
20213         if test "x$IS_MAKE_CORRECT_ENV" = x; then
20214           { $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
20215 $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;}
20216         else
20217           FOUND_MAKE=$MAKE_CANDIDATE
20218 
20219   # Only process if variable expands to non-empty
20220 
20221   if test "x$FOUND_MAKE" != x; then
20222     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20223 
20224   # First separate the path from the arguments. This will split at the first
20225   # space.
20226   complete="$FOUND_MAKE"
20227   path="${complete%% *}"
20228   tmp="$complete EOL"
20229   arguments="${tmp#* }"
20230 
20231   # Input might be given as Windows format, start by converting to
20232   # unix format.
20233   new_path=`$CYGPATH -u "$path"`
20234 
20235   # Now try to locate executable using which
20236   new_path=`$WHICH "$new_path" 2> /dev/null`
20237   # bat and cmd files are not always considered executable in cygwin causing which
20238   # to not find them
20239   if test "x$new_path" = x \
20240       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20241       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20242     new_path=`$CYGPATH -u "$path"`
20243   fi
20244   if test "x$new_path" = x; then
20245     # Oops. Which didn't find the executable.
20246     # The splitting of arguments from the executable at a space might have been incorrect,
20247     # since paths with space are more likely in Windows. Give it another try with the whole
20248     # argument.
20249     path="$complete"
20250     arguments="EOL"
20251     new_path=`$CYGPATH -u "$path"`
20252     new_path=`$WHICH "$new_path" 2> /dev/null`
20253     # bat and cmd files are not always considered executable in cygwin causing which
20254     # to not find them
20255     if test "x$new_path" = x \
20256         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20257         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20258       new_path=`$CYGPATH -u "$path"`
20259     fi
20260     if test "x$new_path" = x; then
20261       # It's still not found. Now this is an unrecoverable error.
20262       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20263 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20264       has_space=`$ECHO "$complete" | $GREP " "`
20265       if test "x$has_space" != x; then
20266         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20267 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20268       fi
20269       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20270     fi
20271   fi
20272 
20273   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20274   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20275   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20276   # "foo.exe" is OK but "foo" is an error.
20277   #
20278   # This test is therefore slightly more accurate than "test -f" to check for file presence.
20279   # It is also a way to make sure we got the proper file name for the real test later on.
20280   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20281   if test "x$test_shortpath" = x; then
20282     # Short path failed, file does not exist as specified.
20283     # Try adding .exe or .cmd
20284     if test -f "${new_path}.exe"; then
20285       input_to_shortpath="${new_path}.exe"
20286     elif test -f "${new_path}.cmd"; then
20287       input_to_shortpath="${new_path}.cmd"
20288     else
20289       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
20290 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
20291       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
20292 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
20293       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20294     fi
20295   else
20296     input_to_shortpath="$new_path"
20297   fi
20298 
20299   # Call helper function which possibly converts this using DOS-style short mode.
20300   # If so, the updated path is stored in $new_path.
20301   new_path="$input_to_shortpath"
20302 
20303   input_path="$input_to_shortpath"
20304   # Check if we need to convert this using DOS-style short mode. If the path
20305   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20306   # take no chances and rewrite it.
20307   # Note: m4 eats our [], so we need to use [ and ] instead.
20308   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20309   if test "x$has_forbidden_chars" != x; then
20310     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20311     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20312     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20313     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20314       # Going to short mode and back again did indeed matter. Since short mode is
20315       # case insensitive, let's make it lowercase to improve readability.
20316       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20317       # Now convert it back to Unix-style (cygpath)
20318       input_path=`$CYGPATH -u "$shortmode_path"`
20319       new_path="$input_path"
20320     fi
20321   fi
20322 
20323   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20324   if test "x$test_cygdrive_prefix" = x; then
20325     # As a simple fix, exclude /usr/bin since it's not a real path.
20326     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
20327       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20328       # a path prefixed by /cygdrive for fixpath to work.
20329       new_path="$CYGWIN_ROOT_PATH$input_path"
20330     fi
20331   fi
20332 
20333   # remove trailing .exe if any
20334   new_path="${new_path/%.exe/}"
20335 
20336     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20337 
20338   # First separate the path from the arguments. This will split at the first
20339   # space.
20340   complete="$FOUND_MAKE"
20341   path="${complete%% *}"
20342   tmp="$complete EOL"
20343   arguments="${tmp#* }"
20344 
20345   # Input might be given as Windows format, start by converting to
20346   # unix format.
20347   new_path="$path"
20348 
20349   windows_path="$new_path"
20350   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20351     unix_path=`$CYGPATH -u "$windows_path"`
20352     new_path="$unix_path"
20353   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20354     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20355     new_path="$unix_path"
20356   fi
20357 
20358 
20359   # Now try to locate executable using which
20360   new_path=`$WHICH "$new_path" 2> /dev/null`
20361 
20362   if test "x$new_path" = x; then
20363     # Oops. Which didn't find the executable.
20364     # The splitting of arguments from the executable at a space might have been incorrect,
20365     # since paths with space are more likely in Windows. Give it another try with the whole
20366     # argument.
20367     path="$complete"
20368     arguments="EOL"
20369     new_path="$path"
20370 
20371   windows_path="$new_path"
20372   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20373     unix_path=`$CYGPATH -u "$windows_path"`
20374     new_path="$unix_path"
20375   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20376     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20377     new_path="$unix_path"
20378   fi
20379 
20380 
20381     new_path=`$WHICH "$new_path" 2> /dev/null`
20382     # bat and cmd files are not always considered executable in MSYS causing which
20383     # to not find them
20384     if test "x$new_path" = x \
20385         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20386         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20387       new_path="$path"
20388 
20389   windows_path="$new_path"
20390   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20391     unix_path=`$CYGPATH -u "$windows_path"`
20392     new_path="$unix_path"
20393   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20394     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20395     new_path="$unix_path"
20396   fi
20397 
20398     fi
20399 
20400     if test "x$new_path" = x; then
20401       # It's still not found. Now this is an unrecoverable error.
20402       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20403 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20404       has_space=`$ECHO "$complete" | $GREP " "`
20405       if test "x$has_space" != x; then
20406         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20407 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20408       fi
20409       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20410     fi
20411   fi
20412 
20413   # Now new_path has a complete unix path to the binary
20414   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
20415     # Keep paths in /bin as-is, but remove trailing .exe if any
20416     new_path="${new_path/%.exe/}"
20417     # Do not save /bin paths to all_fixpath_prefixes!
20418   else
20419     # Not in mixed or Windows style, start by that.
20420     new_path=`cmd //c echo $new_path`
20421 
20422   input_path="$new_path"
20423   # Check if we need to convert this using DOS-style short mode. If the path
20424   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20425   # take no chances and rewrite it.
20426   # Note: m4 eats our [], so we need to use [ and ] instead.
20427   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20428   if test "x$has_forbidden_chars" != x; then
20429     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20430     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20431   fi
20432 
20433     # Output is in $new_path
20434 
20435   windows_path="$new_path"
20436   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20437     unix_path=`$CYGPATH -u "$windows_path"`
20438     new_path="$unix_path"
20439   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20440     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20441     new_path="$unix_path"
20442   fi
20443 
20444     # remove trailing .exe if any
20445     new_path="${new_path/%.exe/}"
20446 
20447     # Save the first 10 bytes of this path to the storage, so fixpath can work.
20448     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20449   fi
20450 
20451     else
20452       # We're on a unix platform. Hooray! :)
20453       # First separate the path from the arguments. This will split at the first
20454       # space.
20455       complete="$FOUND_MAKE"
20456       path="${complete%% *}"
20457       tmp="$complete EOL"
20458       arguments="${tmp#* }"
20459 
20460       # Cannot rely on the command "which" here since it doesn't always work.
20461       is_absolute_path=`$ECHO "$path" | $GREP ^/`
20462       if test -z "$is_absolute_path"; then
20463         # Path to executable is not absolute. Find it.
20464         IFS_save="$IFS"
20465         IFS=:
20466         for p in $PATH; do
20467           if test -f "$p/$path" && test -x "$p/$path"; then
20468             new_path="$p/$path"
20469             break
20470           fi
20471         done
20472         IFS="$IFS_save"
20473       else
20474         # This is an absolute path, we can use it without further modifications.
20475         new_path="$path"
20476       fi
20477 
20478       if test "x$new_path" = x; then
20479         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20480 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20481         has_space=`$ECHO "$complete" | $GREP " "`
20482         if test "x$has_space" != x; then
20483           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
20484 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
20485         fi
20486         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20487       fi
20488     fi
20489 
20490     # Now join together the path and the arguments once again
20491     if test "x$arguments" != xEOL; then
20492       new_complete="$new_path ${arguments% *}"
20493     else
20494       new_complete="$new_path"
20495     fi
20496 
20497     if test "x$complete" != "x$new_complete"; then
20498       FOUND_MAKE="$new_complete"
20499       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
20500 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
20501     fi
20502   fi
20503 
20504         fi
20505       fi
20506     fi
20507   fi
20508 
20509         if test "x$FOUND_MAKE" = x; then
20510           for ac_prog in make
20511 do
20512   # Extract the first word of "$ac_prog", so it can be a program name with args.
20513 set dummy $ac_prog; ac_word=$2
20514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20515 $as_echo_n "checking for $ac_word... " >&6; }
20516 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then :
20517   $as_echo_n "(cached) " >&6
20518 else
20519   case $CHECK_TOOLSDIR_MAKE in
20520   [\\/]* | ?:[\\/]*)
20521   ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
20522   ;;
20523   *)
20524   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20525 for as_dir in $PATH
20526 do
20527   IFS=$as_save_IFS
20528   test -z "$as_dir" && as_dir=.
20529     for ac_exec_ext in '' $ac_executable_extensions; do
20530   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20531     ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
20532     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20533     break 2
20534   fi
20535 done
20536   done
20537 IFS=$as_save_IFS
20538 
20539   ;;
20540 esac
20541 fi
20542 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE
20543 if test -n "$CHECK_TOOLSDIR_MAKE"; then
20544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5
20545 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; }
20546 else
20547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20548 $as_echo "no" >&6; }
20549 fi
20550 
20551 
20552   test -n "$CHECK_TOOLSDIR_MAKE" && break
20553 done
20554 
20555 
20556   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE""
20557   DESCRIPTION="make in tools-dir"
20558 
20559   # On Cygwin, we require a newer version of make than on other platforms
20560   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20561     MAKE_VERSION_EXPR="-e 4\."
20562     MAKE_REQUIRED_VERSION="4.0"
20563    else
20564     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
20565     MAKE_REQUIRED_VERSION="3.81"
20566   fi
20567 
20568   if test "x$MAKE_CANDIDATE" != x; then
20569     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
20570 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
20571     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
20572     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
20573     if test "x$IS_GNU_MAKE" = x; then
20574       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
20575 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
20576     else
20577       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
20578       if test "x$IS_MODERN_MAKE" = x; then
20579         { $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
20580 $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;}
20581       else
20582         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
20583           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20584             MAKE_EXPECTED_ENV='cygwin'
20585           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20586             MAKE_EXPECTED_ENV='msys'
20587           else
20588             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
20589           fi
20590           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
20591           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
20592         else
20593           # Not relevant for non-Windows
20594           IS_MAKE_CORRECT_ENV=true
20595         fi
20596         if test "x$IS_MAKE_CORRECT_ENV" = x; then
20597           { $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
20598 $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;}
20599         else
20600           FOUND_MAKE=$MAKE_CANDIDATE
20601 
20602   # Only process if variable expands to non-empty
20603 
20604   if test "x$FOUND_MAKE" != x; then
20605     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20606 
20607   # First separate the path from the arguments. This will split at the first
20608   # space.
20609   complete="$FOUND_MAKE"
20610   path="${complete%% *}"
20611   tmp="$complete EOL"
20612   arguments="${tmp#* }"
20613 
20614   # Input might be given as Windows format, start by converting to
20615   # unix format.
20616   new_path=`$CYGPATH -u "$path"`
20617 
20618   # Now try to locate executable using which
20619   new_path=`$WHICH "$new_path" 2> /dev/null`
20620   # bat and cmd files are not always considered executable in cygwin causing which
20621   # to not find them
20622   if test "x$new_path" = x \
20623       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20624       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20625     new_path=`$CYGPATH -u "$path"`
20626   fi
20627   if test "x$new_path" = x; then
20628     # Oops. Which didn't find the executable.
20629     # The splitting of arguments from the executable at a space might have been incorrect,
20630     # since paths with space are more likely in Windows. Give it another try with the whole
20631     # argument.
20632     path="$complete"
20633     arguments="EOL"
20634     new_path=`$CYGPATH -u "$path"`
20635     new_path=`$WHICH "$new_path" 2> /dev/null`
20636     # bat and cmd files are not always considered executable in cygwin causing which
20637     # to not find them
20638     if test "x$new_path" = x \
20639         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20640         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20641       new_path=`$CYGPATH -u "$path"`
20642     fi
20643     if test "x$new_path" = x; then
20644       # It's still not found. Now this is an unrecoverable error.
20645       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20646 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20647       has_space=`$ECHO "$complete" | $GREP " "`
20648       if test "x$has_space" != x; then
20649         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20650 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20651       fi
20652       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20653     fi
20654   fi
20655 
20656   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20657   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20658   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20659   # "foo.exe" is OK but "foo" is an error.
20660   #
20661   # This test is therefore slightly more accurate than "test -f" to check for file presence.
20662   # It is also a way to make sure we got the proper file name for the real test later on.
20663   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20664   if test "x$test_shortpath" = x; then
20665     # Short path failed, file does not exist as specified.
20666     # Try adding .exe or .cmd
20667     if test -f "${new_path}.exe"; then
20668       input_to_shortpath="${new_path}.exe"
20669     elif test -f "${new_path}.cmd"; then
20670       input_to_shortpath="${new_path}.cmd"
20671     else
20672       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
20673 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
20674       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
20675 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
20676       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20677     fi
20678   else
20679     input_to_shortpath="$new_path"
20680   fi
20681 
20682   # Call helper function which possibly converts this using DOS-style short mode.
20683   # If so, the updated path is stored in $new_path.
20684   new_path="$input_to_shortpath"
20685 
20686   input_path="$input_to_shortpath"
20687   # Check if we need to convert this using DOS-style short mode. If the path
20688   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20689   # take no chances and rewrite it.
20690   # Note: m4 eats our [], so we need to use [ and ] instead.
20691   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20692   if test "x$has_forbidden_chars" != x; then
20693     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20694     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20695     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20696     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20697       # Going to short mode and back again did indeed matter. Since short mode is
20698       # case insensitive, let's make it lowercase to improve readability.
20699       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20700       # Now convert it back to Unix-style (cygpath)
20701       input_path=`$CYGPATH -u "$shortmode_path"`
20702       new_path="$input_path"
20703     fi
20704   fi
20705 
20706   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20707   if test "x$test_cygdrive_prefix" = x; then
20708     # As a simple fix, exclude /usr/bin since it's not a real path.
20709     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
20710       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20711       # a path prefixed by /cygdrive for fixpath to work.
20712       new_path="$CYGWIN_ROOT_PATH$input_path"
20713     fi
20714   fi
20715 
20716   # remove trailing .exe if any
20717   new_path="${new_path/%.exe/}"
20718 
20719     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20720 
20721   # First separate the path from the arguments. This will split at the first
20722   # space.
20723   complete="$FOUND_MAKE"
20724   path="${complete%% *}"
20725   tmp="$complete EOL"
20726   arguments="${tmp#* }"
20727 
20728   # Input might be given as Windows format, start by converting to
20729   # unix format.
20730   new_path="$path"
20731 
20732   windows_path="$new_path"
20733   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20734     unix_path=`$CYGPATH -u "$windows_path"`
20735     new_path="$unix_path"
20736   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20737     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20738     new_path="$unix_path"
20739   fi
20740 
20741 
20742   # Now try to locate executable using which
20743   new_path=`$WHICH "$new_path" 2> /dev/null`
20744 
20745   if test "x$new_path" = x; then
20746     # Oops. Which didn't find the executable.
20747     # The splitting of arguments from the executable at a space might have been incorrect,
20748     # since paths with space are more likely in Windows. Give it another try with the whole
20749     # argument.
20750     path="$complete"
20751     arguments="EOL"
20752     new_path="$path"
20753 
20754   windows_path="$new_path"
20755   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20756     unix_path=`$CYGPATH -u "$windows_path"`
20757     new_path="$unix_path"
20758   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20759     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20760     new_path="$unix_path"
20761   fi
20762 
20763 
20764     new_path=`$WHICH "$new_path" 2> /dev/null`
20765     # bat and cmd files are not always considered executable in MSYS causing which
20766     # to not find them
20767     if test "x$new_path" = x \
20768         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20769         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20770       new_path="$path"
20771 
20772   windows_path="$new_path"
20773   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20774     unix_path=`$CYGPATH -u "$windows_path"`
20775     new_path="$unix_path"
20776   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20777     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20778     new_path="$unix_path"
20779   fi
20780 
20781     fi
20782 
20783     if test "x$new_path" = x; then
20784       # It's still not found. Now this is an unrecoverable error.
20785       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20786 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20787       has_space=`$ECHO "$complete" | $GREP " "`
20788       if test "x$has_space" != x; then
20789         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20790 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20791       fi
20792       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20793     fi
20794   fi
20795 
20796   # Now new_path has a complete unix path to the binary
20797   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
20798     # Keep paths in /bin as-is, but remove trailing .exe if any
20799     new_path="${new_path/%.exe/}"
20800     # Do not save /bin paths to all_fixpath_prefixes!
20801   else
20802     # Not in mixed or Windows style, start by that.
20803     new_path=`cmd //c echo $new_path`
20804 
20805   input_path="$new_path"
20806   # Check if we need to convert this using DOS-style short mode. If the path
20807   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20808   # take no chances and rewrite it.
20809   # Note: m4 eats our [], so we need to use [ and ] instead.
20810   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20811   if test "x$has_forbidden_chars" != x; then
20812     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20813     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20814   fi
20815 
20816     # Output is in $new_path
20817 
20818   windows_path="$new_path"
20819   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20820     unix_path=`$CYGPATH -u "$windows_path"`
20821     new_path="$unix_path"
20822   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20823     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20824     new_path="$unix_path"
20825   fi
20826 
20827     # remove trailing .exe if any
20828     new_path="${new_path/%.exe/}"
20829 
20830     # Save the first 10 bytes of this path to the storage, so fixpath can work.
20831     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20832   fi
20833 
20834     else
20835       # We're on a unix platform. Hooray! :)
20836       # First separate the path from the arguments. This will split at the first
20837       # space.
20838       complete="$FOUND_MAKE"
20839       path="${complete%% *}"
20840       tmp="$complete EOL"
20841       arguments="${tmp#* }"
20842 
20843       # Cannot rely on the command "which" here since it doesn't always work.
20844       is_absolute_path=`$ECHO "$path" | $GREP ^/`
20845       if test -z "$is_absolute_path"; then
20846         # Path to executable is not absolute. Find it.
20847         IFS_save="$IFS"
20848         IFS=:
20849         for p in $PATH; do
20850           if test -f "$p/$path" && test -x "$p/$path"; then
20851             new_path="$p/$path"
20852             break
20853           fi
20854         done
20855         IFS="$IFS_save"
20856       else
20857         # This is an absolute path, we can use it without further modifications.
20858         new_path="$path"
20859       fi
20860 
20861       if test "x$new_path" = x; then
20862         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20863 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20864         has_space=`$ECHO "$complete" | $GREP " "`
20865         if test "x$has_space" != x; then
20866           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
20867 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
20868         fi
20869         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20870       fi
20871     fi
20872 
20873     # Now join together the path and the arguments once again
20874     if test "x$arguments" != xEOL; then
20875       new_complete="$new_path ${arguments% *}"
20876     else
20877       new_complete="$new_path"
20878     fi
20879 
20880     if test "x$complete" != "x$new_complete"; then
20881       FOUND_MAKE="$new_complete"
20882       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
20883 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
20884     fi
20885   fi
20886 
20887         fi
20888       fi
20889     fi
20890   fi
20891 
20892         fi
20893         PATH=$OLD_PATH
20894       fi
20895     fi
20896 
20897     if test "x$FOUND_MAKE" = x; then
20898       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
20899     fi
20900 
20901     else
20902       # If it succeeded, then it was overridden by the user. We will use it
20903       # for the tool.
20904 
20905       # First remove it from the list of overridden variables, so we can test
20906       # for unknown variables in the end.
20907       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
20908 
20909       # Check if we try to supply an empty value
20910       if test "x$MAKE" = x; then
20911         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MAKE= (no value)" >&5
20912 $as_echo "$as_me: Setting user supplied tool MAKE= (no value)" >&6;}
20913         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAKE" >&5
20914 $as_echo_n "checking for MAKE... " >&6; }
20915         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
20916 $as_echo "disabled" >&6; }
20917       else
20918         # Check if the provided tool contains a complete path.
20919         tool_specified="$MAKE"
20920         tool_basename="${tool_specified##*/}"
20921         if test "x$tool_basename" = "x$tool_specified"; then
20922           # A command without a complete path is provided, search $PATH.
20923           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MAKE=$tool_basename" >&5
20924 $as_echo "$as_me: Will search for user supplied tool MAKE=$tool_basename" >&6;}
20925           # Extract the first word of "$tool_basename", so it can be a program name with args.
20926 set dummy $tool_basename; ac_word=$2
20927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20928 $as_echo_n "checking for $ac_word... " >&6; }
20929 if ${ac_cv_path_MAKE+:} false; then :
20930   $as_echo_n "(cached) " >&6
20931 else
20932   case $MAKE in
20933   [\\/]* | ?:[\\/]*)
20934   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
20935   ;;
20936   *)
20937   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20938 for as_dir in $PATH
20939 do
20940   IFS=$as_save_IFS
20941   test -z "$as_dir" && as_dir=.
20942     for ac_exec_ext in '' $ac_executable_extensions; do
20943   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20944     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
20945     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20946     break 2
20947   fi
20948 done
20949   done
20950 IFS=$as_save_IFS
20951 
20952   ;;
20953 esac
20954 fi
20955 MAKE=$ac_cv_path_MAKE
20956 if test -n "$MAKE"; then
20957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
20958 $as_echo "$MAKE" >&6; }
20959 else
20960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20961 $as_echo "no" >&6; }
20962 fi
20963 
20964 
20965           if test "x$MAKE" = x; then
20966             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
20967           fi
20968         else
20969           # Otherwise we believe it is a complete path. Use it as it is.
20970           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MAKE=$tool_specified" >&5
20971 $as_echo "$as_me: Will use user supplied tool MAKE=$tool_specified" >&6;}
20972           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAKE" >&5
20973 $as_echo_n "checking for MAKE... " >&6; }
20974           if test ! -x "$tool_specified"; then
20975             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20976 $as_echo "not found" >&6; }
20977             as_fn_error $? "User supplied tool MAKE=$tool_specified does not exist or is not executable" "$LINENO" 5
20978           fi
20979           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
20980 $as_echo "$tool_specified" >&6; }
20981         fi
20982       fi
20983     fi
20984 
20985     # If MAKE was set by user, verify the version
20986 
20987   MAKE_CANDIDATE=""$MAKE""
20988   DESCRIPTION="user supplied MAKE=$MAKE"
20989 
20990   # On Cygwin, we require a newer version of make than on other platforms
20991   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20992     MAKE_VERSION_EXPR="-e 4\."
20993     MAKE_REQUIRED_VERSION="4.0"
20994    else
20995     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
20996     MAKE_REQUIRED_VERSION="3.81"
20997   fi
20998 
20999   if test "x$MAKE_CANDIDATE" != x; then
21000     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
21001 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
21002     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
21003     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
21004     if test "x$IS_GNU_MAKE" = x; then
21005       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
21006 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
21007     else
21008       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
21009       if test "x$IS_MODERN_MAKE" = x; then
21010         { $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
21011 $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;}
21012       else
21013         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
21014           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21015             MAKE_EXPECTED_ENV='cygwin'
21016           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21017             MAKE_EXPECTED_ENV='msys'
21018           else
21019             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
21020           fi
21021           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
21022           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
21023         else
21024           # Not relevant for non-Windows
21025           IS_MAKE_CORRECT_ENV=true
21026         fi
21027         if test "x$IS_MAKE_CORRECT_ENV" = x; then
21028           { $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
21029 $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;}
21030         else
21031           FOUND_MAKE=$MAKE_CANDIDATE
21032 
21033   # Only process if variable expands to non-empty
21034 
21035   if test "x$FOUND_MAKE" != x; then
21036     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21037 
21038   # First separate the path from the arguments. This will split at the first
21039   # space.
21040   complete="$FOUND_MAKE"
21041   path="${complete%% *}"
21042   tmp="$complete EOL"
21043   arguments="${tmp#* }"
21044 
21045   # Input might be given as Windows format, start by converting to
21046   # unix format.
21047   new_path=`$CYGPATH -u "$path"`
21048 
21049   # Now try to locate executable using which
21050   new_path=`$WHICH "$new_path" 2> /dev/null`
21051   # bat and cmd files are not always considered executable in cygwin causing which
21052   # to not find them
21053   if test "x$new_path" = x \
21054       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
21055       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
21056     new_path=`$CYGPATH -u "$path"`
21057   fi
21058   if test "x$new_path" = x; then
21059     # Oops. Which didn't find the executable.
21060     # The splitting of arguments from the executable at a space might have been incorrect,
21061     # since paths with space are more likely in Windows. Give it another try with the whole
21062     # argument.
21063     path="$complete"
21064     arguments="EOL"
21065     new_path=`$CYGPATH -u "$path"`
21066     new_path=`$WHICH "$new_path" 2> /dev/null`
21067     # bat and cmd files are not always considered executable in cygwin causing which
21068     # to not find them
21069     if test "x$new_path" = x \
21070         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
21071         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
21072       new_path=`$CYGPATH -u "$path"`
21073     fi
21074     if test "x$new_path" = x; then
21075       # It's still not found. Now this is an unrecoverable error.
21076       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
21077 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
21078       has_space=`$ECHO "$complete" | $GREP " "`
21079       if test "x$has_space" != x; then
21080         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
21081 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
21082       fi
21083       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
21084     fi
21085   fi
21086 
21087   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21088   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21089   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21090   # "foo.exe" is OK but "foo" is an error.
21091   #
21092   # This test is therefore slightly more accurate than "test -f" to check for file presence.
21093   # It is also a way to make sure we got the proper file name for the real test later on.
21094   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21095   if test "x$test_shortpath" = x; then
21096     # Short path failed, file does not exist as specified.
21097     # Try adding .exe or .cmd
21098     if test -f "${new_path}.exe"; then
21099       input_to_shortpath="${new_path}.exe"
21100     elif test -f "${new_path}.cmd"; then
21101       input_to_shortpath="${new_path}.cmd"
21102     else
21103       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
21104 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
21105       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
21106 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
21107       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
21108     fi
21109   else
21110     input_to_shortpath="$new_path"
21111   fi
21112 
21113   # Call helper function which possibly converts this using DOS-style short mode.
21114   # If so, the updated path is stored in $new_path.
21115   new_path="$input_to_shortpath"
21116 
21117   input_path="$input_to_shortpath"
21118   # Check if we need to convert this using DOS-style short mode. If the path
21119   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21120   # take no chances and rewrite it.
21121   # Note: m4 eats our [], so we need to use [ and ] instead.
21122   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21123   if test "x$has_forbidden_chars" != x; then
21124     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21125     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21126     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21127     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21128       # Going to short mode and back again did indeed matter. Since short mode is
21129       # case insensitive, let's make it lowercase to improve readability.
21130       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21131       # Now convert it back to Unix-style (cygpath)
21132       input_path=`$CYGPATH -u "$shortmode_path"`
21133       new_path="$input_path"
21134     fi
21135   fi
21136 
21137   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21138   if test "x$test_cygdrive_prefix" = x; then
21139     # As a simple fix, exclude /usr/bin since it's not a real path.
21140     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
21141       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21142       # a path prefixed by /cygdrive for fixpath to work.
21143       new_path="$CYGWIN_ROOT_PATH$input_path"
21144     fi
21145   fi
21146 
21147   # remove trailing .exe if any
21148   new_path="${new_path/%.exe/}"
21149 
21150     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21151 
21152   # First separate the path from the arguments. This will split at the first
21153   # space.
21154   complete="$FOUND_MAKE"
21155   path="${complete%% *}"
21156   tmp="$complete EOL"
21157   arguments="${tmp#* }"
21158 
21159   # Input might be given as Windows format, start by converting to
21160   # unix format.
21161   new_path="$path"
21162 
21163   windows_path="$new_path"
21164   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21165     unix_path=`$CYGPATH -u "$windows_path"`
21166     new_path="$unix_path"
21167   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21168     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21169     new_path="$unix_path"
21170   fi
21171 
21172 
21173   # Now try to locate executable using which
21174   new_path=`$WHICH "$new_path" 2> /dev/null`
21175 
21176   if test "x$new_path" = x; then
21177     # Oops. Which didn't find the executable.
21178     # The splitting of arguments from the executable at a space might have been incorrect,
21179     # since paths with space are more likely in Windows. Give it another try with the whole
21180     # argument.
21181     path="$complete"
21182     arguments="EOL"
21183     new_path="$path"
21184 
21185   windows_path="$new_path"
21186   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21187     unix_path=`$CYGPATH -u "$windows_path"`
21188     new_path="$unix_path"
21189   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21190     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21191     new_path="$unix_path"
21192   fi
21193 
21194 
21195     new_path=`$WHICH "$new_path" 2> /dev/null`
21196     # bat and cmd files are not always considered executable in MSYS causing which
21197     # to not find them
21198     if test "x$new_path" = x \
21199         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
21200         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
21201       new_path="$path"
21202 
21203   windows_path="$new_path"
21204   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21205     unix_path=`$CYGPATH -u "$windows_path"`
21206     new_path="$unix_path"
21207   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21208     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21209     new_path="$unix_path"
21210   fi
21211 
21212     fi
21213 
21214     if test "x$new_path" = x; then
21215       # It's still not found. Now this is an unrecoverable error.
21216       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
21217 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
21218       has_space=`$ECHO "$complete" | $GREP " "`
21219       if test "x$has_space" != x; then
21220         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
21221 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
21222       fi
21223       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
21224     fi
21225   fi
21226 
21227   # Now new_path has a complete unix path to the binary
21228   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
21229     # Keep paths in /bin as-is, but remove trailing .exe if any
21230     new_path="${new_path/%.exe/}"
21231     # Do not save /bin paths to all_fixpath_prefixes!
21232   else
21233     # Not in mixed or Windows style, start by that.
21234     new_path=`cmd //c echo $new_path`
21235 
21236   input_path="$new_path"
21237   # Check if we need to convert this using DOS-style short mode. If the path
21238   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21239   # take no chances and rewrite it.
21240   # Note: m4 eats our [], so we need to use [ and ] instead.
21241   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21242   if test "x$has_forbidden_chars" != x; then
21243     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21244     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21245   fi
21246 
21247     # Output is in $new_path
21248 
21249   windows_path="$new_path"
21250   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21251     unix_path=`$CYGPATH -u "$windows_path"`
21252     new_path="$unix_path"
21253   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21254     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21255     new_path="$unix_path"
21256   fi
21257 
21258     # remove trailing .exe if any
21259     new_path="${new_path/%.exe/}"
21260 
21261     # Save the first 10 bytes of this path to the storage, so fixpath can work.
21262     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21263   fi
21264 
21265     else
21266       # We're on a unix platform. Hooray! :)
21267       # First separate the path from the arguments. This will split at the first
21268       # space.
21269       complete="$FOUND_MAKE"
21270       path="${complete%% *}"
21271       tmp="$complete EOL"
21272       arguments="${tmp#* }"
21273 
21274       # Cannot rely on the command "which" here since it doesn't always work.
21275       is_absolute_path=`$ECHO "$path" | $GREP ^/`
21276       if test -z "$is_absolute_path"; then
21277         # Path to executable is not absolute. Find it.
21278         IFS_save="$IFS"
21279         IFS=:
21280         for p in $PATH; do
21281           if test -f "$p/$path" && test -x "$p/$path"; then
21282             new_path="$p/$path"
21283             break
21284           fi
21285         done
21286         IFS="$IFS_save"
21287       else
21288         # This is an absolute path, we can use it without further modifications.
21289         new_path="$path"
21290       fi
21291 
21292       if test "x$new_path" = x; then
21293         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
21294 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
21295         has_space=`$ECHO "$complete" | $GREP " "`
21296         if test "x$has_space" != x; then
21297           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
21298 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
21299         fi
21300         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
21301       fi
21302     fi
21303 
21304     # Now join together the path and the arguments once again
21305     if test "x$arguments" != xEOL; then
21306       new_complete="$new_path ${arguments% *}"
21307     else
21308       new_complete="$new_path"
21309     fi
21310 
21311     if test "x$complete" != "x$new_complete"; then
21312       FOUND_MAKE="$new_complete"
21313       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
21314 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
21315     fi
21316   fi
21317 
21318         fi
21319       fi
21320     fi
21321   fi
21322 
21323     if test "x$FOUND_MAKE" = x; then
21324       as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make $MAKE_REQUIRED_VERSION or newer." "$LINENO" 5
21325     fi
21326 
21327   fi
21328 
21329 
21330   MAKE=$FOUND_MAKE
21331 
21332   { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5
21333 $as_echo "$as_me: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;}
21334 
21335 
21336   # Check if make supports the output sync option and if so, setup using it.
21337   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if make --output-sync is supported" >&5
21338 $as_echo_n "checking if make --output-sync is supported... " >&6; }
21339   if $MAKE --version -O > /dev/null 2>&1; then
21340     OUTPUT_SYNC_SUPPORTED=true
21341     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21342 $as_echo "yes" >&6; }
21343     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for output-sync value" >&5
21344 $as_echo_n "checking for output-sync value... " >&6; }
21345 
21346 # Check whether --with-output-sync was given.
21347 if test "${with_output_sync+set}" = set; then :
21348   withval=$with_output_sync; OUTPUT_SYNC=$with_output_sync
21349 fi
21350 
21351     if test "x$OUTPUT_SYNC" = "x"; then
21352       OUTPUT_SYNC=none
21353     fi
21354     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_SYNC" >&5
21355 $as_echo "$OUTPUT_SYNC" >&6; }
21356     if ! $MAKE --version -O$OUTPUT_SYNC > /dev/null 2>&1; then
21357       as_fn_error $? "Make did not the support the value $OUTPUT_SYNC as output sync type." "$LINENO" 5
21358     fi
21359   else
21360     OUTPUT_SYNC_SUPPORTED=false
21361     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21362 $as_echo "no" >&6; }
21363   fi
21364 
21365 
21366 
21367 
21368 
21369 
21370   # Test if find supports -delete
21371   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5
21372 $as_echo_n "checking if find supports -delete... " >&6; }
21373   FIND_DELETE="-delete"
21374 
21375   DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?)
21376 
21377   echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete
21378 
21379   TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1`
21380   if test -f $DELETEDIR/TestIfFindSupportsDelete; then
21381     # No, it does not.
21382     $RM $DELETEDIR/TestIfFindSupportsDelete
21383     if test "x$OPENJDK_TARGET_OS" = "xaix"; then
21384       # AIX 'find' is buggy if called with '-exec {} \+' and an empty file list
21385       FIND_DELETE="-print | $XARGS $RM"
21386     else
21387       FIND_DELETE="-exec $RM \{\} \+"
21388     fi
21389     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21390 $as_echo "no" >&6; }
21391   else
21392     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21393 $as_echo "yes" >&6; }
21394   fi
21395   $RMDIR $DELETEDIR
21396 
21397 
21398 
21399   # Test which kind of tar was found
21400   if test "x$($TAR --version | $GREP "GNU tar")" != "x"; then
21401     TAR_TYPE="gnu"
21402   elif test "x$($TAR --version | $GREP "bsdtar")" != "x"; then
21403     TAR_TYPE="bsd"
21404   elif test "x$($TAR -v | $GREP "bsdtar")" != "x"; then
21405     TAR_TYPE="bsd"
21406   elif test "x$OPENJDK_BUILD_OS" = "xsolaris"; then
21407     TAR_TYPE="solaris"
21408   fi
21409   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what type of tar was found" >&5
21410 $as_echo_n "checking what type of tar was found... " >&6; }
21411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR_TYPE" >&5
21412 $as_echo "$TAR_TYPE" >&6; }
21413 
21414   TAR_CREATE_FILE_PARAM=""
21415 
21416   if test "x$TAR_TYPE" = "xgnu"; then
21417     TAR_INCLUDE_PARAM="T"
21418     TAR_SUPPORTS_TRANSFORM="true"
21419     if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
21420       # When using gnu tar for Solaris targets, need to use compatibility mode
21421       TAR_CREATE_EXTRA_PARAM="--format=ustar"
21422     fi
21423   else
21424     TAR_INCLUDE_PARAM="I"
21425     TAR_SUPPORTS_TRANSFORM="false"
21426   fi
21427 
21428 
21429 
21430 
21431 
21432 
21433   # Test that grep supports -Fx with a list of pattern which includes null pattern.
21434   # This is a problem for the grep resident on AIX.
21435   { $as_echo "$as_me:${as_lineno-$LINENO}: checking that grep ($GREP) -Fx handles empty lines in the pattern list correctly" >&5
21436 $as_echo_n "checking that grep ($GREP) -Fx handles empty lines in the pattern list correctly... " >&6; }
21437   # Multiple subsequent spaces..
21438   STACK_SPACES='aaa   bbb   ccc'
21439   # ..converted to subsequent newlines, causes STACK_LIST to be a list with some empty
21440   # patterns in it.
21441   STACK_LIST=${STACK_SPACES// /$'\n'}
21442   NEEDLE_SPACES='ccc bbb aaa'
21443   NEEDLE_LIST=${NEEDLE_SPACES// /$'\n'}
21444   RESULT="$($GREP -Fvx "$STACK_LIST" <<< "$NEEDLE_LIST")"
21445   if test "x$RESULT" == "x"; then
21446     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21447 $as_echo "yes" >&6; }
21448   else
21449     if test "x$OPENJDK_TARGET_OS" = "xaix"; then
21450       ADDINFO="Please make sure you use GNU grep, usually found at /opt/freeware/bin."
21451     fi
21452     as_fn_error $? "grep does not handle -Fx correctly. ${ADDINFO}" "$LINENO" 5
21453   fi
21454 
21455 
21456   # These tools might not be installed by default,
21457   # need hint on how to install them.
21458 
21459 
21460 
21461   # Publish this variable in the help.
21462 
21463 
21464   if [ -z "${UNZIP+x}" ]; then
21465     # The variable is not set by user, try to locate tool using the code snippet
21466     for ac_prog in unzip
21467 do
21468   # Extract the first word of "$ac_prog", so it can be a program name with args.
21469 set dummy $ac_prog; ac_word=$2
21470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21471 $as_echo_n "checking for $ac_word... " >&6; }
21472 if ${ac_cv_path_UNZIP+:} false; then :
21473   $as_echo_n "(cached) " >&6
21474 else
21475   case $UNZIP in
21476   [\\/]* | ?:[\\/]*)
21477   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
21478   ;;
21479   *)
21480   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21481 for as_dir in $PATH
21482 do
21483   IFS=$as_save_IFS
21484   test -z "$as_dir" && as_dir=.
21485     for ac_exec_ext in '' $ac_executable_extensions; do
21486   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21487     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
21488     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21489     break 2
21490   fi
21491 done
21492   done
21493 IFS=$as_save_IFS
21494 
21495   ;;
21496 esac
21497 fi
21498 UNZIP=$ac_cv_path_UNZIP
21499 if test -n "$UNZIP"; then
21500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
21501 $as_echo "$UNZIP" >&6; }
21502 else
21503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21504 $as_echo "no" >&6; }
21505 fi
21506 
21507 
21508   test -n "$UNZIP" && break
21509 done
21510 
21511   else
21512     # The variable is set, but is it from the command line or the environment?
21513 
21514     # Try to remove the string !UNZIP! from our list.
21515     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/}
21516     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21517       # If it failed, the variable was not from the command line. Ignore it,
21518       # but warn the user (except for BASH, which is always set by the calling BASH).
21519       if test "xUNZIP" != xBASH; then
21520         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5
21521 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;}
21522       fi
21523       # Try to locate tool using the code snippet
21524       for ac_prog in unzip
21525 do
21526   # Extract the first word of "$ac_prog", so it can be a program name with args.
21527 set dummy $ac_prog; ac_word=$2
21528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21529 $as_echo_n "checking for $ac_word... " >&6; }
21530 if ${ac_cv_path_UNZIP+:} false; then :
21531   $as_echo_n "(cached) " >&6
21532 else
21533   case $UNZIP in
21534   [\\/]* | ?:[\\/]*)
21535   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
21536   ;;
21537   *)
21538   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21539 for as_dir in $PATH
21540 do
21541   IFS=$as_save_IFS
21542   test -z "$as_dir" && as_dir=.
21543     for ac_exec_ext in '' $ac_executable_extensions; do
21544   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21545     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
21546     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21547     break 2
21548   fi
21549 done
21550   done
21551 IFS=$as_save_IFS
21552 
21553   ;;
21554 esac
21555 fi
21556 UNZIP=$ac_cv_path_UNZIP
21557 if test -n "$UNZIP"; then
21558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
21559 $as_echo "$UNZIP" >&6; }
21560 else
21561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21562 $as_echo "no" >&6; }
21563 fi
21564 
21565 
21566   test -n "$UNZIP" && break
21567 done
21568 
21569     else
21570       # If it succeeded, then it was overridden by the user. We will use it
21571       # for the tool.
21572 
21573       # First remove it from the list of overridden variables, so we can test
21574       # for unknown variables in the end.
21575       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21576 
21577       # Check if we try to supply an empty value
21578       if test "x$UNZIP" = x; then
21579         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNZIP= (no value)" >&5
21580 $as_echo "$as_me: Setting user supplied tool UNZIP= (no value)" >&6;}
21581         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5
21582 $as_echo_n "checking for UNZIP... " >&6; }
21583         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21584 $as_echo "disabled" >&6; }
21585       else
21586         # Check if the provided tool contains a complete path.
21587         tool_specified="$UNZIP"
21588         tool_basename="${tool_specified##*/}"
21589         if test "x$tool_basename" = "x$tool_specified"; then
21590           # A command without a complete path is provided, search $PATH.
21591           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5
21592 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;}
21593           # Extract the first word of "$tool_basename", so it can be a program name with args.
21594 set dummy $tool_basename; ac_word=$2
21595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21596 $as_echo_n "checking for $ac_word... " >&6; }
21597 if ${ac_cv_path_UNZIP+:} false; then :
21598   $as_echo_n "(cached) " >&6
21599 else
21600   case $UNZIP in
21601   [\\/]* | ?:[\\/]*)
21602   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
21603   ;;
21604   *)
21605   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21606 for as_dir in $PATH
21607 do
21608   IFS=$as_save_IFS
21609   test -z "$as_dir" && as_dir=.
21610     for ac_exec_ext in '' $ac_executable_extensions; do
21611   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21612     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
21613     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21614     break 2
21615   fi
21616 done
21617   done
21618 IFS=$as_save_IFS
21619 
21620   ;;
21621 esac
21622 fi
21623 UNZIP=$ac_cv_path_UNZIP
21624 if test -n "$UNZIP"; then
21625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
21626 $as_echo "$UNZIP" >&6; }
21627 else
21628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21629 $as_echo "no" >&6; }
21630 fi
21631 
21632 
21633           if test "x$UNZIP" = x; then
21634             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21635           fi
21636         else
21637           # Otherwise we believe it is a complete path. Use it as it is.
21638           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5
21639 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;}
21640           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5
21641 $as_echo_n "checking for UNZIP... " >&6; }
21642           if test ! -x "$tool_specified"; then
21643             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21644 $as_echo "not found" >&6; }
21645             as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
21646           fi
21647           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21648 $as_echo "$tool_specified" >&6; }
21649         fi
21650       fi
21651     fi
21652 
21653   fi
21654 
21655 
21656 
21657   if test "x$UNZIP" = x; then
21658     as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5
21659   fi
21660 
21661 
21662   # Since zip uses "ZIP" as a environment variable for passing options, we need
21663   # to name our variable differently, hence ZIPEXE.
21664 
21665 
21666 
21667   # Publish this variable in the help.
21668 
21669 
21670   if [ -z "${ZIPEXE+x}" ]; then
21671     # The variable is not set by user, try to locate tool using the code snippet
21672     for ac_prog in zip
21673 do
21674   # Extract the first word of "$ac_prog", so it can be a program name with args.
21675 set dummy $ac_prog; ac_word=$2
21676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21677 $as_echo_n "checking for $ac_word... " >&6; }
21678 if ${ac_cv_path_ZIPEXE+:} false; then :
21679   $as_echo_n "(cached) " >&6
21680 else
21681   case $ZIPEXE in
21682   [\\/]* | ?:[\\/]*)
21683   ac_cv_path_ZIPEXE="$ZIPEXE" # Let the user override the test with a path.
21684   ;;
21685   *)
21686   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21687 for as_dir in $PATH
21688 do
21689   IFS=$as_save_IFS
21690   test -z "$as_dir" && as_dir=.
21691     for ac_exec_ext in '' $ac_executable_extensions; do
21692   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21693     ac_cv_path_ZIPEXE="$as_dir/$ac_word$ac_exec_ext"
21694     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21695     break 2
21696   fi
21697 done
21698   done
21699 IFS=$as_save_IFS
21700 
21701   ;;
21702 esac
21703 fi
21704 ZIPEXE=$ac_cv_path_ZIPEXE
21705 if test -n "$ZIPEXE"; then
21706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIPEXE" >&5
21707 $as_echo "$ZIPEXE" >&6; }
21708 else
21709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21710 $as_echo "no" >&6; }
21711 fi
21712 
21713 
21714   test -n "$ZIPEXE" && break
21715 done
21716 
21717   else
21718     # The variable is set, but is it from the command line or the environment?
21719 
21720     # Try to remove the string !ZIPEXE! from our list.
21721     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIPEXE!/}
21722     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21723       # If it failed, the variable was not from the command line. Ignore it,
21724       # but warn the user (except for BASH, which is always set by the calling BASH).
21725       if test "xZIPEXE" != xBASH; then
21726         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIPEXE from the environment. Use command line variables instead." >&5
21727 $as_echo "$as_me: WARNING: Ignoring value of ZIPEXE from the environment. Use command line variables instead." >&2;}
21728       fi
21729       # Try to locate tool using the code snippet
21730       for ac_prog in zip
21731 do
21732   # Extract the first word of "$ac_prog", so it can be a program name with args.
21733 set dummy $ac_prog; ac_word=$2
21734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21735 $as_echo_n "checking for $ac_word... " >&6; }
21736 if ${ac_cv_path_ZIPEXE+:} false; then :
21737   $as_echo_n "(cached) " >&6
21738 else
21739   case $ZIPEXE in
21740   [\\/]* | ?:[\\/]*)
21741   ac_cv_path_ZIPEXE="$ZIPEXE" # Let the user override the test with a path.
21742   ;;
21743   *)
21744   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21745 for as_dir in $PATH
21746 do
21747   IFS=$as_save_IFS
21748   test -z "$as_dir" && as_dir=.
21749     for ac_exec_ext in '' $ac_executable_extensions; do
21750   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21751     ac_cv_path_ZIPEXE="$as_dir/$ac_word$ac_exec_ext"
21752     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21753     break 2
21754   fi
21755 done
21756   done
21757 IFS=$as_save_IFS
21758 
21759   ;;
21760 esac
21761 fi
21762 ZIPEXE=$ac_cv_path_ZIPEXE
21763 if test -n "$ZIPEXE"; then
21764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIPEXE" >&5
21765 $as_echo "$ZIPEXE" >&6; }
21766 else
21767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21768 $as_echo "no" >&6; }
21769 fi
21770 
21771 
21772   test -n "$ZIPEXE" && break
21773 done
21774 
21775     else
21776       # If it succeeded, then it was overridden by the user. We will use it
21777       # for the tool.
21778 
21779       # First remove it from the list of overridden variables, so we can test
21780       # for unknown variables in the end.
21781       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21782 
21783       # Check if we try to supply an empty value
21784       if test "x$ZIPEXE" = x; then
21785         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ZIPEXE= (no value)" >&5
21786 $as_echo "$as_me: Setting user supplied tool ZIPEXE= (no value)" >&6;}
21787         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIPEXE" >&5
21788 $as_echo_n "checking for ZIPEXE... " >&6; }
21789         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21790 $as_echo "disabled" >&6; }
21791       else
21792         # Check if the provided tool contains a complete path.
21793         tool_specified="$ZIPEXE"
21794         tool_basename="${tool_specified##*/}"
21795         if test "x$tool_basename" = "x$tool_specified"; then
21796           # A command without a complete path is provided, search $PATH.
21797           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIPEXE=$tool_basename" >&5
21798 $as_echo "$as_me: Will search for user supplied tool ZIPEXE=$tool_basename" >&6;}
21799           # Extract the first word of "$tool_basename", so it can be a program name with args.
21800 set dummy $tool_basename; ac_word=$2
21801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21802 $as_echo_n "checking for $ac_word... " >&6; }
21803 if ${ac_cv_path_ZIPEXE+:} false; then :
21804   $as_echo_n "(cached) " >&6
21805 else
21806   case $ZIPEXE in
21807   [\\/]* | ?:[\\/]*)
21808   ac_cv_path_ZIPEXE="$ZIPEXE" # Let the user override the test with a path.
21809   ;;
21810   *)
21811   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21812 for as_dir in $PATH
21813 do
21814   IFS=$as_save_IFS
21815   test -z "$as_dir" && as_dir=.
21816     for ac_exec_ext in '' $ac_executable_extensions; do
21817   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21818     ac_cv_path_ZIPEXE="$as_dir/$ac_word$ac_exec_ext"
21819     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21820     break 2
21821   fi
21822 done
21823   done
21824 IFS=$as_save_IFS
21825 
21826   ;;
21827 esac
21828 fi
21829 ZIPEXE=$ac_cv_path_ZIPEXE
21830 if test -n "$ZIPEXE"; then
21831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIPEXE" >&5
21832 $as_echo "$ZIPEXE" >&6; }
21833 else
21834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21835 $as_echo "no" >&6; }
21836 fi
21837 
21838 
21839           if test "x$ZIPEXE" = x; then
21840             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21841           fi
21842         else
21843           # Otherwise we believe it is a complete path. Use it as it is.
21844           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIPEXE=$tool_specified" >&5
21845 $as_echo "$as_me: Will use user supplied tool ZIPEXE=$tool_specified" >&6;}
21846           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIPEXE" >&5
21847 $as_echo_n "checking for ZIPEXE... " >&6; }
21848           if test ! -x "$tool_specified"; then
21849             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21850 $as_echo "not found" >&6; }
21851             as_fn_error $? "User supplied tool ZIPEXE=$tool_specified does not exist or is not executable" "$LINENO" 5
21852           fi
21853           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21854 $as_echo "$tool_specified" >&6; }
21855         fi
21856       fi
21857     fi
21858 
21859   fi
21860 
21861 
21862 
21863   if test "x$ZIPEXE" = x; then
21864     as_fn_error $? "Could not find required tool for ZIPEXE" "$LINENO" 5
21865   fi
21866 
21867 
21868 
21869   # Non-required basic tools
21870 
21871 
21872 
21873   # Publish this variable in the help.
21874 
21875 
21876   if [ -z "${LDD+x}" ]; then
21877     # The variable is not set by user, try to locate tool using the code snippet
21878     for ac_prog in ldd
21879 do
21880   # Extract the first word of "$ac_prog", so it can be a program name with args.
21881 set dummy $ac_prog; ac_word=$2
21882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21883 $as_echo_n "checking for $ac_word... " >&6; }
21884 if ${ac_cv_path_LDD+:} false; then :
21885   $as_echo_n "(cached) " >&6
21886 else
21887   case $LDD in
21888   [\\/]* | ?:[\\/]*)
21889   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
21890   ;;
21891   *)
21892   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21893 for as_dir in $PATH
21894 do
21895   IFS=$as_save_IFS
21896   test -z "$as_dir" && as_dir=.
21897     for ac_exec_ext in '' $ac_executable_extensions; do
21898   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21899     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
21900     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21901     break 2
21902   fi
21903 done
21904   done
21905 IFS=$as_save_IFS
21906 
21907   ;;
21908 esac
21909 fi
21910 LDD=$ac_cv_path_LDD
21911 if test -n "$LDD"; then
21912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
21913 $as_echo "$LDD" >&6; }
21914 else
21915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21916 $as_echo "no" >&6; }
21917 fi
21918 
21919 
21920   test -n "$LDD" && break
21921 done
21922 
21923   else
21924     # The variable is set, but is it from the command line or the environment?
21925 
21926     # Try to remove the string !LDD! from our list.
21927     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/}
21928     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21929       # If it failed, the variable was not from the command line. Ignore it,
21930       # but warn the user (except for BASH, which is always set by the calling BASH).
21931       if test "xLDD" != xBASH; then
21932         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5
21933 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;}
21934       fi
21935       # Try to locate tool using the code snippet
21936       for ac_prog in ldd
21937 do
21938   # Extract the first word of "$ac_prog", so it can be a program name with args.
21939 set dummy $ac_prog; ac_word=$2
21940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21941 $as_echo_n "checking for $ac_word... " >&6; }
21942 if ${ac_cv_path_LDD+:} false; then :
21943   $as_echo_n "(cached) " >&6
21944 else
21945   case $LDD in
21946   [\\/]* | ?:[\\/]*)
21947   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
21948   ;;
21949   *)
21950   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21951 for as_dir in $PATH
21952 do
21953   IFS=$as_save_IFS
21954   test -z "$as_dir" && as_dir=.
21955     for ac_exec_ext in '' $ac_executable_extensions; do
21956   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21957     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
21958     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21959     break 2
21960   fi
21961 done
21962   done
21963 IFS=$as_save_IFS
21964 
21965   ;;
21966 esac
21967 fi
21968 LDD=$ac_cv_path_LDD
21969 if test -n "$LDD"; then
21970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
21971 $as_echo "$LDD" >&6; }
21972 else
21973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21974 $as_echo "no" >&6; }
21975 fi
21976 
21977 
21978   test -n "$LDD" && break
21979 done
21980 
21981     else
21982       # If it succeeded, then it was overridden by the user. We will use it
21983       # for the tool.
21984 
21985       # First remove it from the list of overridden variables, so we can test
21986       # for unknown variables in the end.
21987       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21988 
21989       # Check if we try to supply an empty value
21990       if test "x$LDD" = x; then
21991         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LDD= (no value)" >&5
21992 $as_echo "$as_me: Setting user supplied tool LDD= (no value)" >&6;}
21993         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5
21994 $as_echo_n "checking for LDD... " >&6; }
21995         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21996 $as_echo "disabled" >&6; }
21997       else
21998         # Check if the provided tool contains a complete path.
21999         tool_specified="$LDD"
22000         tool_basename="${tool_specified##*/}"
22001         if test "x$tool_basename" = "x$tool_specified"; then
22002           # A command without a complete path is provided, search $PATH.
22003           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5
22004 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;}
22005           # Extract the first word of "$tool_basename", so it can be a program name with args.
22006 set dummy $tool_basename; ac_word=$2
22007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22008 $as_echo_n "checking for $ac_word... " >&6; }
22009 if ${ac_cv_path_LDD+:} false; then :
22010   $as_echo_n "(cached) " >&6
22011 else
22012   case $LDD in
22013   [\\/]* | ?:[\\/]*)
22014   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
22015   ;;
22016   *)
22017   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22018 for as_dir in $PATH
22019 do
22020   IFS=$as_save_IFS
22021   test -z "$as_dir" && as_dir=.
22022     for ac_exec_ext in '' $ac_executable_extensions; do
22023   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22024     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
22025     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22026     break 2
22027   fi
22028 done
22029   done
22030 IFS=$as_save_IFS
22031 
22032   ;;
22033 esac
22034 fi
22035 LDD=$ac_cv_path_LDD
22036 if test -n "$LDD"; then
22037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
22038 $as_echo "$LDD" >&6; }
22039 else
22040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22041 $as_echo "no" >&6; }
22042 fi
22043 
22044 
22045           if test "x$LDD" = x; then
22046             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22047           fi
22048         else
22049           # Otherwise we believe it is a complete path. Use it as it is.
22050           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5
22051 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;}
22052           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5
22053 $as_echo_n "checking for LDD... " >&6; }
22054           if test ! -x "$tool_specified"; then
22055             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22056 $as_echo "not found" >&6; }
22057             as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5
22058           fi
22059           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22060 $as_echo "$tool_specified" >&6; }
22061         fi
22062       fi
22063     fi
22064 
22065   fi
22066 
22067 
22068   if test "x$LDD" = "x"; then
22069     # List shared lib dependencies is used for
22070     # debug output and checking for forbidden dependencies.
22071     # We can build without it.
22072     LDD="true"
22073   fi
22074 
22075 
22076   # Publish this variable in the help.
22077 
22078 
22079   if [ -z "${OTOOL+x}" ]; then
22080     # The variable is not set by user, try to locate tool using the code snippet
22081     for ac_prog in otool
22082 do
22083   # Extract the first word of "$ac_prog", so it can be a program name with args.
22084 set dummy $ac_prog; ac_word=$2
22085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22086 $as_echo_n "checking for $ac_word... " >&6; }
22087 if ${ac_cv_path_OTOOL+:} false; then :
22088   $as_echo_n "(cached) " >&6
22089 else
22090   case $OTOOL in
22091   [\\/]* | ?:[\\/]*)
22092   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
22093   ;;
22094   *)
22095   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22096 for as_dir in $PATH
22097 do
22098   IFS=$as_save_IFS
22099   test -z "$as_dir" && as_dir=.
22100     for ac_exec_ext in '' $ac_executable_extensions; do
22101   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22102     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
22103     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22104     break 2
22105   fi
22106 done
22107   done
22108 IFS=$as_save_IFS
22109 
22110   ;;
22111 esac
22112 fi
22113 OTOOL=$ac_cv_path_OTOOL
22114 if test -n "$OTOOL"; then
22115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
22116 $as_echo "$OTOOL" >&6; }
22117 else
22118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22119 $as_echo "no" >&6; }
22120 fi
22121 
22122 
22123   test -n "$OTOOL" && break
22124 done
22125 
22126   else
22127     # The variable is set, but is it from the command line or the environment?
22128 
22129     # Try to remove the string !OTOOL! from our list.
22130     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OTOOL!/}
22131     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22132       # If it failed, the variable was not from the command line. Ignore it,
22133       # but warn the user (except for BASH, which is always set by the calling BASH).
22134       if test "xOTOOL" != xBASH; then
22135         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&5
22136 $as_echo "$as_me: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&2;}
22137       fi
22138       # Try to locate tool using the code snippet
22139       for ac_prog in otool
22140 do
22141   # Extract the first word of "$ac_prog", so it can be a program name with args.
22142 set dummy $ac_prog; ac_word=$2
22143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22144 $as_echo_n "checking for $ac_word... " >&6; }
22145 if ${ac_cv_path_OTOOL+:} false; then :
22146   $as_echo_n "(cached) " >&6
22147 else
22148   case $OTOOL in
22149   [\\/]* | ?:[\\/]*)
22150   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
22151   ;;
22152   *)
22153   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22154 for as_dir in $PATH
22155 do
22156   IFS=$as_save_IFS
22157   test -z "$as_dir" && as_dir=.
22158     for ac_exec_ext in '' $ac_executable_extensions; do
22159   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22160     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
22161     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22162     break 2
22163   fi
22164 done
22165   done
22166 IFS=$as_save_IFS
22167 
22168   ;;
22169 esac
22170 fi
22171 OTOOL=$ac_cv_path_OTOOL
22172 if test -n "$OTOOL"; then
22173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
22174 $as_echo "$OTOOL" >&6; }
22175 else
22176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22177 $as_echo "no" >&6; }
22178 fi
22179 
22180 
22181   test -n "$OTOOL" && break
22182 done
22183 
22184     else
22185       # If it succeeded, then it was overridden by the user. We will use it
22186       # for the tool.
22187 
22188       # First remove it from the list of overridden variables, so we can test
22189       # for unknown variables in the end.
22190       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22191 
22192       # Check if we try to supply an empty value
22193       if test "x$OTOOL" = x; then
22194         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool OTOOL= (no value)" >&5
22195 $as_echo "$as_me: Setting user supplied tool OTOOL= (no value)" >&6;}
22196         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5
22197 $as_echo_n "checking for OTOOL... " >&6; }
22198         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22199 $as_echo "disabled" >&6; }
22200       else
22201         # Check if the provided tool contains a complete path.
22202         tool_specified="$OTOOL"
22203         tool_basename="${tool_specified##*/}"
22204         if test "x$tool_basename" = "x$tool_specified"; then
22205           # A command without a complete path is provided, search $PATH.
22206           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OTOOL=$tool_basename" >&5
22207 $as_echo "$as_me: Will search for user supplied tool OTOOL=$tool_basename" >&6;}
22208           # Extract the first word of "$tool_basename", so it can be a program name with args.
22209 set dummy $tool_basename; ac_word=$2
22210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22211 $as_echo_n "checking for $ac_word... " >&6; }
22212 if ${ac_cv_path_OTOOL+:} false; then :
22213   $as_echo_n "(cached) " >&6
22214 else
22215   case $OTOOL in
22216   [\\/]* | ?:[\\/]*)
22217   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
22218   ;;
22219   *)
22220   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22221 for as_dir in $PATH
22222 do
22223   IFS=$as_save_IFS
22224   test -z "$as_dir" && as_dir=.
22225     for ac_exec_ext in '' $ac_executable_extensions; do
22226   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22227     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
22228     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22229     break 2
22230   fi
22231 done
22232   done
22233 IFS=$as_save_IFS
22234 
22235   ;;
22236 esac
22237 fi
22238 OTOOL=$ac_cv_path_OTOOL
22239 if test -n "$OTOOL"; then
22240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
22241 $as_echo "$OTOOL" >&6; }
22242 else
22243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22244 $as_echo "no" >&6; }
22245 fi
22246 
22247 
22248           if test "x$OTOOL" = x; then
22249             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22250           fi
22251         else
22252           # Otherwise we believe it is a complete path. Use it as it is.
22253           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OTOOL=$tool_specified" >&5
22254 $as_echo "$as_me: Will use user supplied tool OTOOL=$tool_specified" >&6;}
22255           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5
22256 $as_echo_n "checking for OTOOL... " >&6; }
22257           if test ! -x "$tool_specified"; then
22258             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22259 $as_echo "not found" >&6; }
22260             as_fn_error $? "User supplied tool OTOOL=$tool_specified does not exist or is not executable" "$LINENO" 5
22261           fi
22262           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22263 $as_echo "$tool_specified" >&6; }
22264         fi
22265       fi
22266     fi
22267 
22268   fi
22269 
22270 
22271   if test "x$OTOOL" = "x"; then
22272     OTOOL="true"
22273   fi
22274 
22275 
22276   # Publish this variable in the help.
22277 
22278 
22279   if [ -z "${READELF+x}" ]; then
22280     # The variable is not set by user, try to locate tool using the code snippet
22281     for ac_prog in greadelf readelf
22282 do
22283   # Extract the first word of "$ac_prog", so it can be a program name with args.
22284 set dummy $ac_prog; ac_word=$2
22285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22286 $as_echo_n "checking for $ac_word... " >&6; }
22287 if ${ac_cv_path_READELF+:} false; then :
22288   $as_echo_n "(cached) " >&6
22289 else
22290   case $READELF in
22291   [\\/]* | ?:[\\/]*)
22292   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
22293   ;;
22294   *)
22295   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22296 for as_dir in $PATH
22297 do
22298   IFS=$as_save_IFS
22299   test -z "$as_dir" && as_dir=.
22300     for ac_exec_ext in '' $ac_executable_extensions; do
22301   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22302     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
22303     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22304     break 2
22305   fi
22306 done
22307   done
22308 IFS=$as_save_IFS
22309 
22310   ;;
22311 esac
22312 fi
22313 READELF=$ac_cv_path_READELF
22314 if test -n "$READELF"; then
22315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
22316 $as_echo "$READELF" >&6; }
22317 else
22318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22319 $as_echo "no" >&6; }
22320 fi
22321 
22322 
22323   test -n "$READELF" && break
22324 done
22325 
22326   else
22327     # The variable is set, but is it from the command line or the environment?
22328 
22329     # Try to remove the string !READELF! from our list.
22330     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/}
22331     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22332       # If it failed, the variable was not from the command line. Ignore it,
22333       # but warn the user (except for BASH, which is always set by the calling BASH).
22334       if test "xREADELF" != xBASH; then
22335         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5
22336 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;}
22337       fi
22338       # Try to locate tool using the code snippet
22339       for ac_prog in greadelf readelf
22340 do
22341   # Extract the first word of "$ac_prog", so it can be a program name with args.
22342 set dummy $ac_prog; ac_word=$2
22343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22344 $as_echo_n "checking for $ac_word... " >&6; }
22345 if ${ac_cv_path_READELF+:} false; then :
22346   $as_echo_n "(cached) " >&6
22347 else
22348   case $READELF in
22349   [\\/]* | ?:[\\/]*)
22350   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
22351   ;;
22352   *)
22353   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22354 for as_dir in $PATH
22355 do
22356   IFS=$as_save_IFS
22357   test -z "$as_dir" && as_dir=.
22358     for ac_exec_ext in '' $ac_executable_extensions; do
22359   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22360     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
22361     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22362     break 2
22363   fi
22364 done
22365   done
22366 IFS=$as_save_IFS
22367 
22368   ;;
22369 esac
22370 fi
22371 READELF=$ac_cv_path_READELF
22372 if test -n "$READELF"; then
22373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
22374 $as_echo "$READELF" >&6; }
22375 else
22376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22377 $as_echo "no" >&6; }
22378 fi
22379 
22380 
22381   test -n "$READELF" && break
22382 done
22383 
22384     else
22385       # If it succeeded, then it was overridden by the user. We will use it
22386       # for the tool.
22387 
22388       # First remove it from the list of overridden variables, so we can test
22389       # for unknown variables in the end.
22390       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22391 
22392       # Check if we try to supply an empty value
22393       if test "x$READELF" = x; then
22394         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool READELF= (no value)" >&5
22395 $as_echo "$as_me: Setting user supplied tool READELF= (no value)" >&6;}
22396         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5
22397 $as_echo_n "checking for READELF... " >&6; }
22398         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22399 $as_echo "disabled" >&6; }
22400       else
22401         # Check if the provided tool contains a complete path.
22402         tool_specified="$READELF"
22403         tool_basename="${tool_specified##*/}"
22404         if test "x$tool_basename" = "x$tool_specified"; then
22405           # A command without a complete path is provided, search $PATH.
22406           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5
22407 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;}
22408           # Extract the first word of "$tool_basename", so it can be a program name with args.
22409 set dummy $tool_basename; ac_word=$2
22410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22411 $as_echo_n "checking for $ac_word... " >&6; }
22412 if ${ac_cv_path_READELF+:} false; then :
22413   $as_echo_n "(cached) " >&6
22414 else
22415   case $READELF in
22416   [\\/]* | ?:[\\/]*)
22417   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
22418   ;;
22419   *)
22420   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22421 for as_dir in $PATH
22422 do
22423   IFS=$as_save_IFS
22424   test -z "$as_dir" && as_dir=.
22425     for ac_exec_ext in '' $ac_executable_extensions; do
22426   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22427     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
22428     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22429     break 2
22430   fi
22431 done
22432   done
22433 IFS=$as_save_IFS
22434 
22435   ;;
22436 esac
22437 fi
22438 READELF=$ac_cv_path_READELF
22439 if test -n "$READELF"; then
22440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
22441 $as_echo "$READELF" >&6; }
22442 else
22443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22444 $as_echo "no" >&6; }
22445 fi
22446 
22447 
22448           if test "x$READELF" = x; then
22449             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22450           fi
22451         else
22452           # Otherwise we believe it is a complete path. Use it as it is.
22453           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5
22454 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;}
22455           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5
22456 $as_echo_n "checking for READELF... " >&6; }
22457           if test ! -x "$tool_specified"; then
22458             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22459 $as_echo "not found" >&6; }
22460             as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5
22461           fi
22462           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22463 $as_echo "$tool_specified" >&6; }
22464         fi
22465       fi
22466     fi
22467 
22468   fi
22469 
22470 
22471 
22472 
22473   # Publish this variable in the help.
22474 
22475 
22476   if [ -z "${HG+x}" ]; then
22477     # The variable is not set by user, try to locate tool using the code snippet
22478     for ac_prog in hg
22479 do
22480   # Extract the first word of "$ac_prog", so it can be a program name with args.
22481 set dummy $ac_prog; ac_word=$2
22482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22483 $as_echo_n "checking for $ac_word... " >&6; }
22484 if ${ac_cv_path_HG+:} false; then :
22485   $as_echo_n "(cached) " >&6
22486 else
22487   case $HG in
22488   [\\/]* | ?:[\\/]*)
22489   ac_cv_path_HG="$HG" # Let the user override the test with a path.
22490   ;;
22491   *)
22492   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22493 for as_dir in $PATH
22494 do
22495   IFS=$as_save_IFS
22496   test -z "$as_dir" && as_dir=.
22497     for ac_exec_ext in '' $ac_executable_extensions; do
22498   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22499     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
22500     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22501     break 2
22502   fi
22503 done
22504   done
22505 IFS=$as_save_IFS
22506 
22507   ;;
22508 esac
22509 fi
22510 HG=$ac_cv_path_HG
22511 if test -n "$HG"; then
22512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
22513 $as_echo "$HG" >&6; }
22514 else
22515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22516 $as_echo "no" >&6; }
22517 fi
22518 
22519 
22520   test -n "$HG" && break
22521 done
22522 
22523   else
22524     # The variable is set, but is it from the command line or the environment?
22525 
22526     # Try to remove the string !HG! from our list.
22527     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/}
22528     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22529       # If it failed, the variable was not from the command line. Ignore it,
22530       # but warn the user (except for BASH, which is always set by the calling BASH).
22531       if test "xHG" != xBASH; then
22532         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5
22533 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;}
22534       fi
22535       # Try to locate tool using the code snippet
22536       for ac_prog in hg
22537 do
22538   # Extract the first word of "$ac_prog", so it can be a program name with args.
22539 set dummy $ac_prog; ac_word=$2
22540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22541 $as_echo_n "checking for $ac_word... " >&6; }
22542 if ${ac_cv_path_HG+:} false; then :
22543   $as_echo_n "(cached) " >&6
22544 else
22545   case $HG in
22546   [\\/]* | ?:[\\/]*)
22547   ac_cv_path_HG="$HG" # Let the user override the test with a path.
22548   ;;
22549   *)
22550   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22551 for as_dir in $PATH
22552 do
22553   IFS=$as_save_IFS
22554   test -z "$as_dir" && as_dir=.
22555     for ac_exec_ext in '' $ac_executable_extensions; do
22556   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22557     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
22558     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22559     break 2
22560   fi
22561 done
22562   done
22563 IFS=$as_save_IFS
22564 
22565   ;;
22566 esac
22567 fi
22568 HG=$ac_cv_path_HG
22569 if test -n "$HG"; then
22570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
22571 $as_echo "$HG" >&6; }
22572 else
22573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22574 $as_echo "no" >&6; }
22575 fi
22576 
22577 
22578   test -n "$HG" && break
22579 done
22580 
22581     else
22582       # If it succeeded, then it was overridden by the user. We will use it
22583       # for the tool.
22584 
22585       # First remove it from the list of overridden variables, so we can test
22586       # for unknown variables in the end.
22587       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22588 
22589       # Check if we try to supply an empty value
22590       if test "x$HG" = x; then
22591         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool HG= (no value)" >&5
22592 $as_echo "$as_me: Setting user supplied tool HG= (no value)" >&6;}
22593         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5
22594 $as_echo_n "checking for HG... " >&6; }
22595         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22596 $as_echo "disabled" >&6; }
22597       else
22598         # Check if the provided tool contains a complete path.
22599         tool_specified="$HG"
22600         tool_basename="${tool_specified##*/}"
22601         if test "x$tool_basename" = "x$tool_specified"; then
22602           # A command without a complete path is provided, search $PATH.
22603           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5
22604 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;}
22605           # Extract the first word of "$tool_basename", so it can be a program name with args.
22606 set dummy $tool_basename; ac_word=$2
22607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22608 $as_echo_n "checking for $ac_word... " >&6; }
22609 if ${ac_cv_path_HG+:} false; then :
22610   $as_echo_n "(cached) " >&6
22611 else
22612   case $HG in
22613   [\\/]* | ?:[\\/]*)
22614   ac_cv_path_HG="$HG" # Let the user override the test with a path.
22615   ;;
22616   *)
22617   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22618 for as_dir in $PATH
22619 do
22620   IFS=$as_save_IFS
22621   test -z "$as_dir" && as_dir=.
22622     for ac_exec_ext in '' $ac_executable_extensions; do
22623   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22624     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
22625     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22626     break 2
22627   fi
22628 done
22629   done
22630 IFS=$as_save_IFS
22631 
22632   ;;
22633 esac
22634 fi
22635 HG=$ac_cv_path_HG
22636 if test -n "$HG"; then
22637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
22638 $as_echo "$HG" >&6; }
22639 else
22640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22641 $as_echo "no" >&6; }
22642 fi
22643 
22644 
22645           if test "x$HG" = x; then
22646             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22647           fi
22648         else
22649           # Otherwise we believe it is a complete path. Use it as it is.
22650           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5
22651 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;}
22652           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5
22653 $as_echo_n "checking for HG... " >&6; }
22654           if test ! -x "$tool_specified"; then
22655             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22656 $as_echo "not found" >&6; }
22657             as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5
22658           fi
22659           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22660 $as_echo "$tool_specified" >&6; }
22661         fi
22662       fi
22663     fi
22664 
22665   fi
22666 
22667 
22668 
22669 
22670   # Publish this variable in the help.
22671 
22672 
22673   if [ -z "${STAT+x}" ]; then
22674     # The variable is not set by user, try to locate tool using the code snippet
22675     for ac_prog in stat
22676 do
22677   # Extract the first word of "$ac_prog", so it can be a program name with args.
22678 set dummy $ac_prog; ac_word=$2
22679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22680 $as_echo_n "checking for $ac_word... " >&6; }
22681 if ${ac_cv_path_STAT+:} false; then :
22682   $as_echo_n "(cached) " >&6
22683 else
22684   case $STAT in
22685   [\\/]* | ?:[\\/]*)
22686   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
22687   ;;
22688   *)
22689   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22690 for as_dir in $PATH
22691 do
22692   IFS=$as_save_IFS
22693   test -z "$as_dir" && as_dir=.
22694     for ac_exec_ext in '' $ac_executable_extensions; do
22695   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22696     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
22697     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22698     break 2
22699   fi
22700 done
22701   done
22702 IFS=$as_save_IFS
22703 
22704   ;;
22705 esac
22706 fi
22707 STAT=$ac_cv_path_STAT
22708 if test -n "$STAT"; then
22709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
22710 $as_echo "$STAT" >&6; }
22711 else
22712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22713 $as_echo "no" >&6; }
22714 fi
22715 
22716 
22717   test -n "$STAT" && break
22718 done
22719 
22720   else
22721     # The variable is set, but is it from the command line or the environment?
22722 
22723     # Try to remove the string !STAT! from our list.
22724     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/}
22725     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22726       # If it failed, the variable was not from the command line. Ignore it,
22727       # but warn the user (except for BASH, which is always set by the calling BASH).
22728       if test "xSTAT" != xBASH; then
22729         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5
22730 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;}
22731       fi
22732       # Try to locate tool using the code snippet
22733       for ac_prog in stat
22734 do
22735   # Extract the first word of "$ac_prog", so it can be a program name with args.
22736 set dummy $ac_prog; ac_word=$2
22737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22738 $as_echo_n "checking for $ac_word... " >&6; }
22739 if ${ac_cv_path_STAT+:} false; then :
22740   $as_echo_n "(cached) " >&6
22741 else
22742   case $STAT in
22743   [\\/]* | ?:[\\/]*)
22744   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
22745   ;;
22746   *)
22747   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22748 for as_dir in $PATH
22749 do
22750   IFS=$as_save_IFS
22751   test -z "$as_dir" && as_dir=.
22752     for ac_exec_ext in '' $ac_executable_extensions; do
22753   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22754     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
22755     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22756     break 2
22757   fi
22758 done
22759   done
22760 IFS=$as_save_IFS
22761 
22762   ;;
22763 esac
22764 fi
22765 STAT=$ac_cv_path_STAT
22766 if test -n "$STAT"; then
22767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
22768 $as_echo "$STAT" >&6; }
22769 else
22770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22771 $as_echo "no" >&6; }
22772 fi
22773 
22774 
22775   test -n "$STAT" && break
22776 done
22777 
22778     else
22779       # If it succeeded, then it was overridden by the user. We will use it
22780       # for the tool.
22781 
22782       # First remove it from the list of overridden variables, so we can test
22783       # for unknown variables in the end.
22784       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22785 
22786       # Check if we try to supply an empty value
22787       if test "x$STAT" = x; then
22788         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool STAT= (no value)" >&5
22789 $as_echo "$as_me: Setting user supplied tool STAT= (no value)" >&6;}
22790         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5
22791 $as_echo_n "checking for STAT... " >&6; }
22792         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22793 $as_echo "disabled" >&6; }
22794       else
22795         # Check if the provided tool contains a complete path.
22796         tool_specified="$STAT"
22797         tool_basename="${tool_specified##*/}"
22798         if test "x$tool_basename" = "x$tool_specified"; then
22799           # A command without a complete path is provided, search $PATH.
22800           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5
22801 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;}
22802           # Extract the first word of "$tool_basename", so it can be a program name with args.
22803 set dummy $tool_basename; ac_word=$2
22804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22805 $as_echo_n "checking for $ac_word... " >&6; }
22806 if ${ac_cv_path_STAT+:} false; then :
22807   $as_echo_n "(cached) " >&6
22808 else
22809   case $STAT in
22810   [\\/]* | ?:[\\/]*)
22811   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
22812   ;;
22813   *)
22814   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22815 for as_dir in $PATH
22816 do
22817   IFS=$as_save_IFS
22818   test -z "$as_dir" && as_dir=.
22819     for ac_exec_ext in '' $ac_executable_extensions; do
22820   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22821     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
22822     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22823     break 2
22824   fi
22825 done
22826   done
22827 IFS=$as_save_IFS
22828 
22829   ;;
22830 esac
22831 fi
22832 STAT=$ac_cv_path_STAT
22833 if test -n "$STAT"; then
22834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
22835 $as_echo "$STAT" >&6; }
22836 else
22837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22838 $as_echo "no" >&6; }
22839 fi
22840 
22841 
22842           if test "x$STAT" = x; then
22843             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22844           fi
22845         else
22846           # Otherwise we believe it is a complete path. Use it as it is.
22847           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5
22848 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;}
22849           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5
22850 $as_echo_n "checking for STAT... " >&6; }
22851           if test ! -x "$tool_specified"; then
22852             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22853 $as_echo "not found" >&6; }
22854             as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5
22855           fi
22856           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22857 $as_echo "$tool_specified" >&6; }
22858         fi
22859       fi
22860     fi
22861 
22862   fi
22863 
22864 
22865 
22866 
22867   # Publish this variable in the help.
22868 
22869 
22870   if [ -z "${TIME+x}" ]; then
22871     # The variable is not set by user, try to locate tool using the code snippet
22872     for ac_prog in time
22873 do
22874   # Extract the first word of "$ac_prog", so it can be a program name with args.
22875 set dummy $ac_prog; ac_word=$2
22876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22877 $as_echo_n "checking for $ac_word... " >&6; }
22878 if ${ac_cv_path_TIME+:} false; then :
22879   $as_echo_n "(cached) " >&6
22880 else
22881   case $TIME in
22882   [\\/]* | ?:[\\/]*)
22883   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
22884   ;;
22885   *)
22886   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22887 for as_dir in $PATH
22888 do
22889   IFS=$as_save_IFS
22890   test -z "$as_dir" && as_dir=.
22891     for ac_exec_ext in '' $ac_executable_extensions; do
22892   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22893     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
22894     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22895     break 2
22896   fi
22897 done
22898   done
22899 IFS=$as_save_IFS
22900 
22901   ;;
22902 esac
22903 fi
22904 TIME=$ac_cv_path_TIME
22905 if test -n "$TIME"; then
22906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
22907 $as_echo "$TIME" >&6; }
22908 else
22909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22910 $as_echo "no" >&6; }
22911 fi
22912 
22913 
22914   test -n "$TIME" && break
22915 done
22916 
22917   else
22918     # The variable is set, but is it from the command line or the environment?
22919 
22920     # Try to remove the string !TIME! from our list.
22921     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/}
22922     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22923       # If it failed, the variable was not from the command line. Ignore it,
22924       # but warn the user (except for BASH, which is always set by the calling BASH).
22925       if test "xTIME" != xBASH; then
22926         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5
22927 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;}
22928       fi
22929       # Try to locate tool using the code snippet
22930       for ac_prog in time
22931 do
22932   # Extract the first word of "$ac_prog", so it can be a program name with args.
22933 set dummy $ac_prog; ac_word=$2
22934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22935 $as_echo_n "checking for $ac_word... " >&6; }
22936 if ${ac_cv_path_TIME+:} false; then :
22937   $as_echo_n "(cached) " >&6
22938 else
22939   case $TIME in
22940   [\\/]* | ?:[\\/]*)
22941   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
22942   ;;
22943   *)
22944   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22945 for as_dir in $PATH
22946 do
22947   IFS=$as_save_IFS
22948   test -z "$as_dir" && as_dir=.
22949     for ac_exec_ext in '' $ac_executable_extensions; do
22950   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22951     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
22952     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22953     break 2
22954   fi
22955 done
22956   done
22957 IFS=$as_save_IFS
22958 
22959   ;;
22960 esac
22961 fi
22962 TIME=$ac_cv_path_TIME
22963 if test -n "$TIME"; then
22964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
22965 $as_echo "$TIME" >&6; }
22966 else
22967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22968 $as_echo "no" >&6; }
22969 fi
22970 
22971 
22972   test -n "$TIME" && break
22973 done
22974 
22975     else
22976       # If it succeeded, then it was overridden by the user. We will use it
22977       # for the tool.
22978 
22979       # First remove it from the list of overridden variables, so we can test
22980       # for unknown variables in the end.
22981       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22982 
22983       # Check if we try to supply an empty value
22984       if test "x$TIME" = x; then
22985         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TIME= (no value)" >&5
22986 $as_echo "$as_me: Setting user supplied tool TIME= (no value)" >&6;}
22987         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5
22988 $as_echo_n "checking for TIME... " >&6; }
22989         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22990 $as_echo "disabled" >&6; }
22991       else
22992         # Check if the provided tool contains a complete path.
22993         tool_specified="$TIME"
22994         tool_basename="${tool_specified##*/}"
22995         if test "x$tool_basename" = "x$tool_specified"; then
22996           # A command without a complete path is provided, search $PATH.
22997           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5
22998 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;}
22999           # Extract the first word of "$tool_basename", so it can be a program name with args.
23000 set dummy $tool_basename; ac_word=$2
23001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23002 $as_echo_n "checking for $ac_word... " >&6; }
23003 if ${ac_cv_path_TIME+:} false; then :
23004   $as_echo_n "(cached) " >&6
23005 else
23006   case $TIME in
23007   [\\/]* | ?:[\\/]*)
23008   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
23009   ;;
23010   *)
23011   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23012 for as_dir in $PATH
23013 do
23014   IFS=$as_save_IFS
23015   test -z "$as_dir" && as_dir=.
23016     for ac_exec_ext in '' $ac_executable_extensions; do
23017   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23018     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
23019     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23020     break 2
23021   fi
23022 done
23023   done
23024 IFS=$as_save_IFS
23025 
23026   ;;
23027 esac
23028 fi
23029 TIME=$ac_cv_path_TIME
23030 if test -n "$TIME"; then
23031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
23032 $as_echo "$TIME" >&6; }
23033 else
23034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23035 $as_echo "no" >&6; }
23036 fi
23037 
23038 
23039           if test "x$TIME" = x; then
23040             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
23041           fi
23042         else
23043           # Otherwise we believe it is a complete path. Use it as it is.
23044           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5
23045 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;}
23046           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5
23047 $as_echo_n "checking for TIME... " >&6; }
23048           if test ! -x "$tool_specified"; then
23049             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23050 $as_echo "not found" >&6; }
23051             as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5
23052           fi
23053           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
23054 $as_echo "$tool_specified" >&6; }
23055         fi
23056       fi
23057     fi
23058 
23059   fi
23060 
23061 
23062   # Dtrace is usually found in /usr/sbin on Solaris, but that directory may not
23063   # be in the user path.
23064 
23065 
23066   # Publish this variable in the help.
23067 
23068 
23069   if [ -z "${DTRACE+x}" ]; then
23070     # The variable is not set by user, try to locate tool using the code snippet
23071     for ac_prog in dtrace
23072 do
23073   # Extract the first word of "$ac_prog", so it can be a program name with args.
23074 set dummy $ac_prog; ac_word=$2
23075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23076 $as_echo_n "checking for $ac_word... " >&6; }
23077 if ${ac_cv_path_DTRACE+:} false; then :
23078   $as_echo_n "(cached) " >&6
23079 else
23080   case $DTRACE in
23081   [\\/]* | ?:[\\/]*)
23082   ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
23083   ;;
23084   *)
23085   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23086 as_dummy="$PATH:/usr/sbin"
23087 for as_dir in $as_dummy
23088 do
23089   IFS=$as_save_IFS
23090   test -z "$as_dir" && as_dir=.
23091     for ac_exec_ext in '' $ac_executable_extensions; do
23092   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23093     ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
23094     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23095     break 2
23096   fi
23097 done
23098   done
23099 IFS=$as_save_IFS
23100 
23101   ;;
23102 esac
23103 fi
23104 DTRACE=$ac_cv_path_DTRACE
23105 if test -n "$DTRACE"; then
23106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
23107 $as_echo "$DTRACE" >&6; }
23108 else
23109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23110 $as_echo "no" >&6; }
23111 fi
23112 
23113 
23114   test -n "$DTRACE" && break
23115 done
23116 
23117   else
23118     # The variable is set, but is it from the command line or the environment?
23119 
23120     # Try to remove the string !DTRACE! from our list.
23121     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DTRACE!/}
23122     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
23123       # If it failed, the variable was not from the command line. Ignore it,
23124       # but warn the user (except for BASH, which is always set by the calling BASH).
23125       if test "xDTRACE" != xBASH; then
23126         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DTRACE from the environment. Use command line variables instead." >&5
23127 $as_echo "$as_me: WARNING: Ignoring value of DTRACE from the environment. Use command line variables instead." >&2;}
23128       fi
23129       # Try to locate tool using the code snippet
23130       for ac_prog in dtrace
23131 do
23132   # Extract the first word of "$ac_prog", so it can be a program name with args.
23133 set dummy $ac_prog; ac_word=$2
23134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23135 $as_echo_n "checking for $ac_word... " >&6; }
23136 if ${ac_cv_path_DTRACE+:} false; then :
23137   $as_echo_n "(cached) " >&6
23138 else
23139   case $DTRACE in
23140   [\\/]* | ?:[\\/]*)
23141   ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
23142   ;;
23143   *)
23144   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23145 as_dummy="$PATH:/usr/sbin"
23146 for as_dir in $as_dummy
23147 do
23148   IFS=$as_save_IFS
23149   test -z "$as_dir" && as_dir=.
23150     for ac_exec_ext in '' $ac_executable_extensions; do
23151   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23152     ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
23153     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23154     break 2
23155   fi
23156 done
23157   done
23158 IFS=$as_save_IFS
23159 
23160   ;;
23161 esac
23162 fi
23163 DTRACE=$ac_cv_path_DTRACE
23164 if test -n "$DTRACE"; then
23165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
23166 $as_echo "$DTRACE" >&6; }
23167 else
23168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23169 $as_echo "no" >&6; }
23170 fi
23171 
23172 
23173   test -n "$DTRACE" && break
23174 done
23175 
23176     else
23177       # If it succeeded, then it was overridden by the user. We will use it
23178       # for the tool.
23179 
23180       # First remove it from the list of overridden variables, so we can test
23181       # for unknown variables in the end.
23182       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
23183 
23184       # Check if we try to supply an empty value
23185       if test "x$DTRACE" = x; then
23186         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DTRACE= (no value)" >&5
23187 $as_echo "$as_me: Setting user supplied tool DTRACE= (no value)" >&6;}
23188         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DTRACE" >&5
23189 $as_echo_n "checking for DTRACE... " >&6; }
23190         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
23191 $as_echo "disabled" >&6; }
23192       else
23193         # Check if the provided tool contains a complete path.
23194         tool_specified="$DTRACE"
23195         tool_basename="${tool_specified##*/}"
23196         if test "x$tool_basename" = "x$tool_specified"; then
23197           # A command without a complete path is provided, search $PATH.
23198           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DTRACE=$tool_basename" >&5
23199 $as_echo "$as_me: Will search for user supplied tool DTRACE=$tool_basename" >&6;}
23200           # Extract the first word of "$tool_basename", so it can be a program name with args.
23201 set dummy $tool_basename; ac_word=$2
23202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23203 $as_echo_n "checking for $ac_word... " >&6; }
23204 if ${ac_cv_path_DTRACE+:} false; then :
23205   $as_echo_n "(cached) " >&6
23206 else
23207   case $DTRACE in
23208   [\\/]* | ?:[\\/]*)
23209   ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
23210   ;;
23211   *)
23212   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23213 for as_dir in $PATH
23214 do
23215   IFS=$as_save_IFS
23216   test -z "$as_dir" && as_dir=.
23217     for ac_exec_ext in '' $ac_executable_extensions; do
23218   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23219     ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
23220     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23221     break 2
23222   fi
23223 done
23224   done
23225 IFS=$as_save_IFS
23226 
23227   ;;
23228 esac
23229 fi
23230 DTRACE=$ac_cv_path_DTRACE
23231 if test -n "$DTRACE"; then
23232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
23233 $as_echo "$DTRACE" >&6; }
23234 else
23235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23236 $as_echo "no" >&6; }
23237 fi
23238 
23239 
23240           if test "x$DTRACE" = x; then
23241             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
23242           fi
23243         else
23244           # Otherwise we believe it is a complete path. Use it as it is.
23245           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DTRACE=$tool_specified" >&5
23246 $as_echo "$as_me: Will use user supplied tool DTRACE=$tool_specified" >&6;}
23247           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DTRACE" >&5
23248 $as_echo_n "checking for DTRACE... " >&6; }
23249           if test ! -x "$tool_specified"; then
23250             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23251 $as_echo "not found" >&6; }
23252             as_fn_error $? "User supplied tool DTRACE=$tool_specified does not exist or is not executable" "$LINENO" 5
23253           fi
23254           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
23255 $as_echo "$tool_specified" >&6; }
23256         fi
23257       fi
23258     fi
23259 
23260   fi
23261 
23262 
23263 
23264 
23265   # Publish this variable in the help.
23266 
23267 
23268   if [ -z "${PATCH+x}" ]; then
23269     # The variable is not set by user, try to locate tool using the code snippet
23270     for ac_prog in gpatch patch
23271 do
23272   # Extract the first word of "$ac_prog", so it can be a program name with args.
23273 set dummy $ac_prog; ac_word=$2
23274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23275 $as_echo_n "checking for $ac_word... " >&6; }
23276 if ${ac_cv_path_PATCH+:} false; then :
23277   $as_echo_n "(cached) " >&6
23278 else
23279   case $PATCH in
23280   [\\/]* | ?:[\\/]*)
23281   ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
23282   ;;
23283   *)
23284   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23285 for as_dir in $PATH
23286 do
23287   IFS=$as_save_IFS
23288   test -z "$as_dir" && as_dir=.
23289     for ac_exec_ext in '' $ac_executable_extensions; do
23290   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23291     ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
23292     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23293     break 2
23294   fi
23295 done
23296   done
23297 IFS=$as_save_IFS
23298 
23299   ;;
23300 esac
23301 fi
23302 PATCH=$ac_cv_path_PATCH
23303 if test -n "$PATCH"; then
23304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
23305 $as_echo "$PATCH" >&6; }
23306 else
23307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23308 $as_echo "no" >&6; }
23309 fi
23310 
23311 
23312   test -n "$PATCH" && break
23313 done
23314 
23315   else
23316     # The variable is set, but is it from the command line or the environment?
23317 
23318     # Try to remove the string !PATCH! from our list.
23319     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PATCH!/}
23320     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
23321       # If it failed, the variable was not from the command line. Ignore it,
23322       # but warn the user (except for BASH, which is always set by the calling BASH).
23323       if test "xPATCH" != xBASH; then
23324         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PATCH from the environment. Use command line variables instead." >&5
23325 $as_echo "$as_me: WARNING: Ignoring value of PATCH from the environment. Use command line variables instead." >&2;}
23326       fi
23327       # Try to locate tool using the code snippet
23328       for ac_prog in gpatch patch
23329 do
23330   # Extract the first word of "$ac_prog", so it can be a program name with args.
23331 set dummy $ac_prog; ac_word=$2
23332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23333 $as_echo_n "checking for $ac_word... " >&6; }
23334 if ${ac_cv_path_PATCH+:} false; then :
23335   $as_echo_n "(cached) " >&6
23336 else
23337   case $PATCH in
23338   [\\/]* | ?:[\\/]*)
23339   ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
23340   ;;
23341   *)
23342   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23343 for as_dir in $PATH
23344 do
23345   IFS=$as_save_IFS
23346   test -z "$as_dir" && as_dir=.
23347     for ac_exec_ext in '' $ac_executable_extensions; do
23348   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23349     ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
23350     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23351     break 2
23352   fi
23353 done
23354   done
23355 IFS=$as_save_IFS
23356 
23357   ;;
23358 esac
23359 fi
23360 PATCH=$ac_cv_path_PATCH
23361 if test -n "$PATCH"; then
23362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
23363 $as_echo "$PATCH" >&6; }
23364 else
23365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23366 $as_echo "no" >&6; }
23367 fi
23368 
23369 
23370   test -n "$PATCH" && break
23371 done
23372 
23373     else
23374       # If it succeeded, then it was overridden by the user. We will use it
23375       # for the tool.
23376 
23377       # First remove it from the list of overridden variables, so we can test
23378       # for unknown variables in the end.
23379       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
23380 
23381       # Check if we try to supply an empty value
23382       if test "x$PATCH" = x; then
23383         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PATCH= (no value)" >&5
23384 $as_echo "$as_me: Setting user supplied tool PATCH= (no value)" >&6;}
23385         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATCH" >&5
23386 $as_echo_n "checking for PATCH... " >&6; }
23387         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
23388 $as_echo "disabled" >&6; }
23389       else
23390         # Check if the provided tool contains a complete path.
23391         tool_specified="$PATCH"
23392         tool_basename="${tool_specified##*/}"
23393         if test "x$tool_basename" = "x$tool_specified"; then
23394           # A command without a complete path is provided, search $PATH.
23395           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PATCH=$tool_basename" >&5
23396 $as_echo "$as_me: Will search for user supplied tool PATCH=$tool_basename" >&6;}
23397           # Extract the first word of "$tool_basename", so it can be a program name with args.
23398 set dummy $tool_basename; ac_word=$2
23399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23400 $as_echo_n "checking for $ac_word... " >&6; }
23401 if ${ac_cv_path_PATCH+:} false; then :
23402   $as_echo_n "(cached) " >&6
23403 else
23404   case $PATCH in
23405   [\\/]* | ?:[\\/]*)
23406   ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
23407   ;;
23408   *)
23409   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23410 for as_dir in $PATH
23411 do
23412   IFS=$as_save_IFS
23413   test -z "$as_dir" && as_dir=.
23414     for ac_exec_ext in '' $ac_executable_extensions; do
23415   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23416     ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
23417     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23418     break 2
23419   fi
23420 done
23421   done
23422 IFS=$as_save_IFS
23423 
23424   ;;
23425 esac
23426 fi
23427 PATCH=$ac_cv_path_PATCH
23428 if test -n "$PATCH"; then
23429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
23430 $as_echo "$PATCH" >&6; }
23431 else
23432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23433 $as_echo "no" >&6; }
23434 fi
23435 
23436 
23437           if test "x$PATCH" = x; then
23438             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
23439           fi
23440         else
23441           # Otherwise we believe it is a complete path. Use it as it is.
23442           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PATCH=$tool_specified" >&5
23443 $as_echo "$as_me: Will use user supplied tool PATCH=$tool_specified" >&6;}
23444           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATCH" >&5
23445 $as_echo_n "checking for PATCH... " >&6; }
23446           if test ! -x "$tool_specified"; then
23447             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23448 $as_echo "not found" >&6; }
23449             as_fn_error $? "User supplied tool PATCH=$tool_specified does not exist or is not executable" "$LINENO" 5
23450           fi
23451           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
23452 $as_echo "$tool_specified" >&6; }
23453         fi
23454       fi
23455     fi
23456 
23457   fi
23458 
23459 
23460   # Check if it's GNU time
23461   IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'`
23462   if test "x$IS_GNU_TIME" != x; then
23463     IS_GNU_TIME=yes
23464   else
23465     IS_GNU_TIME=no
23466   fi
23467 
23468 
23469   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
23470 
23471 
23472 
23473   # Publish this variable in the help.
23474 
23475 
23476   if [ -z "${DSYMUTIL+x}" ]; then
23477     # The variable is not set by user, try to locate tool using the code snippet
23478     for ac_prog in dsymutil
23479 do
23480   # Extract the first word of "$ac_prog", so it can be a program name with args.
23481 set dummy $ac_prog; ac_word=$2
23482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23483 $as_echo_n "checking for $ac_word... " >&6; }
23484 if ${ac_cv_path_DSYMUTIL+:} false; then :
23485   $as_echo_n "(cached) " >&6
23486 else
23487   case $DSYMUTIL in
23488   [\\/]* | ?:[\\/]*)
23489   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
23490   ;;
23491   *)
23492   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23493 for as_dir in $PATH
23494 do
23495   IFS=$as_save_IFS
23496   test -z "$as_dir" && as_dir=.
23497     for ac_exec_ext in '' $ac_executable_extensions; do
23498   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23499     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
23500     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23501     break 2
23502   fi
23503 done
23504   done
23505 IFS=$as_save_IFS
23506 
23507   ;;
23508 esac
23509 fi
23510 DSYMUTIL=$ac_cv_path_DSYMUTIL
23511 if test -n "$DSYMUTIL"; then
23512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
23513 $as_echo "$DSYMUTIL" >&6; }
23514 else
23515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23516 $as_echo "no" >&6; }
23517 fi
23518 
23519 
23520   test -n "$DSYMUTIL" && break
23521 done
23522 
23523   else
23524     # The variable is set, but is it from the command line or the environment?
23525 
23526     # Try to remove the string !DSYMUTIL! from our list.
23527     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/}
23528     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
23529       # If it failed, the variable was not from the command line. Ignore it,
23530       # but warn the user (except for BASH, which is always set by the calling BASH).
23531       if test "xDSYMUTIL" != xBASH; then
23532         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5
23533 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;}
23534       fi
23535       # Try to locate tool using the code snippet
23536       for ac_prog in dsymutil
23537 do
23538   # Extract the first word of "$ac_prog", so it can be a program name with args.
23539 set dummy $ac_prog; ac_word=$2
23540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23541 $as_echo_n "checking for $ac_word... " >&6; }
23542 if ${ac_cv_path_DSYMUTIL+:} false; then :
23543   $as_echo_n "(cached) " >&6
23544 else
23545   case $DSYMUTIL in
23546   [\\/]* | ?:[\\/]*)
23547   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
23548   ;;
23549   *)
23550   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23551 for as_dir in $PATH
23552 do
23553   IFS=$as_save_IFS
23554   test -z "$as_dir" && as_dir=.
23555     for ac_exec_ext in '' $ac_executable_extensions; do
23556   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23557     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
23558     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23559     break 2
23560   fi
23561 done
23562   done
23563 IFS=$as_save_IFS
23564 
23565   ;;
23566 esac
23567 fi
23568 DSYMUTIL=$ac_cv_path_DSYMUTIL
23569 if test -n "$DSYMUTIL"; then
23570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
23571 $as_echo "$DSYMUTIL" >&6; }
23572 else
23573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23574 $as_echo "no" >&6; }
23575 fi
23576 
23577 
23578   test -n "$DSYMUTIL" && break
23579 done
23580 
23581     else
23582       # If it succeeded, then it was overridden by the user. We will use it
23583       # for the tool.
23584 
23585       # First remove it from the list of overridden variables, so we can test
23586       # for unknown variables in the end.
23587       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
23588 
23589       # Check if we try to supply an empty value
23590       if test "x$DSYMUTIL" = x; then
23591         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DSYMUTIL= (no value)" >&5
23592 $as_echo "$as_me: Setting user supplied tool DSYMUTIL= (no value)" >&6;}
23593         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5
23594 $as_echo_n "checking for DSYMUTIL... " >&6; }
23595         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
23596 $as_echo "disabled" >&6; }
23597       else
23598         # Check if the provided tool contains a complete path.
23599         tool_specified="$DSYMUTIL"
23600         tool_basename="${tool_specified##*/}"
23601         if test "x$tool_basename" = "x$tool_specified"; then
23602           # A command without a complete path is provided, search $PATH.
23603           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5
23604 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;}
23605           # Extract the first word of "$tool_basename", so it can be a program name with args.
23606 set dummy $tool_basename; ac_word=$2
23607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23608 $as_echo_n "checking for $ac_word... " >&6; }
23609 if ${ac_cv_path_DSYMUTIL+:} false; then :
23610   $as_echo_n "(cached) " >&6
23611 else
23612   case $DSYMUTIL in
23613   [\\/]* | ?:[\\/]*)
23614   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
23615   ;;
23616   *)
23617   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23618 for as_dir in $PATH
23619 do
23620   IFS=$as_save_IFS
23621   test -z "$as_dir" && as_dir=.
23622     for ac_exec_ext in '' $ac_executable_extensions; do
23623   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23624     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
23625     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23626     break 2
23627   fi
23628 done
23629   done
23630 IFS=$as_save_IFS
23631 
23632   ;;
23633 esac
23634 fi
23635 DSYMUTIL=$ac_cv_path_DSYMUTIL
23636 if test -n "$DSYMUTIL"; then
23637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
23638 $as_echo "$DSYMUTIL" >&6; }
23639 else
23640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23641 $as_echo "no" >&6; }
23642 fi
23643 
23644 
23645           if test "x$DSYMUTIL" = x; then
23646             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
23647           fi
23648         else
23649           # Otherwise we believe it is a complete path. Use it as it is.
23650           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5
23651 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;}
23652           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5
23653 $as_echo_n "checking for DSYMUTIL... " >&6; }
23654           if test ! -x "$tool_specified"; then
23655             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23656 $as_echo "not found" >&6; }
23657             as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5
23658           fi
23659           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
23660 $as_echo "$tool_specified" >&6; }
23661         fi
23662       fi
23663     fi
23664 
23665   fi
23666 
23667 
23668 
23669   if test "x$DSYMUTIL" = x; then
23670     as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5
23671   fi
23672 
23673 
23674 
23675 
23676 
23677   # Publish this variable in the help.
23678 
23679 
23680   if [ -z "${XATTR+x}" ]; then
23681     # The variable is not set by user, try to locate tool using the code snippet
23682     for ac_prog in xattr
23683 do
23684   # Extract the first word of "$ac_prog", so it can be a program name with args.
23685 set dummy $ac_prog; ac_word=$2
23686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23687 $as_echo_n "checking for $ac_word... " >&6; }
23688 if ${ac_cv_path_XATTR+:} false; then :
23689   $as_echo_n "(cached) " >&6
23690 else
23691   case $XATTR in
23692   [\\/]* | ?:[\\/]*)
23693   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
23694   ;;
23695   *)
23696   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23697 for as_dir in $PATH
23698 do
23699   IFS=$as_save_IFS
23700   test -z "$as_dir" && as_dir=.
23701     for ac_exec_ext in '' $ac_executable_extensions; do
23702   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23703     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
23704     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23705     break 2
23706   fi
23707 done
23708   done
23709 IFS=$as_save_IFS
23710 
23711   ;;
23712 esac
23713 fi
23714 XATTR=$ac_cv_path_XATTR
23715 if test -n "$XATTR"; then
23716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
23717 $as_echo "$XATTR" >&6; }
23718 else
23719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23720 $as_echo "no" >&6; }
23721 fi
23722 
23723 
23724   test -n "$XATTR" && break
23725 done
23726 
23727   else
23728     # The variable is set, but is it from the command line or the environment?
23729 
23730     # Try to remove the string !XATTR! from our list.
23731     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/}
23732     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
23733       # If it failed, the variable was not from the command line. Ignore it,
23734       # but warn the user (except for BASH, which is always set by the calling BASH).
23735       if test "xXATTR" != xBASH; then
23736         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5
23737 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;}
23738       fi
23739       # Try to locate tool using the code snippet
23740       for ac_prog in xattr
23741 do
23742   # Extract the first word of "$ac_prog", so it can be a program name with args.
23743 set dummy $ac_prog; ac_word=$2
23744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23745 $as_echo_n "checking for $ac_word... " >&6; }
23746 if ${ac_cv_path_XATTR+:} false; then :
23747   $as_echo_n "(cached) " >&6
23748 else
23749   case $XATTR in
23750   [\\/]* | ?:[\\/]*)
23751   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
23752   ;;
23753   *)
23754   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23755 for as_dir in $PATH
23756 do
23757   IFS=$as_save_IFS
23758   test -z "$as_dir" && as_dir=.
23759     for ac_exec_ext in '' $ac_executable_extensions; do
23760   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23761     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
23762     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23763     break 2
23764   fi
23765 done
23766   done
23767 IFS=$as_save_IFS
23768 
23769   ;;
23770 esac
23771 fi
23772 XATTR=$ac_cv_path_XATTR
23773 if test -n "$XATTR"; then
23774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
23775 $as_echo "$XATTR" >&6; }
23776 else
23777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23778 $as_echo "no" >&6; }
23779 fi
23780 
23781 
23782   test -n "$XATTR" && break
23783 done
23784 
23785     else
23786       # If it succeeded, then it was overridden by the user. We will use it
23787       # for the tool.
23788 
23789       # First remove it from the list of overridden variables, so we can test
23790       # for unknown variables in the end.
23791       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
23792 
23793       # Check if we try to supply an empty value
23794       if test "x$XATTR" = x; then
23795         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool XATTR= (no value)" >&5
23796 $as_echo "$as_me: Setting user supplied tool XATTR= (no value)" >&6;}
23797         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5
23798 $as_echo_n "checking for XATTR... " >&6; }
23799         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
23800 $as_echo "disabled" >&6; }
23801       else
23802         # Check if the provided tool contains a complete path.
23803         tool_specified="$XATTR"
23804         tool_basename="${tool_specified##*/}"
23805         if test "x$tool_basename" = "x$tool_specified"; then
23806           # A command without a complete path is provided, search $PATH.
23807           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5
23808 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;}
23809           # Extract the first word of "$tool_basename", so it can be a program name with args.
23810 set dummy $tool_basename; ac_word=$2
23811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23812 $as_echo_n "checking for $ac_word... " >&6; }
23813 if ${ac_cv_path_XATTR+:} false; then :
23814   $as_echo_n "(cached) " >&6
23815 else
23816   case $XATTR in
23817   [\\/]* | ?:[\\/]*)
23818   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
23819   ;;
23820   *)
23821   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23822 for as_dir in $PATH
23823 do
23824   IFS=$as_save_IFS
23825   test -z "$as_dir" && as_dir=.
23826     for ac_exec_ext in '' $ac_executable_extensions; do
23827   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23828     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
23829     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23830     break 2
23831   fi
23832 done
23833   done
23834 IFS=$as_save_IFS
23835 
23836   ;;
23837 esac
23838 fi
23839 XATTR=$ac_cv_path_XATTR
23840 if test -n "$XATTR"; then
23841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
23842 $as_echo "$XATTR" >&6; }
23843 else
23844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23845 $as_echo "no" >&6; }
23846 fi
23847 
23848 
23849           if test "x$XATTR" = x; then
23850             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
23851           fi
23852         else
23853           # Otherwise we believe it is a complete path. Use it as it is.
23854           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5
23855 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;}
23856           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5
23857 $as_echo_n "checking for XATTR... " >&6; }
23858           if test ! -x "$tool_specified"; then
23859             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23860 $as_echo "not found" >&6; }
23861             as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5
23862           fi
23863           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
23864 $as_echo "$tool_specified" >&6; }
23865         fi
23866       fi
23867     fi
23868 
23869   fi
23870 
23871 
23872 
23873   if test "x$XATTR" = x; then
23874     as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5
23875   fi
23876 
23877 
23878 
23879 
23880   # Publish this variable in the help.
23881 
23882 
23883   if [ -z "${CODESIGN+x}" ]; then
23884     # The variable is not set by user, try to locate tool using the code snippet
23885     for ac_prog in codesign
23886 do
23887   # Extract the first word of "$ac_prog", so it can be a program name with args.
23888 set dummy $ac_prog; ac_word=$2
23889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23890 $as_echo_n "checking for $ac_word... " >&6; }
23891 if ${ac_cv_path_CODESIGN+:} false; then :
23892   $as_echo_n "(cached) " >&6
23893 else
23894   case $CODESIGN in
23895   [\\/]* | ?:[\\/]*)
23896   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
23897   ;;
23898   *)
23899   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23900 for as_dir in $PATH
23901 do
23902   IFS=$as_save_IFS
23903   test -z "$as_dir" && as_dir=.
23904     for ac_exec_ext in '' $ac_executable_extensions; do
23905   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23906     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
23907     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23908     break 2
23909   fi
23910 done
23911   done
23912 IFS=$as_save_IFS
23913 
23914   ;;
23915 esac
23916 fi
23917 CODESIGN=$ac_cv_path_CODESIGN
23918 if test -n "$CODESIGN"; then
23919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
23920 $as_echo "$CODESIGN" >&6; }
23921 else
23922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23923 $as_echo "no" >&6; }
23924 fi
23925 
23926 
23927   test -n "$CODESIGN" && break
23928 done
23929 
23930   else
23931     # The variable is set, but is it from the command line or the environment?
23932 
23933     # Try to remove the string !CODESIGN! from our list.
23934     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/}
23935     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
23936       # If it failed, the variable was not from the command line. Ignore it,
23937       # but warn the user (except for BASH, which is always set by the calling BASH).
23938       if test "xCODESIGN" != xBASH; then
23939         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5
23940 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;}
23941       fi
23942       # Try to locate tool using the code snippet
23943       for ac_prog in codesign
23944 do
23945   # Extract the first word of "$ac_prog", so it can be a program name with args.
23946 set dummy $ac_prog; ac_word=$2
23947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23948 $as_echo_n "checking for $ac_word... " >&6; }
23949 if ${ac_cv_path_CODESIGN+:} false; then :
23950   $as_echo_n "(cached) " >&6
23951 else
23952   case $CODESIGN in
23953   [\\/]* | ?:[\\/]*)
23954   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
23955   ;;
23956   *)
23957   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23958 for as_dir in $PATH
23959 do
23960   IFS=$as_save_IFS
23961   test -z "$as_dir" && as_dir=.
23962     for ac_exec_ext in '' $ac_executable_extensions; do
23963   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23964     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
23965     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23966     break 2
23967   fi
23968 done
23969   done
23970 IFS=$as_save_IFS
23971 
23972   ;;
23973 esac
23974 fi
23975 CODESIGN=$ac_cv_path_CODESIGN
23976 if test -n "$CODESIGN"; then
23977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
23978 $as_echo "$CODESIGN" >&6; }
23979 else
23980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23981 $as_echo "no" >&6; }
23982 fi
23983 
23984 
23985   test -n "$CODESIGN" && break
23986 done
23987 
23988     else
23989       # If it succeeded, then it was overridden by the user. We will use it
23990       # for the tool.
23991 
23992       # First remove it from the list of overridden variables, so we can test
23993       # for unknown variables in the end.
23994       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
23995 
23996       # Check if we try to supply an empty value
23997       if test "x$CODESIGN" = x; then
23998         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CODESIGN= (no value)" >&5
23999 $as_echo "$as_me: Setting user supplied tool CODESIGN= (no value)" >&6;}
24000         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5
24001 $as_echo_n "checking for CODESIGN... " >&6; }
24002         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
24003 $as_echo "disabled" >&6; }
24004       else
24005         # Check if the provided tool contains a complete path.
24006         tool_specified="$CODESIGN"
24007         tool_basename="${tool_specified##*/}"
24008         if test "x$tool_basename" = "x$tool_specified"; then
24009           # A command without a complete path is provided, search $PATH.
24010           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5
24011 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;}
24012           # Extract the first word of "$tool_basename", so it can be a program name with args.
24013 set dummy $tool_basename; ac_word=$2
24014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24015 $as_echo_n "checking for $ac_word... " >&6; }
24016 if ${ac_cv_path_CODESIGN+:} false; then :
24017   $as_echo_n "(cached) " >&6
24018 else
24019   case $CODESIGN in
24020   [\\/]* | ?:[\\/]*)
24021   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
24022   ;;
24023   *)
24024   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24025 for as_dir in $PATH
24026 do
24027   IFS=$as_save_IFS
24028   test -z "$as_dir" && as_dir=.
24029     for ac_exec_ext in '' $ac_executable_extensions; do
24030   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24031     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
24032     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24033     break 2
24034   fi
24035 done
24036   done
24037 IFS=$as_save_IFS
24038 
24039   ;;
24040 esac
24041 fi
24042 CODESIGN=$ac_cv_path_CODESIGN
24043 if test -n "$CODESIGN"; then
24044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
24045 $as_echo "$CODESIGN" >&6; }
24046 else
24047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24048 $as_echo "no" >&6; }
24049 fi
24050 
24051 
24052           if test "x$CODESIGN" = x; then
24053             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
24054           fi
24055         else
24056           # Otherwise we believe it is a complete path. Use it as it is.
24057           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5
24058 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;}
24059           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5
24060 $as_echo_n "checking for CODESIGN... " >&6; }
24061           if test ! -x "$tool_specified"; then
24062             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24063 $as_echo "not found" >&6; }
24064             as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5
24065           fi
24066           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
24067 $as_echo "$tool_specified" >&6; }
24068         fi
24069       fi
24070     fi
24071 
24072   fi
24073 
24074 
24075     if test "x$CODESIGN" != "x"; then
24076       # Verify that the openjdk_codesign certificate is present
24077       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5
24078 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; }
24079       $RM codesign-testfile
24080       $TOUCH codesign-testfile
24081       $CODESIGN -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN=
24082       $RM codesign-testfile
24083       if test "x$CODESIGN" = x; then
24084         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24085 $as_echo "no" >&6; }
24086       else
24087         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24088 $as_echo "yes" >&6; }
24089       fi
24090     fi
24091 
24092 
24093 
24094   # Publish this variable in the help.
24095 
24096 
24097   if [ -z "${SETFILE+x}" ]; then
24098     # The variable is not set by user, try to locate tool using the code snippet
24099     for ac_prog in SetFile
24100 do
24101   # Extract the first word of "$ac_prog", so it can be a program name with args.
24102 set dummy $ac_prog; ac_word=$2
24103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24104 $as_echo_n "checking for $ac_word... " >&6; }
24105 if ${ac_cv_path_SETFILE+:} false; then :
24106   $as_echo_n "(cached) " >&6
24107 else
24108   case $SETFILE in
24109   [\\/]* | ?:[\\/]*)
24110   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
24111   ;;
24112   *)
24113   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24114 for as_dir in $PATH
24115 do
24116   IFS=$as_save_IFS
24117   test -z "$as_dir" && as_dir=.
24118     for ac_exec_ext in '' $ac_executable_extensions; do
24119   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24120     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
24121     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24122     break 2
24123   fi
24124 done
24125   done
24126 IFS=$as_save_IFS
24127 
24128   ;;
24129 esac
24130 fi
24131 SETFILE=$ac_cv_path_SETFILE
24132 if test -n "$SETFILE"; then
24133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
24134 $as_echo "$SETFILE" >&6; }
24135 else
24136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24137 $as_echo "no" >&6; }
24138 fi
24139 
24140 
24141   test -n "$SETFILE" && break
24142 done
24143 
24144   else
24145     # The variable is set, but is it from the command line or the environment?
24146 
24147     # Try to remove the string !SETFILE! from our list.
24148     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/}
24149     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
24150       # If it failed, the variable was not from the command line. Ignore it,
24151       # but warn the user (except for BASH, which is always set by the calling BASH).
24152       if test "xSETFILE" != xBASH; then
24153         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5
24154 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;}
24155       fi
24156       # Try to locate tool using the code snippet
24157       for ac_prog in SetFile
24158 do
24159   # Extract the first word of "$ac_prog", so it can be a program name with args.
24160 set dummy $ac_prog; ac_word=$2
24161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24162 $as_echo_n "checking for $ac_word... " >&6; }
24163 if ${ac_cv_path_SETFILE+:} false; then :
24164   $as_echo_n "(cached) " >&6
24165 else
24166   case $SETFILE in
24167   [\\/]* | ?:[\\/]*)
24168   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
24169   ;;
24170   *)
24171   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24172 for as_dir in $PATH
24173 do
24174   IFS=$as_save_IFS
24175   test -z "$as_dir" && as_dir=.
24176     for ac_exec_ext in '' $ac_executable_extensions; do
24177   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24178     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
24179     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24180     break 2
24181   fi
24182 done
24183   done
24184 IFS=$as_save_IFS
24185 
24186   ;;
24187 esac
24188 fi
24189 SETFILE=$ac_cv_path_SETFILE
24190 if test -n "$SETFILE"; then
24191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
24192 $as_echo "$SETFILE" >&6; }
24193 else
24194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24195 $as_echo "no" >&6; }
24196 fi
24197 
24198 
24199   test -n "$SETFILE" && break
24200 done
24201 
24202     else
24203       # If it succeeded, then it was overridden by the user. We will use it
24204       # for the tool.
24205 
24206       # First remove it from the list of overridden variables, so we can test
24207       # for unknown variables in the end.
24208       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
24209 
24210       # Check if we try to supply an empty value
24211       if test "x$SETFILE" = x; then
24212         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SETFILE= (no value)" >&5
24213 $as_echo "$as_me: Setting user supplied tool SETFILE= (no value)" >&6;}
24214         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5
24215 $as_echo_n "checking for SETFILE... " >&6; }
24216         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
24217 $as_echo "disabled" >&6; }
24218       else
24219         # Check if the provided tool contains a complete path.
24220         tool_specified="$SETFILE"
24221         tool_basename="${tool_specified##*/}"
24222         if test "x$tool_basename" = "x$tool_specified"; then
24223           # A command without a complete path is provided, search $PATH.
24224           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5
24225 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;}
24226           # Extract the first word of "$tool_basename", so it can be a program name with args.
24227 set dummy $tool_basename; ac_word=$2
24228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24229 $as_echo_n "checking for $ac_word... " >&6; }
24230 if ${ac_cv_path_SETFILE+:} false; then :
24231   $as_echo_n "(cached) " >&6
24232 else
24233   case $SETFILE in
24234   [\\/]* | ?:[\\/]*)
24235   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
24236   ;;
24237   *)
24238   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24239 for as_dir in $PATH
24240 do
24241   IFS=$as_save_IFS
24242   test -z "$as_dir" && as_dir=.
24243     for ac_exec_ext in '' $ac_executable_extensions; do
24244   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24245     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
24246     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24247     break 2
24248   fi
24249 done
24250   done
24251 IFS=$as_save_IFS
24252 
24253   ;;
24254 esac
24255 fi
24256 SETFILE=$ac_cv_path_SETFILE
24257 if test -n "$SETFILE"; then
24258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
24259 $as_echo "$SETFILE" >&6; }
24260 else
24261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24262 $as_echo "no" >&6; }
24263 fi
24264 
24265 
24266           if test "x$SETFILE" = x; then
24267             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
24268           fi
24269         else
24270           # Otherwise we believe it is a complete path. Use it as it is.
24271           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5
24272 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;}
24273           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5
24274 $as_echo_n "checking for SETFILE... " >&6; }
24275           if test ! -x "$tool_specified"; then
24276             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24277 $as_echo "not found" >&6; }
24278             as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5
24279           fi
24280           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
24281 $as_echo "$tool_specified" >&6; }
24282         fi
24283       fi
24284     fi
24285 
24286   fi
24287 
24288 
24289 
24290   if test "x$SETFILE" = x; then
24291     as_fn_error $? "Could not find required tool for SETFILE" "$LINENO" 5
24292   fi
24293 
24294 
24295   fi
24296 
24297 
24298   # Check bash version
24299   # Extra [ ] to stop m4 mangling
24300    BASH_VER=`$BASH --version | $SED -n  -e 's/^.*bash.*ersion *\([0-9.]*\).*$/\1/ p'`
24301   { $as_echo "$as_me:${as_lineno-$LINENO}: checking bash version" >&5
24302 $as_echo_n "checking bash version... " >&6; }
24303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH_VER" >&5
24304 $as_echo "$BASH_VER" >&6; }
24305 
24306   BASH_MAJOR=`$ECHO $BASH_VER | $CUT -d . -f 1`
24307   BASH_MINOR=`$ECHO $BASH_VER | $CUT -d . -f 2`
24308   if test $BASH_MAJOR -lt 3 || (test $BASH_MAJOR -eq 3 && test $BASH_MINOR -lt 2); then
24309     as_fn_error $? "bash version 3.2 or better is required" "$LINENO" 5
24310   fi
24311 
24312   # Test if bash supports pipefail.
24313   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports pipefail" >&5
24314 $as_echo_n "checking if bash supports pipefail... " >&6; }
24315   if ${BASH} -c 'set -o pipefail'; then
24316     BASH_ARGS="$BASH_ARGS -o pipefail"
24317     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24318 $as_echo "yes" >&6; }
24319   else
24320     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24321 $as_echo "no" >&6; }
24322   fi
24323 
24324   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports errexit (-e)" >&5
24325 $as_echo_n "checking if bash supports errexit (-e)... " >&6; }
24326   if ${BASH} -e -c 'true'; then
24327     BASH_ARGS="$BASH_ARGS -e"
24328     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24329 $as_echo "yes" >&6; }
24330   else
24331     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24332 $as_echo "no" >&6; }
24333   fi
24334 
24335 
24336 
24337 
24338 # Check if pkg-config is available.
24339 
24340 
24341 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
24342         if test -n "$ac_tool_prefix"; then
24343   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24344 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24346 $as_echo_n "checking for $ac_word... " >&6; }
24347 if ${ac_cv_path_PKG_CONFIG+:} false; then :
24348   $as_echo_n "(cached) " >&6
24349 else
24350   case $PKG_CONFIG in
24351   [\\/]* | ?:[\\/]*)
24352   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24353   ;;
24354   *)
24355   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24356 for as_dir in $PATH
24357 do
24358   IFS=$as_save_IFS
24359   test -z "$as_dir" && as_dir=.
24360     for ac_exec_ext in '' $ac_executable_extensions; do
24361   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24362     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24363     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24364     break 2
24365   fi
24366 done
24367   done
24368 IFS=$as_save_IFS
24369 
24370   ;;
24371 esac
24372 fi
24373 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24374 if test -n "$PKG_CONFIG"; then
24375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
24376 $as_echo "$PKG_CONFIG" >&6; }
24377 else
24378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24379 $as_echo "no" >&6; }
24380 fi
24381 
24382 
24383 fi
24384 if test -z "$ac_cv_path_PKG_CONFIG"; then
24385   ac_pt_PKG_CONFIG=$PKG_CONFIG
24386   # Extract the first word of "pkg-config", so it can be a program name with args.
24387 set dummy pkg-config; ac_word=$2
24388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24389 $as_echo_n "checking for $ac_word... " >&6; }
24390 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
24391   $as_echo_n "(cached) " >&6
24392 else
24393   case $ac_pt_PKG_CONFIG in
24394   [\\/]* | ?:[\\/]*)
24395   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
24396   ;;
24397   *)
24398   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24399 for as_dir in $PATH
24400 do
24401   IFS=$as_save_IFS
24402   test -z "$as_dir" && as_dir=.
24403     for ac_exec_ext in '' $ac_executable_extensions; do
24404   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24405     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24406     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24407     break 2
24408   fi
24409 done
24410   done
24411 IFS=$as_save_IFS
24412 
24413   ;;
24414 esac
24415 fi
24416 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
24417 if test -n "$ac_pt_PKG_CONFIG"; then
24418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
24419 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
24420 else
24421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24422 $as_echo "no" >&6; }
24423 fi
24424 
24425   if test "x$ac_pt_PKG_CONFIG" = x; then
24426     PKG_CONFIG=""
24427   else
24428     case $cross_compiling:$ac_tool_warned in
24429 yes:)
24430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24431 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24432 ac_tool_warned=yes ;;
24433 esac
24434     PKG_CONFIG=$ac_pt_PKG_CONFIG
24435   fi
24436 else
24437   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
24438 fi
24439 
24440 fi
24441 if test -n "$PKG_CONFIG"; then
24442         _pkg_min_version=0.9.0
24443         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
24444 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
24445         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
24446                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24447 $as_echo "yes" >&6; }
24448         else
24449                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24450 $as_echo "no" >&6; }
24451                 PKG_CONFIG=""
24452         fi
24453 
24454 fi
24455 
24456 # After basic tools have been setup, we can check build os specific details.
24457 
24458   ###############################################################################
24459 
24460   # Note that this is the build platform OS version!
24461 
24462   OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`"
24463   OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`"
24464   OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`"
24465   OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`"
24466 
24467 
24468 
24469 
24470 
24471 # Misc basic settings
24472 
24473 
24474 # Check whether --with-default-make-target was given.
24475 if test "${with_default_make_target+set}" = set; then :
24476   withval=$with_default_make_target;
24477 fi
24478 
24479   if test "x$with_default_make_target" = "x" \
24480       || test "x$with_default_make_target" = "xyes"; then
24481     DEFAULT_MAKE_TARGET="exploded-image"
24482   elif test "x$with_default_make_target" = "xno"; then
24483     as_fn_error $? "--without-default-make-target is not a valid option" "$LINENO" 5
24484   else
24485     DEFAULT_MAKE_TARGET="$with_default_make_target"
24486   fi
24487 
24488 
24489 
24490 
24491 ###############################################################################
24492 #
24493 # Determine OpenJDK variants, options and version numbers.
24494 #
24495 ###############################################################################
24496 
24497 # We need build & target for this.
24498 
24499   # Should we build a JDK without a graphical UI?
24500   { $as_echo "$as_me:${as_lineno-$LINENO}: checking headless only" >&5
24501 $as_echo_n "checking headless only... " >&6; }
24502   # Check whether --enable-headless-only was given.
24503 if test "${enable_headless_only+set}" = set; then :
24504   enableval=$enable_headless_only;
24505 fi
24506 
24507 
24508   if test "x$enable_headless_only" = "xyes"; then
24509     ENABLE_HEADLESS_ONLY="true"
24510     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24511 $as_echo "yes" >&6; }
24512   elif test "x$enable_headless_only" = "xno"; then
24513     ENABLE_HEADLESS_ONLY="false"
24514     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24515 $as_echo "no" >&6; }
24516   elif test "x$enable_headless_only" = "x"; then
24517     ENABLE_HEADLESS_ONLY="false"
24518     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24519 $as_echo "no" >&6; }
24520   else
24521     as_fn_error $? "--enable-headless-only can only take yes or no" "$LINENO" 5
24522   fi
24523 
24524 
24525 
24526   # Choose cacerts source file
24527 
24528 # Check whether --with-cacerts-file was given.
24529 if test "${with_cacerts_file+set}" = set; then :
24530   withval=$with_cacerts_file;
24531 fi
24532 
24533   if test "x$with_cacerts_file" != x; then
24534     CACERTS_FILE=$with_cacerts_file
24535   fi
24536 
24537 
24538   # Enable or disable unlimited crypto
24539   # Check whether --enable-unlimited-crypto was given.
24540 if test "${enable_unlimited_crypto+set}" = set; then :
24541   enableval=$enable_unlimited_crypto;
24542 else
24543   enable_unlimited_crypto=yes
24544 fi
24545 
24546   if test "x$enable_unlimited_crypto" = "xyes"; then
24547     UNLIMITED_CRYPTO=true
24548   else
24549     UNLIMITED_CRYPTO=false
24550   fi
24551 
24552 
24553   # Should we build the serviceability agent (SA)?
24554   INCLUDE_SA=true
24555   if   [[ " $JVM_VARIANTS " =~ " zero " ]]   ||   [[ " $JVM_VARIANTS " =~ " zeroshark " ]]  ; then
24556     INCLUDE_SA=false
24557   fi
24558   if test "x$OPENJDK_TARGET_OS" = xaix ; then
24559     INCLUDE_SA=false
24560   fi
24561 
24562 
24563   # Compress jars
24564   COMPRESS_JARS=false
24565 
24566 
24567 
24568   # Setup default copyright year. Mostly overridden when building close to a new year.
24569 
24570 # Check whether --with-copyright-year was given.
24571 if test "${with_copyright_year+set}" = set; then :
24572   withval=$with_copyright_year;
24573 fi
24574 
24575   if test "x$with_copyright_year" = xyes; then
24576     as_fn_error $? "Copyright year must have a value" "$LINENO" 5
24577   elif test "x$with_copyright_year" != x; then
24578     COPYRIGHT_YEAR="$with_copyright_year"
24579   else
24580     COPYRIGHT_YEAR=`$DATE +'%Y'`
24581   fi
24582 
24583 
24584 
24585   # Check whether --enable-keep-packaged-modules was given.
24586 if test "${enable_keep_packaged_modules+set}" = set; then :
24587   enableval=$enable_keep_packaged_modules;
24588 fi
24589 
24590 
24591   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if packaged modules are kept" >&5
24592 $as_echo_n "checking if packaged modules are kept... " >&6; }
24593   if test "x$enable_keep_packaged_modules" = "xyes"; then
24594     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24595 $as_echo "yes" >&6; }
24596     JLINK_KEEP_PACKAGED_MODULES=true
24597   elif test "x$enable_keep_packaged_modules" = "xno"; then
24598     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24599 $as_echo "no" >&6; }
24600     JLINK_KEEP_PACKAGED_MODULES=false
24601   elif test "x$enable_keep_packaged_modules" = "x"; then
24602     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5
24603 $as_echo "yes (default)" >&6; }
24604     JLINK_KEEP_PACKAGED_MODULES=true
24605   else
24606     { $as_echo "$as_me:${as_lineno-$LINENO}: result: error" >&5
24607 $as_echo "error" >&6; }
24608     as_fn_error $? "--enable-keep-packaged-modules accepts no argument" "$LINENO" 5
24609   fi
24610 
24611 
24612 
24613 
24614   # Warn user that old version arguments are deprecated.
24615 
24616 
24617 # Check whether --with-milestone was given.
24618 if test "${with_milestone+set}" = set; then :
24619   withval=$with_milestone; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-milestone is deprecated and will be ignored." >&5
24620 $as_echo "$as_me: WARNING: Option --with-milestone is deprecated and will be ignored." >&2;}
24621 fi
24622 
24623 
24624 
24625 
24626 # Check whether --with-update-version was given.
24627 if test "${with_update_version+set}" = set; then :
24628   withval=$with_update_version; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-update-version is deprecated and will be ignored." >&5
24629 $as_echo "$as_me: WARNING: Option --with-update-version is deprecated and will be ignored." >&2;}
24630 fi
24631 
24632 
24633 
24634 
24635 # Check whether --with-user-release-suffix was given.
24636 if test "${with_user_release_suffix+set}" = set; then :
24637   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
24638 $as_echo "$as_me: WARNING: Option --with-user-release-suffix is deprecated and will be ignored." >&2;}
24639 fi
24640 
24641 
24642 
24643 
24644 # Check whether --with-build-number was given.
24645 if test "${with_build_number+set}" = set; then :
24646   withval=$with_build_number; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-build-number is deprecated and will be ignored." >&5
24647 $as_echo "$as_me: WARNING: Option --with-build-number is deprecated and will be ignored." >&2;}
24648 fi
24649 
24650 
24651 
24652   # Source the version numbers file
24653   . $AUTOCONF_DIR/version-numbers
24654 
24655   # Some non-version number information is set in that file
24656 
24657 
24658 
24659 
24660 
24661 
24662 
24663 
24664 
24665   # Override version from arguments
24666 
24667   # If --with-version-string is set, process it first. It is possible to
24668   # override parts with more specific flags, since these are processed later.
24669 
24670 # Check whether --with-version-string was given.
24671 if test "${with_version_string+set}" = set; then :
24672   withval=$with_version_string;
24673 fi
24674 
24675   if test "x$with_version_string" = xyes; then
24676     as_fn_error $? "--with-version-string must have a value" "$LINENO" 5
24677   elif test "x$with_version_string" != x; then
24678     # Additional [] needed to keep m4 from mangling shell constructs.
24679     if  [[ $with_version_string =~ ^([0-9]+)(\.([0-9]+))?(\.([0-9]+))?(\.([0-9]+))?(-([a-zA-Z]+))?((\+)([0-9]+)?(-([-a-zA-Z0-9.]+))?)?$ ]] ; then
24680       VERSION_MAJOR=${BASH_REMATCH[1]}
24681       VERSION_MINOR=${BASH_REMATCH[3]}
24682       VERSION_SECURITY=${BASH_REMATCH[5]}
24683       VERSION_PATCH=${BASH_REMATCH[7]}
24684       VERSION_PRE=${BASH_REMATCH[9]}
24685       version_plus_separator=${BASH_REMATCH[11]}
24686       VERSION_BUILD=${BASH_REMATCH[12]}
24687       VERSION_OPT=${BASH_REMATCH[14]}
24688       # Unspecified numerical fields are interpreted as 0.
24689       if test "x$VERSION_MINOR" = x; then
24690         VERSION_MINOR=0
24691       fi
24692       if test "x$VERSION_SECURITY" = x; then
24693         VERSION_SECURITY=0
24694       fi
24695       if test "x$VERSION_PATCH" = x; then
24696         VERSION_PATCH=0
24697       fi
24698       if test "x$version_plus_separator" != x \
24699           && test "x$VERSION_BUILD$VERSION_OPT" = x; then
24700         as_fn_error $? "Version string contains + but both 'BUILD' and 'OPT' are missing" "$LINENO" 5
24701       fi
24702       # Stop the version part process from setting default values.
24703       # We still allow them to explicitly override though.
24704       NO_DEFAULT_VERSION_PARTS=true
24705     else
24706       as_fn_error $? "--with-version-string fails to parse as a valid version string: $with_version_string" "$LINENO" 5
24707     fi
24708   fi
24709 
24710 
24711 # Check whether --with-version-pre was given.
24712 if test "${with_version_pre+set}" = set; then :
24713   withval=$with_version_pre; with_version_pre_present=true
24714 else
24715   with_version_pre_present=false
24716 fi
24717 
24718 
24719   if test "x$with_version_pre_present" = xtrue; then
24720     if test "x$with_version_pre" = xyes; then
24721       as_fn_error $? "--with-version-pre must have a value" "$LINENO" 5
24722     elif test "x$with_version_pre" = xno; then
24723       # Interpret --without-* as empty string instead of the literal "no"
24724       VERSION_PRE=
24725     else
24726       # Only [a-zA-Z] is allowed in the VERSION_PRE. Outer [ ] to quote m4.
24727        VERSION_PRE=`$ECHO "$with_version_pre" | $TR -c -d '[a-z][A-Z]'`
24728       if test "x$VERSION_PRE" != "x$with_version_pre"; then
24729         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-version-pre value has been sanitized from '$with_version_pre' to '$VERSION_PRE'" >&5
24730 $as_echo "$as_me: WARNING: --with-version-pre value has been sanitized from '$with_version_pre' to '$VERSION_PRE'" >&2;}
24731       fi
24732     fi
24733   else
24734     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
24735       # Default is to use "internal" as pre
24736       VERSION_PRE="internal"
24737     fi
24738   fi
24739 
24740 
24741 # Check whether --with-version-opt was given.
24742 if test "${with_version_opt+set}" = set; then :
24743   withval=$with_version_opt; with_version_opt_present=true
24744 else
24745   with_version_opt_present=false
24746 fi
24747 
24748 
24749   if test "x$with_version_opt_present" = xtrue; then
24750     if test "x$with_version_opt" = xyes; then
24751       as_fn_error $? "--with-version-opt must have a value" "$LINENO" 5
24752     elif test "x$with_version_opt" = xno; then
24753       # Interpret --without-* as empty string instead of the literal "no"
24754       VERSION_OPT=
24755     else
24756       # Only [-.a-zA-Z0-9] is allowed in the VERSION_OPT. Outer [ ] to quote m4.
24757        VERSION_OPT=`$ECHO "$with_version_opt" | $TR -c -d '[a-z][A-Z][0-9].-'`
24758       if test "x$VERSION_OPT" != "x$with_version_opt"; then
24759         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-version-opt value has been sanitized from '$with_version_opt' to '$VERSION_OPT'" >&5
24760 $as_echo "$as_me: WARNING: --with-version-opt value has been sanitized from '$with_version_opt' to '$VERSION_OPT'" >&2;}
24761       fi
24762     fi
24763   else
24764     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
24765       # Default is to calculate a string like this 'adhoc.<username>.<base dir name>'
24766       # Outer [ ] to quote m4.
24767        basedirname=`$BASENAME "$TOPDIR" | $TR -d -c '[a-z][A-Z][0-9].-'`
24768       VERSION_OPT="adhoc.$USERNAME.$basedirname"
24769     fi
24770   fi
24771 
24772 
24773 # Check whether --with-version-build was given.
24774 if test "${with_version_build+set}" = set; then :
24775   withval=$with_version_build; with_version_build_present=true
24776 else
24777   with_version_build_present=false
24778 fi
24779 
24780 
24781   if test "x$with_version_build_present" = xtrue; then
24782     if test "x$with_version_build" = xyes; then
24783       as_fn_error $? "--with-version-build must have a value" "$LINENO" 5
24784     elif test "x$with_version_build" = xno; then
24785       # Interpret --without-* as empty string instead of the literal "no"
24786       VERSION_BUILD=
24787     elif test "x$with_version_build" = x; then
24788       VERSION_BUILD=
24789     else
24790 
24791   # Additional [] needed to keep m4 from mangling shell constructs.
24792   if  ! [[ "$with_version_build" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
24793     as_fn_error $? "\"$with_version_build\" is not a valid numerical value for VERSION_BUILD" "$LINENO" 5
24794   fi
24795   # Extract the version number without leading zeros.
24796   cleaned_value=${BASH_REMATCH[1]}
24797   if test "x$cleaned_value" = x; then
24798     # Special case for zero
24799     cleaned_value=${BASH_REMATCH[2]}
24800   fi
24801 
24802   if test $cleaned_value -gt 255; then
24803     as_fn_error $? "VERSION_BUILD is given as $with_version_build. This is greater than 255 which is not allowed." "$LINENO" 5
24804   fi
24805   if test "x$cleaned_value" != "x$with_version_build"; then
24806     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_BUILD has been sanitized from '$with_version_build' to '$cleaned_value'" >&5
24807 $as_echo "$as_me: WARNING: Value for VERSION_BUILD has been sanitized from '$with_version_build' to '$cleaned_value'" >&2;}
24808   fi
24809   VERSION_BUILD=$cleaned_value
24810 
24811     fi
24812   else
24813     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
24814       # Default is to not have a build number.
24815       VERSION_BUILD=""
24816       # FIXME: Until all code can cope with an empty VERSION_BUILD, set it to 0.
24817       VERSION_BUILD=0
24818     fi
24819   fi
24820 
24821 
24822 # Check whether --with-version-major was given.
24823 if test "${with_version_major+set}" = set; then :
24824   withval=$with_version_major; with_version_major_present=true
24825 else
24826   with_version_major_present=false
24827 fi
24828 
24829 
24830   if test "x$with_version_major_present" = xtrue; then
24831     if test "x$with_version_major" = xyes; then
24832       as_fn_error $? "--with-version-major must have a value" "$LINENO" 5
24833     else
24834 
24835   # Additional [] needed to keep m4 from mangling shell constructs.
24836   if  ! [[ "$with_version_major" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
24837     as_fn_error $? "\"$with_version_major\" is not a valid numerical value for VERSION_MAJOR" "$LINENO" 5
24838   fi
24839   # Extract the version number without leading zeros.
24840   cleaned_value=${BASH_REMATCH[1]}
24841   if test "x$cleaned_value" = x; then
24842     # Special case for zero
24843     cleaned_value=${BASH_REMATCH[2]}
24844   fi
24845 
24846   if test $cleaned_value -gt 255; then
24847     as_fn_error $? "VERSION_MAJOR is given as $with_version_major. This is greater than 255 which is not allowed." "$LINENO" 5
24848   fi
24849   if test "x$cleaned_value" != "x$with_version_major"; then
24850     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_MAJOR has been sanitized from '$with_version_major' to '$cleaned_value'" >&5
24851 $as_echo "$as_me: WARNING: Value for VERSION_MAJOR has been sanitized from '$with_version_major' to '$cleaned_value'" >&2;}
24852   fi
24853   VERSION_MAJOR=$cleaned_value
24854 
24855     fi
24856   else
24857     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
24858       # Default is to get value from version-numbers
24859       VERSION_MAJOR="$DEFAULT_VERSION_MAJOR"
24860     fi
24861   fi
24862 
24863 
24864 # Check whether --with-version-minor was given.
24865 if test "${with_version_minor+set}" = set; then :
24866   withval=$with_version_minor; with_version_minor_present=true
24867 else
24868   with_version_minor_present=false
24869 fi
24870 
24871 
24872   if test "x$with_version_minor_present" = xtrue; then
24873     if test "x$with_version_minor" = xyes; then
24874       as_fn_error $? "--with-version-minor must have a value" "$LINENO" 5
24875     elif test "x$with_version_minor" = xno; then
24876       # Interpret --without-* as empty string (i.e. 0) instead of the literal "no"
24877       VERSION_MINOR=0
24878     elif test "x$with_version_minor" = x; then
24879       VERSION_MINOR=0
24880     else
24881 
24882   # Additional [] needed to keep m4 from mangling shell constructs.
24883   if  ! [[ "$with_version_minor" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
24884     as_fn_error $? "\"$with_version_minor\" is not a valid numerical value for VERSION_MINOR" "$LINENO" 5
24885   fi
24886   # Extract the version number without leading zeros.
24887   cleaned_value=${BASH_REMATCH[1]}
24888   if test "x$cleaned_value" = x; then
24889     # Special case for zero
24890     cleaned_value=${BASH_REMATCH[2]}
24891   fi
24892 
24893   if test $cleaned_value -gt 255; then
24894     as_fn_error $? "VERSION_MINOR is given as $with_version_minor. This is greater than 255 which is not allowed." "$LINENO" 5
24895   fi
24896   if test "x$cleaned_value" != "x$with_version_minor"; then
24897     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_MINOR has been sanitized from '$with_version_minor' to '$cleaned_value'" >&5
24898 $as_echo "$as_me: WARNING: Value for VERSION_MINOR has been sanitized from '$with_version_minor' to '$cleaned_value'" >&2;}
24899   fi
24900   VERSION_MINOR=$cleaned_value
24901 
24902     fi
24903   else
24904     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
24905       # Default is 0, if unspecified
24906       VERSION_MINOR=$DEFAULT_VERSION_MINOR
24907     fi
24908   fi
24909 
24910 
24911 # Check whether --with-version-security was given.
24912 if test "${with_version_security+set}" = set; then :
24913   withval=$with_version_security; with_version_security_present=true
24914 else
24915   with_version_security_present=false
24916 fi
24917 
24918 
24919   if test "x$with_version_security_present" = xtrue; then
24920     if test "x$with_version_security" = xyes; then
24921       as_fn_error $? "--with-version-security must have a value" "$LINENO" 5
24922     elif test "x$with_version_security" = xno; then
24923       # Interpret --without-* as empty string (i.e. 0) instead of the literal "no"
24924       VERSION_SECURITY=0
24925     elif test "x$with_version_security" = x; then
24926       VERSION_SECURITY=0
24927     else
24928 
24929   # Additional [] needed to keep m4 from mangling shell constructs.
24930   if  ! [[ "$with_version_security" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
24931     as_fn_error $? "\"$with_version_security\" is not a valid numerical value for VERSION_SECURITY" "$LINENO" 5
24932   fi
24933   # Extract the version number without leading zeros.
24934   cleaned_value=${BASH_REMATCH[1]}
24935   if test "x$cleaned_value" = x; then
24936     # Special case for zero
24937     cleaned_value=${BASH_REMATCH[2]}
24938   fi
24939 
24940   if test $cleaned_value -gt 255; then
24941     as_fn_error $? "VERSION_SECURITY is given as $with_version_security. This is greater than 255 which is not allowed." "$LINENO" 5
24942   fi
24943   if test "x$cleaned_value" != "x$with_version_security"; then
24944     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_SECURITY has been sanitized from '$with_version_security' to '$cleaned_value'" >&5
24945 $as_echo "$as_me: WARNING: Value for VERSION_SECURITY has been sanitized from '$with_version_security' to '$cleaned_value'" >&2;}
24946   fi
24947   VERSION_SECURITY=$cleaned_value
24948 
24949     fi
24950   else
24951     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
24952       # Default is 0, if unspecified
24953       VERSION_SECURITY=$DEFAULT_VERSION_SECURITY
24954     fi
24955   fi
24956 
24957 
24958 # Check whether --with-version-patch was given.
24959 if test "${with_version_patch+set}" = set; then :
24960   withval=$with_version_patch; with_version_patch_present=true
24961 else
24962   with_version_patch_present=false
24963 fi
24964 
24965 
24966   if test "x$with_version_patch_present" = xtrue; then
24967     if test "x$with_version_patch" = xyes; then
24968       as_fn_error $? "--with-version-patch must have a value" "$LINENO" 5
24969     elif test "x$with_version_patch" = xno; then
24970       # Interpret --without-* as empty string (i.e. 0) instead of the literal "no"
24971       VERSION_PATCH=0
24972     elif test "x$with_version_patch" = x; then
24973       VERSION_PATCH=0
24974     else
24975 
24976   # Additional [] needed to keep m4 from mangling shell constructs.
24977   if  ! [[ "$with_version_patch" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
24978     as_fn_error $? "\"$with_version_patch\" is not a valid numerical value for VERSION_PATCH" "$LINENO" 5
24979   fi
24980   # Extract the version number without leading zeros.
24981   cleaned_value=${BASH_REMATCH[1]}
24982   if test "x$cleaned_value" = x; then
24983     # Special case for zero
24984     cleaned_value=${BASH_REMATCH[2]}
24985   fi
24986 
24987   if test $cleaned_value -gt 255; then
24988     as_fn_error $? "VERSION_PATCH is given as $with_version_patch. This is greater than 255 which is not allowed." "$LINENO" 5
24989   fi
24990   if test "x$cleaned_value" != "x$with_version_patch"; then
24991     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_PATCH has been sanitized from '$with_version_patch' to '$cleaned_value'" >&5
24992 $as_echo "$as_me: WARNING: Value for VERSION_PATCH has been sanitized from '$with_version_patch' to '$cleaned_value'" >&2;}
24993   fi
24994   VERSION_PATCH=$cleaned_value
24995 
24996     fi
24997   else
24998     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
24999       # Default is 0, if unspecified
25000       VERSION_PATCH=$DEFAULT_VERSION_PATCH
25001     fi
25002   fi
25003 
25004   # Calculate derived version properties
25005 
25006   # Set VERSION_IS_GA based on if VERSION_PRE has a value
25007   if test "x$VERSION_PRE" = x; then
25008     VERSION_IS_GA=true
25009   else
25010     VERSION_IS_GA=false
25011   fi
25012 
25013   # VERSION_NUMBER but always with exactly 4 positions, with 0 for empty positions.
25014   VERSION_NUMBER_FOUR_POSITIONS=$VERSION_MAJOR.$VERSION_MINOR.$VERSION_SECURITY.$VERSION_PATCH
25015 
25016   stripped_version_number=$VERSION_NUMBER_FOUR_POSITIONS
25017   # Strip trailing zeroes from stripped_version_number
25018   for i in 1 2 3 ; do stripped_version_number=${stripped_version_number%.0} ; done
25019   VERSION_NUMBER=$stripped_version_number
25020 
25021   # The complete version string, with additional build information
25022   if test "x$VERSION_BUILD$VERSION_OPT" = x; then
25023     VERSION_STRING=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE}
25024   else
25025     # If either build or opt is set, we need a + separator
25026     VERSION_STRING=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE}+$VERSION_BUILD${VERSION_OPT:+-$VERSION_OPT}
25027   fi
25028 
25029   # The short version string, just VERSION_NUMBER and PRE, if present.
25030   VERSION_SHORT=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE}
25031 
25032   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version string" >&5
25033 $as_echo_n "checking for version string... " >&6; }
25034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VERSION_STRING" >&5
25035 $as_echo "$VERSION_STRING" >&6; }
25036 
25037 
25038 
25039 
25040 
25041 
25042 
25043 
25044 
25045 
25046 
25047 
25048 
25049 
25050 
25051 ###############################################################################
25052 #
25053 # Setup BootJDK, used to bootstrap the build.
25054 #
25055 ###############################################################################
25056 
25057 
25058   BOOT_JDK_FOUND=no
25059 
25060 # Check whether --with-boot-jdk was given.
25061 if test "${with_boot_jdk+set}" = set; then :
25062   withval=$with_boot_jdk;
25063 fi
25064 
25065 
25066   # We look for the Boot JDK through various means, going from more certain to
25067   # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if
25068   # we detected something (if so, the path to the jdk is in BOOT_JDK). But we
25069   # must check if this is indeed valid; otherwise we'll continue looking.
25070 
25071   # Test: Is bootjdk explicitly set by command line arguments?
25072 
25073   if test "x$BOOT_JDK_FOUND" = xno; then
25074     # Now execute the test
25075 
25076   if test "x$with_boot_jdk" != x; then
25077     BOOT_JDK=$with_boot_jdk
25078     BOOT_JDK_FOUND=maybe
25079     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5
25080 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;}
25081   fi
25082 
25083 
25084     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
25085     if test "x$BOOT_JDK_FOUND" = xmaybe; then
25086       # Do we have a bin/java?
25087       if test ! -x "$BOOT_JDK/bin/java"; then
25088         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
25089 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
25090         BOOT_JDK_FOUND=no
25091       else
25092         # Do we have a bin/javac?
25093         if test ! -x "$BOOT_JDK/bin/javac"; then
25094           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
25095 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
25096           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
25097 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
25098           BOOT_JDK_FOUND=no
25099         else
25100           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
25101           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1`
25102 
25103           # Extra M4 quote needed to protect [] in grep expression.
25104           FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'`
25105           if test "x$FOUND_CORRECT_VERSION" = x; then
25106             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
25107 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
25108             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
25109 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
25110             BOOT_JDK_FOUND=no
25111           else
25112             # We're done! :-)
25113             BOOT_JDK_FOUND=yes
25114 
25115   # Only process if variable expands to non-empty
25116 
25117   if test "x$BOOT_JDK" != x; then
25118     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
25119 
25120   # Input might be given as Windows format, start by converting to
25121   # unix format.
25122   path="$BOOT_JDK"
25123   new_path=`$CYGPATH -u "$path"`
25124 
25125   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
25126   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
25127   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
25128   # "foo.exe" is OK but "foo" is an error.
25129   #
25130   # This test is therefore slightly more accurate than "test -f" to check for file precense.
25131   # It is also a way to make sure we got the proper file name for the real test later on.
25132   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
25133   if test "x$test_shortpath" = x; then
25134     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
25135 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
25136     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
25137   fi
25138 
25139   # Call helper function which possibly converts this using DOS-style short mode.
25140   # If so, the updated path is stored in $new_path.
25141 
25142   input_path="$new_path"
25143   # Check if we need to convert this using DOS-style short mode. If the path
25144   # contains just simple characters, use it. Otherwise (spaces, weird characters),
25145   # take no chances and rewrite it.
25146   # Note: m4 eats our [], so we need to use [ and ] instead.
25147   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
25148   if test "x$has_forbidden_chars" != x; then
25149     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
25150     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
25151     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
25152     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
25153       # Going to short mode and back again did indeed matter. Since short mode is
25154       # case insensitive, let's make it lowercase to improve readability.
25155       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
25156       # Now convert it back to Unix-style (cygpath)
25157       input_path=`$CYGPATH -u "$shortmode_path"`
25158       new_path="$input_path"
25159     fi
25160   fi
25161 
25162   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
25163   if test "x$test_cygdrive_prefix" = x; then
25164     # As a simple fix, exclude /usr/bin since it's not a real path.
25165     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
25166       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
25167       # a path prefixed by /cygdrive for fixpath to work.
25168       new_path="$CYGWIN_ROOT_PATH$input_path"
25169     fi
25170   fi
25171 
25172 
25173   if test "x$path" != "x$new_path"; then
25174     BOOT_JDK="$new_path"
25175     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
25176 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
25177   fi
25178 
25179     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
25180 
25181   path="$BOOT_JDK"
25182   has_colon=`$ECHO $path | $GREP ^.:`
25183   new_path="$path"
25184   if test "x$has_colon" = x; then
25185     # Not in mixed or Windows style, start by that.
25186     new_path=`cmd //c echo $path`
25187   fi
25188 
25189 
25190   input_path="$new_path"
25191   # Check if we need to convert this using DOS-style short mode. If the path
25192   # contains just simple characters, use it. Otherwise (spaces, weird characters),
25193   # take no chances and rewrite it.
25194   # Note: m4 eats our [], so we need to use [ and ] instead.
25195   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
25196   if test "x$has_forbidden_chars" != x; then
25197     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
25198     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
25199   fi
25200 
25201 
25202   windows_path="$new_path"
25203   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
25204     unix_path=`$CYGPATH -u "$windows_path"`
25205     new_path="$unix_path"
25206   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
25207     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
25208     new_path="$unix_path"
25209   fi
25210 
25211   if test "x$path" != "x$new_path"; then
25212     BOOT_JDK="$new_path"
25213     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
25214 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
25215   fi
25216 
25217   # Save the first 10 bytes of this path to the storage, so fixpath can work.
25218   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
25219 
25220     else
25221       # We're on a unix platform. Hooray! :)
25222       path="$BOOT_JDK"
25223       has_space=`$ECHO "$path" | $GREP " "`
25224       if test "x$has_space" != x; then
25225         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
25226 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
25227         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
25228       fi
25229 
25230       # Use eval to expand a potential ~
25231       eval path="$path"
25232       if test ! -f "$path" && test ! -d "$path"; then
25233         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
25234       fi
25235 
25236       if test -d "$path"; then
25237         BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
25238       else
25239         dir="`$DIRNAME "$path"`"
25240         base="`$BASENAME "$path"`"
25241         BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base"
25242       fi
25243     fi
25244   fi
25245 
25246             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
25247 $as_echo_n "checking for Boot JDK... " >&6; }
25248             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
25249 $as_echo "$BOOT_JDK" >&6; }
25250             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
25251 $as_echo_n "checking Boot JDK version... " >&6; }
25252             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
25253             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
25254 $as_echo "$BOOT_JDK_VERSION" >&6; }
25255           fi # end check jdk version
25256         fi # end check javac
25257       fi # end check java
25258     fi # end check boot jdk found
25259   fi
25260 
25261   if test "x$with_boot_jdk" != x && test "x$BOOT_JDK_FOUND" = xno; then
25262     # Having specified an argument which is incorrect will produce an instant failure;
25263     # we should not go on looking
25264     as_fn_error $? "The path given by --with-boot-jdk does not contain a valid Boot JDK" "$LINENO" 5
25265   fi
25266 
25267   # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home?
25268 
25269   if test "x$BOOT_JDK_FOUND" = xno; then
25270     # Now execute the test
25271 
25272   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
25273     # First check at user selected default
25274 
25275   if test "x$BOOT_JDK_FOUND" = xno; then
25276     # Now execute the test
25277 
25278   if test -x /usr/libexec/java_home; then
25279     BOOT_JDK=`/usr/libexec/java_home `
25280     BOOT_JDK_FOUND=maybe
25281     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home " >&5
25282 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home " >&6;}
25283   fi
25284 
25285 
25286     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
25287     if test "x$BOOT_JDK_FOUND" = xmaybe; then
25288       # Do we have a bin/java?
25289       if test ! -x "$BOOT_JDK/bin/java"; then
25290         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
25291 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
25292         BOOT_JDK_FOUND=no
25293       else
25294         # Do we have a bin/javac?
25295         if test ! -x "$BOOT_JDK/bin/javac"; then
25296           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
25297 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
25298           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
25299 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
25300           BOOT_JDK_FOUND=no
25301         else
25302           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
25303           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1`
25304 
25305           # Extra M4 quote needed to protect [] in grep expression.
25306           FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'`
25307           if test "x$FOUND_CORRECT_VERSION" = x; then
25308             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
25309 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
25310             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
25311 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
25312             BOOT_JDK_FOUND=no
25313           else
25314             # We're done! :-)
25315             BOOT_JDK_FOUND=yes
25316 
25317   # Only process if variable expands to non-empty
25318 
25319   if test "x$BOOT_JDK" != x; then
25320     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
25321 
25322   # Input might be given as Windows format, start by converting to
25323   # unix format.
25324   path="$BOOT_JDK"
25325   new_path=`$CYGPATH -u "$path"`
25326 
25327   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
25328   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
25329   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
25330   # "foo.exe" is OK but "foo" is an error.
25331   #
25332   # This test is therefore slightly more accurate than "test -f" to check for file precense.
25333   # It is also a way to make sure we got the proper file name for the real test later on.
25334   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
25335   if test "x$test_shortpath" = x; then
25336     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
25337 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
25338     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
25339   fi
25340 
25341   # Call helper function which possibly converts this using DOS-style short mode.
25342   # If so, the updated path is stored in $new_path.
25343 
25344   input_path="$new_path"
25345   # Check if we need to convert this using DOS-style short mode. If the path
25346   # contains just simple characters, use it. Otherwise (spaces, weird characters),
25347   # take no chances and rewrite it.
25348   # Note: m4 eats our [], so we need to use [ and ] instead.
25349   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
25350   if test "x$has_forbidden_chars" != x; then
25351     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
25352     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
25353     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
25354     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
25355       # Going to short mode and back again did indeed matter. Since short mode is
25356       # case insensitive, let's make it lowercase to improve readability.
25357       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
25358       # Now convert it back to Unix-style (cygpath)
25359       input_path=`$CYGPATH -u "$shortmode_path"`
25360       new_path="$input_path"
25361     fi
25362   fi
25363 
25364   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
25365   if test "x$test_cygdrive_prefix" = x; then
25366     # As a simple fix, exclude /usr/bin since it's not a real path.
25367     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
25368       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
25369       # a path prefixed by /cygdrive for fixpath to work.
25370       new_path="$CYGWIN_ROOT_PATH$input_path"
25371     fi
25372   fi
25373 
25374 
25375   if test "x$path" != "x$new_path"; then
25376     BOOT_JDK="$new_path"
25377     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
25378 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
25379   fi
25380 
25381     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
25382 
25383   path="$BOOT_JDK"
25384   has_colon=`$ECHO $path | $GREP ^.:`
25385   new_path="$path"
25386   if test "x$has_colon" = x; then
25387     # Not in mixed or Windows style, start by that.
25388     new_path=`cmd //c echo $path`
25389   fi
25390 
25391 
25392   input_path="$new_path"
25393   # Check if we need to convert this using DOS-style short mode. If the path
25394   # contains just simple characters, use it. Otherwise (spaces, weird characters),
25395   # take no chances and rewrite it.
25396   # Note: m4 eats our [], so we need to use [ and ] instead.
25397   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
25398   if test "x$has_forbidden_chars" != x; then
25399     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
25400     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
25401   fi
25402 
25403 
25404   windows_path="$new_path"
25405   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
25406     unix_path=`$CYGPATH -u "$windows_path"`
25407     new_path="$unix_path"
25408   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
25409     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
25410     new_path="$unix_path"
25411   fi
25412 
25413   if test "x$path" != "x$new_path"; then
25414     BOOT_JDK="$new_path"
25415     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
25416 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
25417   fi
25418 
25419   # Save the fi