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_LICENSE
 692 FREETYPE_BUNDLE_LIB_PATH
 693 FREETYPE_LIBS
 694 FREETYPE_CFLAGS
 695 CUPS_CFLAGS
 696 X_EXTRA_LIBS
 697 X_LIBS
 698 X_PRE_LIBS
 699 X_CFLAGS
 700 XMKMF
 701 MSVCP_DLL
 702 MSVCR_DLL
 703 LIBCXX
 704 FIXPATH_DETACH_FLAG
 705 FIXPATH
 706 BUILD_GTEST
 707 ENABLE_AOT
 708 GCOV_ENABLED
 709 ZIP_EXTERNAL_DEBUG_SYMBOLS
 710 COPY_DEBUG_SYMBOLS
 711 COMPILE_WITH_DEBUG_SYMBOLS
 712 CFLAGS_WARNINGS_ARE_ERRORS
 713 BUILD_CC_DISABLE_WARNING_PREFIX
 714 DISABLE_WARNING_PREFIX
 715 WARNINGS_AS_ERRORS
 716 COMPILER_SUPPORTS_TARGET_BITS_FLAG
 717 LDFLAGS_TESTEXE
 718 LDFLAGS_TESTLIB
 719 CXXFLAGS_TESTEXE
 720 CXXFLAGS_TESTLIB
 721 CFLAGS_TESTEXE
 722 CFLAGS_TESTLIB
 723 OPENJDK_BUILD_JVM_LIBS
 724 OPENJDK_BUILD_JVM_ASFLAGS
 725 OPENJDK_BUILD_JVM_LDFLAGS
 726 OPENJDK_BUILD_JVM_CFLAGS
 727 OPENJDK_BUILD_LDFLAGS_HASH_STYLE
 728 OPENJDK_BUILD_LDFLAGS_CXX_JDK
 729 OPENJDK_BUILD_JDKEXE_LIBS
 730 OPENJDK_BUILD_JDKLIB_LIBS
 731 OPENJDK_BUILD_LDFLAGS_JDKEXE
 732 OPENJDK_BUILD_LDFLAGS_JDKLIB
 733 OPENJDK_BUILD_CXXFLAGS_JDKEXE
 734 OPENJDK_BUILD_CXXFLAGS_JDKLIB
 735 OPENJDK_BUILD_CFLAGS_JDKEXE
 736 OPENJDK_BUILD_CFLAGS_JDKLIB
 737 OPENJDK_BUILD_CXXSTD_CXXFLAG
 738 JVM_LIBS
 739 JVM_ASFLAGS
 740 JVM_LDFLAGS
 741 JVM_CFLAGS
 742 LDFLAGS_HASH_STYLE
 743 LDFLAGS_CXX_JDK
 744 JDKEXE_LIBS
 745 JDKLIB_LIBS
 746 LDFLAGS_JDKEXE
 747 LDFLAGS_JDKLIB
 748 CXXFLAGS_JDKEXE
 749 CXXFLAGS_JDKLIB
 750 CFLAGS_JDKEXE
 751 CFLAGS_JDKLIB
 752 MACOSX_VERSION_MIN
 753 CXXSTD_CXXFLAG
 754 JDK_ARCH_ABI_PROP_NAME
 755 CXX_O_FLAG_SIZE
 756 CXX_O_FLAG_NONE
 757 CXX_O_FLAG_DEBUG
 758 CXX_O_FLAG_NORM
 759 CXX_O_FLAG_HI
 760 CXX_O_FLAG_HIGHEST
 761 CXX_O_FLAG_HIGHEST_JVM
 762 C_O_FLAG_SIZE
 763 C_O_FLAG_NONE
 764 C_O_FLAG_DEBUG
 765 C_O_FLAG_NORM
 766 C_O_FLAG_HI
 767 C_O_FLAG_HIGHEST
 768 C_O_FLAG_HIGHEST_JVM
 769 JVM_CFLAGS_SYMBOLS
 770 CXXFLAGS_DEBUG_SYMBOLS
 771 CFLAGS_DEBUG_SYMBOLS
 772 CXX_FLAG_DEPS
 773 C_FLAG_DEPS
 774 SHARED_LIBRARY_FLAGS
 775 SET_SHARED_LIBRARY_MAPFILE
 776 SET_SHARED_LIBRARY_NAME
 777 SET_SHARED_LIBRARY_ORIGIN
 778 SET_EXECUTABLE_ORIGIN
 779 CXX_FLAG_REORDER
 780 C_FLAG_REORDER
 781 JVM_RCFLAGS
 782 RC_FLAGS
 783 AR_OUT_OPTION
 784 LD_OUT_OPTION
 785 EXE_OUT_OPTION
 786 CC_OUT_OPTION
 787 STRIPFLAGS
 788 ARFLAGS
 789 COMPILER_BINDCMD_FILE_FLAG
 790 COMPILER_COMMAND_FILE_FLAG
 791 COMPILER_TARGET_BITS_FLAG
 792 JT_HOME
 793 JTREGEXE
 794 HOTSPOT_TOOLCHAIN_TYPE
 795 USING_BROKEN_SUSE_LD
 796 PACKAGE_PATH
 797 BUILD_AS
 798 BUILD_LDCXX
 799 BUILD_LD
 800 BUILD_STRIP
 801 BUILD_OBJCOPY
 802 BUILD_AR
 803 BUILD_NM
 804 BUILD_CXX
 805 BUILD_CC
 806 BUILD_SYSROOT_LDFLAGS
 807 BUILD_SYSROOT_CFLAGS
 808 ac_ct_OBJDUMP
 809 OBJDUMP
 810 ac_ct_OBJCOPY
 811 OBJCOPY
 812 ac_ct_NM
 813 ac_ct_STRIP
 814 GNM
 815 NM
 816 STRIP
 817 MSBUILD
 818 DUMPBIN
 819 RC
 820 MT
 821 LIPO
 822 ac_ct_AR
 823 AR
 824 AS
 825 LDCXX
 826 LD
 827 CXXCPP
 828 CPP
 829 CXX_VERSION_NUMBER
 830 CC_VERSION_NUMBER
 831 ac_ct_CXX
 832 CXXFLAGS
 833 CXX
 834 TOOLCHAIN_PATH_CXX
 835 POTENTIAL_CXX
 836 OBJEXT
 837 EXEEXT
 838 ac_ct_CC
 839 CPPFLAGS
 840 LDFLAGS
 841 CFLAGS
 842 CC
 843 TOOLCHAIN_PATH_CC
 844 POTENTIAL_CC
 845 TOOLCHAIN_VERSION
 846 VS_LIB
 847 VS_INCLUDE
 848 VS_PATH
 849 CYGWIN_LINK
 850 SYSROOT_LDFLAGS
 851 SYSROOT_CFLAGS
 852 EXTRA_LDFLAGS
 853 EXTRA_CXXFLAGS
 854 EXTRA_CFLAGS
 855 EXE_SUFFIX
 856 OBJ_SUFFIX
 857 STATIC_LIBRARY
 858 SHARED_LIBRARY
 859 STATIC_LIBRARY_SUFFIX
 860 SHARED_LIBRARY_SUFFIX
 861 LIBRARY_PREFIX
 862 TOOLCHAIN_TYPE
 863 STATIC_BUILD
 864 IMPORT_MODULES_MAKE
 865 IMPORT_MODULES_SRC
 866 IMPORT_MODULES_MAN
 867 IMPORT_MODULES_LEGAL
 868 IMPORT_MODULES_CONF
 869 IMPORT_MODULES_LIBS
 870 IMPORT_MODULES_CMDS
 871 IMPORT_MODULES_CLASSES
 872 BUILD_OUTPUT
 873 JDK_TOPDIR
 874 NASHORN_TOPDIR
 875 HOTSPOT_TOPDIR
 876 JAXWS_TOPDIR
 877 JAXP_TOPDIR
 878 CORBA_TOPDIR
 879 LANGTOOLS_TOPDIR
 880 EXTERNAL_BUILDJDK
 881 BUILD_JDK
 882 CREATE_BUILDJDK
 883 JLINK
 884 JMOD
 885 JAVAC_FLAGS
 886 BOOT_JDK_MODULAR
 887 BOOT_JDK_SOURCETARGET
 888 JARSIGNER
 889 JAR
 890 JAVAH
 891 JAVAC
 892 JAVA
 893 BOOT_JDK
 894 JAVA_CHECK
 895 JAVAC_CHECK
 896 VERSION_IS_GA
 897 VERSION_SHORT
 898 VERSION_STRING
 899 VERSION_NUMBER_FOUR_POSITIONS
 900 VERSION_NUMBER
 901 VERSION_OPT
 902 VERSION_BUILD
 903 VERSION_PRE
 904 VERSION_PATCH
 905 VERSION_SECURITY
 906 VERSION_MINOR
 907 VERSION_MAJOR
 908 MACOSX_BUNDLE_ID_BASE
 909 MACOSX_BUNDLE_NAME_BASE
 910 HOTSPOT_VM_DISTRO
 911 COMPANY_NAME
 912 JDK_RC_PLATFORM_NAME
 913 PRODUCT_SUFFIX
 914 PRODUCT_NAME
 915 LAUNCHER_NAME
 916 JLINK_KEEP_PACKAGED_MODULES
 917 COPYRIGHT_YEAR
 918 COMPRESS_JARS
 919 INCLUDE_SA
 920 UNLIMITED_CRYPTO
 921 CACERTS_FILE
 922 ENABLE_FULL_DOCS
 923 ENABLE_HEADLESS_ONLY
 924 DEFAULT_MAKE_TARGET
 925 OS_VERSION_MICRO
 926 OS_VERSION_MINOR
 927 OS_VERSION_MAJOR
 928 PKG_CONFIG
 929 BASH_ARGS
 930 SETFILE
 931 CODESIGN
 932 XATTR
 933 DSYMUTIL
 934 IS_GNU_TIME
 935 PATCH
 936 DTRACE
 937 FLOCK
 938 TIME
 939 STAT
 940 HG
 941 DOT
 942 READELF
 943 OTOOL
 944 LDD
 945 ZIPEXE
 946 UNZIP
 947 TAR_SUPPORTS_TRANSFORM
 948 TAR_INCLUDE_PARAM
 949 TAR_CREATE_EXTRA_PARAM
 950 TAR_TYPE
 951 FIND_DELETE
 952 OUTPUT_SYNC
 953 OUTPUT_SYNC_SUPPORTED
 954 CHECK_TOOLSDIR_MAKE
 955 CHECK_TOOLSDIR_GMAKE
 956 CHECK_MAKE
 957 CHECK_GMAKE
 958 MAKE
 959 PKGHANDLER
 960 CONFIGURESUPPORT_OUTPUTDIR
 961 OUTPUT_ROOT
 962 CONF_NAME
 963 SPEC
 964 SDKROOT
 965 XCODEBUILD
 966 JVM_VARIANT_MAIN
 967 VALID_JVM_VARIANTS
 968 JVM_VARIANTS
 969 DEBUG_LEVEL
 970 HOTSPOT_DEBUG_LEVEL
 971 JDK_VARIANT
 972 USERNAME
 973 CANONICAL_TOPDIR
 974 ORIGINAL_TOPDIR
 975 TOPDIR
 976 PATH_SEP
 977 HOTSPOT_BUILD_CPU_DEFINE
 978 HOTSPOT_BUILD_CPU_ARCH
 979 HOTSPOT_BUILD_CPU
 980 HOTSPOT_BUILD_OS_TYPE
 981 HOTSPOT_BUILD_OS
 982 OPENJDK_BUILD_BUNDLE_PLATFORM
 983 OPENJDK_BUILD_OS_EXPORT_DIR
 984 OPENJDK_BUILD_CPU_OSARCH
 985 OPENJDK_BUILD_CPU_ISADIR
 986 OPENJDK_BUILD_CPU_LEGACY_LIB
 987 OPENJDK_BUILD_CPU_LEGACY
 988 HOTSPOT_TARGET_CPU_DEFINE
 989 HOTSPOT_TARGET_CPU_ARCH
 990 HOTSPOT_TARGET_CPU
 991 HOTSPOT_TARGET_OS_TYPE
 992 HOTSPOT_TARGET_OS
 993 DEFINE_CROSS_COMPILE_ARCH
 994 OPENJDK_TARGET_BUNDLE_PLATFORM
 995 OPENJDK_TARGET_OS_EXPORT_DIR
 996 OPENJDK_TARGET_CPU_OSARCH
 997 OPENJDK_TARGET_CPU_ISADIR
 998 OPENJDK_TARGET_CPU_LEGACY_LIB
 999 OPENJDK_TARGET_CPU_LEGACY
1000 RELEASE_FILE_OS_ARCH
1001 RELEASE_FILE_OS_NAME
1002 OPENJDK_MODULE_TARGET_PLATFORM
1003 COMPILE_TYPE
1004 OPENJDK_TARGET_CPU_ENDIAN
1005 OPENJDK_TARGET_CPU_BITS
1006 OPENJDK_TARGET_CPU_ARCH
1007 OPENJDK_TARGET_CPU
1008 OPENJDK_TARGET_OS_ENV
1009 OPENJDK_TARGET_OS_TYPE
1010 OPENJDK_TARGET_OS
1011 OPENJDK_BUILD_CPU_ENDIAN
1012 OPENJDK_BUILD_CPU_BITS
1013 OPENJDK_BUILD_CPU_ARCH
1014 OPENJDK_BUILD_CPU
1015 OPENJDK_BUILD_OS_ENV
1016 OPENJDK_BUILD_OS_TYPE
1017 OPENJDK_BUILD_OS
1018 OPENJDK_BUILD_AUTOCONF_NAME
1019 OPENJDK_TARGET_AUTOCONF_NAME
1020 target_os
1021 target_vendor
1022 target_cpu
1023 target
1024 host_os
1025 host_vendor
1026 host_cpu
1027 host
1028 build_os
1029 build_vendor
1030 build_cpu
1031 build
1032 PANDOC
1033 NICE
1034 CPIO
1035 DF
1036 READLINK
1037 CYGPATH
1038 SED
1039 FGREP
1040 EGREP
1041 GREP
1042 AWK
1043 XARGS
1044 WHICH
1045 WC
1046 UNIQ
1047 UNAME
1048 TR
1049 TOUCH
1050 TEE
1051 TAR
1052 TAIL
1053 SORT
1054 SH
1055 RMDIR
1056 RM
1057 PRINTF
1058 NAWK
1059 MV
1060 MKTEMP
1061 MKDIR
1062 LS
1063 LN
1064 GZIP
1065 GUNZIP
1066 HEAD
1067 FIND
1068 FILE
1069 EXPR
1070 ECHO
1071 DIRNAME
1072 DIFF
1073 DATE
1074 CUT
1075 CP
1076 COMM
1077 CMP
1078 CHMOD
1079 CAT
1080 BASH
1081 BASENAME
1082 DATE_WHEN_CONFIGURED
1083 ORIGINAL_PATH
1084 CONFIGURE_COMMAND_LINE
1085 target_alias
1086 host_alias
1087 build_alias
1088 LIBS
1089 ECHO_T
1090 ECHO_N
1091 ECHO_C
1092 DEFS
1093 mandir
1094 localedir
1095 libdir
1096 psdir
1097 pdfdir
1098 dvidir
1099 htmldir
1100 infodir
1101 docdir
1102 oldincludedir
1103 includedir
1104 localstatedir
1105 sharedstatedir
1106 sysconfdir
1107 datadir
1108 datarootdir
1109 libexecdir
1110 sbindir
1111 bindir
1112 program_transform_name
1113 prefix
1114 exec_prefix
1115 PACKAGE_URL
1116 PACKAGE_BUGREPORT
1117 PACKAGE_STRING
1118 PACKAGE_VERSION
1119 PACKAGE_TARNAME
1120 PACKAGE_NAME
1121 PATH_SEPARATOR
1122 SHELL'
1123 ac_subst_files=''
1124 ac_user_opts='
1125 enable_option_checking
1126 with_target_bits
1127 enable_openjdk_only
1128 with_custom_make_dir
1129 with_jdk_variant
1130 enable_debug
1131 with_debug_level
1132 with_jvm_variants
1133 with_cpu_port
1134 with_devkit
1135 with_sys_root
1136 with_sysroot
1137 with_tools_dir
1138 with_toolchain_path
1139 with_extra_path
1140 with_sdk_name
1141 with_conf_name
1142 with_output_sync
1143 with_default_make_target
1144 enable_headless_only
1145 enable_full_docs
1146 with_cacerts_file
1147 enable_unlimited_crypto
1148 with_copyright_year
1149 enable_keep_packaged_modules
1150 with_milestone
1151 with_update_version
1152 with_user_release_suffix
1153 with_build_number
1154 with_version_string
1155 with_version_pre
1156 with_version_opt
1157 with_version_build
1158 with_version_major
1159 with_version_minor
1160 with_version_security
1161 with_version_patch
1162 with_boot_jdk
1163 with_build_jdk
1164 with_add_source_root
1165 with_override_source_root
1166 with_adds_and_overrides
1167 with_override_langtools
1168 with_override_corba
1169 with_override_jaxp
1170 with_override_jaxws
1171 with_override_hotspot
1172 with_override_nashorn
1173 with_override_jdk
1174 with_import_hotspot
1175 with_import_modules
1176 enable_static_build
1177 with_toolchain_type
1178 with_extra_cflags
1179 with_extra_cxxflags
1180 with_extra_ldflags
1181 with_toolchain_version
1182 with_build_devkit
1183 with_jtreg
1184 with_abi_profile
1185 enable_warnings_as_errors
1186 with_native_debug_symbols
1187 enable_debug_symbols
1188 enable_zip_debug_info
1189 enable_native_coverage
1190 enable_dtrace
1191 enable_aot
1192 enable_hotspot_gtest
1193 with_stdc__lib
1194 with_msvcr_dll
1195 with_msvcp_dll
1196 with_x
1197 with_cups
1198 with_cups_include
1199 with_freetype
1200 with_freetype_include
1201 with_freetype_lib
1202 with_freetype_src
1203 enable_freetype_bundling
1204 with_freetype_license
1205 with_alsa
1206 with_alsa_include
1207 with_alsa_lib
1208 with_libffi
1209 with_libffi_include
1210 with_libffi_lib
1211 enable_libffi_bundling
1212 with_libjpeg
1213 with_giflib
1214 with_libpng
1215 with_zlib
1216 with_lcms
1217 with_dxsdk
1218 with_dxsdk_lib
1219 with_dxsdk_include
1220 with_libelf
1221 with_libelf_include
1222 with_libelf_lib
1223 with_jvm_features
1224 with_jvm_interpreter
1225 enable_jtreg_failure_handler
1226 enable_generate_classlist
1227 with_num_cores
1228 with_memory_size
1229 with_jobs
1230 with_test_jobs
1231 with_boot_jdk_jvmargs
1232 with_sjavac_server_java
1233 enable_sjavac
1234 enable_javac_server
1235 enable_icecc
1236 enable_precompiled_headers
1237 enable_ccache
1238 with_ccache_dir
1239 '
1240       ac_precious_vars='build_alias
1241 host_alias
1242 target_alias
1243 BASENAME
1244 BASH
1245 CAT
1246 CHMOD
1247 CMP
1248 COMM
1249 CP
1250 CUT
1251 DATE
1252 DIFF
1253 DIRNAME
1254 ECHO
1255 EXPR
1256 FILE
1257 FIND
1258 HEAD
1259 GUNZIP
1260 GZIP
1261 LN
1262 LS
1263 MKDIR
1264 MKTEMP
1265 MV
1266 NAWK
1267 PRINTF
1268 RM
1269 RMDIR
1270 SH
1271 SORT
1272 TAIL
1273 TAR
1274 TEE
1275 TOUCH
1276 TR
1277 UNAME
1278 UNIQ
1279 WC
1280 WHICH
1281 XARGS
1282 AWK
1283 GREP
1284 EGREP
1285 FGREP
1286 SED
1287 CYGPATH
1288 READLINK
1289 DF
1290 CPIO
1291 NICE
1292 PANDOC
1293 MAKE
1294 UNZIP
1295 ZIPEXE
1296 LDD
1297 OTOOL
1298 READELF
1299 DOT
1300 HG
1301 STAT
1302 TIME
1303 FLOCK
1304 DTRACE
1305 PATCH
1306 DSYMUTIL
1307 XATTR
1308 CODESIGN
1309 SETFILE
1310 PKG_CONFIG
1311 JAVA
1312 JAVAC
1313 JAVAH
1314 JAR
1315 JARSIGNER
1316 CC
1317 CFLAGS
1318 LDFLAGS
1319 LIBS
1320 CPPFLAGS
1321 CXX
1322 CXXFLAGS
1323 CCC
1324 CPP
1325 CXXCPP
1326 AS
1327 AR
1328 LIPO
1329 STRIP
1330 NM
1331 GNM
1332 OBJCOPY
1333 OBJDUMP
1334 BUILD_CC
1335 BUILD_CXX
1336 BUILD_NM
1337 BUILD_AR
1338 BUILD_OBJCOPY
1339 BUILD_STRIP
1340 JTREGEXE
1341 XMKMF
1342 FREETYPE_CFLAGS
1343 FREETYPE_LIBS
1344 ALSA_CFLAGS
1345 ALSA_LIBS
1346 LIBFFI_CFLAGS
1347 LIBFFI_LIBS
1348 PNG_CFLAGS
1349 PNG_LIBS
1350 LCMS_CFLAGS
1351 LCMS_LIBS
1352 ELF_CFLAGS
1353 ELF_LIBS
1354 ICECC_CMD
1355 ICECC_CREATE_ENV
1356 ICECC_WRAPPER
1357 CCACHE'
1358 
1359 
1360 # Initialize some variables set by options.
1361 ac_init_help=
1362 ac_init_version=false
1363 ac_unrecognized_opts=
1364 ac_unrecognized_sep=
1365 # The variables have the same names as the options, with
1366 # dashes changed to underlines.
1367 cache_file=/dev/null
1368 exec_prefix=NONE
1369 no_create=
1370 no_recursion=
1371 prefix=NONE
1372 program_prefix=NONE
1373 program_suffix=NONE
1374 program_transform_name=s,x,x,
1375 silent=
1376 site=
1377 srcdir=
1378 verbose=
1379 x_includes=NONE
1380 x_libraries=NONE
1381 
1382 # Installation directory options.
1383 # These are left unexpanded so users can "make install exec_prefix=/foo"
1384 # and all the variables that are supposed to be based on exec_prefix
1385 # by default will actually change.
1386 # Use braces instead of parens because sh, perl, etc. also accept them.
1387 # (The list follows the same order as the GNU Coding Standards.)
1388 bindir='${exec_prefix}/bin'
1389 sbindir='${exec_prefix}/sbin'
1390 libexecdir='${exec_prefix}/libexec'
1391 datarootdir='${prefix}/share'
1392 datadir='${datarootdir}'
1393 sysconfdir='${prefix}/etc'
1394 sharedstatedir='${prefix}/com'
1395 localstatedir='${prefix}/var'
1396 includedir='${prefix}/include'
1397 oldincludedir='/usr/include'
1398 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1399 infodir='${datarootdir}/info'
1400 htmldir='${docdir}'
1401 dvidir='${docdir}'
1402 pdfdir='${docdir}'
1403 psdir='${docdir}'
1404 libdir='${exec_prefix}/lib'
1405 localedir='${datarootdir}/locale'
1406 mandir='${datarootdir}/man'
1407 
1408 ac_prev=
1409 ac_dashdash=
1410 for ac_option
1411 do
1412   # If the previous option needs an argument, assign it.
1413   if test -n "$ac_prev"; then
1414     eval $ac_prev=\$ac_option
1415     ac_prev=
1416     continue
1417   fi
1418 
1419   case $ac_option in
1420   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1421   *=)   ac_optarg= ;;
1422   *)    ac_optarg=yes ;;
1423   esac
1424 
1425   # Accept the important Cygnus configure options, so we can diagnose typos.
1426 
1427   case $ac_dashdash$ac_option in
1428   --)
1429     ac_dashdash=yes ;;
1430 
1431   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1432     ac_prev=bindir ;;
1433   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1434     bindir=$ac_optarg ;;
1435 
1436   -build | --build | --buil | --bui | --bu)
1437     ac_prev=build_alias ;;
1438   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1439     build_alias=$ac_optarg ;;
1440 
1441   -cache-file | --cache-file | --cache-fil | --cache-fi \
1442   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1443     ac_prev=cache_file ;;
1444   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1445   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1446     cache_file=$ac_optarg ;;
1447 
1448   --config-cache | -C)
1449     cache_file=config.cache ;;
1450 
1451   -datadir | --datadir | --datadi | --datad)
1452     ac_prev=datadir ;;
1453   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1454     datadir=$ac_optarg ;;
1455 
1456   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1457   | --dataroo | --dataro | --datar)
1458     ac_prev=datarootdir ;;
1459   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1460   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1461     datarootdir=$ac_optarg ;;
1462 
1463   -disable-* | --disable-*)
1464     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1465     # Reject names that are not valid shell variable names.
1466     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1467       as_fn_error $? "invalid feature name: $ac_useropt"
1468     ac_useropt_orig=$ac_useropt
1469     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1470     case $ac_user_opts in
1471       *"
1472 "enable_$ac_useropt"
1473 "*) ;;
1474       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1475          ac_unrecognized_sep=', ';;
1476     esac
1477     eval enable_$ac_useropt=no ;;
1478 
1479   -docdir | --docdir | --docdi | --doc | --do)
1480     ac_prev=docdir ;;
1481   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1482     docdir=$ac_optarg ;;
1483 
1484   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1485     ac_prev=dvidir ;;
1486   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1487     dvidir=$ac_optarg ;;
1488 
1489   -enable-* | --enable-*)
1490     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1491     # Reject names that are not valid shell variable names.
1492     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1493       as_fn_error $? "invalid feature name: $ac_useropt"
1494     ac_useropt_orig=$ac_useropt
1495     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1496     case $ac_user_opts in
1497       *"
1498 "enable_$ac_useropt"
1499 "*) ;;
1500       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1501          ac_unrecognized_sep=', ';;
1502     esac
1503     eval enable_$ac_useropt=\$ac_optarg ;;
1504 
1505   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1506   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1507   | --exec | --exe | --ex)
1508     ac_prev=exec_prefix ;;
1509   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1510   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1511   | --exec=* | --exe=* | --ex=*)
1512     exec_prefix=$ac_optarg ;;
1513 
1514   -gas | --gas | --ga | --g)
1515     # Obsolete; use --with-gas.
1516     with_gas=yes ;;
1517 
1518   -help | --help | --hel | --he | -h)
1519     ac_init_help=long ;;
1520   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1521     ac_init_help=recursive ;;
1522   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1523     ac_init_help=short ;;
1524 
1525   -host | --host | --hos | --ho)
1526     ac_prev=host_alias ;;
1527   -host=* | --host=* | --hos=* | --ho=*)
1528     host_alias=$ac_optarg ;;
1529 
1530   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1531     ac_prev=htmldir ;;
1532   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1533   | --ht=*)
1534     htmldir=$ac_optarg ;;
1535 
1536   -includedir | --includedir | --includedi | --included | --include \
1537   | --includ | --inclu | --incl | --inc)
1538     ac_prev=includedir ;;
1539   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1540   | --includ=* | --inclu=* | --incl=* | --inc=*)
1541     includedir=$ac_optarg ;;
1542 
1543   -infodir | --infodir | --infodi | --infod | --info | --inf)
1544     ac_prev=infodir ;;
1545   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1546     infodir=$ac_optarg ;;
1547 
1548   -libdir | --libdir | --libdi | --libd)
1549     ac_prev=libdir ;;
1550   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1551     libdir=$ac_optarg ;;
1552 
1553   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1554   | --libexe | --libex | --libe)
1555     ac_prev=libexecdir ;;
1556   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1557   | --libexe=* | --libex=* | --libe=*)
1558     libexecdir=$ac_optarg ;;
1559 
1560   -localedir | --localedir | --localedi | --localed | --locale)
1561     ac_prev=localedir ;;
1562   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1563     localedir=$ac_optarg ;;
1564 
1565   -localstatedir | --localstatedir | --localstatedi | --localstated \
1566   | --localstate | --localstat | --localsta | --localst | --locals)
1567     ac_prev=localstatedir ;;
1568   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1569   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1570     localstatedir=$ac_optarg ;;
1571 
1572   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1573     ac_prev=mandir ;;
1574   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1575     mandir=$ac_optarg ;;
1576 
1577   -nfp | --nfp | --nf)
1578     # Obsolete; use --without-fp.
1579     with_fp=no ;;
1580 
1581   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1582   | --no-cr | --no-c | -n)
1583     no_create=yes ;;
1584 
1585   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1586   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1587     no_recursion=yes ;;
1588 
1589   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1590   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1591   | --oldin | --oldi | --old | --ol | --o)
1592     ac_prev=oldincludedir ;;
1593   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1594   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1595   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1596     oldincludedir=$ac_optarg ;;
1597 
1598   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1599     ac_prev=prefix ;;
1600   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1601     prefix=$ac_optarg ;;
1602 
1603   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1604   | --program-pre | --program-pr | --program-p)
1605     ac_prev=program_prefix ;;
1606   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1607   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1608     program_prefix=$ac_optarg ;;
1609 
1610   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1611   | --program-suf | --program-su | --program-s)
1612     ac_prev=program_suffix ;;
1613   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1614   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1615     program_suffix=$ac_optarg ;;
1616 
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     ac_prev=program_transform_name ;;
1625   -program-transform-name=* | --program-transform-name=* \
1626   | --program-transform-nam=* | --program-transform-na=* \
1627   | --program-transform-n=* | --program-transform-=* \
1628   | --program-transform=* | --program-transfor=* \
1629   | --program-transfo=* | --program-transf=* \
1630   | --program-trans=* | --program-tran=* \
1631   | --progr-tra=* | --program-tr=* | --program-t=*)
1632     program_transform_name=$ac_optarg ;;
1633 
1634   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1635     ac_prev=pdfdir ;;
1636   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1637     pdfdir=$ac_optarg ;;
1638 
1639   -psdir | --psdir | --psdi | --psd | --ps)
1640     ac_prev=psdir ;;
1641   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1642     psdir=$ac_optarg ;;
1643 
1644   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1645   | -silent | --silent | --silen | --sile | --sil)
1646     silent=yes ;;
1647 
1648   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1649     ac_prev=sbindir ;;
1650   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1651   | --sbi=* | --sb=*)
1652     sbindir=$ac_optarg ;;
1653 
1654   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1655   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1656   | --sharedst | --shareds | --shared | --share | --shar \
1657   | --sha | --sh)
1658     ac_prev=sharedstatedir ;;
1659   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1660   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1661   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1662   | --sha=* | --sh=*)
1663     sharedstatedir=$ac_optarg ;;
1664 
1665   -site | --site | --sit)
1666     ac_prev=site ;;
1667   -site=* | --site=* | --sit=*)
1668     site=$ac_optarg ;;
1669 
1670   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1671     ac_prev=srcdir ;;
1672   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1673     srcdir=$ac_optarg ;;
1674 
1675   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1676   | --syscon | --sysco | --sysc | --sys | --sy)
1677     ac_prev=sysconfdir ;;
1678   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1679   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1680     sysconfdir=$ac_optarg ;;
1681 
1682   -target | --target | --targe | --targ | --tar | --ta | --t)
1683     ac_prev=target_alias ;;
1684   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1685     target_alias=$ac_optarg ;;
1686 
1687   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1688     verbose=yes ;;
1689 
1690   -version | --version | --versio | --versi | --vers | -V)
1691     ac_init_version=: ;;
1692 
1693   -with-* | --with-*)
1694     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1695     # Reject names that are not valid shell variable names.
1696     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1697       as_fn_error $? "invalid package name: $ac_useropt"
1698     ac_useropt_orig=$ac_useropt
1699     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1700     case $ac_user_opts in
1701       *"
1702 "with_$ac_useropt"
1703 "*) ;;
1704       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1705          ac_unrecognized_sep=', ';;
1706     esac
1707     eval with_$ac_useropt=\$ac_optarg ;;
1708 
1709   -without-* | --without-*)
1710     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1711     # Reject names that are not valid shell variable names.
1712     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1713       as_fn_error $? "invalid package name: $ac_useropt"
1714     ac_useropt_orig=$ac_useropt
1715     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1716     case $ac_user_opts in
1717       *"
1718 "with_$ac_useropt"
1719 "*) ;;
1720       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1721          ac_unrecognized_sep=', ';;
1722     esac
1723     eval with_$ac_useropt=no ;;
1724 
1725   --x)
1726     # Obsolete; use --with-x.
1727     with_x=yes ;;
1728 
1729   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1730   | --x-incl | --x-inc | --x-in | --x-i)
1731     ac_prev=x_includes ;;
1732   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1733   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1734     x_includes=$ac_optarg ;;
1735 
1736   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1737   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1738     ac_prev=x_libraries ;;
1739   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1740   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1741     x_libraries=$ac_optarg ;;
1742 
1743   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1744 Try \`$0 --help' for more information"
1745     ;;
1746 
1747   *=*)
1748     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1749     # Reject names that are not valid shell variable names.
1750     case $ac_envvar in #(
1751       '' | [0-9]* | *[!_$as_cr_alnum]* )
1752       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1753     esac
1754     eval $ac_envvar=\$ac_optarg
1755     export $ac_envvar ;;
1756 
1757   *)
1758     # FIXME: should be removed in autoconf 3.0.
1759     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1760     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1761       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1762     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1763     ;;
1764 
1765   esac
1766 done
1767 
1768 if test -n "$ac_prev"; then
1769   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1770   as_fn_error $? "missing argument to $ac_option"
1771 fi
1772 
1773 if test -n "$ac_unrecognized_opts"; then
1774   case $enable_option_checking in
1775     no) ;;
1776     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1777     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1778   esac
1779 fi
1780 
1781 # Check all directory arguments for consistency.
1782 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1783                 datadir sysconfdir sharedstatedir localstatedir includedir \
1784                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1785                 libdir localedir mandir
1786 do
1787   eval ac_val=\$$ac_var
1788   # Remove trailing slashes.
1789   case $ac_val in
1790     */ )
1791       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1792       eval $ac_var=\$ac_val;;
1793   esac
1794   # Be sure to have absolute directory names.
1795   case $ac_val in
1796     [\\/$]* | ?:[\\/]* )  continue;;
1797     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1798   esac
1799   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1800 done
1801 
1802 # There might be people who depend on the old broken behavior: `$host'
1803 # used to hold the argument of --host etc.
1804 # FIXME: To remove some day.
1805 build=$build_alias
1806 host=$host_alias
1807 target=$target_alias
1808 
1809 # FIXME: To remove some day.
1810 if test "x$host_alias" != x; then
1811   if test "x$build_alias" = x; then
1812     cross_compiling=maybe
1813   elif test "x$build_alias" != "x$host_alias"; then
1814     cross_compiling=yes
1815   fi
1816 fi
1817 
1818 ac_tool_prefix=
1819 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1820 
1821 test "$silent" = yes && exec 6>/dev/null
1822 
1823 
1824 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1825 ac_ls_di=`ls -di .` &&
1826 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1827   as_fn_error $? "working directory cannot be determined"
1828 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1829   as_fn_error $? "pwd does not report name of working directory"
1830 
1831 
1832 # Find the source files, if location was not specified.
1833 if test -z "$srcdir"; then
1834   ac_srcdir_defaulted=yes
1835   # Try the directory containing this script, then the parent directory.
1836   ac_confdir=`$as_dirname -- "$as_myself" ||
1837 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1838          X"$as_myself" : 'X\(//\)[^/]' \| \
1839          X"$as_myself" : 'X\(//\)$' \| \
1840          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1841 $as_echo X"$as_myself" |
1842     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1843             s//\1/
1844             q
1845           }
1846           /^X\(\/\/\)[^/].*/{
1847             s//\1/
1848             q
1849           }
1850           /^X\(\/\/\)$/{
1851             s//\1/
1852             q
1853           }
1854           /^X\(\/\).*/{
1855             s//\1/
1856             q
1857           }
1858           s/.*/./; q'`
1859   srcdir=$ac_confdir
1860   if test ! -r "$srcdir/$ac_unique_file"; then
1861     srcdir=..
1862   fi
1863 else
1864   ac_srcdir_defaulted=no
1865 fi
1866 if test ! -r "$srcdir/$ac_unique_file"; then
1867   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1868   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1869 fi
1870 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1871 ac_abs_confdir=`(
1872         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1873         pwd)`
1874 # When building in place, set srcdir=.
1875 if test "$ac_abs_confdir" = "$ac_pwd"; then
1876   srcdir=.
1877 fi
1878 # Remove unnecessary trailing slashes from srcdir.
1879 # Double slashes in file names in object file debugging info
1880 # mess up M-x gdb in Emacs.
1881 case $srcdir in
1882 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1883 esac
1884 for ac_var in $ac_precious_vars; do
1885   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1886   eval ac_env_${ac_var}_value=\$${ac_var}
1887   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1888   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1889 done
1890 
1891 #
1892 # Report the --help message.
1893 #
1894 if test "$ac_init_help" = "long"; then
1895   # Omit some internal or obsolete options to make the list less imposing.
1896   # This message is too long to be a string in the A/UX 3.1 sh.
1897   cat <<_ACEOF
1898 \`configure' configures OpenJDK jdk9 to adapt to many kinds of systems.
1899 
1900 Usage: $0 [OPTION]... [VAR=VALUE]...
1901 
1902 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1903 VAR=VALUE.  See below for descriptions of some of the useful variables.
1904 
1905 Defaults for the options are specified in brackets.
1906 
1907 Configuration:
1908   -h, --help              display this help and exit
1909       --help=short        display options specific to this package
1910       --help=recursive    display the short help of all the included packages
1911   -V, --version           display version information and exit
1912   -q, --quiet, --silent   do not print \`checking ...' messages
1913       --cache-file=FILE   cache test results in FILE [disabled]
1914   -C, --config-cache      alias for \`--cache-file=config.cache'
1915   -n, --no-create         do not create output files
1916       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1917 
1918 Installation directories:
1919   --prefix=PREFIX         install architecture-independent files in PREFIX
1920                           [$ac_default_prefix]
1921   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1922                           [PREFIX]
1923 
1924 By default, \`make install' will install all the files in
1925 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1926 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1927 for instance \`--prefix=\$HOME'.
1928 
1929 For better control, use the options below.
1930 
1931 Fine tuning of the installation directories:
1932   --bindir=DIR            user executables [EPREFIX/bin]
1933   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1934   --libexecdir=DIR        program executables [EPREFIX/libexec]
1935   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1936   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1937   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1938   --libdir=DIR            object code libraries [EPREFIX/lib]
1939   --includedir=DIR        C header files [PREFIX/include]
1940   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1941   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1942   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1943   --infodir=DIR           info documentation [DATAROOTDIR/info]
1944   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1945   --mandir=DIR            man documentation [DATAROOTDIR/man]
1946   --docdir=DIR            documentation root [DATAROOTDIR/doc/openjdk]
1947   --htmldir=DIR           html documentation [DOCDIR]
1948   --dvidir=DIR            dvi documentation [DOCDIR]
1949   --pdfdir=DIR            pdf documentation [DOCDIR]
1950   --psdir=DIR             ps documentation [DOCDIR]
1951 _ACEOF
1952 
1953   cat <<\_ACEOF
1954 
1955 X features:
1956   --x-includes=DIR    X include files are in DIR
1957   --x-libraries=DIR   X library files are in DIR
1958 
1959 System types:
1960   --build=BUILD     configure for building on BUILD [guessed]
1961   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1962   --target=TARGET   configure for building compilers for TARGET [HOST]
1963 _ACEOF
1964 fi
1965 
1966 if test -n "$ac_init_help"; then
1967   case $ac_init_help in
1968      short | recursive ) echo "Configuration of OpenJDK jdk9:";;
1969    esac
1970   cat <<\_ACEOF
1971 
1972 Optional Features:
1973   --disable-option-checking  ignore unrecognized --enable/--with options
1974   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1975   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1976   --enable-openjdk-only   suppress building custom source even if present
1977                           [disabled]
1978   --enable-debug          set the debug level to fastdebug (shorthand for
1979                           --with-debug-level=fastdebug) [disabled]
1980   --enable-headless-only  only build headless (no GUI) support [disabled]
1981   --enable-full-docs      build complete documentation [enabled if all tools
1982                           found]
1983   --disable-unlimited-crypto
1984                           Disable unlimited crypto policy [enabled]
1985   --disable-keep-packaged-modules
1986                           Do not keep packaged modules in jdk image [enable]
1987   --enable-static-build   enable static library build [disabled]
1988   --disable-warnings-as-errors
1989                           do not consider native warnings to be an error
1990                           [enabled]
1991   --enable-debug-symbols  Deprecated. Option is kept for backwards
1992                           compatibility and is ignored
1993   --enable-zip-debug-info Deprecated. Option is kept for backwards
1994                           compatibility and is ignored
1995   --enable-native-coverage
1996                           enable native compilation with code coverage
1997                           data[disabled]
1998   --enable-dtrace[=yes/no/auto]
1999                           enable dtrace. Default is auto, where dtrace is
2000                           enabled if all dependencies are present.
2001   --enable-aot[=yes/no/auto]
2002                           enable ahead of time compilation feature. Default is
2003                           auto, where aot is enabled if all dependencies are
2004                           present.
2005   --disable-hotspot-gtest Disables building of the Hotspot unit tests
2006   --disable-freetype-bundling
2007                           disable bundling of the freetype library with the
2008                           build result [enabled on Windows or when using
2009                           --with-freetype, disabled otherwise]
2010   --enable-libffi-bundling
2011                           enable bundling of libffi.so to make the built JDK
2012                           runnable on more systems
2013   --enable-jtreg-failure-handler
2014                           forces build of the jtreg failure handler to be
2015                           enabled, missing dependencies become fatal errors.
2016                           Default is auto, where the failure handler is built
2017                           if all dependencies are present and otherwise just
2018                           disabled.
2019   --disable-generate-classlist
2020                           forces enabling or disabling of the generation of a
2021                           CDS classlist at build time. Default is to generate
2022                           it when either the server or client JVMs are built.
2023   --enable-sjavac         use sjavac to do fast incremental compiles
2024                           [disabled]
2025   --disable-javac-server  disable javac server [enabled]
2026   --enable-icecc          enable distribted compilation of native code using
2027                           icecc/icecream [disabled]
2028   --disable-precompiled-headers
2029                           disable using precompiled headers when compiling C++
2030                           [enabled]
2031   --enable-ccache         enable using ccache to speed up recompilations
2032                           [disabled]
2033 
2034 Optional Packages:
2035   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
2036   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
2037   --with-target-bits      build 32-bit or 64-bit binaries (for platforms that
2038                           support it), e.g. --with-target-bits=32 [guessed]
2039   --with-custom-make-dir  Deprecated. Option is kept for backwards
2040                           compatibility and is ignored
2041   --with-jdk-variant      JDK variant to build (normal) [normal]
2042   --with-debug-level      set the debug level (release, fastdebug, slowdebug,
2043                           optimized) [release]
2044   --with-jvm-variants     JVM variants (separated by commas) to build
2045                           (server,client,minimal,core,zero,zeroshark,custom)
2046                           [server]
2047   --with-cpu-port         specify sources to use for Hotspot 64-bit ARM port
2048                           (arm64,aarch64) [aarch64]
2049   --with-devkit           use this devkit for compilers, tools and resources
2050   --with-sys-root         alias for --with-sysroot for backwards compatability
2051   --with-sysroot          use this directory as sysroot
2052   --with-tools-dir        alias for --with-toolchain-path for backwards
2053                           compatibility
2054   --with-toolchain-path   prepend these directories when searching for
2055                           toolchain binaries (compilers etc)
2056   --with-extra-path       prepend these directories to the default path
2057   --with-sdk-name         use the platform SDK of the given name. [macosx]
2058   --with-conf-name        use this as the name of the configuration [generated
2059                           from important configuration options]
2060   --with-output-sync      set make output sync type if supported by make.
2061                           [recurse]
2062   --with-default-make-target
2063                           set the default make target [exploded-image]
2064   --with-cacerts-file     specify alternative cacerts file
2065   --with-copyright-year   Set copyright year value for build [current year]
2066   --with-milestone        Deprecated. Option is kept for backwards
2067                           compatibility and is ignored
2068   --with-update-version   Deprecated. Option is kept for backwards
2069                           compatibility and is ignored
2070   --with-user-release-suffix
2071                           Deprecated. Option is kept for backwards
2072                           compatibility and is ignored
2073   --with-build-number     Deprecated. Option is kept for backwards
2074                           compatibility and is ignored
2075   --with-version-string   Set version string [calculated]
2076   --with-version-pre      Set the base part of the version 'PRE' field
2077                           (pre-release identifier) ['internal']
2078   --with-version-opt      Set version 'OPT' field (build metadata)
2079                           [<timestamp>.<user>.<dirname>]
2080   --with-version-build    Set version 'BUILD' field (build number) [not
2081                           specified]
2082   --with-version-major    Set version 'MAJOR' field (first number) [current
2083                           source value]
2084   --with-version-minor    Set version 'MINOR' field (second number) [current
2085                           source value]
2086   --with-version-security Set version 'SECURITY' field (third number) [current
2087                           source value]
2088   --with-version-patch    Set version 'PATCH' field (fourth number) [not
2089                           specified]
2090   --with-boot-jdk         path to Boot JDK (used to bootstrap build) [probed]
2091   --with-build-jdk        path to JDK of same version as is being built[the
2092                           newly built JDK]
2093   --with-add-source-root  Deprecated. Option is kept for backwards
2094                           compatibility and is ignored
2095   --with-override-source-root
2096                           Deprecated. Option is kept for backwards
2097                           compatibility and is ignored
2098   --with-adds-and-overrides
2099                           Deprecated. Option is kept for backwards
2100                           compatibility and is ignored
2101   --with-override-langtools
2102                           Deprecated. Option is kept for backwards
2103                           compatibility and is ignored
2104   --with-override-corba   Deprecated. Option is kept for backwards
2105                           compatibility and is ignored
2106   --with-override-jaxp    Deprecated. Option is kept for backwards
2107                           compatibility and is ignored
2108   --with-override-jaxws   Deprecated. Option is kept for backwards
2109                           compatibility and is ignored
2110   --with-override-hotspot Deprecated. Option is kept for backwards
2111                           compatibility and is ignored
2112   --with-override-nashorn Deprecated. Option is kept for backwards
2113                           compatibility and is ignored
2114   --with-override-jdk     Deprecated. Option is kept for backwards
2115                           compatibility and is ignored
2116   --with-import_hotspot   Deprecated. Option is kept for backwards
2117                           compatibility and is ignored
2118   --with-import-modules   import a set of prebuilt modules either as a zip
2119                           file or an exploded directory
2120   --with-toolchain-type   the toolchain type (or family) to use, use '--help'
2121                           to show possible values [platform dependent]
2122   --with-extra-cflags     extra flags to be used when compiling jdk c-files
2123   --with-extra-cxxflags   extra flags to be used when compiling jdk c++-files
2124   --with-extra-ldflags    extra flags to be used when linking jdk
2125   --with-toolchain-version
2126                           the version of the toolchain to look for, use
2127                           '--help' to show possible values [platform
2128                           dependent]
2129   --with-build-devkit     Devkit to use for the build platform toolchain
2130   --with-jtreg            Regression Test Harness [probed]
2131   --with-abi-profile      specify ABI profile for ARM builds
2132                           (arm-vfp-sflt,arm-vfp-hflt,arm-sflt,
2133                           armv5-vfp-sflt,armv6-vfp-hflt,arm64,aarch64)
2134                           [toolchain dependent]
2135   --with-native-debug-symbols
2136                           set the native debug symbol configuration (none,
2137                           internal, external, zipped) [varying]
2138   --with-stdc++lib=<static>,<dynamic>,<default>
2139                           force linking of the C++ runtime on Linux to either
2140                           static or dynamic, default is static with dynamic as
2141                           fallback
2142   --with-msvcr-dll        path to microsoft C runtime dll (msvcr*.dll)
2143                           (Windows only) [probed]
2144   --with-msvcp-dll        path to microsoft C++ runtime dll (msvcp*.dll)
2145                           (Windows only) [probed]
2146   --with-x                use the X Window System
2147   --with-cups             specify prefix directory for the cups package
2148                           (expecting the headers under PATH/include)
2149   --with-cups-include     specify directory for the cups include files
2150   --with-freetype         specify prefix directory for the freetype package
2151                           (expecting the libraries under PATH/lib and the
2152                           headers under PATH/include)
2153   --with-freetype-include specify directory for the freetype include files
2154   --with-freetype-lib     specify directory for the freetype library
2155   --with-freetype-src     specify directory with freetype sources to
2156                           automatically build the library (experimental,
2157                           Windows-only)
2158   --with-freetype-license if bundling freetype, also bundle this license file
2159   --with-alsa             specify prefix directory for the alsa package
2160                           (expecting the libraries under PATH/lib and the
2161                           headers under PATH/include)
2162   --with-alsa-include     specify directory for the alsa include files
2163   --with-alsa-lib         specify directory for the alsa library
2164   --with-libffi           specify prefix directory for the libffi package
2165                           (expecting the libraries under PATH/lib and the
2166                           headers under PATH/include)
2167   --with-libffi-include   specify directory for the libffi include files
2168   --with-libffi-lib       specify directory for the libffi library
2169   --with-libjpeg          use libjpeg from build system or OpenJDK source
2170                           (system, bundled) [bundled]
2171   --with-giflib           use giflib from build system or OpenJDK source
2172                           (system, bundled) [bundled]
2173   --with-libpng           use libpng from build system or OpenJDK source
2174                           (system, bundled) [bundled]
2175   --with-zlib             use zlib from build system or OpenJDK source
2176                           (system, bundled) [bundled]
2177   --with-lcms             use lcms2 from build system or OpenJDK source
2178                           (system, bundled) [bundled]
2179   --with-dxsdk            Deprecated. Option is kept for backwards
2180                           compatibility and is ignored
2181   --with-dxsdk-lib        Deprecated. Option is kept for backwards
2182                           compatibility and is ignored
2183   --with-dxsdk-include    Deprecated. Option is kept for backwards
2184                           compatibility and is ignored
2185   --with-libelf           specify prefix directory for the libelf package
2186                           (expecting the libraries under PATH/lib and the
2187                           headers under PATH/include)
2188   --with-libelf-include   specify directory for the libelf include files
2189   --with-libelf-lib       specify directory for the libelf library
2190   --with-jvm-features     additional JVM features to enable (separated by
2191                           comma), use '--help' to show possible values [none]
2192   --with-jvm-interpreter  Deprecated. Option is kept for backwards
2193                           compatibility and is ignored
2194   --with-num-cores        number of cores in the build system, e.g.
2195                           --with-num-cores=8 [probed]
2196   --with-memory-size      memory (in MB) available in the build system, e.g.
2197                           --with-memory-size=1024 [probed]
2198   --with-jobs             number of parallel jobs to let make run [calculated
2199                           based on cores and memory]
2200   --with-test-jobs        number of parallel tests jobs to run [based on build
2201                           jobs]
2202   --with-boot-jdk-jvmargs specify JVM arguments to be passed to all java
2203                           invocations of boot JDK, overriding the default
2204                           values, e.g --with-boot-jdk-jvmargs="-Xmx8G
2205                           -enableassertions"
2206   --with-sjavac-server-java
2207                           use this java binary for running the sjavac
2208                           background server [Boot JDK java]
2209   --with-ccache-dir       where to store ccache files [~/.ccache]
2210 
2211 Some influential environment variables:
2212   BASENAME    Override default value for BASENAME
2213   BASH        Override default value for BASH
2214   CAT         Override default value for CAT
2215   CHMOD       Override default value for CHMOD
2216   CMP         Override default value for CMP
2217   COMM        Override default value for COMM
2218   CP          Override default value for CP
2219   CUT         Override default value for CUT
2220   DATE        Override default value for DATE
2221   DIFF        Override default value for DIFF
2222   DIRNAME     Override default value for DIRNAME
2223   ECHO        Override default value for ECHO
2224   EXPR        Override default value for EXPR
2225   FILE        Override default value for FILE
2226   FIND        Override default value for FIND
2227   HEAD        Override default value for HEAD
2228   GUNZIP      Override default value for GUNZIP
2229   GZIP        Override default value for GZIP
2230   LN          Override default value for LN
2231   LS          Override default value for LS
2232   MKDIR       Override default value for MKDIR
2233   MKTEMP      Override default value for MKTEMP
2234   MV          Override default value for MV
2235   NAWK        Override default value for NAWK
2236   PRINTF      Override default value for PRINTF
2237   RM          Override default value for RM
2238   RMDIR       Override default value for RMDIR
2239   SH          Override default value for SH
2240   SORT        Override default value for SORT
2241   TAIL        Override default value for TAIL
2242   TAR         Override default value for TAR
2243   TEE         Override default value for TEE
2244   TOUCH       Override default value for TOUCH
2245   TR          Override default value for TR
2246   UNAME       Override default value for UNAME
2247   UNIQ        Override default value for UNIQ
2248   WC          Override default value for WC
2249   WHICH       Override default value for WHICH
2250   XARGS       Override default value for XARGS
2251   AWK         Override default value for AWK
2252   GREP        Override default value for GREP
2253   EGREP       Override default value for EGREP
2254   FGREP       Override default value for FGREP
2255   SED         Override default value for SED
2256   CYGPATH     Override default value for CYGPATH
2257   READLINK    Override default value for READLINK
2258   DF          Override default value for DF
2259   CPIO        Override default value for CPIO
2260   NICE        Override default value for NICE
2261   PANDOC      Override default value for PANDOC
2262   MAKE        Override default value for MAKE
2263   UNZIP       Override default value for UNZIP
2264   ZIPEXE      Override default value for ZIPEXE
2265   LDD         Override default value for LDD
2266   OTOOL       Override default value for OTOOL
2267   READELF     Override default value for READELF
2268   DOT         Override default value for DOT
2269   HG          Override default value for HG
2270   STAT        Override default value for STAT
2271   TIME        Override default value for TIME
2272   FLOCK       Override default value for FLOCK
2273   DTRACE      Override default value for DTRACE
2274   PATCH       Override default value for PATCH
2275   DSYMUTIL    Override default value for DSYMUTIL
2276   XATTR       Override default value for XATTR
2277   CODESIGN    Override default value for CODESIGN
2278   SETFILE     Override default value for SETFILE
2279   PKG_CONFIG  path to pkg-config utility
2280   JAVA        Override default value for JAVA
2281   JAVAC       Override default value for JAVAC
2282   JAVAH       Override default value for JAVAH
2283   JAR         Override default value for JAR
2284   JARSIGNER   Override default value for JARSIGNER
2285   CC          C compiler command
2286   CFLAGS      C compiler flags
2287   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2288               nonstandard directory <lib dir>
2289   LIBS        libraries to pass to the linker, e.g. -l<library>
2290   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2291               you have headers in a nonstandard directory <include dir>
2292   CXX         C++ compiler command
2293   CXXFLAGS    C++ compiler flags
2294   CPP         C preprocessor
2295   CXXCPP      C++ preprocessor
2296   AS          Override default value for AS
2297   AR          Override default value for AR
2298   LIPO        Override default value for LIPO
2299   STRIP       Override default value for STRIP
2300   NM          Override default value for NM
2301   GNM         Override default value for GNM
2302   OBJCOPY     Override default value for OBJCOPY
2303   OBJDUMP     Override default value for OBJDUMP
2304   BUILD_CC    Override default value for BUILD_CC
2305   BUILD_CXX   Override default value for BUILD_CXX
2306   BUILD_NM    Override default value for BUILD_NM
2307   BUILD_AR    Override default value for BUILD_AR
2308   BUILD_OBJCOPY
2309               Override default value for BUILD_OBJCOPY
2310   BUILD_STRIP Override default value for BUILD_STRIP
2311   JTREGEXE    Override default value for JTREGEXE
2312   XMKMF       Path to xmkmf, Makefile generator for X Window System
2313   FREETYPE_CFLAGS
2314               C compiler flags for FREETYPE, overriding pkg-config
2315   FREETYPE_LIBS
2316               linker flags for FREETYPE, overriding pkg-config
2317   ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
2318   ALSA_LIBS   linker flags for ALSA, overriding pkg-config
2319   LIBFFI_CFLAGS
2320               C compiler flags for LIBFFI, overriding pkg-config
2321   LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
2322   PNG_CFLAGS  C compiler flags for PNG, overriding pkg-config
2323   PNG_LIBS    linker flags for PNG, overriding pkg-config
2324   LCMS_CFLAGS C compiler flags for LCMS, overriding pkg-config
2325   LCMS_LIBS   linker flags for LCMS, overriding pkg-config
2326   ELF_CFLAGS  C compiler flags for ELF, overriding pkg-config
2327   ELF_LIBS    linker flags for ELF, overriding pkg-config
2328   ICECC_CMD   Override default value for ICECC_CMD
2329   ICECC_CREATE_ENV
2330               Override default value for ICECC_CREATE_ENV
2331   ICECC_WRAPPER
2332               Override default value for ICECC_WRAPPER
2333   CCACHE      Override default value for CCACHE
2334 
2335 Use these variables to override the choices made by `configure' or to help
2336 it to find libraries and programs with nonstandard names/locations.
2337 
2338 Report bugs to <build-dev@openjdk.java.net>.
2339 OpenJDK home page: <http://openjdk.java.net>.
2340 _ACEOF
2341 ac_status=$?
2342 fi
2343 
2344 if test "$ac_init_help" = "recursive"; then
2345   # If there are subdirs, report their specific --help.
2346   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2347     test -d "$ac_dir" ||
2348       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2349       continue
2350     ac_builddir=.
2351 
2352 case "$ac_dir" in
2353 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2354 *)
2355   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2356   # A ".." for each directory in $ac_dir_suffix.
2357   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2358   case $ac_top_builddir_sub in
2359   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2360   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2361   esac ;;
2362 esac
2363 ac_abs_top_builddir=$ac_pwd
2364 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2365 # for backward compatibility:
2366 ac_top_builddir=$ac_top_build_prefix
2367 
2368 case $srcdir in
2369   .)  # We are building in place.
2370     ac_srcdir=.
2371     ac_top_srcdir=$ac_top_builddir_sub
2372     ac_abs_top_srcdir=$ac_pwd ;;
2373   [\\/]* | ?:[\\/]* )  # Absolute name.
2374     ac_srcdir=$srcdir$ac_dir_suffix;
2375     ac_top_srcdir=$srcdir
2376     ac_abs_top_srcdir=$srcdir ;;
2377   *) # Relative name.
2378     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2379     ac_top_srcdir=$ac_top_build_prefix$srcdir
2380     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2381 esac
2382 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2383 
2384     cd "$ac_dir" || { ac_status=$?; continue; }
2385     # Check for guested configure.
2386     if test -f "$ac_srcdir/configure.gnu"; then
2387       echo &&
2388       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2389     elif test -f "$ac_srcdir/configure"; then
2390       echo &&
2391       $SHELL "$ac_srcdir/configure" --help=recursive
2392     else
2393       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2394     fi || ac_status=$?
2395     cd "$ac_pwd" || { ac_status=$?; break; }
2396   done
2397 fi
2398 
2399 test -n "$ac_init_help" && exit $ac_status
2400 if $ac_init_version; then
2401   cat <<\_ACEOF
2402 OpenJDK configure jdk9
2403 generated by GNU Autoconf 2.69
2404 
2405 Copyright (C) 2012 Free Software Foundation, Inc.
2406 This configure script is free software; the Free Software Foundation
2407 gives unlimited permission to copy, distribute and modify it.
2408 _ACEOF
2409   exit
2410 fi
2411 
2412 ## ------------------------ ##
2413 ## Autoconf initialization. ##
2414 ## ------------------------ ##
2415 
2416 # ac_fn_c_try_compile LINENO
2417 # --------------------------
2418 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2419 ac_fn_c_try_compile ()
2420 {
2421   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2422   rm -f conftest.$ac_objext
2423   if { { ac_try="$ac_compile"
2424 case "(($ac_try" in
2425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2426   *) ac_try_echo=$ac_try;;
2427 esac
2428 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2429 $as_echo "$ac_try_echo"; } >&5
2430   (eval "$ac_compile") 2>conftest.err
2431   ac_status=$?
2432   if test -s conftest.err; then
2433     grep -v '^ *+' conftest.err >conftest.er1
2434     cat conftest.er1 >&5
2435     mv -f conftest.er1 conftest.err
2436   fi
2437   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2438   test $ac_status = 0; } && {
2439          test -z "$ac_c_werror_flag" ||
2440          test ! -s conftest.err
2441        } && test -s conftest.$ac_objext; then :
2442   ac_retval=0
2443 else
2444   $as_echo "$as_me: failed program was:" >&5
2445 sed 's/^/| /' conftest.$ac_ext >&5
2446 
2447         ac_retval=1
2448 fi
2449   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2450   as_fn_set_status $ac_retval
2451 
2452 } # ac_fn_c_try_compile
2453 
2454 # ac_fn_cxx_try_compile LINENO
2455 # ----------------------------
2456 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2457 ac_fn_cxx_try_compile ()
2458 {
2459   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2460   rm -f conftest.$ac_objext
2461   if { { ac_try="$ac_compile"
2462 case "(($ac_try" in
2463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2464   *) ac_try_echo=$ac_try;;
2465 esac
2466 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2467 $as_echo "$ac_try_echo"; } >&5
2468   (eval "$ac_compile") 2>conftest.err
2469   ac_status=$?
2470   if test -s conftest.err; then
2471     grep -v '^ *+' conftest.err >conftest.er1
2472     cat conftest.er1 >&5
2473     mv -f conftest.er1 conftest.err
2474   fi
2475   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2476   test $ac_status = 0; } && {
2477          test -z "$ac_cxx_werror_flag" ||
2478          test ! -s conftest.err
2479        } && test -s conftest.$ac_objext; then :
2480   ac_retval=0
2481 else
2482   $as_echo "$as_me: failed program was:" >&5
2483 sed 's/^/| /' conftest.$ac_ext >&5
2484 
2485         ac_retval=1
2486 fi
2487   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2488   as_fn_set_status $ac_retval
2489 
2490 } # ac_fn_cxx_try_compile
2491 
2492 # ac_fn_c_try_cpp LINENO
2493 # ----------------------
2494 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2495 ac_fn_c_try_cpp ()
2496 {
2497   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2498   if { { ac_try="$ac_cpp conftest.$ac_ext"
2499 case "(($ac_try" in
2500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2501   *) ac_try_echo=$ac_try;;
2502 esac
2503 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2504 $as_echo "$ac_try_echo"; } >&5
2505   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2506   ac_status=$?
2507   if test -s conftest.err; then
2508     grep -v '^ *+' conftest.err >conftest.er1
2509     cat conftest.er1 >&5
2510     mv -f conftest.er1 conftest.err
2511   fi
2512   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2513   test $ac_status = 0; } > conftest.i && {
2514          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2515          test ! -s conftest.err
2516        }; then :
2517   ac_retval=0
2518 else
2519   $as_echo "$as_me: failed program was:" >&5
2520 sed 's/^/| /' conftest.$ac_ext >&5
2521 
2522     ac_retval=1
2523 fi
2524   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2525   as_fn_set_status $ac_retval
2526 
2527 } # ac_fn_c_try_cpp
2528 
2529 # ac_fn_cxx_try_cpp LINENO
2530 # ------------------------
2531 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2532 ac_fn_cxx_try_cpp ()
2533 {
2534   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2535   if { { ac_try="$ac_cpp conftest.$ac_ext"
2536 case "(($ac_try" in
2537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2538   *) ac_try_echo=$ac_try;;
2539 esac
2540 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2541 $as_echo "$ac_try_echo"; } >&5
2542   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2543   ac_status=$?
2544   if test -s conftest.err; then
2545     grep -v '^ *+' conftest.err >conftest.er1
2546     cat conftest.er1 >&5
2547     mv -f conftest.er1 conftest.err
2548   fi
2549   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2550   test $ac_status = 0; } > conftest.i && {
2551          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2552          test ! -s conftest.err
2553        }; then :
2554   ac_retval=0
2555 else
2556   $as_echo "$as_me: failed program was:" >&5
2557 sed 's/^/| /' conftest.$ac_ext >&5
2558 
2559     ac_retval=1
2560 fi
2561   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2562   as_fn_set_status $ac_retval
2563 
2564 } # ac_fn_cxx_try_cpp
2565 
2566 # ac_fn_c_try_link LINENO
2567 # -----------------------
2568 # Try to link conftest.$ac_ext, and return whether this succeeded.
2569 ac_fn_c_try_link ()
2570 {
2571   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2572   rm -f conftest.$ac_objext conftest$ac_exeext
2573   if { { ac_try="$ac_link"
2574 case "(($ac_try" in
2575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2576   *) ac_try_echo=$ac_try;;
2577 esac
2578 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2579 $as_echo "$ac_try_echo"; } >&5
2580   (eval "$ac_link") 2>conftest.err
2581   ac_status=$?
2582   if test -s conftest.err; then
2583     grep -v '^ *+' conftest.err >conftest.er1
2584     cat conftest.er1 >&5
2585     mv -f conftest.er1 conftest.err
2586   fi
2587   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2588   test $ac_status = 0; } && {
2589          test -z "$ac_c_werror_flag" ||
2590          test ! -s conftest.err
2591        } && test -s conftest$ac_exeext && {
2592          test "$cross_compiling" = yes ||
2593          test -x conftest$ac_exeext
2594        }; then :
2595   ac_retval=0
2596 else
2597   $as_echo "$as_me: failed program was:" >&5
2598 sed 's/^/| /' conftest.$ac_ext >&5
2599 
2600         ac_retval=1
2601 fi
2602   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2603   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2604   # interfere with the next link command; also delete a directory that is
2605   # left behind by Apple's compiler.  We do this before executing the actions.
2606   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2607   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2608   as_fn_set_status $ac_retval
2609 
2610 } # ac_fn_c_try_link
2611 
2612 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2613 # ---------------------------------------------------------
2614 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2615 # the include files in INCLUDES and setting the cache variable VAR
2616 # accordingly.
2617 ac_fn_cxx_check_header_mongrel ()
2618 {
2619   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2620   if eval \${$3+:} false; then :
2621   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2622 $as_echo_n "checking for $2... " >&6; }
2623 if eval \${$3+:} false; then :
2624   $as_echo_n "(cached) " >&6
2625 fi
2626 eval ac_res=\$$3
2627                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2628 $as_echo "$ac_res" >&6; }
2629 else
2630   # Is the header compilable?
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2632 $as_echo_n "checking $2 usability... " >&6; }
2633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2634 /* end confdefs.h.  */
2635 $4
2636 #include <$2>
2637 _ACEOF
2638 if ac_fn_cxx_try_compile "$LINENO"; then :
2639   ac_header_compiler=yes
2640 else
2641   ac_header_compiler=no
2642 fi
2643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2645 $as_echo "$ac_header_compiler" >&6; }
2646 
2647 # Is the header present?
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2649 $as_echo_n "checking $2 presence... " >&6; }
2650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2651 /* end confdefs.h.  */
2652 #include <$2>
2653 _ACEOF
2654 if ac_fn_cxx_try_cpp "$LINENO"; then :
2655   ac_header_preproc=yes
2656 else
2657   ac_header_preproc=no
2658 fi
2659 rm -f conftest.err conftest.i conftest.$ac_ext
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2661 $as_echo "$ac_header_preproc" >&6; }
2662 
2663 # So?  What about this header?
2664 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2665   yes:no: )
2666     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2667 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2668     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2669 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2670     ;;
2671   no:yes:* )
2672     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2673 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2674     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2675 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2676     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2677 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2678     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2679 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2680     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2681 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2682 ( $as_echo "## ----------------------------------------- ##
2683 ## Report this to build-dev@openjdk.java.net ##
2684 ## ----------------------------------------- ##"
2685      ) | sed "s/^/$as_me: WARNING:     /" >&2
2686     ;;
2687 esac
2688   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2689 $as_echo_n "checking for $2... " >&6; }
2690 if eval \${$3+:} false; then :
2691   $as_echo_n "(cached) " >&6
2692 else
2693   eval "$3=\$ac_header_compiler"
2694 fi
2695 eval ac_res=\$$3
2696                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2697 $as_echo "$ac_res" >&6; }
2698 fi
2699   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2700 
2701 } # ac_fn_cxx_check_header_mongrel
2702 
2703 # ac_fn_cxx_try_run LINENO
2704 # ------------------------
2705 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2706 # that executables *can* be run.
2707 ac_fn_cxx_try_run ()
2708 {
2709   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2710   if { { ac_try="$ac_link"
2711 case "(($ac_try" in
2712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2713   *) ac_try_echo=$ac_try;;
2714 esac
2715 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2716 $as_echo "$ac_try_echo"; } >&5
2717   (eval "$ac_link") 2>&5
2718   ac_status=$?
2719   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2720   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2721   { { case "(($ac_try" in
2722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2723   *) ac_try_echo=$ac_try;;
2724 esac
2725 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2726 $as_echo "$ac_try_echo"; } >&5
2727   (eval "$ac_try") 2>&5
2728   ac_status=$?
2729   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2730   test $ac_status = 0; }; }; then :
2731   ac_retval=0
2732 else
2733   $as_echo "$as_me: program exited with status $ac_status" >&5
2734        $as_echo "$as_me: failed program was:" >&5
2735 sed 's/^/| /' conftest.$ac_ext >&5
2736 
2737        ac_retval=$ac_status
2738 fi
2739   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2740   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2741   as_fn_set_status $ac_retval
2742 
2743 } # ac_fn_cxx_try_run
2744 
2745 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2746 # ---------------------------------------------------------
2747 # Tests whether HEADER exists and can be compiled using the include files in
2748 # INCLUDES, setting the cache variable VAR accordingly.
2749 ac_fn_cxx_check_header_compile ()
2750 {
2751   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2752   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2753 $as_echo_n "checking for $2... " >&6; }
2754 if eval \${$3+:} false; then :
2755   $as_echo_n "(cached) " >&6
2756 else
2757   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2758 /* end confdefs.h.  */
2759 $4
2760 #include <$2>
2761 _ACEOF
2762 if ac_fn_cxx_try_compile "$LINENO"; then :
2763   eval "$3=yes"
2764 else
2765   eval "$3=no"
2766 fi
2767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2768 fi
2769 eval ac_res=\$$3
2770                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2771 $as_echo "$ac_res" >&6; }
2772   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2773 
2774 } # ac_fn_cxx_check_header_compile
2775 
2776 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2777 # ----------------------------------------------
2778 # Tries to find the compile-time value of EXPR in a program that includes
2779 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2780 # computed
2781 ac_fn_cxx_compute_int ()
2782 {
2783   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2784   if test "$cross_compiling" = yes; then
2785     # Depending upon the size, compute the lo and hi bounds.
2786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2787 /* end confdefs.h.  */
2788 $4
2789 int
2790 main ()
2791 {
2792 static int test_array [1 - 2 * !(($2) >= 0)];
2793 test_array [0] = 0;
2794 return test_array [0];
2795 
2796   ;
2797   return 0;
2798 }
2799 _ACEOF
2800 if ac_fn_cxx_try_compile "$LINENO"; then :
2801   ac_lo=0 ac_mid=0
2802   while :; do
2803     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2804 /* end confdefs.h.  */
2805 $4
2806 int
2807 main ()
2808 {
2809 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2810 test_array [0] = 0;
2811 return test_array [0];
2812 
2813   ;
2814   return 0;
2815 }
2816 _ACEOF
2817 if ac_fn_cxx_try_compile "$LINENO"; then :
2818   ac_hi=$ac_mid; break
2819 else
2820   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2821                         if test $ac_lo -le $ac_mid; then
2822                           ac_lo= ac_hi=
2823                           break
2824                         fi
2825                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2826 fi
2827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2828   done
2829 else
2830   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2831 /* end confdefs.h.  */
2832 $4
2833 int
2834 main ()
2835 {
2836 static int test_array [1 - 2 * !(($2) < 0)];
2837 test_array [0] = 0;
2838 return test_array [0];
2839 
2840   ;
2841   return 0;
2842 }
2843 _ACEOF
2844 if ac_fn_cxx_try_compile "$LINENO"; then :
2845   ac_hi=-1 ac_mid=-1
2846   while :; do
2847     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2848 /* end confdefs.h.  */
2849 $4
2850 int
2851 main ()
2852 {
2853 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2854 test_array [0] = 0;
2855 return test_array [0];
2856 
2857   ;
2858   return 0;
2859 }
2860 _ACEOF
2861 if ac_fn_cxx_try_compile "$LINENO"; then :
2862   ac_lo=$ac_mid; break
2863 else
2864   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2865                         if test $ac_mid -le $ac_hi; then
2866                           ac_lo= ac_hi=
2867                           break
2868                         fi
2869                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2870 fi
2871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2872   done
2873 else
2874   ac_lo= ac_hi=
2875 fi
2876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2877 fi
2878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2879 # Binary search between lo and hi bounds.
2880 while test "x$ac_lo" != "x$ac_hi"; do
2881   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2882   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2883 /* end confdefs.h.  */
2884 $4
2885 int
2886 main ()
2887 {
2888 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2889 test_array [0] = 0;
2890 return test_array [0];
2891 
2892   ;
2893   return 0;
2894 }
2895 _ACEOF
2896 if ac_fn_cxx_try_compile "$LINENO"; then :
2897   ac_hi=$ac_mid
2898 else
2899   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2900 fi
2901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2902 done
2903 case $ac_lo in #((
2904 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2905 '') ac_retval=1 ;;
2906 esac
2907   else
2908     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2909 /* end confdefs.h.  */
2910 $4
2911 static long int longval () { return $2; }
2912 static unsigned long int ulongval () { return $2; }
2913 #include <stdio.h>
2914 #include <stdlib.h>
2915 int
2916 main ()
2917 {
2918 
2919   FILE *f = fopen ("conftest.val", "w");
2920   if (! f)
2921     return 1;
2922   if (($2) < 0)
2923     {
2924       long int i = longval ();
2925       if (i != ($2))
2926         return 1;
2927       fprintf (f, "%ld", i);
2928     }
2929   else
2930     {
2931       unsigned long int i = ulongval ();
2932       if (i != ($2))
2933         return 1;
2934       fprintf (f, "%lu", i);
2935     }
2936   /* Do not output a trailing newline, as this causes \r\n confusion
2937      on some platforms.  */
2938   return ferror (f) || fclose (f) != 0;
2939 
2940   ;
2941   return 0;
2942 }
2943 _ACEOF
2944 if ac_fn_cxx_try_run "$LINENO"; then :
2945   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2946 else
2947   ac_retval=1
2948 fi
2949 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2950   conftest.$ac_objext conftest.beam conftest.$ac_ext
2951 rm -f conftest.val
2952 
2953   fi
2954   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2955   as_fn_set_status $ac_retval
2956 
2957 } # ac_fn_cxx_compute_int
2958 
2959 # ac_fn_cxx_try_link LINENO
2960 # -------------------------
2961 # Try to link conftest.$ac_ext, and return whether this succeeded.
2962 ac_fn_cxx_try_link ()
2963 {
2964   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2965   rm -f conftest.$ac_objext conftest$ac_exeext
2966   if { { ac_try="$ac_link"
2967 case "(($ac_try" in
2968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2969   *) ac_try_echo=$ac_try;;
2970 esac
2971 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2972 $as_echo "$ac_try_echo"; } >&5
2973   (eval "$ac_link") 2>conftest.err
2974   ac_status=$?
2975   if test -s conftest.err; then
2976     grep -v '^ *+' conftest.err >conftest.er1
2977     cat conftest.er1 >&5
2978     mv -f conftest.er1 conftest.err
2979   fi
2980   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2981   test $ac_status = 0; } && {
2982          test -z "$ac_cxx_werror_flag" ||
2983          test ! -s conftest.err
2984        } && test -s conftest$ac_exeext && {
2985          test "$cross_compiling" = yes ||
2986          test -x conftest$ac_exeext
2987        }; then :
2988   ac_retval=0
2989 else
2990   $as_echo "$as_me: failed program was:" >&5
2991 sed 's/^/| /' conftest.$ac_ext >&5
2992 
2993         ac_retval=1
2994 fi
2995   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2996   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2997   # interfere with the next link command; also delete a directory that is
2998   # left behind by Apple's compiler.  We do this before executing the actions.
2999   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
3000   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3001   as_fn_set_status $ac_retval
3002 
3003 } # ac_fn_cxx_try_link
3004 
3005 # ac_fn_cxx_check_func LINENO FUNC VAR
3006 # ------------------------------------
3007 # Tests whether FUNC exists, setting the cache variable VAR accordingly
3008 ac_fn_cxx_check_func ()
3009 {
3010   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3011   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3012 $as_echo_n "checking for $2... " >&6; }
3013 if eval \${$3+:} false; then :
3014   $as_echo_n "(cached) " >&6
3015 else
3016   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3017 /* end confdefs.h.  */
3018 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
3019    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3020 #define $2 innocuous_$2
3021 
3022 /* System header to define __stub macros and hopefully few prototypes,
3023     which can conflict with char $2 (); below.
3024     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3025     <limits.h> exists even on freestanding compilers.  */
3026 
3027 #ifdef __STDC__
3028 # include <limits.h>
3029 #else
3030 # include <assert.h>
3031 #endif
3032 
3033 #undef $2
3034 
3035 /* Override any GCC internal prototype to avoid an error.
3036    Use char because int might match the return type of a GCC
3037    builtin and then its argument prototype would still apply.  */
3038 #ifdef __cplusplus
3039 extern "C"
3040 #endif
3041 char $2 ();
3042 /* The GNU C library defines this for functions which it implements
3043     to always fail with ENOSYS.  Some functions are actually named
3044     something starting with __ and the normal name is an alias.  */
3045 #if defined __stub_$2 || defined __stub___$2
3046 choke me
3047 #endif
3048 
3049 int
3050 main ()
3051 {
3052 return $2 ();
3053   ;
3054   return 0;
3055 }
3056 _ACEOF
3057 if ac_fn_cxx_try_link "$LINENO"; then :
3058   eval "$3=yes"
3059 else
3060   eval "$3=no"
3061 fi
3062 rm -f core conftest.err conftest.$ac_objext \
3063     conftest$ac_exeext conftest.$ac_ext
3064 fi
3065 eval ac_res=\$$3
3066                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3067 $as_echo "$ac_res" >&6; }
3068   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3069 
3070 } # ac_fn_cxx_check_func
3071 
3072 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
3073 # -------------------------------------------------------
3074 # Tests whether HEADER exists and can be compiled using the include files in
3075 # INCLUDES, setting the cache variable VAR accordingly.
3076 ac_fn_c_check_header_compile ()
3077 {
3078   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3079   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3080 $as_echo_n "checking for $2... " >&6; }
3081 if eval \${$3+:} false; then :
3082   $as_echo_n "(cached) " >&6
3083 else
3084   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3085 /* end confdefs.h.  */
3086 $4
3087 #include <$2>
3088 _ACEOF
3089 if ac_fn_c_try_compile "$LINENO"; then :
3090   eval "$3=yes"
3091 else
3092   eval "$3=no"
3093 fi
3094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3095 fi
3096 eval ac_res=\$$3
3097                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3098 $as_echo "$ac_res" >&6; }
3099   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3100 
3101 } # ac_fn_c_check_header_compile
3102 cat >config.log <<_ACEOF
3103 This file contains any messages produced by compilers while
3104 running configure, to aid debugging if configure makes a mistake.
3105 
3106 It was created by OpenJDK $as_me jdk9, which was
3107 generated by GNU Autoconf 2.69.  Invocation command line was
3108 
3109   $ $0 $@
3110 
3111 _ACEOF
3112 exec 5>>config.log
3113 {
3114 cat <<_ASUNAME
3115 ## --------- ##
3116 ## Platform. ##
3117 ## --------- ##
3118 
3119 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3120 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3121 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3122 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3123 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3124 
3125 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3126 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
3127 
3128 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
3129 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
3130 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3131 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
3132 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
3133 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
3134 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
3135 
3136 _ASUNAME
3137 
3138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3139 for as_dir in $PATH
3140 do
3141   IFS=$as_save_IFS
3142   test -z "$as_dir" && as_dir=.
3143     $as_echo "PATH: $as_dir"
3144   done
3145 IFS=$as_save_IFS
3146 
3147 } >&5
3148 
3149 cat >&5 <<_ACEOF
3150 
3151 
3152 ## ----------- ##
3153 ## Core tests. ##
3154 ## ----------- ##
3155 
3156 _ACEOF
3157 
3158 
3159 # Keep a trace of the command line.
3160 # Strip out --no-create and --no-recursion so they do not pile up.
3161 # Strip out --silent because we don't want to record it for future runs.
3162 # Also quote any args containing shell meta-characters.
3163 # Make two passes to allow for proper duplicate-argument suppression.
3164 ac_configure_args=
3165 ac_configure_args0=
3166 ac_configure_args1=
3167 ac_must_keep_next=false
3168 for ac_pass in 1 2
3169 do
3170   for ac_arg
3171   do
3172     case $ac_arg in
3173     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3174     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3175     | -silent | --silent | --silen | --sile | --sil)
3176       continue ;;
3177     *\'*)
3178       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3179     esac
3180     case $ac_pass in
3181     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3182     2)
3183       as_fn_append ac_configure_args1 " '$ac_arg'"
3184       if test $ac_must_keep_next = true; then
3185         ac_must_keep_next=false # Got value, back to normal.
3186       else
3187         case $ac_arg in
3188           *=* | --config-cache | -C | -disable-* | --disable-* \
3189           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3190           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3191           | -with-* | --with-* | -without-* | --without-* | --x)
3192             case "$ac_configure_args0 " in
3193               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3194             esac
3195             ;;
3196           -* ) ac_must_keep_next=true ;;
3197         esac
3198       fi
3199       as_fn_append ac_configure_args " '$ac_arg'"
3200       ;;
3201     esac
3202   done
3203 done
3204 { ac_configure_args0=; unset ac_configure_args0;}
3205 { ac_configure_args1=; unset ac_configure_args1;}
3206 
3207 # When interrupted or exit'd, cleanup temporary files, and complete
3208 # config.log.  We remove comments because anyway the quotes in there
3209 # would cause problems or look ugly.
3210 # WARNING: Use '\'' to represent an apostrophe within the trap.
3211 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3212 trap 'exit_status=$?
3213   # Save into config.log some information that might help in debugging.
3214   {
3215     echo
3216 
3217     $as_echo "## ---------------- ##
3218 ## Cache variables. ##
3219 ## ---------------- ##"
3220     echo
3221     # The following way of writing the cache mishandles newlines in values,
3222 (
3223   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3224     eval ac_val=\$$ac_var
3225     case $ac_val in #(
3226     *${as_nl}*)
3227       case $ac_var in #(
3228       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3229 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3230       esac
3231       case $ac_var in #(
3232       _ | IFS | as_nl) ;; #(
3233       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3234       *) { eval $ac_var=; unset $ac_var;} ;;
3235       esac ;;
3236     esac
3237   done
3238   (set) 2>&1 |
3239     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3240     *${as_nl}ac_space=\ *)
3241       sed -n \
3242         "s/'\''/'\''\\\\'\'''\''/g;
3243           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3244       ;; #(
3245     *)
3246       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3247       ;;
3248     esac |
3249     sort
3250 )
3251     echo
3252 
3253     $as_echo "## ----------------- ##
3254 ## Output variables. ##
3255 ## ----------------- ##"
3256     echo
3257     for ac_var in $ac_subst_vars
3258     do
3259       eval ac_val=\$$ac_var
3260       case $ac_val in
3261       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3262       esac
3263       $as_echo "$ac_var='\''$ac_val'\''"
3264     done | sort
3265     echo
3266 
3267     if test -n "$ac_subst_files"; then
3268       $as_echo "## ------------------- ##
3269 ## File substitutions. ##
3270 ## ------------------- ##"
3271       echo
3272       for ac_var in $ac_subst_files
3273       do
3274         eval ac_val=\$$ac_var
3275         case $ac_val in
3276         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3277         esac
3278         $as_echo "$ac_var='\''$ac_val'\''"
3279       done | sort
3280       echo
3281     fi
3282 
3283     if test -s confdefs.h; then
3284       $as_echo "## ----------- ##
3285 ## confdefs.h. ##
3286 ## ----------- ##"
3287       echo
3288       cat confdefs.h
3289       echo
3290     fi
3291     test "$ac_signal" != 0 &&
3292       $as_echo "$as_me: caught signal $ac_signal"
3293     $as_echo "$as_me: exit $exit_status"
3294   } >&5
3295   rm -f core *.core core.conftest.* &&
3296     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3297     exit $exit_status
3298 ' 0
3299 for ac_signal in 1 2 13 15; do
3300   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3301 done
3302 ac_signal=0
3303 
3304 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3305 rm -f -r conftest* confdefs.h
3306 
3307 $as_echo "/* confdefs.h */" > confdefs.h
3308 
3309 # Predefined preprocessor variables.
3310 
3311 cat >>confdefs.h <<_ACEOF
3312 #define PACKAGE_NAME "$PACKAGE_NAME"
3313 _ACEOF
3314 
3315 cat >>confdefs.h <<_ACEOF
3316 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3317 _ACEOF
3318 
3319 cat >>confdefs.h <<_ACEOF
3320 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3321 _ACEOF
3322 
3323 cat >>confdefs.h <<_ACEOF
3324 #define PACKAGE_STRING "$PACKAGE_STRING"
3325 _ACEOF
3326 
3327 cat >>confdefs.h <<_ACEOF
3328 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3329 _ACEOF
3330 
3331 cat >>confdefs.h <<_ACEOF
3332 #define PACKAGE_URL "$PACKAGE_URL"
3333 _ACEOF
3334 
3335 
3336 # Let the site file select an alternate cache file if it wants to.
3337 # Prefer an explicitly selected file to automatically selected ones.
3338 ac_site_file1=NONE
3339 ac_site_file2=NONE
3340 if test -n "$CONFIG_SITE"; then
3341   # We do not want a PATH search for config.site.
3342   case $CONFIG_SITE in #((
3343     -*)  ac_site_file1=./$CONFIG_SITE;;
3344     */*) ac_site_file1=$CONFIG_SITE;;
3345     *)   ac_site_file1=./$CONFIG_SITE;;
3346   esac
3347 elif test "x$prefix" != xNONE; then
3348   ac_site_file1=$prefix/share/config.site
3349   ac_site_file2=$prefix/etc/config.site
3350 else
3351   ac_site_file1=$ac_default_prefix/share/config.site
3352   ac_site_file2=$ac_default_prefix/etc/config.site
3353 fi
3354 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3355 do
3356   test "x$ac_site_file" = xNONE && continue
3357   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3358     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3359 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3360     sed 's/^/| /' "$ac_site_file" >&5
3361     . "$ac_site_file" \
3362       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3363 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3364 as_fn_error $? "failed to load site script $ac_site_file
3365 See \`config.log' for more details" "$LINENO" 5; }
3366   fi
3367 done
3368 
3369 if test -r "$cache_file"; then
3370   # Some versions of bash will fail to source /dev/null (special files
3371   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3372   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3373     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3374 $as_echo "$as_me: loading cache $cache_file" >&6;}
3375     case $cache_file in
3376       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3377       *)                      . "./$cache_file";;
3378     esac
3379   fi
3380 else
3381   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3382 $as_echo "$as_me: creating cache $cache_file" >&6;}
3383   >$cache_file
3384 fi
3385 
3386 # Check that the precious variables saved in the cache have kept the same
3387 # value.
3388 ac_cache_corrupted=false
3389 for ac_var in $ac_precious_vars; do
3390   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3391   eval ac_new_set=\$ac_env_${ac_var}_set
3392   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3393   eval ac_new_val=\$ac_env_${ac_var}_value
3394   case $ac_old_set,$ac_new_set in
3395     set,)
3396       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3397 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3398       ac_cache_corrupted=: ;;
3399     ,set)
3400       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3401 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3402       ac_cache_corrupted=: ;;
3403     ,);;
3404     *)
3405       if test "x$ac_old_val" != "x$ac_new_val"; then
3406         # differences in whitespace do not lead to failure.
3407         ac_old_val_w=`echo x $ac_old_val`
3408         ac_new_val_w=`echo x $ac_new_val`
3409         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3410           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3411 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3412           ac_cache_corrupted=:
3413         else
3414           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3415 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3416           eval $ac_var=\$ac_old_val
3417         fi
3418         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3419 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3420         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3421 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3422       fi;;
3423   esac
3424   # Pass precious variables to config.status.
3425   if test "$ac_new_set" = set; then
3426     case $ac_new_val in
3427     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3428     *) ac_arg=$ac_var=$ac_new_val ;;
3429     esac
3430     case " $ac_configure_args " in
3431       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3432       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3433     esac
3434   fi
3435 done
3436 if $ac_cache_corrupted; then
3437   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3438 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3439   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3440 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3441   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3442 fi
3443 ## -------------------- ##
3444 ## Main body of script. ##
3445 ## -------------------- ##
3446 
3447 ac_ext=c
3448 ac_cpp='$CPP $CPPFLAGS'
3449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3452 
3453 
3454 
3455 ac_aux_dir=
3456 for ac_dir in $TOPDIR/common/autoconf/build-aux "$srcdir"/$TOPDIR/common/autoconf/build-aux; do
3457   if test -f "$ac_dir/install-sh"; then
3458     ac_aux_dir=$ac_dir
3459     ac_install_sh="$ac_aux_dir/install-sh -c"
3460     break
3461   elif test -f "$ac_dir/install.sh"; then
3462     ac_aux_dir=$ac_dir
3463     ac_install_sh="$ac_aux_dir/install.sh -c"
3464     break
3465   elif test -f "$ac_dir/shtool"; then
3466     ac_aux_dir=$ac_dir
3467     ac_install_sh="$ac_aux_dir/shtool install -c"
3468     break
3469   fi
3470 done
3471 if test -z "$ac_aux_dir"; then
3472   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
3473 fi
3474 
3475 # These three variables are undocumented and unsupported,
3476 # and are intended to be withdrawn in a future Autoconf release.
3477 # They can cause serious problems if a builder's source tree is in a directory
3478 # whose full name contains unusual characters.
3479 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3480 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3481 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3482 
3483 
3484 # pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
3485 
3486 #
3487 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
3488 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3489 #
3490 # This code is free software; you can redistribute it and/or modify it
3491 # under the terms of the GNU General Public License version 2 only, as
3492 # published by the Free Software Foundation.  Oracle designates this
3493 # particular file as subject to the "Classpath" exception as provided
3494 # by Oracle in the LICENSE file that accompanied this code.
3495 #
3496 # This code is distributed in the hope that it will be useful, but WITHOUT
3497 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3498 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3499 # version 2 for more details (a copy is included in the LICENSE file that
3500 # accompanied this code).
3501 #
3502 # You should have received a copy of the GNU General Public License version
3503 # 2 along with this work; if not, write to the Free Software Foundation,
3504 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3505 #
3506 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3507 # or visit www.oracle.com if you need additional information or have any
3508 # questions.
3509 #
3510 
3511 #
3512 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
3513 #
3514 # This program is free software; you can redistribute it and/or modify
3515 # it under the terms of the GNU General Public License as published by
3516 # the Free Software Foundation; either version 2 of the License, or
3517 # (at your option) any later version.
3518 #
3519 # This program is distributed in the hope that it will be useful, but
3520 # WITHOUT ANY WARRANTY; without even the implied warranty of
3521 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
3522 # General Public License for more details.
3523 #
3524 # You should have received a copy of the GNU General Public License
3525 # along with this program; if not, write to the Free Software
3526 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
3527 #
3528 # As a special exception to the GNU General Public License, if you
3529 # distribute this file as part of a program that contains a
3530 # configuration script generated by Autoconf, you may include it under
3531 # the same distribution terms that you use for the rest of that program.
3532 
3533 # PKG_PROG_PKG_CONFIG([MIN-VERSION])
3534 # ----------------------------------
3535 # PKG_PROG_PKG_CONFIG
3536 
3537 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
3538 #
3539 # Check to see whether a particular set of modules exists.  Similar
3540 # to PKG_CHECK_MODULES(), but does not set variables or print errors.
3541 #
3542 #
3543 # Similar to PKG_CHECK_MODULES, make sure that the first instance of
3544 # this or PKG_CHECK_MODULES is called, or make sure to call
3545 # PKG_CHECK_EXISTS manually
3546 # --------------------------------------------------------------
3547 
3548 
3549 
3550 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
3551 # ---------------------------------------------
3552 # _PKG_CONFIG
3553 
3554 # _PKG_SHORT_ERRORS_SUPPORTED
3555 # -----------------------------
3556 # _PKG_SHORT_ERRORS_SUPPORTED
3557 
3558 
3559 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
3560 # [ACTION-IF-NOT-FOUND])
3561 #
3562 #
3563 # Note that if there is a possibility the first call to
3564 # PKG_CHECK_MODULES might not happen, you should be sure to include an
3565 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
3566 #
3567 #
3568 # --------------------------------------------------------------
3569 # PKG_CHECK_MODULES
3570 
3571 
3572 # Include these first...
3573 #
3574 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
3575 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3576 #
3577 # This code is free software; you can redistribute it and/or modify it
3578 # under the terms of the GNU General Public License version 2 only, as
3579 # published by the Free Software Foundation.  Oracle designates this
3580 # particular file as subject to the "Classpath" exception as provided
3581 # by Oracle in the LICENSE file that accompanied this code.
3582 #
3583 # This code is distributed in the hope that it will be useful, but WITHOUT
3584 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3585 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3586 # version 2 for more details (a copy is included in the LICENSE file that
3587 # accompanied this code).
3588 #
3589 # You should have received a copy of the GNU General Public License version
3590 # 2 along with this work; if not, write to the Free Software Foundation,
3591 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3592 #
3593 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3594 # or visit www.oracle.com if you need additional information or have any
3595 # questions.
3596 #
3597 
3598 # Create a function/macro that takes a series of named arguments. The call is
3599 # similar to AC_DEFUN, but the setup of the function looks like this:
3600 # BASIC_DEFUN_NAMED([MYFUNC], [FOO *BAR], [$@], [
3601 # ... do something
3602 #   AC_MSG_NOTICE([Value of BAR is ARG_BAR])
3603 # ])
3604 # A star (*) in front of a named argument means that it is required and it's
3605 # presence will be verified. To pass e.g. the first value as a normal indexed
3606 # argument, use [m4_shift($@)] as the third argument instead of [$@]. These
3607 # arguments are referenced in the function by their name prefixed by ARG_, e.g.
3608 # "ARG_FOO".
3609 #
3610 # The generated function can be called like this:
3611 # MYFUNC(FOO: [foo-val],
3612 #     BAR: [
3613 #         $ECHO hello world
3614 #     ])
3615 # Note that the argument value must start on the same line as the argument name.
3616 #
3617 # Argument 1: Name of the function to define
3618 # Argument 2: List of legal named arguments, with a * prefix for required arguments
3619 # Argument 3: Argument array to treat as named, typically $@
3620 # Argument 4: The main function body
3621 
3622 
3623 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3)
3624 # If so, then append $1 to $2 \
3625 # Also set JVM_ARG_OK to true/false depending on outcome.
3626 
3627 
3628 # Appends a string to a path variable, only adding the : when needed.
3629 
3630 
3631 # Prepends a string to a path variable, only adding the : when needed.
3632 
3633 
3634 # This will make sure the given variable points to a full and proper
3635 # path. This means:
3636 # 1) There will be no spaces in the path. On unix platforms,
3637 #    spaces in the path will result in an error. On Windows,
3638 #    the path will be rewritten using short-style to be space-free.
3639 # 2) The path will be absolute, and it will be in unix-style (on
3640 #     cygwin).
3641 # $1: The name of the variable to fix
3642 
3643 
3644 # This will make sure the given variable points to a executable
3645 # with a full and proper path. This means:
3646 # 1) There will be no spaces in the path. On unix platforms,
3647 #    spaces in the path will result in an error. On Windows,
3648 #    the path will be rewritten using short-style to be space-free.
3649 # 2) The path will be absolute, and it will be in unix-style (on
3650 #     cygwin).
3651 # Any arguments given to the executable is preserved.
3652 # If the input variable does not have a directory specification, then
3653 # it need to be in the PATH.
3654 # $1: The name of the variable to fix
3655 
3656 
3657 
3658 
3659 # Register a --with argument but mark it as deprecated
3660 # $1: The name of the with argument to deprecate, not including --with-
3661 
3662 
3663 # Register a --enable argument but mark it as deprecated
3664 # $1: The name of the with argument to deprecate, not including --enable-
3665 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -)
3666 # $3: Messages to user.
3667 
3668 
3669 
3670 
3671 # Test that variable $1 denoting a program is not empty. If empty, exit with an error.
3672 # $1: variable to check
3673 
3674 
3675 # Check that there are no unprocessed overridden variables left.
3676 # If so, they are an incorrect argument and we will exit with an error.
3677 
3678 
3679 # Setup a tool for the given variable. If correctly specified by the user,
3680 # use that value, otherwise search for the tool using the supplied code snippet.
3681 # $1: variable to set
3682 # $2: code snippet to call to look for the tool
3683 # $3: code snippet to call if variable was used to find tool
3684 
3685 
3686 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool
3687 # $1: variable to set
3688 # $2: executable name (or list of names) to look for
3689 # $3: [path]
3690 
3691 
3692 # Call BASIC_SETUP_TOOL with AC_CHECK_TOOLS to locate the tool
3693 # $1: variable to set
3694 # $2: executable name (or list of names) to look for
3695 
3696 
3697 # Like BASIC_PATH_PROGS but fails if no tool was found.
3698 # $1: variable to set
3699 # $2: executable name (or list of names) to look for
3700 # $3: [path]
3701 
3702 
3703 # Like BASIC_SETUP_TOOL but fails if no tool was found.
3704 # $1: variable to set
3705 # $2: autoconf macro to call to look for the special tool
3706 
3707 
3708 # Setup the most fundamental tools that relies on not much else to set up,
3709 # but is used by much of the early bootstrap code.
3710 
3711 
3712 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3713 
3714 
3715 # Evaluates platform specific overrides for devkit variables.
3716 # $1: Name of variable
3717 
3718 
3719 
3720 
3721 
3722 
3723 #%%% Simple tools %%%
3724 
3725 # Check if we have found a usable version of make
3726 # $1: the path to a potential make binary (or empty)
3727 # $2: the description on how we found this
3728 
3729 
3730 
3731 
3732 # Goes looking for a usable version of GNU make.
3733 
3734 
3735 
3736 
3737 
3738 
3739 
3740 
3741 
3742 
3743 # Check if build directory is on local disk. If not possible to determine,
3744 # we prefer to claim it's local.
3745 # Argument 1: directory to test
3746 # Argument 2: what to do if it is on local disk
3747 # Argument 3: what to do otherwise (remote disk or failure)
3748 
3749 
3750 # Check that source files have basic read permissions set. This might
3751 # not be the case in cygwin in certain conditions.
3752 
3753 
3754 
3755 
3756 # Check for support for specific options in bash
3757 
3758 
3759 ################################################################################
3760 #
3761 # Default make target
3762 #
3763 
3764 
3765 # Code to run after AC_OUTPUT
3766 
3767 
3768 #
3769 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
3770 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3771 #
3772 # This code is free software; you can redistribute it and/or modify it
3773 # under the terms of the GNU General Public License version 2 only, as
3774 # published by the Free Software Foundation.  Oracle designates this
3775 # particular file as subject to the "Classpath" exception as provided
3776 # by Oracle in the LICENSE file that accompanied this code.
3777 #
3778 # This code is distributed in the hope that it will be useful, but WITHOUT
3779 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3780 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3781 # version 2 for more details (a copy is included in the LICENSE file that
3782 # accompanied this code).
3783 #
3784 # You should have received a copy of the GNU General Public License version
3785 # 2 along with this work; if not, write to the Free Software Foundation,
3786 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3787 #
3788 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3789 # or visit www.oracle.com if you need additional information or have any
3790 # questions.
3791 #
3792 
3793 
3794 
3795 
3796 
3797 # Helper function which possibly converts a path using DOS-style short mode.
3798 # If so, the updated path is stored in $new_path.
3799 # $1: The path to check
3800 
3801 
3802 # Helper function which possibly converts a path using DOS-style short mode.
3803 # If so, the updated path is stored in $new_path.
3804 # $1: The path to check
3805 
3806 
3807 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted
3808 # and could probably be heavily simplified. However, all changes in this
3809 # area tend to need lot of testing in different scenarios, and in lack of
3810 # proper unit testing, cleaning this up has not been deemed worth the effort
3811 # at the moment.
3812 
3813 
3814 
3815 
3816 
3817 
3818 
3819 
3820 
3821 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3822 
3823 
3824 
3825 
3826 # ... then the rest
3827 #
3828 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
3829 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3830 #
3831 # This code is free software; you can redistribute it and/or modify it
3832 # under the terms of the GNU General Public License version 2 only, as
3833 # published by the Free Software Foundation.  Oracle designates this
3834 # particular file as subject to the "Classpath" exception as provided
3835 # by Oracle in the LICENSE file that accompanied this code.
3836 #
3837 # This code is distributed in the hope that it will be useful, but WITHOUT
3838 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3839 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3840 # version 2 for more details (a copy is included in the LICENSE file that
3841 # accompanied this code).
3842 #
3843 # You should have received a copy of the GNU General Public License version
3844 # 2 along with this work; if not, write to the Free Software Foundation,
3845 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3846 #
3847 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3848 # or visit www.oracle.com if you need additional information or have any
3849 # questions.
3850 #
3851 
3852 ########################################################################
3853 # This file handles detection of the Boot JDK. The Boot JDK detection
3854 # process has been developed as a response to solve a complex real-world
3855 # problem. Initially, it was simple, but it has grown as platform after
3856 # platform, idiosyncracy after idiosyncracy has been supported.
3857 #
3858 # The basic idea is this:
3859 # 1) You need an acceptable *) JDK to use as a Boot JDK
3860 # 2) There are several ways to locate a JDK, that are mostly platform
3861 #    dependent **)
3862 # 3) You can have multiple JDKs installed
3863 # 4) If possible, configure should try to dig out an acceptable JDK
3864 #    automatically, without having to resort to command-line options
3865 #
3866 # *)  acceptable means e.g. JDK7 for building JDK8, a complete JDK (with
3867 #     javac) and not a JRE, etc.
3868 #
3869 # **) On Windows we typically use a well-known path.
3870 #     On MacOSX we typically use the tool java_home.
3871 #     On Linux we typically find javac in the $PATH, and then follow a
3872 #     chain of symlinks that often ends up in a real JDK.
3873 #
3874 # This leads to the code where we check in different ways to locate a
3875 # JDK, and if one is found, check if it is acceptable. If not, we print
3876 # our reasons for rejecting it (useful when debugging non-working
3877 # configure situations) and continue checking the next one.
3878 ########################################################################
3879 
3880 # Execute the check given as argument, and verify the result
3881 # If the Boot JDK was previously found, do nothing
3882 # $1 A command line (typically autoconf macro) to execute
3883 
3884 
3885 # Test: Is bootjdk explicitly set by command line arguments?
3886 
3887 
3888 # Test: Is $JAVA_HOME set?
3889 
3890 
3891 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
3892 
3893 
3894 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX)
3895 # $1: Argument to the java_home binary (optional)
3896 
3897 
3898 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home?
3899 
3900 
3901 # Look for a jdk in the given path. If there are multiple, try to select the newest.
3902 # If found, set BOOT_JDK and BOOT_JDK_FOUND.
3903 # $1 = Path to directory containing jdk installations.
3904 # $2 = String to append to the found JDK directory to get the proper JDK home
3905 
3906 
3907 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given
3908 # environmental variable as base for where to look.
3909 # $1 Name of an environmal variable, assumed to point to the Program Files directory.
3910 
3911 
3912 # Test: Is there a JDK installed in default, well-known locations?
3913 
3914 
3915 # Check that a command-line tool in the Boot JDK is correct
3916 # $1 = name of variable to assign
3917 # $2 = name of binary
3918 
3919 
3920 ###############################################################################
3921 #
3922 # We need a Boot JDK to bootstrap the build.
3923 #
3924 
3925 
3926 
3927 
3928 
3929 # BUILD_JDK: the location of the latest JDK that can run
3930 #   on the host system and supports the target class file version
3931 #   generated in this JDK build.  This variable should only be
3932 #   used after the launchers are built.
3933 #
3934 
3935 # Execute the check given as argument, and verify the result.
3936 # If the JDK was previously found, do nothing.
3937 # $1 A command line (typically autoconf macro) to execute
3938 
3939 
3940 # By default the BUILD_JDK is the JDK_OUTPUTDIR.  If the target architecture
3941 # is different than the host system doing the build (e.g. cross-compilation),
3942 # a special BUILD_JDK is built as part of the build process.  An external
3943 # prebuilt BUILD_JDK can also be supplied.
3944 
3945 
3946 #
3947 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
3948 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3949 #
3950 # This code is free software; you can redistribute it and/or modify it
3951 # under the terms of the GNU General Public License version 2 only, as
3952 # published by the Free Software Foundation.  Oracle designates this
3953 # particular file as subject to the "Classpath" exception as provided
3954 # by Oracle in the LICENSE file that accompanied this code.
3955 #
3956 # This code is distributed in the hope that it will be useful, but WITHOUT
3957 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3958 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3959 # version 2 for more details (a copy is included in the LICENSE file that
3960 # accompanied this code).
3961 #
3962 # You should have received a copy of the GNU General Public License version
3963 # 2 along with this work; if not, write to the Free Software Foundation,
3964 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3965 #
3966 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3967 # or visit www.oracle.com if you need additional information or have any
3968 # questions.
3969 #
3970 
3971 
3972 
3973 
3974 
3975 
3976 
3977 
3978 
3979 
3980 
3981 
3982 
3983 
3984 
3985 
3986 
3987 ################################################################################
3988 #
3989 # Runs icecc-create-env once and prints the error if it fails
3990 #
3991 # $1: arguments to icecc-create-env
3992 # $2: log file
3993 #
3994 
3995 
3996 ################################################################################
3997 #
3998 # Optionally enable distributed compilation of native code using icecc/icecream
3999 #
4000 
4001 
4002 
4003 
4004 
4005 
4006 
4007 #
4008 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
4009 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4010 #
4011 # This code is free software; you can redistribute it and/or modify it
4012 # under the terms of the GNU General Public License version 2 only, as
4013 # published by the Free Software Foundation.  Oracle designates this
4014 # particular file as subject to the "Classpath" exception as provided
4015 # by Oracle in the LICENSE file that accompanied this code.
4016 #
4017 # This code is distributed in the hope that it will be useful, but WITHOUT
4018 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4019 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4020 # version 2 for more details (a copy is included in the LICENSE file that
4021 # accompanied this code).
4022 #
4023 # You should have received a copy of the GNU General Public License version
4024 # 2 along with this work; if not, write to the Free Software Foundation,
4025 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4026 #
4027 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4028 # or visit www.oracle.com if you need additional information or have any
4029 # questions.
4030 #
4031 
4032 ################################################################################
4033 #
4034 # Setup ABI profile (for arm)
4035 #
4036 
4037 
4038 # Reset the global CFLAGS/LDFLAGS variables and initialize them with the
4039 # corresponding configure arguments instead
4040 
4041 
4042 # Setup the sysroot flags and add them to global CFLAGS and LDFLAGS so
4043 # that configure can use them while detecting compilers.
4044 # TOOLCHAIN_TYPE is available here.
4045 # Param 1 - Optional prefix to all variables. (e.g BUILD_)
4046 
4047 
4048 
4049 
4050 
4051 
4052 # Documentation on common flags used for solstudio in HIGHEST.
4053 #
4054 # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be
4055 #          done with care, there are some assumptions below that need to
4056 #          be understood about the use of pointers, and IEEE behavior.
4057 #
4058 # -fns: Use non-standard floating point mode (not IEEE 754)
4059 # -fsimple: Do some simplification of floating point arithmetic (not IEEE 754)
4060 # -fsingle: Use single precision floating point with 'float'
4061 # -xalias_level=basic: Assume memory references via basic pointer types do not alias
4062 #   (Source with excessing pointer casting and data access with mixed
4063 #    pointer types are not recommended)
4064 # -xbuiltin=%all: Use intrinsic or inline versions for math/std functions
4065 #   (If you expect perfect errno behavior, do not use this)
4066 # -xdepend: Loop data dependency optimizations (need -xO3 or higher)
4067 # -xrestrict: Pointer parameters to functions do not overlap
4068 #   (Similar to -xalias_level=basic usage, but less obvious sometimes.
4069 #    If you pass in multiple pointers to the same data, do not use this)
4070 # -xlibmil: Inline some library routines
4071 #   (If you expect perfect errno behavior, do not use this)
4072 # -xlibmopt: Use optimized math routines (CURRENTLY DISABLED)
4073 #   (If you expect perfect errno behavior, do not use this)
4074 #  Can cause undefined external on Solaris 8 X86 on __sincos, removing for now
4075 
4076     # FIXME: this will never happen since sparc != sparcv9, ie 32 bit, which we don't build anymore.
4077     # Bug?
4078     #if test "x$OPENJDK_TARGET_CPU" = xsparc; then
4079     #  CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s"
4080     #  CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s"
4081     #fi
4082 
4083 
4084 
4085 
4086 
4087 
4088 ################################################################################
4089 # $1 - Either BUILD or TARGET to pick the correct OS/CPU variables to check
4090 #      conditionals against.
4091 # $2 - Optional prefix for each variable defined.
4092 
4093 
4094 # FLAGS_C_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE],
4095 #                                  IF_FALSE: [RUN-IF-FALSE])
4096 # ------------------------------------------------------------
4097 # Check that the C compiler supports an argument
4098 
4099 
4100 
4101 
4102 # FLAGS_CXX_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE],
4103 #                                    IF_FALSE: [RUN-IF-FALSE])
4104 # ------------------------------------------------------------
4105 # Check that the C++ compiler supports an argument
4106 
4107 
4108 
4109 
4110 # FLAGS_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE],
4111 #                                IF_FALSE: [RUN-IF-FALSE])
4112 # ------------------------------------------------------------
4113 # Check that the C and C++ compilers support an argument
4114 
4115 
4116 
4117 
4118 # FLAGS_LINKER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE],
4119 #                                   IF_FALSE: [RUN-IF-FALSE])
4120 # ------------------------------------------------------------
4121 # Check that the linker support an argument
4122 
4123 
4124 
4125 
4126 
4127 
4128 # FLAGS_SETUP_GCC6_COMPILER_FLAGS([PREFIX])
4129 # Arguments:
4130 # $1 - Optional prefix for each variable defined.
4131 
4132 
4133 #
4134 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
4135 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4136 #
4137 # This code is free software; you can redistribute it and/or modify it
4138 # under the terms of the GNU General Public License version 2 only, as
4139 # published by the Free Software Foundation.  Oracle designates this
4140 # particular file as subject to the "Classpath" exception as provided
4141 # by Oracle in the LICENSE file that accompanied this code.
4142 #
4143 # This code is distributed in the hope that it will be useful, but WITHOUT
4144 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4145 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4146 # version 2 for more details (a copy is included in the LICENSE file that
4147 # accompanied this code).
4148 #
4149 # You should have received a copy of the GNU General Public License version
4150 # 2 along with this work; if not, write to the Free Software Foundation,
4151 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4152 #
4153 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4154 # or visit www.oracle.com if you need additional information or have any
4155 # questions.
4156 #
4157 
4158 
4159 
4160 
4161 
4162 cygwin_help() {
4163   case $1 in
4164     unzip)
4165       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )"
4166       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
4167       ;;
4168     zip)
4169       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )"
4170       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
4171       ;;
4172     make)
4173       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )"
4174       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
4175       ;;
4176     freetype)
4177       HELP_MSG="
4178 The freetype library can now be build during the configure process.
4179 Download the freetype sources and unpack them into an arbitrary directory:
4180 
4181 wget http://download.savannah.gnu.org/releases/freetype/freetype-2.5.3.tar.gz
4182 tar -xzf freetype-2.5.3.tar.gz
4183 
4184 Then run configure with '--with-freetype-src=<freetype_src>'. This will
4185 automatically build the freetype library into '<freetype_src>/lib64' for 64-bit
4186 builds or into '<freetype_src>/lib32' for 32-bit builds.
4187 Afterwards you can always use '--with-freetype-include=<freetype_src>/include'
4188 and '--with-freetype-lib=<freetype_src>/lib32|64' for other builds.
4189 
4190 Alternatively you can unpack the sources like this to use the default directory:
4191 
4192 tar --one-top-level=$HOME/freetype --strip-components=1 -xzf freetype-2.5.3.tar.gz"
4193       ;;
4194   esac
4195 }
4196 
4197 msys_help() {
4198   PKGHANDLER_COMMAND=""
4199 }
4200 
4201 apt_help() {
4202   case $1 in
4203     reduced)
4204       PKGHANDLER_COMMAND="sudo apt-get install gcc-multilib g++-multilib" ;;
4205     devkit)
4206       PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;;
4207     openjdk)
4208       PKGHANDLER_COMMAND="sudo apt-get install openjdk-8-jdk" ;;
4209     alsa)
4210       PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;;
4211     cups)
4212       PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;;
4213     freetype)
4214       PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;;
4215     ffi)
4216       PKGHANDLER_COMMAND="sudo apt-get install libffi-dev" ;;
4217     x11)
4218       PKGHANDLER_COMMAND="sudo apt-get install libx11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;;
4219     ccache)
4220       PKGHANDLER_COMMAND="sudo apt-get install ccache" ;;
4221     dtrace)
4222       PKGHANDLER_COMMAND="sudo apt-get install systemtap-sdt-dev" ;;
4223     elf)
4224       PKGHANDLER_COMMAND="sudo apt-get install libelf-dev" ;;
4225   esac
4226 }
4227 
4228 yum_help() {
4229   case $1 in
4230     devkit)
4231       PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;;
4232     openjdk)
4233       PKGHANDLER_COMMAND="sudo yum install java-1.8.0-openjdk-devel" ;;
4234     alsa)
4235       PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;;
4236     cups)
4237       PKGHANDLER_COMMAND="sudo yum install cups-devel" ;;
4238     freetype)
4239       PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;;
4240     x11)
4241       PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel libXi-devel" ;;
4242     ccache)
4243       PKGHANDLER_COMMAND="sudo yum install ccache" ;;
4244     elf)
4245       PKGHANDLER_COMMAND="sudo yum install elfutils-libelf-devel" ;;
4246   esac
4247 }
4248 
4249 brew_help() {
4250   case $1 in
4251     openjdk)
4252       PKGHANDLER_COMMAND="brew cask install java" ;;
4253     freetype)
4254       PKGHANDLER_COMMAND="brew install freetype" ;;
4255     ccache)
4256       PKGHANDLER_COMMAND="brew install ccache" ;;
4257   esac
4258 }
4259 
4260 port_help() {
4261   PKGHANDLER_COMMAND=""
4262 }
4263 
4264 pkgutil_help() {
4265   PKGHANDLER_COMMAND=""
4266 }
4267 
4268 pkgadd_help() {
4269   PKGHANDLER_COMMAND=""
4270 }
4271 
4272 # This function will check if we're called from the "configure" wrapper while
4273 # printing --help. If so, we will print out additional information that can
4274 # only be extracted within the autoconf script, and then exit. This must be
4275 # called at the very beginning in configure.ac.
4276 
4277 
4278 
4279 
4280 
4281 
4282 #
4283 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
4284 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4285 #
4286 # This code is free software; you can redistribute it and/or modify it
4287 # under the terms of the GNU General Public License version 2 only, as
4288 # published by the Free Software Foundation.  Oracle designates this
4289 # particular file as subject to the "Classpath" exception as provided
4290 # by Oracle in the LICENSE file that accompanied this code.
4291 #
4292 # This code is distributed in the hope that it will be useful, but WITHOUT
4293 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4294 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4295 # version 2 for more details (a copy is included in the LICENSE file that
4296 # accompanied this code).
4297 #
4298 # You should have received a copy of the GNU General Public License version
4299 # 2 along with this work; if not, write to the Free Software Foundation,
4300 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4301 #
4302 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4303 # or visit www.oracle.com if you need additional information or have any
4304 # questions.
4305 #
4306 
4307 # All valid JVM features, regardless of platform
4308 VALID_JVM_FEATURES="compiler1 compiler2 zero shark minimal dtrace jvmti jvmci \
4309     graal fprof vm-structs jni-check services management all-gcs nmt cds \
4310     static-build link-time-opt aot"
4311 
4312 # All valid JVM variants
4313 VALID_JVM_VARIANTS="server client minimal core zero zeroshark custom"
4314 
4315 ###############################################################################
4316 # Check if the specified JVM variant should be built. To be used in shell if
4317 # constructs, like this:
4318 # if HOTSPOT_CHECK_JVM_VARIANT(server); then
4319 #
4320 # Only valid to use after HOTSPOT_SETUP_JVM_VARIANTS has setup variants.
4321 
4322 # Definition kept in one line to allow inlining in if statements.
4323 # Additional [] needed to keep m4 from mangling shell constructs.
4324 
4325 
4326 ###############################################################################
4327 # Check if the specified JVM features are explicitly enabled. To be used in
4328 # shell if constructs, like this:
4329 # if HOTSPOT_CHECK_JVM_FEATURE(jvmti); then
4330 #
4331 # Only valid to use after HOTSPOT_SETUP_JVM_FEATURES has setup features.
4332 
4333 # Definition kept in one line to allow inlining in if statements.
4334 # Additional [] needed to keep m4 from mangling shell constructs.
4335 
4336 
4337 ###############################################################################
4338 # Check which variants of the JVM that we want to build. Available variants are:
4339 #   server: normal interpreter, and a tiered C1/C2 compiler
4340 #   client: normal interpreter, and C1 (no C2 compiler)
4341 #   minimal: reduced form of client with optional features stripped out
4342 #   core: normal interpreter only, no compiler
4343 #   zero: C++ based interpreter only, no compiler
4344 #   zeroshark: C++ based interpreter, and a llvm-based compiler
4345 #   custom: baseline JVM with no default features
4346 #
4347 
4348 
4349 ###############################################################################
4350 # Check if dtrace should be enabled and has all prerequisites present.
4351 #
4352 
4353 
4354 ################################################################################
4355 # Check if AOT should be enabled
4356 #
4357 
4358 
4359 ###############################################################################
4360 # Set up all JVM features for each JVM variant.
4361 #
4362 
4363 
4364 ###############################################################################
4365 # Validate JVM features once all setup is complete, including custom setup.
4366 #
4367 
4368 
4369 ################################################################################
4370 #
4371 # Specify which sources will be used to build the 64-bit ARM port
4372 #
4373 # --with-cpu-port=arm64   will use hotspot/src/cpu/arm
4374 # --with-cpu-port=aarch64 will use hotspot/src/cpu/aarch64
4375 #
4376 
4377 
4378 
4379 ################################################################################
4380 # Check if gtest should be built
4381 #
4382 
4383 
4384 #
4385 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
4386 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4387 #
4388 # This code is free software; you can redistribute it and/or modify it
4389 # under the terms of the GNU General Public License version 2 only, as
4390 # published by the Free Software Foundation.  Oracle designates this
4391 # particular file as subject to the "Classpath" exception as provided
4392 # by Oracle in the LICENSE file that accompanied this code.
4393 #
4394 # This code is distributed in the hope that it will be useful, but WITHOUT
4395 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4396 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4397 # version 2 for more details (a copy is included in the LICENSE file that
4398 # accompanied this code).
4399 #
4400 # You should have received a copy of the GNU General Public License version
4401 # 2 along with this work; if not, write to the Free Software Foundation,
4402 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4403 #
4404 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4405 # or visit www.oracle.com if you need additional information or have any
4406 # questions.
4407 #
4408 
4409 ###############################################################################
4410 # Check which variant of the JDK that we want to build.
4411 # Currently we have:
4412 #    normal:   standard edition
4413 # but the custom make system may add other variants
4414 #
4415 # Effectively the JDK variant gives a name to a specific set of
4416 # modules to compile into the JDK.
4417 
4418 
4419 ###############################################################################
4420 # Set the debug level
4421 #    release: no debug information, all optimizations, no asserts.
4422 #    optimized: no debug information, all optimizations, no asserts, HotSpot target is 'optimized'.
4423 #    fastdebug: debug information (-g), all optimizations, all asserts
4424 #    slowdebug: debug information (-g), no optimizations, all asserts
4425 
4426 
4427 ###############################################################################
4428 #
4429 # Should we build only OpenJDK even if closed sources are present?
4430 #
4431 
4432 
4433 
4434 
4435 ###############################################################################
4436 #
4437 # Enable or disable the elliptic curve crypto implementation
4438 #
4439 
4440 
4441 
4442 
4443 ################################################################################
4444 #
4445 # Gcov coverage data for hotspot
4446 #
4447 
4448 
4449 ################################################################################
4450 #
4451 # Static build support.  When enabled will generate static
4452 # libraries instead of shared libraries for all JDK libs.
4453 #
4454 
4455 
4456 ################################################################################
4457 #
4458 # jlink options.
4459 # We always keep packaged modules in JDK image.
4460 #
4461 
4462 
4463 ################################################################################
4464 #
4465 # Check if building of the jtreg failure handler should be enabled.
4466 #
4467 
4468 
4469 ################################################################################
4470 #
4471 # Enable or disable generation of the classlist at build time
4472 #
4473 
4474 
4475 #
4476 # Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
4477 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4478 #
4479 # This code is free software; you can redistribute it and/or modify it
4480 # under the terms of the GNU General Public License version 2 only, as
4481 # published by the Free Software Foundation.  Oracle designates this
4482 # particular file as subject to the "Classpath" exception as provided
4483 # by Oracle in the LICENSE file that accompanied this code.
4484 #
4485 # This code is distributed in the hope that it will be useful, but WITHOUT
4486 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4487 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4488 # version 2 for more details (a copy is included in the LICENSE file that
4489 # accompanied this code).
4490 #
4491 # You should have received a copy of the GNU General Public License version
4492 # 2 along with this work; if not, write to the Free Software Foundation,
4493 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4494 #
4495 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4496 # or visit www.oracle.com if you need additional information or have any
4497 # questions.
4498 #
4499 
4500 ###############################################################################
4501 #
4502 # Setup version numbers
4503 #
4504 
4505 # Verify that a given string represents a valid version number, and assign it
4506 # to a variable.
4507 
4508 # Argument 1: the variable to assign to
4509 # Argument 2: the value given by the user
4510 
4511 
4512 
4513 
4514 #
4515 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4516 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4517 #
4518 # This code is free software; you can redistribute it and/or modify it
4519 # under the terms of the GNU General Public License version 2 only, as
4520 # published by the Free Software Foundation.  Oracle designates this
4521 # particular file as subject to the "Classpath" exception as provided
4522 # by Oracle in the LICENSE file that accompanied this code.
4523 #
4524 # This code is distributed in the hope that it will be useful, but WITHOUT
4525 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4526 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4527 # version 2 for more details (a copy is included in the LICENSE file that
4528 # accompanied this code).
4529 #
4530 # You should have received a copy of the GNU General Public License version
4531 # 2 along with this work; if not, write to the Free Software Foundation,
4532 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4533 #
4534 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4535 # or visit www.oracle.com if you need additional information or have any
4536 # questions.
4537 #
4538 
4539 # Major library component reside in separate files.
4540 #
4541 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4542 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4543 #
4544 # This code is free software; you can redistribute it and/or modify it
4545 # under the terms of the GNU General Public License version 2 only, as
4546 # published by the Free Software Foundation.  Oracle designates this
4547 # particular file as subject to the "Classpath" exception as provided
4548 # by Oracle in the LICENSE file that accompanied this code.
4549 #
4550 # This code is distributed in the hope that it will be useful, but WITHOUT
4551 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4552 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4553 # version 2 for more details (a copy is included in the LICENSE file that
4554 # accompanied this code).
4555 #
4556 # You should have received a copy of the GNU General Public License version
4557 # 2 along with this work; if not, write to the Free Software Foundation,
4558 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4559 #
4560 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4561 # or visit www.oracle.com if you need additional information or have any
4562 # questions.
4563 #
4564 
4565 ################################################################################
4566 # Setup alsa (Advanced Linux Sound Architecture)
4567 ################################################################################
4568 
4569 
4570 #
4571 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
4572 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4573 #
4574 # This code is free software; you can redistribute it and/or modify it
4575 # under the terms of the GNU General Public License version 2 only, as
4576 # published by the Free Software Foundation.  Oracle designates this
4577 # particular file as subject to the "Classpath" exception as provided
4578 # by Oracle in the LICENSE file that accompanied this code.
4579 #
4580 # This code is distributed in the hope that it will be useful, but WITHOUT
4581 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4582 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4583 # version 2 for more details (a copy is included in the LICENSE file that
4584 # accompanied this code).
4585 #
4586 # You should have received a copy of the GNU General Public License version
4587 # 2 along with this work; if not, write to the Free Software Foundation,
4588 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4589 #
4590 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4591 # or visit www.oracle.com if you need additional information or have any
4592 # questions.
4593 #
4594 
4595 ################################################################################
4596 # Setup bundled libraries.
4597 #
4598 # For libjpeg, giflib, libpng, lcms2 and zlib, the source is present in the
4599 # OpenJDK repository. Default is to use these libraries as bundled, but they
4600 # might be replaced by en external version by the user.
4601 ################################################################################
4602 
4603 
4604 ################################################################################
4605 # Setup libjpeg
4606 ################################################################################
4607 
4608 
4609 ################################################################################
4610 # Setup giflib
4611 ################################################################################
4612 
4613 
4614 ################################################################################
4615 # Setup libpng
4616 ################################################################################
4617 
4618 
4619 ################################################################################
4620 # Setup zlib
4621 ################################################################################
4622 
4623 
4624 ################################################################################
4625 # Setup lcms (Little CMS)
4626 ################################################################################
4627 
4628 
4629 #
4630 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4631 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4632 #
4633 # This code is free software; you can redistribute it and/or modify it
4634 # under the terms of the GNU General Public License version 2 only, as
4635 # published by the Free Software Foundation.  Oracle designates this
4636 # particular file as subject to the "Classpath" exception as provided
4637 # by Oracle in the LICENSE file that accompanied this code.
4638 #
4639 # This code is distributed in the hope that it will be useful, but WITHOUT
4640 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4641 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4642 # version 2 for more details (a copy is included in the LICENSE file that
4643 # accompanied this code).
4644 #
4645 # You should have received a copy of the GNU General Public License version
4646 # 2 along with this work; if not, write to the Free Software Foundation,
4647 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4648 #
4649 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4650 # or visit www.oracle.com if you need additional information or have any
4651 # questions.
4652 #
4653 
4654 ################################################################################
4655 # Setup cups (Common Unix Printing System)
4656 ################################################################################
4657 
4658 
4659 #
4660 # Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
4661 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4662 #
4663 # This code is free software; you can redistribute it and/or modify it
4664 # under the terms of the GNU General Public License version 2 only, as
4665 # published by the Free Software Foundation.  Oracle designates this
4666 # particular file as subject to the "Classpath" exception as provided
4667 # by Oracle in the LICENSE file that accompanied this code.
4668 #
4669 # This code is distributed in the hope that it will be useful, but WITHOUT
4670 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4671 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4672 # version 2 for more details (a copy is included in the LICENSE file that
4673 # accompanied this code).
4674 #
4675 # You should have received a copy of the GNU General Public License version
4676 # 2 along with this work; if not, write to the Free Software Foundation,
4677 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4678 #
4679 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4680 # or visit www.oracle.com if you need additional information or have any
4681 # questions.
4682 #
4683 
4684 ################################################################################
4685 # Setup libffi (Foreign Function Interface)
4686 ################################################################################
4687 
4688 
4689 #
4690 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
4691 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4692 #
4693 # This code is free software; you can redistribute it and/or modify it
4694 # under the terms of the GNU General Public License version 2 only, as
4695 # published by the Free Software Foundation.  Oracle designates this
4696 # particular file as subject to the "Classpath" exception as provided
4697 # by Oracle in the LICENSE file that accompanied this code.
4698 #
4699 # This code is distributed in the hope that it will be useful, but WITHOUT
4700 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4701 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4702 # version 2 for more details (a copy is included in the LICENSE file that
4703 # accompanied this code).
4704 #
4705 # You should have received a copy of the GNU General Public License version
4706 # 2 along with this work; if not, write to the Free Software Foundation,
4707 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4708 #
4709 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4710 # or visit www.oracle.com if you need additional information or have any
4711 # questions.
4712 #
4713 
4714 ################################################################################
4715 # Build the freetype lib from source
4716 ################################################################################
4717 
4718 
4719 ################################################################################
4720 # Check if a potential freeype library match is correct and usable
4721 ################################################################################
4722 
4723 
4724 ################################################################################
4725 # Setup freetype (The FreeType2 font rendering library)
4726 ################################################################################
4727 
4728 
4729 #
4730 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4731 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4732 #
4733 # This code is free software; you can redistribute it and/or modify it
4734 # under the terms of the GNU General Public License version 2 only, as
4735 # published by the Free Software Foundation.  Oracle designates this
4736 # particular file as subject to the "Classpath" exception as provided
4737 # by Oracle in the LICENSE file that accompanied this code.
4738 #
4739 # This code is distributed in the hope that it will be useful, but WITHOUT
4740 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4741 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4742 # version 2 for more details (a copy is included in the LICENSE file that
4743 # accompanied this code).
4744 #
4745 # You should have received a copy of the GNU General Public License version
4746 # 2 along with this work; if not, write to the Free Software Foundation,
4747 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4748 #
4749 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4750 # or visit www.oracle.com if you need additional information or have any
4751 # questions.
4752 #
4753 
4754 ################################################################################
4755 # Setup the standard C/C++ runtime libraries.
4756 #
4757 # Most importantly, determine if stdc++ should be linked statically or
4758 # dynamically.
4759 ################################################################################
4760 
4761 
4762 #
4763 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4764 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4765 #
4766 # This code is free software; you can redistribute it and/or modify it
4767 # under the terms of the GNU General Public License version 2 only, as
4768 # published by the Free Software Foundation.  Oracle designates this
4769 # particular file as subject to the "Classpath" exception as provided
4770 # by Oracle in the LICENSE file that accompanied this code.
4771 #
4772 # This code is distributed in the hope that it will be useful, but WITHOUT
4773 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4774 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4775 # version 2 for more details (a copy is included in the LICENSE file that
4776 # accompanied this code).
4777 #
4778 # You should have received a copy of the GNU General Public License version
4779 # 2 along with this work; if not, write to the Free Software Foundation,
4780 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4781 #
4782 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4783 # or visit www.oracle.com if you need additional information or have any
4784 # questions.
4785 #
4786 
4787 ################################################################################
4788 # Setup X11 Windows system
4789 ################################################################################
4790 
4791 
4792 #
4793 # Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
4794 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4795 #
4796 # This code is free software; you can redistribute it and/or modify it
4797 # under the terms of the GNU General Public License version 2 only, as
4798 # published by the Free Software Foundation.  Oracle designates this
4799 # particular file as subject to the "Classpath" exception as provided
4800 # by Oracle in the LICENSE file that accompanied this code.
4801 #
4802 # This code is distributed in the hope that it will be useful, but WITHOUT
4803 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4804 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4805 # version 2 for more details (a copy is included in the LICENSE file that
4806 # accompanied this code).
4807 #
4808 # You should have received a copy of the GNU General Public License version
4809 # 2 along with this work; if not, write to the Free Software Foundation,
4810 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4811 #
4812 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4813 # or visit www.oracle.com if you need additional information or have any
4814 # questions.
4815 #
4816 
4817 ################################################################################
4818 # Setup libelf (ELF library)
4819 ################################################################################
4820 
4821 
4822 
4823 ################################################################################
4824 # Determine which libraries are needed for this configuration
4825 ################################################################################
4826 
4827 
4828 ################################################################################
4829 # Parse library options, and setup needed libraries
4830 ################################################################################
4831 
4832 
4833 ################################################################################
4834 # Setup llvm (Low-Level VM)
4835 ################################################################################
4836 
4837 
4838 ################################################################################
4839 # Setup various libraries, typically small system libraries
4840 ################################################################################
4841 
4842 
4843 ################################################################################
4844 # libstlport.so.1 is needed for running gtest on Solaris. Find it to
4845 # redistribute it in the test image.
4846 ################################################################################
4847 
4848 
4849 
4850 #
4851 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
4852 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4853 #
4854 # This code is free software; you can redistribute it and/or modify it
4855 # under the terms of the GNU General Public License version 2 only, as
4856 # published by the Free Software Foundation.  Oracle designates this
4857 # particular file as subject to the "Classpath" exception as provided
4858 # by Oracle in the LICENSE file that accompanied this code.
4859 #
4860 # This code is distributed in the hope that it will be useful, but WITHOUT
4861 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4862 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4863 # version 2 for more details (a copy is included in the LICENSE file that
4864 # accompanied this code).
4865 #
4866 # You should have received a copy of the GNU General Public License version
4867 # 2 along with this work; if not, write to the Free Software Foundation,
4868 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4869 #
4870 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4871 # or visit www.oracle.com if you need additional information or have any
4872 # questions.
4873 #
4874 
4875 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4876 # Converts autoconf style CPU name to OpenJDK style, into
4877 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN.
4878 
4879 
4880 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4881 # Converts autoconf style OS name to OpenJDK style, into
4882 # VAR_OS, VAR_OS_TYPE and VAR_OS_ENV.
4883 
4884 
4885 # Expects $host_os $host_cpu $build_os and $build_cpu
4886 # and $with_target_bits to have been setup!
4887 #
4888 # Translate the standard triplet(quadruplet) definition
4889 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU,
4890 # OPENJDK_BUILD_OS, etc.
4891 
4892 
4893 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour
4894 # accordingly. Must be done after setting up build and target system, but before
4895 # doing anything else with these values.
4896 
4897 
4898 # Setup the legacy variables, for controlling the old makefiles.
4899 #
4900 
4901 
4902 # $1 - Either TARGET or BUILD to setup the variables for.
4903 
4904 
4905 
4906 
4907 
4908 
4909 #%%% Build and target systems %%%
4910 
4911 
4912 
4913 
4914 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS.
4915 # Add -mX to various FLAGS variables.
4916 
4917 
4918 
4919 
4920 
4921 
4922 #
4923 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4924 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4925 #
4926 # This code is free software; you can redistribute it and/or modify it
4927 # under the terms of the GNU General Public License version 2 only, as
4928 # published by the Free Software Foundation.  Oracle designates this
4929 # particular file as subject to the "Classpath" exception as provided
4930 # by Oracle in the LICENSE file that accompanied this code.
4931 #
4932 # This code is distributed in the hope that it will be useful, but WITHOUT
4933 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4934 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4935 # version 2 for more details (a copy is included in the LICENSE file that
4936 # accompanied this code).
4937 #
4938 # You should have received a copy of the GNU General Public License version
4939 # 2 along with this work; if not, write to the Free Software Foundation,
4940 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4941 #
4942 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4943 # or visit www.oracle.com if you need additional information or have any
4944 # questions.
4945 #
4946 
4947 
4948 
4949 
4950 
4951 
4952 
4953 ################################################################################
4954 # Define a mechanism for importing extra prebuilt modules
4955 #
4956 
4957 
4958 
4959 #
4960 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4961 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4962 #
4963 # This code is free software; you can redistribute it and/or modify it
4964 # under the terms of the GNU General Public License version 2 only, as
4965 # published by the Free Software Foundation.  Oracle designates this
4966 # particular file as subject to the "Classpath" exception as provided
4967 # by Oracle in the LICENSE file that accompanied this code.
4968 #
4969 # This code is distributed in the hope that it will be useful, but WITHOUT
4970 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4971 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4972 # version 2 for more details (a copy is included in the LICENSE file that
4973 # accompanied this code).
4974 #
4975 # You should have received a copy of the GNU General Public License version
4976 # 2 along with this work; if not, write to the Free Software Foundation,
4977 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4978 #
4979 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4980 # or visit www.oracle.com if you need additional information or have any
4981 # questions.
4982 #
4983 
4984 ########################################################################
4985 # This file is responsible for detecting, verifying and setting up the
4986 # toolchain, i.e. the compiler, linker and related utilities. It will setup
4987 # proper paths to the binaries, but it will not setup any flags.
4988 #
4989 # The binaries used is determined by the toolchain type, which is the family of
4990 # compilers and related tools that are used.
4991 ########################################################################
4992 
4993 
4994 # All valid toolchains, regardless of platform (used by help.m4)
4995 VALID_TOOLCHAINS_all="gcc clang solstudio xlc microsoft"
4996 
4997 # These toolchains are valid on different platforms
4998 VALID_TOOLCHAINS_linux="gcc clang"
4999 VALID_TOOLCHAINS_solaris="solstudio"
5000 VALID_TOOLCHAINS_macosx="gcc clang"
5001 VALID_TOOLCHAINS_aix="xlc"
5002 VALID_TOOLCHAINS_windows="microsoft"
5003 
5004 # Toolchain descriptions
5005 TOOLCHAIN_DESCRIPTION_clang="clang/LLVM"
5006 TOOLCHAIN_DESCRIPTION_gcc="GNU Compiler Collection"
5007 TOOLCHAIN_DESCRIPTION_microsoft="Microsoft Visual Studio"
5008 TOOLCHAIN_DESCRIPTION_solstudio="Oracle Solaris Studio"
5009 TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++"
5010 
5011 # Minimum supported versions, empty means unspecified
5012 TOOLCHAIN_MINIMUM_VERSION_clang="3.2"
5013 TOOLCHAIN_MINIMUM_VERSION_gcc="4.3"
5014 TOOLCHAIN_MINIMUM_VERSION_microsoft="16.00.30319.01" # VS2010
5015 TOOLCHAIN_MINIMUM_VERSION_solstudio="5.13"
5016 TOOLCHAIN_MINIMUM_VERSION_xlc=""
5017 
5018 # Prepare the system so that TOOLCHAIN_CHECK_COMPILER_VERSION can be called.
5019 # Must have CC_VERSION_NUMBER and CXX_VERSION_NUMBER.
5020 # $1 - optional variable prefix for compiler and version variables (BUILD_)
5021 # $2 - optional variable prefix for comparable variable (OPENJDK_BUILD_)
5022 
5023 
5024 # Check if the configured compiler (C and C++) is of a specific version or
5025 # newer. TOOLCHAIN_PREPARE_FOR_VERSION_COMPARISONS must have been called before.
5026 #
5027 # Arguments:
5028 #   VERSION:   The version string to check against the found version
5029 #   IF_AT_LEAST:   block to run if the compiler is at least this version (>=)
5030 #   IF_OLDER_THAN:   block to run if the compiler is older than this version (<)
5031 #   PREFIX:   Optional variable prefix for compiler to compare version for (OPENJDK_BUILD_)
5032 
5033 
5034 
5035 
5036 # Setup a number of variables describing how native output files are
5037 # named on this platform/toolchain.
5038 
5039 
5040 # Determine which toolchain type to use, and make sure it is valid for this
5041 # platform. Setup various information about the selected toolchain.
5042 
5043 
5044 # Before we start detecting the toolchain executables, we might need some
5045 # special setup, e.g. additional paths etc.
5046 
5047 
5048 # Restore path, etc
5049 
5050 
5051 # Check if a compiler is of the toolchain type we expect, and save the version
5052 # information from it. If the compiler does not match the expected type,
5053 # this function will abort using AC_MSG_ERROR. If it matches, the version will
5054 # be stored in CC_VERSION_NUMBER/CXX_VERSION_NUMBER (as a dotted number), and
5055 # the full version string in CC_VERSION_STRING/CXX_VERSION_STRING.
5056 #
5057 # $1 = compiler to test (CC or CXX)
5058 # $2 = human readable name of compiler (C or C++)
5059 
5060 
5061 # Try to locate the given C or C++ compiler in the path, or otherwise.
5062 #
5063 # $1 = compiler to test (CC or CXX)
5064 # $2 = human readable name of compiler (C or C++)
5065 # $3 = compiler name to search for
5066 
5067 
5068 # Detect the core components of the toolchain, i.e. the compilers (CC and CXX),
5069 # preprocessor (CPP and CXXCPP), the linker (LD), the assembler (AS) and the
5070 # archiver (AR). Verify that the compilers are correct according to the
5071 # toolchain type.
5072 
5073 
5074 # Setup additional tools that is considered a part of the toolchain, but not the
5075 # core part. Many of these are highly platform-specific and do not exist,
5076 # and/or are not needed on all platforms.
5077 
5078 
5079 # Setup the build tools (i.e, the compiler and linker used to build programs
5080 # that should be run on the build platform, not the target platform, as a build
5081 # helper). Since the non-cross-compile case uses the normal, target compilers
5082 # for this, we can only do this after these have been setup.
5083 
5084 
5085 # Do some additional checks on the detected tools.
5086 
5087 
5088 # Setup the JTReg Regression Test Harness.
5089 
5090 
5091 #
5092 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
5093 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5094 #
5095 # This code is free software; you can redistribute it and/or modify it
5096 # under the terms of the GNU General Public License version 2 only, as
5097 # published by the Free Software Foundation.  Oracle designates this
5098 # particular file as subject to the "Classpath" exception as provided
5099 # by Oracle in the LICENSE file that accompanied this code.
5100 #
5101 # This code is distributed in the hope that it will be useful, but WITHOUT
5102 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
5103 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
5104 # version 2 for more details (a copy is included in the LICENSE file that
5105 # accompanied this code).
5106 #
5107 # You should have received a copy of the GNU General Public License version
5108 # 2 along with this work; if not, write to the Free Software Foundation,
5109 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
5110 #
5111 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
5112 # or visit www.oracle.com if you need additional information or have any
5113 # questions.
5114 #
5115 
5116 ################################################################################
5117 # The order of these defines the priority by which we try to find them.
5118 VALID_VS_VERSIONS="2013 2012 2010"
5119 
5120 VS_DESCRIPTION_2010="Microsoft Visual Studio 2010"
5121 VS_VERSION_INTERNAL_2010=100
5122 VS_MSVCR_2010=msvcr100.dll
5123 # We don't use msvcp on Visual Studio 2010
5124 #VS_MSVCP_2010=msvcp100.dll
5125 VS_ENVVAR_2010="VS100COMNTOOLS"
5126 VS_VS_INSTALLDIR_2010="Microsoft Visual Studio 10.0"
5127 VS_SDK_INSTALLDIR_2010="Microsoft SDKs/Windows/v7.1"
5128 VS_VS_PLATFORM_NAME_2010="v100"
5129 VS_SDK_PLATFORM_NAME_2010="Windows7.1SDK"
5130 
5131 VS_DESCRIPTION_2012="Microsoft Visual Studio 2012"
5132 VS_VERSION_INTERNAL_2012=110
5133 VS_MSVCR_2012=msvcr110.dll
5134 VS_MSVCP_2012=msvcp110.dll
5135 VS_ENVVAR_2012="VS110COMNTOOLS"
5136 VS_VS_INSTALLDIR_2012="Microsoft Visual Studio 11.0"
5137 VS_SDK_INSTALLDIR_2012=
5138 VS_VS_PLATFORM_NAME_2012="v110"
5139 VS_SDK_PLATFORM_NAME_2012=
5140 
5141 VS_DESCRIPTION_2013="Microsoft Visual Studio 2013"
5142 VS_VERSION_INTERNAL_2013=120
5143 VS_MSVCR_2013=msvcr120.dll
5144 VS_MSVCP_2013=msvcp120.dll
5145 VS_ENVVAR_2013="VS120COMNTOOLS"
5146 VS_VS_INSTALLDIR_2013="Microsoft Visual Studio 12.0"
5147 VS_SDK_INSTALLDIR_2013=
5148 VS_VS_PLATFORM_NAME_2013="v120"
5149 VS_SDK_PLATFORM_NAME_2013=
5150 
5151 ################################################################################
5152 
5153 
5154 
5155 ################################################################################
5156 
5157 
5158 
5159 ################################################################################
5160 # Finds the bat or cmd file in Visual Studio or the SDK that sets up a proper
5161 # build environment and assigns it to VS_ENV_CMD
5162 
5163 
5164 ################################################################################
5165 
5166 
5167 
5168 ################################################################################
5169 # Check if the VS env variables were setup prior to running configure.
5170 # If not, then find vcvarsall.bat and run it automatically, and integrate
5171 # the set env variables into the spec file.
5172 
5173 
5174 
5175 
5176 
5177 
5178 
5179 
5180 
5181 
5182 
5183 
5184 
5185 
5186 # This line needs to be here, verbatim, after all includes and the dummy hook
5187 # definitions. It is replaced with custom functionality when building
5188 # custom sources.
5189 #CUSTOM_AUTOCONF_INCLUDE
5190 
5191 # Do not change or remove the following line, it is needed for consistency checks:
5192 DATE_WHEN_GENERATED=1496926402
5193 
5194 ###############################################################################
5195 #
5196 # Initialization / Boot-strapping
5197 #
5198 # The bootstrapping process needs to solve the "chicken or the egg" problem,
5199 # thus it jumps back and forth, each time gaining something needed later on.
5200 #
5201 ###############################################################################
5202 
5203 # If we are requested to print additional help, do that and then exit.
5204 # This must be the very first call.
5205 
5206   if test "x$CONFIGURE_PRINT_ADDITIONAL_HELP" != x; then
5207 
5208     # Print available toolchains
5209     $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
5210     $PRINTF "Which are valid to use depends on the build platform.\n"
5211     for toolchain in $VALID_TOOLCHAINS_all; do
5212       # Use indirect variable referencing
5213       toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain
5214       TOOLCHAIN_DESCRIPTION=${!toolchain_var_name}
5215       $PRINTF "  %-10s  %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION"
5216     done
5217     $PRINTF "\n"
5218 
5219     # Print available jvm features
5220     $PRINTF "The following JVM features are available as arguments to --with-jvm-features.\n"
5221     $PRINTF "Which are valid to use depends on the target platform.\n  "
5222     $PRINTF "%s " $VALID_JVM_FEATURES
5223     $PRINTF "\n"
5224 
5225     # And now exit directly
5226     exit 0
5227   fi
5228 
5229 
5230 # Basic initialization that must happen first of all in the normal process.
5231 
5232   # Save the original command line. This is passed to us by the wrapper configure script.
5233 
5234   # Save the path variable before it gets changed
5235   ORIGINAL_PATH="$PATH"
5236 
5237   DATE_WHEN_CONFIGURED=`LANG=C date`
5238 
5239   { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5
5240 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;}
5241   { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5
5242 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;}
5243 
5244 
5245   # Start with tools that do not need have cross compilation support
5246   # and can be expected to be found in the default PATH. These tools are
5247   # used by configure.
5248 
5249   # First are all the simple required tools.
5250 
5251 
5252 
5253   # Publish this variable in the help.
5254 
5255 
5256   if [ -z "${BASENAME+x}" ]; then
5257     # The variable is not set by user, try to locate tool using the code snippet
5258     for ac_prog in basename
5259 do
5260   # Extract the first word of "$ac_prog", so it can be a program name with args.
5261 set dummy $ac_prog; ac_word=$2
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5263 $as_echo_n "checking for $ac_word... " >&6; }
5264 if ${ac_cv_path_BASENAME+:} false; then :
5265   $as_echo_n "(cached) " >&6
5266 else
5267   case $BASENAME in
5268   [\\/]* | ?:[\\/]*)
5269   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
5270   ;;
5271   *)
5272   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5273 for as_dir in $PATH
5274 do
5275   IFS=$as_save_IFS
5276   test -z "$as_dir" && as_dir=.
5277     for ac_exec_ext in '' $ac_executable_extensions; do
5278   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5279     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
5280     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5281     break 2
5282   fi
5283 done
5284   done
5285 IFS=$as_save_IFS
5286 
5287   ;;
5288 esac
5289 fi
5290 BASENAME=$ac_cv_path_BASENAME
5291 if test -n "$BASENAME"; then
5292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
5293 $as_echo "$BASENAME" >&6; }
5294 else
5295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5296 $as_echo "no" >&6; }
5297 fi
5298 
5299 
5300   test -n "$BASENAME" && break
5301 done
5302 
5303   else
5304     # The variable is set, but is it from the command line or the environment?
5305 
5306     # Try to remove the string !BASENAME! from our list.
5307     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/}
5308     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5309       # If it failed, the variable was not from the command line. Ignore it,
5310       # but warn the user (except for BASH, which is always set by the calling BASH).
5311       if test "xBASENAME" != xBASH; then
5312         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5
5313 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;}
5314       fi
5315       # Try to locate tool using the code snippet
5316       for ac_prog in basename
5317 do
5318   # Extract the first word of "$ac_prog", so it can be a program name with args.
5319 set dummy $ac_prog; ac_word=$2
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5321 $as_echo_n "checking for $ac_word... " >&6; }
5322 if ${ac_cv_path_BASENAME+:} false; then :
5323   $as_echo_n "(cached) " >&6
5324 else
5325   case $BASENAME in
5326   [\\/]* | ?:[\\/]*)
5327   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
5328   ;;
5329   *)
5330   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5331 for as_dir in $PATH
5332 do
5333   IFS=$as_save_IFS
5334   test -z "$as_dir" && as_dir=.
5335     for ac_exec_ext in '' $ac_executable_extensions; do
5336   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5337     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
5338     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5339     break 2
5340   fi
5341 done
5342   done
5343 IFS=$as_save_IFS
5344 
5345   ;;
5346 esac
5347 fi
5348 BASENAME=$ac_cv_path_BASENAME
5349 if test -n "$BASENAME"; then
5350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
5351 $as_echo "$BASENAME" >&6; }
5352 else
5353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5354 $as_echo "no" >&6; }
5355 fi
5356 
5357 
5358   test -n "$BASENAME" && break
5359 done
5360 
5361     else
5362       # If it succeeded, then it was overridden by the user. We will use it
5363       # for the tool.
5364 
5365       # First remove it from the list of overridden variables, so we can test
5366       # for unknown variables in the end.
5367       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5368 
5369       # Check if we try to supply an empty value
5370       if test "x$BASENAME" = x; then
5371         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BASENAME= (no value)" >&5
5372 $as_echo "$as_me: Setting user supplied tool BASENAME= (no value)" >&6;}
5373         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5
5374 $as_echo_n "checking for BASENAME... " >&6; }
5375         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5376 $as_echo "disabled" >&6; }
5377       else
5378         # Check if the provided tool contains a complete path.
5379         tool_specified="$BASENAME"
5380         tool_basename="${tool_specified##*/}"
5381         if test "x$tool_basename" = "x$tool_specified"; then
5382           # A command without a complete path is provided, search $PATH.
5383           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5
5384 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;}
5385           # Extract the first word of "$tool_basename", so it can be a program name with args.
5386 set dummy $tool_basename; ac_word=$2
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5388 $as_echo_n "checking for $ac_word... " >&6; }
5389 if ${ac_cv_path_BASENAME+:} false; then :
5390   $as_echo_n "(cached) " >&6
5391 else
5392   case $BASENAME in
5393   [\\/]* | ?:[\\/]*)
5394   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
5395   ;;
5396   *)
5397   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5398 for as_dir in $PATH
5399 do
5400   IFS=$as_save_IFS
5401   test -z "$as_dir" && as_dir=.
5402     for ac_exec_ext in '' $ac_executable_extensions; do
5403   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5404     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
5405     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5406     break 2
5407   fi
5408 done
5409   done
5410 IFS=$as_save_IFS
5411 
5412   ;;
5413 esac
5414 fi
5415 BASENAME=$ac_cv_path_BASENAME
5416 if test -n "$BASENAME"; then
5417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
5418 $as_echo "$BASENAME" >&6; }
5419 else
5420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5421 $as_echo "no" >&6; }
5422 fi
5423 
5424 
5425           if test "x$BASENAME" = x; then
5426             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5427           fi
5428         else
5429           # Otherwise we believe it is a complete path. Use it as it is.
5430           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5
5431 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;}
5432           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5
5433 $as_echo_n "checking for BASENAME... " >&6; }
5434           if test ! -x "$tool_specified"; then
5435             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5436 $as_echo "not found" >&6; }
5437             as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5
5438           fi
5439           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5440 $as_echo "$tool_specified" >&6; }
5441         fi
5442       fi
5443     fi
5444 
5445   fi
5446 
5447 
5448 
5449   if test "x$BASENAME" = x; then
5450     as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5
5451   fi
5452 
5453 
5454 
5455 
5456 
5457   # Publish this variable in the help.
5458 
5459 
5460   if [ -z "${BASH+x}" ]; then
5461     # The variable is not set by user, try to locate tool using the code snippet
5462     for ac_prog in bash
5463 do
5464   # Extract the first word of "$ac_prog", so it can be a program name with args.
5465 set dummy $ac_prog; ac_word=$2
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5467 $as_echo_n "checking for $ac_word... " >&6; }
5468 if ${ac_cv_path_BASH+:} false; then :
5469   $as_echo_n "(cached) " >&6
5470 else
5471   case $BASH in
5472   [\\/]* | ?:[\\/]*)
5473   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
5474   ;;
5475   *)
5476   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5477 for as_dir in $PATH
5478 do
5479   IFS=$as_save_IFS
5480   test -z "$as_dir" && as_dir=.
5481     for ac_exec_ext in '' $ac_executable_extensions; do
5482   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5483     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
5484     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5485     break 2
5486   fi
5487 done
5488   done
5489 IFS=$as_save_IFS
5490 
5491   ;;
5492 esac
5493 fi
5494 BASH=$ac_cv_path_BASH
5495 if test -n "$BASH"; then
5496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
5497 $as_echo "$BASH" >&6; }
5498 else
5499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5500 $as_echo "no" >&6; }
5501 fi
5502 
5503 
5504   test -n "$BASH" && break
5505 done
5506 
5507   else
5508     # The variable is set, but is it from the command line or the environment?
5509 
5510     # Try to remove the string !BASH! from our list.
5511     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/}
5512     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5513       # If it failed, the variable was not from the command line. Ignore it,
5514       # but warn the user (except for BASH, which is always set by the calling BASH).
5515       if test "xBASH" != xBASH; then
5516         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5
5517 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;}
5518       fi
5519       # Try to locate tool using the code snippet
5520       for ac_prog in bash
5521 do
5522   # Extract the first word of "$ac_prog", so it can be a program name with args.
5523 set dummy $ac_prog; ac_word=$2
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5525 $as_echo_n "checking for $ac_word... " >&6; }
5526 if ${ac_cv_path_BASH+:} false; then :
5527   $as_echo_n "(cached) " >&6
5528 else
5529   case $BASH in
5530   [\\/]* | ?:[\\/]*)
5531   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
5532   ;;
5533   *)
5534   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5535 for as_dir in $PATH
5536 do
5537   IFS=$as_save_IFS
5538   test -z "$as_dir" && as_dir=.
5539     for ac_exec_ext in '' $ac_executable_extensions; do
5540   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5541     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
5542     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5543     break 2
5544   fi
5545 done
5546   done
5547 IFS=$as_save_IFS
5548 
5549   ;;
5550 esac
5551 fi
5552 BASH=$ac_cv_path_BASH
5553 if test -n "$BASH"; then
5554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
5555 $as_echo "$BASH" >&6; }
5556 else
5557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5558 $as_echo "no" >&6; }
5559 fi
5560 
5561 
5562   test -n "$BASH" && break
5563 done
5564 
5565     else
5566       # If it succeeded, then it was overridden by the user. We will use it
5567       # for the tool.
5568 
5569       # First remove it from the list of overridden variables, so we can test
5570       # for unknown variables in the end.
5571       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5572 
5573       # Check if we try to supply an empty value
5574       if test "x$BASH" = x; then
5575         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BASH= (no value)" >&5
5576 $as_echo "$as_me: Setting user supplied tool BASH= (no value)" >&6;}
5577         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5
5578 $as_echo_n "checking for BASH... " >&6; }
5579         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5580 $as_echo "disabled" >&6; }
5581       else
5582         # Check if the provided tool contains a complete path.
5583         tool_specified="$BASH"
5584         tool_basename="${tool_specified##*/}"
5585         if test "x$tool_basename" = "x$tool_specified"; then
5586           # A command without a complete path is provided, search $PATH.
5587           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5
5588 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;}
5589           # Extract the first word of "$tool_basename", so it can be a program name with args.
5590 set dummy $tool_basename; ac_word=$2
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5592 $as_echo_n "checking for $ac_word... " >&6; }
5593 if ${ac_cv_path_BASH+:} false; then :
5594   $as_echo_n "(cached) " >&6
5595 else
5596   case $BASH in
5597   [\\/]* | ?:[\\/]*)
5598   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
5599   ;;
5600   *)
5601   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5602 for as_dir in $PATH
5603 do
5604   IFS=$as_save_IFS
5605   test -z "$as_dir" && as_dir=.
5606     for ac_exec_ext in '' $ac_executable_extensions; do
5607   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5608     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
5609     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5610     break 2
5611   fi
5612 done
5613   done
5614 IFS=$as_save_IFS
5615 
5616   ;;
5617 esac
5618 fi
5619 BASH=$ac_cv_path_BASH
5620 if test -n "$BASH"; then
5621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
5622 $as_echo "$BASH" >&6; }
5623 else
5624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5625 $as_echo "no" >&6; }
5626 fi
5627 
5628 
5629           if test "x$BASH" = x; then
5630             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5631           fi
5632         else
5633           # Otherwise we believe it is a complete path. Use it as it is.
5634           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5
5635 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;}
5636           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5
5637 $as_echo_n "checking for BASH... " >&6; }
5638           if test ! -x "$tool_specified"; then
5639             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5640 $as_echo "not found" >&6; }
5641             as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5
5642           fi
5643           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5644 $as_echo "$tool_specified" >&6; }
5645         fi
5646       fi
5647     fi
5648 
5649   fi
5650 
5651 
5652 
5653   if test "x$BASH" = x; then
5654     as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5
5655   fi
5656 
5657 
5658 
5659 
5660 
5661   # Publish this variable in the help.
5662 
5663 
5664   if [ -z "${CAT+x}" ]; then
5665     # The variable is not set by user, try to locate tool using the code snippet
5666     for ac_prog in cat
5667 do
5668   # Extract the first word of "$ac_prog", so it can be a program name with args.
5669 set dummy $ac_prog; ac_word=$2
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5671 $as_echo_n "checking for $ac_word... " >&6; }
5672 if ${ac_cv_path_CAT+:} false; then :
5673   $as_echo_n "(cached) " >&6
5674 else
5675   case $CAT in
5676   [\\/]* | ?:[\\/]*)
5677   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
5678   ;;
5679   *)
5680   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5681 for as_dir in $PATH
5682 do
5683   IFS=$as_save_IFS
5684   test -z "$as_dir" && as_dir=.
5685     for ac_exec_ext in '' $ac_executable_extensions; do
5686   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5687     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
5688     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5689     break 2
5690   fi
5691 done
5692   done
5693 IFS=$as_save_IFS
5694 
5695   ;;
5696 esac
5697 fi
5698 CAT=$ac_cv_path_CAT
5699 if test -n "$CAT"; then
5700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5701 $as_echo "$CAT" >&6; }
5702 else
5703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5704 $as_echo "no" >&6; }
5705 fi
5706 
5707 
5708   test -n "$CAT" && break
5709 done
5710 
5711   else
5712     # The variable is set, but is it from the command line or the environment?
5713 
5714     # Try to remove the string !CAT! from our list.
5715     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/}
5716     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5717       # If it failed, the variable was not from the command line. Ignore it,
5718       # but warn the user (except for BASH, which is always set by the calling BASH).
5719       if test "xCAT" != xBASH; then
5720         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5
5721 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;}
5722       fi
5723       # Try to locate tool using the code snippet
5724       for ac_prog in cat
5725 do
5726   # Extract the first word of "$ac_prog", so it can be a program name with args.
5727 set dummy $ac_prog; ac_word=$2
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5729 $as_echo_n "checking for $ac_word... " >&6; }
5730 if ${ac_cv_path_CAT+:} false; then :
5731   $as_echo_n "(cached) " >&6
5732 else
5733   case $CAT in
5734   [\\/]* | ?:[\\/]*)
5735   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
5736   ;;
5737   *)
5738   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5739 for as_dir in $PATH
5740 do
5741   IFS=$as_save_IFS
5742   test -z "$as_dir" && as_dir=.
5743     for ac_exec_ext in '' $ac_executable_extensions; do
5744   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5745     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
5746     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5747     break 2
5748   fi
5749 done
5750   done
5751 IFS=$as_save_IFS
5752 
5753   ;;
5754 esac
5755 fi
5756 CAT=$ac_cv_path_CAT
5757 if test -n "$CAT"; then
5758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5759 $as_echo "$CAT" >&6; }
5760 else
5761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5762 $as_echo "no" >&6; }
5763 fi
5764 
5765 
5766   test -n "$CAT" && break
5767 done
5768 
5769     else
5770       # If it succeeded, then it was overridden by the user. We will use it
5771       # for the tool.
5772 
5773       # First remove it from the list of overridden variables, so we can test
5774       # for unknown variables in the end.
5775       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5776 
5777       # Check if we try to supply an empty value
5778       if test "x$CAT" = x; then
5779         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CAT= (no value)" >&5
5780 $as_echo "$as_me: Setting user supplied tool CAT= (no value)" >&6;}
5781         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5
5782 $as_echo_n "checking for CAT... " >&6; }
5783         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5784 $as_echo "disabled" >&6; }
5785       else
5786         # Check if the provided tool contains a complete path.
5787         tool_specified="$CAT"
5788         tool_basename="${tool_specified##*/}"
5789         if test "x$tool_basename" = "x$tool_specified"; then
5790           # A command without a complete path is provided, search $PATH.
5791           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5
5792 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;}
5793           # Extract the first word of "$tool_basename", so it can be a program name with args.
5794 set dummy $tool_basename; ac_word=$2
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5796 $as_echo_n "checking for $ac_word... " >&6; }
5797 if ${ac_cv_path_CAT+:} false; then :
5798   $as_echo_n "(cached) " >&6
5799 else
5800   case $CAT in
5801   [\\/]* | ?:[\\/]*)
5802   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
5803   ;;
5804   *)
5805   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5806 for as_dir in $PATH
5807 do
5808   IFS=$as_save_IFS
5809   test -z "$as_dir" && as_dir=.
5810     for ac_exec_ext in '' $ac_executable_extensions; do
5811   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5812     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
5813     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5814     break 2
5815   fi
5816 done
5817   done
5818 IFS=$as_save_IFS
5819 
5820   ;;
5821 esac
5822 fi
5823 CAT=$ac_cv_path_CAT
5824 if test -n "$CAT"; then
5825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5826 $as_echo "$CAT" >&6; }
5827 else
5828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5829 $as_echo "no" >&6; }
5830 fi
5831 
5832 
5833           if test "x$CAT" = x; then
5834             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5835           fi
5836         else
5837           # Otherwise we believe it is a complete path. Use it as it is.
5838           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5
5839 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;}
5840           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5
5841 $as_echo_n "checking for CAT... " >&6; }
5842           if test ! -x "$tool_specified"; then
5843             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5844 $as_echo "not found" >&6; }
5845             as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5
5846           fi
5847           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5848 $as_echo "$tool_specified" >&6; }
5849         fi
5850       fi
5851     fi
5852 
5853   fi
5854 
5855 
5856 
5857   if test "x$CAT" = x; then
5858     as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5
5859   fi
5860 
5861 
5862 
5863 
5864 
5865   # Publish this variable in the help.
5866 
5867 
5868   if [ -z "${CHMOD+x}" ]; then
5869     # The variable is not set by user, try to locate tool using the code snippet
5870     for ac_prog in chmod
5871 do
5872   # Extract the first word of "$ac_prog", so it can be a program name with args.
5873 set dummy $ac_prog; ac_word=$2
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5875 $as_echo_n "checking for $ac_word... " >&6; }
5876 if ${ac_cv_path_CHMOD+:} false; then :
5877   $as_echo_n "(cached) " >&6
5878 else
5879   case $CHMOD in
5880   [\\/]* | ?:[\\/]*)
5881   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5882   ;;
5883   *)
5884   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5885 for as_dir in $PATH
5886 do
5887   IFS=$as_save_IFS
5888   test -z "$as_dir" && as_dir=.
5889     for ac_exec_ext in '' $ac_executable_extensions; do
5890   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5891     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5892     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5893     break 2
5894   fi
5895 done
5896   done
5897 IFS=$as_save_IFS
5898 
5899   ;;
5900 esac
5901 fi
5902 CHMOD=$ac_cv_path_CHMOD
5903 if test -n "$CHMOD"; then
5904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5905 $as_echo "$CHMOD" >&6; }
5906 else
5907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5908 $as_echo "no" >&6; }
5909 fi
5910 
5911 
5912   test -n "$CHMOD" && break
5913 done
5914 
5915   else
5916     # The variable is set, but is it from the command line or the environment?
5917 
5918     # Try to remove the string !CHMOD! from our list.
5919     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/}
5920     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5921       # If it failed, the variable was not from the command line. Ignore it,
5922       # but warn the user (except for BASH, which is always set by the calling BASH).
5923       if test "xCHMOD" != xBASH; then
5924         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5
5925 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;}
5926       fi
5927       # Try to locate tool using the code snippet
5928       for ac_prog in chmod
5929 do
5930   # Extract the first word of "$ac_prog", so it can be a program name with args.
5931 set dummy $ac_prog; ac_word=$2
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5933 $as_echo_n "checking for $ac_word... " >&6; }
5934 if ${ac_cv_path_CHMOD+:} false; then :
5935   $as_echo_n "(cached) " >&6
5936 else
5937   case $CHMOD in
5938   [\\/]* | ?:[\\/]*)
5939   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5940   ;;
5941   *)
5942   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5943 for as_dir in $PATH
5944 do
5945   IFS=$as_save_IFS
5946   test -z "$as_dir" && as_dir=.
5947     for ac_exec_ext in '' $ac_executable_extensions; do
5948   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5949     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5950     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5951     break 2
5952   fi
5953 done
5954   done
5955 IFS=$as_save_IFS
5956 
5957   ;;
5958 esac
5959 fi
5960 CHMOD=$ac_cv_path_CHMOD
5961 if test -n "$CHMOD"; then
5962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5963 $as_echo "$CHMOD" >&6; }
5964 else
5965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5966 $as_echo "no" >&6; }
5967 fi
5968 
5969 
5970   test -n "$CHMOD" && break
5971 done
5972 
5973     else
5974       # If it succeeded, then it was overridden by the user. We will use it
5975       # for the tool.
5976 
5977       # First remove it from the list of overridden variables, so we can test
5978       # for unknown variables in the end.
5979       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5980 
5981       # Check if we try to supply an empty value
5982       if test "x$CHMOD" = x; then
5983         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CHMOD= (no value)" >&5
5984 $as_echo "$as_me: Setting user supplied tool CHMOD= (no value)" >&6;}
5985         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5
5986 $as_echo_n "checking for CHMOD... " >&6; }
5987         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5988 $as_echo "disabled" >&6; }
5989       else
5990         # Check if the provided tool contains a complete path.
5991         tool_specified="$CHMOD"
5992         tool_basename="${tool_specified##*/}"
5993         if test "x$tool_basename" = "x$tool_specified"; then
5994           # A command without a complete path is provided, search $PATH.
5995           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5
5996 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;}
5997           # Extract the first word of "$tool_basename", so it can be a program name with args.
5998 set dummy $tool_basename; ac_word=$2
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6000 $as_echo_n "checking for $ac_word... " >&6; }
6001 if ${ac_cv_path_CHMOD+:} false; then :
6002   $as_echo_n "(cached) " >&6
6003 else
6004   case $CHMOD in
6005   [\\/]* | ?:[\\/]*)
6006   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
6007   ;;
6008   *)
6009   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6010 for as_dir in $PATH
6011 do
6012   IFS=$as_save_IFS
6013   test -z "$as_dir" && as_dir=.
6014     for ac_exec_ext in '' $ac_executable_extensions; do
6015   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6016     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
6017     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6018     break 2
6019   fi
6020 done
6021   done
6022 IFS=$as_save_IFS
6023 
6024   ;;
6025 esac
6026 fi
6027 CHMOD=$ac_cv_path_CHMOD
6028 if test -n "$CHMOD"; then
6029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
6030 $as_echo "$CHMOD" >&6; }
6031 else
6032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6033 $as_echo "no" >&6; }
6034 fi
6035 
6036 
6037           if test "x$CHMOD" = x; then
6038             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6039           fi
6040         else
6041           # Otherwise we believe it is a complete path. Use it as it is.
6042           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5
6043 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;}
6044           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5
6045 $as_echo_n "checking for CHMOD... " >&6; }
6046           if test ! -x "$tool_specified"; then
6047             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6048 $as_echo "not found" >&6; }
6049             as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5
6050           fi
6051           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6052 $as_echo "$tool_specified" >&6; }
6053         fi
6054       fi
6055     fi
6056 
6057   fi
6058 
6059 
6060 
6061   if test "x$CHMOD" = x; then
6062     as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5
6063   fi
6064 
6065 
6066 
6067 
6068 
6069   # Publish this variable in the help.
6070 
6071 
6072   if [ -z "${CMP+x}" ]; then
6073     # The variable is not set by user, try to locate tool using the code snippet
6074     for ac_prog in cmp
6075 do
6076   # Extract the first word of "$ac_prog", so it can be a program name with args.
6077 set dummy $ac_prog; ac_word=$2
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6079 $as_echo_n "checking for $ac_word... " >&6; }
6080 if ${ac_cv_path_CMP+:} false; then :
6081   $as_echo_n "(cached) " >&6
6082 else
6083   case $CMP in
6084   [\\/]* | ?:[\\/]*)
6085   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6086   ;;
6087   *)
6088   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6089 for as_dir in $PATH
6090 do
6091   IFS=$as_save_IFS
6092   test -z "$as_dir" && as_dir=.
6093     for ac_exec_ext in '' $ac_executable_extensions; do
6094   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6095     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6096     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6097     break 2
6098   fi
6099 done
6100   done
6101 IFS=$as_save_IFS
6102 
6103   ;;
6104 esac
6105 fi
6106 CMP=$ac_cv_path_CMP
6107 if test -n "$CMP"; then
6108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
6109 $as_echo "$CMP" >&6; }
6110 else
6111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6112 $as_echo "no" >&6; }
6113 fi
6114 
6115 
6116   test -n "$CMP" && break
6117 done
6118 
6119   else
6120     # The variable is set, but is it from the command line or the environment?
6121 
6122     # Try to remove the string !CMP! from our list.
6123     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/}
6124     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6125       # If it failed, the variable was not from the command line. Ignore it,
6126       # but warn the user (except for BASH, which is always set by the calling BASH).
6127       if test "xCMP" != xBASH; then
6128         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5
6129 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;}
6130       fi
6131       # Try to locate tool using the code snippet
6132       for ac_prog in cmp
6133 do
6134   # Extract the first word of "$ac_prog", so it can be a program name with args.
6135 set dummy $ac_prog; ac_word=$2
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6137 $as_echo_n "checking for $ac_word... " >&6; }
6138 if ${ac_cv_path_CMP+:} false; then :
6139   $as_echo_n "(cached) " >&6
6140 else
6141   case $CMP in
6142   [\\/]* | ?:[\\/]*)
6143   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6144   ;;
6145   *)
6146   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6147 for as_dir in $PATH
6148 do
6149   IFS=$as_save_IFS
6150   test -z "$as_dir" && as_dir=.
6151     for ac_exec_ext in '' $ac_executable_extensions; do
6152   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6153     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6154     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6155     break 2
6156   fi
6157 done
6158   done
6159 IFS=$as_save_IFS
6160 
6161   ;;
6162 esac
6163 fi
6164 CMP=$ac_cv_path_CMP
6165 if test -n "$CMP"; then
6166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
6167 $as_echo "$CMP" >&6; }
6168 else
6169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6170 $as_echo "no" >&6; }
6171 fi
6172 
6173 
6174   test -n "$CMP" && break
6175 done
6176 
6177     else
6178       # If it succeeded, then it was overridden by the user. We will use it
6179       # for the tool.
6180 
6181       # First remove it from the list of overridden variables, so we can test
6182       # for unknown variables in the end.
6183       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6184 
6185       # Check if we try to supply an empty value
6186       if test "x$CMP" = x; then
6187         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CMP= (no value)" >&5
6188 $as_echo "$as_me: Setting user supplied tool CMP= (no value)" >&6;}
6189         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5
6190 $as_echo_n "checking for CMP... " >&6; }
6191         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6192 $as_echo "disabled" >&6; }
6193       else
6194         # Check if the provided tool contains a complete path.
6195         tool_specified="$CMP"
6196         tool_basename="${tool_specified##*/}"
6197         if test "x$tool_basename" = "x$tool_specified"; then
6198           # A command without a complete path is provided, search $PATH.
6199           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5
6200 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;}
6201           # Extract the first word of "$tool_basename", so it can be a program name with args.
6202 set dummy $tool_basename; ac_word=$2
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6204 $as_echo_n "checking for $ac_word... " >&6; }
6205 if ${ac_cv_path_CMP+:} false; then :
6206   $as_echo_n "(cached) " >&6
6207 else
6208   case $CMP in
6209   [\\/]* | ?:[\\/]*)
6210   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6211   ;;
6212   *)
6213   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6214 for as_dir in $PATH
6215 do
6216   IFS=$as_save_IFS
6217   test -z "$as_dir" && as_dir=.
6218     for ac_exec_ext in '' $ac_executable_extensions; do
6219   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6220     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6221     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6222     break 2
6223   fi
6224 done
6225   done
6226 IFS=$as_save_IFS
6227 
6228   ;;
6229 esac
6230 fi
6231 CMP=$ac_cv_path_CMP
6232 if test -n "$CMP"; then
6233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
6234 $as_echo "$CMP" >&6; }
6235 else
6236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6237 $as_echo "no" >&6; }
6238 fi
6239 
6240 
6241           if test "x$CMP" = x; then
6242             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6243           fi
6244         else
6245           # Otherwise we believe it is a complete path. Use it as it is.
6246           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5
6247 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;}
6248           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5
6249 $as_echo_n "checking for CMP... " >&6; }
6250           if test ! -x "$tool_specified"; then
6251             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6252 $as_echo "not found" >&6; }
6253             as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5
6254           fi
6255           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6256 $as_echo "$tool_specified" >&6; }
6257         fi
6258       fi
6259     fi
6260 
6261   fi
6262 
6263 
6264 
6265   if test "x$CMP" = x; then
6266     as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5
6267   fi
6268 
6269 
6270 
6271 
6272 
6273   # Publish this variable in the help.
6274 
6275 
6276   if [ -z "${COMM+x}" ]; then
6277     # The variable is not set by user, try to locate tool using the code snippet
6278     for ac_prog in comm
6279 do
6280   # Extract the first word of "$ac_prog", so it can be a program name with args.
6281 set dummy $ac_prog; ac_word=$2
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6283 $as_echo_n "checking for $ac_word... " >&6; }
6284 if ${ac_cv_path_COMM+:} false; then :
6285   $as_echo_n "(cached) " >&6
6286 else
6287   case $COMM in
6288   [\\/]* | ?:[\\/]*)
6289   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
6290   ;;
6291   *)
6292   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6293 for as_dir in $PATH
6294 do
6295   IFS=$as_save_IFS
6296   test -z "$as_dir" && as_dir=.
6297     for ac_exec_ext in '' $ac_executable_extensions; do
6298   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6299     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
6300     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6301     break 2
6302   fi
6303 done
6304   done
6305 IFS=$as_save_IFS
6306 
6307   ;;
6308 esac
6309 fi
6310 COMM=$ac_cv_path_COMM
6311 if test -n "$COMM"; then
6312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
6313 $as_echo "$COMM" >&6; }
6314 else
6315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6316 $as_echo "no" >&6; }
6317 fi
6318 
6319 
6320   test -n "$COMM" && break
6321 done
6322 
6323   else
6324     # The variable is set, but is it from the command line or the environment?
6325 
6326     # Try to remove the string !COMM! from our list.
6327     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/}
6328     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6329       # If it failed, the variable was not from the command line. Ignore it,
6330       # but warn the user (except for BASH, which is always set by the calling BASH).
6331       if test "xCOMM" != xBASH; then
6332         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5
6333 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;}
6334       fi
6335       # Try to locate tool using the code snippet
6336       for ac_prog in comm
6337 do
6338   # Extract the first word of "$ac_prog", so it can be a program name with args.
6339 set dummy $ac_prog; ac_word=$2
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6341 $as_echo_n "checking for $ac_word... " >&6; }
6342 if ${ac_cv_path_COMM+:} false; then :
6343   $as_echo_n "(cached) " >&6
6344 else
6345   case $COMM in
6346   [\\/]* | ?:[\\/]*)
6347   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
6348   ;;
6349   *)
6350   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6351 for as_dir in $PATH
6352 do
6353   IFS=$as_save_IFS
6354   test -z "$as_dir" && as_dir=.
6355     for ac_exec_ext in '' $ac_executable_extensions; do
6356   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6357     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
6358     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6359     break 2
6360   fi
6361 done
6362   done
6363 IFS=$as_save_IFS
6364 
6365   ;;
6366 esac
6367 fi
6368 COMM=$ac_cv_path_COMM
6369 if test -n "$COMM"; then
6370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
6371 $as_echo "$COMM" >&6; }
6372 else
6373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6374 $as_echo "no" >&6; }
6375 fi
6376 
6377 
6378   test -n "$COMM" && break
6379 done
6380 
6381     else
6382       # If it succeeded, then it was overridden by the user. We will use it
6383       # for the tool.
6384 
6385       # First remove it from the list of overridden variables, so we can test
6386       # for unknown variables in the end.
6387       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6388 
6389       # Check if we try to supply an empty value
6390       if test "x$COMM" = x; then
6391         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool COMM= (no value)" >&5
6392 $as_echo "$as_me: Setting user supplied tool COMM= (no value)" >&6;}
6393         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
6394 $as_echo_n "checking for COMM... " >&6; }
6395         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6396 $as_echo "disabled" >&6; }
6397       else
6398         # Check if the provided tool contains a complete path.
6399         tool_specified="$COMM"
6400         tool_basename="${tool_specified##*/}"
6401         if test "x$tool_basename" = "x$tool_specified"; then
6402           # A command without a complete path is provided, search $PATH.
6403           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5
6404 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;}
6405           # Extract the first word of "$tool_basename", so it can be a program name with args.
6406 set dummy $tool_basename; ac_word=$2
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6408 $as_echo_n "checking for $ac_word... " >&6; }
6409 if ${ac_cv_path_COMM+:} false; then :
6410   $as_echo_n "(cached) " >&6
6411 else
6412   case $COMM in
6413   [\\/]* | ?:[\\/]*)
6414   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
6415   ;;
6416   *)
6417   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6418 for as_dir in $PATH
6419 do
6420   IFS=$as_save_IFS
6421   test -z "$as_dir" && as_dir=.
6422     for ac_exec_ext in '' $ac_executable_extensions; do
6423   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6424     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
6425     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6426     break 2
6427   fi
6428 done
6429   done
6430 IFS=$as_save_IFS
6431 
6432   ;;
6433 esac
6434 fi
6435 COMM=$ac_cv_path_COMM
6436 if test -n "$COMM"; then
6437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
6438 $as_echo "$COMM" >&6; }
6439 else
6440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6441 $as_echo "no" >&6; }
6442 fi
6443 
6444 
6445           if test "x$COMM" = x; then
6446             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6447           fi
6448         else
6449           # Otherwise we believe it is a complete path. Use it as it is.
6450           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5
6451 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;}
6452           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
6453 $as_echo_n "checking for COMM... " >&6; }
6454           if test ! -x "$tool_specified"; then
6455             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6456 $as_echo "not found" >&6; }
6457             as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5
6458           fi
6459           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6460 $as_echo "$tool_specified" >&6; }
6461         fi
6462       fi
6463     fi
6464 
6465   fi
6466 
6467 
6468 
6469   if test "x$COMM" = x; then
6470     as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5
6471   fi
6472 
6473 
6474 
6475 
6476 
6477   # Publish this variable in the help.
6478 
6479 
6480   if [ -z "${CP+x}" ]; then
6481     # The variable is not set by user, try to locate tool using the code snippet
6482     for ac_prog in cp
6483 do
6484   # Extract the first word of "$ac_prog", so it can be a program name with args.
6485 set dummy $ac_prog; ac_word=$2
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6487 $as_echo_n "checking for $ac_word... " >&6; }
6488 if ${ac_cv_path_CP+:} false; then :
6489   $as_echo_n "(cached) " >&6
6490 else
6491   case $CP in
6492   [\\/]* | ?:[\\/]*)
6493   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6494   ;;
6495   *)
6496   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6497 for as_dir in $PATH
6498 do
6499   IFS=$as_save_IFS
6500   test -z "$as_dir" && as_dir=.
6501     for ac_exec_ext in '' $ac_executable_extensions; do
6502   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6503     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6504     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6505     break 2
6506   fi
6507 done
6508   done
6509 IFS=$as_save_IFS
6510 
6511   ;;
6512 esac
6513 fi
6514 CP=$ac_cv_path_CP
6515 if test -n "$CP"; then
6516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
6517 $as_echo "$CP" >&6; }
6518 else
6519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6520 $as_echo "no" >&6; }
6521 fi
6522 
6523 
6524   test -n "$CP" && break
6525 done
6526 
6527   else
6528     # The variable is set, but is it from the command line or the environment?
6529 
6530     # Try to remove the string !CP! from our list.
6531     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/}
6532     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6533       # If it failed, the variable was not from the command line. Ignore it,
6534       # but warn the user (except for BASH, which is always set by the calling BASH).
6535       if test "xCP" != xBASH; then
6536         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5
6537 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;}
6538       fi
6539       # Try to locate tool using the code snippet
6540       for ac_prog in cp
6541 do
6542   # Extract the first word of "$ac_prog", so it can be a program name with args.
6543 set dummy $ac_prog; ac_word=$2
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6545 $as_echo_n "checking for $ac_word... " >&6; }
6546 if ${ac_cv_path_CP+:} false; then :
6547   $as_echo_n "(cached) " >&6
6548 else
6549   case $CP in
6550   [\\/]* | ?:[\\/]*)
6551   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6552   ;;
6553   *)
6554   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6555 for as_dir in $PATH
6556 do
6557   IFS=$as_save_IFS
6558   test -z "$as_dir" && as_dir=.
6559     for ac_exec_ext in '' $ac_executable_extensions; do
6560   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6561     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6562     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6563     break 2
6564   fi
6565 done
6566   done
6567 IFS=$as_save_IFS
6568 
6569   ;;
6570 esac
6571 fi
6572 CP=$ac_cv_path_CP
6573 if test -n "$CP"; then
6574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
6575 $as_echo "$CP" >&6; }
6576 else
6577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6578 $as_echo "no" >&6; }
6579 fi
6580 
6581 
6582   test -n "$CP" && break
6583 done
6584 
6585     else
6586       # If it succeeded, then it was overridden by the user. We will use it
6587       # for the tool.
6588 
6589       # First remove it from the list of overridden variables, so we can test
6590       # for unknown variables in the end.
6591       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6592 
6593       # Check if we try to supply an empty value
6594       if test "x$CP" = x; then
6595         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CP= (no value)" >&5
6596 $as_echo "$as_me: Setting user supplied tool CP= (no value)" >&6;}
6597         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5
6598 $as_echo_n "checking for CP... " >&6; }
6599         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6600 $as_echo "disabled" >&6; }
6601       else
6602         # Check if the provided tool contains a complete path.
6603         tool_specified="$CP"
6604         tool_basename="${tool_specified##*/}"
6605         if test "x$tool_basename" = "x$tool_specified"; then
6606           # A command without a complete path is provided, search $PATH.
6607           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5
6608 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;}
6609           # Extract the first word of "$tool_basename", so it can be a program name with args.
6610 set dummy $tool_basename; ac_word=$2
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6612 $as_echo_n "checking for $ac_word... " >&6; }
6613 if ${ac_cv_path_CP+:} false; then :
6614   $as_echo_n "(cached) " >&6
6615 else
6616   case $CP in
6617   [\\/]* | ?:[\\/]*)
6618   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6619   ;;
6620   *)
6621   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6622 for as_dir in $PATH
6623 do
6624   IFS=$as_save_IFS
6625   test -z "$as_dir" && as_dir=.
6626     for ac_exec_ext in '' $ac_executable_extensions; do
6627   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6628     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6629     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6630     break 2
6631   fi
6632 done
6633   done
6634 IFS=$as_save_IFS
6635 
6636   ;;
6637 esac
6638 fi
6639 CP=$ac_cv_path_CP
6640 if test -n "$CP"; then
6641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
6642 $as_echo "$CP" >&6; }
6643 else
6644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6645 $as_echo "no" >&6; }
6646 fi
6647 
6648 
6649           if test "x$CP" = x; then
6650             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6651           fi
6652         else
6653           # Otherwise we believe it is a complete path. Use it as it is.
6654           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5
6655 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;}
6656           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5
6657 $as_echo_n "checking for CP... " >&6; }
6658           if test ! -x "$tool_specified"; then
6659             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6660 $as_echo "not found" >&6; }
6661             as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5
6662           fi
6663           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6664 $as_echo "$tool_specified" >&6; }
6665         fi
6666       fi
6667     fi
6668 
6669   fi
6670 
6671 
6672 
6673   if test "x$CP" = x; then
6674     as_fn_error $? "Could not find required tool for CP" "$LINENO" 5
6675   fi
6676 
6677 
6678 
6679 
6680 
6681   # Publish this variable in the help.
6682 
6683 
6684   if [ -z "${CUT+x}" ]; then
6685     # The variable is not set by user, try to locate tool using the code snippet
6686     for ac_prog in cut
6687 do
6688   # Extract the first word of "$ac_prog", so it can be a program name with args.
6689 set dummy $ac_prog; ac_word=$2
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6691 $as_echo_n "checking for $ac_word... " >&6; }
6692 if ${ac_cv_path_CUT+:} false; then :
6693   $as_echo_n "(cached) " >&6
6694 else
6695   case $CUT in
6696   [\\/]* | ?:[\\/]*)
6697   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
6698   ;;
6699   *)
6700   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6701 for as_dir in $PATH
6702 do
6703   IFS=$as_save_IFS
6704   test -z "$as_dir" && as_dir=.
6705     for ac_exec_ext in '' $ac_executable_extensions; do
6706   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6707     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
6708     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6709     break 2
6710   fi
6711 done
6712   done
6713 IFS=$as_save_IFS
6714 
6715   ;;
6716 esac
6717 fi
6718 CUT=$ac_cv_path_CUT
6719 if test -n "$CUT"; then
6720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
6721 $as_echo "$CUT" >&6; }
6722 else
6723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6724 $as_echo "no" >&6; }
6725 fi
6726 
6727 
6728   test -n "$CUT" && break
6729 done
6730 
6731   else
6732     # The variable is set, but is it from the command line or the environment?
6733 
6734     # Try to remove the string !CUT! from our list.
6735     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/}
6736     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6737       # If it failed, the variable was not from the command line. Ignore it,
6738       # but warn the user (except for BASH, which is always set by the calling BASH).
6739       if test "xCUT" != xBASH; then
6740         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5
6741 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;}
6742       fi
6743       # Try to locate tool using the code snippet
6744       for ac_prog in cut
6745 do
6746   # Extract the first word of "$ac_prog", so it can be a program name with args.
6747 set dummy $ac_prog; ac_word=$2
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6749 $as_echo_n "checking for $ac_word... " >&6; }
6750 if ${ac_cv_path_CUT+:} false; then :
6751   $as_echo_n "(cached) " >&6
6752 else
6753   case $CUT in
6754   [\\/]* | ?:[\\/]*)
6755   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
6756   ;;
6757   *)
6758   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6759 for as_dir in $PATH
6760 do
6761   IFS=$as_save_IFS
6762   test -z "$as_dir" && as_dir=.
6763     for ac_exec_ext in '' $ac_executable_extensions; do
6764   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6765     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
6766     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6767     break 2
6768   fi
6769 done
6770   done
6771 IFS=$as_save_IFS
6772 
6773   ;;
6774 esac
6775 fi
6776 CUT=$ac_cv_path_CUT
6777 if test -n "$CUT"; then
6778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
6779 $as_echo "$CUT" >&6; }
6780 else
6781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6782 $as_echo "no" >&6; }
6783 fi
6784 
6785 
6786   test -n "$CUT" && break
6787 done
6788 
6789     else
6790       # If it succeeded, then it was overridden by the user. We will use it
6791       # for the tool.
6792 
6793       # First remove it from the list of overridden variables, so we can test
6794       # for unknown variables in the end.
6795       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6796 
6797       # Check if we try to supply an empty value
6798       if test "x$CUT" = x; then
6799         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CUT= (no value)" >&5
6800 $as_echo "$as_me: Setting user supplied tool CUT= (no value)" >&6;}
6801         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5
6802 $as_echo_n "checking for CUT... " >&6; }
6803         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6804 $as_echo "disabled" >&6; }
6805       else
6806         # Check if the provided tool contains a complete path.
6807         tool_specified="$CUT"
6808         tool_basename="${tool_specified##*/}"
6809         if test "x$tool_basename" = "x$tool_specified"; then
6810           # A command without a complete path is provided, search $PATH.
6811           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5
6812 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;}
6813           # Extract the first word of "$tool_basename", so it can be a program name with args.
6814 set dummy $tool_basename; ac_word=$2
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6816 $as_echo_n "checking for $ac_word... " >&6; }
6817 if ${ac_cv_path_CUT+:} false; then :
6818   $as_echo_n "(cached) " >&6
6819 else
6820   case $CUT in
6821   [\\/]* | ?:[\\/]*)
6822   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
6823   ;;
6824   *)
6825   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6826 for as_dir in $PATH
6827 do
6828   IFS=$as_save_IFS
6829   test -z "$as_dir" && as_dir=.
6830     for ac_exec_ext in '' $ac_executable_extensions; do
6831   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6832     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
6833     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6834     break 2
6835   fi
6836 done
6837   done
6838 IFS=$as_save_IFS
6839 
6840   ;;
6841 esac
6842 fi
6843 CUT=$ac_cv_path_CUT
6844 if test -n "$CUT"; then
6845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
6846 $as_echo "$CUT" >&6; }
6847 else
6848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6849 $as_echo "no" >&6; }
6850 fi
6851 
6852 
6853           if test "x$CUT" = x; then
6854             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6855           fi
6856         else
6857           # Otherwise we believe it is a complete path. Use it as it is.
6858           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5
6859 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;}
6860           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5
6861 $as_echo_n "checking for CUT... " >&6; }
6862           if test ! -x "$tool_specified"; then
6863             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6864 $as_echo "not found" >&6; }
6865             as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5
6866           fi
6867           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6868 $as_echo "$tool_specified" >&6; }
6869         fi
6870       fi
6871     fi
6872 
6873   fi
6874 
6875 
6876 
6877   if test "x$CUT" = x; then
6878     as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5
6879   fi
6880 
6881 
6882 
6883 
6884 
6885   # Publish this variable in the help.
6886 
6887 
6888   if [ -z "${DATE+x}" ]; then
6889     # The variable is not set by user, try to locate tool using the code snippet
6890     for ac_prog in date
6891 do
6892   # Extract the first word of "$ac_prog", so it can be a program name with args.
6893 set dummy $ac_prog; ac_word=$2
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6895 $as_echo_n "checking for $ac_word... " >&6; }
6896 if ${ac_cv_path_DATE+:} false; then :
6897   $as_echo_n "(cached) " >&6
6898 else
6899   case $DATE in
6900   [\\/]* | ?:[\\/]*)
6901   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6902   ;;
6903   *)
6904   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6905 for as_dir in $PATH
6906 do
6907   IFS=$as_save_IFS
6908   test -z "$as_dir" && as_dir=.
6909     for ac_exec_ext in '' $ac_executable_extensions; do
6910   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6911     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6912     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6913     break 2
6914   fi
6915 done
6916   done
6917 IFS=$as_save_IFS
6918 
6919   ;;
6920 esac
6921 fi
6922 DATE=$ac_cv_path_DATE
6923 if test -n "$DATE"; then
6924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6925 $as_echo "$DATE" >&6; }
6926 else
6927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6928 $as_echo "no" >&6; }
6929 fi
6930 
6931 
6932   test -n "$DATE" && break
6933 done
6934 
6935   else
6936     # The variable is set, but is it from the command line or the environment?
6937 
6938     # Try to remove the string !DATE! from our list.
6939     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/}
6940     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6941       # If it failed, the variable was not from the command line. Ignore it,
6942       # but warn the user (except for BASH, which is always set by the calling BASH).
6943       if test "xDATE" != xBASH; then
6944         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5
6945 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;}
6946       fi
6947       # Try to locate tool using the code snippet
6948       for ac_prog in date
6949 do
6950   # Extract the first word of "$ac_prog", so it can be a program name with args.
6951 set dummy $ac_prog; ac_word=$2
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6953 $as_echo_n "checking for $ac_word... " >&6; }
6954 if ${ac_cv_path_DATE+:} false; then :
6955   $as_echo_n "(cached) " >&6
6956 else
6957   case $DATE in
6958   [\\/]* | ?:[\\/]*)
6959   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6960   ;;
6961   *)
6962   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6963 for as_dir in $PATH
6964 do
6965   IFS=$as_save_IFS
6966   test -z "$as_dir" && as_dir=.
6967     for ac_exec_ext in '' $ac_executable_extensions; do
6968   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6969     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6970     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6971     break 2
6972   fi
6973 done
6974   done
6975 IFS=$as_save_IFS
6976 
6977   ;;
6978 esac
6979 fi
6980 DATE=$ac_cv_path_DATE
6981 if test -n "$DATE"; then
6982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6983 $as_echo "$DATE" >&6; }
6984 else
6985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6986 $as_echo "no" >&6; }
6987 fi
6988 
6989 
6990   test -n "$DATE" && break
6991 done
6992 
6993     else
6994       # If it succeeded, then it was overridden by the user. We will use it
6995       # for the tool.
6996 
6997       # First remove it from the list of overridden variables, so we can test
6998       # for unknown variables in the end.
6999       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7000 
7001       # Check if we try to supply an empty value
7002       if test "x$DATE" = x; then
7003         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DATE= (no value)" >&5
7004 $as_echo "$as_me: Setting user supplied tool DATE= (no value)" >&6;}
7005         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5
7006 $as_echo_n "checking for DATE... " >&6; }
7007         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7008 $as_echo "disabled" >&6; }
7009       else
7010         # Check if the provided tool contains a complete path.
7011         tool_specified="$DATE"
7012         tool_basename="${tool_specified##*/}"
7013         if test "x$tool_basename" = "x$tool_specified"; then
7014           # A command without a complete path is provided, search $PATH.
7015           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5
7016 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;}
7017           # Extract the first word of "$tool_basename", so it can be a program name with args.
7018 set dummy $tool_basename; ac_word=$2
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7020 $as_echo_n "checking for $ac_word... " >&6; }
7021 if ${ac_cv_path_DATE+:} false; then :
7022   $as_echo_n "(cached) " >&6
7023 else
7024   case $DATE in
7025   [\\/]* | ?:[\\/]*)
7026   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
7027   ;;
7028   *)
7029   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7030 for as_dir in $PATH
7031 do
7032   IFS=$as_save_IFS
7033   test -z "$as_dir" && as_dir=.
7034     for ac_exec_ext in '' $ac_executable_extensions; do
7035   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7036     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
7037     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7038     break 2
7039   fi
7040 done
7041   done
7042 IFS=$as_save_IFS
7043 
7044   ;;
7045 esac
7046 fi
7047 DATE=$ac_cv_path_DATE
7048 if test -n "$DATE"; then
7049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
7050 $as_echo "$DATE" >&6; }
7051 else
7052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7053 $as_echo "no" >&6; }
7054 fi
7055 
7056 
7057           if test "x$DATE" = x; then
7058             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7059           fi
7060         else
7061           # Otherwise we believe it is a complete path. Use it as it is.
7062           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5
7063 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;}
7064           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5
7065 $as_echo_n "checking for DATE... " >&6; }
7066           if test ! -x "$tool_specified"; then
7067             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7068 $as_echo "not found" >&6; }
7069             as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5
7070           fi
7071           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7072 $as_echo "$tool_specified" >&6; }
7073         fi
7074       fi
7075     fi
7076 
7077   fi
7078 
7079 
7080 
7081   if test "x$DATE" = x; then
7082     as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5
7083   fi
7084 
7085 
7086 
7087 
7088 
7089   # Publish this variable in the help.
7090 
7091 
7092   if [ -z "${DIFF+x}" ]; then
7093     # The variable is not set by user, try to locate tool using the code snippet
7094     for ac_prog in gdiff diff
7095 do
7096   # Extract the first word of "$ac_prog", so it can be a program name with args.
7097 set dummy $ac_prog; ac_word=$2
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7099 $as_echo_n "checking for $ac_word... " >&6; }
7100 if ${ac_cv_path_DIFF+:} false; then :
7101   $as_echo_n "(cached) " >&6
7102 else
7103   case $DIFF in
7104   [\\/]* | ?:[\\/]*)
7105   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
7106   ;;
7107   *)
7108   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7109 for as_dir in $PATH
7110 do
7111   IFS=$as_save_IFS
7112   test -z "$as_dir" && as_dir=.
7113     for ac_exec_ext in '' $ac_executable_extensions; do
7114   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7115     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
7116     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7117     break 2
7118   fi
7119 done
7120   done
7121 IFS=$as_save_IFS
7122 
7123   ;;
7124 esac
7125 fi
7126 DIFF=$ac_cv_path_DIFF
7127 if test -n "$DIFF"; then
7128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
7129 $as_echo "$DIFF" >&6; }
7130 else
7131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7132 $as_echo "no" >&6; }
7133 fi
7134 
7135 
7136   test -n "$DIFF" && break
7137 done
7138 
7139   else
7140     # The variable is set, but is it from the command line or the environment?
7141 
7142     # Try to remove the string !DIFF! from our list.
7143     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/}
7144     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7145       # If it failed, the variable was not from the command line. Ignore it,
7146       # but warn the user (except for BASH, which is always set by the calling BASH).
7147       if test "xDIFF" != xBASH; then
7148         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5
7149 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;}
7150       fi
7151       # Try to locate tool using the code snippet
7152       for ac_prog in gdiff diff
7153 do
7154   # Extract the first word of "$ac_prog", so it can be a program name with args.
7155 set dummy $ac_prog; ac_word=$2
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7157 $as_echo_n "checking for $ac_word... " >&6; }
7158 if ${ac_cv_path_DIFF+:} false; then :
7159   $as_echo_n "(cached) " >&6
7160 else
7161   case $DIFF in
7162   [\\/]* | ?:[\\/]*)
7163   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
7164   ;;
7165   *)
7166   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7167 for as_dir in $PATH
7168 do
7169   IFS=$as_save_IFS
7170   test -z "$as_dir" && as_dir=.
7171     for ac_exec_ext in '' $ac_executable_extensions; do
7172   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7173     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
7174     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7175     break 2
7176   fi
7177 done
7178   done
7179 IFS=$as_save_IFS
7180 
7181   ;;
7182 esac
7183 fi
7184 DIFF=$ac_cv_path_DIFF
7185 if test -n "$DIFF"; then
7186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
7187 $as_echo "$DIFF" >&6; }
7188 else
7189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7190 $as_echo "no" >&6; }
7191 fi
7192 
7193 
7194   test -n "$DIFF" && break
7195 done
7196 
7197     else
7198       # If it succeeded, then it was overridden by the user. We will use it
7199       # for the tool.
7200 
7201       # First remove it from the list of overridden variables, so we can test
7202       # for unknown variables in the end.
7203       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7204 
7205       # Check if we try to supply an empty value
7206       if test "x$DIFF" = x; then
7207         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DIFF= (no value)" >&5
7208 $as_echo "$as_me: Setting user supplied tool DIFF= (no value)" >&6;}
7209         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5
7210 $as_echo_n "checking for DIFF... " >&6; }
7211         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7212 $as_echo "disabled" >&6; }
7213       else
7214         # Check if the provided tool contains a complete path.
7215         tool_specified="$DIFF"
7216         tool_basename="${tool_specified##*/}"
7217         if test "x$tool_basename" = "x$tool_specified"; then
7218           # A command without a complete path is provided, search $PATH.
7219           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5
7220 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;}
7221           # Extract the first word of "$tool_basename", so it can be a program name with args.
7222 set dummy $tool_basename; ac_word=$2
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7224 $as_echo_n "checking for $ac_word... " >&6; }
7225 if ${ac_cv_path_DIFF+:} false; then :
7226   $as_echo_n "(cached) " >&6
7227 else
7228   case $DIFF in
7229   [\\/]* | ?:[\\/]*)
7230   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
7231   ;;
7232   *)
7233   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7234 for as_dir in $PATH
7235 do
7236   IFS=$as_save_IFS
7237   test -z "$as_dir" && as_dir=.
7238     for ac_exec_ext in '' $ac_executable_extensions; do
7239   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7240     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
7241     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7242     break 2
7243   fi
7244 done
7245   done
7246 IFS=$as_save_IFS
7247 
7248   ;;
7249 esac
7250 fi
7251 DIFF=$ac_cv_path_DIFF
7252 if test -n "$DIFF"; then
7253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
7254 $as_echo "$DIFF" >&6; }
7255 else
7256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7257 $as_echo "no" >&6; }
7258 fi
7259 
7260 
7261           if test "x$DIFF" = x; then
7262             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7263           fi
7264         else
7265           # Otherwise we believe it is a complete path. Use it as it is.
7266           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5
7267 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;}
7268           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5
7269 $as_echo_n "checking for DIFF... " >&6; }
7270           if test ! -x "$tool_specified"; then
7271             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7272 $as_echo "not found" >&6; }
7273             as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5
7274           fi
7275           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7276 $as_echo "$tool_specified" >&6; }
7277         fi
7278       fi
7279     fi
7280 
7281   fi
7282 
7283 
7284 
7285   if test "x$DIFF" = x; then
7286     as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5
7287   fi
7288 
7289 
7290 
7291 
7292 
7293   # Publish this variable in the help.
7294 
7295 
7296   if [ -z "${DIRNAME+x}" ]; then
7297     # The variable is not set by user, try to locate tool using the code snippet
7298     for ac_prog in dirname
7299 do
7300   # Extract the first word of "$ac_prog", so it can be a program name with args.
7301 set dummy $ac_prog; ac_word=$2
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7303 $as_echo_n "checking for $ac_word... " >&6; }
7304 if ${ac_cv_path_DIRNAME+:} false; then :
7305   $as_echo_n "(cached) " >&6
7306 else
7307   case $DIRNAME in
7308   [\\/]* | ?:[\\/]*)
7309   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
7310   ;;
7311   *)
7312   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7313 for as_dir in $PATH
7314 do
7315   IFS=$as_save_IFS
7316   test -z "$as_dir" && as_dir=.
7317     for ac_exec_ext in '' $ac_executable_extensions; do
7318   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7319     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
7320     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7321     break 2
7322   fi
7323 done
7324   done
7325 IFS=$as_save_IFS
7326 
7327   ;;
7328 esac
7329 fi
7330 DIRNAME=$ac_cv_path_DIRNAME
7331 if test -n "$DIRNAME"; then
7332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
7333 $as_echo "$DIRNAME" >&6; }
7334 else
7335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7336 $as_echo "no" >&6; }
7337 fi
7338 
7339 
7340   test -n "$DIRNAME" && break
7341 done
7342 
7343   else
7344     # The variable is set, but is it from the command line or the environment?
7345 
7346     # Try to remove the string !DIRNAME! from our list.
7347     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/}
7348     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7349       # If it failed, the variable was not from the command line. Ignore it,
7350       # but warn the user (except for BASH, which is always set by the calling BASH).
7351       if test "xDIRNAME" != xBASH; then
7352         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5
7353 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;}
7354       fi
7355       # Try to locate tool using the code snippet
7356       for ac_prog in dirname
7357 do
7358   # Extract the first word of "$ac_prog", so it can be a program name with args.
7359 set dummy $ac_prog; ac_word=$2
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7361 $as_echo_n "checking for $ac_word... " >&6; }
7362 if ${ac_cv_path_DIRNAME+:} false; then :
7363   $as_echo_n "(cached) " >&6
7364 else
7365   case $DIRNAME in
7366   [\\/]* | ?:[\\/]*)
7367   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
7368   ;;
7369   *)
7370   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7371 for as_dir in $PATH
7372 do
7373   IFS=$as_save_IFS
7374   test -z "$as_dir" && as_dir=.
7375     for ac_exec_ext in '' $ac_executable_extensions; do
7376   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7377     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
7378     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7379     break 2
7380   fi
7381 done
7382   done
7383 IFS=$as_save_IFS
7384 
7385   ;;
7386 esac
7387 fi
7388 DIRNAME=$ac_cv_path_DIRNAME
7389 if test -n "$DIRNAME"; then
7390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
7391 $as_echo "$DIRNAME" >&6; }
7392 else
7393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7394 $as_echo "no" >&6; }
7395 fi
7396 
7397 
7398   test -n "$DIRNAME" && break
7399 done
7400 
7401     else
7402       # If it succeeded, then it was overridden by the user. We will use it
7403       # for the tool.
7404 
7405       # First remove it from the list of overridden variables, so we can test
7406       # for unknown variables in the end.
7407       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7408 
7409       # Check if we try to supply an empty value
7410       if test "x$DIRNAME" = x; then
7411         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DIRNAME= (no value)" >&5
7412 $as_echo "$as_me: Setting user supplied tool DIRNAME= (no value)" >&6;}
7413         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5
7414 $as_echo_n "checking for DIRNAME... " >&6; }
7415         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7416 $as_echo "disabled" >&6; }
7417       else
7418         # Check if the provided tool contains a complete path.
7419         tool_specified="$DIRNAME"
7420         tool_basename="${tool_specified##*/}"
7421         if test "x$tool_basename" = "x$tool_specified"; then
7422           # A command without a complete path is provided, search $PATH.
7423           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5
7424 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;}
7425           # Extract the first word of "$tool_basename", so it can be a program name with args.
7426 set dummy $tool_basename; ac_word=$2
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7428 $as_echo_n "checking for $ac_word... " >&6; }
7429 if ${ac_cv_path_DIRNAME+:} false; then :
7430   $as_echo_n "(cached) " >&6
7431 else
7432   case $DIRNAME in
7433   [\\/]* | ?:[\\/]*)
7434   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
7435   ;;
7436   *)
7437   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7438 for as_dir in $PATH
7439 do
7440   IFS=$as_save_IFS
7441   test -z "$as_dir" && as_dir=.
7442     for ac_exec_ext in '' $ac_executable_extensions; do
7443   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7444     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
7445     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7446     break 2
7447   fi
7448 done
7449   done
7450 IFS=$as_save_IFS
7451 
7452   ;;
7453 esac
7454 fi
7455 DIRNAME=$ac_cv_path_DIRNAME
7456 if test -n "$DIRNAME"; then
7457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
7458 $as_echo "$DIRNAME" >&6; }
7459 else
7460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7461 $as_echo "no" >&6; }
7462 fi
7463 
7464 
7465           if test "x$DIRNAME" = x; then
7466             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7467           fi
7468         else
7469           # Otherwise we believe it is a complete path. Use it as it is.
7470           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5
7471 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;}
7472           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5
7473 $as_echo_n "checking for DIRNAME... " >&6; }
7474           if test ! -x "$tool_specified"; then
7475             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7476 $as_echo "not found" >&6; }
7477             as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
7478           fi
7479           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7480 $as_echo "$tool_specified" >&6; }
7481         fi
7482       fi
7483     fi
7484 
7485   fi
7486 
7487 
7488 
7489   if test "x$DIRNAME" = x; then
7490     as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5
7491   fi
7492 
7493 
7494 
7495 
7496 
7497   # Publish this variable in the help.
7498 
7499 
7500   if [ -z "${ECHO+x}" ]; then
7501     # The variable is not set by user, try to locate tool using the code snippet
7502     for ac_prog in echo
7503 do
7504   # Extract the first word of "$ac_prog", so it can be a program name with args.
7505 set dummy $ac_prog; ac_word=$2
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7507 $as_echo_n "checking for $ac_word... " >&6; }
7508 if ${ac_cv_path_ECHO+:} false; then :
7509   $as_echo_n "(cached) " >&6
7510 else
7511   case $ECHO in
7512   [\\/]* | ?:[\\/]*)
7513   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
7514   ;;
7515   *)
7516   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7517 for as_dir in $PATH
7518 do
7519   IFS=$as_save_IFS
7520   test -z "$as_dir" && as_dir=.
7521     for ac_exec_ext in '' $ac_executable_extensions; do
7522   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7523     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
7524     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7525     break 2
7526   fi
7527 done
7528   done
7529 IFS=$as_save_IFS
7530 
7531   ;;
7532 esac
7533 fi
7534 ECHO=$ac_cv_path_ECHO
7535 if test -n "$ECHO"; then
7536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
7537 $as_echo "$ECHO" >&6; }
7538 else
7539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7540 $as_echo "no" >&6; }
7541 fi
7542 
7543 
7544   test -n "$ECHO" && break
7545 done
7546 
7547   else
7548     # The variable is set, but is it from the command line or the environment?
7549 
7550     # Try to remove the string !ECHO! from our list.
7551     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/}
7552     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7553       # If it failed, the variable was not from the command line. Ignore it,
7554       # but warn the user (except for BASH, which is always set by the calling BASH).
7555       if test "xECHO" != xBASH; then
7556         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5
7557 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;}
7558       fi
7559       # Try to locate tool using the code snippet
7560       for ac_prog in echo
7561 do
7562   # Extract the first word of "$ac_prog", so it can be a program name with args.
7563 set dummy $ac_prog; ac_word=$2
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7565 $as_echo_n "checking for $ac_word... " >&6; }
7566 if ${ac_cv_path_ECHO+:} false; then :
7567   $as_echo_n "(cached) " >&6
7568 else
7569   case $ECHO in
7570   [\\/]* | ?:[\\/]*)
7571   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
7572   ;;
7573   *)
7574   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7575 for as_dir in $PATH
7576 do
7577   IFS=$as_save_IFS
7578   test -z "$as_dir" && as_dir=.
7579     for ac_exec_ext in '' $ac_executable_extensions; do
7580   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7581     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
7582     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7583     break 2
7584   fi
7585 done
7586   done
7587 IFS=$as_save_IFS
7588 
7589   ;;
7590 esac
7591 fi
7592 ECHO=$ac_cv_path_ECHO
7593 if test -n "$ECHO"; then
7594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
7595 $as_echo "$ECHO" >&6; }
7596 else
7597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7598 $as_echo "no" >&6; }
7599 fi
7600 
7601 
7602   test -n "$ECHO" && break
7603 done
7604 
7605     else
7606       # If it succeeded, then it was overridden by the user. We will use it
7607       # for the tool.
7608 
7609       # First remove it from the list of overridden variables, so we can test
7610       # for unknown variables in the end.
7611       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7612 
7613       # Check if we try to supply an empty value
7614       if test "x$ECHO" = x; then
7615         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ECHO= (no value)" >&5
7616 $as_echo "$as_me: Setting user supplied tool ECHO= (no value)" >&6;}
7617         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5
7618 $as_echo_n "checking for ECHO... " >&6; }
7619         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7620 $as_echo "disabled" >&6; }
7621       else
7622         # Check if the provided tool contains a complete path.
7623         tool_specified="$ECHO"
7624         tool_basename="${tool_specified##*/}"
7625         if test "x$tool_basename" = "x$tool_specified"; then
7626           # A command without a complete path is provided, search $PATH.
7627           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5
7628 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;}
7629           # Extract the first word of "$tool_basename", so it can be a program name with args.
7630 set dummy $tool_basename; ac_word=$2
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7632 $as_echo_n "checking for $ac_word... " >&6; }
7633 if ${ac_cv_path_ECHO+:} false; then :
7634   $as_echo_n "(cached) " >&6
7635 else
7636   case $ECHO in
7637   [\\/]* | ?:[\\/]*)
7638   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
7639   ;;
7640   *)
7641   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7642 for as_dir in $PATH
7643 do
7644   IFS=$as_save_IFS
7645   test -z "$as_dir" && as_dir=.
7646     for ac_exec_ext in '' $ac_executable_extensions; do
7647   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7648     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
7649     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7650     break 2
7651   fi
7652 done
7653   done
7654 IFS=$as_save_IFS
7655 
7656   ;;
7657 esac
7658 fi
7659 ECHO=$ac_cv_path_ECHO
7660 if test -n "$ECHO"; then
7661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
7662 $as_echo "$ECHO" >&6; }
7663 else
7664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7665 $as_echo "no" >&6; }
7666 fi
7667 
7668 
7669           if test "x$ECHO" = x; then
7670             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7671           fi
7672         else
7673           # Otherwise we believe it is a complete path. Use it as it is.
7674           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5
7675 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;}
7676           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5
7677 $as_echo_n "checking for ECHO... " >&6; }
7678           if test ! -x "$tool_specified"; then
7679             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7680 $as_echo "not found" >&6; }
7681             as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5
7682           fi
7683           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7684 $as_echo "$tool_specified" >&6; }
7685         fi
7686       fi
7687     fi
7688 
7689   fi
7690 
7691 
7692 
7693   if test "x$ECHO" = x; then
7694     as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5
7695   fi
7696 
7697 
7698 
7699 
7700 
7701   # Publish this variable in the help.
7702 
7703 
7704   if [ -z "${EXPR+x}" ]; then
7705     # The variable is not set by user, try to locate tool using the code snippet
7706     for ac_prog in expr
7707 do
7708   # Extract the first word of "$ac_prog", so it can be a program name with args.
7709 set dummy $ac_prog; ac_word=$2
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7711 $as_echo_n "checking for $ac_word... " >&6; }
7712 if ${ac_cv_path_EXPR+:} false; then :
7713   $as_echo_n "(cached) " >&6
7714 else
7715   case $EXPR in
7716   [\\/]* | ?:[\\/]*)
7717   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
7718   ;;
7719   *)
7720   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7721 for as_dir in $PATH
7722 do
7723   IFS=$as_save_IFS
7724   test -z "$as_dir" && as_dir=.
7725     for ac_exec_ext in '' $ac_executable_extensions; do
7726   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7727     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
7728     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7729     break 2
7730   fi
7731 done
7732   done
7733 IFS=$as_save_IFS
7734 
7735   ;;
7736 esac
7737 fi
7738 EXPR=$ac_cv_path_EXPR
7739 if test -n "$EXPR"; then
7740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
7741 $as_echo "$EXPR" >&6; }
7742 else
7743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7744 $as_echo "no" >&6; }
7745 fi
7746 
7747 
7748   test -n "$EXPR" && break
7749 done
7750 
7751   else
7752     # The variable is set, but is it from the command line or the environment?
7753 
7754     # Try to remove the string !EXPR! from our list.
7755     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/}
7756     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7757       # If it failed, the variable was not from the command line. Ignore it,
7758       # but warn the user (except for BASH, which is always set by the calling BASH).
7759       if test "xEXPR" != xBASH; then
7760         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5
7761 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;}
7762       fi
7763       # Try to locate tool using the code snippet
7764       for ac_prog in expr
7765 do
7766   # Extract the first word of "$ac_prog", so it can be a program name with args.
7767 set dummy $ac_prog; ac_word=$2
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7769 $as_echo_n "checking for $ac_word... " >&6; }
7770 if ${ac_cv_path_EXPR+:} false; then :
7771   $as_echo_n "(cached) " >&6
7772 else
7773   case $EXPR in
7774   [\\/]* | ?:[\\/]*)
7775   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
7776   ;;
7777   *)
7778   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7779 for as_dir in $PATH
7780 do
7781   IFS=$as_save_IFS
7782   test -z "$as_dir" && as_dir=.
7783     for ac_exec_ext in '' $ac_executable_extensions; do
7784   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7785     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
7786     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7787     break 2
7788   fi
7789 done
7790   done
7791 IFS=$as_save_IFS
7792 
7793   ;;
7794 esac
7795 fi
7796 EXPR=$ac_cv_path_EXPR
7797 if test -n "$EXPR"; then
7798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
7799 $as_echo "$EXPR" >&6; }
7800 else
7801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7802 $as_echo "no" >&6; }
7803 fi
7804 
7805 
7806   test -n "$EXPR" && break
7807 done
7808 
7809     else
7810       # If it succeeded, then it was overridden by the user. We will use it
7811       # for the tool.
7812 
7813       # First remove it from the list of overridden variables, so we can test
7814       # for unknown variables in the end.
7815       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7816 
7817       # Check if we try to supply an empty value
7818       if test "x$EXPR" = x; then
7819         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool EXPR= (no value)" >&5
7820 $as_echo "$as_me: Setting user supplied tool EXPR= (no value)" >&6;}
7821         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5
7822 $as_echo_n "checking for EXPR... " >&6; }
7823         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7824 $as_echo "disabled" >&6; }
7825       else
7826         # Check if the provided tool contains a complete path.
7827         tool_specified="$EXPR"
7828         tool_basename="${tool_specified##*/}"
7829         if test "x$tool_basename" = "x$tool_specified"; then
7830           # A command without a complete path is provided, search $PATH.
7831           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5
7832 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;}
7833           # Extract the first word of "$tool_basename", so it can be a program name with args.
7834 set dummy $tool_basename; ac_word=$2
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7836 $as_echo_n "checking for $ac_word... " >&6; }
7837 if ${ac_cv_path_EXPR+:} false; then :
7838   $as_echo_n "(cached) " >&6
7839 else
7840   case $EXPR in
7841   [\\/]* | ?:[\\/]*)
7842   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
7843   ;;
7844   *)
7845   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7846 for as_dir in $PATH
7847 do
7848   IFS=$as_save_IFS
7849   test -z "$as_dir" && as_dir=.
7850     for ac_exec_ext in '' $ac_executable_extensions; do
7851   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7852     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
7853     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7854     break 2
7855   fi
7856 done
7857   done
7858 IFS=$as_save_IFS
7859 
7860   ;;
7861 esac
7862 fi
7863 EXPR=$ac_cv_path_EXPR
7864 if test -n "$EXPR"; then
7865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
7866 $as_echo "$EXPR" >&6; }
7867 else
7868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7869 $as_echo "no" >&6; }
7870 fi
7871 
7872 
7873           if test "x$EXPR" = x; then
7874             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7875           fi
7876         else
7877           # Otherwise we believe it is a complete path. Use it as it is.
7878           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5
7879 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;}
7880           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5
7881 $as_echo_n "checking for EXPR... " >&6; }
7882           if test ! -x "$tool_specified"; then
7883             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7884 $as_echo "not found" >&6; }
7885             as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5
7886           fi
7887           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7888 $as_echo "$tool_specified" >&6; }
7889         fi
7890       fi
7891     fi
7892 
7893   fi
7894 
7895 
7896 
7897   if test "x$EXPR" = x; then
7898     as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5
7899   fi
7900 
7901 
7902 
7903 
7904 
7905   # Publish this variable in the help.
7906 
7907 
7908   if [ -z "${FILE+x}" ]; then
7909     # The variable is not set by user, try to locate tool using the code snippet
7910     for ac_prog in file
7911 do
7912   # Extract the first word of "$ac_prog", so it can be a program name with args.
7913 set dummy $ac_prog; ac_word=$2
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7915 $as_echo_n "checking for $ac_word... " >&6; }
7916 if ${ac_cv_path_FILE+:} false; then :
7917   $as_echo_n "(cached) " >&6
7918 else
7919   case $FILE in
7920   [\\/]* | ?:[\\/]*)
7921   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7922   ;;
7923   *)
7924   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7925 for as_dir in $PATH
7926 do
7927   IFS=$as_save_IFS
7928   test -z "$as_dir" && as_dir=.
7929     for ac_exec_ext in '' $ac_executable_extensions; do
7930   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7931     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7932     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7933     break 2
7934   fi
7935 done
7936   done
7937 IFS=$as_save_IFS
7938 
7939   ;;
7940 esac
7941 fi
7942 FILE=$ac_cv_path_FILE
7943 if test -n "$FILE"; then
7944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7945 $as_echo "$FILE" >&6; }
7946 else
7947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7948 $as_echo "no" >&6; }
7949 fi
7950 
7951 
7952   test -n "$FILE" && break
7953 done
7954 
7955   else
7956     # The variable is set, but is it from the command line or the environment?
7957 
7958     # Try to remove the string !FILE! from our list.
7959     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/}
7960     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7961       # If it failed, the variable was not from the command line. Ignore it,
7962       # but warn the user (except for BASH, which is always set by the calling BASH).
7963       if test "xFILE" != xBASH; then
7964         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5
7965 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;}
7966       fi
7967       # Try to locate tool using the code snippet
7968       for ac_prog in file
7969 do
7970   # Extract the first word of "$ac_prog", so it can be a program name with args.
7971 set dummy $ac_prog; ac_word=$2
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7973 $as_echo_n "checking for $ac_word... " >&6; }
7974 if ${ac_cv_path_FILE+:} false; then :
7975   $as_echo_n "(cached) " >&6
7976 else
7977   case $FILE in
7978   [\\/]* | ?:[\\/]*)
7979   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7980   ;;
7981   *)
7982   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7983 for as_dir in $PATH
7984 do
7985   IFS=$as_save_IFS
7986   test -z "$as_dir" && as_dir=.
7987     for ac_exec_ext in '' $ac_executable_extensions; do
7988   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7989     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7990     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7991     break 2
7992   fi
7993 done
7994   done
7995 IFS=$as_save_IFS
7996 
7997   ;;
7998 esac
7999 fi
8000 FILE=$ac_cv_path_FILE
8001 if test -n "$FILE"; then
8002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
8003 $as_echo "$FILE" >&6; }
8004 else
8005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8006 $as_echo "no" >&6; }
8007 fi
8008 
8009 
8010   test -n "$FILE" && break
8011 done
8012 
8013     else
8014       # If it succeeded, then it was overridden by the user. We will use it
8015       # for the tool.
8016 
8017       # First remove it from the list of overridden variables, so we can test
8018       # for unknown variables in the end.
8019       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8020 
8021       # Check if we try to supply an empty value
8022       if test "x$FILE" = x; then
8023         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FILE= (no value)" >&5
8024 $as_echo "$as_me: Setting user supplied tool FILE= (no value)" >&6;}
8025         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5
8026 $as_echo_n "checking for FILE... " >&6; }
8027         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8028 $as_echo "disabled" >&6; }
8029       else
8030         # Check if the provided tool contains a complete path.
8031         tool_specified="$FILE"
8032         tool_basename="${tool_specified##*/}"
8033         if test "x$tool_basename" = "x$tool_specified"; then
8034           # A command without a complete path is provided, search $PATH.
8035           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5
8036 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;}
8037           # Extract the first word of "$tool_basename", so it can be a program name with args.
8038 set dummy $tool_basename; ac_word=$2
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8040 $as_echo_n "checking for $ac_word... " >&6; }
8041 if ${ac_cv_path_FILE+:} false; then :
8042   $as_echo_n "(cached) " >&6
8043 else
8044   case $FILE in
8045   [\\/]* | ?:[\\/]*)
8046   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
8047   ;;
8048   *)
8049   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8050 for as_dir in $PATH
8051 do
8052   IFS=$as_save_IFS
8053   test -z "$as_dir" && as_dir=.
8054     for ac_exec_ext in '' $ac_executable_extensions; do
8055   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8056     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
8057     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8058     break 2
8059   fi
8060 done
8061   done
8062 IFS=$as_save_IFS
8063 
8064   ;;
8065 esac
8066 fi
8067 FILE=$ac_cv_path_FILE
8068 if test -n "$FILE"; then
8069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
8070 $as_echo "$FILE" >&6; }
8071 else
8072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8073 $as_echo "no" >&6; }
8074 fi
8075 
8076 
8077           if test "x$FILE" = x; then
8078             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8079           fi
8080         else
8081           # Otherwise we believe it is a complete path. Use it as it is.
8082           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5
8083 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;}
8084           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5
8085 $as_echo_n "checking for FILE... " >&6; }
8086           if test ! -x "$tool_specified"; then
8087             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8088 $as_echo "not found" >&6; }
8089             as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5
8090           fi
8091           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8092 $as_echo "$tool_specified" >&6; }
8093         fi
8094       fi
8095     fi
8096 
8097   fi
8098 
8099 
8100 
8101   if test "x$FILE" = x; then
8102     as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5
8103   fi
8104 
8105 
8106 
8107 
8108 
8109   # Publish this variable in the help.
8110 
8111 
8112   if [ -z "${FIND+x}" ]; then
8113     # The variable is not set by user, try to locate tool using the code snippet
8114     for ac_prog in find
8115 do
8116   # Extract the first word of "$ac_prog", so it can be a program name with args.
8117 set dummy $ac_prog; ac_word=$2
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8119 $as_echo_n "checking for $ac_word... " >&6; }
8120 if ${ac_cv_path_FIND+:} false; then :
8121   $as_echo_n "(cached) " >&6
8122 else
8123   case $FIND in
8124   [\\/]* | ?:[\\/]*)
8125   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
8126   ;;
8127   *)
8128   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8129 for as_dir in $PATH
8130 do
8131   IFS=$as_save_IFS
8132   test -z "$as_dir" && as_dir=.
8133     for ac_exec_ext in '' $ac_executable_extensions; do
8134   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8135     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
8136     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8137     break 2
8138   fi
8139 done
8140   done
8141 IFS=$as_save_IFS
8142 
8143   ;;
8144 esac
8145 fi
8146 FIND=$ac_cv_path_FIND
8147 if test -n "$FIND"; then
8148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
8149 $as_echo "$FIND" >&6; }
8150 else
8151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8152 $as_echo "no" >&6; }
8153 fi
8154 
8155 
8156   test -n "$FIND" && break
8157 done
8158 
8159   else
8160     # The variable is set, but is it from the command line or the environment?
8161 
8162     # Try to remove the string !FIND! from our list.
8163     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/}
8164     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8165       # If it failed, the variable was not from the command line. Ignore it,
8166       # but warn the user (except for BASH, which is always set by the calling BASH).
8167       if test "xFIND" != xBASH; then
8168         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5
8169 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;}
8170       fi
8171       # Try to locate tool using the code snippet
8172       for ac_prog in find
8173 do
8174   # Extract the first word of "$ac_prog", so it can be a program name with args.
8175 set dummy $ac_prog; ac_word=$2
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8177 $as_echo_n "checking for $ac_word... " >&6; }
8178 if ${ac_cv_path_FIND+:} false; then :
8179   $as_echo_n "(cached) " >&6
8180 else
8181   case $FIND in
8182   [\\/]* | ?:[\\/]*)
8183   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
8184   ;;
8185   *)
8186   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8187 for as_dir in $PATH
8188 do
8189   IFS=$as_save_IFS
8190   test -z "$as_dir" && as_dir=.
8191     for ac_exec_ext in '' $ac_executable_extensions; do
8192   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8193     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
8194     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8195     break 2
8196   fi
8197 done
8198   done
8199 IFS=$as_save_IFS
8200 
8201   ;;
8202 esac
8203 fi
8204 FIND=$ac_cv_path_FIND
8205 if test -n "$FIND"; then
8206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
8207 $as_echo "$FIND" >&6; }
8208 else
8209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8210 $as_echo "no" >&6; }
8211 fi
8212 
8213 
8214   test -n "$FIND" && break
8215 done
8216 
8217     else
8218       # If it succeeded, then it was overridden by the user. We will use it
8219       # for the tool.
8220 
8221       # First remove it from the list of overridden variables, so we can test
8222       # for unknown variables in the end.
8223       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8224 
8225       # Check if we try to supply an empty value
8226       if test "x$FIND" = x; then
8227         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FIND= (no value)" >&5
8228 $as_echo "$as_me: Setting user supplied tool FIND= (no value)" >&6;}
8229         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5
8230 $as_echo_n "checking for FIND... " >&6; }
8231         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8232 $as_echo "disabled" >&6; }
8233       else
8234         # Check if the provided tool contains a complete path.
8235         tool_specified="$FIND"
8236         tool_basename="${tool_specified##*/}"
8237         if test "x$tool_basename" = "x$tool_specified"; then
8238           # A command without a complete path is provided, search $PATH.
8239           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5
8240 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;}
8241           # Extract the first word of "$tool_basename", so it can be a program name with args.
8242 set dummy $tool_basename; ac_word=$2
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8244 $as_echo_n "checking for $ac_word... " >&6; }
8245 if ${ac_cv_path_FIND+:} false; then :
8246   $as_echo_n "(cached) " >&6
8247 else
8248   case $FIND in
8249   [\\/]* | ?:[\\/]*)
8250   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
8251   ;;
8252   *)
8253   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8254 for as_dir in $PATH
8255 do
8256   IFS=$as_save_IFS
8257   test -z "$as_dir" && as_dir=.
8258     for ac_exec_ext in '' $ac_executable_extensions; do
8259   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8260     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
8261     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8262     break 2
8263   fi
8264 done
8265   done
8266 IFS=$as_save_IFS
8267 
8268   ;;
8269 esac
8270 fi
8271 FIND=$ac_cv_path_FIND
8272 if test -n "$FIND"; then
8273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
8274 $as_echo "$FIND" >&6; }
8275 else
8276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8277 $as_echo "no" >&6; }
8278 fi
8279 
8280 
8281           if test "x$FIND" = x; then
8282             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8283           fi
8284         else
8285           # Otherwise we believe it is a complete path. Use it as it is.
8286           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5
8287 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;}
8288           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5
8289 $as_echo_n "checking for FIND... " >&6; }
8290           if test ! -x "$tool_specified"; then
8291             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8292 $as_echo "not found" >&6; }
8293             as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5
8294           fi
8295           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8296 $as_echo "$tool_specified" >&6; }
8297         fi
8298       fi
8299     fi
8300 
8301   fi
8302 
8303 
8304 
8305   if test "x$FIND" = x; then
8306     as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5
8307   fi
8308 
8309 
8310 
8311 
8312 
8313   # Publish this variable in the help.
8314 
8315 
8316   if [ -z "${HEAD+x}" ]; then
8317     # The variable is not set by user, try to locate tool using the code snippet
8318     for ac_prog in head
8319 do
8320   # Extract the first word of "$ac_prog", so it can be a program name with args.
8321 set dummy $ac_prog; ac_word=$2
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8323 $as_echo_n "checking for $ac_word... " >&6; }
8324 if ${ac_cv_path_HEAD+:} false; then :
8325   $as_echo_n "(cached) " >&6
8326 else
8327   case $HEAD in
8328   [\\/]* | ?:[\\/]*)
8329   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
8330   ;;
8331   *)
8332   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8333 for as_dir in $PATH
8334 do
8335   IFS=$as_save_IFS
8336   test -z "$as_dir" && as_dir=.
8337     for ac_exec_ext in '' $ac_executable_extensions; do
8338   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8339     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
8340     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8341     break 2
8342   fi
8343 done
8344   done
8345 IFS=$as_save_IFS
8346 
8347   ;;
8348 esac
8349 fi
8350 HEAD=$ac_cv_path_HEAD
8351 if test -n "$HEAD"; then
8352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
8353 $as_echo "$HEAD" >&6; }
8354 else
8355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8356 $as_echo "no" >&6; }
8357 fi
8358 
8359 
8360   test -n "$HEAD" && break
8361 done
8362 
8363   else
8364     # The variable is set, but is it from the command line or the environment?
8365 
8366     # Try to remove the string !HEAD! from our list.
8367     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/}
8368     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8369       # If it failed, the variable was not from the command line. Ignore it,
8370       # but warn the user (except for BASH, which is always set by the calling BASH).
8371       if test "xHEAD" != xBASH; then
8372         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5
8373 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;}
8374       fi
8375       # Try to locate tool using the code snippet
8376       for ac_prog in head
8377 do
8378   # Extract the first word of "$ac_prog", so it can be a program name with args.
8379 set dummy $ac_prog; ac_word=$2
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8381 $as_echo_n "checking for $ac_word... " >&6; }
8382 if ${ac_cv_path_HEAD+:} false; then :
8383   $as_echo_n "(cached) " >&6
8384 else
8385   case $HEAD in
8386   [\\/]* | ?:[\\/]*)
8387   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
8388   ;;
8389   *)
8390   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8391 for as_dir in $PATH
8392 do
8393   IFS=$as_save_IFS
8394   test -z "$as_dir" && as_dir=.
8395     for ac_exec_ext in '' $ac_executable_extensions; do
8396   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8397     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
8398     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8399     break 2
8400   fi
8401 done
8402   done
8403 IFS=$as_save_IFS
8404 
8405   ;;
8406 esac
8407 fi
8408 HEAD=$ac_cv_path_HEAD
8409 if test -n "$HEAD"; then
8410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
8411 $as_echo "$HEAD" >&6; }
8412 else
8413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8414 $as_echo "no" >&6; }
8415 fi
8416 
8417 
8418   test -n "$HEAD" && break
8419 done
8420 
8421     else
8422       # If it succeeded, then it was overridden by the user. We will use it
8423       # for the tool.
8424 
8425       # First remove it from the list of overridden variables, so we can test
8426       # for unknown variables in the end.
8427       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8428 
8429       # Check if we try to supply an empty value
8430       if test "x$HEAD" = x; then
8431         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool HEAD= (no value)" >&5
8432 $as_echo "$as_me: Setting user supplied tool HEAD= (no value)" >&6;}
8433         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5
8434 $as_echo_n "checking for HEAD... " >&6; }
8435         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8436 $as_echo "disabled" >&6; }
8437       else
8438         # Check if the provided tool contains a complete path.
8439         tool_specified="$HEAD"
8440         tool_basename="${tool_specified##*/}"
8441         if test "x$tool_basename" = "x$tool_specified"; then
8442           # A command without a complete path is provided, search $PATH.
8443           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5
8444 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;}
8445           # Extract the first word of "$tool_basename", so it can be a program name with args.
8446 set dummy $tool_basename; ac_word=$2
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8448 $as_echo_n "checking for $ac_word... " >&6; }
8449 if ${ac_cv_path_HEAD+:} false; then :
8450   $as_echo_n "(cached) " >&6
8451 else
8452   case $HEAD in
8453   [\\/]* | ?:[\\/]*)
8454   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
8455   ;;
8456   *)
8457   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8458 for as_dir in $PATH
8459 do
8460   IFS=$as_save_IFS
8461   test -z "$as_dir" && as_dir=.
8462     for ac_exec_ext in '' $ac_executable_extensions; do
8463   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8464     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
8465     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8466     break 2
8467   fi
8468 done
8469   done
8470 IFS=$as_save_IFS
8471 
8472   ;;
8473 esac
8474 fi
8475 HEAD=$ac_cv_path_HEAD
8476 if test -n "$HEAD"; then
8477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
8478 $as_echo "$HEAD" >&6; }
8479 else
8480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8481 $as_echo "no" >&6; }
8482 fi
8483 
8484 
8485           if test "x$HEAD" = x; then
8486             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8487           fi
8488         else
8489           # Otherwise we believe it is a complete path. Use it as it is.
8490           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5
8491 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;}
8492           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5
8493 $as_echo_n "checking for HEAD... " >&6; }
8494           if test ! -x "$tool_specified"; then
8495             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8496 $as_echo "not found" >&6; }
8497             as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5
8498           fi
8499           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8500 $as_echo "$tool_specified" >&6; }
8501         fi
8502       fi
8503     fi
8504 
8505   fi
8506 
8507 
8508 
8509   if test "x$HEAD" = x; then
8510     as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5
8511   fi
8512 
8513 
8514 
8515 
8516 
8517   # Publish this variable in the help.
8518 
8519 
8520   if [ -z "${GUNZIP+x}" ]; then
8521     # The variable is not set by user, try to locate tool using the code snippet
8522     for ac_prog in gunzip
8523 do
8524   # Extract the first word of "$ac_prog", so it can be a program name with args.
8525 set dummy $ac_prog; ac_word=$2
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8527 $as_echo_n "checking for $ac_word... " >&6; }
8528 if ${ac_cv_path_GUNZIP+:} false; then :
8529   $as_echo_n "(cached) " >&6
8530 else
8531   case $GUNZIP in
8532   [\\/]* | ?:[\\/]*)
8533   ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path.
8534   ;;
8535   *)
8536   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8537 for as_dir in $PATH
8538 do
8539   IFS=$as_save_IFS
8540   test -z "$as_dir" && as_dir=.
8541     for ac_exec_ext in '' $ac_executable_extensions; do
8542   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8543     ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext"
8544     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8545     break 2
8546   fi
8547 done
8548   done
8549 IFS=$as_save_IFS
8550 
8551   ;;
8552 esac
8553 fi
8554 GUNZIP=$ac_cv_path_GUNZIP
8555 if test -n "$GUNZIP"; then
8556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5
8557 $as_echo "$GUNZIP" >&6; }
8558 else
8559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8560 $as_echo "no" >&6; }
8561 fi
8562 
8563 
8564   test -n "$GUNZIP" && break
8565 done
8566 
8567   else
8568     # The variable is set, but is it from the command line or the environment?
8569 
8570     # Try to remove the string !GUNZIP! from our list.
8571     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GUNZIP!/}
8572     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8573       # If it failed, the variable was not from the command line. Ignore it,
8574       # but warn the user (except for BASH, which is always set by the calling BASH).
8575       if test "xGUNZIP" != xBASH; then
8576         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GUNZIP from the environment. Use command line variables instead." >&5
8577 $as_echo "$as_me: WARNING: Ignoring value of GUNZIP from the environment. Use command line variables instead." >&2;}
8578       fi
8579       # Try to locate tool using the code snippet
8580       for ac_prog in gunzip
8581 do
8582   # Extract the first word of "$ac_prog", so it can be a program name with args.
8583 set dummy $ac_prog; ac_word=$2
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8585 $as_echo_n "checking for $ac_word... " >&6; }
8586 if ${ac_cv_path_GUNZIP+:} false; then :
8587   $as_echo_n "(cached) " >&6
8588 else
8589   case $GUNZIP in
8590   [\\/]* | ?:[\\/]*)
8591   ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path.
8592   ;;
8593   *)
8594   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8595 for as_dir in $PATH
8596 do
8597   IFS=$as_save_IFS
8598   test -z "$as_dir" && as_dir=.
8599     for ac_exec_ext in '' $ac_executable_extensions; do
8600   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8601     ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext"
8602     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8603     break 2
8604   fi
8605 done
8606   done
8607 IFS=$as_save_IFS
8608 
8609   ;;
8610 esac
8611 fi
8612 GUNZIP=$ac_cv_path_GUNZIP
8613 if test -n "$GUNZIP"; then
8614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5
8615 $as_echo "$GUNZIP" >&6; }
8616 else
8617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8618 $as_echo "no" >&6; }
8619 fi
8620 
8621 
8622   test -n "$GUNZIP" && break
8623 done
8624 
8625     else
8626       # If it succeeded, then it was overridden by the user. We will use it
8627       # for the tool.
8628 
8629       # First remove it from the list of overridden variables, so we can test
8630       # for unknown variables in the end.
8631       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8632 
8633       # Check if we try to supply an empty value
8634       if test "x$GUNZIP" = x; then
8635         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GUNZIP= (no value)" >&5
8636 $as_echo "$as_me: Setting user supplied tool GUNZIP= (no value)" >&6;}
8637         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUNZIP" >&5
8638 $as_echo_n "checking for GUNZIP... " >&6; }
8639         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8640 $as_echo "disabled" >&6; }
8641       else
8642         # Check if the provided tool contains a complete path.
8643         tool_specified="$GUNZIP"
8644         tool_basename="${tool_specified##*/}"
8645         if test "x$tool_basename" = "x$tool_specified"; then
8646           # A command without a complete path is provided, search $PATH.
8647           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GUNZIP=$tool_basename" >&5
8648 $as_echo "$as_me: Will search for user supplied tool GUNZIP=$tool_basename" >&6;}
8649           # Extract the first word of "$tool_basename", so it can be a program name with args.
8650 set dummy $tool_basename; ac_word=$2
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8652 $as_echo_n "checking for $ac_word... " >&6; }
8653 if ${ac_cv_path_GUNZIP+:} false; then :
8654   $as_echo_n "(cached) " >&6
8655 else
8656   case $GUNZIP in
8657   [\\/]* | ?:[\\/]*)
8658   ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path.
8659   ;;
8660   *)
8661   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8662 for as_dir in $PATH
8663 do
8664   IFS=$as_save_IFS
8665   test -z "$as_dir" && as_dir=.
8666     for ac_exec_ext in '' $ac_executable_extensions; do
8667   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8668     ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext"
8669     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8670     break 2
8671   fi
8672 done
8673   done
8674 IFS=$as_save_IFS
8675 
8676   ;;
8677 esac
8678 fi
8679 GUNZIP=$ac_cv_path_GUNZIP
8680 if test -n "$GUNZIP"; then
8681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5
8682 $as_echo "$GUNZIP" >&6; }
8683 else
8684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8685 $as_echo "no" >&6; }
8686 fi
8687 
8688 
8689           if test "x$GUNZIP" = x; then
8690             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8691           fi
8692         else
8693           # Otherwise we believe it is a complete path. Use it as it is.
8694           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GUNZIP=$tool_specified" >&5
8695 $as_echo "$as_me: Will use user supplied tool GUNZIP=$tool_specified" >&6;}
8696           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUNZIP" >&5
8697 $as_echo_n "checking for GUNZIP... " >&6; }
8698           if test ! -x "$tool_specified"; then
8699             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8700 $as_echo "not found" >&6; }
8701             as_fn_error $? "User supplied tool GUNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
8702           fi
8703           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8704 $as_echo "$tool_specified" >&6; }
8705         fi
8706       fi
8707     fi
8708 
8709   fi
8710 
8711 
8712 
8713   if test "x$GUNZIP" = x; then
8714     as_fn_error $? "Could not find required tool for GUNZIP" "$LINENO" 5
8715   fi
8716 
8717 
8718 
8719 
8720 
8721   # Publish this variable in the help.
8722 
8723 
8724   if [ -z "${GZIP+x}" ]; then
8725     # The variable is not set by user, try to locate tool using the code snippet
8726     for ac_prog in pigz gzip
8727 do
8728   # Extract the first word of "$ac_prog", so it can be a program name with args.
8729 set dummy $ac_prog; ac_word=$2
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8731 $as_echo_n "checking for $ac_word... " >&6; }
8732 if ${ac_cv_path_GZIP+:} false; then :
8733   $as_echo_n "(cached) " >&6
8734 else
8735   case $GZIP in
8736   [\\/]* | ?:[\\/]*)
8737   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8738   ;;
8739   *)
8740   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8741 for as_dir in $PATH
8742 do
8743   IFS=$as_save_IFS
8744   test -z "$as_dir" && as_dir=.
8745     for ac_exec_ext in '' $ac_executable_extensions; do
8746   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8747     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8748     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8749     break 2
8750   fi
8751 done
8752   done
8753 IFS=$as_save_IFS
8754 
8755   ;;
8756 esac
8757 fi
8758 GZIP=$ac_cv_path_GZIP
8759 if test -n "$GZIP"; then
8760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
8761 $as_echo "$GZIP" >&6; }
8762 else
8763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8764 $as_echo "no" >&6; }
8765 fi
8766 
8767 
8768   test -n "$GZIP" && break
8769 done
8770 
8771   else
8772     # The variable is set, but is it from the command line or the environment?
8773 
8774     # Try to remove the string !GZIP! from our list.
8775     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GZIP!/}
8776     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8777       # If it failed, the variable was not from the command line. Ignore it,
8778       # but warn the user (except for BASH, which is always set by the calling BASH).
8779       if test "xGZIP" != xBASH; then
8780         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GZIP from the environment. Use command line variables instead." >&5
8781 $as_echo "$as_me: WARNING: Ignoring value of GZIP from the environment. Use command line variables instead." >&2;}
8782       fi
8783       # Try to locate tool using the code snippet
8784       for ac_prog in pigz gzip
8785 do
8786   # Extract the first word of "$ac_prog", so it can be a program name with args.
8787 set dummy $ac_prog; ac_word=$2
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8789 $as_echo_n "checking for $ac_word... " >&6; }
8790 if ${ac_cv_path_GZIP+:} false; then :
8791   $as_echo_n "(cached) " >&6
8792 else
8793   case $GZIP in
8794   [\\/]* | ?:[\\/]*)
8795   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8796   ;;
8797   *)
8798   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8799 for as_dir in $PATH
8800 do
8801   IFS=$as_save_IFS
8802   test -z "$as_dir" && as_dir=.
8803     for ac_exec_ext in '' $ac_executable_extensions; do
8804   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8805     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8806     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8807     break 2
8808   fi
8809 done
8810   done
8811 IFS=$as_save_IFS
8812 
8813   ;;
8814 esac
8815 fi
8816 GZIP=$ac_cv_path_GZIP
8817 if test -n "$GZIP"; then
8818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
8819 $as_echo "$GZIP" >&6; }
8820 else
8821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8822 $as_echo "no" >&6; }
8823 fi
8824 
8825 
8826   test -n "$GZIP" && break
8827 done
8828 
8829     else
8830       # If it succeeded, then it was overridden by the user. We will use it
8831       # for the tool.
8832 
8833       # First remove it from the list of overridden variables, so we can test
8834       # for unknown variables in the end.
8835       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8836 
8837       # Check if we try to supply an empty value
8838       if test "x$GZIP" = x; then
8839         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GZIP= (no value)" >&5
8840 $as_echo "$as_me: Setting user supplied tool GZIP= (no value)" >&6;}
8841         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GZIP" >&5
8842 $as_echo_n "checking for GZIP... " >&6; }
8843         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8844 $as_echo "disabled" >&6; }
8845       else
8846         # Check if the provided tool contains a complete path.
8847         tool_specified="$GZIP"
8848         tool_basename="${tool_specified##*/}"
8849         if test "x$tool_basename" = "x$tool_specified"; then
8850           # A command without a complete path is provided, search $PATH.
8851           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GZIP=$tool_basename" >&5
8852 $as_echo "$as_me: Will search for user supplied tool GZIP=$tool_basename" >&6;}
8853           # Extract the first word of "$tool_basename", so it can be a program name with args.
8854 set dummy $tool_basename; ac_word=$2
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8856 $as_echo_n "checking for $ac_word... " >&6; }
8857 if ${ac_cv_path_GZIP+:} false; then :
8858   $as_echo_n "(cached) " >&6
8859 else
8860   case $GZIP in
8861   [\\/]* | ?:[\\/]*)
8862   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8863   ;;
8864   *)
8865   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8866 for as_dir in $PATH
8867 do
8868   IFS=$as_save_IFS
8869   test -z "$as_dir" && as_dir=.
8870     for ac_exec_ext in '' $ac_executable_extensions; do
8871   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8872     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8873     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8874     break 2
8875   fi
8876 done
8877   done
8878 IFS=$as_save_IFS
8879 
8880   ;;
8881 esac
8882 fi
8883 GZIP=$ac_cv_path_GZIP
8884 if test -n "$GZIP"; then
8885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
8886 $as_echo "$GZIP" >&6; }
8887 else
8888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8889 $as_echo "no" >&6; }
8890 fi
8891 
8892 
8893           if test "x$GZIP" = x; then
8894             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8895           fi
8896         else
8897           # Otherwise we believe it is a complete path. Use it as it is.
8898           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GZIP=$tool_specified" >&5
8899 $as_echo "$as_me: Will use user supplied tool GZIP=$tool_specified" >&6;}
8900           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GZIP" >&5
8901 $as_echo_n "checking for GZIP... " >&6; }
8902           if test ! -x "$tool_specified"; then
8903             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8904 $as_echo "not found" >&6; }
8905             as_fn_error $? "User supplied tool GZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
8906           fi
8907           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8908 $as_echo "$tool_specified" >&6; }
8909         fi
8910       fi
8911     fi
8912 
8913   fi
8914 
8915 
8916 
8917   if test "x$GZIP" = x; then
8918     as_fn_error $? "Could not find required tool for GZIP" "$LINENO" 5
8919   fi
8920 
8921 
8922 
8923 
8924 
8925   # Publish this variable in the help.
8926 
8927 
8928   if [ -z "${LN+x}" ]; then
8929     # The variable is not set by user, try to locate tool using the code snippet
8930     for ac_prog in ln
8931 do
8932   # Extract the first word of "$ac_prog", so it can be a program name with args.
8933 set dummy $ac_prog; ac_word=$2
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8935 $as_echo_n "checking for $ac_word... " >&6; }
8936 if ${ac_cv_path_LN+:} false; then :
8937   $as_echo_n "(cached) " >&6
8938 else
8939   case $LN in
8940   [\\/]* | ?:[\\/]*)
8941   ac_cv_path_LN="$LN" # Let the user override the test with a path.
8942   ;;
8943   *)
8944   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8945 for as_dir in $PATH
8946 do
8947   IFS=$as_save_IFS
8948   test -z "$as_dir" && as_dir=.
8949     for ac_exec_ext in '' $ac_executable_extensions; do
8950   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8951     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
8952     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8953     break 2
8954   fi
8955 done
8956   done
8957 IFS=$as_save_IFS
8958 
8959   ;;
8960 esac
8961 fi
8962 LN=$ac_cv_path_LN
8963 if test -n "$LN"; then
8964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
8965 $as_echo "$LN" >&6; }
8966 else
8967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8968 $as_echo "no" >&6; }
8969 fi
8970 
8971 
8972   test -n "$LN" && break
8973 done
8974 
8975   else
8976     # The variable is set, but is it from the command line or the environment?
8977 
8978     # Try to remove the string !LN! from our list.
8979     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/}
8980     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8981       # If it failed, the variable was not from the command line. Ignore it,
8982       # but warn the user (except for BASH, which is always set by the calling BASH).
8983       if test "xLN" != xBASH; then
8984         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5
8985 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;}
8986       fi
8987       # Try to locate tool using the code snippet
8988       for ac_prog in ln
8989 do
8990   # Extract the first word of "$ac_prog", so it can be a program name with args.
8991 set dummy $ac_prog; ac_word=$2
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8993 $as_echo_n "checking for $ac_word... " >&6; }
8994 if ${ac_cv_path_LN+:} false; then :
8995   $as_echo_n "(cached) " >&6
8996 else
8997   case $LN in
8998   [\\/]* | ?:[\\/]*)
8999   ac_cv_path_LN="$LN" # Let the user override the test with a path.
9000   ;;
9001   *)
9002   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9003 for as_dir in $PATH
9004 do
9005   IFS=$as_save_IFS
9006   test -z "$as_dir" && as_dir=.
9007     for ac_exec_ext in '' $ac_executable_extensions; do
9008   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9009     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
9010     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9011     break 2
9012   fi
9013 done
9014   done
9015 IFS=$as_save_IFS
9016 
9017   ;;
9018 esac
9019 fi
9020 LN=$ac_cv_path_LN
9021 if test -n "$LN"; then
9022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
9023 $as_echo "$LN" >&6; }
9024 else
9025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9026 $as_echo "no" >&6; }
9027 fi
9028 
9029 
9030   test -n "$LN" && break
9031 done
9032 
9033     else
9034       # If it succeeded, then it was overridden by the user. We will use it
9035       # for the tool.
9036 
9037       # First remove it from the list of overridden variables, so we can test
9038       # for unknown variables in the end.
9039       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9040 
9041       # Check if we try to supply an empty value
9042       if test "x$LN" = x; then
9043         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LN= (no value)" >&5
9044 $as_echo "$as_me: Setting user supplied tool LN= (no value)" >&6;}
9045         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5
9046 $as_echo_n "checking for LN... " >&6; }
9047         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9048 $as_echo "disabled" >&6; }
9049       else
9050         # Check if the provided tool contains a complete path.
9051         tool_specified="$LN"
9052         tool_basename="${tool_specified##*/}"
9053         if test "x$tool_basename" = "x$tool_specified"; then
9054           # A command without a complete path is provided, search $PATH.
9055           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5
9056 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;}
9057           # Extract the first word of "$tool_basename", so it can be a program name with args.
9058 set dummy $tool_basename; ac_word=$2
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9060 $as_echo_n "checking for $ac_word... " >&6; }
9061 if ${ac_cv_path_LN+:} false; then :
9062   $as_echo_n "(cached) " >&6
9063 else
9064   case $LN in
9065   [\\/]* | ?:[\\/]*)
9066   ac_cv_path_LN="$LN" # Let the user override the test with a path.
9067   ;;
9068   *)
9069   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9070 for as_dir in $PATH
9071 do
9072   IFS=$as_save_IFS
9073   test -z "$as_dir" && as_dir=.
9074     for ac_exec_ext in '' $ac_executable_extensions; do
9075   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9076     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
9077     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9078     break 2
9079   fi
9080 done
9081   done
9082 IFS=$as_save_IFS
9083 
9084   ;;
9085 esac
9086 fi
9087 LN=$ac_cv_path_LN
9088 if test -n "$LN"; then
9089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
9090 $as_echo "$LN" >&6; }
9091 else
9092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9093 $as_echo "no" >&6; }
9094 fi
9095 
9096 
9097           if test "x$LN" = x; then
9098             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9099           fi
9100         else
9101           # Otherwise we believe it is a complete path. Use it as it is.
9102           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5
9103 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;}
9104           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5
9105 $as_echo_n "checking for LN... " >&6; }
9106           if test ! -x "$tool_specified"; then
9107             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9108 $as_echo "not found" >&6; }
9109             as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5
9110           fi
9111           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9112 $as_echo "$tool_specified" >&6; }
9113         fi
9114       fi
9115     fi
9116 
9117   fi
9118 
9119 
9120 
9121   if test "x$LN" = x; then
9122     as_fn_error $? "Could not find required tool for LN" "$LINENO" 5
9123   fi
9124 
9125 
9126 
9127 
9128 
9129   # Publish this variable in the help.
9130 
9131 
9132   if [ -z "${LS+x}" ]; then
9133     # The variable is not set by user, try to locate tool using the code snippet
9134     for ac_prog in ls
9135 do
9136   # Extract the first word of "$ac_prog", so it can be a program name with args.
9137 set dummy $ac_prog; ac_word=$2
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9139 $as_echo_n "checking for $ac_word... " >&6; }
9140 if ${ac_cv_path_LS+:} false; then :
9141   $as_echo_n "(cached) " >&6
9142 else
9143   case $LS in
9144   [\\/]* | ?:[\\/]*)
9145   ac_cv_path_LS="$LS" # Let the user override the test with a path.
9146   ;;
9147   *)
9148   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9149 for as_dir in $PATH
9150 do
9151   IFS=$as_save_IFS
9152   test -z "$as_dir" && as_dir=.
9153     for ac_exec_ext in '' $ac_executable_extensions; do
9154   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9155     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
9156     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9157     break 2
9158   fi
9159 done
9160   done
9161 IFS=$as_save_IFS
9162 
9163   ;;
9164 esac
9165 fi
9166 LS=$ac_cv_path_LS
9167 if test -n "$LS"; then
9168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
9169 $as_echo "$LS" >&6; }
9170 else
9171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9172 $as_echo "no" >&6; }
9173 fi
9174 
9175 
9176   test -n "$LS" && break
9177 done
9178 
9179   else
9180     # The variable is set, but is it from the command line or the environment?
9181 
9182     # Try to remove the string !LS! from our list.
9183     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/}
9184     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9185       # If it failed, the variable was not from the command line. Ignore it,
9186       # but warn the user (except for BASH, which is always set by the calling BASH).
9187       if test "xLS" != xBASH; then
9188         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5
9189 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;}
9190       fi
9191       # Try to locate tool using the code snippet
9192       for ac_prog in ls
9193 do
9194   # Extract the first word of "$ac_prog", so it can be a program name with args.
9195 set dummy $ac_prog; ac_word=$2
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9197 $as_echo_n "checking for $ac_word... " >&6; }
9198 if ${ac_cv_path_LS+:} false; then :
9199   $as_echo_n "(cached) " >&6
9200 else
9201   case $LS in
9202   [\\/]* | ?:[\\/]*)
9203   ac_cv_path_LS="$LS" # Let the user override the test with a path.
9204   ;;
9205   *)
9206   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9207 for as_dir in $PATH
9208 do
9209   IFS=$as_save_IFS
9210   test -z "$as_dir" && as_dir=.
9211     for ac_exec_ext in '' $ac_executable_extensions; do
9212   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9213     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
9214     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9215     break 2
9216   fi
9217 done
9218   done
9219 IFS=$as_save_IFS
9220 
9221   ;;
9222 esac
9223 fi
9224 LS=$ac_cv_path_LS
9225 if test -n "$LS"; then
9226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
9227 $as_echo "$LS" >&6; }
9228 else
9229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9230 $as_echo "no" >&6; }
9231 fi
9232 
9233 
9234   test -n "$LS" && break
9235 done
9236 
9237     else
9238       # If it succeeded, then it was overridden by the user. We will use it
9239       # for the tool.
9240 
9241       # First remove it from the list of overridden variables, so we can test
9242       # for unknown variables in the end.
9243       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9244 
9245       # Check if we try to supply an empty value
9246       if test "x$LS" = x; then
9247         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LS= (no value)" >&5
9248 $as_echo "$as_me: Setting user supplied tool LS= (no value)" >&6;}
9249         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5
9250 $as_echo_n "checking for LS... " >&6; }
9251         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9252 $as_echo "disabled" >&6; }
9253       else
9254         # Check if the provided tool contains a complete path.
9255         tool_specified="$LS"
9256         tool_basename="${tool_specified##*/}"
9257         if test "x$tool_basename" = "x$tool_specified"; then
9258           # A command without a complete path is provided, search $PATH.
9259           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5
9260 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;}
9261           # Extract the first word of "$tool_basename", so it can be a program name with args.
9262 set dummy $tool_basename; ac_word=$2
9263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9264 $as_echo_n "checking for $ac_word... " >&6; }
9265 if ${ac_cv_path_LS+:} false; then :
9266   $as_echo_n "(cached) " >&6
9267 else
9268   case $LS in
9269   [\\/]* | ?:[\\/]*)
9270   ac_cv_path_LS="$LS" # Let the user override the test with a path.
9271   ;;
9272   *)
9273   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9274 for as_dir in $PATH
9275 do
9276   IFS=$as_save_IFS
9277   test -z "$as_dir" && as_dir=.
9278     for ac_exec_ext in '' $ac_executable_extensions; do
9279   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9280     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
9281     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9282     break 2
9283   fi
9284 done
9285   done
9286 IFS=$as_save_IFS
9287 
9288   ;;
9289 esac
9290 fi
9291 LS=$ac_cv_path_LS
9292 if test -n "$LS"; then
9293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
9294 $as_echo "$LS" >&6; }
9295 else
9296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9297 $as_echo "no" >&6; }
9298 fi
9299 
9300 
9301           if test "x$LS" = x; then
9302             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9303           fi
9304         else
9305           # Otherwise we believe it is a complete path. Use it as it is.
9306           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5
9307 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;}
9308           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5
9309 $as_echo_n "checking for LS... " >&6; }
9310           if test ! -x "$tool_specified"; then
9311             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9312 $as_echo "not found" >&6; }
9313             as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5
9314           fi
9315           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9316 $as_echo "$tool_specified" >&6; }
9317         fi
9318       fi
9319     fi
9320 
9321   fi
9322 
9323 
9324 
9325   if test "x$LS" = x; then
9326     as_fn_error $? "Could not find required tool for LS" "$LINENO" 5
9327   fi
9328 
9329 
9330 
9331 
9332 
9333   # Publish this variable in the help.
9334 
9335 
9336   if [ -z "${MKDIR+x}" ]; then
9337     # The variable is not set by user, try to locate tool using the code snippet
9338     for ac_prog in mkdir
9339 do
9340   # Extract the first word of "$ac_prog", so it can be a program name with args.
9341 set dummy $ac_prog; ac_word=$2
9342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9343 $as_echo_n "checking for $ac_word... " >&6; }
9344 if ${ac_cv_path_MKDIR+:} false; then :
9345   $as_echo_n "(cached) " >&6
9346 else
9347   case $MKDIR in
9348   [\\/]* | ?:[\\/]*)
9349   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
9350   ;;
9351   *)
9352   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9353 for as_dir in $PATH
9354 do
9355   IFS=$as_save_IFS
9356   test -z "$as_dir" && as_dir=.
9357     for ac_exec_ext in '' $ac_executable_extensions; do
9358   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9359     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
9360     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9361     break 2
9362   fi
9363 done
9364   done
9365 IFS=$as_save_IFS
9366 
9367   ;;
9368 esac
9369 fi
9370 MKDIR=$ac_cv_path_MKDIR
9371 if test -n "$MKDIR"; then
9372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
9373 $as_echo "$MKDIR" >&6; }
9374 else
9375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9376 $as_echo "no" >&6; }
9377 fi
9378 
9379 
9380   test -n "$MKDIR" && break
9381 done
9382 
9383   else
9384     # The variable is set, but is it from the command line or the environment?
9385 
9386     # Try to remove the string !MKDIR! from our list.
9387     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/}
9388     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9389       # If it failed, the variable was not from the command line. Ignore it,
9390       # but warn the user (except for BASH, which is always set by the calling BASH).
9391       if test "xMKDIR" != xBASH; then
9392         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5
9393 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;}
9394       fi
9395       # Try to locate tool using the code snippet
9396       for ac_prog in mkdir
9397 do
9398   # Extract the first word of "$ac_prog", so it can be a program name with args.
9399 set dummy $ac_prog; ac_word=$2
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9401 $as_echo_n "checking for $ac_word... " >&6; }
9402 if ${ac_cv_path_MKDIR+:} false; then :
9403   $as_echo_n "(cached) " >&6
9404 else
9405   case $MKDIR in
9406   [\\/]* | ?:[\\/]*)
9407   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
9408   ;;
9409   *)
9410   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9411 for as_dir in $PATH
9412 do
9413   IFS=$as_save_IFS
9414   test -z "$as_dir" && as_dir=.
9415     for ac_exec_ext in '' $ac_executable_extensions; do
9416   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9417     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
9418     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9419     break 2
9420   fi
9421 done
9422   done
9423 IFS=$as_save_IFS
9424 
9425   ;;
9426 esac
9427 fi
9428 MKDIR=$ac_cv_path_MKDIR
9429 if test -n "$MKDIR"; then
9430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
9431 $as_echo "$MKDIR" >&6; }
9432 else
9433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9434 $as_echo "no" >&6; }
9435 fi
9436 
9437 
9438   test -n "$MKDIR" && break
9439 done
9440 
9441     else
9442       # If it succeeded, then it was overridden by the user. We will use it
9443       # for the tool.
9444 
9445       # First remove it from the list of overridden variables, so we can test
9446       # for unknown variables in the end.
9447       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9448 
9449       # Check if we try to supply an empty value
9450       if test "x$MKDIR" = x; then
9451         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MKDIR= (no value)" >&5
9452 $as_echo "$as_me: Setting user supplied tool MKDIR= (no value)" >&6;}
9453         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5
9454 $as_echo_n "checking for MKDIR... " >&6; }
9455         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9456 $as_echo "disabled" >&6; }
9457       else
9458         # Check if the provided tool contains a complete path.
9459         tool_specified="$MKDIR"
9460         tool_basename="${tool_specified##*/}"
9461         if test "x$tool_basename" = "x$tool_specified"; then
9462           # A command without a complete path is provided, search $PATH.
9463           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5
9464 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;}
9465           # Extract the first word of "$tool_basename", so it can be a program name with args.
9466 set dummy $tool_basename; ac_word=$2
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9468 $as_echo_n "checking for $ac_word... " >&6; }
9469 if ${ac_cv_path_MKDIR+:} false; then :
9470   $as_echo_n "(cached) " >&6
9471 else
9472   case $MKDIR in
9473   [\\/]* | ?:[\\/]*)
9474   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
9475   ;;
9476   *)
9477   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9478 for as_dir in $PATH
9479 do
9480   IFS=$as_save_IFS
9481   test -z "$as_dir" && as_dir=.
9482     for ac_exec_ext in '' $ac_executable_extensions; do
9483   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9484     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
9485     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9486     break 2
9487   fi
9488 done
9489   done
9490 IFS=$as_save_IFS
9491 
9492   ;;
9493 esac
9494 fi
9495 MKDIR=$ac_cv_path_MKDIR
9496 if test -n "$MKDIR"; then
9497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
9498 $as_echo "$MKDIR" >&6; }
9499 else
9500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9501 $as_echo "no" >&6; }
9502 fi
9503 
9504 
9505           if test "x$MKDIR" = x; then
9506             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9507           fi
9508         else
9509           # Otherwise we believe it is a complete path. Use it as it is.
9510           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5
9511 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;}
9512           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5
9513 $as_echo_n "checking for MKDIR... " >&6; }
9514           if test ! -x "$tool_specified"; then
9515             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9516 $as_echo "not found" >&6; }
9517             as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5
9518           fi
9519           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9520 $as_echo "$tool_specified" >&6; }
9521         fi
9522       fi
9523     fi
9524 
9525   fi
9526 
9527 
9528 
9529   if test "x$MKDIR" = x; then
9530     as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5
9531   fi
9532 
9533 
9534 
9535 
9536 
9537   # Publish this variable in the help.
9538 
9539 
9540   if [ -z "${MKTEMP+x}" ]; then
9541     # The variable is not set by user, try to locate tool using the code snippet
9542     for ac_prog in mktemp
9543 do
9544   # Extract the first word of "$ac_prog", so it can be a program name with args.
9545 set dummy $ac_prog; ac_word=$2
9546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9547 $as_echo_n "checking for $ac_word... " >&6; }
9548 if ${ac_cv_path_MKTEMP+:} false; then :
9549   $as_echo_n "(cached) " >&6
9550 else
9551   case $MKTEMP in
9552   [\\/]* | ?:[\\/]*)
9553   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
9554   ;;
9555   *)
9556   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9557 for as_dir in $PATH
9558 do
9559   IFS=$as_save_IFS
9560   test -z "$as_dir" && as_dir=.
9561     for ac_exec_ext in '' $ac_executable_extensions; do
9562   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9563     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
9564     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9565     break 2
9566   fi
9567 done
9568   done
9569 IFS=$as_save_IFS
9570 
9571   ;;
9572 esac
9573 fi
9574 MKTEMP=$ac_cv_path_MKTEMP
9575 if test -n "$MKTEMP"; then
9576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
9577 $as_echo "$MKTEMP" >&6; }
9578 else
9579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9580 $as_echo "no" >&6; }
9581 fi
9582 
9583 
9584   test -n "$MKTEMP" && break
9585 done
9586 
9587   else
9588     # The variable is set, but is it from the command line or the environment?
9589 
9590     # Try to remove the string !MKTEMP! from our list.
9591     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/}
9592     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9593       # If it failed, the variable was not from the command line. Ignore it,
9594       # but warn the user (except for BASH, which is always set by the calling BASH).
9595       if test "xMKTEMP" != xBASH; then
9596         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5
9597 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;}
9598       fi
9599       # Try to locate tool using the code snippet
9600       for ac_prog in mktemp
9601 do
9602   # Extract the first word of "$ac_prog", so it can be a program name with args.
9603 set dummy $ac_prog; ac_word=$2
9604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9605 $as_echo_n "checking for $ac_word... " >&6; }
9606 if ${ac_cv_path_MKTEMP+:} false; then :
9607   $as_echo_n "(cached) " >&6
9608 else
9609   case $MKTEMP in
9610   [\\/]* | ?:[\\/]*)
9611   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
9612   ;;
9613   *)
9614   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9615 for as_dir in $PATH
9616 do
9617   IFS=$as_save_IFS
9618   test -z "$as_dir" && as_dir=.
9619     for ac_exec_ext in '' $ac_executable_extensions; do
9620   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9621     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
9622     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9623     break 2
9624   fi
9625 done
9626   done
9627 IFS=$as_save_IFS
9628 
9629   ;;
9630 esac
9631 fi
9632 MKTEMP=$ac_cv_path_MKTEMP
9633 if test -n "$MKTEMP"; then
9634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
9635 $as_echo "$MKTEMP" >&6; }
9636 else
9637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9638 $as_echo "no" >&6; }
9639 fi
9640 
9641 
9642   test -n "$MKTEMP" && break
9643 done
9644 
9645     else
9646       # If it succeeded, then it was overridden by the user. We will use it
9647       # for the tool.
9648 
9649       # First remove it from the list of overridden variables, so we can test
9650       # for unknown variables in the end.
9651       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9652 
9653       # Check if we try to supply an empty value
9654       if test "x$MKTEMP" = x; then
9655         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MKTEMP= (no value)" >&5
9656 $as_echo "$as_me: Setting user supplied tool MKTEMP= (no value)" >&6;}
9657         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5
9658 $as_echo_n "checking for MKTEMP... " >&6; }
9659         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9660 $as_echo "disabled" >&6; }
9661       else
9662         # Check if the provided tool contains a complete path.
9663         tool_specified="$MKTEMP"
9664         tool_basename="${tool_specified##*/}"
9665         if test "x$tool_basename" = "x$tool_specified"; then
9666           # A command without a complete path is provided, search $PATH.
9667           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5
9668 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;}
9669           # Extract the first word of "$tool_basename", so it can be a program name with args.
9670 set dummy $tool_basename; ac_word=$2
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9672 $as_echo_n "checking for $ac_word... " >&6; }
9673 if ${ac_cv_path_MKTEMP+:} false; then :
9674   $as_echo_n "(cached) " >&6
9675 else
9676   case $MKTEMP in
9677   [\\/]* | ?:[\\/]*)
9678   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
9679   ;;
9680   *)
9681   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9682 for as_dir in $PATH
9683 do
9684   IFS=$as_save_IFS
9685   test -z "$as_dir" && as_dir=.
9686     for ac_exec_ext in '' $ac_executable_extensions; do
9687   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9688     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
9689     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9690     break 2
9691   fi
9692 done
9693   done
9694 IFS=$as_save_IFS
9695 
9696   ;;
9697 esac
9698 fi
9699 MKTEMP=$ac_cv_path_MKTEMP
9700 if test -n "$MKTEMP"; then
9701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
9702 $as_echo "$MKTEMP" >&6; }
9703 else
9704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9705 $as_echo "no" >&6; }
9706 fi
9707 
9708 
9709           if test "x$MKTEMP" = x; then
9710             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9711           fi
9712         else
9713           # Otherwise we believe it is a complete path. Use it as it is.
9714           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5
9715 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;}
9716           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5
9717 $as_echo_n "checking for MKTEMP... " >&6; }
9718           if test ! -x "$tool_specified"; then
9719             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9720 $as_echo "not found" >&6; }
9721             as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5
9722           fi
9723           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9724 $as_echo "$tool_specified" >&6; }
9725         fi
9726       fi
9727     fi
9728 
9729   fi
9730 
9731 
9732 
9733   if test "x$MKTEMP" = x; then
9734     as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5
9735   fi
9736 
9737 
9738 
9739 
9740 
9741   # Publish this variable in the help.
9742 
9743 
9744   if [ -z "${MV+x}" ]; then
9745     # The variable is not set by user, try to locate tool using the code snippet
9746     for ac_prog in mv
9747 do
9748   # Extract the first word of "$ac_prog", so it can be a program name with args.
9749 set dummy $ac_prog; ac_word=$2
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9751 $as_echo_n "checking for $ac_word... " >&6; }
9752 if ${ac_cv_path_MV+:} false; then :
9753   $as_echo_n "(cached) " >&6
9754 else
9755   case $MV in
9756   [\\/]* | ?:[\\/]*)
9757   ac_cv_path_MV="$MV" # Let the user override the test with a path.
9758   ;;
9759   *)
9760   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9761 for as_dir in $PATH
9762 do
9763   IFS=$as_save_IFS
9764   test -z "$as_dir" && as_dir=.
9765     for ac_exec_ext in '' $ac_executable_extensions; do
9766   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9767     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9768     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9769     break 2
9770   fi
9771 done
9772   done
9773 IFS=$as_save_IFS
9774 
9775   ;;
9776 esac
9777 fi
9778 MV=$ac_cv_path_MV
9779 if test -n "$MV"; then
9780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9781 $as_echo "$MV" >&6; }
9782 else
9783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9784 $as_echo "no" >&6; }
9785 fi
9786 
9787 
9788   test -n "$MV" && break
9789 done
9790 
9791   else
9792     # The variable is set, but is it from the command line or the environment?
9793 
9794     # Try to remove the string !MV! from our list.
9795     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/}
9796     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9797       # If it failed, the variable was not from the command line. Ignore it,
9798       # but warn the user (except for BASH, which is always set by the calling BASH).
9799       if test "xMV" != xBASH; then
9800         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5
9801 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;}
9802       fi
9803       # Try to locate tool using the code snippet
9804       for ac_prog in mv
9805 do
9806   # Extract the first word of "$ac_prog", so it can be a program name with args.
9807 set dummy $ac_prog; ac_word=$2
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9809 $as_echo_n "checking for $ac_word... " >&6; }
9810 if ${ac_cv_path_MV+:} false; then :
9811   $as_echo_n "(cached) " >&6
9812 else
9813   case $MV in
9814   [\\/]* | ?:[\\/]*)
9815   ac_cv_path_MV="$MV" # Let the user override the test with a path.
9816   ;;
9817   *)
9818   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9819 for as_dir in $PATH
9820 do
9821   IFS=$as_save_IFS
9822   test -z "$as_dir" && as_dir=.
9823     for ac_exec_ext in '' $ac_executable_extensions; do
9824   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9825     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9826     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9827     break 2
9828   fi
9829 done
9830   done
9831 IFS=$as_save_IFS
9832 
9833   ;;
9834 esac
9835 fi
9836 MV=$ac_cv_path_MV
9837 if test -n "$MV"; then
9838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9839 $as_echo "$MV" >&6; }
9840 else
9841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9842 $as_echo "no" >&6; }
9843 fi
9844 
9845 
9846   test -n "$MV" && break
9847 done
9848 
9849     else
9850       # If it succeeded, then it was overridden by the user. We will use it
9851       # for the tool.
9852 
9853       # First remove it from the list of overridden variables, so we can test
9854       # for unknown variables in the end.
9855       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9856 
9857       # Check if we try to supply an empty value
9858       if test "x$MV" = x; then
9859         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MV= (no value)" >&5
9860 $as_echo "$as_me: Setting user supplied tool MV= (no value)" >&6;}
9861         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5
9862 $as_echo_n "checking for MV... " >&6; }
9863         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9864 $as_echo "disabled" >&6; }
9865       else
9866         # Check if the provided tool contains a complete path.
9867         tool_specified="$MV"
9868         tool_basename="${tool_specified##*/}"
9869         if test "x$tool_basename" = "x$tool_specified"; then
9870           # A command without a complete path is provided, search $PATH.
9871           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5
9872 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;}
9873           # Extract the first word of "$tool_basename", so it can be a program name with args.
9874 set dummy $tool_basename; ac_word=$2
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9876 $as_echo_n "checking for $ac_word... " >&6; }
9877 if ${ac_cv_path_MV+:} false; then :
9878   $as_echo_n "(cached) " >&6
9879 else
9880   case $MV in
9881   [\\/]* | ?:[\\/]*)
9882   ac_cv_path_MV="$MV" # Let the user override the test with a path.
9883   ;;
9884   *)
9885   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9886 for as_dir in $PATH
9887 do
9888   IFS=$as_save_IFS
9889   test -z "$as_dir" && as_dir=.
9890     for ac_exec_ext in '' $ac_executable_extensions; do
9891   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9892     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9893     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9894     break 2
9895   fi
9896 done
9897   done
9898 IFS=$as_save_IFS
9899 
9900   ;;
9901 esac
9902 fi
9903 MV=$ac_cv_path_MV
9904 if test -n "$MV"; then
9905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9906 $as_echo "$MV" >&6; }
9907 else
9908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9909 $as_echo "no" >&6; }
9910 fi
9911 
9912 
9913           if test "x$MV" = x; then
9914             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9915           fi
9916         else
9917           # Otherwise we believe it is a complete path. Use it as it is.
9918           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5
9919 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;}
9920           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5
9921 $as_echo_n "checking for MV... " >&6; }
9922           if test ! -x "$tool_specified"; then
9923             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9924 $as_echo "not found" >&6; }
9925             as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5
9926           fi
9927           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9928 $as_echo "$tool_specified" >&6; }
9929         fi
9930       fi
9931     fi
9932 
9933   fi
9934 
9935 
9936 
9937   if test "x$MV" = x; then
9938     as_fn_error $? "Could not find required tool for MV" "$LINENO" 5
9939   fi
9940 
9941 
9942 
9943 
9944 
9945   # Publish this variable in the help.
9946 
9947 
9948   if [ -z "${NAWK+x}" ]; then
9949     # The variable is not set by user, try to locate tool using the code snippet
9950     for ac_prog in nawk gawk awk
9951 do
9952   # Extract the first word of "$ac_prog", so it can be a program name with args.
9953 set dummy $ac_prog; ac_word=$2
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9955 $as_echo_n "checking for $ac_word... " >&6; }
9956 if ${ac_cv_path_NAWK+:} false; then :
9957   $as_echo_n "(cached) " >&6
9958 else
9959   case $NAWK in
9960   [\\/]* | ?:[\\/]*)
9961   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
9962   ;;
9963   *)
9964   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9965 for as_dir in $PATH
9966 do
9967   IFS=$as_save_IFS
9968   test -z "$as_dir" && as_dir=.
9969     for ac_exec_ext in '' $ac_executable_extensions; do
9970   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9971     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
9972     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9973     break 2
9974   fi
9975 done
9976   done
9977 IFS=$as_save_IFS
9978 
9979   ;;
9980 esac
9981 fi
9982 NAWK=$ac_cv_path_NAWK
9983 if test -n "$NAWK"; then
9984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
9985 $as_echo "$NAWK" >&6; }
9986 else
9987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9988 $as_echo "no" >&6; }
9989 fi
9990 
9991 
9992   test -n "$NAWK" && break
9993 done
9994 
9995   else
9996     # The variable is set, but is it from the command line or the environment?
9997 
9998     # Try to remove the string !NAWK! from our list.
9999     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/}
10000     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10001       # If it failed, the variable was not from the command line. Ignore it,
10002       # but warn the user (except for BASH, which is always set by the calling BASH).
10003       if test "xNAWK" != xBASH; then
10004         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5
10005 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;}
10006       fi
10007       # Try to locate tool using the code snippet
10008       for ac_prog in nawk gawk awk
10009 do
10010   # Extract the first word of "$ac_prog", so it can be a program name with args.
10011 set dummy $ac_prog; ac_word=$2
10012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10013 $as_echo_n "checking for $ac_word... " >&6; }
10014 if ${ac_cv_path_NAWK+:} false; then :
10015   $as_echo_n "(cached) " >&6
10016 else
10017   case $NAWK in
10018   [\\/]* | ?:[\\/]*)
10019   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
10020   ;;
10021   *)
10022   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10023 for as_dir in $PATH
10024 do
10025   IFS=$as_save_IFS
10026   test -z "$as_dir" && as_dir=.
10027     for ac_exec_ext in '' $ac_executable_extensions; do
10028   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10029     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
10030     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10031     break 2
10032   fi
10033 done
10034   done
10035 IFS=$as_save_IFS
10036 
10037   ;;
10038 esac
10039 fi
10040 NAWK=$ac_cv_path_NAWK
10041 if test -n "$NAWK"; then
10042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
10043 $as_echo "$NAWK" >&6; }
10044 else
10045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10046 $as_echo "no" >&6; }
10047 fi
10048 
10049 
10050   test -n "$NAWK" && break
10051 done
10052 
10053     else
10054       # If it succeeded, then it was overridden by the user. We will use it
10055       # for the tool.
10056 
10057       # First remove it from the list of overridden variables, so we can test
10058       # for unknown variables in the end.
10059       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10060 
10061       # Check if we try to supply an empty value
10062       if test "x$NAWK" = x; then
10063         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NAWK= (no value)" >&5
10064 $as_echo "$as_me: Setting user supplied tool NAWK= (no value)" >&6;}
10065         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5
10066 $as_echo_n "checking for NAWK... " >&6; }
10067         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10068 $as_echo "disabled" >&6; }
10069       else
10070         # Check if the provided tool contains a complete path.
10071         tool_specified="$NAWK"
10072         tool_basename="${tool_specified##*/}"
10073         if test "x$tool_basename" = "x$tool_specified"; then
10074           # A command without a complete path is provided, search $PATH.
10075           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5
10076 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;}
10077           # Extract the first word of "$tool_basename", so it can be a program name with args.
10078 set dummy $tool_basename; ac_word=$2
10079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10080 $as_echo_n "checking for $ac_word... " >&6; }
10081 if ${ac_cv_path_NAWK+:} false; then :
10082   $as_echo_n "(cached) " >&6
10083 else
10084   case $NAWK in
10085   [\\/]* | ?:[\\/]*)
10086   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
10087   ;;
10088   *)
10089   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10090 for as_dir in $PATH
10091 do
10092   IFS=$as_save_IFS
10093   test -z "$as_dir" && as_dir=.
10094     for ac_exec_ext in '' $ac_executable_extensions; do
10095   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10096     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
10097     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10098     break 2
10099   fi
10100 done
10101   done
10102 IFS=$as_save_IFS
10103 
10104   ;;
10105 esac
10106 fi
10107 NAWK=$ac_cv_path_NAWK
10108 if test -n "$NAWK"; then
10109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
10110 $as_echo "$NAWK" >&6; }
10111 else
10112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10113 $as_echo "no" >&6; }
10114 fi
10115 
10116 
10117           if test "x$NAWK" = x; then
10118             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10119           fi
10120         else
10121           # Otherwise we believe it is a complete path. Use it as it is.
10122           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5
10123 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;}
10124           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5
10125 $as_echo_n "checking for NAWK... " >&6; }
10126           if test ! -x "$tool_specified"; then
10127             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10128 $as_echo "not found" >&6; }
10129             as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5
10130           fi
10131           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10132 $as_echo "$tool_specified" >&6; }
10133         fi
10134       fi
10135     fi
10136 
10137   fi
10138 
10139 
10140 
10141   if test "x$NAWK" = x; then
10142     as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5
10143   fi
10144 
10145 
10146 
10147 
10148 
10149   # Publish this variable in the help.
10150 
10151 
10152   if [ -z "${PRINTF+x}" ]; then
10153     # The variable is not set by user, try to locate tool using the code snippet
10154     for ac_prog in printf
10155 do
10156   # Extract the first word of "$ac_prog", so it can be a program name with args.
10157 set dummy $ac_prog; ac_word=$2
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10159 $as_echo_n "checking for $ac_word... " >&6; }
10160 if ${ac_cv_path_PRINTF+:} false; then :
10161   $as_echo_n "(cached) " >&6
10162 else
10163   case $PRINTF in
10164   [\\/]* | ?:[\\/]*)
10165   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
10166   ;;
10167   *)
10168   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10169 for as_dir in $PATH
10170 do
10171   IFS=$as_save_IFS
10172   test -z "$as_dir" && as_dir=.
10173     for ac_exec_ext in '' $ac_executable_extensions; do
10174   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10175     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
10176     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10177     break 2
10178   fi
10179 done
10180   done
10181 IFS=$as_save_IFS
10182 
10183   ;;
10184 esac
10185 fi
10186 PRINTF=$ac_cv_path_PRINTF
10187 if test -n "$PRINTF"; then
10188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
10189 $as_echo "$PRINTF" >&6; }
10190 else
10191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10192 $as_echo "no" >&6; }
10193 fi
10194 
10195 
10196   test -n "$PRINTF" && break
10197 done
10198 
10199   else
10200     # The variable is set, but is it from the command line or the environment?
10201 
10202     # Try to remove the string !PRINTF! from our list.
10203     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/}
10204     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10205       # If it failed, the variable was not from the command line. Ignore it,
10206       # but warn the user (except for BASH, which is always set by the calling BASH).
10207       if test "xPRINTF" != xBASH; then
10208         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5
10209 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;}
10210       fi
10211       # Try to locate tool using the code snippet
10212       for ac_prog in printf
10213 do
10214   # Extract the first word of "$ac_prog", so it can be a program name with args.
10215 set dummy $ac_prog; ac_word=$2
10216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10217 $as_echo_n "checking for $ac_word... " >&6; }
10218 if ${ac_cv_path_PRINTF+:} false; then :
10219   $as_echo_n "(cached) " >&6
10220 else
10221   case $PRINTF in
10222   [\\/]* | ?:[\\/]*)
10223   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
10224   ;;
10225   *)
10226   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10227 for as_dir in $PATH
10228 do
10229   IFS=$as_save_IFS
10230   test -z "$as_dir" && as_dir=.
10231     for ac_exec_ext in '' $ac_executable_extensions; do
10232   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10233     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
10234     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10235     break 2
10236   fi
10237 done
10238   done
10239 IFS=$as_save_IFS
10240 
10241   ;;
10242 esac
10243 fi
10244 PRINTF=$ac_cv_path_PRINTF
10245 if test -n "$PRINTF"; then
10246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
10247 $as_echo "$PRINTF" >&6; }
10248 else
10249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10250 $as_echo "no" >&6; }
10251 fi
10252 
10253 
10254   test -n "$PRINTF" && break
10255 done
10256 
10257     else
10258       # If it succeeded, then it was overridden by the user. We will use it
10259       # for the tool.
10260 
10261       # First remove it from the list of overridden variables, so we can test
10262       # for unknown variables in the end.
10263       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10264 
10265       # Check if we try to supply an empty value
10266       if test "x$PRINTF" = x; then
10267         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PRINTF= (no value)" >&5
10268 $as_echo "$as_me: Setting user supplied tool PRINTF= (no value)" >&6;}
10269         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5
10270 $as_echo_n "checking for PRINTF... " >&6; }
10271         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10272 $as_echo "disabled" >&6; }
10273       else
10274         # Check if the provided tool contains a complete path.
10275         tool_specified="$PRINTF"
10276         tool_basename="${tool_specified##*/}"
10277         if test "x$tool_basename" = "x$tool_specified"; then
10278           # A command without a complete path is provided, search $PATH.
10279           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5
10280 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;}
10281           # Extract the first word of "$tool_basename", so it can be a program name with args.
10282 set dummy $tool_basename; ac_word=$2
10283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10284 $as_echo_n "checking for $ac_word... " >&6; }
10285 if ${ac_cv_path_PRINTF+:} false; then :
10286   $as_echo_n "(cached) " >&6
10287 else
10288   case $PRINTF in
10289   [\\/]* | ?:[\\/]*)
10290   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
10291   ;;
10292   *)
10293   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10294 for as_dir in $PATH
10295 do
10296   IFS=$as_save_IFS
10297   test -z "$as_dir" && as_dir=.
10298     for ac_exec_ext in '' $ac_executable_extensions; do
10299   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10300     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
10301     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10302     break 2
10303   fi
10304 done
10305   done
10306 IFS=$as_save_IFS
10307 
10308   ;;
10309 esac
10310 fi
10311 PRINTF=$ac_cv_path_PRINTF
10312 if test -n "$PRINTF"; then
10313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
10314 $as_echo "$PRINTF" >&6; }
10315 else
10316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10317 $as_echo "no" >&6; }
10318 fi
10319 
10320 
10321           if test "x$PRINTF" = x; then
10322             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10323           fi
10324         else
10325           # Otherwise we believe it is a complete path. Use it as it is.
10326           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5
10327 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;}
10328           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5
10329 $as_echo_n "checking for PRINTF... " >&6; }
10330           if test ! -x "$tool_specified"; then
10331             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10332 $as_echo "not found" >&6; }
10333             as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5
10334           fi
10335           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10336 $as_echo "$tool_specified" >&6; }
10337         fi
10338       fi
10339     fi
10340 
10341   fi
10342 
10343 
10344 
10345   if test "x$PRINTF" = x; then
10346     as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5
10347   fi
10348 
10349 
10350 
10351 
10352 
10353   # Publish this variable in the help.
10354 
10355 
10356   if [ -z "${RM+x}" ]; then
10357     # The variable is not set by user, try to locate tool using the code snippet
10358     for ac_prog in rm
10359 do
10360   # Extract the first word of "$ac_prog", so it can be a program name with args.
10361 set dummy $ac_prog; ac_word=$2
10362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10363 $as_echo_n "checking for $ac_word... " >&6; }
10364 if ${ac_cv_path_RM+:} false; then :
10365   $as_echo_n "(cached) " >&6
10366 else
10367   case $RM in
10368   [\\/]* | ?:[\\/]*)
10369   ac_cv_path_RM="$RM" # Let the user override the test with a path.
10370   ;;
10371   *)
10372   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10373 for as_dir in $PATH
10374 do
10375   IFS=$as_save_IFS
10376   test -z "$as_dir" && as_dir=.
10377     for ac_exec_ext in '' $ac_executable_extensions; do
10378   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10379     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
10380     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10381     break 2
10382   fi
10383 done
10384   done
10385 IFS=$as_save_IFS
10386 
10387   ;;
10388 esac
10389 fi
10390 RM=$ac_cv_path_RM
10391 if test -n "$RM"; then
10392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
10393 $as_echo "$RM" >&6; }
10394 else
10395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10396 $as_echo "no" >&6; }
10397 fi
10398 
10399 
10400   test -n "$RM" && break
10401 done
10402 
10403   else
10404     # The variable is set, but is it from the command line or the environment?
10405 
10406     # Try to remove the string !RM! from our list.
10407     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/}
10408     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10409       # If it failed, the variable was not from the command line. Ignore it,
10410       # but warn the user (except for BASH, which is always set by the calling BASH).
10411       if test "xRM" != xBASH; then
10412         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5
10413 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;}
10414       fi
10415       # Try to locate tool using the code snippet
10416       for ac_prog in rm
10417 do
10418   # Extract the first word of "$ac_prog", so it can be a program name with args.
10419 set dummy $ac_prog; ac_word=$2
10420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10421 $as_echo_n "checking for $ac_word... " >&6; }
10422 if ${ac_cv_path_RM+:} false; then :
10423   $as_echo_n "(cached) " >&6
10424 else
10425   case $RM in
10426   [\\/]* | ?:[\\/]*)
10427   ac_cv_path_RM="$RM" # Let the user override the test with a path.
10428   ;;
10429   *)
10430   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10431 for as_dir in $PATH
10432 do
10433   IFS=$as_save_IFS
10434   test -z "$as_dir" && as_dir=.
10435     for ac_exec_ext in '' $ac_executable_extensions; do
10436   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10437     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
10438     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10439     break 2
10440   fi
10441 done
10442   done
10443 IFS=$as_save_IFS
10444 
10445   ;;
10446 esac
10447 fi
10448 RM=$ac_cv_path_RM
10449 if test -n "$RM"; then
10450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
10451 $as_echo "$RM" >&6; }
10452 else
10453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10454 $as_echo "no" >&6; }
10455 fi
10456 
10457 
10458   test -n "$RM" && break
10459 done
10460 
10461     else
10462       # If it succeeded, then it was overridden by the user. We will use it
10463       # for the tool.
10464 
10465       # First remove it from the list of overridden variables, so we can test
10466       # for unknown variables in the end.
10467       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10468 
10469       # Check if we try to supply an empty value
10470       if test "x$RM" = x; then
10471         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool RM= (no value)" >&5
10472 $as_echo "$as_me: Setting user supplied tool RM= (no value)" >&6;}
10473         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5
10474 $as_echo_n "checking for RM... " >&6; }
10475         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10476 $as_echo "disabled" >&6; }
10477       else
10478         # Check if the provided tool contains a complete path.
10479         tool_specified="$RM"
10480         tool_basename="${tool_specified##*/}"
10481         if test "x$tool_basename" = "x$tool_specified"; then
10482           # A command without a complete path is provided, search $PATH.
10483           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5
10484 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;}
10485           # Extract the first word of "$tool_basename", so it can be a program name with args.
10486 set dummy $tool_basename; ac_word=$2
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10488 $as_echo_n "checking for $ac_word... " >&6; }
10489 if ${ac_cv_path_RM+:} false; then :
10490   $as_echo_n "(cached) " >&6
10491 else
10492   case $RM in
10493   [\\/]* | ?:[\\/]*)
10494   ac_cv_path_RM="$RM" # Let the user override the test with a path.
10495   ;;
10496   *)
10497   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10498 for as_dir in $PATH
10499 do
10500   IFS=$as_save_IFS
10501   test -z "$as_dir" && as_dir=.
10502     for ac_exec_ext in '' $ac_executable_extensions; do
10503   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10504     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
10505     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10506     break 2
10507   fi
10508 done
10509   done
10510 IFS=$as_save_IFS
10511 
10512   ;;
10513 esac
10514 fi
10515 RM=$ac_cv_path_RM
10516 if test -n "$RM"; then
10517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
10518 $as_echo "$RM" >&6; }
10519 else
10520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10521 $as_echo "no" >&6; }
10522 fi
10523 
10524 
10525           if test "x$RM" = x; then
10526             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10527           fi
10528         else
10529           # Otherwise we believe it is a complete path. Use it as it is.
10530           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5
10531 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;}
10532           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5
10533 $as_echo_n "checking for RM... " >&6; }
10534           if test ! -x "$tool_specified"; then
10535             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10536 $as_echo "not found" >&6; }
10537             as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5
10538           fi
10539           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10540 $as_echo "$tool_specified" >&6; }
10541         fi
10542       fi
10543     fi
10544 
10545   fi
10546 
10547 
10548 
10549   if test "x$RM" = x; then
10550     as_fn_error $? "Could not find required tool for RM" "$LINENO" 5
10551   fi
10552 
10553 
10554 
10555 
10556 
10557   # Publish this variable in the help.
10558 
10559 
10560   if [ -z "${RMDIR+x}" ]; then
10561     # The variable is not set by user, try to locate tool using the code snippet
10562     for ac_prog in rmdir
10563 do
10564   # Extract the first word of "$ac_prog", so it can be a program name with args.
10565 set dummy $ac_prog; ac_word=$2
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10567 $as_echo_n "checking for $ac_word... " >&6; }
10568 if ${ac_cv_path_RMDIR+:} false; then :
10569   $as_echo_n "(cached) " >&6
10570 else
10571   case $RMDIR in
10572   [\\/]* | ?:[\\/]*)
10573   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
10574   ;;
10575   *)
10576   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10577 for as_dir in $PATH
10578 do
10579   IFS=$as_save_IFS
10580   test -z "$as_dir" && as_dir=.
10581     for ac_exec_ext in '' $ac_executable_extensions; do
10582   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10583     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
10584     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10585     break 2
10586   fi
10587 done
10588   done
10589 IFS=$as_save_IFS
10590 
10591   ;;
10592 esac
10593 fi
10594 RMDIR=$ac_cv_path_RMDIR
10595 if test -n "$RMDIR"; then
10596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
10597 $as_echo "$RMDIR" >&6; }
10598 else
10599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10600 $as_echo "no" >&6; }
10601 fi
10602 
10603 
10604   test -n "$RMDIR" && break
10605 done
10606 
10607   else
10608     # The variable is set, but is it from the command line or the environment?
10609 
10610     # Try to remove the string !RMDIR! from our list.
10611     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RMDIR!/}
10612     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10613       # If it failed, the variable was not from the command line. Ignore it,
10614       # but warn the user (except for BASH, which is always set by the calling BASH).
10615       if test "xRMDIR" != xBASH; then
10616         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RMDIR from the environment. Use command line variables instead." >&5
10617 $as_echo "$as_me: WARNING: Ignoring value of RMDIR from the environment. Use command line variables instead." >&2;}
10618       fi
10619       # Try to locate tool using the code snippet
10620       for ac_prog in rmdir
10621 do
10622   # Extract the first word of "$ac_prog", so it can be a program name with args.
10623 set dummy $ac_prog; ac_word=$2
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10625 $as_echo_n "checking for $ac_word... " >&6; }
10626 if ${ac_cv_path_RMDIR+:} false; then :
10627   $as_echo_n "(cached) " >&6
10628 else
10629   case $RMDIR in
10630   [\\/]* | ?:[\\/]*)
10631   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
10632   ;;
10633   *)
10634   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10635 for as_dir in $PATH
10636 do
10637   IFS=$as_save_IFS
10638   test -z "$as_dir" && as_dir=.
10639     for ac_exec_ext in '' $ac_executable_extensions; do
10640   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10641     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
10642     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10643     break 2
10644   fi
10645 done
10646   done
10647 IFS=$as_save_IFS
10648 
10649   ;;
10650 esac
10651 fi
10652 RMDIR=$ac_cv_path_RMDIR
10653 if test -n "$RMDIR"; then
10654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
10655 $as_echo "$RMDIR" >&6; }
10656 else
10657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10658 $as_echo "no" >&6; }
10659 fi
10660 
10661 
10662   test -n "$RMDIR" && break
10663 done
10664 
10665     else
10666       # If it succeeded, then it was overridden by the user. We will use it
10667       # for the tool.
10668 
10669       # First remove it from the list of overridden variables, so we can test
10670       # for unknown variables in the end.
10671       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10672 
10673       # Check if we try to supply an empty value
10674       if test "x$RMDIR" = x; then
10675         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool RMDIR= (no value)" >&5
10676 $as_echo "$as_me: Setting user supplied tool RMDIR= (no value)" >&6;}
10677         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RMDIR" >&5
10678 $as_echo_n "checking for RMDIR... " >&6; }
10679         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10680 $as_echo "disabled" >&6; }
10681       else
10682         # Check if the provided tool contains a complete path.
10683         tool_specified="$RMDIR"
10684         tool_basename="${tool_specified##*/}"
10685         if test "x$tool_basename" = "x$tool_specified"; then
10686           # A command without a complete path is provided, search $PATH.
10687           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RMDIR=$tool_basename" >&5
10688 $as_echo "$as_me: Will search for user supplied tool RMDIR=$tool_basename" >&6;}
10689           # Extract the first word of "$tool_basename", so it can be a program name with args.
10690 set dummy $tool_basename; ac_word=$2
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10692 $as_echo_n "checking for $ac_word... " >&6; }
10693 if ${ac_cv_path_RMDIR+:} false; then :
10694   $as_echo_n "(cached) " >&6
10695 else
10696   case $RMDIR in
10697   [\\/]* | ?:[\\/]*)
10698   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
10699   ;;
10700   *)
10701   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10702 for as_dir in $PATH
10703 do
10704   IFS=$as_save_IFS
10705   test -z "$as_dir" && as_dir=.
10706     for ac_exec_ext in '' $ac_executable_extensions; do
10707   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10708     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
10709     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10710     break 2
10711   fi
10712 done
10713   done
10714 IFS=$as_save_IFS
10715 
10716   ;;
10717 esac
10718 fi
10719 RMDIR=$ac_cv_path_RMDIR
10720 if test -n "$RMDIR"; then
10721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
10722 $as_echo "$RMDIR" >&6; }
10723 else
10724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10725 $as_echo "no" >&6; }
10726 fi
10727 
10728 
10729           if test "x$RMDIR" = x; then
10730             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10731           fi
10732         else
10733           # Otherwise we believe it is a complete path. Use it as it is.
10734           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RMDIR=$tool_specified" >&5
10735 $as_echo "$as_me: Will use user supplied tool RMDIR=$tool_specified" >&6;}
10736           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RMDIR" >&5
10737 $as_echo_n "checking for RMDIR... " >&6; }
10738           if test ! -x "$tool_specified"; then
10739             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10740 $as_echo "not found" >&6; }
10741             as_fn_error $? "User supplied tool RMDIR=$tool_specified does not exist or is not executable" "$LINENO" 5
10742           fi
10743           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10744 $as_echo "$tool_specified" >&6; }
10745         fi
10746       fi
10747     fi
10748 
10749   fi
10750 
10751 
10752 
10753   if test "x$RMDIR" = x; then
10754     as_fn_error $? "Could not find required tool for RMDIR" "$LINENO" 5
10755   fi
10756 
10757 
10758 
10759 
10760 
10761   # Publish this variable in the help.
10762 
10763 
10764   if [ -z "${SH+x}" ]; then
10765     # The variable is not set by user, try to locate tool using the code snippet
10766     for ac_prog in sh
10767 do
10768   # Extract the first word of "$ac_prog", so it can be a program name with args.
10769 set dummy $ac_prog; ac_word=$2
10770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10771 $as_echo_n "checking for $ac_word... " >&6; }
10772 if ${ac_cv_path_SH+:} false; then :
10773   $as_echo_n "(cached) " >&6
10774 else
10775   case $SH in
10776   [\\/]* | ?:[\\/]*)
10777   ac_cv_path_SH="$SH" # Let the user override the test with a path.
10778   ;;
10779   *)
10780   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10781 for as_dir in $PATH
10782 do
10783   IFS=$as_save_IFS
10784   test -z "$as_dir" && as_dir=.
10785     for ac_exec_ext in '' $ac_executable_extensions; do
10786   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10787     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
10788     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10789     break 2
10790   fi
10791 done
10792   done
10793 IFS=$as_save_IFS
10794 
10795   ;;
10796 esac
10797 fi
10798 SH=$ac_cv_path_SH
10799 if test -n "$SH"; then
10800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
10801 $as_echo "$SH" >&6; }
10802 else
10803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10804 $as_echo "no" >&6; }
10805 fi
10806 
10807 
10808   test -n "$SH" && break
10809 done
10810 
10811   else
10812     # The variable is set, but is it from the command line or the environment?
10813 
10814     # Try to remove the string !SH! from our list.
10815     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/}
10816     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10817       # If it failed, the variable was not from the command line. Ignore it,
10818       # but warn the user (except for BASH, which is always set by the calling BASH).
10819       if test "xSH" != xBASH; then
10820         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5
10821 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;}
10822       fi
10823       # Try to locate tool using the code snippet
10824       for ac_prog in sh
10825 do
10826   # Extract the first word of "$ac_prog", so it can be a program name with args.
10827 set dummy $ac_prog; ac_word=$2
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10829 $as_echo_n "checking for $ac_word... " >&6; }
10830 if ${ac_cv_path_SH+:} false; then :
10831   $as_echo_n "(cached) " >&6
10832 else
10833   case $SH in
10834   [\\/]* | ?:[\\/]*)
10835   ac_cv_path_SH="$SH" # Let the user override the test with a path.
10836   ;;
10837   *)
10838   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10839 for as_dir in $PATH
10840 do
10841   IFS=$as_save_IFS
10842   test -z "$as_dir" && as_dir=.
10843     for ac_exec_ext in '' $ac_executable_extensions; do
10844   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10845     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
10846     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10847     break 2
10848   fi
10849 done
10850   done
10851 IFS=$as_save_IFS
10852 
10853   ;;
10854 esac
10855 fi
10856 SH=$ac_cv_path_SH
10857 if test -n "$SH"; then
10858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
10859 $as_echo "$SH" >&6; }
10860 else
10861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10862 $as_echo "no" >&6; }
10863 fi
10864 
10865 
10866   test -n "$SH" && break
10867 done
10868 
10869     else
10870       # If it succeeded, then it was overridden by the user. We will use it
10871       # for the tool.
10872 
10873       # First remove it from the list of overridden variables, so we can test
10874       # for unknown variables in the end.
10875       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10876 
10877       # Check if we try to supply an empty value
10878       if test "x$SH" = x; then
10879         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SH= (no value)" >&5
10880 $as_echo "$as_me: Setting user supplied tool SH= (no value)" >&6;}
10881         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5
10882 $as_echo_n "checking for SH... " >&6; }
10883         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10884 $as_echo "disabled" >&6; }
10885       else
10886         # Check if the provided tool contains a complete path.
10887         tool_specified="$SH"
10888         tool_basename="${tool_specified##*/}"
10889         if test "x$tool_basename" = "x$tool_specified"; then
10890           # A command without a complete path is provided, search $PATH.
10891           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5
10892 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;}
10893           # Extract the first word of "$tool_basename", so it can be a program name with args.
10894 set dummy $tool_basename; ac_word=$2
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10896 $as_echo_n "checking for $ac_word... " >&6; }
10897 if ${ac_cv_path_SH+:} false; then :
10898   $as_echo_n "(cached) " >&6
10899 else
10900   case $SH in
10901   [\\/]* | ?:[\\/]*)
10902   ac_cv_path_SH="$SH" # Let the user override the test with a path.
10903   ;;
10904   *)
10905   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10906 for as_dir in $PATH
10907 do
10908   IFS=$as_save_IFS
10909   test -z "$as_dir" && as_dir=.
10910     for ac_exec_ext in '' $ac_executable_extensions; do
10911   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10912     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
10913     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10914     break 2
10915   fi
10916 done
10917   done
10918 IFS=$as_save_IFS
10919 
10920   ;;
10921 esac
10922 fi
10923 SH=$ac_cv_path_SH
10924 if test -n "$SH"; then
10925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
10926 $as_echo "$SH" >&6; }
10927 else
10928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10929 $as_echo "no" >&6; }
10930 fi
10931 
10932 
10933           if test "x$SH" = x; then
10934             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10935           fi
10936         else
10937           # Otherwise we believe it is a complete path. Use it as it is.
10938           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5
10939 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;}
10940           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5
10941 $as_echo_n "checking for SH... " >&6; }
10942           if test ! -x "$tool_specified"; then
10943             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10944 $as_echo "not found" >&6; }
10945             as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5
10946           fi
10947           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10948 $as_echo "$tool_specified" >&6; }
10949         fi
10950       fi
10951     fi
10952 
10953   fi
10954 
10955 
10956 
10957   if test "x$SH" = x; then
10958     as_fn_error $? "Could not find required tool for SH" "$LINENO" 5
10959   fi
10960 
10961 
10962 
10963 
10964 
10965   # Publish this variable in the help.
10966 
10967 
10968   if [ -z "${SORT+x}" ]; then
10969     # The variable is not set by user, try to locate tool using the code snippet
10970     for ac_prog in sort
10971 do
10972   # Extract the first word of "$ac_prog", so it can be a program name with args.
10973 set dummy $ac_prog; ac_word=$2
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10975 $as_echo_n "checking for $ac_word... " >&6; }
10976 if ${ac_cv_path_SORT+:} false; then :
10977   $as_echo_n "(cached) " >&6
10978 else
10979   case $SORT in
10980   [\\/]* | ?:[\\/]*)
10981   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
10982   ;;
10983   *)
10984   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10985 for as_dir in $PATH
10986 do
10987   IFS=$as_save_IFS
10988   test -z "$as_dir" && as_dir=.
10989     for ac_exec_ext in '' $ac_executable_extensions; do
10990   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10991     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
10992     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10993     break 2
10994   fi
10995 done
10996   done
10997 IFS=$as_save_IFS
10998 
10999   ;;
11000 esac
11001 fi
11002 SORT=$ac_cv_path_SORT
11003 if test -n "$SORT"; then
11004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
11005 $as_echo "$SORT" >&6; }
11006 else
11007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11008 $as_echo "no" >&6; }
11009 fi
11010 
11011 
11012   test -n "$SORT" && break
11013 done
11014 
11015   else
11016     # The variable is set, but is it from the command line or the environment?
11017 
11018     # Try to remove the string !SORT! from our list.
11019     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/}
11020     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11021       # If it failed, the variable was not from the command line. Ignore it,
11022       # but warn the user (except for BASH, which is always set by the calling BASH).
11023       if test "xSORT" != xBASH; then
11024         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5
11025 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;}
11026       fi
11027       # Try to locate tool using the code snippet
11028       for ac_prog in sort
11029 do
11030   # Extract the first word of "$ac_prog", so it can be a program name with args.
11031 set dummy $ac_prog; ac_word=$2
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11033 $as_echo_n "checking for $ac_word... " >&6; }
11034 if ${ac_cv_path_SORT+:} false; then :
11035   $as_echo_n "(cached) " >&6
11036 else
11037   case $SORT in
11038   [\\/]* | ?:[\\/]*)
11039   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
11040   ;;
11041   *)
11042   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11043 for as_dir in $PATH
11044 do
11045   IFS=$as_save_IFS
11046   test -z "$as_dir" && as_dir=.
11047     for ac_exec_ext in '' $ac_executable_extensions; do
11048   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11049     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
11050     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11051     break 2
11052   fi
11053 done
11054   done
11055 IFS=$as_save_IFS
11056 
11057   ;;
11058 esac
11059 fi
11060 SORT=$ac_cv_path_SORT
11061 if test -n "$SORT"; then
11062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
11063 $as_echo "$SORT" >&6; }
11064 else
11065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11066 $as_echo "no" >&6; }
11067 fi
11068 
11069 
11070   test -n "$SORT" && break
11071 done
11072 
11073     else
11074       # If it succeeded, then it was overridden by the user. We will use it
11075       # for the tool.
11076 
11077       # First remove it from the list of overridden variables, so we can test
11078       # for unknown variables in the end.
11079       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11080 
11081       # Check if we try to supply an empty value
11082       if test "x$SORT" = x; then
11083         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SORT= (no value)" >&5
11084 $as_echo "$as_me: Setting user supplied tool SORT= (no value)" >&6;}
11085         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5
11086 $as_echo_n "checking for SORT... " >&6; }
11087         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11088 $as_echo "disabled" >&6; }
11089       else
11090         # Check if the provided tool contains a complete path.
11091         tool_specified="$SORT"
11092         tool_basename="${tool_specified##*/}"
11093         if test "x$tool_basename" = "x$tool_specified"; then
11094           # A command without a complete path is provided, search $PATH.
11095           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5
11096 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;}
11097           # Extract the first word of "$tool_basename", so it can be a program name with args.
11098 set dummy $tool_basename; ac_word=$2
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11100 $as_echo_n "checking for $ac_word... " >&6; }
11101 if ${ac_cv_path_SORT+:} false; then :
11102   $as_echo_n "(cached) " >&6
11103 else
11104   case $SORT in
11105   [\\/]* | ?:[\\/]*)
11106   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
11107   ;;
11108   *)
11109   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11110 for as_dir in $PATH
11111 do
11112   IFS=$as_save_IFS
11113   test -z "$as_dir" && as_dir=.
11114     for ac_exec_ext in '' $ac_executable_extensions; do
11115   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11116     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
11117     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11118     break 2
11119   fi
11120 done
11121   done
11122 IFS=$as_save_IFS
11123 
11124   ;;
11125 esac
11126 fi
11127 SORT=$ac_cv_path_SORT
11128 if test -n "$SORT"; then
11129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
11130 $as_echo "$SORT" >&6; }
11131 else
11132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11133 $as_echo "no" >&6; }
11134 fi
11135 
11136 
11137           if test "x$SORT" = x; then
11138             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11139           fi
11140         else
11141           # Otherwise we believe it is a complete path. Use it as it is.
11142           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5
11143 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;}
11144           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5
11145 $as_echo_n "checking for SORT... " >&6; }
11146           if test ! -x "$tool_specified"; then
11147             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11148 $as_echo "not found" >&6; }
11149             as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5
11150           fi
11151           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11152 $as_echo "$tool_specified" >&6; }
11153         fi
11154       fi
11155     fi
11156 
11157   fi
11158 
11159 
11160 
11161   if test "x$SORT" = x; then
11162     as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5
11163   fi
11164 
11165 
11166 
11167 
11168 
11169   # Publish this variable in the help.
11170 
11171 
11172   if [ -z "${TAIL+x}" ]; then
11173     # The variable is not set by user, try to locate tool using the code snippet
11174     for ac_prog in tail
11175 do
11176   # Extract the first word of "$ac_prog", so it can be a program name with args.
11177 set dummy $ac_prog; ac_word=$2
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11179 $as_echo_n "checking for $ac_word... " >&6; }
11180 if ${ac_cv_path_TAIL+:} false; then :
11181   $as_echo_n "(cached) " >&6
11182 else
11183   case $TAIL in
11184   [\\/]* | ?:[\\/]*)
11185   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
11186   ;;
11187   *)
11188   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11189 for as_dir in $PATH
11190 do
11191   IFS=$as_save_IFS
11192   test -z "$as_dir" && as_dir=.
11193     for ac_exec_ext in '' $ac_executable_extensions; do
11194   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11195     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
11196     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11197     break 2
11198   fi
11199 done
11200   done
11201 IFS=$as_save_IFS
11202 
11203   ;;
11204 esac
11205 fi
11206 TAIL=$ac_cv_path_TAIL
11207 if test -n "$TAIL"; then
11208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
11209 $as_echo "$TAIL" >&6; }
11210 else
11211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11212 $as_echo "no" >&6; }
11213 fi
11214 
11215 
11216   test -n "$TAIL" && break
11217 done
11218 
11219   else
11220     # The variable is set, but is it from the command line or the environment?
11221 
11222     # Try to remove the string !TAIL! from our list.
11223     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/}
11224     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11225       # If it failed, the variable was not from the command line. Ignore it,
11226       # but warn the user (except for BASH, which is always set by the calling BASH).
11227       if test "xTAIL" != xBASH; then
11228         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5
11229 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;}
11230       fi
11231       # Try to locate tool using the code snippet
11232       for ac_prog in tail
11233 do
11234   # Extract the first word of "$ac_prog", so it can be a program name with args.
11235 set dummy $ac_prog; ac_word=$2
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11237 $as_echo_n "checking for $ac_word... " >&6; }
11238 if ${ac_cv_path_TAIL+:} false; then :
11239   $as_echo_n "(cached) " >&6
11240 else
11241   case $TAIL in
11242   [\\/]* | ?:[\\/]*)
11243   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
11244   ;;
11245   *)
11246   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11247 for as_dir in $PATH
11248 do
11249   IFS=$as_save_IFS
11250   test -z "$as_dir" && as_dir=.
11251     for ac_exec_ext in '' $ac_executable_extensions; do
11252   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11253     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
11254     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11255     break 2
11256   fi
11257 done
11258   done
11259 IFS=$as_save_IFS
11260 
11261   ;;
11262 esac
11263 fi
11264 TAIL=$ac_cv_path_TAIL
11265 if test -n "$TAIL"; then
11266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
11267 $as_echo "$TAIL" >&6; }
11268 else
11269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11270 $as_echo "no" >&6; }
11271 fi
11272 
11273 
11274   test -n "$TAIL" && break
11275 done
11276 
11277     else
11278       # If it succeeded, then it was overridden by the user. We will use it
11279       # for the tool.
11280 
11281       # First remove it from the list of overridden variables, so we can test
11282       # for unknown variables in the end.
11283       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11284 
11285       # Check if we try to supply an empty value
11286       if test "x$TAIL" = x; then
11287         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TAIL= (no value)" >&5
11288 $as_echo "$as_me: Setting user supplied tool TAIL= (no value)" >&6;}
11289         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5
11290 $as_echo_n "checking for TAIL... " >&6; }
11291         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11292 $as_echo "disabled" >&6; }
11293       else
11294         # Check if the provided tool contains a complete path.
11295         tool_specified="$TAIL"
11296         tool_basename="${tool_specified##*/}"
11297         if test "x$tool_basename" = "x$tool_specified"; then
11298           # A command without a complete path is provided, search $PATH.
11299           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5
11300 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;}
11301           # Extract the first word of "$tool_basename", so it can be a program name with args.
11302 set dummy $tool_basename; ac_word=$2
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11304 $as_echo_n "checking for $ac_word... " >&6; }
11305 if ${ac_cv_path_TAIL+:} false; then :
11306   $as_echo_n "(cached) " >&6
11307 else
11308   case $TAIL in
11309   [\\/]* | ?:[\\/]*)
11310   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
11311   ;;
11312   *)
11313   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11314 for as_dir in $PATH
11315 do
11316   IFS=$as_save_IFS
11317   test -z "$as_dir" && as_dir=.
11318     for ac_exec_ext in '' $ac_executable_extensions; do
11319   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11320     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
11321     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11322     break 2
11323   fi
11324 done
11325   done
11326 IFS=$as_save_IFS
11327 
11328   ;;
11329 esac
11330 fi
11331 TAIL=$ac_cv_path_TAIL
11332 if test -n "$TAIL"; then
11333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
11334 $as_echo "$TAIL" >&6; }
11335 else
11336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11337 $as_echo "no" >&6; }
11338 fi
11339 
11340 
11341           if test "x$TAIL" = x; then
11342             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11343           fi
11344         else
11345           # Otherwise we believe it is a complete path. Use it as it is.
11346           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5
11347 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;}
11348           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5
11349 $as_echo_n "checking for TAIL... " >&6; }
11350           if test ! -x "$tool_specified"; then
11351             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11352 $as_echo "not found" >&6; }
11353             as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5
11354           fi
11355           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11356 $as_echo "$tool_specified" >&6; }
11357         fi
11358       fi
11359     fi
11360 
11361   fi
11362 
11363 
11364 
11365   if test "x$TAIL" = x; then
11366     as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5
11367   fi
11368 
11369 
11370 
11371 
11372 
11373   # Publish this variable in the help.
11374 
11375 
11376   if [ -z "${TAR+x}" ]; then
11377     # The variable is not set by user, try to locate tool using the code snippet
11378     for ac_prog in gtar tar
11379 do
11380   # Extract the first word of "$ac_prog", so it can be a program name with args.
11381 set dummy $ac_prog; ac_word=$2
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11383 $as_echo_n "checking for $ac_word... " >&6; }
11384 if ${ac_cv_path_TAR+:} false; then :
11385   $as_echo_n "(cached) " >&6
11386 else
11387   case $TAR in
11388   [\\/]* | ?:[\\/]*)
11389   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
11390   ;;
11391   *)
11392   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11393 for as_dir in $PATH
11394 do
11395   IFS=$as_save_IFS
11396   test -z "$as_dir" && as_dir=.
11397     for ac_exec_ext in '' $ac_executable_extensions; do
11398   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11399     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
11400     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11401     break 2
11402   fi
11403 done
11404   done
11405 IFS=$as_save_IFS
11406 
11407   ;;
11408 esac
11409 fi
11410 TAR=$ac_cv_path_TAR
11411 if test -n "$TAR"; then
11412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
11413 $as_echo "$TAR" >&6; }
11414 else
11415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11416 $as_echo "no" >&6; }
11417 fi
11418 
11419 
11420   test -n "$TAR" && break
11421 done
11422 
11423   else
11424     # The variable is set, but is it from the command line or the environment?
11425 
11426     # Try to remove the string !TAR! from our list.
11427     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/}
11428     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11429       # If it failed, the variable was not from the command line. Ignore it,
11430       # but warn the user (except for BASH, which is always set by the calling BASH).
11431       if test "xTAR" != xBASH; then
11432         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5
11433 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;}
11434       fi
11435       # Try to locate tool using the code snippet
11436       for ac_prog in gtar tar
11437 do
11438   # Extract the first word of "$ac_prog", so it can be a program name with args.
11439 set dummy $ac_prog; ac_word=$2
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11441 $as_echo_n "checking for $ac_word... " >&6; }
11442 if ${ac_cv_path_TAR+:} false; then :
11443   $as_echo_n "(cached) " >&6
11444 else
11445   case $TAR in
11446   [\\/]* | ?:[\\/]*)
11447   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
11448   ;;
11449   *)
11450   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11451 for as_dir in $PATH
11452 do
11453   IFS=$as_save_IFS
11454   test -z "$as_dir" && as_dir=.
11455     for ac_exec_ext in '' $ac_executable_extensions; do
11456   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11457     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
11458     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11459     break 2
11460   fi
11461 done
11462   done
11463 IFS=$as_save_IFS
11464 
11465   ;;
11466 esac
11467 fi
11468 TAR=$ac_cv_path_TAR
11469 if test -n "$TAR"; then
11470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
11471 $as_echo "$TAR" >&6; }
11472 else
11473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11474 $as_echo "no" >&6; }
11475 fi
11476 
11477 
11478   test -n "$TAR" && break
11479 done
11480 
11481     else
11482       # If it succeeded, then it was overridden by the user. We will use it
11483       # for the tool.
11484 
11485       # First remove it from the list of overridden variables, so we can test
11486       # for unknown variables in the end.
11487       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11488 
11489       # Check if we try to supply an empty value
11490       if test "x$TAR" = x; then
11491         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TAR= (no value)" >&5
11492 $as_echo "$as_me: Setting user supplied tool TAR= (no value)" >&6;}
11493         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
11494 $as_echo_n "checking for TAR... " >&6; }
11495         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11496 $as_echo "disabled" >&6; }
11497       else
11498         # Check if the provided tool contains a complete path.
11499         tool_specified="$TAR"
11500         tool_basename="${tool_specified##*/}"
11501         if test "x$tool_basename" = "x$tool_specified"; then
11502           # A command without a complete path is provided, search $PATH.
11503           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5
11504 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;}
11505           # Extract the first word of "$tool_basename", so it can be a program name with args.
11506 set dummy $tool_basename; ac_word=$2
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11508 $as_echo_n "checking for $ac_word... " >&6; }
11509 if ${ac_cv_path_TAR+:} false; then :
11510   $as_echo_n "(cached) " >&6
11511 else
11512   case $TAR in
11513   [\\/]* | ?:[\\/]*)
11514   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
11515   ;;
11516   *)
11517   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11518 for as_dir in $PATH
11519 do
11520   IFS=$as_save_IFS
11521   test -z "$as_dir" && as_dir=.
11522     for ac_exec_ext in '' $ac_executable_extensions; do
11523   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11524     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
11525     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11526     break 2
11527   fi
11528 done
11529   done
11530 IFS=$as_save_IFS
11531 
11532   ;;
11533 esac
11534 fi
11535 TAR=$ac_cv_path_TAR
11536 if test -n "$TAR"; then
11537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
11538 $as_echo "$TAR" >&6; }
11539 else
11540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11541 $as_echo "no" >&6; }
11542 fi
11543 
11544 
11545           if test "x$TAR" = x; then
11546             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11547           fi
11548         else
11549           # Otherwise we believe it is a complete path. Use it as it is.
11550           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5
11551 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;}
11552           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
11553 $as_echo_n "checking for TAR... " >&6; }
11554           if test ! -x "$tool_specified"; then
11555             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11556 $as_echo "not found" >&6; }
11557             as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5
11558           fi
11559           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11560 $as_echo "$tool_specified" >&6; }
11561         fi
11562       fi
11563     fi
11564 
11565   fi
11566 
11567 
11568 
11569   if test "x$TAR" = x; then
11570     as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5
11571   fi
11572 
11573 
11574 
11575 
11576 
11577   # Publish this variable in the help.
11578 
11579 
11580   if [ -z "${TEE+x}" ]; then
11581     # The variable is not set by user, try to locate tool using the code snippet
11582     for ac_prog in tee
11583 do
11584   # Extract the first word of "$ac_prog", so it can be a program name with args.
11585 set dummy $ac_prog; ac_word=$2
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11587 $as_echo_n "checking for $ac_word... " >&6; }
11588 if ${ac_cv_path_TEE+:} false; then :
11589   $as_echo_n "(cached) " >&6
11590 else
11591   case $TEE in
11592   [\\/]* | ?:[\\/]*)
11593   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
11594   ;;
11595   *)
11596   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11597 for as_dir in $PATH
11598 do
11599   IFS=$as_save_IFS
11600   test -z "$as_dir" && as_dir=.
11601     for ac_exec_ext in '' $ac_executable_extensions; do
11602   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11603     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
11604     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11605     break 2
11606   fi
11607 done
11608   done
11609 IFS=$as_save_IFS
11610 
11611   ;;
11612 esac
11613 fi
11614 TEE=$ac_cv_path_TEE
11615 if test -n "$TEE"; then
11616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
11617 $as_echo "$TEE" >&6; }
11618 else
11619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11620 $as_echo "no" >&6; }
11621 fi
11622 
11623 
11624   test -n "$TEE" && break
11625 done
11626 
11627   else
11628     # The variable is set, but is it from the command line or the environment?
11629 
11630     # Try to remove the string !TEE! from our list.
11631     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/}
11632     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11633       # If it failed, the variable was not from the command line. Ignore it,
11634       # but warn the user (except for BASH, which is always set by the calling BASH).
11635       if test "xTEE" != xBASH; then
11636         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5
11637 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;}
11638       fi
11639       # Try to locate tool using the code snippet
11640       for ac_prog in tee
11641 do
11642   # Extract the first word of "$ac_prog", so it can be a program name with args.
11643 set dummy $ac_prog; ac_word=$2
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11645 $as_echo_n "checking for $ac_word... " >&6; }
11646 if ${ac_cv_path_TEE+:} false; then :
11647   $as_echo_n "(cached) " >&6
11648 else
11649   case $TEE in
11650   [\\/]* | ?:[\\/]*)
11651   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
11652   ;;
11653   *)
11654   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11655 for as_dir in $PATH
11656 do
11657   IFS=$as_save_IFS
11658   test -z "$as_dir" && as_dir=.
11659     for ac_exec_ext in '' $ac_executable_extensions; do
11660   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11661     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
11662     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11663     break 2
11664   fi
11665 done
11666   done
11667 IFS=$as_save_IFS
11668 
11669   ;;
11670 esac
11671 fi
11672 TEE=$ac_cv_path_TEE
11673 if test -n "$TEE"; then
11674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
11675 $as_echo "$TEE" >&6; }
11676 else
11677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11678 $as_echo "no" >&6; }
11679 fi
11680 
11681 
11682   test -n "$TEE" && break
11683 done
11684 
11685     else
11686       # If it succeeded, then it was overridden by the user. We will use it
11687       # for the tool.
11688 
11689       # First remove it from the list of overridden variables, so we can test
11690       # for unknown variables in the end.
11691       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11692 
11693       # Check if we try to supply an empty value
11694       if test "x$TEE" = x; then
11695         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TEE= (no value)" >&5
11696 $as_echo "$as_me: Setting user supplied tool TEE= (no value)" >&6;}
11697         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5
11698 $as_echo_n "checking for TEE... " >&6; }
11699         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11700 $as_echo "disabled" >&6; }
11701       else
11702         # Check if the provided tool contains a complete path.
11703         tool_specified="$TEE"
11704         tool_basename="${tool_specified##*/}"
11705         if test "x$tool_basename" = "x$tool_specified"; then
11706           # A command without a complete path is provided, search $PATH.
11707           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5
11708 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;}
11709           # Extract the first word of "$tool_basename", so it can be a program name with args.
11710 set dummy $tool_basename; ac_word=$2
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11712 $as_echo_n "checking for $ac_word... " >&6; }
11713 if ${ac_cv_path_TEE+:} false; then :
11714   $as_echo_n "(cached) " >&6
11715 else
11716   case $TEE in
11717   [\\/]* | ?:[\\/]*)
11718   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
11719   ;;
11720   *)
11721   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11722 for as_dir in $PATH
11723 do
11724   IFS=$as_save_IFS
11725   test -z "$as_dir" && as_dir=.
11726     for ac_exec_ext in '' $ac_executable_extensions; do
11727   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11728     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
11729     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11730     break 2
11731   fi
11732 done
11733   done
11734 IFS=$as_save_IFS
11735 
11736   ;;
11737 esac
11738 fi
11739 TEE=$ac_cv_path_TEE
11740 if test -n "$TEE"; then
11741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
11742 $as_echo "$TEE" >&6; }
11743 else
11744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11745 $as_echo "no" >&6; }
11746 fi
11747 
11748 
11749           if test "x$TEE" = x; then
11750             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11751           fi
11752         else
11753           # Otherwise we believe it is a complete path. Use it as it is.
11754           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5
11755 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;}
11756           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5
11757 $as_echo_n "checking for TEE... " >&6; }
11758           if test ! -x "$tool_specified"; then
11759             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11760 $as_echo "not found" >&6; }
11761             as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5
11762           fi
11763           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11764 $as_echo "$tool_specified" >&6; }
11765         fi
11766       fi
11767     fi
11768 
11769   fi
11770 
11771 
11772 
11773   if test "x$TEE" = x; then
11774     as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5
11775   fi
11776 
11777 
11778 
11779 
11780 
11781   # Publish this variable in the help.
11782 
11783 
11784   if [ -z "${TOUCH+x}" ]; then
11785     # The variable is not set by user, try to locate tool using the code snippet
11786     for ac_prog in touch
11787 do
11788   # Extract the first word of "$ac_prog", so it can be a program name with args.
11789 set dummy $ac_prog; ac_word=$2
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11791 $as_echo_n "checking for $ac_word... " >&6; }
11792 if ${ac_cv_path_TOUCH+:} false; then :
11793   $as_echo_n "(cached) " >&6
11794 else
11795   case $TOUCH in
11796   [\\/]* | ?:[\\/]*)
11797   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
11798   ;;
11799   *)
11800   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11801 for as_dir in $PATH
11802 do
11803   IFS=$as_save_IFS
11804   test -z "$as_dir" && as_dir=.
11805     for ac_exec_ext in '' $ac_executable_extensions; do
11806   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11807     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
11808     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11809     break 2
11810   fi
11811 done
11812   done
11813 IFS=$as_save_IFS
11814 
11815   ;;
11816 esac
11817 fi
11818 TOUCH=$ac_cv_path_TOUCH
11819 if test -n "$TOUCH"; then
11820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
11821 $as_echo "$TOUCH" >&6; }
11822 else
11823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11824 $as_echo "no" >&6; }
11825 fi
11826 
11827 
11828   test -n "$TOUCH" && break
11829 done
11830 
11831   else
11832     # The variable is set, but is it from the command line or the environment?
11833 
11834     # Try to remove the string !TOUCH! from our list.
11835     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/}
11836     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11837       # If it failed, the variable was not from the command line. Ignore it,
11838       # but warn the user (except for BASH, which is always set by the calling BASH).
11839       if test "xTOUCH" != xBASH; then
11840         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5
11841 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;}
11842       fi
11843       # Try to locate tool using the code snippet
11844       for ac_prog in touch
11845 do
11846   # Extract the first word of "$ac_prog", so it can be a program name with args.
11847 set dummy $ac_prog; ac_word=$2
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11849 $as_echo_n "checking for $ac_word... " >&6; }
11850 if ${ac_cv_path_TOUCH+:} false; then :
11851   $as_echo_n "(cached) " >&6
11852 else
11853   case $TOUCH in
11854   [\\/]* | ?:[\\/]*)
11855   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
11856   ;;
11857   *)
11858   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11859 for as_dir in $PATH
11860 do
11861   IFS=$as_save_IFS
11862   test -z "$as_dir" && as_dir=.
11863     for ac_exec_ext in '' $ac_executable_extensions; do
11864   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11865     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
11866     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11867     break 2
11868   fi
11869 done
11870   done
11871 IFS=$as_save_IFS
11872 
11873   ;;
11874 esac
11875 fi
11876 TOUCH=$ac_cv_path_TOUCH
11877 if test -n "$TOUCH"; then
11878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
11879 $as_echo "$TOUCH" >&6; }
11880 else
11881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11882 $as_echo "no" >&6; }
11883 fi
11884 
11885 
11886   test -n "$TOUCH" && break
11887 done
11888 
11889     else
11890       # If it succeeded, then it was overridden by the user. We will use it
11891       # for the tool.
11892 
11893       # First remove it from the list of overridden variables, so we can test
11894       # for unknown variables in the end.
11895       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11896 
11897       # Check if we try to supply an empty value
11898       if test "x$TOUCH" = x; then
11899         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TOUCH= (no value)" >&5
11900 $as_echo "$as_me: Setting user supplied tool TOUCH= (no value)" >&6;}
11901         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5
11902 $as_echo_n "checking for TOUCH... " >&6; }
11903         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11904 $as_echo "disabled" >&6; }
11905       else
11906         # Check if the provided tool contains a complete path.
11907         tool_specified="$TOUCH"
11908         tool_basename="${tool_specified##*/}"
11909         if test "x$tool_basename" = "x$tool_specified"; then
11910           # A command without a complete path is provided, search $PATH.
11911           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5
11912 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;}
11913           # Extract the first word of "$tool_basename", so it can be a program name with args.
11914 set dummy $tool_basename; ac_word=$2
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11916 $as_echo_n "checking for $ac_word... " >&6; }
11917 if ${ac_cv_path_TOUCH+:} false; then :
11918   $as_echo_n "(cached) " >&6
11919 else
11920   case $TOUCH in
11921   [\\/]* | ?:[\\/]*)
11922   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
11923   ;;
11924   *)
11925   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11926 for as_dir in $PATH
11927 do
11928   IFS=$as_save_IFS
11929   test -z "$as_dir" && as_dir=.
11930     for ac_exec_ext in '' $ac_executable_extensions; do
11931   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11932     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
11933     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11934     break 2
11935   fi
11936 done
11937   done
11938 IFS=$as_save_IFS
11939 
11940   ;;
11941 esac
11942 fi
11943 TOUCH=$ac_cv_path_TOUCH
11944 if test -n "$TOUCH"; then
11945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
11946 $as_echo "$TOUCH" >&6; }
11947 else
11948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11949 $as_echo "no" >&6; }
11950 fi
11951 
11952 
11953           if test "x$TOUCH" = x; then
11954             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11955           fi
11956         else
11957           # Otherwise we believe it is a complete path. Use it as it is.
11958           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5
11959 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;}
11960           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5
11961 $as_echo_n "checking for TOUCH... " >&6; }
11962           if test ! -x "$tool_specified"; then
11963             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11964 $as_echo "not found" >&6; }
11965             as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5
11966           fi
11967           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11968 $as_echo "$tool_specified" >&6; }
11969         fi
11970       fi
11971     fi
11972 
11973   fi
11974 
11975 
11976 
11977   if test "x$TOUCH" = x; then
11978     as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5
11979   fi
11980 
11981 
11982 
11983 
11984 
11985   # Publish this variable in the help.
11986 
11987 
11988   if [ -z "${TR+x}" ]; then
11989     # The variable is not set by user, try to locate tool using the code snippet
11990     for ac_prog in tr
11991 do
11992   # Extract the first word of "$ac_prog", so it can be a program name with args.
11993 set dummy $ac_prog; ac_word=$2
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11995 $as_echo_n "checking for $ac_word... " >&6; }
11996 if ${ac_cv_path_TR+:} false; then :
11997   $as_echo_n "(cached) " >&6
11998 else
11999   case $TR in
12000   [\\/]* | ?:[\\/]*)
12001   ac_cv_path_TR="$TR" # Let the user override the test with a path.
12002   ;;
12003   *)
12004   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12005 for as_dir in $PATH
12006 do
12007   IFS=$as_save_IFS
12008   test -z "$as_dir" && as_dir=.
12009     for ac_exec_ext in '' $ac_executable_extensions; do
12010   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12011     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
12012     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12013     break 2
12014   fi
12015 done
12016   done
12017 IFS=$as_save_IFS
12018 
12019   ;;
12020 esac
12021 fi
12022 TR=$ac_cv_path_TR
12023 if test -n "$TR"; then
12024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
12025 $as_echo "$TR" >&6; }
12026 else
12027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12028 $as_echo "no" >&6; }
12029 fi
12030 
12031 
12032   test -n "$TR" && break
12033 done
12034 
12035   else
12036     # The variable is set, but is it from the command line or the environment?
12037 
12038     # Try to remove the string !TR! from our list.
12039     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/}
12040     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12041       # If it failed, the variable was not from the command line. Ignore it,
12042       # but warn the user (except for BASH, which is always set by the calling BASH).
12043       if test "xTR" != xBASH; then
12044         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5
12045 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;}
12046       fi
12047       # Try to locate tool using the code snippet
12048       for ac_prog in tr
12049 do
12050   # Extract the first word of "$ac_prog", so it can be a program name with args.
12051 set dummy $ac_prog; ac_word=$2
12052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12053 $as_echo_n "checking for $ac_word... " >&6; }
12054 if ${ac_cv_path_TR+:} false; then :
12055   $as_echo_n "(cached) " >&6
12056 else
12057   case $TR in
12058   [\\/]* | ?:[\\/]*)
12059   ac_cv_path_TR="$TR" # Let the user override the test with a path.
12060   ;;
12061   *)
12062   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12063 for as_dir in $PATH
12064 do
12065   IFS=$as_save_IFS
12066   test -z "$as_dir" && as_dir=.
12067     for ac_exec_ext in '' $ac_executable_extensions; do
12068   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12069     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
12070     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12071     break 2
12072   fi
12073 done
12074   done
12075 IFS=$as_save_IFS
12076 
12077   ;;
12078 esac
12079 fi
12080 TR=$ac_cv_path_TR
12081 if test -n "$TR"; then
12082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
12083 $as_echo "$TR" >&6; }
12084 else
12085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12086 $as_echo "no" >&6; }
12087 fi
12088 
12089 
12090   test -n "$TR" && break
12091 done
12092 
12093     else
12094       # If it succeeded, then it was overridden by the user. We will use it
12095       # for the tool.
12096 
12097       # First remove it from the list of overridden variables, so we can test
12098       # for unknown variables in the end.
12099       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12100 
12101       # Check if we try to supply an empty value
12102       if test "x$TR" = x; then
12103         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TR= (no value)" >&5
12104 $as_echo "$as_me: Setting user supplied tool TR= (no value)" >&6;}
12105         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5
12106 $as_echo_n "checking for TR... " >&6; }
12107         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12108 $as_echo "disabled" >&6; }
12109       else
12110         # Check if the provided tool contains a complete path.
12111         tool_specified="$TR"
12112         tool_basename="${tool_specified##*/}"
12113         if test "x$tool_basename" = "x$tool_specified"; then
12114           # A command without a complete path is provided, search $PATH.
12115           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5
12116 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;}
12117           # Extract the first word of "$tool_basename", so it can be a program name with args.
12118 set dummy $tool_basename; ac_word=$2
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12120 $as_echo_n "checking for $ac_word... " >&6; }
12121 if ${ac_cv_path_TR+:} false; then :
12122   $as_echo_n "(cached) " >&6
12123 else
12124   case $TR in
12125   [\\/]* | ?:[\\/]*)
12126   ac_cv_path_TR="$TR" # Let the user override the test with a path.
12127   ;;
12128   *)
12129   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12130 for as_dir in $PATH
12131 do
12132   IFS=$as_save_IFS
12133   test -z "$as_dir" && as_dir=.
12134     for ac_exec_ext in '' $ac_executable_extensions; do
12135   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12136     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
12137     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12138     break 2
12139   fi
12140 done
12141   done
12142 IFS=$as_save_IFS
12143 
12144   ;;
12145 esac
12146 fi
12147 TR=$ac_cv_path_TR
12148 if test -n "$TR"; then
12149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
12150 $as_echo "$TR" >&6; }
12151 else
12152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12153 $as_echo "no" >&6; }
12154 fi
12155 
12156 
12157           if test "x$TR" = x; then
12158             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12159           fi
12160         else
12161           # Otherwise we believe it is a complete path. Use it as it is.
12162           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5
12163 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;}
12164           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5
12165 $as_echo_n "checking for TR... " >&6; }
12166           if test ! -x "$tool_specified"; then
12167             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12168 $as_echo "not found" >&6; }
12169             as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5
12170           fi
12171           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12172 $as_echo "$tool_specified" >&6; }
12173         fi
12174       fi
12175     fi
12176 
12177   fi
12178 
12179 
12180 
12181   if test "x$TR" = x; then
12182     as_fn_error $? "Could not find required tool for TR" "$LINENO" 5
12183   fi
12184 
12185 
12186 
12187 
12188 
12189   # Publish this variable in the help.
12190 
12191 
12192   if [ -z "${UNAME+x}" ]; then
12193     # The variable is not set by user, try to locate tool using the code snippet
12194     for ac_prog in uname
12195 do
12196   # Extract the first word of "$ac_prog", so it can be a program name with args.
12197 set dummy $ac_prog; ac_word=$2
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12199 $as_echo_n "checking for $ac_word... " >&6; }
12200 if ${ac_cv_path_UNAME+:} false; then :
12201   $as_echo_n "(cached) " >&6
12202 else
12203   case $UNAME in
12204   [\\/]* | ?:[\\/]*)
12205   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
12206   ;;
12207   *)
12208   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12209 for as_dir in $PATH
12210 do
12211   IFS=$as_save_IFS
12212   test -z "$as_dir" && as_dir=.
12213     for ac_exec_ext in '' $ac_executable_extensions; do
12214   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12215     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
12216     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12217     break 2
12218   fi
12219 done
12220   done
12221 IFS=$as_save_IFS
12222 
12223   ;;
12224 esac
12225 fi
12226 UNAME=$ac_cv_path_UNAME
12227 if test -n "$UNAME"; then
12228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
12229 $as_echo "$UNAME" >&6; }
12230 else
12231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12232 $as_echo "no" >&6; }
12233 fi
12234 
12235 
12236   test -n "$UNAME" && break
12237 done
12238 
12239   else
12240     # The variable is set, but is it from the command line or the environment?
12241 
12242     # Try to remove the string !UNAME! from our list.
12243     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/}
12244     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12245       # If it failed, the variable was not from the command line. Ignore it,
12246       # but warn the user (except for BASH, which is always set by the calling BASH).
12247       if test "xUNAME" != xBASH; then
12248         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5
12249 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;}
12250       fi
12251       # Try to locate tool using the code snippet
12252       for ac_prog in uname
12253 do
12254   # Extract the first word of "$ac_prog", so it can be a program name with args.
12255 set dummy $ac_prog; ac_word=$2
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12257 $as_echo_n "checking for $ac_word... " >&6; }
12258 if ${ac_cv_path_UNAME+:} false; then :
12259   $as_echo_n "(cached) " >&6
12260 else
12261   case $UNAME in
12262   [\\/]* | ?:[\\/]*)
12263   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
12264   ;;
12265   *)
12266   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12267 for as_dir in $PATH
12268 do
12269   IFS=$as_save_IFS
12270   test -z "$as_dir" && as_dir=.
12271     for ac_exec_ext in '' $ac_executable_extensions; do
12272   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12273     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
12274     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12275     break 2
12276   fi
12277 done
12278   done
12279 IFS=$as_save_IFS
12280 
12281   ;;
12282 esac
12283 fi
12284 UNAME=$ac_cv_path_UNAME
12285 if test -n "$UNAME"; then
12286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
12287 $as_echo "$UNAME" >&6; }
12288 else
12289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12290 $as_echo "no" >&6; }
12291 fi
12292 
12293 
12294   test -n "$UNAME" && break
12295 done
12296 
12297     else
12298       # If it succeeded, then it was overridden by the user. We will use it
12299       # for the tool.
12300 
12301       # First remove it from the list of overridden variables, so we can test
12302       # for unknown variables in the end.
12303       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12304 
12305       # Check if we try to supply an empty value
12306       if test "x$UNAME" = x; then
12307         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNAME= (no value)" >&5
12308 $as_echo "$as_me: Setting user supplied tool UNAME= (no value)" >&6;}
12309         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5
12310 $as_echo_n "checking for UNAME... " >&6; }
12311         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12312 $as_echo "disabled" >&6; }
12313       else
12314         # Check if the provided tool contains a complete path.
12315         tool_specified="$UNAME"
12316         tool_basename="${tool_specified##*/}"
12317         if test "x$tool_basename" = "x$tool_specified"; then
12318           # A command without a complete path is provided, search $PATH.
12319           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5
12320 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;}
12321           # Extract the first word of "$tool_basename", so it can be a program name with args.
12322 set dummy $tool_basename; ac_word=$2
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12324 $as_echo_n "checking for $ac_word... " >&6; }
12325 if ${ac_cv_path_UNAME+:} false; then :
12326   $as_echo_n "(cached) " >&6
12327 else
12328   case $UNAME in
12329   [\\/]* | ?:[\\/]*)
12330   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
12331   ;;
12332   *)
12333   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12334 for as_dir in $PATH
12335 do
12336   IFS=$as_save_IFS
12337   test -z "$as_dir" && as_dir=.
12338     for ac_exec_ext in '' $ac_executable_extensions; do
12339   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12340     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
12341     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12342     break 2
12343   fi
12344 done
12345   done
12346 IFS=$as_save_IFS
12347 
12348   ;;
12349 esac
12350 fi
12351 UNAME=$ac_cv_path_UNAME
12352 if test -n "$UNAME"; then
12353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
12354 $as_echo "$UNAME" >&6; }
12355 else
12356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12357 $as_echo "no" >&6; }
12358 fi
12359 
12360 
12361           if test "x$UNAME" = x; then
12362             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12363           fi
12364         else
12365           # Otherwise we believe it is a complete path. Use it as it is.
12366           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5
12367 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;}
12368           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5
12369 $as_echo_n "checking for UNAME... " >&6; }
12370           if test ! -x "$tool_specified"; then
12371             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12372 $as_echo "not found" >&6; }
12373             as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
12374           fi
12375           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12376 $as_echo "$tool_specified" >&6; }
12377         fi
12378       fi
12379     fi
12380 
12381   fi
12382 
12383 
12384 
12385   if test "x$UNAME" = x; then
12386     as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5
12387   fi
12388 
12389 
12390 
12391 
12392 
12393   # Publish this variable in the help.
12394 
12395 
12396   if [ -z "${UNIQ+x}" ]; then
12397     # The variable is not set by user, try to locate tool using the code snippet
12398     for ac_prog in uniq
12399 do
12400   # Extract the first word of "$ac_prog", so it can be a program name with args.
12401 set dummy $ac_prog; ac_word=$2
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12403 $as_echo_n "checking for $ac_word... " >&6; }
12404 if ${ac_cv_path_UNIQ+:} false; then :
12405   $as_echo_n "(cached) " >&6
12406 else
12407   case $UNIQ in
12408   [\\/]* | ?:[\\/]*)
12409   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
12410   ;;
12411   *)
12412   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12413 for as_dir in $PATH
12414 do
12415   IFS=$as_save_IFS
12416   test -z "$as_dir" && as_dir=.
12417     for ac_exec_ext in '' $ac_executable_extensions; do
12418   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12419     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
12420     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12421     break 2
12422   fi
12423 done
12424   done
12425 IFS=$as_save_IFS
12426 
12427   ;;
12428 esac
12429 fi
12430 UNIQ=$ac_cv_path_UNIQ
12431 if test -n "$UNIQ"; then
12432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
12433 $as_echo "$UNIQ" >&6; }
12434 else
12435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12436 $as_echo "no" >&6; }
12437 fi
12438 
12439 
12440   test -n "$UNIQ" && break
12441 done
12442 
12443   else
12444     # The variable is set, but is it from the command line or the environment?
12445 
12446     # Try to remove the string !UNIQ! from our list.
12447     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/}
12448     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12449       # If it failed, the variable was not from the command line. Ignore it,
12450       # but warn the user (except for BASH, which is always set by the calling BASH).
12451       if test "xUNIQ" != xBASH; then
12452         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5
12453 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;}
12454       fi
12455       # Try to locate tool using the code snippet
12456       for ac_prog in uniq
12457 do
12458   # Extract the first word of "$ac_prog", so it can be a program name with args.
12459 set dummy $ac_prog; ac_word=$2
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12461 $as_echo_n "checking for $ac_word... " >&6; }
12462 if ${ac_cv_path_UNIQ+:} false; then :
12463   $as_echo_n "(cached) " >&6
12464 else
12465   case $UNIQ in
12466   [\\/]* | ?:[\\/]*)
12467   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
12468   ;;
12469   *)
12470   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12471 for as_dir in $PATH
12472 do
12473   IFS=$as_save_IFS
12474   test -z "$as_dir" && as_dir=.
12475     for ac_exec_ext in '' $ac_executable_extensions; do
12476   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12477     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
12478     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12479     break 2
12480   fi
12481 done
12482   done
12483 IFS=$as_save_IFS
12484 
12485   ;;
12486 esac
12487 fi
12488 UNIQ=$ac_cv_path_UNIQ
12489 if test -n "$UNIQ"; then
12490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
12491 $as_echo "$UNIQ" >&6; }
12492 else
12493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12494 $as_echo "no" >&6; }
12495 fi
12496 
12497 
12498   test -n "$UNIQ" && break
12499 done
12500 
12501     else
12502       # If it succeeded, then it was overridden by the user. We will use it
12503       # for the tool.
12504 
12505       # First remove it from the list of overridden variables, so we can test
12506       # for unknown variables in the end.
12507       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12508 
12509       # Check if we try to supply an empty value
12510       if test "x$UNIQ" = x; then
12511         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNIQ= (no value)" >&5
12512 $as_echo "$as_me: Setting user supplied tool UNIQ= (no value)" >&6;}
12513         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5
12514 $as_echo_n "checking for UNIQ... " >&6; }
12515         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12516 $as_echo "disabled" >&6; }
12517       else
12518         # Check if the provided tool contains a complete path.
12519         tool_specified="$UNIQ"
12520         tool_basename="${tool_specified##*/}"
12521         if test "x$tool_basename" = "x$tool_specified"; then
12522           # A command without a complete path is provided, search $PATH.
12523           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5
12524 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;}
12525           # Extract the first word of "$tool_basename", so it can be a program name with args.
12526 set dummy $tool_basename; ac_word=$2
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12528 $as_echo_n "checking for $ac_word... " >&6; }
12529 if ${ac_cv_path_UNIQ+:} false; then :
12530   $as_echo_n "(cached) " >&6
12531 else
12532   case $UNIQ in
12533   [\\/]* | ?:[\\/]*)
12534   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
12535   ;;
12536   *)
12537   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12538 for as_dir in $PATH
12539 do
12540   IFS=$as_save_IFS
12541   test -z "$as_dir" && as_dir=.
12542     for ac_exec_ext in '' $ac_executable_extensions; do
12543   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12544     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
12545     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12546     break 2
12547   fi
12548 done
12549   done
12550 IFS=$as_save_IFS
12551 
12552   ;;
12553 esac
12554 fi
12555 UNIQ=$ac_cv_path_UNIQ
12556 if test -n "$UNIQ"; then
12557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
12558 $as_echo "$UNIQ" >&6; }
12559 else
12560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12561 $as_echo "no" >&6; }
12562 fi
12563 
12564 
12565           if test "x$UNIQ" = x; then
12566             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12567           fi
12568         else
12569           # Otherwise we believe it is a complete path. Use it as it is.
12570           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5
12571 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;}
12572           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5
12573 $as_echo_n "checking for UNIQ... " >&6; }
12574           if test ! -x "$tool_specified"; then
12575             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12576 $as_echo "not found" >&6; }
12577             as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5
12578           fi
12579           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12580 $as_echo "$tool_specified" >&6; }
12581         fi
12582       fi
12583     fi
12584 
12585   fi
12586 
12587 
12588 
12589   if test "x$UNIQ" = x; then
12590     as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5
12591   fi
12592 
12593 
12594 
12595 
12596 
12597   # Publish this variable in the help.
12598 
12599 
12600   if [ -z "${WC+x}" ]; then
12601     # The variable is not set by user, try to locate tool using the code snippet
12602     for ac_prog in wc
12603 do
12604   # Extract the first word of "$ac_prog", so it can be a program name with args.
12605 set dummy $ac_prog; ac_word=$2
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12607 $as_echo_n "checking for $ac_word... " >&6; }
12608 if ${ac_cv_path_WC+:} false; then :
12609   $as_echo_n "(cached) " >&6
12610 else
12611   case $WC in
12612   [\\/]* | ?:[\\/]*)
12613   ac_cv_path_WC="$WC" # Let the user override the test with a path.
12614   ;;
12615   *)
12616   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12617 for as_dir in $PATH
12618 do
12619   IFS=$as_save_IFS
12620   test -z "$as_dir" && as_dir=.
12621     for ac_exec_ext in '' $ac_executable_extensions; do
12622   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12623     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
12624     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12625     break 2
12626   fi
12627 done
12628   done
12629 IFS=$as_save_IFS
12630 
12631   ;;
12632 esac
12633 fi
12634 WC=$ac_cv_path_WC
12635 if test -n "$WC"; then
12636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
12637 $as_echo "$WC" >&6; }
12638 else
12639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12640 $as_echo "no" >&6; }
12641 fi
12642 
12643 
12644   test -n "$WC" && break
12645 done
12646 
12647   else
12648     # The variable is set, but is it from the command line or the environment?
12649 
12650     # Try to remove the string !WC! from our list.
12651     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/}
12652     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12653       # If it failed, the variable was not from the command line. Ignore it,
12654       # but warn the user (except for BASH, which is always set by the calling BASH).
12655       if test "xWC" != xBASH; then
12656         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5
12657 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;}
12658       fi
12659       # Try to locate tool using the code snippet
12660       for ac_prog in wc
12661 do
12662   # Extract the first word of "$ac_prog", so it can be a program name with args.
12663 set dummy $ac_prog; ac_word=$2
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12665 $as_echo_n "checking for $ac_word... " >&6; }
12666 if ${ac_cv_path_WC+:} false; then :
12667   $as_echo_n "(cached) " >&6
12668 else
12669   case $WC in
12670   [\\/]* | ?:[\\/]*)
12671   ac_cv_path_WC="$WC" # Let the user override the test with a path.
12672   ;;
12673   *)
12674   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12675 for as_dir in $PATH
12676 do
12677   IFS=$as_save_IFS
12678   test -z "$as_dir" && as_dir=.
12679     for ac_exec_ext in '' $ac_executable_extensions; do
12680   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12681     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
12682     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12683     break 2
12684   fi
12685 done
12686   done
12687 IFS=$as_save_IFS
12688 
12689   ;;
12690 esac
12691 fi
12692 WC=$ac_cv_path_WC
12693 if test -n "$WC"; then
12694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
12695 $as_echo "$WC" >&6; }
12696 else
12697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12698 $as_echo "no" >&6; }
12699 fi
12700 
12701 
12702   test -n "$WC" && break
12703 done
12704 
12705     else
12706       # If it succeeded, then it was overridden by the user. We will use it
12707       # for the tool.
12708 
12709       # First remove it from the list of overridden variables, so we can test
12710       # for unknown variables in the end.
12711       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12712 
12713       # Check if we try to supply an empty value
12714       if test "x$WC" = x; then
12715         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool WC= (no value)" >&5
12716 $as_echo "$as_me: Setting user supplied tool WC= (no value)" >&6;}
12717         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5
12718 $as_echo_n "checking for WC... " >&6; }
12719         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12720 $as_echo "disabled" >&6; }
12721       else
12722         # Check if the provided tool contains a complete path.
12723         tool_specified="$WC"
12724         tool_basename="${tool_specified##*/}"
12725         if test "x$tool_basename" = "x$tool_specified"; then
12726           # A command without a complete path is provided, search $PATH.
12727           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5
12728 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;}
12729           # Extract the first word of "$tool_basename", so it can be a program name with args.
12730 set dummy $tool_basename; ac_word=$2
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12732 $as_echo_n "checking for $ac_word... " >&6; }
12733 if ${ac_cv_path_WC+:} false; then :
12734   $as_echo_n "(cached) " >&6
12735 else
12736   case $WC in
12737   [\\/]* | ?:[\\/]*)
12738   ac_cv_path_WC="$WC" # Let the user override the test with a path.
12739   ;;
12740   *)
12741   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12742 for as_dir in $PATH
12743 do
12744   IFS=$as_save_IFS
12745   test -z "$as_dir" && as_dir=.
12746     for ac_exec_ext in '' $ac_executable_extensions; do
12747   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12748     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
12749     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12750     break 2
12751   fi
12752 done
12753   done
12754 IFS=$as_save_IFS
12755 
12756   ;;
12757 esac
12758 fi
12759 WC=$ac_cv_path_WC
12760 if test -n "$WC"; then
12761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
12762 $as_echo "$WC" >&6; }
12763 else
12764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12765 $as_echo "no" >&6; }
12766 fi
12767 
12768 
12769           if test "x$WC" = x; then
12770             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12771           fi
12772         else
12773           # Otherwise we believe it is a complete path. Use it as it is.
12774           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5
12775 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;}
12776           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5
12777 $as_echo_n "checking for WC... " >&6; }
12778           if test ! -x "$tool_specified"; then
12779             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12780 $as_echo "not found" >&6; }
12781             as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5
12782           fi
12783           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12784 $as_echo "$tool_specified" >&6; }
12785         fi
12786       fi
12787     fi
12788 
12789   fi
12790 
12791 
12792 
12793   if test "x$WC" = x; then
12794     as_fn_error $? "Could not find required tool for WC" "$LINENO" 5
12795   fi
12796 
12797 
12798 
12799 
12800 
12801   # Publish this variable in the help.
12802 
12803 
12804   if [ -z "${WHICH+x}" ]; then
12805     # The variable is not set by user, try to locate tool using the code snippet
12806     for ac_prog in which
12807 do
12808   # Extract the first word of "$ac_prog", so it can be a program name with args.
12809 set dummy $ac_prog; ac_word=$2
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12811 $as_echo_n "checking for $ac_word... " >&6; }
12812 if ${ac_cv_path_WHICH+:} false; then :
12813   $as_echo_n "(cached) " >&6
12814 else
12815   case $WHICH in
12816   [\\/]* | ?:[\\/]*)
12817   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
12818   ;;
12819   *)
12820   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12821 for as_dir in $PATH
12822 do
12823   IFS=$as_save_IFS
12824   test -z "$as_dir" && as_dir=.
12825     for ac_exec_ext in '' $ac_executable_extensions; do
12826   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12827     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
12828     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12829     break 2
12830   fi
12831 done
12832   done
12833 IFS=$as_save_IFS
12834 
12835   ;;
12836 esac
12837 fi
12838 WHICH=$ac_cv_path_WHICH
12839 if test -n "$WHICH"; then
12840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
12841 $as_echo "$WHICH" >&6; }
12842 else
12843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12844 $as_echo "no" >&6; }
12845 fi
12846 
12847 
12848   test -n "$WHICH" && break
12849 done
12850 
12851   else
12852     # The variable is set, but is it from the command line or the environment?
12853 
12854     # Try to remove the string !WHICH! from our list.
12855     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/}
12856     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12857       # If it failed, the variable was not from the command line. Ignore it,
12858       # but warn the user (except for BASH, which is always set by the calling BASH).
12859       if test "xWHICH" != xBASH; then
12860         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5
12861 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;}
12862       fi
12863       # Try to locate tool using the code snippet
12864       for ac_prog in which
12865 do
12866   # Extract the first word of "$ac_prog", so it can be a program name with args.
12867 set dummy $ac_prog; ac_word=$2
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12869 $as_echo_n "checking for $ac_word... " >&6; }
12870 if ${ac_cv_path_WHICH+:} false; then :
12871   $as_echo_n "(cached) " >&6
12872 else
12873   case $WHICH in
12874   [\\/]* | ?:[\\/]*)
12875   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
12876   ;;
12877   *)
12878   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12879 for as_dir in $PATH
12880 do
12881   IFS=$as_save_IFS
12882   test -z "$as_dir" && as_dir=.
12883     for ac_exec_ext in '' $ac_executable_extensions; do
12884   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12885     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
12886     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12887     break 2
12888   fi
12889 done
12890   done
12891 IFS=$as_save_IFS
12892 
12893   ;;
12894 esac
12895 fi
12896 WHICH=$ac_cv_path_WHICH
12897 if test -n "$WHICH"; then
12898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
12899 $as_echo "$WHICH" >&6; }
12900 else
12901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12902 $as_echo "no" >&6; }
12903 fi
12904 
12905 
12906   test -n "$WHICH" && break
12907 done
12908 
12909     else
12910       # If it succeeded, then it was overridden by the user. We will use it
12911       # for the tool.
12912 
12913       # First remove it from the list of overridden variables, so we can test
12914       # for unknown variables in the end.
12915       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12916 
12917       # Check if we try to supply an empty value
12918       if test "x$WHICH" = x; then
12919         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool WHICH= (no value)" >&5
12920 $as_echo "$as_me: Setting user supplied tool WHICH= (no value)" >&6;}
12921         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5
12922 $as_echo_n "checking for WHICH... " >&6; }
12923         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12924 $as_echo "disabled" >&6; }
12925       else
12926         # Check if the provided tool contains a complete path.
12927         tool_specified="$WHICH"
12928         tool_basename="${tool_specified##*/}"
12929         if test "x$tool_basename" = "x$tool_specified"; then
12930           # A command without a complete path is provided, search $PATH.
12931           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5
12932 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;}
12933           # Extract the first word of "$tool_basename", so it can be a program name with args.
12934 set dummy $tool_basename; ac_word=$2
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12936 $as_echo_n "checking for $ac_word... " >&6; }
12937 if ${ac_cv_path_WHICH+:} false; then :
12938   $as_echo_n "(cached) " >&6
12939 else
12940   case $WHICH in
12941   [\\/]* | ?:[\\/]*)
12942   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
12943   ;;
12944   *)
12945   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12946 for as_dir in $PATH
12947 do
12948   IFS=$as_save_IFS
12949   test -z "$as_dir" && as_dir=.
12950     for ac_exec_ext in '' $ac_executable_extensions; do
12951   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12952     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
12953     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12954     break 2
12955   fi
12956 done
12957   done
12958 IFS=$as_save_IFS
12959 
12960   ;;
12961 esac
12962 fi
12963 WHICH=$ac_cv_path_WHICH
12964 if test -n "$WHICH"; then
12965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
12966 $as_echo "$WHICH" >&6; }
12967 else
12968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12969 $as_echo "no" >&6; }
12970 fi
12971 
12972 
12973           if test "x$WHICH" = x; then
12974             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12975           fi
12976         else
12977           # Otherwise we believe it is a complete path. Use it as it is.
12978           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5
12979 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;}
12980           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5
12981 $as_echo_n "checking for WHICH... " >&6; }
12982           if test ! -x "$tool_specified"; then
12983             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12984 $as_echo "not found" >&6; }
12985             as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5
12986           fi
12987           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12988 $as_echo "$tool_specified" >&6; }
12989         fi
12990       fi
12991     fi
12992 
12993   fi
12994 
12995 
12996 
12997   if test "x$WHICH" = x; then
12998     as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5
12999   fi
13000 
13001 
13002 
13003 
13004 
13005   # Publish this variable in the help.
13006 
13007 
13008   if [ -z "${XARGS+x}" ]; then
13009     # The variable is not set by user, try to locate tool using the code snippet
13010     for ac_prog in xargs
13011 do
13012   # Extract the first word of "$ac_prog", so it can be a program name with args.
13013 set dummy $ac_prog; ac_word=$2
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13015 $as_echo_n "checking for $ac_word... " >&6; }
13016 if ${ac_cv_path_XARGS+:} false; then :
13017   $as_echo_n "(cached) " >&6
13018 else
13019   case $XARGS in
13020   [\\/]* | ?:[\\/]*)
13021   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
13022   ;;
13023   *)
13024   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13025 for as_dir in $PATH
13026 do
13027   IFS=$as_save_IFS
13028   test -z "$as_dir" && as_dir=.
13029     for ac_exec_ext in '' $ac_executable_extensions; do
13030   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13031     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
13032     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13033     break 2
13034   fi
13035 done
13036   done
13037 IFS=$as_save_IFS
13038 
13039   ;;
13040 esac
13041 fi
13042 XARGS=$ac_cv_path_XARGS
13043 if test -n "$XARGS"; then
13044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
13045 $as_echo "$XARGS" >&6; }
13046 else
13047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13048 $as_echo "no" >&6; }
13049 fi
13050 
13051 
13052   test -n "$XARGS" && break
13053 done
13054 
13055   else
13056     # The variable is set, but is it from the command line or the environment?
13057 
13058     # Try to remove the string !XARGS! from our list.
13059     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/}
13060     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13061       # If it failed, the variable was not from the command line. Ignore it,
13062       # but warn the user (except for BASH, which is always set by the calling BASH).
13063       if test "xXARGS" != xBASH; then
13064         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5
13065 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;}
13066       fi
13067       # Try to locate tool using the code snippet
13068       for ac_prog in xargs
13069 do
13070   # Extract the first word of "$ac_prog", so it can be a program name with args.
13071 set dummy $ac_prog; ac_word=$2
13072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13073 $as_echo_n "checking for $ac_word... " >&6; }
13074 if ${ac_cv_path_XARGS+:} false; then :
13075   $as_echo_n "(cached) " >&6
13076 else
13077   case $XARGS in
13078   [\\/]* | ?:[\\/]*)
13079   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
13080   ;;
13081   *)
13082   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13083 for as_dir in $PATH
13084 do
13085   IFS=$as_save_IFS
13086   test -z "$as_dir" && as_dir=.
13087     for ac_exec_ext in '' $ac_executable_extensions; do
13088   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13089     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
13090     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13091     break 2
13092   fi
13093 done
13094   done
13095 IFS=$as_save_IFS
13096 
13097   ;;
13098 esac
13099 fi
13100 XARGS=$ac_cv_path_XARGS
13101 if test -n "$XARGS"; then
13102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
13103 $as_echo "$XARGS" >&6; }
13104 else
13105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13106 $as_echo "no" >&6; }
13107 fi
13108 
13109 
13110   test -n "$XARGS" && break
13111 done
13112 
13113     else
13114       # If it succeeded, then it was overridden by the user. We will use it
13115       # for the tool.
13116 
13117       # First remove it from the list of overridden variables, so we can test
13118       # for unknown variables in the end.
13119       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13120 
13121       # Check if we try to supply an empty value
13122       if test "x$XARGS" = x; then
13123         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool XARGS= (no value)" >&5
13124 $as_echo "$as_me: Setting user supplied tool XARGS= (no value)" >&6;}
13125         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5
13126 $as_echo_n "checking for XARGS... " >&6; }
13127         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13128 $as_echo "disabled" >&6; }
13129       else
13130         # Check if the provided tool contains a complete path.
13131         tool_specified="$XARGS"
13132         tool_basename="${tool_specified##*/}"
13133         if test "x$tool_basename" = "x$tool_specified"; then
13134           # A command without a complete path is provided, search $PATH.
13135           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5
13136 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;}
13137           # Extract the first word of "$tool_basename", so it can be a program name with args.
13138 set dummy $tool_basename; ac_word=$2
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13140 $as_echo_n "checking for $ac_word... " >&6; }
13141 if ${ac_cv_path_XARGS+:} false; then :
13142   $as_echo_n "(cached) " >&6
13143 else
13144   case $XARGS in
13145   [\\/]* | ?:[\\/]*)
13146   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
13147   ;;
13148   *)
13149   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13150 for as_dir in $PATH
13151 do
13152   IFS=$as_save_IFS
13153   test -z "$as_dir" && as_dir=.
13154     for ac_exec_ext in '' $ac_executable_extensions; do
13155   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13156     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
13157     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13158     break 2
13159   fi
13160 done
13161   done
13162 IFS=$as_save_IFS
13163 
13164   ;;
13165 esac
13166 fi
13167 XARGS=$ac_cv_path_XARGS
13168 if test -n "$XARGS"; then
13169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
13170 $as_echo "$XARGS" >&6; }
13171 else
13172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13173 $as_echo "no" >&6; }
13174 fi
13175 
13176 
13177           if test "x$XARGS" = x; then
13178             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13179           fi
13180         else
13181           # Otherwise we believe it is a complete path. Use it as it is.
13182           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5
13183 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;}
13184           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5
13185 $as_echo_n "checking for XARGS... " >&6; }
13186           if test ! -x "$tool_specified"; then
13187             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13188 $as_echo "not found" >&6; }
13189             as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5
13190           fi
13191           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13192 $as_echo "$tool_specified" >&6; }
13193         fi
13194       fi
13195     fi
13196 
13197   fi
13198 
13199 
13200 
13201   if test "x$XARGS" = x; then
13202     as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5
13203   fi
13204 
13205 
13206 
13207   # Then required tools that require some special treatment.
13208 
13209 
13210   # Publish this variable in the help.
13211 
13212 
13213   if [ -z "${AWK+x}" ]; then
13214     # The variable is not set by user, try to locate tool using the code snippet
13215     for ac_prog in gawk mawk nawk awk
13216 do
13217   # Extract the first word of "$ac_prog", so it can be a program name with args.
13218 set dummy $ac_prog; ac_word=$2
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13220 $as_echo_n "checking for $ac_word... " >&6; }
13221 if ${ac_cv_prog_AWK+:} false; then :
13222   $as_echo_n "(cached) " >&6
13223 else
13224   if test -n "$AWK"; then
13225   ac_cv_prog_AWK="$AWK" # Let the user override the test.
13226 else
13227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13228 for as_dir in $PATH
13229 do
13230   IFS=$as_save_IFS
13231   test -z "$as_dir" && as_dir=.
13232     for ac_exec_ext in '' $ac_executable_extensions; do
13233   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13234     ac_cv_prog_AWK="$ac_prog"
13235     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13236     break 2
13237   fi
13238 done
13239   done
13240 IFS=$as_save_IFS
13241 
13242 fi
13243 fi
13244 AWK=$ac_cv_prog_AWK
13245 if test -n "$AWK"; then
13246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13247 $as_echo "$AWK" >&6; }
13248 else
13249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13250 $as_echo "no" >&6; }
13251 fi
13252 
13253 
13254   test -n "$AWK" && break
13255 done
13256 
13257   else
13258     # The variable is set, but is it from the command line or the environment?
13259 
13260     # Try to remove the string !AWK! from our list.
13261     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/}
13262     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13263       # If it failed, the variable was not from the command line. Ignore it,
13264       # but warn the user (except for BASH, which is always set by the calling BASH).
13265       if test "xAWK" != xBASH; then
13266         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5
13267 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;}
13268       fi
13269       # Try to locate tool using the code snippet
13270       for ac_prog in gawk mawk nawk awk
13271 do
13272   # Extract the first word of "$ac_prog", so it can be a program name with args.
13273 set dummy $ac_prog; ac_word=$2
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13275 $as_echo_n "checking for $ac_word... " >&6; }
13276 if ${ac_cv_prog_AWK+:} false; then :
13277   $as_echo_n "(cached) " >&6
13278 else
13279   if test -n "$AWK"; then
13280   ac_cv_prog_AWK="$AWK" # Let the user override the test.
13281 else
13282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13283 for as_dir in $PATH
13284 do
13285   IFS=$as_save_IFS
13286   test -z "$as_dir" && as_dir=.
13287     for ac_exec_ext in '' $ac_executable_extensions; do
13288   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13289     ac_cv_prog_AWK="$ac_prog"
13290     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13291     break 2
13292   fi
13293 done
13294   done
13295 IFS=$as_save_IFS
13296 
13297 fi
13298 fi
13299 AWK=$ac_cv_prog_AWK
13300 if test -n "$AWK"; then
13301   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13302 $as_echo "$AWK" >&6; }
13303 else
13304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13305 $as_echo "no" >&6; }
13306 fi
13307 
13308 
13309   test -n "$AWK" && break
13310 done
13311 
13312     else
13313       # If it succeeded, then it was overridden by the user. We will use it
13314       # for the tool.
13315 
13316       # First remove it from the list of overridden variables, so we can test
13317       # for unknown variables in the end.
13318       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13319 
13320       # Check if we try to supply an empty value
13321       if test "x$AWK" = x; then
13322         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AWK= (no value)" >&5
13323 $as_echo "$as_me: Setting user supplied tool AWK= (no value)" >&6;}
13324         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5
13325 $as_echo_n "checking for AWK... " >&6; }
13326         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13327 $as_echo "disabled" >&6; }
13328       else
13329         # Check if the provided tool contains a complete path.
13330         tool_specified="$AWK"
13331         tool_basename="${tool_specified##*/}"
13332         if test "x$tool_basename" = "x$tool_specified"; then
13333           # A command without a complete path is provided, search $PATH.
13334           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5
13335 $as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;}
13336           # Extract the first word of "$tool_basename", so it can be a program name with args.
13337 set dummy $tool_basename; ac_word=$2
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13339 $as_echo_n "checking for $ac_word... " >&6; }
13340 if ${ac_cv_path_AWK+:} false; then :
13341   $as_echo_n "(cached) " >&6
13342 else
13343   case $AWK in
13344   [\\/]* | ?:[\\/]*)
13345   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
13346   ;;
13347   *)
13348   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13349 for as_dir in $PATH
13350 do
13351   IFS=$as_save_IFS
13352   test -z "$as_dir" && as_dir=.
13353     for ac_exec_ext in '' $ac_executable_extensions; do
13354   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13355     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
13356     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13357     break 2
13358   fi
13359 done
13360   done
13361 IFS=$as_save_IFS
13362 
13363   ;;
13364 esac
13365 fi
13366 AWK=$ac_cv_path_AWK
13367 if test -n "$AWK"; then
13368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13369 $as_echo "$AWK" >&6; }
13370 else
13371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13372 $as_echo "no" >&6; }
13373 fi
13374 
13375 
13376           if test "x$AWK" = x; then
13377             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13378           fi
13379         else
13380           # Otherwise we believe it is a complete path. Use it as it is.
13381           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5
13382 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;}
13383           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5
13384 $as_echo_n "checking for AWK... " >&6; }
13385           if test ! -x "$tool_specified"; then
13386             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13387 $as_echo "not found" >&6; }
13388             as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5
13389           fi
13390           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13391 $as_echo "$tool_specified" >&6; }
13392         fi
13393       fi
13394     fi
13395 
13396   fi
13397 
13398 
13399   if test "x$AWK" = x; then
13400     as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5
13401   fi
13402 
13403 
13404 
13405 
13406   # Publish this variable in the help.
13407 
13408 
13409   if [ -z "${GREP+x}" ]; then
13410     # The variable is not set by user, try to locate tool using the code snippet
13411     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
13412 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
13413 if ${ac_cv_path_GREP+:} false; then :
13414   $as_echo_n "(cached) " >&6
13415 else
13416   if test -z "$GREP"; then
13417   ac_path_GREP_found=false
13418   # Loop through the user's path and test for each of PROGNAME-LIST
13419   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13420 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13421 do
13422   IFS=$as_save_IFS
13423   test -z "$as_dir" && as_dir=.
13424     for ac_prog in grep ggrep; do
13425     for ac_exec_ext in '' $ac_executable_extensions; do
13426       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
13427       as_fn_executable_p "$ac_path_GREP" || continue
13428 # Check for GNU ac_path_GREP and select it if it is found.
13429   # Check for GNU $ac_path_GREP
13430 case `"$ac_path_GREP" --version 2>&1` in
13431 *GNU*)
13432   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
13433 *)
13434   ac_count=0
13435   $as_echo_n 0123456789 >"conftest.in"
13436   while :
13437   do
13438     cat "conftest.in" "conftest.in" >"conftest.tmp"
13439     mv "conftest.tmp" "conftest.in"
13440     cp "conftest.in" "conftest.nl"
13441     $as_echo 'GREP' >> "conftest.nl"
13442     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13443     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13444     as_fn_arith $ac_count + 1 && ac_count=$as_val
13445     if test $ac_count -gt ${ac_path_GREP_max-0}; then
13446       # Best one so far, save it but keep looking for a better one
13447       ac_cv_path_GREP="$ac_path_GREP"
13448       ac_path_GREP_max=$ac_count
13449     fi
13450     # 10*(2^10) chars as input seems more than enough
13451     test $ac_count -gt 10 && break
13452   done
13453   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13454 esac
13455 
13456       $ac_path_GREP_found && break 3
13457     done
13458   done
13459   done
13460 IFS=$as_save_IFS
13461   if test -z "$ac_cv_path_GREP"; then
13462     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13463   fi
13464 else
13465   ac_cv_path_GREP=$GREP
13466 fi
13467 
13468 fi
13469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
13470 $as_echo "$ac_cv_path_GREP" >&6; }
13471  GREP="$ac_cv_path_GREP"
13472 
13473 
13474   else
13475     # The variable is set, but is it from the command line or the environment?
13476 
13477     # Try to remove the string !GREP! from our list.
13478     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/}
13479     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13480       # If it failed, the variable was not from the command line. Ignore it,
13481       # but warn the user (except for BASH, which is always set by the calling BASH).
13482       if test "xGREP" != xBASH; then
13483         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5
13484 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;}
13485       fi
13486       # Try to locate tool using the code snippet
13487       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
13488 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
13489 if ${ac_cv_path_GREP+:} false; then :
13490   $as_echo_n "(cached) " >&6
13491 else
13492   if test -z "$GREP"; then
13493   ac_path_GREP_found=false
13494   # Loop through the user's path and test for each of PROGNAME-LIST
13495   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13496 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13497 do
13498   IFS=$as_save_IFS
13499   test -z "$as_dir" && as_dir=.
13500     for ac_prog in grep ggrep; do
13501     for ac_exec_ext in '' $ac_executable_extensions; do
13502       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
13503       as_fn_executable_p "$ac_path_GREP" || continue
13504 # Check for GNU ac_path_GREP and select it if it is found.
13505   # Check for GNU $ac_path_GREP
13506 case `"$ac_path_GREP" --version 2>&1` in
13507 *GNU*)
13508   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
13509 *)
13510   ac_count=0
13511   $as_echo_n 0123456789 >"conftest.in"
13512   while :
13513   do
13514     cat "conftest.in" "conftest.in" >"conftest.tmp"
13515     mv "conftest.tmp" "conftest.in"
13516     cp "conftest.in" "conftest.nl"
13517     $as_echo 'GREP' >> "conftest.nl"
13518     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13519     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13520     as_fn_arith $ac_count + 1 && ac_count=$as_val
13521     if test $ac_count -gt ${ac_path_GREP_max-0}; then
13522       # Best one so far, save it but keep looking for a better one
13523       ac_cv_path_GREP="$ac_path_GREP"
13524       ac_path_GREP_max=$ac_count
13525     fi
13526     # 10*(2^10) chars as input seems more than enough
13527     test $ac_count -gt 10 && break
13528   done
13529   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13530 esac
13531 
13532       $ac_path_GREP_found && break 3
13533     done
13534   done
13535   done
13536 IFS=$as_save_IFS
13537   if test -z "$ac_cv_path_GREP"; then
13538     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13539   fi
13540 else
13541   ac_cv_path_GREP=$GREP
13542 fi
13543 
13544 fi
13545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
13546 $as_echo "$ac_cv_path_GREP" >&6; }
13547  GREP="$ac_cv_path_GREP"
13548 
13549 
13550     else
13551       # If it succeeded, then it was overridden by the user. We will use it
13552       # for the tool.
13553 
13554       # First remove it from the list of overridden variables, so we can test
13555       # for unknown variables in the end.
13556       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13557 
13558       # Check if we try to supply an empty value
13559       if test "x$GREP" = x; then
13560         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GREP= (no value)" >&5
13561 $as_echo "$as_me: Setting user supplied tool GREP= (no value)" >&6;}
13562         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5
13563 $as_echo_n "checking for GREP... " >&6; }
13564         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13565 $as_echo "disabled" >&6; }
13566       else
13567         # Check if the provided tool contains a complete path.
13568         tool_specified="$GREP"
13569         tool_basename="${tool_specified##*/}"
13570         if test "x$tool_basename" = "x$tool_specified"; then
13571           # A command without a complete path is provided, search $PATH.
13572           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5
13573 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;}
13574           # Extract the first word of "$tool_basename", so it can be a program name with args.
13575 set dummy $tool_basename; ac_word=$2
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13577 $as_echo_n "checking for $ac_word... " >&6; }
13578 if ${ac_cv_path_GREP+:} false; then :
13579   $as_echo_n "(cached) " >&6
13580 else
13581   case $GREP in
13582   [\\/]* | ?:[\\/]*)
13583   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
13584   ;;
13585   *)
13586   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13587 for as_dir in $PATH
13588 do
13589   IFS=$as_save_IFS
13590   test -z "$as_dir" && as_dir=.
13591     for ac_exec_ext in '' $ac_executable_extensions; do
13592   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13593     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
13594     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13595     break 2
13596   fi
13597 done
13598   done
13599 IFS=$as_save_IFS
13600 
13601   ;;
13602 esac
13603 fi
13604 GREP=$ac_cv_path_GREP
13605 if test -n "$GREP"; then
13606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
13607 $as_echo "$GREP" >&6; }
13608 else
13609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13610 $as_echo "no" >&6; }
13611 fi
13612 
13613 
13614           if test "x$GREP" = x; then
13615             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13616           fi
13617         else
13618           # Otherwise we believe it is a complete path. Use it as it is.
13619           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5
13620 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;}
13621           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5
13622 $as_echo_n "checking for GREP... " >&6; }
13623           if test ! -x "$tool_specified"; then
13624             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13625 $as_echo "not found" >&6; }
13626             as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5
13627           fi
13628           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13629 $as_echo "$tool_specified" >&6; }
13630         fi
13631       fi
13632     fi
13633 
13634   fi
13635 
13636 
13637   if test "x$GREP" = x; then
13638     as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5
13639   fi
13640 
13641 
13642 
13643 
13644   # Publish this variable in the help.
13645 
13646 
13647   if [ -z "${EGREP+x}" ]; then
13648     # The variable is not set by user, try to locate tool using the code snippet
13649     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
13650 $as_echo_n "checking for egrep... " >&6; }
13651 if ${ac_cv_path_EGREP+:} false; then :
13652   $as_echo_n "(cached) " >&6
13653 else
13654   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
13655    then ac_cv_path_EGREP="$GREP -E"
13656    else
13657      if test -z "$EGREP"; then
13658   ac_path_EGREP_found=false
13659   # Loop through the user's path and test for each of PROGNAME-LIST
13660   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13661 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13662 do
13663   IFS=$as_save_IFS
13664   test -z "$as_dir" && as_dir=.
13665     for ac_prog in egrep; do
13666     for ac_exec_ext in '' $ac_executable_extensions; do
13667       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
13668       as_fn_executable_p "$ac_path_EGREP" || continue
13669 # Check for GNU ac_path_EGREP and select it if it is found.
13670   # Check for GNU $ac_path_EGREP
13671 case `"$ac_path_EGREP" --version 2>&1` in
13672 *GNU*)
13673   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
13674 *)
13675   ac_count=0
13676   $as_echo_n 0123456789 >"conftest.in"
13677   while :
13678   do
13679     cat "conftest.in" "conftest.in" >"conftest.tmp"
13680     mv "conftest.tmp" "conftest.in"
13681     cp "conftest.in" "conftest.nl"
13682     $as_echo 'EGREP' >> "conftest.nl"
13683     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13684     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13685     as_fn_arith $ac_count + 1 && ac_count=$as_val
13686     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
13687       # Best one so far, save it but keep looking for a better one
13688       ac_cv_path_EGREP="$ac_path_EGREP"
13689       ac_path_EGREP_max=$ac_count
13690     fi
13691     # 10*(2^10) chars as input seems more than enough
13692     test $ac_count -gt 10 && break
13693   done
13694   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13695 esac
13696 
13697       $ac_path_EGREP_found && break 3
13698     done
13699   done
13700   done
13701 IFS=$as_save_IFS
13702   if test -z "$ac_cv_path_EGREP"; then
13703     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13704   fi
13705 else
13706   ac_cv_path_EGREP=$EGREP
13707 fi
13708 
13709    fi
13710 fi
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
13712 $as_echo "$ac_cv_path_EGREP" >&6; }
13713  EGREP="$ac_cv_path_EGREP"
13714 
13715 
13716   else
13717     # The variable is set, but is it from the command line or the environment?
13718 
13719     # Try to remove the string !EGREP! from our list.
13720     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/}
13721     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13722       # If it failed, the variable was not from the command line. Ignore it,
13723       # but warn the user (except for BASH, which is always set by the calling BASH).
13724       if test "xEGREP" != xBASH; then
13725         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5
13726 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;}
13727       fi
13728       # Try to locate tool using the code snippet
13729       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
13730 $as_echo_n "checking for egrep... " >&6; }
13731 if ${ac_cv_path_EGREP+:} false; then :
13732   $as_echo_n "(cached) " >&6
13733 else
13734   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
13735    then ac_cv_path_EGREP="$GREP -E"
13736    else
13737      if test -z "$EGREP"; then
13738   ac_path_EGREP_found=false
13739   # Loop through the user's path and test for each of PROGNAME-LIST
13740   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13741 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13742 do
13743   IFS=$as_save_IFS
13744   test -z "$as_dir" && as_dir=.
13745     for ac_prog in egrep; do
13746     for ac_exec_ext in '' $ac_executable_extensions; do
13747       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
13748       as_fn_executable_p "$ac_path_EGREP" || continue
13749 # Check for GNU ac_path_EGREP and select it if it is found.
13750   # Check for GNU $ac_path_EGREP
13751 case `"$ac_path_EGREP" --version 2>&1` in
13752 *GNU*)
13753   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
13754 *)
13755   ac_count=0
13756   $as_echo_n 0123456789 >"conftest.in"
13757   while :
13758   do
13759     cat "conftest.in" "conftest.in" >"conftest.tmp"
13760     mv "conftest.tmp" "conftest.in"
13761     cp "conftest.in" "conftest.nl"
13762     $as_echo 'EGREP' >> "conftest.nl"
13763     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13764     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13765     as_fn_arith $ac_count + 1 && ac_count=$as_val
13766     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
13767       # Best one so far, save it but keep looking for a better one
13768       ac_cv_path_EGREP="$ac_path_EGREP"
13769       ac_path_EGREP_max=$ac_count
13770     fi
13771     # 10*(2^10) chars as input seems more than enough
13772     test $ac_count -gt 10 && break
13773   done
13774   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13775 esac
13776 
13777       $ac_path_EGREP_found && break 3
13778     done
13779   done
13780   done
13781 IFS=$as_save_IFS
13782   if test -z "$ac_cv_path_EGREP"; then
13783     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13784   fi
13785 else
13786   ac_cv_path_EGREP=$EGREP
13787 fi
13788 
13789    fi
13790 fi
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
13792 $as_echo "$ac_cv_path_EGREP" >&6; }
13793  EGREP="$ac_cv_path_EGREP"
13794 
13795 
13796     else
13797       # If it succeeded, then it was overridden by the user. We will use it
13798       # for the tool.
13799 
13800       # First remove it from the list of overridden variables, so we can test
13801       # for unknown variables in the end.
13802       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13803 
13804       # Check if we try to supply an empty value
13805       if test "x$EGREP" = x; then
13806         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool EGREP= (no value)" >&5
13807 $as_echo "$as_me: Setting user supplied tool EGREP= (no value)" >&6;}
13808         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5
13809 $as_echo_n "checking for EGREP... " >&6; }
13810         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13811 $as_echo "disabled" >&6; }
13812       else
13813         # Check if the provided tool contains a complete path.
13814         tool_specified="$EGREP"
13815         tool_basename="${tool_specified##*/}"
13816         if test "x$tool_basename" = "x$tool_specified"; then
13817           # A command without a complete path is provided, search $PATH.
13818           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5
13819 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;}
13820           # Extract the first word of "$tool_basename", so it can be a program name with args.
13821 set dummy $tool_basename; ac_word=$2
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13823 $as_echo_n "checking for $ac_word... " >&6; }
13824 if ${ac_cv_path_EGREP+:} false; then :
13825   $as_echo_n "(cached) " >&6
13826 else
13827   case $EGREP in
13828   [\\/]* | ?:[\\/]*)
13829   ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
13830   ;;
13831   *)
13832   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13833 for as_dir in $PATH
13834 do
13835   IFS=$as_save_IFS
13836   test -z "$as_dir" && as_dir=.
13837     for ac_exec_ext in '' $ac_executable_extensions; do
13838   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13839     ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
13840     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13841     break 2
13842   fi
13843 done
13844   done
13845 IFS=$as_save_IFS
13846 
13847   ;;
13848 esac
13849 fi
13850 EGREP=$ac_cv_path_EGREP
13851 if test -n "$EGREP"; then
13852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
13853 $as_echo "$EGREP" >&6; }
13854 else
13855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13856 $as_echo "no" >&6; }
13857 fi
13858 
13859 
13860           if test "x$EGREP" = x; then
13861             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13862           fi
13863         else
13864           # Otherwise we believe it is a complete path. Use it as it is.
13865           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5
13866 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;}
13867           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5
13868 $as_echo_n "checking for EGREP... " >&6; }
13869           if test ! -x "$tool_specified"; then
13870             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13871 $as_echo "not found" >&6; }
13872             as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
13873           fi
13874           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13875 $as_echo "$tool_specified" >&6; }
13876         fi
13877       fi
13878     fi
13879 
13880   fi
13881 
13882 
13883   if test "x$EGREP" = x; then
13884     as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5
13885   fi
13886 
13887 
13888 
13889 
13890   # Publish this variable in the help.
13891 
13892 
13893   if [ -z "${FGREP+x}" ]; then
13894     # The variable is not set by user, try to locate tool using the code snippet
13895     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13896 $as_echo_n "checking for fgrep... " >&6; }
13897 if ${ac_cv_path_FGREP+:} false; then :
13898   $as_echo_n "(cached) " >&6
13899 else
13900   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
13901    then ac_cv_path_FGREP="$GREP -F"
13902    else
13903      if test -z "$FGREP"; then
13904   ac_path_FGREP_found=false
13905   # Loop through the user's path and test for each of PROGNAME-LIST
13906   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13907 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13908 do
13909   IFS=$as_save_IFS
13910   test -z "$as_dir" && as_dir=.
13911     for ac_prog in fgrep; do
13912     for ac_exec_ext in '' $ac_executable_extensions; do
13913       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
13914       as_fn_executable_p "$ac_path_FGREP" || continue
13915 # Check for GNU ac_path_FGREP and select it if it is found.
13916   # Check for GNU $ac_path_FGREP
13917 case `"$ac_path_FGREP" --version 2>&1` in
13918 *GNU*)
13919   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
13920 *)
13921   ac_count=0
13922   $as_echo_n 0123456789 >"conftest.in"
13923   while :
13924   do
13925     cat "conftest.in" "conftest.in" >"conftest.tmp"
13926     mv "conftest.tmp" "conftest.in"
13927     cp "conftest.in" "conftest.nl"
13928     $as_echo 'FGREP' >> "conftest.nl"
13929     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
13930     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13931     as_fn_arith $ac_count + 1 && ac_count=$as_val
13932     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13933       # Best one so far, save it but keep looking for a better one
13934       ac_cv_path_FGREP="$ac_path_FGREP"
13935       ac_path_FGREP_max=$ac_count
13936     fi
13937     # 10*(2^10) chars as input seems more than enough
13938     test $ac_count -gt 10 && break
13939   done
13940   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13941 esac
13942 
13943       $ac_path_FGREP_found && break 3
13944     done
13945   done
13946   done
13947 IFS=$as_save_IFS
13948   if test -z "$ac_cv_path_FGREP"; then
13949     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13950   fi
13951 else
13952   ac_cv_path_FGREP=$FGREP
13953 fi
13954 
13955    fi
13956 fi
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13958 $as_echo "$ac_cv_path_FGREP" >&6; }
13959  FGREP="$ac_cv_path_FGREP"
13960 
13961 
13962   else
13963     # The variable is set, but is it from the command line or the environment?
13964 
13965     # Try to remove the string !FGREP! from our list.
13966     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/}
13967     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13968       # If it failed, the variable was not from the command line. Ignore it,
13969       # but warn the user (except for BASH, which is always set by the calling BASH).
13970       if test "xFGREP" != xBASH; then
13971         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5
13972 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;}
13973       fi
13974       # Try to locate tool using the code snippet
13975       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13976 $as_echo_n "checking for fgrep... " >&6; }
13977 if ${ac_cv_path_FGREP+:} false; then :
13978   $as_echo_n "(cached) " >&6
13979 else
13980   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
13981    then ac_cv_path_FGREP="$GREP -F"
13982    else
13983      if test -z "$FGREP"; then
13984   ac_path_FGREP_found=false
13985   # Loop through the user's path and test for each of PROGNAME-LIST
13986   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13987 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13988 do
13989   IFS=$as_save_IFS
13990   test -z "$as_dir" && as_dir=.
13991     for ac_prog in fgrep; do
13992     for ac_exec_ext in '' $ac_executable_extensions; do
13993       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
13994       as_fn_executable_p "$ac_path_FGREP" || continue
13995 # Check for GNU ac_path_FGREP and select it if it is found.
13996   # Check for GNU $ac_path_FGREP
13997 case `"$ac_path_FGREP" --version 2>&1` in
13998 *GNU*)
13999   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
14000 *)
14001   ac_count=0
14002   $as_echo_n 0123456789 >"conftest.in"
14003   while :
14004   do
14005     cat "conftest.in" "conftest.in" >"conftest.tmp"
14006     mv "conftest.tmp" "conftest.in"
14007     cp "conftest.in" "conftest.nl"
14008     $as_echo 'FGREP' >> "conftest.nl"
14009     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
14010     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
14011     as_fn_arith $ac_count + 1 && ac_count=$as_val
14012     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
14013       # Best one so far, save it but keep looking for a better one
14014       ac_cv_path_FGREP="$ac_path_FGREP"
14015       ac_path_FGREP_max=$ac_count
14016     fi
14017     # 10*(2^10) chars as input seems more than enough
14018     test $ac_count -gt 10 && break
14019   done
14020   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
14021 esac
14022 
14023       $ac_path_FGREP_found && break 3
14024     done
14025   done
14026   done
14027 IFS=$as_save_IFS
14028   if test -z "$ac_cv_path_FGREP"; then
14029     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
14030   fi
14031 else
14032   ac_cv_path_FGREP=$FGREP
14033 fi
14034 
14035    fi
14036 fi
14037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
14038 $as_echo "$ac_cv_path_FGREP" >&6; }
14039  FGREP="$ac_cv_path_FGREP"
14040 
14041 
14042     else
14043       # If it succeeded, then it was overridden by the user. We will use it
14044       # for the tool.
14045 
14046       # First remove it from the list of overridden variables, so we can test
14047       # for unknown variables in the end.
14048       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14049 
14050       # Check if we try to supply an empty value
14051       if test "x$FGREP" = x; then
14052         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FGREP= (no value)" >&5
14053 $as_echo "$as_me: Setting user supplied tool FGREP= (no value)" >&6;}
14054         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5
14055 $as_echo_n "checking for FGREP... " >&6; }
14056         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14057 $as_echo "disabled" >&6; }
14058       else
14059         # Check if the provided tool contains a complete path.
14060         tool_specified="$FGREP"
14061         tool_basename="${tool_specified##*/}"
14062         if test "x$tool_basename" = "x$tool_specified"; then
14063           # A command without a complete path is provided, search $PATH.
14064           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5
14065 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;}
14066           # Extract the first word of "$tool_basename", so it can be a program name with args.
14067 set dummy $tool_basename; ac_word=$2
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14069 $as_echo_n "checking for $ac_word... " >&6; }
14070 if ${ac_cv_path_FGREP+:} false; then :
14071   $as_echo_n "(cached) " >&6
14072 else
14073   case $FGREP in
14074   [\\/]* | ?:[\\/]*)
14075   ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path.
14076   ;;
14077   *)
14078   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14079 for as_dir in $PATH
14080 do
14081   IFS=$as_save_IFS
14082   test -z "$as_dir" && as_dir=.
14083     for ac_exec_ext in '' $ac_executable_extensions; do
14084   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14085     ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext"
14086     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14087     break 2
14088   fi
14089 done
14090   done
14091 IFS=$as_save_IFS
14092 
14093   ;;
14094 esac
14095 fi
14096 FGREP=$ac_cv_path_FGREP
14097 if test -n "$FGREP"; then
14098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5
14099 $as_echo "$FGREP" >&6; }
14100 else
14101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14102 $as_echo "no" >&6; }
14103 fi
14104 
14105 
14106           if test "x$FGREP" = x; then
14107             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14108           fi
14109         else
14110           # Otherwise we believe it is a complete path. Use it as it is.
14111           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5
14112 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;}
14113           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5
14114 $as_echo_n "checking for FGREP... " >&6; }
14115           if test ! -x "$tool_specified"; then
14116             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14117 $as_echo "not found" >&6; }
14118             as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
14119           fi
14120           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14121 $as_echo "$tool_specified" >&6; }
14122         fi
14123       fi
14124     fi
14125 
14126   fi
14127 
14128 
14129   if test "x$FGREP" = x; then
14130     as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5
14131   fi
14132 
14133 
14134 
14135 
14136   # Publish this variable in the help.
14137 
14138 
14139   if [ -z "${SED+x}" ]; then
14140     # The variable is not set by user, try to locate tool using the code snippet
14141     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
14142 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
14143 if ${ac_cv_path_SED+:} false; then :
14144   $as_echo_n "(cached) " >&6
14145 else
14146             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
14147      for ac_i in 1 2 3 4 5 6 7; do
14148        ac_script="$ac_script$as_nl$ac_script"
14149      done
14150      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
14151      { ac_script=; unset ac_script;}
14152      if test -z "$SED"; then
14153   ac_path_SED_found=false
14154   # Loop through the user's path and test for each of PROGNAME-LIST
14155   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14156 for as_dir in $PATH
14157 do
14158   IFS=$as_save_IFS
14159   test -z "$as_dir" && as_dir=.
14160     for ac_prog in sed gsed; do
14161     for ac_exec_ext in '' $ac_executable_extensions; do
14162       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
14163       as_fn_executable_p "$ac_path_SED" || continue
14164 # Check for GNU ac_path_SED and select it if it is found.
14165   # Check for GNU $ac_path_SED
14166 case `"$ac_path_SED" --version 2>&1` in
14167 *GNU*)
14168   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
14169 *)
14170   ac_count=0
14171   $as_echo_n 0123456789 >"conftest.in"
14172   while :
14173   do
14174     cat "conftest.in" "conftest.in" >"conftest.tmp"
14175     mv "conftest.tmp" "conftest.in"
14176     cp "conftest.in" "conftest.nl"
14177     $as_echo '' >> "conftest.nl"
14178     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
14179     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
14180     as_fn_arith $ac_count + 1 && ac_count=$as_val
14181     if test $ac_count -gt ${ac_path_SED_max-0}; then
14182       # Best one so far, save it but keep looking for a better one
14183       ac_cv_path_SED="$ac_path_SED"
14184       ac_path_SED_max=$ac_count
14185     fi
14186     # 10*(2^10) chars as input seems more than enough
14187     test $ac_count -gt 10 && break
14188   done
14189   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
14190 esac
14191 
14192       $ac_path_SED_found && break 3
14193     done
14194   done
14195   done
14196 IFS=$as_save_IFS
14197   if test -z "$ac_cv_path_SED"; then
14198     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
14199   fi
14200 else
14201   ac_cv_path_SED=$SED
14202 fi
14203 
14204 fi
14205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
14206 $as_echo "$ac_cv_path_SED" >&6; }
14207  SED="$ac_cv_path_SED"
14208   rm -f conftest.sed
14209 
14210   else
14211     # The variable is set, but is it from the command line or the environment?
14212 
14213     # Try to remove the string !SED! from our list.
14214     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/}
14215     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14216       # If it failed, the variable was not from the command line. Ignore it,
14217       # but warn the user (except for BASH, which is always set by the calling BASH).
14218       if test "xSED" != xBASH; then
14219         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5
14220 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;}
14221       fi
14222       # Try to locate tool using the code snippet
14223       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
14224 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
14225 if ${ac_cv_path_SED+:} false; then :
14226   $as_echo_n "(cached) " >&6
14227 else
14228             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
14229      for ac_i in 1 2 3 4 5 6 7; do
14230        ac_script="$ac_script$as_nl$ac_script"
14231      done
14232      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
14233      { ac_script=; unset ac_script;}
14234      if test -z "$SED"; then
14235   ac_path_SED_found=false
14236   # Loop through the user's path and test for each of PROGNAME-LIST
14237   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14238 for as_dir in $PATH
14239 do
14240   IFS=$as_save_IFS
14241   test -z "$as_dir" && as_dir=.
14242     for ac_prog in sed gsed; do
14243     for ac_exec_ext in '' $ac_executable_extensions; do
14244       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
14245       as_fn_executable_p "$ac_path_SED" || continue
14246 # Check for GNU ac_path_SED and select it if it is found.
14247   # Check for GNU $ac_path_SED
14248 case `"$ac_path_SED" --version 2>&1` in
14249 *GNU*)
14250   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
14251 *)
14252   ac_count=0
14253   $as_echo_n 0123456789 >"conftest.in"
14254   while :
14255   do
14256     cat "conftest.in" "conftest.in" >"conftest.tmp"
14257     mv "conftest.tmp" "conftest.in"
14258     cp "conftest.in" "conftest.nl"
14259     $as_echo '' >> "conftest.nl"
14260     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
14261     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
14262     as_fn_arith $ac_count + 1 && ac_count=$as_val
14263     if test $ac_count -gt ${ac_path_SED_max-0}; then
14264       # Best one so far, save it but keep looking for a better one
14265       ac_cv_path_SED="$ac_path_SED"
14266       ac_path_SED_max=$ac_count
14267     fi
14268     # 10*(2^10) chars as input seems more than enough
14269     test $ac_count -gt 10 && break
14270   done
14271   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
14272 esac
14273 
14274       $ac_path_SED_found && break 3
14275     done
14276   done
14277   done
14278 IFS=$as_save_IFS
14279   if test -z "$ac_cv_path_SED"; then
14280     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
14281   fi
14282 else
14283   ac_cv_path_SED=$SED
14284 fi
14285 
14286 fi
14287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
14288 $as_echo "$ac_cv_path_SED" >&6; }
14289  SED="$ac_cv_path_SED"
14290   rm -f conftest.sed
14291 
14292     else
14293       # If it succeeded, then it was overridden by the user. We will use it
14294       # for the tool.
14295 
14296       # First remove it from the list of overridden variables, so we can test
14297       # for unknown variables in the end.
14298       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14299 
14300       # Check if we try to supply an empty value
14301       if test "x$SED" = x; then
14302         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SED= (no value)" >&5
14303 $as_echo "$as_me: Setting user supplied tool SED= (no value)" >&6;}
14304         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5
14305 $as_echo_n "checking for SED... " >&6; }
14306         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14307 $as_echo "disabled" >&6; }
14308       else
14309         # Check if the provided tool contains a complete path.
14310         tool_specified="$SED"
14311         tool_basename="${tool_specified##*/}"
14312         if test "x$tool_basename" = "x$tool_specified"; then
14313           # A command without a complete path is provided, search $PATH.
14314           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5
14315 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;}
14316           # Extract the first word of "$tool_basename", so it can be a program name with args.
14317 set dummy $tool_basename; ac_word=$2
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14319 $as_echo_n "checking for $ac_word... " >&6; }
14320 if ${ac_cv_path_SED+:} false; then :
14321   $as_echo_n "(cached) " >&6
14322 else
14323   case $SED in
14324   [\\/]* | ?:[\\/]*)
14325   ac_cv_path_SED="$SED" # Let the user override the test with a path.
14326   ;;
14327   *)
14328   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14329 for as_dir in $PATH
14330 do
14331   IFS=$as_save_IFS
14332   test -z "$as_dir" && as_dir=.
14333     for ac_exec_ext in '' $ac_executable_extensions; do
14334   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14335     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
14336     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14337     break 2
14338   fi
14339 done
14340   done
14341 IFS=$as_save_IFS
14342 
14343   ;;
14344 esac
14345 fi
14346 SED=$ac_cv_path_SED
14347 if test -n "$SED"; then
14348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
14349 $as_echo "$SED" >&6; }
14350 else
14351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14352 $as_echo "no" >&6; }
14353 fi
14354 
14355 
14356           if test "x$SED" = x; then
14357             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14358           fi
14359         else
14360           # Otherwise we believe it is a complete path. Use it as it is.
14361           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5
14362 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;}
14363           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5
14364 $as_echo_n "checking for SED... " >&6; }
14365           if test ! -x "$tool_specified"; then
14366             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14367 $as_echo "not found" >&6; }
14368             as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5
14369           fi
14370           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14371 $as_echo "$tool_specified" >&6; }
14372         fi
14373       fi
14374     fi
14375 
14376   fi
14377 
14378 
14379   if test "x$SED" = x; then
14380     as_fn_error $? "Could not find required tool for SED" "$LINENO" 5
14381   fi
14382 
14383 
14384 
14385   # Always force rm.
14386   RM="$RM -f"
14387 
14388   # pwd behaves differently on various platforms and some don't support the -L flag.
14389   # Always use the bash builtin pwd to get uniform behavior.
14390   THEPWDCMD=pwd
14391 
14392   # These are not required on all platforms
14393 
14394 
14395   # Publish this variable in the help.
14396 
14397 
14398   if [ -z "${CYGPATH+x}" ]; then
14399     # The variable is not set by user, try to locate tool using the code snippet
14400     for ac_prog in cygpath
14401 do
14402   # Extract the first word of "$ac_prog", so it can be a program name with args.
14403 set dummy $ac_prog; ac_word=$2
14404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14405 $as_echo_n "checking for $ac_word... " >&6; }
14406 if ${ac_cv_path_CYGPATH+:} false; then :
14407   $as_echo_n "(cached) " >&6
14408 else
14409   case $CYGPATH in
14410   [\\/]* | ?:[\\/]*)
14411   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
14412   ;;
14413   *)
14414   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14415 for as_dir in $PATH
14416 do
14417   IFS=$as_save_IFS
14418   test -z "$as_dir" && as_dir=.
14419     for ac_exec_ext in '' $ac_executable_extensions; do
14420   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14421     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
14422     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14423     break 2
14424   fi
14425 done
14426   done
14427 IFS=$as_save_IFS
14428 
14429   ;;
14430 esac
14431 fi
14432 CYGPATH=$ac_cv_path_CYGPATH
14433 if test -n "$CYGPATH"; then
14434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
14435 $as_echo "$CYGPATH" >&6; }
14436 else
14437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14438 $as_echo "no" >&6; }
14439 fi
14440 
14441 
14442   test -n "$CYGPATH" && break
14443 done
14444 
14445   else
14446     # The variable is set, but is it from the command line or the environment?
14447 
14448     # Try to remove the string !CYGPATH! from our list.
14449     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/}
14450     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14451       # If it failed, the variable was not from the command line. Ignore it,
14452       # but warn the user (except for BASH, which is always set by the calling BASH).
14453       if test "xCYGPATH" != xBASH; then
14454         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5
14455 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;}
14456       fi
14457       # Try to locate tool using the code snippet
14458       for ac_prog in cygpath
14459 do
14460   # Extract the first word of "$ac_prog", so it can be a program name with args.
14461 set dummy $ac_prog; ac_word=$2
14462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14463 $as_echo_n "checking for $ac_word... " >&6; }
14464 if ${ac_cv_path_CYGPATH+:} false; then :
14465   $as_echo_n "(cached) " >&6
14466 else
14467   case $CYGPATH in
14468   [\\/]* | ?:[\\/]*)
14469   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
14470   ;;
14471   *)
14472   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14473 for as_dir in $PATH
14474 do
14475   IFS=$as_save_IFS
14476   test -z "$as_dir" && as_dir=.
14477     for ac_exec_ext in '' $ac_executable_extensions; do
14478   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14479     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
14480     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14481     break 2
14482   fi
14483 done
14484   done
14485 IFS=$as_save_IFS
14486 
14487   ;;
14488 esac
14489 fi
14490 CYGPATH=$ac_cv_path_CYGPATH
14491 if test -n "$CYGPATH"; then
14492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
14493 $as_echo "$CYGPATH" >&6; }
14494 else
14495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14496 $as_echo "no" >&6; }
14497 fi
14498 
14499 
14500   test -n "$CYGPATH" && break
14501 done
14502 
14503     else
14504       # If it succeeded, then it was overridden by the user. We will use it
14505       # for the tool.
14506 
14507       # First remove it from the list of overridden variables, so we can test
14508       # for unknown variables in the end.
14509       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14510 
14511       # Check if we try to supply an empty value
14512       if test "x$CYGPATH" = x; then
14513         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CYGPATH= (no value)" >&5
14514 $as_echo "$as_me: Setting user supplied tool CYGPATH= (no value)" >&6;}
14515         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5
14516 $as_echo_n "checking for CYGPATH... " >&6; }
14517         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14518 $as_echo "disabled" >&6; }
14519       else
14520         # Check if the provided tool contains a complete path.
14521         tool_specified="$CYGPATH"
14522         tool_basename="${tool_specified##*/}"
14523         if test "x$tool_basename" = "x$tool_specified"; then
14524           # A command without a complete path is provided, search $PATH.
14525           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5
14526 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;}
14527           # Extract the first word of "$tool_basename", so it can be a program name with args.
14528 set dummy $tool_basename; ac_word=$2
14529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14530 $as_echo_n "checking for $ac_word... " >&6; }
14531 if ${ac_cv_path_CYGPATH+:} false; then :
14532   $as_echo_n "(cached) " >&6
14533 else
14534   case $CYGPATH in
14535   [\\/]* | ?:[\\/]*)
14536   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
14537   ;;
14538   *)
14539   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14540 for as_dir in $PATH
14541 do
14542   IFS=$as_save_IFS
14543   test -z "$as_dir" && as_dir=.
14544     for ac_exec_ext in '' $ac_executable_extensions; do
14545   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14546     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
14547     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14548     break 2
14549   fi
14550 done
14551   done
14552 IFS=$as_save_IFS
14553 
14554   ;;
14555 esac
14556 fi
14557 CYGPATH=$ac_cv_path_CYGPATH
14558 if test -n "$CYGPATH"; then
14559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
14560 $as_echo "$CYGPATH" >&6; }
14561 else
14562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14563 $as_echo "no" >&6; }
14564 fi
14565 
14566 
14567           if test "x$CYGPATH" = x; then
14568             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14569           fi
14570         else
14571           # Otherwise we believe it is a complete path. Use it as it is.
14572           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5
14573 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;}
14574           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5
14575 $as_echo_n "checking for CYGPATH... " >&6; }
14576           if test ! -x "$tool_specified"; then
14577             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14578 $as_echo "not found" >&6; }
14579             as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5
14580           fi
14581           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14582 $as_echo "$tool_specified" >&6; }
14583         fi
14584       fi
14585     fi
14586 
14587   fi
14588 
14589 
14590 
14591 
14592   # Publish this variable in the help.
14593 
14594 
14595   if [ -z "${READLINK+x}" ]; then
14596     # The variable is not set by user, try to locate tool using the code snippet
14597     for ac_prog in greadlink readlink
14598 do
14599   # Extract the first word of "$ac_prog", so it can be a program name with args.
14600 set dummy $ac_prog; ac_word=$2
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14602 $as_echo_n "checking for $ac_word... " >&6; }
14603 if ${ac_cv_path_READLINK+:} false; then :
14604   $as_echo_n "(cached) " >&6
14605 else
14606   case $READLINK in
14607   [\\/]* | ?:[\\/]*)
14608   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
14609   ;;
14610   *)
14611   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14612 for as_dir in $PATH
14613 do
14614   IFS=$as_save_IFS
14615   test -z "$as_dir" && as_dir=.
14616     for ac_exec_ext in '' $ac_executable_extensions; do
14617   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14618     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
14619     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14620     break 2
14621   fi
14622 done
14623   done
14624 IFS=$as_save_IFS
14625 
14626   ;;
14627 esac
14628 fi
14629 READLINK=$ac_cv_path_READLINK
14630 if test -n "$READLINK"; then
14631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
14632 $as_echo "$READLINK" >&6; }
14633 else
14634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14635 $as_echo "no" >&6; }
14636 fi
14637 
14638 
14639   test -n "$READLINK" && break
14640 done
14641 
14642   else
14643     # The variable is set, but is it from the command line or the environment?
14644 
14645     # Try to remove the string !READLINK! from our list.
14646     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/}
14647     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14648       # If it failed, the variable was not from the command line. Ignore it,
14649       # but warn the user (except for BASH, which is always set by the calling BASH).
14650       if test "xREADLINK" != xBASH; then
14651         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5
14652 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;}
14653       fi
14654       # Try to locate tool using the code snippet
14655       for ac_prog in greadlink readlink
14656 do
14657   # Extract the first word of "$ac_prog", so it can be a program name with args.
14658 set dummy $ac_prog; ac_word=$2
14659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14660 $as_echo_n "checking for $ac_word... " >&6; }
14661 if ${ac_cv_path_READLINK+:} false; then :
14662   $as_echo_n "(cached) " >&6
14663 else
14664   case $READLINK in
14665   [\\/]* | ?:[\\/]*)
14666   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
14667   ;;
14668   *)
14669   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14670 for as_dir in $PATH
14671 do
14672   IFS=$as_save_IFS
14673   test -z "$as_dir" && as_dir=.
14674     for ac_exec_ext in '' $ac_executable_extensions; do
14675   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14676     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
14677     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14678     break 2
14679   fi
14680 done
14681   done
14682 IFS=$as_save_IFS
14683 
14684   ;;
14685 esac
14686 fi
14687 READLINK=$ac_cv_path_READLINK
14688 if test -n "$READLINK"; then
14689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
14690 $as_echo "$READLINK" >&6; }
14691 else
14692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14693 $as_echo "no" >&6; }
14694 fi
14695 
14696 
14697   test -n "$READLINK" && break
14698 done
14699 
14700     else
14701       # If it succeeded, then it was overridden by the user. We will use it
14702       # for the tool.
14703 
14704       # First remove it from the list of overridden variables, so we can test
14705       # for unknown variables in the end.
14706       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14707 
14708       # Check if we try to supply an empty value
14709       if test "x$READLINK" = x; then
14710         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool READLINK= (no value)" >&5
14711 $as_echo "$as_me: Setting user supplied tool READLINK= (no value)" >&6;}
14712         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5
14713 $as_echo_n "checking for READLINK... " >&6; }
14714         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14715 $as_echo "disabled" >&6; }
14716       else
14717         # Check if the provided tool contains a complete path.
14718         tool_specified="$READLINK"
14719         tool_basename="${tool_specified##*/}"
14720         if test "x$tool_basename" = "x$tool_specified"; then
14721           # A command without a complete path is provided, search $PATH.
14722           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5
14723 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;}
14724           # Extract the first word of "$tool_basename", so it can be a program name with args.
14725 set dummy $tool_basename; ac_word=$2
14726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14727 $as_echo_n "checking for $ac_word... " >&6; }
14728 if ${ac_cv_path_READLINK+:} false; then :
14729   $as_echo_n "(cached) " >&6
14730 else
14731   case $READLINK in
14732   [\\/]* | ?:[\\/]*)
14733   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
14734   ;;
14735   *)
14736   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14737 for as_dir in $PATH
14738 do
14739   IFS=$as_save_IFS
14740   test -z "$as_dir" && as_dir=.
14741     for ac_exec_ext in '' $ac_executable_extensions; do
14742   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14743     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
14744     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14745     break 2
14746   fi
14747 done
14748   done
14749 IFS=$as_save_IFS
14750 
14751   ;;
14752 esac
14753 fi
14754 READLINK=$ac_cv_path_READLINK
14755 if test -n "$READLINK"; then
14756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
14757 $as_echo "$READLINK" >&6; }
14758 else
14759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14760 $as_echo "no" >&6; }
14761 fi
14762 
14763 
14764           if test "x$READLINK" = x; then
14765             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14766           fi
14767         else
14768           # Otherwise we believe it is a complete path. Use it as it is.
14769           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5
14770 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;}
14771           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5
14772 $as_echo_n "checking for READLINK... " >&6; }
14773           if test ! -x "$tool_specified"; then
14774             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14775 $as_echo "not found" >&6; }
14776             as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5
14777           fi
14778           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14779 $as_echo "$tool_specified" >&6; }
14780         fi
14781       fi
14782     fi
14783 
14784   fi
14785 
14786 
14787 
14788 
14789   # Publish this variable in the help.
14790 
14791 
14792   if [ -z "${DF+x}" ]; then
14793     # The variable is not set by user, try to locate tool using the code snippet
14794     for ac_prog in df
14795 do
14796   # Extract the first word of "$ac_prog", so it can be a program name with args.
14797 set dummy $ac_prog; ac_word=$2
14798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14799 $as_echo_n "checking for $ac_word... " >&6; }
14800 if ${ac_cv_path_DF+:} false; then :
14801   $as_echo_n "(cached) " >&6
14802 else
14803   case $DF in
14804   [\\/]* | ?:[\\/]*)
14805   ac_cv_path_DF="$DF" # Let the user override the test with a path.
14806   ;;
14807   *)
14808   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14809 for as_dir in $PATH
14810 do
14811   IFS=$as_save_IFS
14812   test -z "$as_dir" && as_dir=.
14813     for ac_exec_ext in '' $ac_executable_extensions; do
14814   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14815     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
14816     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14817     break 2
14818   fi
14819 done
14820   done
14821 IFS=$as_save_IFS
14822 
14823   ;;
14824 esac
14825 fi
14826 DF=$ac_cv_path_DF
14827 if test -n "$DF"; then
14828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
14829 $as_echo "$DF" >&6; }
14830 else
14831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14832 $as_echo "no" >&6; }
14833 fi
14834 
14835 
14836   test -n "$DF" && break
14837 done
14838 
14839   else
14840     # The variable is set, but is it from the command line or the environment?
14841 
14842     # Try to remove the string !DF! from our list.
14843     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/}
14844     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14845       # If it failed, the variable was not from the command line. Ignore it,
14846       # but warn the user (except for BASH, which is always set by the calling BASH).
14847       if test "xDF" != xBASH; then
14848         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5
14849 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;}
14850       fi
14851       # Try to locate tool using the code snippet
14852       for ac_prog in df
14853 do
14854   # Extract the first word of "$ac_prog", so it can be a program name with args.
14855 set dummy $ac_prog; ac_word=$2
14856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14857 $as_echo_n "checking for $ac_word... " >&6; }
14858 if ${ac_cv_path_DF+:} false; then :
14859   $as_echo_n "(cached) " >&6
14860 else
14861   case $DF in
14862   [\\/]* | ?:[\\/]*)
14863   ac_cv_path_DF="$DF" # Let the user override the test with a path.
14864   ;;
14865   *)
14866   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14867 for as_dir in $PATH
14868 do
14869   IFS=$as_save_IFS
14870   test -z "$as_dir" && as_dir=.
14871     for ac_exec_ext in '' $ac_executable_extensions; do
14872   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14873     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
14874     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14875     break 2
14876   fi
14877 done
14878   done
14879 IFS=$as_save_IFS
14880 
14881   ;;
14882 esac
14883 fi
14884 DF=$ac_cv_path_DF
14885 if test -n "$DF"; then
14886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
14887 $as_echo "$DF" >&6; }
14888 else
14889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14890 $as_echo "no" >&6; }
14891 fi
14892 
14893 
14894   test -n "$DF" && break
14895 done
14896 
14897     else
14898       # If it succeeded, then it was overridden by the user. We will use it
14899       # for the tool.
14900 
14901       # First remove it from the list of overridden variables, so we can test
14902       # for unknown variables in the end.
14903       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14904 
14905       # Check if we try to supply an empty value
14906       if test "x$DF" = x; then
14907         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DF= (no value)" >&5
14908 $as_echo "$as_me: Setting user supplied tool DF= (no value)" >&6;}
14909         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5
14910 $as_echo_n "checking for DF... " >&6; }
14911         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14912 $as_echo "disabled" >&6; }
14913       else
14914         # Check if the provided tool contains a complete path.
14915         tool_specified="$DF"
14916         tool_basename="${tool_specified##*/}"
14917         if test "x$tool_basename" = "x$tool_specified"; then
14918           # A command without a complete path is provided, search $PATH.
14919           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5
14920 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;}
14921           # Extract the first word of "$tool_basename", so it can be a program name with args.
14922 set dummy $tool_basename; ac_word=$2
14923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14924 $as_echo_n "checking for $ac_word... " >&6; }
14925 if ${ac_cv_path_DF+:} false; then :
14926   $as_echo_n "(cached) " >&6
14927 else
14928   case $DF in
14929   [\\/]* | ?:[\\/]*)
14930   ac_cv_path_DF="$DF" # Let the user override the test with a path.
14931   ;;
14932   *)
14933   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14934 for as_dir in $PATH
14935 do
14936   IFS=$as_save_IFS
14937   test -z "$as_dir" && as_dir=.
14938     for ac_exec_ext in '' $ac_executable_extensions; do
14939   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14940     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
14941     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14942     break 2
14943   fi
14944 done
14945   done
14946 IFS=$as_save_IFS
14947 
14948   ;;
14949 esac
14950 fi
14951 DF=$ac_cv_path_DF
14952 if test -n "$DF"; then
14953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
14954 $as_echo "$DF" >&6; }
14955 else
14956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14957 $as_echo "no" >&6; }
14958 fi
14959 
14960 
14961           if test "x$DF" = x; then
14962             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14963           fi
14964         else
14965           # Otherwise we believe it is a complete path. Use it as it is.
14966           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5
14967 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;}
14968           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5
14969 $as_echo_n "checking for DF... " >&6; }
14970           if test ! -x "$tool_specified"; then
14971             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14972 $as_echo "not found" >&6; }
14973             as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5
14974           fi
14975           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14976 $as_echo "$tool_specified" >&6; }
14977         fi
14978       fi
14979     fi
14980 
14981   fi
14982 
14983 
14984 
14985 
14986   # Publish this variable in the help.
14987 
14988 
14989   if [ -z "${CPIO+x}" ]; then
14990     # The variable is not set by user, try to locate tool using the code snippet
14991     for ac_prog in cpio bsdcpio
14992 do
14993   # Extract the first word of "$ac_prog", so it can be a program name with args.
14994 set dummy $ac_prog; ac_word=$2
14995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14996 $as_echo_n "checking for $ac_word... " >&6; }
14997 if ${ac_cv_path_CPIO+:} false; then :
14998   $as_echo_n "(cached) " >&6
14999 else
15000   case $CPIO in
15001   [\\/]* | ?:[\\/]*)
15002   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
15003   ;;
15004   *)
15005   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15006 for as_dir in $PATH
15007 do
15008   IFS=$as_save_IFS
15009   test -z "$as_dir" && as_dir=.
15010     for ac_exec_ext in '' $ac_executable_extensions; do
15011   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15012     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
15013     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15014     break 2
15015   fi
15016 done
15017   done
15018 IFS=$as_save_IFS
15019 
15020   ;;
15021 esac
15022 fi
15023 CPIO=$ac_cv_path_CPIO
15024 if test -n "$CPIO"; then
15025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
15026 $as_echo "$CPIO" >&6; }
15027 else
15028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15029 $as_echo "no" >&6; }
15030 fi
15031 
15032 
15033   test -n "$CPIO" && break
15034 done
15035 
15036   else
15037     # The variable is set, but is it from the command line or the environment?
15038 
15039     # Try to remove the string !CPIO! from our list.
15040     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/}
15041     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
15042       # If it failed, the variable was not from the command line. Ignore it,
15043       # but warn the user (except for BASH, which is always set by the calling BASH).
15044       if test "xCPIO" != xBASH; then
15045         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5
15046 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;}
15047       fi
15048       # Try to locate tool using the code snippet
15049       for ac_prog in cpio bsdcpio
15050 do
15051   # Extract the first word of "$ac_prog", so it can be a program name with args.
15052 set dummy $ac_prog; ac_word=$2
15053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15054 $as_echo_n "checking for $ac_word... " >&6; }
15055 if ${ac_cv_path_CPIO+:} false; then :
15056   $as_echo_n "(cached) " >&6
15057 else
15058   case $CPIO in
15059   [\\/]* | ?:[\\/]*)
15060   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
15061   ;;
15062   *)
15063   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15064 for as_dir in $PATH
15065 do
15066   IFS=$as_save_IFS
15067   test -z "$as_dir" && as_dir=.
15068     for ac_exec_ext in '' $ac_executable_extensions; do
15069   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15070     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
15071     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15072     break 2
15073   fi
15074 done
15075   done
15076 IFS=$as_save_IFS
15077 
15078   ;;
15079 esac
15080 fi
15081 CPIO=$ac_cv_path_CPIO
15082 if test -n "$CPIO"; then
15083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
15084 $as_echo "$CPIO" >&6; }
15085 else
15086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15087 $as_echo "no" >&6; }
15088 fi
15089 
15090 
15091   test -n "$CPIO" && break
15092 done
15093 
15094     else
15095       # If it succeeded, then it was overridden by the user. We will use it
15096       # for the tool.
15097 
15098       # First remove it from the list of overridden variables, so we can test
15099       # for unknown variables in the end.
15100       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
15101 
15102       # Check if we try to supply an empty value
15103       if test "x$CPIO" = x; then
15104         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CPIO= (no value)" >&5
15105 $as_echo "$as_me: Setting user supplied tool CPIO= (no value)" >&6;}
15106         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5
15107 $as_echo_n "checking for CPIO... " >&6; }
15108         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
15109 $as_echo "disabled" >&6; }
15110       else
15111         # Check if the provided tool contains a complete path.
15112         tool_specified="$CPIO"
15113         tool_basename="${tool_specified##*/}"
15114         if test "x$tool_basename" = "x$tool_specified"; then
15115           # A command without a complete path is provided, search $PATH.
15116           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5
15117 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;}
15118           # Extract the first word of "$tool_basename", so it can be a program name with args.
15119 set dummy $tool_basename; ac_word=$2
15120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15121 $as_echo_n "checking for $ac_word... " >&6; }
15122 if ${ac_cv_path_CPIO+:} false; then :
15123   $as_echo_n "(cached) " >&6
15124 else
15125   case $CPIO in
15126   [\\/]* | ?:[\\/]*)
15127   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
15128   ;;
15129   *)
15130   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15131 for as_dir in $PATH
15132 do
15133   IFS=$as_save_IFS
15134   test -z "$as_dir" && as_dir=.
15135     for ac_exec_ext in '' $ac_executable_extensions; do
15136   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15137     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
15138     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15139     break 2
15140   fi
15141 done
15142   done
15143 IFS=$as_save_IFS
15144 
15145   ;;
15146 esac
15147 fi
15148 CPIO=$ac_cv_path_CPIO
15149 if test -n "$CPIO"; then
15150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
15151 $as_echo "$CPIO" >&6; }
15152 else
15153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15154 $as_echo "no" >&6; }
15155 fi
15156 
15157 
15158           if test "x$CPIO" = x; then
15159             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
15160           fi
15161         else
15162           # Otherwise we believe it is a complete path. Use it as it is.
15163           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5
15164 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;}
15165           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5
15166 $as_echo_n "checking for CPIO... " >&6; }
15167           if test ! -x "$tool_specified"; then
15168             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15169 $as_echo "not found" >&6; }
15170             as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5
15171           fi
15172           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
15173 $as_echo "$tool_specified" >&6; }
15174         fi
15175       fi
15176     fi
15177 
15178   fi
15179 
15180 
15181 
15182 
15183   # Publish this variable in the help.
15184 
15185 
15186   if [ -z "${NICE+x}" ]; then
15187     # The variable is not set by user, try to locate tool using the code snippet
15188     for ac_prog in nice
15189 do
15190   # Extract the first word of "$ac_prog", so it can be a program name with args.
15191 set dummy $ac_prog; ac_word=$2
15192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15193 $as_echo_n "checking for $ac_word... " >&6; }
15194 if ${ac_cv_path_NICE+:} false; then :
15195   $as_echo_n "(cached) " >&6
15196 else
15197   case $NICE in
15198   [\\/]* | ?:[\\/]*)
15199   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
15200   ;;
15201   *)
15202   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15203 for as_dir in $PATH
15204 do
15205   IFS=$as_save_IFS
15206   test -z "$as_dir" && as_dir=.
15207     for ac_exec_ext in '' $ac_executable_extensions; do
15208   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15209     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
15210     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15211     break 2
15212   fi
15213 done
15214   done
15215 IFS=$as_save_IFS
15216 
15217   ;;
15218 esac
15219 fi
15220 NICE=$ac_cv_path_NICE
15221 if test -n "$NICE"; then
15222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5
15223 $as_echo "$NICE" >&6; }
15224 else
15225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15226 $as_echo "no" >&6; }
15227 fi
15228 
15229 
15230   test -n "$NICE" && break
15231 done
15232 
15233   else
15234     # The variable is set, but is it from the command line or the environment?
15235 
15236     # Try to remove the string !NICE! from our list.
15237     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NICE!/}
15238     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
15239       # If it failed, the variable was not from the command line. Ignore it,
15240       # but warn the user (except for BASH, which is always set by the calling BASH).
15241       if test "xNICE" != xBASH; then
15242         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NICE from the environment. Use command line variables instead." >&5
15243 $as_echo "$as_me: WARNING: Ignoring value of NICE from the environment. Use command line variables instead." >&2;}
15244       fi
15245       # Try to locate tool using the code snippet
15246       for ac_prog in nice
15247 do
15248   # Extract the first word of "$ac_prog", so it can be a program name with args.
15249 set dummy $ac_prog; ac_word=$2
15250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15251 $as_echo_n "checking for $ac_word... " >&6; }
15252 if ${ac_cv_path_NICE+:} false; then :
15253   $as_echo_n "(cached) " >&6
15254 else
15255   case $NICE in
15256   [\\/]* | ?:[\\/]*)
15257   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
15258   ;;
15259   *)
15260   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15261 for as_dir in $PATH
15262 do
15263   IFS=$as_save_IFS
15264   test -z "$as_dir" && as_dir=.
15265     for ac_exec_ext in '' $ac_executable_extensions; do
15266   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15267     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
15268     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15269     break 2
15270   fi
15271 done
15272   done
15273 IFS=$as_save_IFS
15274 
15275   ;;
15276 esac
15277 fi
15278 NICE=$ac_cv_path_NICE
15279 if test -n "$NICE"; then
15280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5
15281 $as_echo "$NICE" >&6; }
15282 else
15283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15284 $as_echo "no" >&6; }
15285 fi
15286 
15287 
15288   test -n "$NICE" && break
15289 done
15290 
15291     else
15292       # If it succeeded, then it was overridden by the user. We will use it
15293       # for the tool.
15294 
15295       # First remove it from the list of overridden variables, so we can test
15296       # for unknown variables in the end.
15297       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
15298 
15299       # Check if we try to supply an empty value
15300       if test "x$NICE" = x; then
15301         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NICE= (no value)" >&5
15302 $as_echo "$as_me: Setting user supplied tool NICE= (no value)" >&6;}
15303         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NICE" >&5
15304 $as_echo_n "checking for NICE... " >&6; }
15305         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
15306 $as_echo "disabled" >&6; }
15307       else
15308         # Check if the provided tool contains a complete path.
15309         tool_specified="$NICE"
15310         tool_basename="${tool_specified##*/}"
15311         if test "x$tool_basename" = "x$tool_specified"; then
15312           # A command without a complete path is provided, search $PATH.
15313           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NICE=$tool_basename" >&5
15314 $as_echo "$as_me: Will search for user supplied tool NICE=$tool_basename" >&6;}
15315           # Extract the first word of "$tool_basename", so it can be a program name with args.
15316 set dummy $tool_basename; ac_word=$2
15317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15318 $as_echo_n "checking for $ac_word... " >&6; }
15319 if ${ac_cv_path_NICE+:} false; then :
15320   $as_echo_n "(cached) " >&6
15321 else
15322   case $NICE in
15323   [\\/]* | ?:[\\/]*)
15324   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
15325   ;;
15326   *)
15327   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15328 for as_dir in $PATH
15329 do
15330   IFS=$as_save_IFS
15331   test -z "$as_dir" && as_dir=.
15332     for ac_exec_ext in '' $ac_executable_extensions; do
15333   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15334     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
15335     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15336     break 2
15337   fi
15338 done
15339   done
15340 IFS=$as_save_IFS
15341 
15342   ;;
15343 esac
15344 fi
15345 NICE=$ac_cv_path_NICE
15346 if test -n "$NICE"; then
15347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5
15348 $as_echo "$NICE" >&6; }
15349 else
15350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15351 $as_echo "no" >&6; }
15352 fi
15353 
15354 
15355           if test "x$NICE" = x; then
15356             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
15357           fi
15358         else
15359           # Otherwise we believe it is a complete path. Use it as it is.
15360           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NICE=$tool_specified" >&5
15361 $as_echo "$as_me: Will use user supplied tool NICE=$tool_specified" >&6;}
15362           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NICE" >&5
15363 $as_echo_n "checking for NICE... " >&6; }
15364           if test ! -x "$tool_specified"; then
15365             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15366 $as_echo "not found" >&6; }
15367             as_fn_error $? "User supplied tool NICE=$tool_specified does not exist or is not executable" "$LINENO" 5
15368           fi
15369           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
15370 $as_echo "$tool_specified" >&6; }
15371         fi
15372       fi
15373     fi
15374 
15375   fi
15376 
15377 
15378 
15379 
15380   # Publish this variable in the help.
15381 
15382 
15383   if [ -z "${PANDOC+x}" ]; then
15384     # The variable is not set by user, try to locate tool using the code snippet
15385     for ac_prog in pandoc
15386 do
15387   # Extract the first word of "$ac_prog", so it can be a program name with args.
15388 set dummy $ac_prog; ac_word=$2
15389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15390 $as_echo_n "checking for $ac_word... " >&6; }
15391 if ${ac_cv_path_PANDOC+:} false; then :
15392   $as_echo_n "(cached) " >&6
15393 else
15394   case $PANDOC in
15395   [\\/]* | ?:[\\/]*)
15396   ac_cv_path_PANDOC="$PANDOC" # Let the user override the test with a path.
15397   ;;
15398   *)
15399   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15400 for as_dir in $PATH
15401 do
15402   IFS=$as_save_IFS
15403   test -z "$as_dir" && as_dir=.
15404     for ac_exec_ext in '' $ac_executable_extensions; do
15405   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15406     ac_cv_path_PANDOC="$as_dir/$ac_word$ac_exec_ext"
15407     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15408     break 2
15409   fi
15410 done
15411   done
15412 IFS=$as_save_IFS
15413 
15414   ;;
15415 esac
15416 fi
15417 PANDOC=$ac_cv_path_PANDOC
15418 if test -n "$PANDOC"; then
15419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANDOC" >&5
15420 $as_echo "$PANDOC" >&6; }
15421 else
15422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15423 $as_echo "no" >&6; }
15424 fi
15425 
15426 
15427   test -n "$PANDOC" && break
15428 done
15429 
15430   else
15431     # The variable is set, but is it from the command line or the environment?
15432 
15433     # Try to remove the string !PANDOC! from our list.
15434     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PANDOC!/}
15435     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
15436       # If it failed, the variable was not from the command line. Ignore it,
15437       # but warn the user (except for BASH, which is always set by the calling BASH).
15438       if test "xPANDOC" != xBASH; then
15439         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PANDOC from the environment. Use command line variables instead." >&5
15440 $as_echo "$as_me: WARNING: Ignoring value of PANDOC from the environment. Use command line variables instead." >&2;}
15441       fi
15442       # Try to locate tool using the code snippet
15443       for ac_prog in pandoc
15444 do
15445   # Extract the first word of "$ac_prog", so it can be a program name with args.
15446 set dummy $ac_prog; ac_word=$2
15447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15448 $as_echo_n "checking for $ac_word... " >&6; }
15449 if ${ac_cv_path_PANDOC+:} false; then :
15450   $as_echo_n "(cached) " >&6
15451 else
15452   case $PANDOC in
15453   [\\/]* | ?:[\\/]*)
15454   ac_cv_path_PANDOC="$PANDOC" # Let the user override the test with a path.
15455   ;;
15456   *)
15457   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15458 for as_dir in $PATH
15459 do
15460   IFS=$as_save_IFS
15461   test -z "$as_dir" && as_dir=.
15462     for ac_exec_ext in '' $ac_executable_extensions; do
15463   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15464     ac_cv_path_PANDOC="$as_dir/$ac_word$ac_exec_ext"
15465     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15466     break 2
15467   fi
15468 done
15469   done
15470 IFS=$as_save_IFS
15471 
15472   ;;
15473 esac
15474 fi
15475 PANDOC=$ac_cv_path_PANDOC
15476 if test -n "$PANDOC"; then
15477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANDOC" >&5
15478 $as_echo "$PANDOC" >&6; }
15479 else
15480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15481 $as_echo "no" >&6; }
15482 fi
15483 
15484 
15485   test -n "$PANDOC" && break
15486 done
15487 
15488     else
15489       # If it succeeded, then it was overridden by the user. We will use it
15490       # for the tool.
15491 
15492       # First remove it from the list of overridden variables, so we can test
15493       # for unknown variables in the end.
15494       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
15495 
15496       # Check if we try to supply an empty value
15497       if test "x$PANDOC" = x; then
15498         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PANDOC= (no value)" >&5
15499 $as_echo "$as_me: Setting user supplied tool PANDOC= (no value)" >&6;}
15500         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANDOC" >&5
15501 $as_echo_n "checking for PANDOC... " >&6; }
15502         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
15503 $as_echo "disabled" >&6; }
15504       else
15505         # Check if the provided tool contains a complete path.
15506         tool_specified="$PANDOC"
15507         tool_basename="${tool_specified##*/}"
15508         if test "x$tool_basename" = "x$tool_specified"; then
15509           # A command without a complete path is provided, search $PATH.
15510           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PANDOC=$tool_basename" >&5
15511 $as_echo "$as_me: Will search for user supplied tool PANDOC=$tool_basename" >&6;}
15512           # Extract the first word of "$tool_basename", so it can be a program name with args.
15513 set dummy $tool_basename; ac_word=$2
15514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15515 $as_echo_n "checking for $ac_word... " >&6; }
15516 if ${ac_cv_path_PANDOC+:} false; then :
15517   $as_echo_n "(cached) " >&6
15518 else
15519   case $PANDOC in
15520   [\\/]* | ?:[\\/]*)
15521   ac_cv_path_PANDOC="$PANDOC" # Let the user override the test with a path.
15522   ;;
15523   *)
15524   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15525 for as_dir in $PATH
15526 do
15527   IFS=$as_save_IFS
15528   test -z "$as_dir" && as_dir=.
15529     for ac_exec_ext in '' $ac_executable_extensions; do
15530   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15531     ac_cv_path_PANDOC="$as_dir/$ac_word$ac_exec_ext"
15532     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15533     break 2
15534   fi
15535 done
15536   done
15537 IFS=$as_save_IFS
15538 
15539   ;;
15540 esac
15541 fi
15542 PANDOC=$ac_cv_path_PANDOC
15543 if test -n "$PANDOC"; then
15544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANDOC" >&5
15545 $as_echo "$PANDOC" >&6; }
15546 else
15547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15548 $as_echo "no" >&6; }
15549 fi
15550 
15551 
15552           if test "x$PANDOC" = x; then
15553             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
15554           fi
15555         else
15556           # Otherwise we believe it is a complete path. Use it as it is.
15557           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PANDOC=$tool_specified" >&5
15558 $as_echo "$as_me: Will use user supplied tool PANDOC=$tool_specified" >&6;}
15559           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANDOC" >&5
15560 $as_echo_n "checking for PANDOC... " >&6; }
15561           if test ! -x "$tool_specified"; then
15562             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15563 $as_echo "not found" >&6; }
15564             as_fn_error $? "User supplied tool PANDOC=$tool_specified does not exist or is not executable" "$LINENO" 5
15565           fi
15566           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
15567 $as_echo "$tool_specified" >&6; }
15568         fi
15569       fi
15570     fi
15571 
15572   fi
15573 
15574 
15575 
15576 
15577 # Now we can determine OpenJDK build and target platforms. This is required to
15578 # have early on.
15579 # Make sure we can run config.sub.
15580 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
15581   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
15582 
15583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
15584 $as_echo_n "checking build system type... " >&6; }
15585 if ${ac_cv_build+:} false; then :
15586   $as_echo_n "(cached) " >&6
15587 else
15588   ac_build_alias=$build_alias
15589 test "x$ac_build_alias" = x &&
15590   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
15591 test "x$ac_build_alias" = x &&
15592   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
15593 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
15594   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
15595 
15596 fi
15597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
15598 $as_echo "$ac_cv_build" >&6; }
15599 case $ac_cv_build in
15600 *-*-*) ;;
15601 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
15602 esac
15603 build=$ac_cv_build
15604 ac_save_IFS=$IFS; IFS='-'
15605 set x $ac_cv_build
15606 shift
15607 build_cpu=$1
15608 build_vendor=$2
15609 shift; shift
15610 # Remember, the first character of IFS is used to create $*,
15611 # except with old shells:
15612 build_os=$*
15613 IFS=$ac_save_IFS
15614 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
15615 
15616 
15617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
15618 $as_echo_n "checking host system type... " >&6; }
15619 if ${ac_cv_host+:} false; then :
15620   $as_echo_n "(cached) " >&6
15621 else
15622   if test "x$host_alias" = x; then
15623   ac_cv_host=$ac_cv_build
15624 else
15625   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
15626     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
15627 fi
15628 
15629 fi
15630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
15631 $as_echo "$ac_cv_host" >&6; }
15632 case $ac_cv_host in
15633 *-*-*) ;;
15634 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
15635 esac
15636 host=$ac_cv_host
15637 ac_save_IFS=$IFS; IFS='-'
15638 set x $ac_cv_host
15639 shift
15640 host_cpu=$1
15641 host_vendor=$2
15642 shift; shift
15643 # Remember, the first character of IFS is used to create $*,
15644 # except with old shells:
15645 host_os=$*
15646 IFS=$ac_save_IFS
15647 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
15648 
15649 
15650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
15651 $as_echo_n "checking target system type... " >&6; }
15652 if ${ac_cv_target+:} false; then :
15653   $as_echo_n "(cached) " >&6
15654 else
15655   if test "x$target_alias" = x; then
15656   ac_cv_target=$ac_cv_host
15657 else
15658   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
15659     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
15660 fi
15661 
15662 fi
15663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
15664 $as_echo "$ac_cv_target" >&6; }
15665 case $ac_cv_target in
15666 *-*-*) ;;
15667 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
15668 esac
15669 target=$ac_cv_target
15670 ac_save_IFS=$IFS; IFS='-'
15671 set x $ac_cv_target
15672 shift
15673 target_cpu=$1
15674 target_vendor=$2
15675 shift; shift
15676 # Remember, the first character of IFS is used to create $*,
15677 # except with old shells:
15678 target_os=$*
15679 IFS=$ac_save_IFS
15680 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
15681 
15682 
15683 # The aliases save the names the user supplied, while $host etc.
15684 # will get canonicalized.
15685 test -n "$target_alias" &&
15686   test "$program_prefix$program_suffix$program_transform_name" = \
15687     NONENONEs,x,x, &&
15688   program_prefix=${target_alias}-
15689 
15690   # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target"
15691   # is confusing; it assumes you are cross-compiling a cross-compiler (!)  and "target" is thus the target of the
15692   # product you're building. The target of this build is called "host". Since this is confusing to most people, we
15693   # have not adopted that system, but use "target" as the platform we are building for. In some places though we need
15694   # to use the configure naming style.
15695 
15696 
15697 
15698 
15699 
15700   # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME
15701   # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME
15702   # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build,
15703   # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME.
15704   OPENJDK_TARGET_AUTOCONF_NAME="$host"
15705   OPENJDK_BUILD_AUTOCONF_NAME="$build"
15706 
15707 
15708 
15709   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
15710 
15711   case "$build_os" in
15712     *linux*)
15713       VAR_OS=linux
15714       VAR_OS_TYPE=unix
15715       ;;
15716     *solaris*)
15717       VAR_OS=solaris
15718       VAR_OS_TYPE=unix
15719       ;;
15720     *darwin*)
15721       VAR_OS=macosx
15722       VAR_OS_TYPE=unix
15723       ;;
15724     *bsd*)
15725       VAR_OS=bsd
15726       VAR_OS_TYPE=unix
15727       ;;
15728     *cygwin*)
15729       VAR_OS=windows
15730       VAR_OS_ENV=windows.cygwin
15731       ;;
15732     *mingw*)
15733       VAR_OS=windows
15734       VAR_OS_ENV=windows.msys
15735       ;;
15736     *aix*)
15737       VAR_OS=aix
15738       VAR_OS_TYPE=unix
15739       ;;
15740     *)
15741       as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5
15742       ;;
15743   esac
15744 
15745 
15746   # First argument is the cpu name from the trip/quad
15747   case "$build_cpu" in
15748     x86_64)
15749       VAR_CPU=x86_64
15750       VAR_CPU_ARCH=x86
15751       VAR_CPU_BITS=64
15752       VAR_CPU_ENDIAN=little
15753       ;;
15754     i?86)
15755       VAR_CPU=x86
15756       VAR_CPU_ARCH=x86
15757       VAR_CPU_BITS=32
15758       VAR_CPU_ENDIAN=little
15759       ;;
15760     arm*)
15761       VAR_CPU=arm
15762       VAR_CPU_ARCH=arm
15763       VAR_CPU_BITS=32
15764       VAR_CPU_ENDIAN=little
15765       ;;
15766     aarch64)
15767       VAR_CPU=aarch64
15768       VAR_CPU_ARCH=aarch64
15769       VAR_CPU_BITS=64
15770       VAR_CPU_ENDIAN=little
15771       ;;
15772     powerpc)
15773       VAR_CPU=ppc
15774       VAR_CPU_ARCH=ppc
15775       VAR_CPU_BITS=32
15776       VAR_CPU_ENDIAN=big
15777       ;;
15778     powerpc64)
15779       VAR_CPU=ppc64
15780       VAR_CPU_ARCH=ppc
15781       VAR_CPU_BITS=64
15782       VAR_CPU_ENDIAN=big
15783       ;;
15784     powerpc64le)
15785       VAR_CPU=ppc64le
15786       VAR_CPU_ARCH=ppc
15787       VAR_CPU_BITS=64
15788       VAR_CPU_ENDIAN=little
15789       ;;
15790     s390)
15791       VAR_CPU=s390
15792       VAR_CPU_ARCH=s390
15793       VAR_CPU_BITS=32
15794       VAR_CPU_ENDIAN=big
15795       ;;
15796     s390x)
15797       VAR_CPU=s390x
15798       VAR_CPU_ARCH=s390
15799       VAR_CPU_BITS=64
15800       VAR_CPU_ENDIAN=big
15801       ;;
15802     sparc)
15803       VAR_CPU=sparc
15804       VAR_CPU_ARCH=sparc
15805       VAR_CPU_BITS=32
15806       VAR_CPU_ENDIAN=big
15807       ;;
15808     sparcv9|sparc64)
15809       VAR_CPU=sparcv9
15810       VAR_CPU_ARCH=sparc
15811       VAR_CPU_BITS=64
15812       VAR_CPU_ENDIAN=big
15813       ;;
15814     *)
15815       as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5
15816       ;;
15817   esac
15818 
15819   # ..and setup our own variables. (Do this explicitly to facilitate searching)
15820   OPENJDK_BUILD_OS="$VAR_OS"
15821   if test "x$VAR_OS_TYPE" != x; then
15822     OPENJDK_BUILD_OS_TYPE="$VAR_OS_TYPE"
15823   else
15824     OPENJDK_BUILD_OS_TYPE="$VAR_OS"
15825   fi
15826   if test "x$VAR_OS_ENV" != x; then
15827     OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV"
15828   else
15829     OPENJDK_BUILD_OS_ENV="$VAR_OS"
15830   fi
15831   OPENJDK_BUILD_CPU="$VAR_CPU"
15832   OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH"
15833   OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS"
15834   OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN"
15835 
15836 
15837 
15838 
15839 
15840 
15841 
15842 
15843   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5
15844 $as_echo_n "checking openjdk-build os-cpu... " >&6; }
15845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5
15846 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; }
15847 
15848   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
15849 
15850   case "$host_os" in
15851     *linux*)
15852       VAR_OS=linux
15853       VAR_OS_TYPE=unix
15854       ;;
15855     *solaris*)
15856       VAR_OS=solaris
15857       VAR_OS_TYPE=unix
15858       ;;
15859     *darwin*)
15860       VAR_OS=macosx
15861       VAR_OS_TYPE=unix
15862       ;;
15863     *bsd*)
15864       VAR_OS=bsd
15865       VAR_OS_TYPE=unix
15866       ;;
15867     *cygwin*)
15868       VAR_OS=windows
15869       VAR_OS_ENV=windows.cygwin
15870       ;;
15871     *mingw*)
15872       VAR_OS=windows
15873       VAR_OS_ENV=windows.msys
15874       ;;
15875     *aix*)
15876       VAR_OS=aix
15877       VAR_OS_TYPE=unix
15878       ;;
15879     *)
15880       as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5
15881       ;;
15882   esac
15883 
15884 
15885   # First argument is the cpu name from the trip/quad
15886   case "$host_cpu" in
15887     x86_64)
15888       VAR_CPU=x86_64
15889       VAR_CPU_ARCH=x86
15890       VAR_CPU_BITS=64
15891       VAR_CPU_ENDIAN=little
15892       ;;
15893     i?86)
15894       VAR_CPU=x86
15895       VAR_CPU_ARCH=x86
15896       VAR_CPU_BITS=32
15897       VAR_CPU_ENDIAN=little
15898       ;;
15899     arm*)
15900       VAR_CPU=arm
15901       VAR_CPU_ARCH=arm
15902       VAR_CPU_BITS=32
15903       VAR_CPU_ENDIAN=little
15904       ;;
15905     aarch64)
15906       VAR_CPU=aarch64
15907       VAR_CPU_ARCH=aarch64
15908       VAR_CPU_BITS=64
15909       VAR_CPU_ENDIAN=little
15910       ;;
15911     powerpc)
15912       VAR_CPU=ppc
15913       VAR_CPU_ARCH=ppc
15914       VAR_CPU_BITS=32
15915       VAR_CPU_ENDIAN=big
15916       ;;
15917     powerpc64)
15918       VAR_CPU=ppc64
15919       VAR_CPU_ARCH=ppc
15920       VAR_CPU_BITS=64
15921       VAR_CPU_ENDIAN=big
15922       ;;
15923     powerpc64le)
15924       VAR_CPU=ppc64le
15925       VAR_CPU_ARCH=ppc
15926       VAR_CPU_BITS=64
15927       VAR_CPU_ENDIAN=little
15928       ;;
15929     s390)
15930       VAR_CPU=s390
15931       VAR_CPU_ARCH=s390
15932       VAR_CPU_BITS=32
15933       VAR_CPU_ENDIAN=big
15934       ;;
15935     s390x)
15936       VAR_CPU=s390x
15937       VAR_CPU_ARCH=s390
15938       VAR_CPU_BITS=64
15939       VAR_CPU_ENDIAN=big
15940       ;;
15941     sparc)
15942       VAR_CPU=sparc
15943       VAR_CPU_ARCH=sparc
15944       VAR_CPU_BITS=32
15945       VAR_CPU_ENDIAN=big
15946       ;;
15947     sparcv9|sparc64)
15948       VAR_CPU=sparcv9
15949       VAR_CPU_ARCH=sparc
15950       VAR_CPU_BITS=64
15951       VAR_CPU_ENDIAN=big
15952       ;;
15953     *)
15954       as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5
15955       ;;
15956   esac
15957 
15958   # ... and setup our own variables. (Do this explicitly to facilitate searching)
15959   OPENJDK_TARGET_OS="$VAR_OS"
15960   if test "x$VAR_OS_TYPE" != x; then
15961     OPENJDK_TARGET_OS_TYPE="$VAR_OS_TYPE"
15962   else
15963     OPENJDK_TARGET_OS_TYPE="$VAR_OS"
15964   fi
15965   if test "x$VAR_OS_ENV" != x; then
15966     OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV"
15967   else
15968     OPENJDK_TARGET_OS_ENV="$VAR_OS"
15969   fi
15970   OPENJDK_TARGET_CPU="$VAR_CPU"
15971   OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH"
15972   OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS"
15973   OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN"
15974 
15975 
15976 
15977 
15978 
15979 
15980 
15981 
15982   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5
15983 $as_echo_n "checking openjdk-target os-cpu... " >&6; }
15984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5
15985 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; }
15986 
15987 
15988 
15989 # Check whether --with-target-bits was given.
15990 if test "${with_target_bits+set}" = set; then :
15991   withval=$with_target_bits;
15992 fi
15993 
15994 
15995   # We have three types of compiles:
15996   # native  == normal compilation, target system == build system
15997   # cross   == traditional cross compilation, target system != build system; special toolchain needed
15998   # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines
15999   #
16000   if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then
16001     # We're doing a proper cross-compilation
16002     COMPILE_TYPE="cross"
16003   else
16004     COMPILE_TYPE="native"
16005   fi
16006 
16007   if test "x$with_target_bits" != x; then
16008     if test "x$COMPILE_TYPE" = "xcross"; then
16009       as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5
16010     fi
16011 
16012     if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
16013       # A reduced build is requested
16014       COMPILE_TYPE="reduced"
16015       OPENJDK_TARGET_CPU_BITS=32
16016       if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then
16017         OPENJDK_TARGET_CPU=x86
16018       elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then
16019         OPENJDK_TARGET_CPU=sparc
16020       else
16021         as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5
16022       fi
16023     elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
16024       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
16025     elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then
16026       { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5
16027 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;}
16028     else
16029       as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5
16030     fi
16031   fi
16032 
16033 
16034   { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5
16035 $as_echo_n "checking compilation type... " >&6; }
16036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5
16037 $as_echo "$COMPILE_TYPE" >&6; }
16038 
16039 
16040   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
16041     OPENJDK_MODULE_TARGET_OS_NAME="macos"
16042   else
16043     OPENJDK_MODULE_TARGET_OS_NAME="$OPENJDK_TARGET_OS"
16044   fi
16045 
16046   if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
16047     OPENJDK_MODULE_TARGET_OS_ARCH="amd64"
16048   else
16049     OPENJDK_MODULE_TARGET_OS_ARCH="$OPENJDK_TARGET_CPU"
16050   fi
16051 
16052   OPENJDK_MODULE_TARGET_PLATFORM="${OPENJDK_MODULE_TARGET_OS_NAME}-${OPENJDK_MODULE_TARGET_OS_ARCH}"
16053 
16054 
16055 
16056   if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
16057     RELEASE_FILE_OS_NAME=SunOS
16058   fi
16059   if test "x$OPENJDK_TARGET_OS" = "xlinux"; then
16060     RELEASE_FILE_OS_NAME=Linux
16061   fi
16062   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
16063     RELEASE_FILE_OS_NAME=Windows
16064   fi
16065   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
16066     RELEASE_FILE_OS_NAME="Darwin"
16067   fi
16068   if test "x$OPENJDK_TARGET_OS" = "xaix"; then
16069     RELEASE_FILE_OS_NAME="AIX"
16070   fi
16071   RELEASE_FILE_OS_ARCH=${OPENJDK_TARGET_CPU}
16072 
16073 
16074 
16075 
16076 
16077 
16078   # Also store the legacy naming of the cpu.
16079   # Ie i586 and amd64 instead of x86 and x86_64
16080   OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU"
16081   if test "x$OPENJDK_TARGET_CPU" = xx86; then
16082     OPENJDK_TARGET_CPU_LEGACY="i586"
16083   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
16084     # On all platforms except MacOSX replace x86_64 with amd64.
16085     OPENJDK_TARGET_CPU_LEGACY="amd64"
16086   fi
16087 
16088 
16089   # And the second legacy naming of the cpu.
16090   # Ie i386 and amd64 instead of x86 and x86_64.
16091   OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU"
16092   if test "x$OPENJDK_TARGET_CPU" = xx86; then
16093     OPENJDK_TARGET_CPU_LEGACY_LIB="i386"
16094   elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then
16095     OPENJDK_TARGET_CPU_LEGACY_LIB="amd64"
16096   fi
16097 
16098 
16099   # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to
16100   # /amd64 or /sparcv9. This string is appended to some library paths, like this:
16101   # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so
16102   OPENJDK_TARGET_CPU_ISADIR=""
16103   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
16104     if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
16105       OPENJDK_TARGET_CPU_ISADIR="/amd64"
16106     elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
16107       OPENJDK_TARGET_CPU_ISADIR="/sparcv9"
16108     fi
16109   fi
16110 
16111 
16112   # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property
16113   OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU"
16114   if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then
16115     # On linux only, we replace x86 with i386.
16116     OPENJDK_TARGET_CPU_OSARCH="i386"
16117   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
16118     # On all platforms except macosx, we replace x86_64 with amd64.
16119     OPENJDK_TARGET_CPU_OSARCH="amd64"
16120   fi
16121 
16122 
16123   OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU"
16124   if test "x$OPENJDK_TARGET_CPU" = xx86; then
16125     OPENJDK_TARGET_CPU_JLI="i386"
16126   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
16127     # On all platforms except macosx, we replace x86_64 with amd64.
16128     OPENJDK_TARGET_CPU_JLI="amd64"
16129   fi
16130 
16131   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
16132       OPENJDK_TARGET_OS_EXPORT_DIR=macosx
16133   else
16134       OPENJDK_TARGET_OS_EXPORT_DIR=${OPENJDK_TARGET_OS_TYPE}
16135   fi
16136 
16137 
16138   # The new version string in JDK 9 also defined new naming of OS and ARCH for bundles
16139   # Macosx is osx and x86_64 is x64
16140   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
16141     OPENJDK_TARGET_OS_BUNDLE="osx"
16142   else
16143     OPENJDK_TARGET_OS_BUNDLE="$OPENJDK_TARGET_OS"
16144   fi
16145   if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
16146     OPENJDK_TARGET_CPU_BUNDLE="x64"
16147   else
16148     OPENJDK_TARGET_CPU_BUNDLE="$OPENJDK_TARGET_CPU"
16149   fi
16150   OPENJDK_TARGET_BUNDLE_PLATFORM="${OPENJDK_TARGET_OS_BUNDLE}-${OPENJDK_TARGET_CPU_BUNDLE}"
16151 
16152 
16153   if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
16154     # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in
16155     # unpack200.exe. This variable is used in
16156     # FLAGS_SETUP_COMPILER_FLAGS_FOR_JDK_HELPER.
16157     if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then
16158       OPENJDK_TARGET_ADD_LP64="-D_LP64=1"
16159     fi
16160   fi
16161 
16162   if test "x$COMPILE_TYPE" = "xcross"; then
16163     # FIXME: ... or should this include reduced builds..?
16164     DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY"
16165   else
16166     DEFINE_CROSS_COMPILE_ARCH=""
16167   fi
16168 
16169 
16170   # Convert openjdk platform names to hotspot names
16171 
16172   HOTSPOT_TARGET_OS=${OPENJDK_TARGET_OS}
16173   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
16174     HOTSPOT_TARGET_OS=bsd
16175   fi
16176 
16177 
16178   HOTSPOT_TARGET_OS_TYPE=${OPENJDK_TARGET_OS_TYPE}
16179   if test "x$OPENJDK_TARGET_OS_TYPE" = xunix; then
16180     HOTSPOT_TARGET_OS_TYPE=posix
16181   fi
16182 
16183 
16184   HOTSPOT_TARGET_CPU=${OPENJDK_TARGET_CPU}
16185   if test "x$OPENJDK_TARGET_CPU" = xx86; then
16186     HOTSPOT_TARGET_CPU=x86_32
16187   elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
16188     HOTSPOT_TARGET_CPU=sparc
16189   elif test "x$OPENJDK_TARGET_CPU" = xppc64; then
16190     HOTSPOT_TARGET_CPU=ppc_64
16191   elif test "x$OPENJDK_TARGET_CPU" = xppc64le; then
16192     HOTSPOT_TARGET_CPU=ppc_64
16193   fi
16194 
16195 
16196   # This is identical with OPENJDK_*, but define anyway for consistency.
16197   HOTSPOT_TARGET_CPU_ARCH=${OPENJDK_TARGET_CPU_ARCH}
16198 
16199 
16200   # Setup HOTSPOT_TARGET_CPU_DEFINE
16201   if test "x$OPENJDK_TARGET_CPU" = xx86; then
16202     HOTSPOT_TARGET_CPU_DEFINE=IA32
16203   elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then
16204     HOTSPOT_TARGET_CPU_DEFINE=AMD64
16205   elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
16206     HOTSPOT_TARGET_CPU_DEFINE=SPARC
16207   elif test "x$OPENJDK_TARGET_CPU" = xaarch64; then
16208     HOTSPOT_TARGET_CPU_DEFINE=AARCH64
16209   elif test "x$OPENJDK_TARGET_CPU" = xppc64; then
16210     HOTSPOT_TARGET_CPU_DEFINE=PPC64
16211   elif test "x$OPENJDK_TARGET_CPU" = xppc64le; then
16212     HOTSPOT_TARGET_CPU_DEFINE=PPC64
16213 
16214   # The cpu defines below are for zero, we don't support them directly.
16215   elif test "x$OPENJDK_TARGET_CPU" = xsparc; then
16216     HOTSPOT_TARGET_CPU_DEFINE=SPARC
16217   elif test "x$OPENJDK_TARGET_CPU" = xppc; then
16218     HOTSPOT_TARGET_CPU_DEFINE=PPC32
16219   elif test "x$OPENJDK_TARGET_CPU" = xs390; then
16220     HOTSPOT_TARGET_CPU_DEFINE=S390
16221   elif test "x$OPENJDK_TARGET_CPU" = xs390x; then
16222     HOTSPOT_TARGET_CPU_DEFINE=S390
16223   elif test "x$OPENJDK_TARGET_CPU" != x; then
16224     HOTSPOT_TARGET_CPU_DEFINE=$(echo $OPENJDK_TARGET_CPU | tr a-z A-Z)
16225   fi
16226 
16227 
16228 
16229 
16230   # Also store the legacy naming of the cpu.
16231   # Ie i586 and amd64 instead of x86 and x86_64
16232   OPENJDK_BUILD_CPU_LEGACY="$OPENJDK_BUILD_CPU"
16233   if test "x$OPENJDK_BUILD_CPU" = xx86; then
16234     OPENJDK_BUILD_CPU_LEGACY="i586"
16235   elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16236     # On all platforms except MacOSX replace x86_64 with amd64.
16237     OPENJDK_BUILD_CPU_LEGACY="amd64"
16238   fi
16239 
16240 
16241   # And the second legacy naming of the cpu.
16242   # Ie i386 and amd64 instead of x86 and x86_64.
16243   OPENJDK_BUILD_CPU_LEGACY_LIB="$OPENJDK_BUILD_CPU"
16244   if test "x$OPENJDK_BUILD_CPU" = xx86; then
16245     OPENJDK_BUILD_CPU_LEGACY_LIB="i386"
16246   elif test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16247     OPENJDK_BUILD_CPU_LEGACY_LIB="amd64"
16248   fi
16249 
16250 
16251   # OPENJDK_BUILD_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to
16252   # /amd64 or /sparcv9. This string is appended to some library paths, like this:
16253   # /usr/lib${OPENJDK_BUILD_CPU_ISADIR}/libexample.so
16254   OPENJDK_BUILD_CPU_ISADIR=""
16255   if test "x$OPENJDK_BUILD_OS" = xsolaris; then
16256     if test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16257       OPENJDK_BUILD_CPU_ISADIR="/amd64"
16258     elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then
16259       OPENJDK_BUILD_CPU_ISADIR="/sparcv9"
16260     fi
16261   fi
16262 
16263 
16264   # Setup OPENJDK_BUILD_CPU_OSARCH, which is used to set the os.arch Java system property
16265   OPENJDK_BUILD_CPU_OSARCH="$OPENJDK_BUILD_CPU"
16266   if test "x$OPENJDK_BUILD_OS" = xlinux && test "x$OPENJDK_BUILD_CPU" = xx86; then
16267     # On linux only, we replace x86 with i386.
16268     OPENJDK_BUILD_CPU_OSARCH="i386"
16269   elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16270     # On all platforms except macosx, we replace x86_64 with amd64.
16271     OPENJDK_BUILD_CPU_OSARCH="amd64"
16272   fi
16273 
16274 
16275   OPENJDK_BUILD_CPU_JLI="$OPENJDK_BUILD_CPU"
16276   if test "x$OPENJDK_BUILD_CPU" = xx86; then
16277     OPENJDK_BUILD_CPU_JLI="i386"
16278   elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16279     # On all platforms except macosx, we replace x86_64 with amd64.
16280     OPENJDK_BUILD_CPU_JLI="amd64"
16281   fi
16282 
16283   if test "x$OPENJDK_BUILD_OS" = xmacosx; then
16284       OPENJDK_BUILD_OS_EXPORT_DIR=macosx
16285   else
16286       OPENJDK_BUILD_OS_EXPORT_DIR=${OPENJDK_BUILD_OS_TYPE}
16287   fi
16288 
16289 
16290   # The new version string in JDK 9 also defined new naming of OS and ARCH for bundles
16291   # Macosx is osx and x86_64 is x64
16292   if test "x$OPENJDK_BUILD_OS" = xmacosx; then
16293     OPENJDK_BUILD_OS_BUNDLE="osx"
16294   else
16295     OPENJDK_BUILD_OS_BUNDLE="$OPENJDK_TARGET_OS"
16296   fi
16297   if test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16298     OPENJDK_BUILD_CPU_BUNDLE="x64"
16299   else
16300     OPENJDK_BUILD_CPU_BUNDLE="$OPENJDK_BUILD_CPU"
16301   fi
16302   OPENJDK_BUILD_BUNDLE_PLATFORM="${OPENJDK_BUILD_OS_BUNDLE}-${OPENJDK_BUILD_CPU_BUNDLE}"
16303 
16304 
16305   if test "x$OPENJDK_BUILD_CPU_BITS" = x64; then
16306     # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in
16307     # unpack200.exe. This variable is used in
16308     # FLAGS_SETUP_COMPILER_FLAGS_FOR_JDK_HELPER.
16309     if test "x$OPENJDK_BUILD_OS" = xlinux || test "x$OPENJDK_BUILD_OS" = xmacosx; then
16310       OPENJDK_BUILD_ADD_LP64="-D_LP64=1"
16311     fi
16312   fi
16313 
16314   if test "x$COMPILE_TYPE" = "xcross"; then
16315     # FIXME: ... or should this include reduced builds..?
16316     DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_BUILD_CPU_LEGACY"
16317   else
16318     DEFINE_CROSS_COMPILE_ARCH=""
16319   fi
16320 
16321 
16322   # Convert openjdk platform names to hotspot names
16323 
16324   HOTSPOT_BUILD_OS=${OPENJDK_BUILD_OS}
16325   if test "x$OPENJDK_BUILD_OS" = xmacosx; then
16326     HOTSPOT_BUILD_OS=bsd
16327   fi
16328 
16329 
16330   HOTSPOT_BUILD_OS_TYPE=${OPENJDK_BUILD_OS_TYPE}
16331   if test "x$OPENJDK_BUILD_OS_TYPE" = xunix; then
16332     HOTSPOT_BUILD_OS_TYPE=posix
16333   fi
16334 
16335 
16336   HOTSPOT_BUILD_CPU=${OPENJDK_BUILD_CPU}
16337   if test "x$OPENJDK_BUILD_CPU" = xx86; then
16338     HOTSPOT_BUILD_CPU=x86_32
16339   elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then
16340     HOTSPOT_BUILD_CPU=sparc
16341   elif test "x$OPENJDK_BUILD_CPU" = xppc64; then
16342     HOTSPOT_BUILD_CPU=ppc_64
16343   elif test "x$OPENJDK_BUILD_CPU" = xppc64le; then
16344     HOTSPOT_BUILD_CPU=ppc_64
16345   fi
16346 
16347 
16348   # This is identical with OPENJDK_*, but define anyway for consistency.
16349   HOTSPOT_BUILD_CPU_ARCH=${OPENJDK_BUILD_CPU_ARCH}
16350 
16351 
16352   # Setup HOTSPOT_BUILD_CPU_DEFINE
16353   if test "x$OPENJDK_BUILD_CPU" = xx86; then
16354     HOTSPOT_BUILD_CPU_DEFINE=IA32
16355   elif test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16356     HOTSPOT_BUILD_CPU_DEFINE=AMD64
16357   elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then
16358     HOTSPOT_BUILD_CPU_DEFINE=SPARC
16359   elif test "x$OPENJDK_BUILD_CPU" = xaarch64; then
16360     HOTSPOT_BUILD_CPU_DEFINE=AARCH64
16361   elif test "x$OPENJDK_BUILD_CPU" = xppc64; then
16362     HOTSPOT_BUILD_CPU_DEFINE=PPC64
16363   elif test "x$OPENJDK_BUILD_CPU" = xppc64le; then
16364     HOTSPOT_BUILD_CPU_DEFINE=PPC64
16365 
16366   # The cpu defines below are for zero, we don't support them directly.
16367   elif test "x$OPENJDK_BUILD_CPU" = xsparc; then
16368     HOTSPOT_BUILD_CPU_DEFINE=SPARC
16369   elif test "x$OPENJDK_BUILD_CPU" = xppc; then
16370     HOTSPOT_BUILD_CPU_DEFINE=PPC32
16371   elif test "x$OPENJDK_BUILD_CPU" = xs390; then
16372     HOTSPOT_BUILD_CPU_DEFINE=S390
16373   elif test "x$OPENJDK_BUILD_CPU" = xs390x; then
16374     HOTSPOT_BUILD_CPU_DEFINE=S390
16375   elif test "x$OPENJDK_BUILD_CPU" != x; then
16376     HOTSPOT_BUILD_CPU_DEFINE=$(echo $OPENJDK_BUILD_CPU | tr a-z A-Z)
16377   fi
16378 
16379 
16380 
16381 
16382 
16383 
16384 # Continue setting up basic stuff. Most remaining code require fundamental tools.
16385 
16386   # Save the current directory this script was started from
16387   CURDIR="$PWD"
16388 
16389   # We might need to rewrite ORIGINAL_PATH, if it includes "#", to quote them
16390   # for make. We couldn't do this when we retrieved ORIGINAL_PATH, since SED
16391   # was not available at that time.
16392   REWRITTEN_PATH=`$ECHO "$ORIGINAL_PATH" | $SED -e 's/#/\\\\#/g'`
16393   if test "x$REWRITTEN_PATH" != "x$ORIGINAL_PATH"; then
16394     ORIGINAL_PATH="$REWRITTEN_PATH"
16395     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&5
16396 $as_echo "$as_me: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&6;}
16397   fi
16398 
16399   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
16400     PATH_SEP=";"
16401 
16402   SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m`
16403   if test $SRC_ROOT_LENGTH -gt 100; then
16404     as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5
16405   fi
16406 
16407   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16408     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5
16409 $as_echo_n "checking cygwin release... " >&6; }
16410     CYGWIN_VERSION=`$UNAME -r`
16411     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5
16412 $as_echo "$CYGWIN_VERSION" >&6; }
16413     WINDOWS_ENV_VENDOR='cygwin'
16414     WINDOWS_ENV_VERSION="$CYGWIN_VERSION"
16415 
16416     CYGWIN_VERSION_OLD=`$ECHO $CYGWIN_VERSION | $GREP -e '^1\.0-6'`
16417     if test "x$CYGWIN_VERSION_OLD" != x; then
16418       { $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
16419 $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;}
16420       as_fn_error $? "Cannot continue" "$LINENO" 5
16421     fi
16422     if test "x$CYGPATH" = x; then
16423       as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5
16424     fi
16425     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5
16426 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; }
16427     # The cmd output ends with Windows line endings (CR/LF)
16428     cygwin_winpath_root=`cd / ; cmd /c cd | $TR -d '\r\n'`
16429     # Force cygpath to report the proper root by including a trailing space, and then stripping it off again.
16430     CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "`
16431     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5
16432 $as_echo "$CYGWIN_ROOT_PATH" >&6; }
16433     WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH"
16434     test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/`
16435     if test "x$test_cygdrive_prefix" = x; then
16436       as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5
16437     fi
16438   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16439     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5
16440 $as_echo_n "checking msys release... " >&6; }
16441     MSYS_VERSION=`$UNAME -r`
16442     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5
16443 $as_echo "$MSYS_VERSION" >&6; }
16444 
16445     WINDOWS_ENV_VENDOR='msys'
16446     WINDOWS_ENV_VERSION="$MSYS_VERSION"
16447 
16448     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5
16449 $as_echo_n "checking msys root directory as unix-style path... " >&6; }
16450     # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
16451     MSYS_ROOT_PATH=`cd / ; cmd /c cd | $GREP ".*"`
16452 
16453   windows_path="$MSYS_ROOT_PATH"
16454   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16455     unix_path=`$CYGPATH -u "$windows_path"`
16456     MSYS_ROOT_PATH="$unix_path"
16457   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16458     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16459     MSYS_ROOT_PATH="$unix_path"
16460   fi
16461 
16462     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5
16463 $as_echo "$MSYS_ROOT_PATH" >&6; }
16464     WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH"
16465   else
16466     as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5
16467   fi
16468 
16469   # Test if windows or unix (cygwin/msys) find is first in path.
16470   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5
16471 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; }
16472   FIND_BINARY_OUTPUT=`find --version 2>&1`
16473   if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then
16474     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5
16475 $as_echo "unix style" >&6; }
16476   elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then
16477     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5
16478 $as_echo "Windows" >&6; }
16479     { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5
16480 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;}
16481     { $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
16482 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;}
16483     as_fn_error $? "Cannot continue" "$LINENO" 5
16484   else
16485     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
16486 $as_echo "unknown" >&6; }
16487     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5
16488 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;}
16489   fi
16490 
16491   else
16492     PATH_SEP=":"
16493   fi
16494 
16495 
16496   # We get the top-level directory from the supporting wrappers.
16497   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for top-level directory" >&5
16498 $as_echo_n "checking for top-level directory... " >&6; }
16499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5
16500 $as_echo "$TOPDIR" >&6; }
16501 
16502 
16503   # Save the original version of TOPDIR for string comparisons
16504   ORIGINAL_TOPDIR="$TOPDIR"
16505 
16506 
16507   # We can only call BASIC_FIXUP_PATH after BASIC_CHECK_PATHS_WINDOWS.
16508 
16509   # Only process if variable expands to non-empty
16510 
16511   if test "x$CURDIR" != x; then
16512     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16513 
16514   # Input might be given as Windows format, start by converting to
16515   # unix format.
16516   path="$CURDIR"
16517   new_path=`$CYGPATH -u "$path"`
16518 
16519   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16520   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16521   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16522   # "foo.exe" is OK but "foo" is an error.
16523   #
16524   # This test is therefore slightly more accurate than "test -f" to check for file precense.
16525   # It is also a way to make sure we got the proper file name for the real test later on.
16526   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16527   if test "x$test_shortpath" = x; then
16528     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
16529 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
16530     as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5
16531   fi
16532 
16533   # Call helper function which possibly converts this using DOS-style short mode.
16534   # If so, the updated path is stored in $new_path.
16535 
16536   input_path="$new_path"
16537   # Check if we need to convert this using DOS-style short mode. If the path
16538   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16539   # take no chances and rewrite it.
16540   # Note: m4 eats our [], so we need to use [ and ] instead.
16541   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16542   if test "x$has_forbidden_chars" != x; then
16543     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16544     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16545     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16546     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16547       # Going to short mode and back again did indeed matter. Since short mode is
16548       # case insensitive, let's make it lowercase to improve readability.
16549       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16550       # Now convert it back to Unix-style (cygpath)
16551       input_path=`$CYGPATH -u "$shortmode_path"`
16552       new_path="$input_path"
16553     fi
16554   fi
16555 
16556   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16557   if test "x$test_cygdrive_prefix" = x; then
16558     # As a simple fix, exclude /usr/bin since it's not a real path.
16559     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
16560       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16561       # a path prefixed by /cygdrive for fixpath to work.
16562       new_path="$CYGWIN_ROOT_PATH$input_path"
16563     fi
16564   fi
16565 
16566 
16567   if test "x$path" != "x$new_path"; then
16568     CURDIR="$new_path"
16569     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
16570 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
16571   fi
16572 
16573     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16574 
16575   path="$CURDIR"
16576   has_colon=`$ECHO $path | $GREP ^.:`
16577   new_path="$path"
16578   if test "x$has_colon" = x; then
16579     # Not in mixed or Windows style, start by that.
16580     new_path=`cmd //c echo $path`
16581   fi
16582 
16583 
16584   input_path="$new_path"
16585   # Check if we need to convert this using DOS-style short mode. If the path
16586   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16587   # take no chances and rewrite it.
16588   # Note: m4 eats our [], so we need to use [ and ] instead.
16589   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16590   if test "x$has_forbidden_chars" != x; then
16591     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16592     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16593   fi
16594 
16595 
16596   windows_path="$new_path"
16597   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16598     unix_path=`$CYGPATH -u "$windows_path"`
16599     new_path="$unix_path"
16600   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16601     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16602     new_path="$unix_path"
16603   fi
16604 
16605   if test "x$path" != "x$new_path"; then
16606     CURDIR="$new_path"
16607     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
16608 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
16609   fi
16610 
16611   # Save the first 10 bytes of this path to the storage, so fixpath can work.
16612   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16613 
16614     else
16615       # We're on a unix platform. Hooray! :)
16616       path="$CURDIR"
16617       has_space=`$ECHO "$path" | $GREP " "`
16618       if test "x$has_space" != x; then
16619         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
16620 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
16621         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
16622       fi
16623 
16624       # Use eval to expand a potential ~
16625       eval path="$path"
16626       if test ! -f "$path" && test ! -d "$path"; then
16627         as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5
16628       fi
16629 
16630       if test -d "$path"; then
16631         CURDIR="`cd "$path"; $THEPWDCMD -L`"
16632       else
16633         dir="`$DIRNAME "$path"`"
16634         base="`$BASENAME "$path"`"
16635         CURDIR="`cd "$dir"; $THEPWDCMD -L`/$base"
16636       fi
16637     fi
16638   fi
16639 
16640 
16641   # Only process if variable expands to non-empty
16642 
16643   if test "x$TOPDIR" != x; then
16644     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16645 
16646   # Input might be given as Windows format, start by converting to
16647   # unix format.
16648   path="$TOPDIR"
16649   new_path=`$CYGPATH -u "$path"`
16650 
16651   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16652   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16653   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16654   # "foo.exe" is OK but "foo" is an error.
16655   #
16656   # This test is therefore slightly more accurate than "test -f" to check for file precense.
16657   # It is also a way to make sure we got the proper file name for the real test later on.
16658   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16659   if test "x$test_shortpath" = x; then
16660     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
16661 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
16662     as_fn_error $? "Cannot locate the the path of TOPDIR" "$LINENO" 5
16663   fi
16664 
16665   # Call helper function which possibly converts this using DOS-style short mode.
16666   # If so, the updated path is stored in $new_path.
16667 
16668   input_path="$new_path"
16669   # Check if we need to convert this using DOS-style short mode. If the path
16670   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16671   # take no chances and rewrite it.
16672   # Note: m4 eats our [], so we need to use [ and ] instead.
16673   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16674   if test "x$has_forbidden_chars" != x; then
16675     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16676     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16677     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16678     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16679       # Going to short mode and back again did indeed matter. Since short mode is
16680       # case insensitive, let's make it lowercase to improve readability.
16681       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16682       # Now convert it back to Unix-style (cygpath)
16683       input_path=`$CYGPATH -u "$shortmode_path"`
16684       new_path="$input_path"
16685     fi
16686   fi
16687 
16688   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16689   if test "x$test_cygdrive_prefix" = x; then
16690     # As a simple fix, exclude /usr/bin since it's not a real path.
16691     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
16692       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16693       # a path prefixed by /cygdrive for fixpath to work.
16694       new_path="$CYGWIN_ROOT_PATH$input_path"
16695     fi
16696   fi
16697 
16698 
16699   if test "x$path" != "x$new_path"; then
16700     TOPDIR="$new_path"
16701     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
16702 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
16703   fi
16704 
16705     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16706 
16707   path="$TOPDIR"
16708   has_colon=`$ECHO $path | $GREP ^.:`
16709   new_path="$path"
16710   if test "x$has_colon" = x; then
16711     # Not in mixed or Windows style, start by that.
16712     new_path=`cmd //c echo $path`
16713   fi
16714 
16715 
16716   input_path="$new_path"
16717   # Check if we need to convert this using DOS-style short mode. If the path
16718   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16719   # take no chances and rewrite it.
16720   # Note: m4 eats our [], so we need to use [ and ] instead.
16721   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16722   if test "x$has_forbidden_chars" != x; then
16723     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16724     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16725   fi
16726 
16727 
16728   windows_path="$new_path"
16729   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16730     unix_path=`$CYGPATH -u "$windows_path"`
16731     new_path="$unix_path"
16732   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16733     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16734     new_path="$unix_path"
16735   fi
16736 
16737   if test "x$path" != "x$new_path"; then
16738     TOPDIR="$new_path"
16739     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
16740 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
16741   fi
16742 
16743   # Save the first 10 bytes of this path to the storage, so fixpath can work.
16744   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16745 
16746     else
16747       # We're on a unix platform. Hooray! :)
16748       path="$TOPDIR"
16749       has_space=`$ECHO "$path" | $GREP " "`
16750       if test "x$has_space" != x; then
16751         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
16752 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
16753         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
16754       fi
16755 
16756       # Use eval to expand a potential ~
16757       eval path="$path"
16758       if test ! -f "$path" && test ! -d "$path"; then
16759         as_fn_error $? "The path of TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5
16760       fi
16761 
16762       if test -d "$path"; then
16763         TOPDIR="`cd "$path"; $THEPWDCMD -L`"
16764       else
16765         dir="`$DIRNAME "$path"`"
16766         base="`$BASENAME "$path"`"
16767         TOPDIR="`cd "$dir"; $THEPWDCMD -L`/$base"
16768       fi
16769     fi
16770   fi
16771 
16772   # SRC_ROOT is a traditional alias for TOPDIR.
16773   SRC_ROOT=$TOPDIR
16774 
16775   # Calculate a canonical version of TOPDIR for string comparisons
16776   CANONICAL_TOPDIR=$TOPDIR
16777 
16778   if test "x$OPENJDK_BUILD_OS" != xwindows; then
16779     # Follow a chain of symbolic links. Use readlink
16780     # where it exists, else fall back to horribly
16781     # complicated shell code.
16782     if test "x$READLINK_TESTED" != yes; then
16783       # On MacOSX there is a readlink tool with a different
16784       # purpose than the GNU readlink tool. Check the found readlink.
16785       ISGNU=`$READLINK --version 2>&1 | $GREP GNU`
16786       if test "x$ISGNU" = x; then
16787         # A readlink that we do not know how to use.
16788         # Are there other non-GNU readlinks out there?
16789         READLINK_TESTED=yes
16790         READLINK=
16791       fi
16792     fi
16793 
16794     if test "x$READLINK" != x; then
16795       CANONICAL_TOPDIR=`$READLINK -f $CANONICAL_TOPDIR`
16796     else
16797       # Save the current directory for restoring afterwards
16798       STARTDIR=$PWD
16799       COUNTER=0
16800       sym_link_dir=`$DIRNAME $CANONICAL_TOPDIR`
16801       sym_link_file=`$BASENAME $CANONICAL_TOPDIR`
16802       cd $sym_link_dir
16803       # Use -P flag to resolve symlinks in directories.
16804       cd `$THEPWDCMD -P`
16805       sym_link_dir=`$THEPWDCMD -P`
16806       # Resolve file symlinks
16807       while test $COUNTER -lt 20; do
16808         ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'`
16809         if test "x$ISLINK" == x; then
16810           # This is not a symbolic link! We are done!
16811           break
16812         fi
16813         # Again resolve directory symlinks since the target of the just found
16814         # link could be in a different directory
16815         cd `$DIRNAME $ISLINK`
16816         sym_link_dir=`$THEPWDCMD -P`
16817         sym_link_file=`$BASENAME $ISLINK`
16818         let COUNTER=COUNTER+1
16819       done
16820       cd $STARTDIR
16821       CANONICAL_TOPDIR=$sym_link_dir/$sym_link_file
16822     fi
16823   fi
16824 
16825 
16826 
16827   # Locate the directory of this script.
16828   AUTOCONF_DIR=$TOPDIR/common/autoconf
16829 
16830   # Setup username (for use in adhoc version strings etc)
16831   # Outer [ ] to quote m4.
16832    USERNAME=`$ECHO "$USER" | $TR -d -c '[a-z][A-Z][0-9]'`
16833 
16834 
16835 
16836 # Check if it's a pure open build or if custom sources are to be used.
16837 
16838   # Check whether --enable-openjdk-only was given.
16839 if test "${enable_openjdk_only+set}" = set; then :
16840   enableval=$enable_openjdk_only;
16841 else
16842   enable_openjdk_only="no"
16843 fi
16844 
16845 
16846   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if custom source is suppressed (openjdk-only)" >&5
16847 $as_echo_n "checking if custom source is suppressed (openjdk-only)... " >&6; }
16848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_openjdk_only" >&5
16849 $as_echo "$enable_openjdk_only" >&6; }
16850   if test "x$enable_openjdk_only" = "xyes"; then
16851     SUPPRESS_CUSTOM_EXTENSIONS="true"
16852   elif test "x$enable_openjdk_only" = "xno"; then
16853     SUPPRESS_CUSTOM_EXTENSIONS="false"
16854   else
16855     as_fn_error $? "Invalid value for --enable-openjdk-only: $enable_openjdk_only" "$LINENO" 5
16856   fi
16857 
16858   # custom-make-dir is deprecated. Please use your custom-hook.m4 to override
16859   # the IncludeCustomExtension macro.
16860 
16861 
16862 # Check whether --with-custom-make-dir was given.
16863 if test "${with_custom_make_dir+set}" = set; then :
16864   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
16865 $as_echo "$as_me: WARNING: Option --with-custom-make-dir is deprecated and will be ignored." >&2;}
16866 fi
16867 
16868 
16869 
16870 
16871 # These are needed to be able to create a configuration name (and thus the output directory)
16872 
16873   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5
16874 $as_echo_n "checking which variant of the JDK to build... " >&6; }
16875 
16876 # Check whether --with-jdk-variant was given.
16877 if test "${with_jdk_variant+set}" = set; then :
16878   withval=$with_jdk_variant;
16879 fi
16880 
16881 
16882   if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then
16883     JDK_VARIANT="normal"
16884   else
16885     as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5
16886   fi
16887 
16888 
16889 
16890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5
16891 $as_echo "$JDK_VARIANT" >&6; }
16892 
16893 
16894   DEBUG_LEVEL="release"
16895   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5
16896 $as_echo_n "checking which debug level to use... " >&6; }
16897   # Check whether --enable-debug was given.
16898 if test "${enable_debug+set}" = set; then :
16899   enableval=$enable_debug;
16900         ENABLE_DEBUG="${enableval}"
16901         DEBUG_LEVEL="fastdebug"
16902 
16903 else
16904   ENABLE_DEBUG="no"
16905 fi
16906 
16907 
16908 
16909 # Check whether --with-debug-level was given.
16910 if test "${with_debug_level+set}" = set; then :
16911   withval=$with_debug_level;
16912         DEBUG_LEVEL="${withval}"
16913         if test "x$ENABLE_DEBUG" = xyes; then
16914           as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5
16915         fi
16916 
16917 fi
16918 
16919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5
16920 $as_echo "$DEBUG_LEVEL" >&6; }
16921 
16922   if test "x$DEBUG_LEVEL" != xrelease && \
16923       test "x$DEBUG_LEVEL" != xoptimized && \
16924       test "x$DEBUG_LEVEL" != xfastdebug && \
16925       test "x$DEBUG_LEVEL" != xslowdebug; then
16926     as_fn_error $? "Allowed debug levels are: release, fastdebug, slowdebug and optimized" "$LINENO" 5
16927   fi
16928 
16929   # Translate DEBUG_LEVEL to debug level used by Hotspot
16930   HOTSPOT_DEBUG_LEVEL="$DEBUG_LEVEL"
16931   if test "x$DEBUG_LEVEL" = xrelease; then
16932     HOTSPOT_DEBUG_LEVEL="product"
16933   elif test "x$DEBUG_LEVEL" = xslowdebug; then
16934     HOTSPOT_DEBUG_LEVEL="debug"
16935   fi
16936 
16937   if test "x$DEBUG_LEVEL" = xoptimized; then
16938     # The debug level 'optimized' is a little special because it is currently only
16939     # applicable to the HotSpot build where it means to build a completely
16940     # optimized version of the VM without any debugging code (like for the
16941     # 'release' debug level which is called 'product' in the HotSpot build) but
16942     # with the exception that it can contain additional code which is otherwise
16943     # protected by '#ifndef PRODUCT' macros. These 'optimized' builds are used to
16944     # test new and/or experimental features which are not intended for customer
16945     # shipment. Because these new features need to be tested and benchmarked in
16946     # real world scenarios, we want to build the containing JDK at the 'release'
16947     # debug level.
16948     DEBUG_LEVEL="release"
16949   fi
16950 
16951 
16952 
16953 
16954 
16955 
16956 # Check whether --with-jvm-variants was given.
16957 if test "${with_jvm_variants+set}" = set; then :
16958   withval=$with_jvm_variants;
16959 fi
16960 
16961 
16962 
16963 
16964 # Check whether --with-cpu-port was given.
16965 if test "${with_cpu_port+set}" = set; then :
16966   withval=$with_cpu_port;
16967 fi
16968 
16969 
16970   if test "x$with_cpu_port" != x; then
16971     if test "x$OPENJDK_TARGET_CPU" != xaarch64; then
16972       as_fn_error $? "--with-cpu-port only available on aarch64" "$LINENO" 5
16973     fi
16974     if test "x$with_cpu_port" != xarm64 && \
16975         test "x$with_cpu_port" != xaarch64; then
16976       as_fn_error $? "--with-cpu-port must specify arm64 or aarch64" "$LINENO" 5
16977     fi
16978     HOTSPOT_TARGET_CPU_PORT="$with_cpu_port"
16979   fi
16980 
16981 
16982   if test "x$with_jvm_variants" = x; then
16983     with_jvm_variants="server"
16984   fi
16985   JVM_VARIANTS_OPT="$with_jvm_variants"
16986 
16987   # Has the user listed more than one variant?
16988   # Additional [] needed to keep m4 from mangling shell constructs.
16989   if  [[ "$JVM_VARIANTS_OPT" =~ "," ]] ; then
16990     BUILDING_MULTIPLE_JVM_VARIANTS=true
16991   else
16992     BUILDING_MULTIPLE_JVM_VARIANTS=false
16993   fi
16994   # Replace the commas with AND for use in the build directory name.
16995   JVM_VARIANTS_WITH_AND=`$ECHO "$JVM_VARIANTS_OPT" | $SED -e 's/,/AND/g'`
16996 
16997   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5
16998 $as_echo_n "checking which variants of the JVM to build... " >&6; }
16999   # JVM_VARIANTS is a space-separated list.
17000   # Also use minimal, not minimal1 (which is kept for backwards compatibility).
17001   JVM_VARIANTS=`$ECHO $JVM_VARIANTS_OPT | $SED -e 's/,/ /g' -e 's/minimal1/minimal/'`
17002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JVM_VARIANTS" >&5
17003 $as_echo "$JVM_VARIANTS" >&6; }
17004 
17005   # Check that the selected variants are valid
17006 
17007   # grep filter function inspired by a comment to http://stackoverflow.com/a/1617326
17008   # Notice that the original variant failes on SLES 10 and 11
17009   NEEDLE=${VALID_JVM_VARIANTS// /$'\n'}
17010   STACK=${JVM_VARIANTS// /$'\n'}
17011   INVALID_VARIANTS=`$GREP -Fvx "${NEEDLE}" <<< "${STACK}"`
17012   if test "x$INVALID_VARIANTS" != x; then
17013     { $as_echo "$as_me:${as_lineno-$LINENO}: Unknown variant(s) specified: $INVALID_VARIANTS" >&5
17014 $as_echo "$as_me: Unknown variant(s) specified: $INVALID_VARIANTS" >&6;}
17015     as_fn_error $? "The available JVM variants are: $VALID_JVM_VARIANTS" "$LINENO" 5
17016   fi
17017 
17018   # All "special" variants share the same output directory ("server")
17019   VALID_MULTIPLE_JVM_VARIANTS="server client minimal"
17020   NEEDLE=${VALID_MULTIPLE_JVM_VARIANTS// /$'\n'}
17021   STACK=${JVM_VARIANTS// /$'\n'}
17022   INVALID_MULTIPLE_VARIANTS=`$GREP -Fvx "${NEEDLE}" <<< "${STACK}"`
17023   if  test "x$INVALID_MULTIPLE_VARIANTS" != x && test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = xtrue; then
17024     as_fn_error $? "You cannot build multiple variants with anything else than $VALID_MULTIPLE_JVM_VARIANTS." "$LINENO" 5
17025   fi
17026 
17027   # The "main" variant is the one used by other libs to link against during the
17028   # build.
17029   if test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = "xtrue"; then
17030     MAIN_VARIANT_PRIO_ORDER="server client minimal"
17031     for variant in $MAIN_VARIANT_PRIO_ORDER; do
17032       if   [[ " $JVM_VARIANTS " =~ " $variant " ]]  ; then
17033         JVM_VARIANT_MAIN="$variant"
17034         break
17035       fi
17036     done
17037   else
17038     JVM_VARIANT_MAIN="$JVM_VARIANTS"
17039   fi
17040 
17041 
17042 
17043 
17044 
17045   if   [[ " $JVM_VARIANTS " =~ " zero " ]]   ||   [[ " $JVM_VARIANTS " =~ " zeroshark " ]]  ; then
17046     # zero behaves as a platform and rewrites these values. This is really weird. :(
17047     # We are guaranteed that we do not build any other variants when building zero.
17048     HOTSPOT_TARGET_CPU=zero
17049     HOTSPOT_TARGET_CPU_ARCH=zero
17050   fi
17051 
17052 
17053 # With basic setup done, call the custom early hook.
17054 
17055 
17056 # Check if we have devkits, extra paths or sysroot set.
17057 
17058 
17059 # Check whether --with-devkit was given.
17060 if test "${with_devkit+set}" = set; then :
17061   withval=$with_devkit;
17062 
17063   # Only process if variable expands to non-empty
17064 
17065   if test "x$with_devkit" != x; then
17066     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17067 
17068   # Input might be given as Windows format, start by converting to
17069   # unix format.
17070   path="$with_devkit"
17071   new_path=`$CYGPATH -u "$path"`
17072 
17073   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
17074   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
17075   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
17076   # "foo.exe" is OK but "foo" is an error.
17077   #
17078   # This test is therefore slightly more accurate than "test -f" to check for file precense.
17079   # It is also a way to make sure we got the proper file name for the real test later on.
17080   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
17081   if test "x$test_shortpath" = x; then
17082     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
17083 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
17084     as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5
17085   fi
17086 
17087   # Call helper function which possibly converts this using DOS-style short mode.
17088   # If so, the updated path is stored in $new_path.
17089 
17090   input_path="$new_path"
17091   # Check if we need to convert this using DOS-style short mode. If the path
17092   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17093   # take no chances and rewrite it.
17094   # Note: m4 eats our [], so we need to use [ and ] instead.
17095   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
17096   if test "x$has_forbidden_chars" != x; then
17097     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17098     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
17099     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
17100     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
17101       # Going to short mode and back again did indeed matter. Since short mode is
17102       # case insensitive, let's make it lowercase to improve readability.
17103       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17104       # Now convert it back to Unix-style (cygpath)
17105       input_path=`$CYGPATH -u "$shortmode_path"`
17106       new_path="$input_path"
17107     fi
17108   fi
17109 
17110   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
17111   if test "x$test_cygdrive_prefix" = x; then
17112     # As a simple fix, exclude /usr/bin since it's not a real path.
17113     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
17114       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
17115       # a path prefixed by /cygdrive for fixpath to work.
17116       new_path="$CYGWIN_ROOT_PATH$input_path"
17117     fi
17118   fi
17119 
17120 
17121   if test "x$path" != "x$new_path"; then
17122     with_devkit="$new_path"
17123     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
17124 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
17125   fi
17126 
17127     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17128 
17129   path="$with_devkit"
17130   has_colon=`$ECHO $path | $GREP ^.:`
17131   new_path="$path"
17132   if test "x$has_colon" = x; then
17133     # Not in mixed or Windows style, start by that.
17134     new_path=`cmd //c echo $path`
17135   fi
17136 
17137 
17138   input_path="$new_path"
17139   # Check if we need to convert this using DOS-style short mode. If the path
17140   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17141   # take no chances and rewrite it.
17142   # Note: m4 eats our [], so we need to use [ and ] instead.
17143   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
17144   if test "x$has_forbidden_chars" != x; then
17145     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17146     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17147   fi
17148 
17149 
17150   windows_path="$new_path"
17151   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17152     unix_path=`$CYGPATH -u "$windows_path"`
17153     new_path="$unix_path"
17154   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17155     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17156     new_path="$unix_path"
17157   fi
17158 
17159   if test "x$path" != "x$new_path"; then
17160     with_devkit="$new_path"
17161     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
17162 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
17163   fi
17164 
17165   # Save the first 10 bytes of this path to the storage, so fixpath can work.
17166   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
17167 
17168     else
17169       # We're on a unix platform. Hooray! :)
17170       path="$with_devkit"
17171       has_space=`$ECHO "$path" | $GREP " "`
17172       if test "x$has_space" != x; then
17173         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
17174 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
17175         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
17176       fi
17177 
17178       # Use eval to expand a potential ~
17179       eval path="$path"
17180       if test ! -f "$path" && test ! -d "$path"; then
17181         as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5
17182       fi
17183 
17184       if test -d "$path"; then
17185         with_devkit="`cd "$path"; $THEPWDCMD -L`"
17186       else
17187         dir="`$DIRNAME "$path"`"
17188         base="`$BASENAME "$path"`"
17189         with_devkit="`cd "$dir"; $THEPWDCMD -L`/$base"
17190       fi
17191     fi
17192   fi
17193 
17194         DEVKIT_ROOT="$with_devkit"
17195         # Check for a meta data info file in the root of the devkit
17196         if test -f "$DEVKIT_ROOT/devkit.info"; then
17197           . $DEVKIT_ROOT/devkit.info
17198           # This potentially sets the following:
17199           # A descriptive name of the devkit
17200 
17201   if test "x$DEVKIT_NAME" = x; then
17202     eval DEVKIT_NAME="\${DEVKIT_NAME_${OPENJDK_TARGET_CPU}}"
17203   fi
17204 
17205           # Corresponds to --with-extra-path
17206 
17207   if test "x$DEVKIT_EXTRA_PATH" = x; then
17208     eval DEVKIT_EXTRA_PATH="\${DEVKIT_EXTRA_PATH_${OPENJDK_TARGET_CPU}}"
17209   fi
17210 
17211           # Corresponds to --with-toolchain-path
17212 
17213   if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then
17214     eval DEVKIT_TOOLCHAIN_PATH="\${DEVKIT_TOOLCHAIN_PATH_${OPENJDK_TARGET_CPU}}"
17215   fi
17216 
17217           # Corresponds to --with-sysroot
17218 
17219   if test "x$DEVKIT_SYSROOT" = x; then
17220     eval DEVKIT_SYSROOT="\${DEVKIT_SYSROOT_${OPENJDK_TARGET_CPU}}"
17221   fi
17222 
17223 
17224           # Identifies the Visual Studio version in the devkit
17225 
17226   if test "x$DEVKIT_VS_VERSION" = x; then
17227     eval DEVKIT_VS_VERSION="\${DEVKIT_VS_VERSION_${OPENJDK_TARGET_CPU}}"
17228   fi
17229 
17230           # The Visual Studio include environment variable
17231 
17232   if test "x$DEVKIT_VS_INCLUDE" = x; then
17233     eval DEVKIT_VS_INCLUDE="\${DEVKIT_VS_INCLUDE_${OPENJDK_TARGET_CPU}}"
17234   fi
17235 
17236           # The Visual Studio lib environment variable
17237 
17238   if test "x$DEVKIT_VS_LIB" = x; then
17239     eval DEVKIT_VS_LIB="\${DEVKIT_VS_LIB_${OPENJDK_TARGET_CPU}}"
17240   fi
17241 
17242           # Corresponds to --with-msvcr-dll
17243 
17244   if test "x$DEVKIT_MSVCR_DLL" = x; then
17245     eval DEVKIT_MSVCR_DLL="\${DEVKIT_MSVCR_DLL_${OPENJDK_TARGET_CPU}}"
17246   fi
17247 
17248           # Corresponds to --with-msvcp-dll
17249 
17250   if test "x$DEVKIT_MSVCP_DLL" = x; then
17251     eval DEVKIT_MSVCP_DLL="\${DEVKIT_MSVCP_DLL_${OPENJDK_TARGET_CPU}}"
17252   fi
17253 
17254         fi
17255 
17256         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devkit" >&5
17257 $as_echo_n "checking for devkit... " >&6; }
17258         if test "x$DEVKIT_NAME" != x; then
17259           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_NAME in $DEVKIT_ROOT" >&5
17260 $as_echo "$DEVKIT_NAME in $DEVKIT_ROOT" >&6; }
17261         else
17262           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_ROOT" >&5
17263 $as_echo "$DEVKIT_ROOT" >&6; }
17264         fi
17265 
17266 
17267   if test "x$DEVKIT_EXTRA_PATH" != x; then
17268     if test "x$EXTRA_PATH" = x; then
17269       EXTRA_PATH="$DEVKIT_EXTRA_PATH"
17270     else
17271       EXTRA_PATH="$DEVKIT_EXTRA_PATH:$EXTRA_PATH"
17272     fi
17273   fi
17274 
17275 
17276         # Fallback default of just /bin if DEVKIT_PATH is not defined
17277         if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then
17278           DEVKIT_TOOLCHAIN_PATH="$DEVKIT_ROOT/bin"
17279         fi
17280 
17281   if test "x$DEVKIT_TOOLCHAIN_PATH" != x; then
17282     if test "x$TOOLCHAIN_PATH" = x; then
17283       TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH"
17284     else
17285       TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH:$TOOLCHAIN_PATH"
17286     fi
17287   fi
17288 
17289 
17290         # If DEVKIT_SYSROOT is set, use that, otherwise try a couple of known
17291         # places for backwards compatiblity.
17292         if test "x$DEVKIT_SYSROOT" != x; then
17293           SYSROOT="$DEVKIT_SYSROOT"
17294         elif test -d "$DEVKIT_ROOT/$host_alias/libc"; then
17295           SYSROOT="$DEVKIT_ROOT/$host_alias/libc"
17296         elif test -d "$DEVKIT_ROOT/$host/sys-root"; then
17297           SYSROOT="$DEVKIT_ROOT/$host/sys-root"
17298         fi
17299 
17300 
17301 fi
17302 
17303 
17304   # You can force the sysroot if the sysroot encoded into the compiler tools
17305   # is not correct.
17306 
17307 # Check whether --with-sys-root was given.
17308 if test "${with_sys_root+set}" = set; then :
17309   withval=$with_sys_root; SYSROOT=$with_sys_root
17310 
17311 fi
17312 
17313 
17314 
17315 # Check whether --with-sysroot was given.
17316 if test "${with_sysroot+set}" = set; then :
17317   withval=$with_sysroot; SYSROOT=$with_sysroot
17318 
17319 fi
17320 
17321 
17322 
17323 # Check whether --with-tools-dir was given.
17324 if test "${with_tools_dir+set}" = set; then :
17325   withval=$with_tools_dir;
17326   if test "x$with_tools_dir" != x; then
17327     if test "x$TOOLCHAIN_PATH" = x; then
17328       TOOLCHAIN_PATH="$with_tools_dir"
17329     else
17330       TOOLCHAIN_PATH="$with_tools_dir:$TOOLCHAIN_PATH"
17331     fi
17332   fi
17333 
17334 
17335 fi
17336 
17337 
17338 
17339 # Check whether --with-toolchain-path was given.
17340 if test "${with_toolchain_path+set}" = set; then :
17341   withval=$with_toolchain_path;
17342   if test "x$with_toolchain_path" != x; then
17343     if test "x$TOOLCHAIN_PATH" = x; then
17344       TOOLCHAIN_PATH="$with_toolchain_path"
17345     else
17346       TOOLCHAIN_PATH="$with_toolchain_path:$TOOLCHAIN_PATH"
17347     fi
17348   fi
17349 
17350 
17351 fi
17352 
17353 
17354 
17355 # Check whether --with-extra-path was given.
17356 if test "${with_extra_path+set}" = set; then :
17357   withval=$with_extra_path;
17358   if test "x$with_extra_path" != x; then
17359     if test "x$EXTRA_PATH" = x; then
17360       EXTRA_PATH="$with_extra_path"
17361     else
17362       EXTRA_PATH="$with_extra_path:$EXTRA_PATH"
17363     fi
17364   fi
17365 
17366 
17367 fi
17368 
17369 
17370   if test "x$OPENJDK_BUILD_OS" = "xmacosx"; then
17371     # If a devkit has been supplied, find xcodebuild in the toolchain_path.
17372     # If not, detect if Xcode is installed by running xcodebuild -version
17373     # if no Xcode installed, xcodebuild exits with 1
17374     # if Xcode is installed, even if xcode-select is misconfigured, then it exits with 0
17375     if test "x$DEVKIT_ROOT" != x || /usr/bin/xcodebuild -version >/dev/null 2>&1; then
17376       # We need to use xcodebuild in the toolchain dir provided by the user, this will
17377       # fall back on the stub binary in /usr/bin/xcodebuild
17378       # Extract the first word of "xcodebuild", so it can be a program name with args.
17379 set dummy xcodebuild; ac_word=$2
17380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17381 $as_echo_n "checking for $ac_word... " >&6; }
17382 if ${ac_cv_path_XCODEBUILD+:} false; then :
17383   $as_echo_n "(cached) " >&6
17384 else
17385   case $XCODEBUILD in
17386   [\\/]* | ?:[\\/]*)
17387   ac_cv_path_XCODEBUILD="$XCODEBUILD" # Let the user override the test with a path.
17388   ;;
17389   *)
17390   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17391 for as_dir in $TOOLCHAIN_PATH
17392 do
17393   IFS=$as_save_IFS
17394   test -z "$as_dir" && as_dir=.
17395     for ac_exec_ext in '' $ac_executable_extensions; do
17396   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17397     ac_cv_path_XCODEBUILD="$as_dir/$ac_word$ac_exec_ext"
17398     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17399     break 2
17400   fi
17401 done
17402   done
17403 IFS=$as_save_IFS
17404 
17405   test -z "$ac_cv_path_XCODEBUILD" && ac_cv_path_XCODEBUILD="/usr/bin/xcodebuild"
17406   ;;
17407 esac
17408 fi
17409 XCODEBUILD=$ac_cv_path_XCODEBUILD
17410 if test -n "$XCODEBUILD"; then
17411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODEBUILD" >&5
17412 $as_echo "$XCODEBUILD" >&6; }
17413 else
17414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17415 $as_echo "no" >&6; }
17416 fi
17417 
17418 
17419     else
17420       # this should result in SYSROOT being empty, unless --with-sysroot is provided
17421       # when only the command line tools are installed there are no SDKs, so headers
17422       # are copied into the system frameworks
17423       XCODEBUILD=
17424 
17425     fi
17426 
17427     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdk name" >&5
17428 $as_echo_n "checking for sdk name... " >&6; }
17429 
17430 # Check whether --with-sdk-name was given.
17431 if test "${with_sdk_name+set}" = set; then :
17432   withval=$with_sdk_name; SDKNAME=$with_sdk_name
17433 
17434 fi
17435 
17436     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDKNAME" >&5
17437 $as_echo "$SDKNAME" >&6; }
17438 
17439     # if toolchain path is specified then don't rely on system headers, they may not compile
17440     HAVE_SYSTEM_FRAMEWORK_HEADERS=0
17441     test -z "$TOOLCHAIN_PATH" && \
17442       HAVE_SYSTEM_FRAMEWORK_HEADERS=`test ! -f /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h; echo $?`
17443 
17444     if test -z "$SYSROOT"; then
17445       if test -n "$XCODEBUILD"; then
17446         # if we don't have system headers, use default SDK name (last resort)
17447         if test -z "$SDKNAME" -a $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then
17448           SDKNAME=${SDKNAME:-macosx}
17449         fi
17450 
17451         if test -n "$SDKNAME"; then
17452           # Call xcodebuild to determine SYSROOT
17453           SYSROOT=`"$XCODEBUILD" -sdk $SDKNAME -version | $GREP '^Path: ' | $SED 's/Path: //'`
17454         fi
17455       else
17456         if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then
17457           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
17458         fi
17459       fi
17460     else
17461       # warn user if --with-sdk-name was also set
17462       if test -n "$with_sdk_name"; then
17463         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&5
17464 $as_echo "$as_me: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&2;}
17465       fi
17466     fi
17467 
17468     if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0 -a -z "$SYSROOT"; then
17469       # If no system framework headers, then SYSROOT must be set, or we won't build
17470       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
17471     fi
17472 
17473     # Perform a basic sanity test
17474     if test ! -f "$SYSROOT/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h"; then
17475       if test -z "$SYSROOT"; then
17476         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
17477       else
17478         as_fn_error $? "Invalid SDK or SYSROOT path, dependent framework headers not found" "$LINENO" 5
17479       fi
17480     fi
17481 
17482     # set SDKROOT too, Xcode tools will pick it up
17483     SDKROOT="$SYSROOT"
17484 
17485   fi
17486 
17487   # Prepend the extra path to the global path
17488 
17489   if test "x$EXTRA_PATH" != x; then
17490     if test "x$PATH" = x; then
17491       PATH="$EXTRA_PATH"
17492     else
17493       PATH="$EXTRA_PATH:$PATH"
17494     fi
17495   fi
17496 
17497 
17498   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
17499 $as_echo_n "checking for sysroot... " >&6; }
17500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSROOT" >&5
17501 $as_echo "$SYSROOT" >&6; }
17502   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for toolchain path" >&5
17503 $as_echo_n "checking for toolchain path... " >&6; }
17504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH" >&5
17505 $as_echo "$TOOLCHAIN_PATH" >&6; }
17506   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra path" >&5
17507 $as_echo_n "checking for extra path... " >&6; }
17508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_PATH" >&5
17509 $as_echo "$EXTRA_PATH" >&6; }
17510 
17511 
17512 # To properly create a configuration name, we need to have the OpenJDK target
17513 # and options (variants and debug level) parsed.
17514 
17515 
17516 
17517 # Check whether --with-conf-name was given.
17518 if test "${with_conf_name+set}" = set; then :
17519   withval=$with_conf_name;  CONF_NAME=${with_conf_name}
17520 fi
17521 
17522 
17523   # Test from where we are running configure, in or outside of src root.
17524   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to store configuration" >&5
17525 $as_echo_n "checking where to store configuration... " >&6; }
17526   if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" \
17527       || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" \
17528       || test "x$CURDIR" = "x$SRC_ROOT/make" ; then
17529     # We are running configure from the src root.
17530     # Create a default ./build/target-variant-debuglevel output root.
17531     if test "x${CONF_NAME}" = x; then
17532       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default location" >&5
17533 $as_echo "in default location" >&6; }
17534       CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${JVM_VARIANTS_WITH_AND}-${DEBUG_LEVEL}"
17535     else
17536       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5
17537 $as_echo "in build directory with custom name" >&6; }
17538     fi
17539     OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}"
17540     $MKDIR -p "$OUTPUT_ROOT"
17541     if test ! -d "$OUTPUT_ROOT"; then
17542       as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5
17543     fi
17544   else
17545     # We are running configure from outside of the src dir.
17546     # Then use the current directory as output dir!
17547     # If configuration is situated in normal build directory, just use the build
17548     # directory name as configuration name, otherwise use the complete path.
17549     if test "x${CONF_NAME}" = x; then
17550       CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${SRC_ROOT}/build/!!"`
17551     fi
17552     OUTPUT_ROOT="$CURDIR"
17553     { $as_echo "$as_me:${as_lineno-$LINENO}: result: in current directory" >&5
17554 $as_echo "in current directory" >&6; }
17555 
17556     # WARNING: This might be a bad thing to do. You need to be sure you want to
17557     # have a configuration in this directory. Do some sanity checks!
17558 
17559     if test ! -e "$OUTPUT_ROOT/spec.gmk"; then
17560       # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for
17561       # other files
17562       files_present=`$LS $OUTPUT_ROOT`
17563       # Configure has already touched config.log and confdefs.h in the current dir when this check
17564       # is performed.
17565       filtered_files=`$ECHO "$files_present" \
17566           | $SED -e 's/config.log//g' \
17567               -e 's/configure.log//g' \
17568               -e 's/confdefs.h//g' \
17569               -e 's/ //g' \
17570           | $TR -d '\n'`
17571       if test "x$filtered_files" != x; then
17572         { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5
17573 $as_echo "$as_me: Current directory is $CURDIR." >&6;}
17574         { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5
17575 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;}
17576         { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5
17577 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;}
17578         { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5
17579 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;}
17580         { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5
17581 $as_echo "$as_me: seriously mess up just about everything." >&6;}
17582         { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $SRC_ROOT' and restart configure" >&5
17583 $as_echo "$as_me: Try 'cd $SRC_ROOT' and restart configure" >&6;}
17584         { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5
17585 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;}
17586         as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5
17587       fi
17588     fi
17589   fi
17590   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5
17591 $as_echo_n "checking what configuration name to use... " >&6; }
17592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5
17593 $as_echo "$CONF_NAME" >&6; }
17594 
17595 
17596   # Only process if variable expands to non-empty
17597 
17598   if test "x$OUTPUT_ROOT" != x; then
17599     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17600 
17601   # Input might be given as Windows format, start by converting to
17602   # unix format.
17603   path="$OUTPUT_ROOT"
17604   new_path=`$CYGPATH -u "$path"`
17605 
17606   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
17607   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
17608   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
17609   # "foo.exe" is OK but "foo" is an error.
17610   #
17611   # This test is therefore slightly more accurate than "test -f" to check for file precense.
17612   # It is also a way to make sure we got the proper file name for the real test later on.
17613   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
17614   if test "x$test_shortpath" = x; then
17615     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
17616 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
17617     as_fn_error $? "Cannot locate the the path of OUTPUT_ROOT" "$LINENO" 5
17618   fi
17619 
17620   # Call helper function which possibly converts this using DOS-style short mode.
17621   # If so, the updated path is stored in $new_path.
17622 
17623   input_path="$new_path"
17624   # Check if we need to convert this using DOS-style short mode. If the path
17625   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17626   # take no chances and rewrite it.
17627   # Note: m4 eats our [], so we need to use [ and ] instead.
17628   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
17629   if test "x$has_forbidden_chars" != x; then
17630     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17631     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
17632     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
17633     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
17634       # Going to short mode and back again did indeed matter. Since short mode is
17635       # case insensitive, let's make it lowercase to improve readability.
17636       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17637       # Now convert it back to Unix-style (cygpath)
17638       input_path=`$CYGPATH -u "$shortmode_path"`
17639       new_path="$input_path"
17640     fi
17641   fi
17642 
17643   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
17644   if test "x$test_cygdrive_prefix" = x; then
17645     # As a simple fix, exclude /usr/bin since it's not a real path.
17646     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
17647       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
17648       # a path prefixed by /cygdrive for fixpath to work.
17649       new_path="$CYGWIN_ROOT_PATH$input_path"
17650     fi
17651   fi
17652 
17653 
17654   if test "x$path" != "x$new_path"; then
17655     OUTPUT_ROOT="$new_path"
17656     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
17657 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
17658   fi
17659 
17660     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17661 
17662   path="$OUTPUT_ROOT"
17663   has_colon=`$ECHO $path | $GREP ^.:`
17664   new_path="$path"
17665   if test "x$has_colon" = x; then
17666     # Not in mixed or Windows style, start by that.
17667     new_path=`cmd //c echo $path`
17668   fi
17669 
17670 
17671   input_path="$new_path"
17672   # Check if we need to convert this using DOS-style short mode. If the path
17673   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17674   # take no chances and rewrite it.
17675   # Note: m4 eats our [], so we need to use [ and ] instead.
17676   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
17677   if test "x$has_forbidden_chars" != x; then
17678     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17679     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17680   fi
17681 
17682 
17683   windows_path="$new_path"
17684   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17685     unix_path=`$CYGPATH -u "$windows_path"`
17686     new_path="$unix_path"
17687   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17688     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17689     new_path="$unix_path"
17690   fi
17691 
17692   if test "x$path" != "x$new_path"; then
17693     OUTPUT_ROOT="$new_path"
17694     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
17695 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
17696   fi
17697 
17698   # Save the first 10 bytes of this path to the storage, so fixpath can work.
17699   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
17700 
17701     else
17702       # We're on a unix platform. Hooray! :)
17703       path="$OUTPUT_ROOT"
17704       has_space=`$ECHO "$path" | $GREP " "`
17705       if test "x$has_space" != x; then
17706         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
17707 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
17708         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
17709       fi
17710 
17711       # Use eval to expand a potential ~
17712       eval path="$path"
17713       if test ! -f "$path" && test ! -d "$path"; then
17714         as_fn_error $? "The path of OUTPUT_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5
17715       fi
17716 
17717       if test -d "$path"; then
17718         OUTPUT_ROOT="`cd "$path"; $THEPWDCMD -L`"
17719       else
17720         dir="`$DIRNAME "$path"`"
17721         base="`$BASENAME "$path"`"
17722         OUTPUT_ROOT="`cd "$dir"; $THEPWDCMD -L`/$base"
17723       fi
17724     fi
17725   fi
17726 
17727 
17728   CONFIGURESUPPORT_OUTPUTDIR="$OUTPUT_ROOT/configure-support"
17729   $MKDIR -p "$CONFIGURESUPPORT_OUTPUTDIR"
17730 
17731   SPEC="$OUTPUT_ROOT/spec.gmk"
17732 
17733 
17734 
17735 
17736 
17737   # The spec.gmk file contains all variables for the make system.
17738   ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in"
17739 
17740   # The bootcycle-spec.gmk file contains support for boot cycle builds.
17741   ac_config_files="$ac_config_files $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in"
17742 
17743   # The buildjdk-spec.gmk file contains support for building a buildjdk when cross compiling.
17744   ac_config_files="$ac_config_files $OUTPUT_ROOT/buildjdk-spec.gmk:$AUTOCONF_DIR/buildjdk-spec.gmk.in"
17745 
17746   # The compare.sh is used to compare the build output to other builds.
17747   ac_config_files="$ac_config_files $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in"
17748 
17749   # The generated Makefile knows where the spec.gmk is and where the source is.
17750   # You can run make from the OUTPUT_ROOT, or from the top-level Makefile
17751   # which will look for generated configurations
17752   ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in"
17753 
17754 
17755 
17756 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY.
17757 
17758   for ac_prog in apt-get yum brew port pkgutil pkgadd
17759 do
17760   # Extract the first word of "$ac_prog", so it can be a program name with args.
17761 set dummy $ac_prog; ac_word=$2
17762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17763 $as_echo_n "checking for $ac_word... " >&6; }
17764 if ${ac_cv_prog_PKGHANDLER+:} false; then :
17765   $as_echo_n "(cached) " >&6
17766 else
17767   if test -n "$PKGHANDLER"; then
17768   ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test.
17769 else
17770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17771 for as_dir in $PATH
17772 do
17773   IFS=$as_save_IFS
17774   test -z "$as_dir" && as_dir=.
17775     for ac_exec_ext in '' $ac_executable_extensions; do
17776   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17777     ac_cv_prog_PKGHANDLER="$ac_prog"
17778     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17779     break 2
17780   fi
17781 done
17782   done
17783 IFS=$as_save_IFS
17784 
17785 fi
17786 fi
17787 PKGHANDLER=$ac_cv_prog_PKGHANDLER
17788 if test -n "$PKGHANDLER"; then
17789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5
17790 $as_echo "$PKGHANDLER" >&6; }
17791 else
17792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17793 $as_echo "no" >&6; }
17794 fi
17795 
17796 
17797   test -n "$PKGHANDLER" && break
17798 done
17799 
17800 
17801 
17802 # Setup tools that requires more complex handling, or that is not needed by the configure script.
17803 
17804 
17805 
17806   # Publish this variable in the help.
17807 
17808 
17809   if [ -z "${MAKE+x}" ]; then
17810     # The variable is not set by user, try to locate tool using the code snippet
17811 
17812     # Try our hardest to locate a correct version of GNU make
17813     for ac_prog in gmake
17814 do
17815   # Extract the first word of "$ac_prog", so it can be a program name with args.
17816 set dummy $ac_prog; ac_word=$2
17817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17818 $as_echo_n "checking for $ac_word... " >&6; }
17819 if ${ac_cv_path_CHECK_GMAKE+:} false; then :
17820   $as_echo_n "(cached) " >&6
17821 else
17822   case $CHECK_GMAKE in
17823   [\\/]* | ?:[\\/]*)
17824   ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
17825   ;;
17826   *)
17827   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17828 for as_dir in $PATH
17829 do
17830   IFS=$as_save_IFS
17831   test -z "$as_dir" && as_dir=.
17832     for ac_exec_ext in '' $ac_executable_extensions; do
17833   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17834     ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
17835     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17836     break 2
17837   fi
17838 done
17839   done
17840 IFS=$as_save_IFS
17841 
17842   ;;
17843 esac
17844 fi
17845 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE
17846 if test -n "$CHECK_GMAKE"; then
17847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5
17848 $as_echo "$CHECK_GMAKE" >&6; }
17849 else
17850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17851 $as_echo "no" >&6; }
17852 fi
17853 
17854 
17855   test -n "$CHECK_GMAKE" && break
17856 done
17857 
17858 
17859   MAKE_CANDIDATE=""$CHECK_GMAKE""
17860   DESCRIPTION="gmake in PATH"
17861 
17862   # On Cygwin, we require a newer version of make than on other platforms
17863   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17864     MAKE_VERSION_EXPR="-e 4\."
17865     MAKE_REQUIRED_VERSION="4.0"
17866    else
17867     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
17868     MAKE_REQUIRED_VERSION="3.81"
17869   fi
17870 
17871   if test "x$MAKE_CANDIDATE" != x; then
17872     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
17873 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
17874     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
17875     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
17876     if test "x$IS_GNU_MAKE" = x; then
17877       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
17878 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
17879     else
17880       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
17881       if test "x$IS_MODERN_MAKE" = x; then
17882         { $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
17883 $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;}
17884       else
17885         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
17886           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17887             MAKE_EXPECTED_ENV='cygwin'
17888           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17889             MAKE_EXPECTED_ENV='msys'
17890           else
17891             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
17892           fi
17893           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
17894           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
17895         else
17896           # Not relevant for non-Windows
17897           IS_MAKE_CORRECT_ENV=true
17898         fi
17899         if test "x$IS_MAKE_CORRECT_ENV" = x; then
17900           { $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
17901 $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;}
17902         else
17903           FOUND_MAKE=$MAKE_CANDIDATE
17904 
17905   # Only process if variable expands to non-empty
17906 
17907   if test "x$FOUND_MAKE" != x; then
17908     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17909 
17910   # First separate the path from the arguments. This will split at the first
17911   # space.
17912   complete="$FOUND_MAKE"
17913   path="${complete%% *}"
17914   tmp="$complete EOL"
17915   arguments="${tmp#* }"
17916 
17917   # Input might be given as Windows format, start by converting to
17918   # unix format.
17919   new_path=`$CYGPATH -u "$path"`
17920 
17921   # Now try to locate executable using which
17922   new_path=`$WHICH "$new_path" 2> /dev/null`
17923   # bat and cmd files are not always considered executable in cygwin causing which
17924   # to not find them
17925   if test "x$new_path" = x \
17926       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17927       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17928     new_path=`$CYGPATH -u "$path"`
17929   fi
17930   if test "x$new_path" = x; then
17931     # Oops. Which didn't find the executable.
17932     # The splitting of arguments from the executable at a space might have been incorrect,
17933     # since paths with space are more likely in Windows. Give it another try with the whole
17934     # argument.
17935     path="$complete"
17936     arguments="EOL"
17937     new_path=`$CYGPATH -u "$path"`
17938     new_path=`$WHICH "$new_path" 2> /dev/null`
17939     # bat and cmd files are not always considered executable in cygwin causing which
17940     # to not find them
17941     if test "x$new_path" = x \
17942         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17943         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17944       new_path=`$CYGPATH -u "$path"`
17945     fi
17946     if test "x$new_path" = x; then
17947       # It's still not found. Now this is an unrecoverable error.
17948       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17949 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17950       has_space=`$ECHO "$complete" | $GREP " "`
17951       if test "x$has_space" != x; then
17952         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17953 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17954       fi
17955       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17956     fi
17957   fi
17958 
17959   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
17960   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
17961   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
17962   # "foo.exe" is OK but "foo" is an error.
17963   #
17964   # This test is therefore slightly more accurate than "test -f" to check for file presence.
17965   # It is also a way to make sure we got the proper file name for the real test later on.
17966   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
17967   if test "x$test_shortpath" = x; then
17968     # Short path failed, file does not exist as specified.
17969     # Try adding .exe or .cmd
17970     if test -f "${new_path}.exe"; then
17971       input_to_shortpath="${new_path}.exe"
17972     elif test -f "${new_path}.cmd"; then
17973       input_to_shortpath="${new_path}.cmd"
17974     else
17975       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
17976 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
17977       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
17978 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
17979       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17980     fi
17981   else
17982     input_to_shortpath="$new_path"
17983   fi
17984 
17985   # Call helper function which possibly converts this using DOS-style short mode.
17986   # If so, the updated path is stored in $new_path.
17987   new_path="$input_to_shortpath"
17988 
17989   input_path="$input_to_shortpath"
17990   # Check if we need to convert this using DOS-style short mode. If the path
17991   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17992   # take no chances and rewrite it.
17993   # Note: m4 eats our [], so we need to use [ and ] instead.
17994   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
17995   if test "x$has_forbidden_chars" != x; then
17996     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17997     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
17998     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
17999     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
18000       # Going to short mode and back again did indeed matter. Since short mode is
18001       # case insensitive, let's make it lowercase to improve readability.
18002       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18003       # Now convert it back to Unix-style (cygpath)
18004       input_path=`$CYGPATH -u "$shortmode_path"`
18005       new_path="$input_path"
18006     fi
18007   fi
18008 
18009   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
18010   if test "x$test_cygdrive_prefix" = x; then
18011     # As a simple fix, exclude /usr/bin since it's not a real path.
18012     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
18013       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
18014       # a path prefixed by /cygdrive for fixpath to work.
18015       new_path="$CYGWIN_ROOT_PATH$input_path"
18016     fi
18017   fi
18018 
18019   # remove trailing .exe if any
18020   new_path="${new_path/%.exe/}"
18021 
18022     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18023 
18024   # First separate the path from the arguments. This will split at the first
18025   # space.
18026   complete="$FOUND_MAKE"
18027   path="${complete%% *}"
18028   tmp="$complete EOL"
18029   arguments="${tmp#* }"
18030 
18031   # Input might be given as Windows format, start by converting to
18032   # unix format.
18033   new_path="$path"
18034 
18035   windows_path="$new_path"
18036   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18037     unix_path=`$CYGPATH -u "$windows_path"`
18038     new_path="$unix_path"
18039   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18040     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18041     new_path="$unix_path"
18042   fi
18043 
18044 
18045   # Now try to locate executable using which
18046   new_path=`$WHICH "$new_path" 2> /dev/null`
18047 
18048   if test "x$new_path" = x; then
18049     # Oops. Which didn't find the executable.
18050     # The splitting of arguments from the executable at a space might have been incorrect,
18051     # since paths with space are more likely in Windows. Give it another try with the whole
18052     # argument.
18053     path="$complete"
18054     arguments="EOL"
18055     new_path="$path"
18056 
18057   windows_path="$new_path"
18058   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18059     unix_path=`$CYGPATH -u "$windows_path"`
18060     new_path="$unix_path"
18061   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18062     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18063     new_path="$unix_path"
18064   fi
18065 
18066 
18067     new_path=`$WHICH "$new_path" 2> /dev/null`
18068     # bat and cmd files are not always considered executable in MSYS causing which
18069     # to not find them
18070     if test "x$new_path" = x \
18071         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18072         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18073       new_path="$path"
18074 
18075   windows_path="$new_path"
18076   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18077     unix_path=`$CYGPATH -u "$windows_path"`
18078     new_path="$unix_path"
18079   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18080     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18081     new_path="$unix_path"
18082   fi
18083 
18084     fi
18085 
18086     if test "x$new_path" = x; then
18087       # It's still not found. Now this is an unrecoverable error.
18088       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18089 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18090       has_space=`$ECHO "$complete" | $GREP " "`
18091       if test "x$has_space" != x; then
18092         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18093 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18094       fi
18095       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18096     fi
18097   fi
18098 
18099   # Now new_path has a complete unix path to the binary
18100   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
18101     # Keep paths in /bin as-is, but remove trailing .exe if any
18102     new_path="${new_path/%.exe/}"
18103     # Do not save /bin paths to all_fixpath_prefixes!
18104   else
18105     # Not in mixed or Windows style, start by that.
18106     new_path=`cmd //c echo $new_path`
18107 
18108   input_path="$new_path"
18109   # Check if we need to convert this using DOS-style short mode. If the path
18110   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18111   # take no chances and rewrite it.
18112   # Note: m4 eats our [], so we need to use [ and ] instead.
18113   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
18114   if test "x$has_forbidden_chars" != x; then
18115     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18116     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18117   fi
18118 
18119     # Output is in $new_path
18120 
18121   windows_path="$new_path"
18122   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18123     unix_path=`$CYGPATH -u "$windows_path"`
18124     new_path="$unix_path"
18125   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18126     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18127     new_path="$unix_path"
18128   fi
18129 
18130     # remove trailing .exe if any
18131     new_path="${new_path/%.exe/}"
18132 
18133     # Save the first 10 bytes of this path to the storage, so fixpath can work.
18134     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
18135   fi
18136 
18137     else
18138       # We're on a unix platform. Hooray! :)
18139       # First separate the path from the arguments. This will split at the first
18140       # space.
18141       complete="$FOUND_MAKE"
18142       path="${complete%% *}"
18143       tmp="$complete EOL"
18144       arguments="${tmp#* }"
18145 
18146       # Cannot rely on the command "which" here since it doesn't always work.
18147       is_absolute_path=`$ECHO "$path" | $GREP ^/`
18148       if test -z "$is_absolute_path"; then
18149         # Path to executable is not absolute. Find it.
18150         IFS_save="$IFS"
18151         IFS=:
18152         for p in $PATH; do
18153           if test -f "$p/$path" && test -x "$p/$path"; then
18154             new_path="$p/$path"
18155             break
18156           fi
18157         done
18158         IFS="$IFS_save"
18159       else
18160         # This is an absolute path, we can use it without further modifications.
18161         new_path="$path"
18162       fi
18163 
18164       if test "x$new_path" = x; then
18165         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18166 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18167         has_space=`$ECHO "$complete" | $GREP " "`
18168         if test "x$has_space" != x; then
18169           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
18170 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
18171         fi
18172         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18173       fi
18174     fi
18175 
18176     # Now join together the path and the arguments once again
18177     if test "x$arguments" != xEOL; then
18178       new_complete="$new_path ${arguments% *}"
18179     else
18180       new_complete="$new_path"
18181     fi
18182 
18183     if test "x$complete" != "x$new_complete"; then
18184       FOUND_MAKE="$new_complete"
18185       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
18186 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
18187     fi
18188   fi
18189 
18190         fi
18191       fi
18192     fi
18193   fi
18194 
18195 
18196     if test "x$FOUND_MAKE" = x; then
18197       for ac_prog in make
18198 do
18199   # Extract the first word of "$ac_prog", so it can be a program name with args.
18200 set dummy $ac_prog; ac_word=$2
18201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18202 $as_echo_n "checking for $ac_word... " >&6; }
18203 if ${ac_cv_path_CHECK_MAKE+:} false; then :
18204   $as_echo_n "(cached) " >&6
18205 else
18206   case $CHECK_MAKE in
18207   [\\/]* | ?:[\\/]*)
18208   ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
18209   ;;
18210   *)
18211   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18212 for as_dir in $PATH
18213 do
18214   IFS=$as_save_IFS
18215   test -z "$as_dir" && as_dir=.
18216     for ac_exec_ext in '' $ac_executable_extensions; do
18217   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18218     ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
18219     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18220     break 2
18221   fi
18222 done
18223   done
18224 IFS=$as_save_IFS
18225 
18226   ;;
18227 esac
18228 fi
18229 CHECK_MAKE=$ac_cv_path_CHECK_MAKE
18230 if test -n "$CHECK_MAKE"; then
18231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5
18232 $as_echo "$CHECK_MAKE" >&6; }
18233 else
18234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18235 $as_echo "no" >&6; }
18236 fi
18237 
18238 
18239   test -n "$CHECK_MAKE" && break
18240 done
18241 
18242 
18243   MAKE_CANDIDATE=""$CHECK_MAKE""
18244   DESCRIPTION="make in PATH"
18245 
18246   # On Cygwin, we require a newer version of make than on other platforms
18247   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18248     MAKE_VERSION_EXPR="-e 4\."
18249     MAKE_REQUIRED_VERSION="4.0"
18250    else
18251     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
18252     MAKE_REQUIRED_VERSION="3.81"
18253   fi
18254 
18255   if test "x$MAKE_CANDIDATE" != x; then
18256     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
18257 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
18258     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
18259     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
18260     if test "x$IS_GNU_MAKE" = x; then
18261       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
18262 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
18263     else
18264       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
18265       if test "x$IS_MODERN_MAKE" = x; then
18266         { $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
18267 $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;}
18268       else
18269         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
18270           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18271             MAKE_EXPECTED_ENV='cygwin'
18272           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18273             MAKE_EXPECTED_ENV='msys'
18274           else
18275             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
18276           fi
18277           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
18278           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
18279         else
18280           # Not relevant for non-Windows
18281           IS_MAKE_CORRECT_ENV=true
18282         fi
18283         if test "x$IS_MAKE_CORRECT_ENV" = x; then
18284           { $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
18285 $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;}
18286         else
18287           FOUND_MAKE=$MAKE_CANDIDATE
18288 
18289   # Only process if variable expands to non-empty
18290 
18291   if test "x$FOUND_MAKE" != x; then
18292     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18293 
18294   # First separate the path from the arguments. This will split at the first
18295   # space.
18296   complete="$FOUND_MAKE"
18297   path="${complete%% *}"
18298   tmp="$complete EOL"
18299   arguments="${tmp#* }"
18300 
18301   # Input might be given as Windows format, start by converting to
18302   # unix format.
18303   new_path=`$CYGPATH -u "$path"`
18304 
18305   # Now try to locate executable using which
18306   new_path=`$WHICH "$new_path" 2> /dev/null`
18307   # bat and cmd files are not always considered executable in cygwin causing which
18308   # to not find them
18309   if test "x$new_path" = x \
18310       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18311       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18312     new_path=`$CYGPATH -u "$path"`
18313   fi
18314   if test "x$new_path" = x; then
18315     # Oops. Which didn't find the executable.
18316     # The splitting of arguments from the executable at a space might have been incorrect,
18317     # since paths with space are more likely in Windows. Give it another try with the whole
18318     # argument.
18319     path="$complete"
18320     arguments="EOL"
18321     new_path=`$CYGPATH -u "$path"`
18322     new_path=`$WHICH "$new_path" 2> /dev/null`
18323     # bat and cmd files are not always considered executable in cygwin causing which
18324     # to not find them
18325     if test "x$new_path" = x \
18326         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18327         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18328       new_path=`$CYGPATH -u "$path"`
18329     fi
18330     if test "x$new_path" = x; then
18331       # It's still not found. Now this is an unrecoverable error.
18332       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18333 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18334       has_space=`$ECHO "$complete" | $GREP " "`
18335       if test "x$has_space" != x; then
18336         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18337 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18338       fi
18339       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18340     fi
18341   fi
18342 
18343   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
18344   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
18345   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
18346   # "foo.exe" is OK but "foo" is an error.
18347   #
18348   # This test is therefore slightly more accurate than "test -f" to check for file presence.
18349   # It is also a way to make sure we got the proper file name for the real test later on.
18350   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
18351   if test "x$test_shortpath" = x; then
18352     # Short path failed, file does not exist as specified.
18353     # Try adding .exe or .cmd
18354     if test -f "${new_path}.exe"; then
18355       input_to_shortpath="${new_path}.exe"
18356     elif test -f "${new_path}.cmd"; then
18357       input_to_shortpath="${new_path}.cmd"
18358     else
18359       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
18360 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
18361       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
18362 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
18363       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18364     fi
18365   else
18366     input_to_shortpath="$new_path"
18367   fi
18368 
18369   # Call helper function which possibly converts this using DOS-style short mode.
18370   # If so, the updated path is stored in $new_path.
18371   new_path="$input_to_shortpath"
18372 
18373   input_path="$input_to_shortpath"
18374   # Check if we need to convert this using DOS-style short mode. If the path
18375   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18376   # take no chances and rewrite it.
18377   # Note: m4 eats our [], so we need to use [ and ] instead.
18378   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
18379   if test "x$has_forbidden_chars" != x; then
18380     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18381     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
18382     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
18383     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
18384       # Going to short mode and back again did indeed matter. Since short mode is
18385       # case insensitive, let's make it lowercase to improve readability.
18386       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18387       # Now convert it back to Unix-style (cygpath)
18388       input_path=`$CYGPATH -u "$shortmode_path"`
18389       new_path="$input_path"
18390     fi
18391   fi
18392 
18393   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
18394   if test "x$test_cygdrive_prefix" = x; then
18395     # As a simple fix, exclude /usr/bin since it's not a real path.
18396     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
18397       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
18398       # a path prefixed by /cygdrive for fixpath to work.
18399       new_path="$CYGWIN_ROOT_PATH$input_path"
18400     fi
18401   fi
18402 
18403   # remove trailing .exe if any
18404   new_path="${new_path/%.exe/}"
18405 
18406     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18407 
18408   # First separate the path from the arguments. This will split at the first
18409   # space.
18410   complete="$FOUND_MAKE"
18411   path="${complete%% *}"
18412   tmp="$complete EOL"
18413   arguments="${tmp#* }"
18414 
18415   # Input might be given as Windows format, start by converting to
18416   # unix format.
18417   new_path="$path"
18418 
18419   windows_path="$new_path"
18420   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18421     unix_path=`$CYGPATH -u "$windows_path"`
18422     new_path="$unix_path"
18423   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18424     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18425     new_path="$unix_path"
18426   fi
18427 
18428 
18429   # Now try to locate executable using which
18430   new_path=`$WHICH "$new_path" 2> /dev/null`
18431 
18432   if test "x$new_path" = x; then
18433     # Oops. Which didn't find the executable.
18434     # The splitting of arguments from the executable at a space might have been incorrect,
18435     # since paths with space are more likely in Windows. Give it another try with the whole
18436     # argument.
18437     path="$complete"
18438     arguments="EOL"
18439     new_path="$path"
18440 
18441   windows_path="$new_path"
18442   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18443     unix_path=`$CYGPATH -u "$windows_path"`
18444     new_path="$unix_path"
18445   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18446     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18447     new_path="$unix_path"
18448   fi
18449 
18450 
18451     new_path=`$WHICH "$new_path" 2> /dev/null`
18452     # bat and cmd files are not always considered executable in MSYS causing which
18453     # to not find them
18454     if test "x$new_path" = x \
18455         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18456         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18457       new_path="$path"
18458 
18459   windows_path="$new_path"
18460   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18461     unix_path=`$CYGPATH -u "$windows_path"`
18462     new_path="$unix_path"
18463   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18464     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18465     new_path="$unix_path"
18466   fi
18467 
18468     fi
18469 
18470     if test "x$new_path" = x; then
18471       # It's still not found. Now this is an unrecoverable error.
18472       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18473 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18474       has_space=`$ECHO "$complete" | $GREP " "`
18475       if test "x$has_space" != x; then
18476         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18477 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18478       fi
18479       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18480     fi
18481   fi
18482 
18483   # Now new_path has a complete unix path to the binary
18484   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
18485     # Keep paths in /bin as-is, but remove trailing .exe if any
18486     new_path="${new_path/%.exe/}"
18487     # Do not save /bin paths to all_fixpath_prefixes!
18488   else
18489     # Not in mixed or Windows style, start by that.
18490     new_path=`cmd //c echo $new_path`
18491 
18492   input_path="$new_path"
18493   # Check if we need to convert this using DOS-style short mode. If the path
18494   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18495   # take no chances and rewrite it.
18496   # Note: m4 eats our [], so we need to use [ and ] instead.
18497   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
18498   if test "x$has_forbidden_chars" != x; then
18499     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18500     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18501   fi
18502 
18503     # Output is in $new_path
18504 
18505   windows_path="$new_path"
18506   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18507     unix_path=`$CYGPATH -u "$windows_path"`
18508     new_path="$unix_path"
18509   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18510     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18511     new_path="$unix_path"
18512   fi
18513 
18514     # remove trailing .exe if any
18515     new_path="${new_path/%.exe/}"
18516 
18517     # Save the first 10 bytes of this path to the storage, so fixpath can work.
18518     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
18519   fi
18520 
18521     else
18522       # We're on a unix platform. Hooray! :)
18523       # First separate the path from the arguments. This will split at the first
18524       # space.
18525       complete="$FOUND_MAKE"
18526       path="${complete%% *}"
18527       tmp="$complete EOL"
18528       arguments="${tmp#* }"
18529 
18530       # Cannot rely on the command "which" here since it doesn't always work.
18531       is_absolute_path=`$ECHO "$path" | $GREP ^/`
18532       if test -z "$is_absolute_path"; then
18533         # Path to executable is not absolute. Find it.
18534         IFS_save="$IFS"
18535         IFS=:
18536         for p in $PATH; do
18537           if test -f "$p/$path" && test -x "$p/$path"; then
18538             new_path="$p/$path"
18539             break
18540           fi
18541         done
18542         IFS="$IFS_save"
18543       else
18544         # This is an absolute path, we can use it without further modifications.
18545         new_path="$path"
18546       fi
18547 
18548       if test "x$new_path" = x; then
18549         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18550 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18551         has_space=`$ECHO "$complete" | $GREP " "`
18552         if test "x$has_space" != x; then
18553           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
18554 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
18555         fi
18556         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18557       fi
18558     fi
18559 
18560     # Now join together the path and the arguments once again
18561     if test "x$arguments" != xEOL; then
18562       new_complete="$new_path ${arguments% *}"
18563     else
18564       new_complete="$new_path"
18565     fi
18566 
18567     if test "x$complete" != "x$new_complete"; then
18568       FOUND_MAKE="$new_complete"
18569       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
18570 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
18571     fi
18572   fi
18573 
18574         fi
18575       fi
18576     fi
18577   fi
18578 
18579     fi
18580 
18581     if test "x$FOUND_MAKE" = x; then
18582       if test "x$TOOLCHAIN_PATH" != x; then
18583         # We have a toolchain path, check that as well before giving up.
18584         OLD_PATH=$PATH
18585         PATH=$TOOLCHAIN_PATH:$PATH
18586         for ac_prog in gmake
18587 do
18588   # Extract the first word of "$ac_prog", so it can be a program name with args.
18589 set dummy $ac_prog; ac_word=$2
18590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18591 $as_echo_n "checking for $ac_word... " >&6; }
18592 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then :
18593   $as_echo_n "(cached) " >&6
18594 else
18595   case $CHECK_TOOLSDIR_GMAKE in
18596   [\\/]* | ?:[\\/]*)
18597   ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
18598   ;;
18599   *)
18600   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18601 for as_dir in $PATH
18602 do
18603   IFS=$as_save_IFS
18604   test -z "$as_dir" && as_dir=.
18605     for ac_exec_ext in '' $ac_executable_extensions; do
18606   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18607     ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
18608     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18609     break 2
18610   fi
18611 done
18612   done
18613 IFS=$as_save_IFS
18614 
18615   ;;
18616 esac
18617 fi
18618 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE
18619 if test -n "$CHECK_TOOLSDIR_GMAKE"; then
18620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5
18621 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; }
18622 else
18623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18624 $as_echo "no" >&6; }
18625 fi
18626 
18627 
18628   test -n "$CHECK_TOOLSDIR_GMAKE" && break
18629 done
18630 
18631 
18632   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE""
18633   DESCRIPTION="gmake in tools-dir"
18634 
18635   # On Cygwin, we require a newer version of make than on other platforms
18636   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18637     MAKE_VERSION_EXPR="-e 4\."
18638     MAKE_REQUIRED_VERSION="4.0"
18639    else
18640     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
18641     MAKE_REQUIRED_VERSION="3.81"
18642   fi
18643 
18644   if test "x$MAKE_CANDIDATE" != x; then
18645     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
18646 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
18647     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
18648     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
18649     if test "x$IS_GNU_MAKE" = x; then
18650       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
18651 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
18652     else
18653       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
18654       if test "x$IS_MODERN_MAKE" = x; then
18655         { $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
18656 $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;}
18657       else
18658         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
18659           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18660             MAKE_EXPECTED_ENV='cygwin'
18661           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18662             MAKE_EXPECTED_ENV='msys'
18663           else
18664             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
18665           fi
18666           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
18667           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
18668         else
18669           # Not relevant for non-Windows
18670           IS_MAKE_CORRECT_ENV=true
18671         fi
18672         if test "x$IS_MAKE_CORRECT_ENV" = x; then
18673           { $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
18674 $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;}
18675         else
18676           FOUND_MAKE=$MAKE_CANDIDATE
18677 
18678   # Only process if variable expands to non-empty
18679 
18680   if test "x$FOUND_MAKE" != x; then
18681     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18682 
18683   # First separate the path from the arguments. This will split at the first
18684   # space.
18685   complete="$FOUND_MAKE"
18686   path="${complete%% *}"
18687   tmp="$complete EOL"
18688   arguments="${tmp#* }"
18689 
18690   # Input might be given as Windows format, start by converting to
18691   # unix format.
18692   new_path=`$CYGPATH -u "$path"`
18693 
18694   # Now try to locate executable using which
18695   new_path=`$WHICH "$new_path" 2> /dev/null`
18696   # bat and cmd files are not always considered executable in cygwin causing which
18697   # to not find them
18698   if test "x$new_path" = x \
18699       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18700       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18701     new_path=`$CYGPATH -u "$path"`
18702   fi
18703   if test "x$new_path" = x; then
18704     # Oops. Which didn't find the executable.
18705     # The splitting of arguments from the executable at a space might have been incorrect,
18706     # since paths with space are more likely in Windows. Give it another try with the whole
18707     # argument.
18708     path="$complete"
18709     arguments="EOL"
18710     new_path=`$CYGPATH -u "$path"`
18711     new_path=`$WHICH "$new_path" 2> /dev/null`
18712     # bat and cmd files are not always considered executable in cygwin causing which
18713     # to not find them
18714     if test "x$new_path" = x \
18715         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18716         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18717       new_path=`$CYGPATH -u "$path"`
18718     fi
18719     if test "x$new_path" = x; then
18720       # It's still not found. Now this is an unrecoverable error.
18721       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18722 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18723       has_space=`$ECHO "$complete" | $GREP " "`
18724       if test "x$has_space" != x; then
18725         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18726 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18727       fi
18728       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18729     fi
18730   fi
18731 
18732   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
18733   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
18734   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
18735   # "foo.exe" is OK but "foo" is an error.
18736   #
18737   # This test is therefore slightly more accurate than "test -f" to check for file presence.
18738   # It is also a way to make sure we got the proper file name for the real test later on.
18739   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
18740   if test "x$test_shortpath" = x; then
18741     # Short path failed, file does not exist as specified.
18742     # Try adding .exe or .cmd
18743     if test -f "${new_path}.exe"; then
18744       input_to_shortpath="${new_path}.exe"
18745     elif test -f "${new_path}.cmd"; then
18746       input_to_shortpath="${new_path}.cmd"
18747     else
18748       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
18749 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
18750       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
18751 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
18752       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18753     fi
18754   else
18755     input_to_shortpath="$new_path"
18756   fi
18757 
18758   # Call helper function which possibly converts this using DOS-style short mode.
18759   # If so, the updated path is stored in $new_path.
18760   new_path="$input_to_shortpath"
18761 
18762   input_path="$input_to_shortpath"
18763   # Check if we need to convert this using DOS-style short mode. If the path
18764   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18765   # take no chances and rewrite it.
18766   # Note: m4 eats our [], so we need to use [ and ] instead.
18767   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
18768   if test "x$has_forbidden_chars" != x; then
18769     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18770     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
18771     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
18772     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
18773       # Going to short mode and back again did indeed matter. Since short mode is
18774       # case insensitive, let's make it lowercase to improve readability.
18775       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18776       # Now convert it back to Unix-style (cygpath)
18777       input_path=`$CYGPATH -u "$shortmode_path"`
18778       new_path="$input_path"
18779     fi
18780   fi
18781 
18782   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
18783   if test "x$test_cygdrive_prefix" = x; then
18784     # As a simple fix, exclude /usr/bin since it's not a real path.
18785     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
18786       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
18787       # a path prefixed by /cygdrive for fixpath to work.
18788       new_path="$CYGWIN_ROOT_PATH$input_path"
18789     fi
18790   fi
18791 
18792   # remove trailing .exe if any
18793   new_path="${new_path/%.exe/}"
18794 
18795     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18796 
18797   # First separate the path from the arguments. This will split at the first
18798   # space.
18799   complete="$FOUND_MAKE"
18800   path="${complete%% *}"
18801   tmp="$complete EOL"
18802   arguments="${tmp#* }"
18803 
18804   # Input might be given as Windows format, start by converting to
18805   # unix format.
18806   new_path="$path"
18807 
18808   windows_path="$new_path"
18809   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18810     unix_path=`$CYGPATH -u "$windows_path"`
18811     new_path="$unix_path"
18812   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18813     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18814     new_path="$unix_path"
18815   fi
18816 
18817 
18818   # Now try to locate executable using which
18819   new_path=`$WHICH "$new_path" 2> /dev/null`
18820 
18821   if test "x$new_path" = x; then
18822     # Oops. Which didn't find the executable.
18823     # The splitting of arguments from the executable at a space might have been incorrect,
18824     # since paths with space are more likely in Windows. Give it another try with the whole
18825     # argument.
18826     path="$complete"
18827     arguments="EOL"
18828     new_path="$path"
18829 
18830   windows_path="$new_path"
18831   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18832     unix_path=`$CYGPATH -u "$windows_path"`
18833     new_path="$unix_path"
18834   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18835     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18836     new_path="$unix_path"
18837   fi
18838 
18839 
18840     new_path=`$WHICH "$new_path" 2> /dev/null`
18841     # bat and cmd files are not always considered executable in MSYS causing which
18842     # to not find them
18843     if test "x$new_path" = x \
18844         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18845         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18846       new_path="$path"
18847 
18848   windows_path="$new_path"
18849   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18850     unix_path=`$CYGPATH -u "$windows_path"`
18851     new_path="$unix_path"
18852   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18853     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18854     new_path="$unix_path"
18855   fi
18856 
18857     fi
18858 
18859     if test "x$new_path" = x; then
18860       # It's still not found. Now this is an unrecoverable error.
18861       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18862 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18863       has_space=`$ECHO "$complete" | $GREP " "`
18864       if test "x$has_space" != x; then
18865         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18866 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18867       fi
18868       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18869     fi
18870   fi
18871 
18872   # Now new_path has a complete unix path to the binary
18873   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
18874     # Keep paths in /bin as-is, but remove trailing .exe if any
18875     new_path="${new_path/%.exe/}"
18876     # Do not save /bin paths to all_fixpath_prefixes!
18877   else
18878     # Not in mixed or Windows style, start by that.
18879     new_path=`cmd //c echo $new_path`
18880 
18881   input_path="$new_path"
18882   # Check if we need to convert this using DOS-style short mode. If the path
18883   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18884   # take no chances and rewrite it.
18885   # Note: m4 eats our [], so we need to use [ and ] instead.
18886   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
18887   if test "x$has_forbidden_chars" != x; then
18888     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18889     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18890   fi
18891 
18892     # Output is in $new_path
18893 
18894   windows_path="$new_path"
18895   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18896     unix_path=`$CYGPATH -u "$windows_path"`
18897     new_path="$unix_path"
18898   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18899     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18900     new_path="$unix_path"
18901   fi
18902 
18903     # remove trailing .exe if any
18904     new_path="${new_path/%.exe/}"
18905 
18906     # Save the first 10 bytes of this path to the storage, so fixpath can work.
18907     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
18908   fi
18909 
18910     else
18911       # We're on a unix platform. Hooray! :)
18912       # First separate the path from the arguments. This will split at the first
18913       # space.
18914       complete="$FOUND_MAKE"
18915       path="${complete%% *}"
18916       tmp="$complete EOL"
18917       arguments="${tmp#* }"
18918 
18919       # Cannot rely on the command "which" here since it doesn't always work.
18920       is_absolute_path=`$ECHO "$path" | $GREP ^/`
18921       if test -z "$is_absolute_path"; then
18922         # Path to executable is not absolute. Find it.
18923         IFS_save="$IFS"
18924         IFS=:
18925         for p in $PATH; do
18926           if test -f "$p/$path" && test -x "$p/$path"; then
18927             new_path="$p/$path"
18928             break
18929           fi
18930         done
18931         IFS="$IFS_save"
18932       else
18933         # This is an absolute path, we can use it without further modifications.
18934         new_path="$path"
18935       fi
18936 
18937       if test "x$new_path" = x; then
18938         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18939 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18940         has_space=`$ECHO "$complete" | $GREP " "`
18941         if test "x$has_space" != x; then
18942           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
18943 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
18944         fi
18945         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18946       fi
18947     fi
18948 
18949     # Now join together the path and the arguments once again
18950     if test "x$arguments" != xEOL; then
18951       new_complete="$new_path ${arguments% *}"
18952     else
18953       new_complete="$new_path"
18954     fi
18955 
18956     if test "x$complete" != "x$new_complete"; then
18957       FOUND_MAKE="$new_complete"
18958       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
18959 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
18960     fi
18961   fi
18962 
18963         fi
18964       fi
18965     fi
18966   fi
18967 
18968         if test "x$FOUND_MAKE" = x; then
18969           for ac_prog in make
18970 do
18971   # Extract the first word of "$ac_prog", so it can be a program name with args.
18972 set dummy $ac_prog; ac_word=$2
18973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18974 $as_echo_n "checking for $ac_word... " >&6; }
18975 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then :
18976   $as_echo_n "(cached) " >&6
18977 else
18978   case $CHECK_TOOLSDIR_MAKE in
18979   [\\/]* | ?:[\\/]*)
18980   ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
18981   ;;
18982   *)
18983   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18984 for as_dir in $PATH
18985 do
18986   IFS=$as_save_IFS
18987   test -z "$as_dir" && as_dir=.
18988     for ac_exec_ext in '' $ac_executable_extensions; do
18989   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18990     ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
18991     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18992     break 2
18993   fi
18994 done
18995   done
18996 IFS=$as_save_IFS
18997 
18998   ;;
18999 esac
19000 fi
19001 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE
19002 if test -n "$CHECK_TOOLSDIR_MAKE"; then
19003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5
19004 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; }
19005 else
19006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19007 $as_echo "no" >&6; }
19008 fi
19009 
19010 
19011   test -n "$CHECK_TOOLSDIR_MAKE" && break
19012 done
19013 
19014 
19015   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE""
19016   DESCRIPTION="make in tools-dir"
19017 
19018   # On Cygwin, we require a newer version of make than on other platforms
19019   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19020     MAKE_VERSION_EXPR="-e 4\."
19021     MAKE_REQUIRED_VERSION="4.0"
19022    else
19023     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
19024     MAKE_REQUIRED_VERSION="3.81"
19025   fi
19026 
19027   if test "x$MAKE_CANDIDATE" != x; then
19028     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
19029 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
19030     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
19031     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
19032     if test "x$IS_GNU_MAKE" = x; then
19033       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
19034 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
19035     else
19036       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
19037       if test "x$IS_MODERN_MAKE" = x; then
19038         { $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
19039 $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;}
19040       else
19041         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
19042           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19043             MAKE_EXPECTED_ENV='cygwin'
19044           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19045             MAKE_EXPECTED_ENV='msys'
19046           else
19047             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
19048           fi
19049           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
19050           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
19051         else
19052           # Not relevant for non-Windows
19053           IS_MAKE_CORRECT_ENV=true
19054         fi
19055         if test "x$IS_MAKE_CORRECT_ENV" = x; then
19056           { $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
19057 $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;}
19058         else
19059           FOUND_MAKE=$MAKE_CANDIDATE
19060 
19061   # Only process if variable expands to non-empty
19062 
19063   if test "x$FOUND_MAKE" != x; then
19064     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19065 
19066   # First separate the path from the arguments. This will split at the first
19067   # space.
19068   complete="$FOUND_MAKE"
19069   path="${complete%% *}"
19070   tmp="$complete EOL"
19071   arguments="${tmp#* }"
19072 
19073   # Input might be given as Windows format, start by converting to
19074   # unix format.
19075   new_path=`$CYGPATH -u "$path"`
19076 
19077   # Now try to locate executable using which
19078   new_path=`$WHICH "$new_path" 2> /dev/null`
19079   # bat and cmd files are not always considered executable in cygwin causing which
19080   # to not find them
19081   if test "x$new_path" = x \
19082       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19083       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19084     new_path=`$CYGPATH -u "$path"`
19085   fi
19086   if test "x$new_path" = x; then
19087     # Oops. Which didn't find the executable.
19088     # The splitting of arguments from the executable at a space might have been incorrect,
19089     # since paths with space are more likely in Windows. Give it another try with the whole
19090     # argument.
19091     path="$complete"
19092     arguments="EOL"
19093     new_path=`$CYGPATH -u "$path"`
19094     new_path=`$WHICH "$new_path" 2> /dev/null`
19095     # bat and cmd files are not always considered executable in cygwin causing which
19096     # to not find them
19097     if test "x$new_path" = x \
19098         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19099         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19100       new_path=`$CYGPATH -u "$path"`
19101     fi
19102     if test "x$new_path" = x; then
19103       # It's still not found. Now this is an unrecoverable error.
19104       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19105 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19106       has_space=`$ECHO "$complete" | $GREP " "`
19107       if test "x$has_space" != x; then
19108         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19109 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19110       fi
19111       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19112     fi
19113   fi
19114 
19115   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19116   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19117   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19118   # "foo.exe" is OK but "foo" is an error.
19119   #
19120   # This test is therefore slightly more accurate than "test -f" to check for file presence.
19121   # It is also a way to make sure we got the proper file name for the real test later on.
19122   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19123   if test "x$test_shortpath" = x; then
19124     # Short path failed, file does not exist as specified.
19125     # Try adding .exe or .cmd
19126     if test -f "${new_path}.exe"; then
19127       input_to_shortpath="${new_path}.exe"
19128     elif test -f "${new_path}.cmd"; then
19129       input_to_shortpath="${new_path}.cmd"
19130     else
19131       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
19132 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
19133       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
19134 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
19135       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19136     fi
19137   else
19138     input_to_shortpath="$new_path"
19139   fi
19140 
19141   # Call helper function which possibly converts this using DOS-style short mode.
19142   # If so, the updated path is stored in $new_path.
19143   new_path="$input_to_shortpath"
19144 
19145   input_path="$input_to_shortpath"
19146   # Check if we need to convert this using DOS-style short mode. If the path
19147   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19148   # take no chances and rewrite it.
19149   # Note: m4 eats our [], so we need to use [ and ] instead.
19150   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19151   if test "x$has_forbidden_chars" != x; then
19152     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19153     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19154     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19155     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19156       # Going to short mode and back again did indeed matter. Since short mode is
19157       # case insensitive, let's make it lowercase to improve readability.
19158       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19159       # Now convert it back to Unix-style (cygpath)
19160       input_path=`$CYGPATH -u "$shortmode_path"`
19161       new_path="$input_path"
19162     fi
19163   fi
19164 
19165   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
19166   if test "x$test_cygdrive_prefix" = x; then
19167     # As a simple fix, exclude /usr/bin since it's not a real path.
19168     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
19169       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
19170       # a path prefixed by /cygdrive for fixpath to work.
19171       new_path="$CYGWIN_ROOT_PATH$input_path"
19172     fi
19173   fi
19174 
19175   # remove trailing .exe if any
19176   new_path="${new_path/%.exe/}"
19177 
19178     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19179 
19180   # First separate the path from the arguments. This will split at the first
19181   # space.
19182   complete="$FOUND_MAKE"
19183   path="${complete%% *}"
19184   tmp="$complete EOL"
19185   arguments="${tmp#* }"
19186 
19187   # Input might be given as Windows format, start by converting to
19188   # unix format.
19189   new_path="$path"
19190 
19191   windows_path="$new_path"
19192   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19193     unix_path=`$CYGPATH -u "$windows_path"`
19194     new_path="$unix_path"
19195   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19196     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19197     new_path="$unix_path"
19198   fi
19199 
19200 
19201   # Now try to locate executable using which
19202   new_path=`$WHICH "$new_path" 2> /dev/null`
19203 
19204   if test "x$new_path" = x; then
19205     # Oops. Which didn't find the executable.
19206     # The splitting of arguments from the executable at a space might have been incorrect,
19207     # since paths with space are more likely in Windows. Give it another try with the whole
19208     # argument.
19209     path="$complete"
19210     arguments="EOL"
19211     new_path="$path"
19212 
19213   windows_path="$new_path"
19214   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19215     unix_path=`$CYGPATH -u "$windows_path"`
19216     new_path="$unix_path"
19217   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19218     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19219     new_path="$unix_path"
19220   fi
19221 
19222 
19223     new_path=`$WHICH "$new_path" 2> /dev/null`
19224     # bat and cmd files are not always considered executable in MSYS causing which
19225     # to not find them
19226     if test "x$new_path" = x \
19227         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19228         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19229       new_path="$path"
19230 
19231   windows_path="$new_path"
19232   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19233     unix_path=`$CYGPATH -u "$windows_path"`
19234     new_path="$unix_path"
19235   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19236     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19237     new_path="$unix_path"
19238   fi
19239 
19240     fi
19241 
19242     if test "x$new_path" = x; then
19243       # It's still not found. Now this is an unrecoverable error.
19244       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19245 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19246       has_space=`$ECHO "$complete" | $GREP " "`
19247       if test "x$has_space" != x; then
19248         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19249 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19250       fi
19251       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19252     fi
19253   fi
19254 
19255   # Now new_path has a complete unix path to the binary
19256   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
19257     # Keep paths in /bin as-is, but remove trailing .exe if any
19258     new_path="${new_path/%.exe/}"
19259     # Do not save /bin paths to all_fixpath_prefixes!
19260   else
19261     # Not in mixed or Windows style, start by that.
19262     new_path=`cmd //c echo $new_path`
19263 
19264   input_path="$new_path"
19265   # Check if we need to convert this using DOS-style short mode. If the path
19266   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19267   # take no chances and rewrite it.
19268   # Note: m4 eats our [], so we need to use [ and ] instead.
19269   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
19270   if test "x$has_forbidden_chars" != x; then
19271     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19272     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19273   fi
19274 
19275     # Output is in $new_path
19276 
19277   windows_path="$new_path"
19278   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19279     unix_path=`$CYGPATH -u "$windows_path"`
19280     new_path="$unix_path"
19281   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19282     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19283     new_path="$unix_path"
19284   fi
19285 
19286     # remove trailing .exe if any
19287     new_path="${new_path/%.exe/}"
19288 
19289     # Save the first 10 bytes of this path to the storage, so fixpath can work.
19290     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
19291   fi
19292 
19293     else
19294       # We're on a unix platform. Hooray! :)
19295       # First separate the path from the arguments. This will split at the first
19296       # space.
19297       complete="$FOUND_MAKE"
19298       path="${complete%% *}"
19299       tmp="$complete EOL"
19300       arguments="${tmp#* }"
19301 
19302       # Cannot rely on the command "which" here since it doesn't always work.
19303       is_absolute_path=`$ECHO "$path" | $GREP ^/`
19304       if test -z "$is_absolute_path"; then
19305         # Path to executable is not absolute. Find it.
19306         IFS_save="$IFS"
19307         IFS=:
19308         for p in $PATH; do
19309           if test -f "$p/$path" && test -x "$p/$path"; then
19310             new_path="$p/$path"
19311             break
19312           fi
19313         done
19314         IFS="$IFS_save"
19315       else
19316         # This is an absolute path, we can use it without further modifications.
19317         new_path="$path"
19318       fi
19319 
19320       if test "x$new_path" = x; then
19321         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19322 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19323         has_space=`$ECHO "$complete" | $GREP " "`
19324         if test "x$has_space" != x; then
19325           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
19326 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
19327         fi
19328         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19329       fi
19330     fi
19331 
19332     # Now join together the path and the arguments once again
19333     if test "x$arguments" != xEOL; then
19334       new_complete="$new_path ${arguments% *}"
19335     else
19336       new_complete="$new_path"
19337     fi
19338 
19339     if test "x$complete" != "x$new_complete"; then
19340       FOUND_MAKE="$new_complete"
19341       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
19342 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
19343     fi
19344   fi
19345 
19346         fi
19347       fi
19348     fi
19349   fi
19350 
19351         fi
19352         PATH=$OLD_PATH
19353       fi
19354     fi
19355 
19356     if test "x$FOUND_MAKE" = x; then
19357       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
19358     fi
19359 
19360   else
19361     # The variable is set, but is it from the command line or the environment?
19362 
19363     # Try to remove the string !MAKE! from our list.
19364     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MAKE!/}
19365     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
19366       # If it failed, the variable was not from the command line. Ignore it,
19367       # but warn the user (except for BASH, which is always set by the calling BASH).
19368       if test "xMAKE" != xBASH; then
19369         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MAKE from the environment. Use command line variables instead." >&5
19370 $as_echo "$as_me: WARNING: Ignoring value of MAKE from the environment. Use command line variables instead." >&2;}
19371       fi
19372       # Try to locate tool using the code snippet
19373 
19374     # Try our hardest to locate a correct version of GNU make
19375     for ac_prog in gmake
19376 do
19377   # Extract the first word of "$ac_prog", so it can be a program name with args.
19378 set dummy $ac_prog; ac_word=$2
19379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19380 $as_echo_n "checking for $ac_word... " >&6; }
19381 if ${ac_cv_path_CHECK_GMAKE+:} false; then :
19382   $as_echo_n "(cached) " >&6
19383 else
19384   case $CHECK_GMAKE in
19385   [\\/]* | ?:[\\/]*)
19386   ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
19387   ;;
19388   *)
19389   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19390 for as_dir in $PATH
19391 do
19392   IFS=$as_save_IFS
19393   test -z "$as_dir" && as_dir=.
19394     for ac_exec_ext in '' $ac_executable_extensions; do
19395   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19396     ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
19397     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19398     break 2
19399   fi
19400 done
19401   done
19402 IFS=$as_save_IFS
19403 
19404   ;;
19405 esac
19406 fi
19407 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE
19408 if test -n "$CHECK_GMAKE"; then
19409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5
19410 $as_echo "$CHECK_GMAKE" >&6; }
19411 else
19412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19413 $as_echo "no" >&6; }
19414 fi
19415 
19416 
19417   test -n "$CHECK_GMAKE" && break
19418 done
19419 
19420 
19421   MAKE_CANDIDATE=""$CHECK_GMAKE""
19422   DESCRIPTION="gmake in PATH"
19423 
19424   # On Cygwin, we require a newer version of make than on other platforms
19425   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19426     MAKE_VERSION_EXPR="-e 4\."
19427     MAKE_REQUIRED_VERSION="4.0"
19428    else
19429     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
19430     MAKE_REQUIRED_VERSION="3.81"
19431   fi
19432 
19433   if test "x$MAKE_CANDIDATE" != x; then
19434     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
19435 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
19436     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
19437     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
19438     if test "x$IS_GNU_MAKE" = x; then
19439       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
19440 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
19441     else
19442       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
19443       if test "x$IS_MODERN_MAKE" = x; then
19444         { $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
19445 $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;}
19446       else
19447         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
19448           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19449             MAKE_EXPECTED_ENV='cygwin'
19450           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19451             MAKE_EXPECTED_ENV='msys'
19452           else
19453             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
19454           fi
19455           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
19456           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
19457         else
19458           # Not relevant for non-Windows
19459           IS_MAKE_CORRECT_ENV=true
19460         fi
19461         if test "x$IS_MAKE_CORRECT_ENV" = x; then
19462           { $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
19463 $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;}
19464         else
19465           FOUND_MAKE=$MAKE_CANDIDATE
19466 
19467   # Only process if variable expands to non-empty
19468 
19469   if test "x$FOUND_MAKE" != x; then
19470     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19471 
19472   # First separate the path from the arguments. This will split at the first
19473   # space.
19474   complete="$FOUND_MAKE"
19475   path="${complete%% *}"
19476   tmp="$complete EOL"
19477   arguments="${tmp#* }"
19478 
19479   # Input might be given as Windows format, start by converting to
19480   # unix format.
19481   new_path=`$CYGPATH -u "$path"`
19482 
19483   # Now try to locate executable using which
19484   new_path=`$WHICH "$new_path" 2> /dev/null`
19485   # bat and cmd files are not always considered executable in cygwin causing which
19486   # to not find them
19487   if test "x$new_path" = x \
19488       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19489       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19490     new_path=`$CYGPATH -u "$path"`
19491   fi
19492   if test "x$new_path" = x; then
19493     # Oops. Which didn't find the executable.
19494     # The splitting of arguments from the executable at a space might have been incorrect,
19495     # since paths with space are more likely in Windows. Give it another try with the whole
19496     # argument.
19497     path="$complete"
19498     arguments="EOL"
19499     new_path=`$CYGPATH -u "$path"`
19500     new_path=`$WHICH "$new_path" 2> /dev/null`
19501     # bat and cmd files are not always considered executable in cygwin causing which
19502     # to not find them
19503     if test "x$new_path" = x \
19504         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19505         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19506       new_path=`$CYGPATH -u "$path"`
19507     fi
19508     if test "x$new_path" = x; then
19509       # It's still not found. Now this is an unrecoverable error.
19510       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19511 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19512       has_space=`$ECHO "$complete" | $GREP " "`
19513       if test "x$has_space" != x; then
19514         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19515 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19516       fi
19517       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19518     fi
19519   fi
19520 
19521   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19522   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19523   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19524   # "foo.exe" is OK but "foo" is an error.
19525   #
19526   # This test is therefore slightly more accurate than "test -f" to check for file presence.
19527   # It is also a way to make sure we got the proper file name for the real test later on.
19528   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19529   if test "x$test_shortpath" = x; then
19530     # Short path failed, file does not exist as specified.
19531     # Try adding .exe or .cmd
19532     if test -f "${new_path}.exe"; then
19533       input_to_shortpath="${new_path}.exe"
19534     elif test -f "${new_path}.cmd"; then
19535       input_to_shortpath="${new_path}.cmd"
19536     else
19537       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
19538 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
19539       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
19540 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
19541       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19542     fi
19543   else
19544     input_to_shortpath="$new_path"
19545   fi
19546 
19547   # Call helper function which possibly converts this using DOS-style short mode.
19548   # If so, the updated path is stored in $new_path.
19549   new_path="$input_to_shortpath"
19550 
19551   input_path="$input_to_shortpath"
19552   # Check if we need to convert this using DOS-style short mode. If the path
19553   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19554   # take no chances and rewrite it.
19555   # Note: m4 eats our [], so we need to use [ and ] instead.
19556   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19557   if test "x$has_forbidden_chars" != x; then
19558     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19559     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19560     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19561     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19562       # Going to short mode and back again did indeed matter. Since short mode is
19563       # case insensitive, let's make it lowercase to improve readability.
19564       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19565       # Now convert it back to Unix-style (cygpath)
19566       input_path=`$CYGPATH -u "$shortmode_path"`
19567       new_path="$input_path"
19568     fi
19569   fi
19570 
19571   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
19572   if test "x$test_cygdrive_prefix" = x; then
19573     # As a simple fix, exclude /usr/bin since it's not a real path.
19574     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
19575       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
19576       # a path prefixed by /cygdrive for fixpath to work.
19577       new_path="$CYGWIN_ROOT_PATH$input_path"
19578     fi
19579   fi
19580 
19581   # remove trailing .exe if any
19582   new_path="${new_path/%.exe/}"
19583 
19584     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19585 
19586   # First separate the path from the arguments. This will split at the first
19587   # space.
19588   complete="$FOUND_MAKE"
19589   path="${complete%% *}"
19590   tmp="$complete EOL"
19591   arguments="${tmp#* }"
19592 
19593   # Input might be given as Windows format, start by converting to
19594   # unix format.
19595   new_path="$path"
19596 
19597   windows_path="$new_path"
19598   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19599     unix_path=`$CYGPATH -u "$windows_path"`
19600     new_path="$unix_path"
19601   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19602     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19603     new_path="$unix_path"
19604   fi
19605 
19606 
19607   # Now try to locate executable using which
19608   new_path=`$WHICH "$new_path" 2> /dev/null`
19609 
19610   if test "x$new_path" = x; then
19611     # Oops. Which didn't find the executable.
19612     # The splitting of arguments from the executable at a space might have been incorrect,
19613     # since paths with space are more likely in Windows. Give it another try with the whole
19614     # argument.
19615     path="$complete"
19616     arguments="EOL"
19617     new_path="$path"
19618 
19619   windows_path="$new_path"
19620   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19621     unix_path=`$CYGPATH -u "$windows_path"`
19622     new_path="$unix_path"
19623   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19624     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19625     new_path="$unix_path"
19626   fi
19627 
19628 
19629     new_path=`$WHICH "$new_path" 2> /dev/null`
19630     # bat and cmd files are not always considered executable in MSYS causing which
19631     # to not find them
19632     if test "x$new_path" = x \
19633         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19634         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19635       new_path="$path"
19636 
19637   windows_path="$new_path"
19638   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19639     unix_path=`$CYGPATH -u "$windows_path"`
19640     new_path="$unix_path"
19641   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19642     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19643     new_path="$unix_path"
19644   fi
19645 
19646     fi
19647 
19648     if test "x$new_path" = x; then
19649       # It's still not found. Now this is an unrecoverable error.
19650       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19651 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19652       has_space=`$ECHO "$complete" | $GREP " "`
19653       if test "x$has_space" != x; then
19654         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19655 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19656       fi
19657       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19658     fi
19659   fi
19660 
19661   # Now new_path has a complete unix path to the binary
19662   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
19663     # Keep paths in /bin as-is, but remove trailing .exe if any
19664     new_path="${new_path/%.exe/}"
19665     # Do not save /bin paths to all_fixpath_prefixes!
19666   else
19667     # Not in mixed or Windows style, start by that.
19668     new_path=`cmd //c echo $new_path`
19669 
19670   input_path="$new_path"
19671   # Check if we need to convert this using DOS-style short mode. If the path
19672   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19673   # take no chances and rewrite it.
19674   # Note: m4 eats our [], so we need to use [ and ] instead.
19675   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
19676   if test "x$has_forbidden_chars" != x; then
19677     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19678     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19679   fi
19680 
19681     # Output is in $new_path
19682 
19683   windows_path="$new_path"
19684   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19685     unix_path=`$CYGPATH -u "$windows_path"`
19686     new_path="$unix_path"
19687   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19688     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19689     new_path="$unix_path"
19690   fi
19691 
19692     # remove trailing .exe if any
19693     new_path="${new_path/%.exe/}"
19694 
19695     # Save the first 10 bytes of this path to the storage, so fixpath can work.
19696     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
19697   fi
19698 
19699     else
19700       # We're on a unix platform. Hooray! :)
19701       # First separate the path from the arguments. This will split at the first
19702       # space.
19703       complete="$FOUND_MAKE"
19704       path="${complete%% *}"
19705       tmp="$complete EOL"
19706       arguments="${tmp#* }"
19707 
19708       # Cannot rely on the command "which" here since it doesn't always work.
19709       is_absolute_path=`$ECHO "$path" | $GREP ^/`
19710       if test -z "$is_absolute_path"; then
19711         # Path to executable is not absolute. Find it.
19712         IFS_save="$IFS"
19713         IFS=:
19714         for p in $PATH; do
19715           if test -f "$p/$path" && test -x "$p/$path"; then
19716             new_path="$p/$path"
19717             break
19718           fi
19719         done
19720         IFS="$IFS_save"
19721       else
19722         # This is an absolute path, we can use it without further modifications.
19723         new_path="$path"
19724       fi
19725 
19726       if test "x$new_path" = x; then
19727         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19728 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19729         has_space=`$ECHO "$complete" | $GREP " "`
19730         if test "x$has_space" != x; then
19731           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
19732 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
19733         fi
19734         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19735       fi
19736     fi
19737 
19738     # Now join together the path and the arguments once again
19739     if test "x$arguments" != xEOL; then
19740       new_complete="$new_path ${arguments% *}"
19741     else
19742       new_complete="$new_path"
19743     fi
19744 
19745     if test "x$complete" != "x$new_complete"; then
19746       FOUND_MAKE="$new_complete"
19747       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
19748 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
19749     fi
19750   fi
19751 
19752         fi
19753       fi
19754     fi
19755   fi
19756 
19757 
19758     if test "x$FOUND_MAKE" = x; then
19759       for ac_prog in make
19760 do
19761   # Extract the first word of "$ac_prog", so it can be a program name with args.
19762 set dummy $ac_prog; ac_word=$2
19763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19764 $as_echo_n "checking for $ac_word... " >&6; }
19765 if ${ac_cv_path_CHECK_MAKE+:} false; then :
19766   $as_echo_n "(cached) " >&6
19767 else
19768   case $CHECK_MAKE in
19769   [\\/]* | ?:[\\/]*)
19770   ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
19771   ;;
19772   *)
19773   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19774 for as_dir in $PATH
19775 do
19776   IFS=$as_save_IFS
19777   test -z "$as_dir" && as_dir=.
19778     for ac_exec_ext in '' $ac_executable_extensions; do
19779   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19780     ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
19781     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19782     break 2
19783   fi
19784 done
19785   done
19786 IFS=$as_save_IFS
19787 
19788   ;;
19789 esac
19790 fi
19791 CHECK_MAKE=$ac_cv_path_CHECK_MAKE
19792 if test -n "$CHECK_MAKE"; then
19793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5
19794 $as_echo "$CHECK_MAKE" >&6; }
19795 else
19796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19797 $as_echo "no" >&6; }
19798 fi
19799 
19800 
19801   test -n "$CHECK_MAKE" && break
19802 done
19803 
19804 
19805   MAKE_CANDIDATE=""$CHECK_MAKE""
19806   DESCRIPTION="make in PATH"
19807 
19808   # On Cygwin, we require a newer version of make than on other platforms
19809   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19810     MAKE_VERSION_EXPR="-e 4\."
19811     MAKE_REQUIRED_VERSION="4.0"
19812    else
19813     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
19814     MAKE_REQUIRED_VERSION="3.81"
19815   fi
19816 
19817   if test "x$MAKE_CANDIDATE" != x; then
19818     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
19819 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
19820     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
19821     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
19822     if test "x$IS_GNU_MAKE" = x; then
19823       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
19824 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
19825     else
19826       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
19827       if test "x$IS_MODERN_MAKE" = x; then
19828         { $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
19829 $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;}
19830       else
19831         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
19832           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19833             MAKE_EXPECTED_ENV='cygwin'
19834           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19835             MAKE_EXPECTED_ENV='msys'
19836           else
19837             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
19838           fi
19839           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
19840           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
19841         else
19842           # Not relevant for non-Windows
19843           IS_MAKE_CORRECT_ENV=true
19844         fi
19845         if test "x$IS_MAKE_CORRECT_ENV" = x; then
19846           { $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
19847 $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;}
19848         else
19849           FOUND_MAKE=$MAKE_CANDIDATE
19850 
19851   # Only process if variable expands to non-empty
19852 
19853   if test "x$FOUND_MAKE" != x; then
19854     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19855 
19856   # First separate the path from the arguments. This will split at the first
19857   # space.
19858   complete="$FOUND_MAKE"
19859   path="${complete%% *}"
19860   tmp="$complete EOL"
19861   arguments="${tmp#* }"
19862 
19863   # Input might be given as Windows format, start by converting to
19864   # unix format.
19865   new_path=`$CYGPATH -u "$path"`
19866 
19867   # Now try to locate executable using which
19868   new_path=`$WHICH "$new_path" 2> /dev/null`
19869   # bat and cmd files are not always considered executable in cygwin causing which
19870   # to not find them
19871   if test "x$new_path" = x \
19872       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19873       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19874     new_path=`$CYGPATH -u "$path"`
19875   fi
19876   if test "x$new_path" = x; then
19877     # Oops. Which didn't find the executable.
19878     # The splitting of arguments from the executable at a space might have been incorrect,
19879     # since paths with space are more likely in Windows. Give it another try with the whole
19880     # argument.
19881     path="$complete"
19882     arguments="EOL"
19883     new_path=`$CYGPATH -u "$path"`
19884     new_path=`$WHICH "$new_path" 2> /dev/null`
19885     # bat and cmd files are not always considered executable in cygwin causing which
19886     # to not find them
19887     if test "x$new_path" = x \
19888         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19889         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19890       new_path=`$CYGPATH -u "$path"`
19891     fi
19892     if test "x$new_path" = x; then
19893       # It's still not found. Now this is an unrecoverable error.
19894       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19895 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19896       has_space=`$ECHO "$complete" | $GREP " "`
19897       if test "x$has_space" != x; then
19898         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19899 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19900       fi
19901       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19902     fi
19903   fi
19904 
19905   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19906   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19907   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19908   # "foo.exe" is OK but "foo" is an error.
19909   #
19910   # This test is therefore slightly more accurate than "test -f" to check for file presence.
19911   # It is also a way to make sure we got the proper file name for the real test later on.
19912   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19913   if test "x$test_shortpath" = x; then
19914     # Short path failed, file does not exist as specified.
19915     # Try adding .exe or .cmd
19916     if test -f "${new_path}.exe"; then
19917       input_to_shortpath="${new_path}.exe"
19918     elif test -f "${new_path}.cmd"; then
19919       input_to_shortpath="${new_path}.cmd"
19920     else
19921       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
19922 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
19923       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
19924 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
19925       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19926     fi
19927   else
19928     input_to_shortpath="$new_path"
19929   fi
19930 
19931   # Call helper function which possibly converts this using DOS-style short mode.
19932   # If so, the updated path is stored in $new_path.
19933   new_path="$input_to_shortpath"
19934 
19935   input_path="$input_to_shortpath"
19936   # Check if we need to convert this using DOS-style short mode. If the path
19937   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19938   # take no chances and rewrite it.
19939   # Note: m4 eats our [], so we need to use [ and ] instead.
19940   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19941   if test "x$has_forbidden_chars" != x; then
19942     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19943     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19944     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19945     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19946       # Going to short mode and back again did indeed matter. Since short mode is
19947       # case insensitive, let's make it lowercase to improve readability.
19948       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19949       # Now convert it back to Unix-style (cygpath)
19950       input_path=`$CYGPATH -u "$shortmode_path"`
19951       new_path="$input_path"
19952     fi
19953   fi
19954 
19955   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
19956   if test "x$test_cygdrive_prefix" = x; then
19957     # As a simple fix, exclude /usr/bin since it's not a real path.
19958     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
19959       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
19960       # a path prefixed by /cygdrive for fixpath to work.
19961       new_path="$CYGWIN_ROOT_PATH$input_path"
19962     fi
19963   fi
19964 
19965   # remove trailing .exe if any
19966   new_path="${new_path/%.exe/}"
19967 
19968     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19969 
19970   # First separate the path from the arguments. This will split at the first
19971   # space.
19972   complete="$FOUND_MAKE"
19973   path="${complete%% *}"
19974   tmp="$complete EOL"
19975   arguments="${tmp#* }"
19976 
19977   # Input might be given as Windows format, start by converting to
19978   # unix format.
19979   new_path="$path"
19980 
19981   windows_path="$new_path"
19982   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19983     unix_path=`$CYGPATH -u "$windows_path"`
19984     new_path="$unix_path"
19985   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19986     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19987     new_path="$unix_path"
19988   fi
19989 
19990 
19991   # Now try to locate executable using which
19992   new_path=`$WHICH "$new_path" 2> /dev/null`
19993 
19994   if test "x$new_path" = x; then
19995     # Oops. Which didn't find the executable.
19996     # The splitting of arguments from the executable at a space might have been incorrect,
19997     # since paths with space are more likely in Windows. Give it another try with the whole
19998     # argument.
19999     path="$complete"
20000     arguments="EOL"
20001     new_path="$path"
20002 
20003   windows_path="$new_path"
20004   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20005     unix_path=`$CYGPATH -u "$windows_path"`
20006     new_path="$unix_path"
20007   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20008     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20009     new_path="$unix_path"
20010   fi
20011 
20012 
20013     new_path=`$WHICH "$new_path" 2> /dev/null`
20014     # bat and cmd files are not always considered executable in MSYS causing which
20015     # to not find them
20016     if test "x$new_path" = x \
20017         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20018         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20019       new_path="$path"
20020 
20021   windows_path="$new_path"
20022   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20023     unix_path=`$CYGPATH -u "$windows_path"`
20024     new_path="$unix_path"
20025   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20026     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20027     new_path="$unix_path"
20028   fi
20029 
20030     fi
20031 
20032     if test "x$new_path" = x; then
20033       # It's still not found. Now this is an unrecoverable error.
20034       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20035 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20036       has_space=`$ECHO "$complete" | $GREP " "`
20037       if test "x$has_space" != x; then
20038         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20039 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20040       fi
20041       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20042     fi
20043   fi
20044 
20045   # Now new_path has a complete unix path to the binary
20046   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
20047     # Keep paths in /bin as-is, but remove trailing .exe if any
20048     new_path="${new_path/%.exe/}"
20049     # Do not save /bin paths to all_fixpath_prefixes!
20050   else
20051     # Not in mixed or Windows style, start by that.
20052     new_path=`cmd //c echo $new_path`
20053 
20054   input_path="$new_path"
20055   # Check if we need to convert this using DOS-style short mode. If the path
20056   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20057   # take no chances and rewrite it.
20058   # Note: m4 eats our [], so we need to use [ and ] instead.
20059   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20060   if test "x$has_forbidden_chars" != x; then
20061     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20062     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20063   fi
20064 
20065     # Output is in $new_path
20066 
20067   windows_path="$new_path"
20068   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20069     unix_path=`$CYGPATH -u "$windows_path"`
20070     new_path="$unix_path"
20071   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20072     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20073     new_path="$unix_path"
20074   fi
20075 
20076     # remove trailing .exe if any
20077     new_path="${new_path/%.exe/}"
20078 
20079     # Save the first 10 bytes of this path to the storage, so fixpath can work.
20080     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20081   fi
20082 
20083     else
20084       # We're on a unix platform. Hooray! :)
20085       # First separate the path from the arguments. This will split at the first
20086       # space.
20087       complete="$FOUND_MAKE"
20088       path="${complete%% *}"
20089       tmp="$complete EOL"
20090       arguments="${tmp#* }"
20091 
20092       # Cannot rely on the command "which" here since it doesn't always work.
20093       is_absolute_path=`$ECHO "$path" | $GREP ^/`
20094       if test -z "$is_absolute_path"; then
20095         # Path to executable is not absolute. Find it.
20096         IFS_save="$IFS"
20097         IFS=:
20098         for p in $PATH; do
20099           if test -f "$p/$path" && test -x "$p/$path"; then
20100             new_path="$p/$path"
20101             break
20102           fi
20103         done
20104         IFS="$IFS_save"
20105       else
20106         # This is an absolute path, we can use it without further modifications.
20107         new_path="$path"
20108       fi
20109 
20110       if test "x$new_path" = x; then
20111         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20112 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20113         has_space=`$ECHO "$complete" | $GREP " "`
20114         if test "x$has_space" != x; then
20115           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
20116 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
20117         fi
20118         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20119       fi
20120     fi
20121 
20122     # Now join together the path and the arguments once again
20123     if test "x$arguments" != xEOL; then
20124       new_complete="$new_path ${arguments% *}"
20125     else
20126       new_complete="$new_path"
20127     fi
20128 
20129     if test "x$complete" != "x$new_complete"; then
20130       FOUND_MAKE="$new_complete"
20131       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
20132 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
20133     fi
20134   fi
20135 
20136         fi
20137       fi
20138     fi
20139   fi
20140 
20141     fi
20142 
20143     if test "x$FOUND_MAKE" = x; then
20144       if test "x$TOOLCHAIN_PATH" != x; then
20145         # We have a toolchain path, check that as well before giving up.
20146         OLD_PATH=$PATH
20147         PATH=$TOOLCHAIN_PATH:$PATH
20148         for ac_prog in gmake
20149 do
20150   # Extract the first word of "$ac_prog", so it can be a program name with args.
20151 set dummy $ac_prog; ac_word=$2
20152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20153 $as_echo_n "checking for $ac_word... " >&6; }
20154 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then :
20155   $as_echo_n "(cached) " >&6
20156 else
20157   case $CHECK_TOOLSDIR_GMAKE in
20158   [\\/]* | ?:[\\/]*)
20159   ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
20160   ;;
20161   *)
20162   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20163 for as_dir in $PATH
20164 do
20165   IFS=$as_save_IFS
20166   test -z "$as_dir" && as_dir=.
20167     for ac_exec_ext in '' $ac_executable_extensions; do
20168   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20169     ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
20170     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20171     break 2
20172   fi
20173 done
20174   done
20175 IFS=$as_save_IFS
20176 
20177   ;;
20178 esac
20179 fi
20180 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE
20181 if test -n "$CHECK_TOOLSDIR_GMAKE"; then
20182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5
20183 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; }
20184 else
20185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20186 $as_echo "no" >&6; }
20187 fi
20188 
20189 
20190   test -n "$CHECK_TOOLSDIR_GMAKE" && break
20191 done
20192 
20193 
20194   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE""
20195   DESCRIPTION="gmake in tools-dir"
20196 
20197   # On Cygwin, we require a newer version of make than on other platforms
20198   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20199     MAKE_VERSION_EXPR="-e 4\."
20200     MAKE_REQUIRED_VERSION="4.0"
20201    else
20202     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
20203     MAKE_REQUIRED_VERSION="3.81"
20204   fi
20205 
20206   if test "x$MAKE_CANDIDATE" != x; then
20207     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
20208 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
20209     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
20210     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
20211     if test "x$IS_GNU_MAKE" = x; then
20212       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
20213 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
20214     else
20215       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
20216       if test "x$IS_MODERN_MAKE" = x; then
20217         { $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
20218 $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;}
20219       else
20220         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
20221           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20222             MAKE_EXPECTED_ENV='cygwin'
20223           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20224             MAKE_EXPECTED_ENV='msys'
20225           else
20226             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
20227           fi
20228           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
20229           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
20230         else
20231           # Not relevant for non-Windows
20232           IS_MAKE_CORRECT_ENV=true
20233         fi
20234         if test "x$IS_MAKE_CORRECT_ENV" = x; then
20235           { $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
20236 $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;}
20237         else
20238           FOUND_MAKE=$MAKE_CANDIDATE
20239 
20240   # Only process if variable expands to non-empty
20241 
20242   if test "x$FOUND_MAKE" != x; then
20243     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20244 
20245   # First separate the path from the arguments. This will split at the first
20246   # space.
20247   complete="$FOUND_MAKE"
20248   path="${complete%% *}"
20249   tmp="$complete EOL"
20250   arguments="${tmp#* }"
20251 
20252   # Input might be given as Windows format, start by converting to
20253   # unix format.
20254   new_path=`$CYGPATH -u "$path"`
20255 
20256   # Now try to locate executable using which
20257   new_path=`$WHICH "$new_path" 2> /dev/null`
20258   # bat and cmd files are not always considered executable in cygwin causing which
20259   # to not find them
20260   if test "x$new_path" = x \
20261       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20262       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20263     new_path=`$CYGPATH -u "$path"`
20264   fi
20265   if test "x$new_path" = x; then
20266     # Oops. Which didn't find the executable.
20267     # The splitting of arguments from the executable at a space might have been incorrect,
20268     # since paths with space are more likely in Windows. Give it another try with the whole
20269     # argument.
20270     path="$complete"
20271     arguments="EOL"
20272     new_path=`$CYGPATH -u "$path"`
20273     new_path=`$WHICH "$new_path" 2> /dev/null`
20274     # bat and cmd files are not always considered executable in cygwin causing which
20275     # to not find them
20276     if test "x$new_path" = x \
20277         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20278         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20279       new_path=`$CYGPATH -u "$path"`
20280     fi
20281     if test "x$new_path" = x; then
20282       # It's still not found. Now this is an unrecoverable error.
20283       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20284 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20285       has_space=`$ECHO "$complete" | $GREP " "`
20286       if test "x$has_space" != x; then
20287         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20288 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20289       fi
20290       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20291     fi
20292   fi
20293 
20294   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20295   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20296   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20297   # "foo.exe" is OK but "foo" is an error.
20298   #
20299   # This test is therefore slightly more accurate than "test -f" to check for file presence.
20300   # It is also a way to make sure we got the proper file name for the real test later on.
20301   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20302   if test "x$test_shortpath" = x; then
20303     # Short path failed, file does not exist as specified.
20304     # Try adding .exe or .cmd
20305     if test -f "${new_path}.exe"; then
20306       input_to_shortpath="${new_path}.exe"
20307     elif test -f "${new_path}.cmd"; then
20308       input_to_shortpath="${new_path}.cmd"
20309     else
20310       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
20311 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
20312       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
20313 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
20314       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20315     fi
20316   else
20317     input_to_shortpath="$new_path"
20318   fi
20319 
20320   # Call helper function which possibly converts this using DOS-style short mode.
20321   # If so, the updated path is stored in $new_path.
20322   new_path="$input_to_shortpath"
20323 
20324   input_path="$input_to_shortpath"
20325   # Check if we need to convert this using DOS-style short mode. If the path
20326   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20327   # take no chances and rewrite it.
20328   # Note: m4 eats our [], so we need to use [ and ] instead.
20329   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20330   if test "x$has_forbidden_chars" != x; then
20331     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20332     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20333     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20334     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20335       # Going to short mode and back again did indeed matter. Since short mode is
20336       # case insensitive, let's make it lowercase to improve readability.
20337       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20338       # Now convert it back to Unix-style (cygpath)
20339       input_path=`$CYGPATH -u "$shortmode_path"`
20340       new_path="$input_path"
20341     fi
20342   fi
20343 
20344   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20345   if test "x$test_cygdrive_prefix" = x; then
20346     # As a simple fix, exclude /usr/bin since it's not a real path.
20347     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
20348       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20349       # a path prefixed by /cygdrive for fixpath to work.
20350       new_path="$CYGWIN_ROOT_PATH$input_path"
20351     fi
20352   fi
20353 
20354   # remove trailing .exe if any
20355   new_path="${new_path/%.exe/}"
20356 
20357     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20358 
20359   # First separate the path from the arguments. This will split at the first
20360   # space.
20361   complete="$FOUND_MAKE"
20362   path="${complete%% *}"
20363   tmp="$complete EOL"
20364   arguments="${tmp#* }"
20365 
20366   # Input might be given as Windows format, start by converting to
20367   # unix format.
20368   new_path="$path"
20369 
20370   windows_path="$new_path"
20371   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20372     unix_path=`$CYGPATH -u "$windows_path"`
20373     new_path="$unix_path"
20374   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20375     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20376     new_path="$unix_path"
20377   fi
20378 
20379 
20380   # Now try to locate executable using which
20381   new_path=`$WHICH "$new_path" 2> /dev/null`
20382 
20383   if test "x$new_path" = x; then
20384     # Oops. Which didn't find the executable.
20385     # The splitting of arguments from the executable at a space might have been incorrect,
20386     # since paths with space are more likely in Windows. Give it another try with the whole
20387     # argument.
20388     path="$complete"
20389     arguments="EOL"
20390     new_path="$path"
20391 
20392   windows_path="$new_path"
20393   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20394     unix_path=`$CYGPATH -u "$windows_path"`
20395     new_path="$unix_path"
20396   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20397     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20398     new_path="$unix_path"
20399   fi
20400 
20401 
20402     new_path=`$WHICH "$new_path" 2> /dev/null`
20403     # bat and cmd files are not always considered executable in MSYS causing which
20404     # to not find them
20405     if test "x$new_path" = x \
20406         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20407         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20408       new_path="$path"
20409 
20410   windows_path="$new_path"
20411   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20412     unix_path=`$CYGPATH -u "$windows_path"`
20413     new_path="$unix_path"
20414   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20415     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20416     new_path="$unix_path"
20417   fi
20418 
20419     fi
20420 
20421     if test "x$new_path" = x; then
20422       # It's still not found. Now this is an unrecoverable error.
20423       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20424 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20425       has_space=`$ECHO "$complete" | $GREP " "`
20426       if test "x$has_space" != x; then
20427         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20428 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20429       fi
20430       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20431     fi
20432   fi
20433 
20434   # Now new_path has a complete unix path to the binary
20435   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
20436     # Keep paths in /bin as-is, but remove trailing .exe if any
20437     new_path="${new_path/%.exe/}"
20438     # Do not save /bin paths to all_fixpath_prefixes!
20439   else
20440     # Not in mixed or Windows style, start by that.
20441     new_path=`cmd //c echo $new_path`
20442 
20443   input_path="$new_path"
20444   # Check if we need to convert this using DOS-style short mode. If the path
20445   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20446   # take no chances and rewrite it.
20447   # Note: m4 eats our [], so we need to use [ and ] instead.
20448   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20449   if test "x$has_forbidden_chars" != x; then
20450     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20451     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20452   fi
20453 
20454     # Output is in $new_path
20455 
20456   windows_path="$new_path"
20457   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20458     unix_path=`$CYGPATH -u "$windows_path"`
20459     new_path="$unix_path"
20460   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20461     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20462     new_path="$unix_path"
20463   fi
20464 
20465     # remove trailing .exe if any
20466     new_path="${new_path/%.exe/}"
20467 
20468     # Save the first 10 bytes of this path to the storage, so fixpath can work.
20469     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20470   fi
20471 
20472     else
20473       # We're on a unix platform. Hooray! :)
20474       # First separate the path from the arguments. This will split at the first
20475       # space.
20476       complete="$FOUND_MAKE"
20477       path="${complete%% *}"
20478       tmp="$complete EOL"
20479       arguments="${tmp#* }"
20480 
20481       # Cannot rely on the command "which" here since it doesn't always work.
20482       is_absolute_path=`$ECHO "$path" | $GREP ^/`
20483       if test -z "$is_absolute_path"; then
20484         # Path to executable is not absolute. Find it.
20485         IFS_save="$IFS"
20486         IFS=:
20487         for p in $PATH; do
20488           if test -f "$p/$path" && test -x "$p/$path"; then
20489             new_path="$p/$path"
20490             break
20491           fi
20492         done
20493         IFS="$IFS_save"
20494       else
20495         # This is an absolute path, we can use it without further modifications.
20496         new_path="$path"
20497       fi
20498 
20499       if test "x$new_path" = x; then
20500         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20501 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20502         has_space=`$ECHO "$complete" | $GREP " "`
20503         if test "x$has_space" != x; then
20504           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
20505 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
20506         fi
20507         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20508       fi
20509     fi
20510 
20511     # Now join together the path and the arguments once again
20512     if test "x$arguments" != xEOL; then
20513       new_complete="$new_path ${arguments% *}"
20514     else
20515       new_complete="$new_path"
20516     fi
20517 
20518     if test "x$complete" != "x$new_complete"; then
20519       FOUND_MAKE="$new_complete"
20520       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
20521 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
20522     fi
20523   fi
20524 
20525         fi
20526       fi
20527     fi
20528   fi
20529 
20530         if test "x$FOUND_MAKE" = x; then
20531           for ac_prog in make
20532 do
20533   # Extract the first word of "$ac_prog", so it can be a program name with args.
20534 set dummy $ac_prog; ac_word=$2
20535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20536 $as_echo_n "checking for $ac_word... " >&6; }
20537 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then :
20538   $as_echo_n "(cached) " >&6
20539 else
20540   case $CHECK_TOOLSDIR_MAKE in
20541   [\\/]* | ?:[\\/]*)
20542   ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
20543   ;;
20544   *)
20545   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20546 for as_dir in $PATH
20547 do
20548   IFS=$as_save_IFS
20549   test -z "$as_dir" && as_dir=.
20550     for ac_exec_ext in '' $ac_executable_extensions; do
20551   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20552     ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
20553     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20554     break 2
20555   fi
20556 done
20557   done
20558 IFS=$as_save_IFS
20559 
20560   ;;
20561 esac
20562 fi
20563 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE
20564 if test -n "$CHECK_TOOLSDIR_MAKE"; then
20565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5
20566 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; }
20567 else
20568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20569 $as_echo "no" >&6; }
20570 fi
20571 
20572 
20573   test -n "$CHECK_TOOLSDIR_MAKE" && break
20574 done
20575 
20576 
20577   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE""
20578   DESCRIPTION="make in tools-dir"
20579 
20580   # On Cygwin, we require a newer version of make than on other platforms
20581   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20582     MAKE_VERSION_EXPR="-e 4\."
20583     MAKE_REQUIRED_VERSION="4.0"
20584    else
20585     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
20586     MAKE_REQUIRED_VERSION="3.81"
20587   fi
20588 
20589   if test "x$MAKE_CANDIDATE" != x; then
20590     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
20591 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
20592     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
20593     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
20594     if test "x$IS_GNU_MAKE" = x; then
20595       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
20596 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
20597     else
20598       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
20599       if test "x$IS_MODERN_MAKE" = x; then
20600         { $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
20601 $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;}
20602       else
20603         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
20604           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20605             MAKE_EXPECTED_ENV='cygwin'
20606           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20607             MAKE_EXPECTED_ENV='msys'
20608           else
20609             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
20610           fi
20611           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
20612           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
20613         else
20614           # Not relevant for non-Windows
20615           IS_MAKE_CORRECT_ENV=true
20616         fi
20617         if test "x$IS_MAKE_CORRECT_ENV" = x; then
20618           { $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
20619 $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;}
20620         else
20621           FOUND_MAKE=$MAKE_CANDIDATE
20622 
20623   # Only process if variable expands to non-empty
20624 
20625   if test "x$FOUND_MAKE" != x; then
20626     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20627 
20628   # First separate the path from the arguments. This will split at the first
20629   # space.
20630   complete="$FOUND_MAKE"
20631   path="${complete%% *}"
20632   tmp="$complete EOL"
20633   arguments="${tmp#* }"
20634 
20635   # Input might be given as Windows format, start by converting to
20636   # unix format.
20637   new_path=`$CYGPATH -u "$path"`
20638 
20639   # Now try to locate executable using which
20640   new_path=`$WHICH "$new_path" 2> /dev/null`
20641   # bat and cmd files are not always considered executable in cygwin causing which
20642   # to not find them
20643   if test "x$new_path" = x \
20644       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20645       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20646     new_path=`$CYGPATH -u "$path"`
20647   fi
20648   if test "x$new_path" = x; then
20649     # Oops. Which didn't find the executable.
20650     # The splitting of arguments from the executable at a space might have been incorrect,
20651     # since paths with space are more likely in Windows. Give it another try with the whole
20652     # argument.
20653     path="$complete"
20654     arguments="EOL"
20655     new_path=`$CYGPATH -u "$path"`
20656     new_path=`$WHICH "$new_path" 2> /dev/null`
20657     # bat and cmd files are not always considered executable in cygwin causing which
20658     # to not find them
20659     if test "x$new_path" = x \
20660         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20661         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20662       new_path=`$CYGPATH -u "$path"`
20663     fi
20664     if test "x$new_path" = x; then
20665       # It's still not found. Now this is an unrecoverable error.
20666       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20667 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20668       has_space=`$ECHO "$complete" | $GREP " "`
20669       if test "x$has_space" != x; then
20670         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20671 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20672       fi
20673       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20674     fi
20675   fi
20676 
20677   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20678   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20679   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20680   # "foo.exe" is OK but "foo" is an error.
20681   #
20682   # This test is therefore slightly more accurate than "test -f" to check for file presence.
20683   # It is also a way to make sure we got the proper file name for the real test later on.
20684   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20685   if test "x$test_shortpath" = x; then
20686     # Short path failed, file does not exist as specified.
20687     # Try adding .exe or .cmd
20688     if test -f "${new_path}.exe"; then
20689       input_to_shortpath="${new_path}.exe"
20690     elif test -f "${new_path}.cmd"; then
20691       input_to_shortpath="${new_path}.cmd"
20692     else
20693       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
20694 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
20695       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
20696 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
20697       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20698     fi
20699   else
20700     input_to_shortpath="$new_path"
20701   fi
20702 
20703   # Call helper function which possibly converts this using DOS-style short mode.
20704   # If so, the updated path is stored in $new_path.
20705   new_path="$input_to_shortpath"
20706 
20707   input_path="$input_to_shortpath"
20708   # Check if we need to convert this using DOS-style short mode. If the path
20709   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20710   # take no chances and rewrite it.
20711   # Note: m4 eats our [], so we need to use [ and ] instead.
20712   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20713   if test "x$has_forbidden_chars" != x; then
20714     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20715     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20716     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20717     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20718       # Going to short mode and back again did indeed matter. Since short mode is
20719       # case insensitive, let's make it lowercase to improve readability.
20720       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20721       # Now convert it back to Unix-style (cygpath)
20722       input_path=`$CYGPATH -u "$shortmode_path"`
20723       new_path="$input_path"
20724     fi
20725   fi
20726 
20727   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20728   if test "x$test_cygdrive_prefix" = x; then
20729     # As a simple fix, exclude /usr/bin since it's not a real path.
20730     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
20731       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20732       # a path prefixed by /cygdrive for fixpath to work.
20733       new_path="$CYGWIN_ROOT_PATH$input_path"
20734     fi
20735   fi
20736 
20737   # remove trailing .exe if any
20738   new_path="${new_path/%.exe/}"
20739 
20740     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20741 
20742   # First separate the path from the arguments. This will split at the first
20743   # space.
20744   complete="$FOUND_MAKE"
20745   path="${complete%% *}"
20746   tmp="$complete EOL"
20747   arguments="${tmp#* }"
20748 
20749   # Input might be given as Windows format, start by converting to
20750   # unix format.
20751   new_path="$path"
20752 
20753   windows_path="$new_path"
20754   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20755     unix_path=`$CYGPATH -u "$windows_path"`
20756     new_path="$unix_path"
20757   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20758     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20759     new_path="$unix_path"
20760   fi
20761 
20762 
20763   # Now try to locate executable using which
20764   new_path=`$WHICH "$new_path" 2> /dev/null`
20765 
20766   if test "x$new_path" = x; then
20767     # Oops. Which didn't find the executable.
20768     # The splitting of arguments from the executable at a space might have been incorrect,
20769     # since paths with space are more likely in Windows. Give it another try with the whole
20770     # argument.
20771     path="$complete"
20772     arguments="EOL"
20773     new_path="$path"
20774 
20775   windows_path="$new_path"
20776   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20777     unix_path=`$CYGPATH -u "$windows_path"`
20778     new_path="$unix_path"
20779   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20780     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20781     new_path="$unix_path"
20782   fi
20783 
20784 
20785     new_path=`$WHICH "$new_path" 2> /dev/null`
20786     # bat and cmd files are not always considered executable in MSYS causing which
20787     # to not find them
20788     if test "x$new_path" = x \
20789         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20790         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20791       new_path="$path"
20792 
20793   windows_path="$new_path"
20794   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20795     unix_path=`$CYGPATH -u "$windows_path"`
20796     new_path="$unix_path"
20797   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20798     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20799     new_path="$unix_path"
20800   fi
20801 
20802     fi
20803 
20804     if test "x$new_path" = x; then
20805       # It's still not found. Now this is an unrecoverable error.
20806       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20807 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20808       has_space=`$ECHO "$complete" | $GREP " "`
20809       if test "x$has_space" != x; then
20810         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20811 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20812       fi
20813       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20814     fi
20815   fi
20816 
20817   # Now new_path has a complete unix path to the binary
20818   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
20819     # Keep paths in /bin as-is, but remove trailing .exe if any
20820     new_path="${new_path/%.exe/}"
20821     # Do not save /bin paths to all_fixpath_prefixes!
20822   else
20823     # Not in mixed or Windows style, start by that.
20824     new_path=`cmd //c echo $new_path`
20825 
20826   input_path="$new_path"
20827   # Check if we need to convert this using DOS-style short mode. If the path
20828   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20829   # take no chances and rewrite it.
20830   # Note: m4 eats our [], so we need to use [ and ] instead.
20831   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20832   if test "x$has_forbidden_chars" != x; then
20833     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20834     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20835   fi
20836 
20837     # Output is in $new_path
20838 
20839   windows_path="$new_path"
20840   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20841     unix_path=`$CYGPATH -u "$windows_path"`
20842     new_path="$unix_path"
20843   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20844     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20845     new_path="$unix_path"
20846   fi
20847 
20848     # remove trailing .exe if any
20849     new_path="${new_path/%.exe/}"
20850 
20851     # Save the first 10 bytes of this path to the storage, so fixpath can work.
20852     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20853   fi
20854 
20855     else
20856       # We're on a unix platform. Hooray! :)
20857       # First separate the path from the arguments. This will split at the first
20858       # space.
20859       complete="$FOUND_MAKE"
20860       path="${complete%% *}"
20861       tmp="$complete EOL"
20862       arguments="${tmp#* }"
20863 
20864       # Cannot rely on the command "which" here since it doesn't always work.
20865       is_absolute_path=`$ECHO "$path" | $GREP ^/`
20866       if test -z "$is_absolute_path"; then
20867         # Path to executable is not absolute. Find it.
20868         IFS_save="$IFS"
20869         IFS=:
20870         for p in $PATH; do
20871           if test -f "$p/$path" && test -x "$p/$path"; then
20872             new_path="$p/$path"
20873             break
20874           fi
20875         done
20876         IFS="$IFS_save"
20877       else
20878         # This is an absolute path, we can use it without further modifications.
20879         new_path="$path"
20880       fi
20881 
20882       if test "x$new_path" = x; then
20883         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20884 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20885         has_space=`$ECHO "$complete" | $GREP " "`
20886         if test "x$has_space" != x; then
20887           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
20888 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
20889         fi
20890         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20891       fi
20892     fi
20893 
20894     # Now join together the path and the arguments once again
20895     if test "x$arguments" != xEOL; then
20896       new_complete="$new_path ${arguments% *}"
20897     else
20898       new_complete="$new_path"
20899     fi
20900 
20901     if test "x$complete" != "x$new_complete"; then
20902       FOUND_MAKE="$new_complete"
20903       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
20904 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
20905     fi
20906   fi
20907 
20908         fi
20909       fi
20910     fi
20911   fi
20912 
20913         fi
20914         PATH=$OLD_PATH
20915       fi
20916     fi
20917 
20918     if test "x$FOUND_MAKE" = x; then
20919       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
20920     fi
20921 
20922     else
20923       # If it succeeded, then it was overridden by the user. We will use it
20924       # for the tool.
20925 
20926       # First remove it from the list of overridden variables, so we can test
20927       # for unknown variables in the end.
20928       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
20929 
20930       # Check if we try to supply an empty value
20931       if test "x$MAKE" = x; then
20932         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MAKE= (no value)" >&5
20933 $as_echo "$as_me: Setting user supplied tool MAKE= (no value)" >&6;}
20934         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAKE" >&5
20935 $as_echo_n "checking for MAKE... " >&6; }
20936         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
20937 $as_echo "disabled" >&6; }
20938       else
20939         # Check if the provided tool contains a complete path.
20940         tool_specified="$MAKE"
20941         tool_basename="${tool_specified##*/}"
20942         if test "x$tool_basename" = "x$tool_specified"; then
20943           # A command without a complete path is provided, search $PATH.
20944           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MAKE=$tool_basename" >&5
20945 $as_echo "$as_me: Will search for user supplied tool MAKE=$tool_basename" >&6;}
20946           # Extract the first word of "$tool_basename", so it can be a program name with args.
20947 set dummy $tool_basename; ac_word=$2
20948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20949 $as_echo_n "checking for $ac_word... " >&6; }
20950 if ${ac_cv_path_MAKE+:} false; then :
20951   $as_echo_n "(cached) " >&6
20952 else
20953   case $MAKE in
20954   [\\/]* | ?:[\\/]*)
20955   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
20956   ;;
20957   *)
20958   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20959 for as_dir in $PATH
20960 do
20961   IFS=$as_save_IFS
20962   test -z "$as_dir" && as_dir=.
20963     for ac_exec_ext in '' $ac_executable_extensions; do
20964   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20965     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
20966     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20967     break 2
20968   fi
20969 done
20970   done
20971 IFS=$as_save_IFS
20972 
20973   ;;
20974 esac
20975 fi
20976 MAKE=$ac_cv_path_MAKE
20977 if test -n "$MAKE"; then
20978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
20979 $as_echo "$MAKE" >&6; }
20980 else
20981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20982 $as_echo "no" >&6; }
20983 fi
20984 
20985 
20986           if test "x$MAKE" = x; then
20987             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
20988           fi
20989         else
20990           # Otherwise we believe it is a complete path. Use it as it is.
20991           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MAKE=$tool_specified" >&5
20992 $as_echo "$as_me: Will use user supplied tool MAKE=$tool_specified" >&6;}
20993           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAKE" >&5
20994 $as_echo_n "checking for MAKE... " >&6; }
20995           if test ! -x "$tool_specified"; then
20996             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20997 $as_echo "not found" >&6; }
20998             as_fn_error $? "User supplied tool MAKE=$tool_specified does not exist or is not executable" "$LINENO" 5
20999           fi
21000           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21001 $as_echo "$tool_specified" >&6; }
21002         fi
21003       fi
21004     fi
21005 
21006     # If MAKE was set by user, verify the version
21007 
21008   MAKE_CANDIDATE=""$MAKE""
21009   DESCRIPTION="user supplied MAKE=$MAKE"
21010 
21011   # On Cygwin, we require a newer version of make than on other platforms
21012   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21013     MAKE_VERSION_EXPR="-e 4\."
21014     MAKE_REQUIRED_VERSION="4.0"
21015    else
21016     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
21017     MAKE_REQUIRED_VERSION="3.81"
21018   fi
21019 
21020   if test "x$MAKE_CANDIDATE" != x; then
21021     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
21022 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
21023     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
21024     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
21025     if test "x$IS_GNU_MAKE" = x; then
21026       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
21027 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
21028     else
21029       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
21030       if test "x$IS_MODERN_MAKE" = x; then
21031         { $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
21032 $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;}
21033       else
21034         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
21035           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21036             MAKE_EXPECTED_ENV='cygwin'
21037           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21038             MAKE_EXPECTED_ENV='msys'
21039           else
21040             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
21041           fi
21042           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
21043           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
21044         else
21045           # Not relevant for non-Windows
21046           IS_MAKE_CORRECT_ENV=true
21047         fi
21048         if test "x$IS_MAKE_CORRECT_ENV" = x; then
21049           { $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
21050 $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;}
21051         else
21052           FOUND_MAKE=$MAKE_CANDIDATE
21053 
21054   # Only process if variable expands to non-empty
21055 
21056   if test "x$FOUND_MAKE" != x; then
21057     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21058 
21059   # First separate the path from the arguments. This will split at the first
21060   # space.
21061   complete="$FOUND_MAKE"
21062   path="${complete%% *}"
21063   tmp="$complete EOL"
21064   arguments="${tmp#* }"
21065 
21066   # Input might be given as Windows format, start by converting to
21067   # unix format.
21068   new_path=`$CYGPATH -u "$path"`
21069 
21070   # Now try to locate executable using which
21071   new_path=`$WHICH "$new_path" 2> /dev/null`
21072   # bat and cmd files are not always considered executable in cygwin causing which
21073   # to not find them
21074   if test "x$new_path" = x \
21075       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
21076       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
21077     new_path=`$CYGPATH -u "$path"`
21078   fi
21079   if test "x$new_path" = x; then
21080     # Oops. Which didn't find the executable.
21081     # The splitting of arguments from the executable at a space might have been incorrect,
21082     # since paths with space are more likely in Windows. Give it another try with the whole
21083     # argument.
21084     path="$complete"
21085     arguments="EOL"
21086     new_path=`$CYGPATH -u "$path"`
21087     new_path=`$WHICH "$new_path" 2> /dev/null`
21088     # bat and cmd files are not always considered executable in cygwin causing which
21089     # to not find them
21090     if test "x$new_path" = x \
21091         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
21092         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
21093       new_path=`$CYGPATH -u "$path"`
21094     fi
21095     if test "x$new_path" = x; then
21096       # It's still not found. Now this is an unrecoverable error.
21097       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
21098 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
21099       has_space=`$ECHO "$complete" | $GREP " "`
21100       if test "x$has_space" != x; then
21101         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
21102 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
21103       fi
21104       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
21105     fi
21106   fi
21107 
21108   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21109   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21110   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21111   # "foo.exe" is OK but "foo" is an error.
21112   #
21113   # This test is therefore slightly more accurate than "test -f" to check for file presence.
21114   # It is also a way to make sure we got the proper file name for the real test later on.
21115   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21116   if test "x$test_shortpath" = x; then
21117     # Short path failed, file does not exist as specified.
21118     # Try adding .exe or .cmd
21119     if test -f "${new_path}.exe"; then
21120       input_to_shortpath="${new_path}.exe"
21121     elif test -f "${new_path}.cmd"; then
21122       input_to_shortpath="${new_path}.cmd"
21123     else
21124       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
21125 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
21126       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
21127 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
21128       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
21129     fi
21130   else
21131     input_to_shortpath="$new_path"
21132   fi
21133 
21134   # Call helper function which possibly converts this using DOS-style short mode.
21135   # If so, the updated path is stored in $new_path.
21136   new_path="$input_to_shortpath"
21137 
21138   input_path="$input_to_shortpath"
21139   # Check if we need to convert this using DOS-style short mode. If the path
21140   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21141   # take no chances and rewrite it.
21142   # Note: m4 eats our [], so we need to use [ and ] instead.
21143   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21144   if test "x$has_forbidden_chars" != x; then
21145     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21146     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21147     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21148     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21149       # Going to short mode and back again did indeed matter. Since short mode is
21150       # case insensitive, let's make it lowercase to improve readability.
21151       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21152       # Now convert it back to Unix-style (cygpath)
21153       input_path=`$CYGPATH -u "$shortmode_path"`
21154       new_path="$input_path"
21155     fi
21156   fi
21157 
21158   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21159   if test "x$test_cygdrive_prefix" = x; then
21160     # As a simple fix, exclude /usr/bin since it's not a real path.
21161     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
21162       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21163       # a path prefixed by /cygdrive for fixpath to work.
21164       new_path="$CYGWIN_ROOT_PATH$input_path"
21165     fi
21166   fi
21167 
21168   # remove trailing .exe if any
21169   new_path="${new_path/%.exe/}"
21170 
21171     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21172 
21173   # First separate the path from the arguments. This will split at the first
21174   # space.
21175   complete="$FOUND_MAKE"
21176   path="${complete%% *}"
21177   tmp="$complete EOL"
21178   arguments="${tmp#* }"
21179 
21180   # Input might be given as Windows format, start by converting to
21181   # unix format.
21182   new_path="$path"
21183 
21184   windows_path="$new_path"
21185   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21186     unix_path=`$CYGPATH -u "$windows_path"`
21187     new_path="$unix_path"
21188   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21189     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21190     new_path="$unix_path"
21191   fi
21192 
21193 
21194   # Now try to locate executable using which
21195   new_path=`$WHICH "$new_path" 2> /dev/null`
21196 
21197   if test "x$new_path" = x; then
21198     # Oops. Which didn't find the executable.
21199     # The splitting of arguments from the executable at a space might have been incorrect,
21200     # since paths with space are more likely in Windows. Give it another try with the whole
21201     # argument.
21202     path="$complete"
21203     arguments="EOL"
21204     new_path="$path"
21205 
21206   windows_path="$new_path"
21207   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21208     unix_path=`$CYGPATH -u "$windows_path"`
21209     new_path="$unix_path"
21210   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21211     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21212     new_path="$unix_path"
21213   fi
21214 
21215 
21216     new_path=`$WHICH "$new_path" 2> /dev/null`
21217     # bat and cmd files are not always considered executable in MSYS causing which
21218     # to not find them
21219     if test "x$new_path" = x \
21220         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
21221         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
21222       new_path="$path"
21223 
21224   windows_path="$new_path"
21225   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21226     unix_path=`$CYGPATH -u "$windows_path"`
21227     new_path="$unix_path"
21228   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21229     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21230     new_path="$unix_path"
21231   fi
21232 
21233     fi
21234 
21235     if test "x$new_path" = x; then
21236       # It's still not found. Now this is an unrecoverable error.
21237       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
21238 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
21239       has_space=`$ECHO "$complete" | $GREP " "`
21240       if test "x$has_space" != x; then
21241         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
21242 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
21243       fi
21244       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
21245     fi
21246   fi
21247 
21248   # Now new_path has a complete unix path to the binary
21249   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
21250     # Keep paths in /bin as-is, but remove trailing .exe if any
21251     new_path="${new_path/%.exe/}"
21252     # Do not save /bin paths to all_fixpath_prefixes!
21253   else
21254     # Not in mixed or Windows style, start by that.
21255     new_path=`cmd //c echo $new_path`
21256 
21257   input_path="$new_path"
21258   # Check if we need to convert this using DOS-style short mode. If the path
21259   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21260   # take no chances and rewrite it.
21261   # Note: m4 eats our [], so we need to use [ and ] instead.
21262   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21263   if test "x$has_forbidden_chars" != x; then
21264     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21265     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21266   fi
21267 
21268     # Output is in $new_path
21269 
21270   windows_path="$new_path"
21271   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21272     unix_path=`$CYGPATH -u "$windows_path"`
21273     new_path="$unix_path"
21274   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21275     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21276     new_path="$unix_path"
21277   fi
21278 
21279     # remove trailing .exe if any
21280     new_path="${new_path/%.exe/}"
21281 
21282     # Save the first 10 bytes of this path to the storage, so fixpath can work.
21283     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21284   fi
21285 
21286     else
21287       # We're on a unix platform. Hooray! :)
21288       # First separate the path from the arguments. This will split at the first
21289       # space.
21290       complete="$FOUND_MAKE"
21291       path="${complete%% *}"
21292       tmp="$complete EOL"
21293       arguments="${tmp#* }"
21294 
21295       # Cannot rely on the command "which" here since it doesn't always work.
21296       is_absolute_path=`$ECHO "$path" | $GREP ^/`
21297       if test -z "$is_absolute_path"; then
21298         # Path to executable is not absolute. Find it.
21299         IFS_save="$IFS"
21300         IFS=:
21301         for p in $PATH; do
21302           if test -f "$p/$path" && test -x "$p/$path"; then
21303             new_path="$p/$path"
21304             break
21305           fi
21306         done
21307         IFS="$IFS_save"
21308       else
21309         # This is an absolute path, we can use it without further modifications.
21310         new_path="$path"
21311       fi
21312 
21313       if test "x$new_path" = x; then
21314         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
21315 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
21316         has_space=`$ECHO "$complete" | $GREP " "`
21317         if test "x$has_space" != x; then
21318           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
21319 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
21320         fi
21321         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
21322       fi
21323     fi
21324 
21325     # Now join together the path and the arguments once again
21326     if test "x$arguments" != xEOL; then
21327       new_complete="$new_path ${arguments% *}"
21328     else
21329       new_complete="$new_path"
21330     fi
21331 
21332     if test "x$complete" != "x$new_complete"; then
21333       FOUND_MAKE="$new_complete"
21334       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
21335 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
21336     fi
21337   fi
21338 
21339         fi
21340       fi
21341     fi
21342   fi
21343 
21344     if test "x$FOUND_MAKE" = x; then
21345       as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make $MAKE_REQUIRED_VERSION or newer." "$LINENO" 5
21346     fi
21347 
21348   fi
21349 
21350 
21351   MAKE=$FOUND_MAKE
21352 
21353   { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5
21354 $as_echo "$as_me: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;}
21355 
21356 
21357   # Check if make supports the output sync option and if so, setup using it.
21358   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if make --output-sync is supported" >&5
21359 $as_echo_n "checking if make --output-sync is supported... " >&6; }
21360   if $MAKE --version -O > /dev/null 2>&1; then
21361     OUTPUT_SYNC_SUPPORTED=true
21362     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21363 $as_echo "yes" >&6; }
21364     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for output-sync value" >&5
21365 $as_echo_n "checking for output-sync value... " >&6; }
21366 
21367 # Check whether --with-output-sync was given.
21368 if test "${with_output_sync+set}" = set; then :
21369   withval=$with_output_sync; OUTPUT_SYNC=$with_output_sync
21370 fi
21371 
21372     if test "x$OUTPUT_SYNC" = "x"; then
21373       OUTPUT_SYNC=none
21374     fi
21375     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_SYNC" >&5
21376 $as_echo "$OUTPUT_SYNC" >&6; }
21377     if ! $MAKE --version -O$OUTPUT_SYNC > /dev/null 2>&1; then
21378       as_fn_error $? "Make did not the support the value $OUTPUT_SYNC as output sync type." "$LINENO" 5
21379     fi
21380   else
21381     OUTPUT_SYNC_SUPPORTED=false
21382     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21383 $as_echo "no" >&6; }
21384   fi
21385 
21386 
21387 
21388 
21389 
21390 
21391   # Test if find supports -delete
21392   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5
21393 $as_echo_n "checking if find supports -delete... " >&6; }
21394   FIND_DELETE="-delete"
21395 
21396   DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?)
21397 
21398   echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete
21399 
21400   TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1`
21401   if test -f $DELETEDIR/TestIfFindSupportsDelete; then
21402     # No, it does not.
21403     $RM $DELETEDIR/TestIfFindSupportsDelete
21404     if test "x$OPENJDK_TARGET_OS" = "xaix"; then
21405       # AIX 'find' is buggy if called with '-exec {} \+' and an empty file list
21406       FIND_DELETE="-print | $XARGS $RM"
21407     else
21408       FIND_DELETE="-exec $RM \{\} \+"
21409     fi
21410     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21411 $as_echo "no" >&6; }
21412   else
21413     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21414 $as_echo "yes" >&6; }
21415   fi
21416   $RMDIR $DELETEDIR
21417 
21418 
21419 
21420   # Test which kind of tar was found
21421   if test "x$($TAR --version | $GREP "GNU tar")" != "x"; then
21422     TAR_TYPE="gnu"
21423   elif test "x$($TAR --version | $GREP "bsdtar")" != "x"; then
21424     TAR_TYPE="bsd"
21425   elif test "x$($TAR -v | $GREP "bsdtar")" != "x"; then
21426     TAR_TYPE="bsd"
21427   elif test "x$OPENJDK_BUILD_OS" = "xsolaris"; then
21428     TAR_TYPE="solaris"
21429   fi
21430   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what type of tar was found" >&5
21431 $as_echo_n "checking what type of tar was found... " >&6; }
21432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR_TYPE" >&5
21433 $as_echo "$TAR_TYPE" >&6; }
21434 
21435   TAR_CREATE_FILE_PARAM=""
21436 
21437   if test "x$TAR_TYPE" = "xgnu"; then
21438     TAR_INCLUDE_PARAM="T"
21439     TAR_SUPPORTS_TRANSFORM="true"
21440     if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
21441       # When using gnu tar for Solaris targets, need to use compatibility mode
21442       TAR_CREATE_EXTRA_PARAM="--format=ustar"
21443     fi
21444   else
21445     TAR_INCLUDE_PARAM="I"
21446     TAR_SUPPORTS_TRANSFORM="false"
21447   fi
21448 
21449 
21450 
21451 
21452 
21453 
21454   # Test that grep supports -Fx with a list of pattern which includes null pattern.
21455   # This is a problem for the grep resident on AIX.
21456   { $as_echo "$as_me:${as_lineno-$LINENO}: checking that grep ($GREP) -Fx handles empty lines in the pattern list correctly" >&5
21457 $as_echo_n "checking that grep ($GREP) -Fx handles empty lines in the pattern list correctly... " >&6; }
21458   # Multiple subsequent spaces..
21459   STACK_SPACES='aaa   bbb   ccc'
21460   # ..converted to subsequent newlines, causes STACK_LIST to be a list with some empty
21461   # patterns in it.
21462   STACK_LIST=${STACK_SPACES// /$'\n'}
21463   NEEDLE_SPACES='ccc bbb aaa'
21464   NEEDLE_LIST=${NEEDLE_SPACES// /$'\n'}
21465   RESULT="$($GREP -Fvx "$STACK_LIST" <<< "$NEEDLE_LIST")"
21466   if test "x$RESULT" == "x"; then
21467     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21468 $as_echo "yes" >&6; }
21469   else
21470     if test "x$OPENJDK_TARGET_OS" = "xaix"; then
21471       ADDINFO="Please make sure you use GNU grep, usually found at /opt/freeware/bin."
21472     fi
21473     as_fn_error $? "grep does not handle -Fx correctly. ${ADDINFO}" "$LINENO" 5
21474   fi
21475 
21476 
21477   # These tools might not be installed by default,
21478   # need hint on how to install them.
21479 
21480 
21481 
21482   # Publish this variable in the help.
21483 
21484 
21485   if [ -z "${UNZIP+x}" ]; then
21486     # The variable is not set by user, try to locate tool using the code snippet
21487     for ac_prog in unzip
21488 do
21489   # Extract the first word of "$ac_prog", so it can be a program name with args.
21490 set dummy $ac_prog; ac_word=$2
21491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21492 $as_echo_n "checking for $ac_word... " >&6; }
21493 if ${ac_cv_path_UNZIP+:} false; then :
21494   $as_echo_n "(cached) " >&6
21495 else
21496   case $UNZIP in
21497   [\\/]* | ?:[\\/]*)
21498   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
21499   ;;
21500   *)
21501   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21502 for as_dir in $PATH
21503 do
21504   IFS=$as_save_IFS
21505   test -z "$as_dir" && as_dir=.
21506     for ac_exec_ext in '' $ac_executable_extensions; do
21507   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21508     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
21509     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21510     break 2
21511   fi
21512 done
21513   done
21514 IFS=$as_save_IFS
21515 
21516   ;;
21517 esac
21518 fi
21519 UNZIP=$ac_cv_path_UNZIP
21520 if test -n "$UNZIP"; then
21521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
21522 $as_echo "$UNZIP" >&6; }
21523 else
21524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21525 $as_echo "no" >&6; }
21526 fi
21527 
21528 
21529   test -n "$UNZIP" && break
21530 done
21531 
21532   else
21533     # The variable is set, but is it from the command line or the environment?
21534 
21535     # Try to remove the string !UNZIP! from our list.
21536     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/}
21537     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21538       # If it failed, the variable was not from the command line. Ignore it,
21539       # but warn the user (except for BASH, which is always set by the calling BASH).
21540       if test "xUNZIP" != xBASH; then
21541         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5
21542 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;}
21543       fi
21544       # Try to locate tool using the code snippet
21545       for ac_prog in unzip
21546 do
21547   # Extract the first word of "$ac_prog", so it can be a program name with args.
21548 set dummy $ac_prog; ac_word=$2
21549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21550 $as_echo_n "checking for $ac_word... " >&6; }
21551 if ${ac_cv_path_UNZIP+:} false; then :
21552   $as_echo_n "(cached) " >&6
21553 else
21554   case $UNZIP in
21555   [\\/]* | ?:[\\/]*)
21556   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
21557   ;;
21558   *)
21559   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21560 for as_dir in $PATH
21561 do
21562   IFS=$as_save_IFS
21563   test -z "$as_dir" && as_dir=.
21564     for ac_exec_ext in '' $ac_executable_extensions; do
21565   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21566     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
21567     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21568     break 2
21569   fi
21570 done
21571   done
21572 IFS=$as_save_IFS
21573 
21574   ;;
21575 esac
21576 fi
21577 UNZIP=$ac_cv_path_UNZIP
21578 if test -n "$UNZIP"; then
21579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
21580 $as_echo "$UNZIP" >&6; }
21581 else
21582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21583 $as_echo "no" >&6; }
21584 fi
21585 
21586 
21587   test -n "$UNZIP" && break
21588 done
21589 
21590     else
21591       # If it succeeded, then it was overridden by the user. We will use it
21592       # for the tool.
21593 
21594       # First remove it from the list of overridden variables, so we can test
21595       # for unknown variables in the end.
21596       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21597 
21598       # Check if we try to supply an empty value
21599       if test "x$UNZIP" = x; then
21600         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNZIP= (no value)" >&5
21601 $as_echo "$as_me: Setting user supplied tool UNZIP= (no value)" >&6;}
21602         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5
21603 $as_echo_n "checking for UNZIP... " >&6; }
21604         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21605 $as_echo "disabled" >&6; }
21606       else
21607         # Check if the provided tool contains a complete path.
21608         tool_specified="$UNZIP"
21609         tool_basename="${tool_specified##*/}"
21610         if test "x$tool_basename" = "x$tool_specified"; then
21611           # A command without a complete path is provided, search $PATH.
21612           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5
21613 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;}
21614           # Extract the first word of "$tool_basename", so it can be a program name with args.
21615 set dummy $tool_basename; ac_word=$2
21616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21617 $as_echo_n "checking for $ac_word... " >&6; }
21618 if ${ac_cv_path_UNZIP+:} false; then :
21619   $as_echo_n "(cached) " >&6
21620 else
21621   case $UNZIP in
21622   [\\/]* | ?:[\\/]*)
21623   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
21624   ;;
21625   *)
21626   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21627 for as_dir in $PATH
21628 do
21629   IFS=$as_save_IFS
21630   test -z "$as_dir" && as_dir=.
21631     for ac_exec_ext in '' $ac_executable_extensions; do
21632   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21633     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
21634     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21635     break 2
21636   fi
21637 done
21638   done
21639 IFS=$as_save_IFS
21640 
21641   ;;
21642 esac
21643 fi
21644 UNZIP=$ac_cv_path_UNZIP
21645 if test -n "$UNZIP"; then
21646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
21647 $as_echo "$UNZIP" >&6; }
21648 else
21649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21650 $as_echo "no" >&6; }
21651 fi
21652 
21653 
21654           if test "x$UNZIP" = x; then
21655             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21656           fi
21657         else
21658           # Otherwise we believe it is a complete path. Use it as it is.
21659           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5
21660 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;}
21661           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5
21662 $as_echo_n "checking for UNZIP... " >&6; }
21663           if test ! -x "$tool_specified"; then
21664             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21665 $as_echo "not found" >&6; }
21666             as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
21667           fi
21668           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21669 $as_echo "$tool_specified" >&6; }
21670         fi
21671       fi
21672     fi
21673 
21674   fi
21675 
21676 
21677 
21678   if test "x$UNZIP" = x; then
21679     as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5
21680   fi
21681 
21682 
21683   # Since zip uses "ZIP" as a environment variable for passing options, we need
21684   # to name our variable differently, hence ZIPEXE.
21685 
21686 
21687 
21688   # Publish this variable in the help.
21689 
21690 
21691   if [ -z "${ZIPEXE+x}" ]; then
21692     # The variable is not set by user, try to locate tool using the code snippet
21693     for ac_prog in zip
21694 do
21695   # Extract the first word of "$ac_prog", so it can be a program name with args.
21696 set dummy $ac_prog; ac_word=$2
21697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21698 $as_echo_n "checking for $ac_word... " >&6; }
21699 if ${ac_cv_path_ZIPEXE+:} false; then :
21700   $as_echo_n "(cached) " >&6
21701 else
21702   case $ZIPEXE in
21703   [\\/]* | ?:[\\/]*)
21704   ac_cv_path_ZIPEXE="$ZIPEXE" # Let the user override the test with a path.
21705   ;;
21706   *)
21707   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21708 for as_dir in $PATH
21709 do
21710   IFS=$as_save_IFS
21711   test -z "$as_dir" && as_dir=.
21712     for ac_exec_ext in '' $ac_executable_extensions; do
21713   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21714     ac_cv_path_ZIPEXE="$as_dir/$ac_word$ac_exec_ext"
21715     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21716     break 2
21717   fi
21718 done
21719   done
21720 IFS=$as_save_IFS
21721 
21722   ;;
21723 esac
21724 fi
21725 ZIPEXE=$ac_cv_path_ZIPEXE
21726 if test -n "$ZIPEXE"; then
21727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIPEXE" >&5
21728 $as_echo "$ZIPEXE" >&6; }
21729 else
21730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21731 $as_echo "no" >&6; }
21732 fi
21733 
21734 
21735   test -n "$ZIPEXE" && break
21736 done
21737 
21738   else
21739     # The variable is set, but is it from the command line or the environment?
21740 
21741     # Try to remove the string !ZIPEXE! from our list.
21742     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIPEXE!/}
21743     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21744       # If it failed, the variable was not from the command line. Ignore it,
21745       # but warn the user (except for BASH, which is always set by the calling BASH).
21746       if test "xZIPEXE" != xBASH; then
21747         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIPEXE from the environment. Use command line variables instead." >&5
21748 $as_echo "$as_me: WARNING: Ignoring value of ZIPEXE from the environment. Use command line variables instead." >&2;}
21749       fi
21750       # Try to locate tool using the code snippet
21751       for ac_prog in zip
21752 do
21753   # Extract the first word of "$ac_prog", so it can be a program name with args.
21754 set dummy $ac_prog; ac_word=$2
21755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21756 $as_echo_n "checking for $ac_word... " >&6; }
21757 if ${ac_cv_path_ZIPEXE+:} false; then :
21758   $as_echo_n "(cached) " >&6
21759 else
21760   case $ZIPEXE in
21761   [\\/]* | ?:[\\/]*)
21762   ac_cv_path_ZIPEXE="$ZIPEXE" # Let the user override the test with a path.
21763   ;;
21764   *)
21765   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21766 for as_dir in $PATH
21767 do
21768   IFS=$as_save_IFS
21769   test -z "$as_dir" && as_dir=.
21770     for ac_exec_ext in '' $ac_executable_extensions; do
21771   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21772     ac_cv_path_ZIPEXE="$as_dir/$ac_word$ac_exec_ext"
21773     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21774     break 2
21775   fi
21776 done
21777   done
21778 IFS=$as_save_IFS
21779 
21780   ;;
21781 esac
21782 fi
21783 ZIPEXE=$ac_cv_path_ZIPEXE
21784 if test -n "$ZIPEXE"; then
21785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIPEXE" >&5
21786 $as_echo "$ZIPEXE" >&6; }
21787 else
21788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21789 $as_echo "no" >&6; }
21790 fi
21791 
21792 
21793   test -n "$ZIPEXE" && break
21794 done
21795 
21796     else
21797       # If it succeeded, then it was overridden by the user. We will use it
21798       # for the tool.
21799 
21800       # First remove it from the list of overridden variables, so we can test
21801       # for unknown variables in the end.
21802       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21803 
21804       # Check if we try to supply an empty value
21805       if test "x$ZIPEXE" = x; then
21806         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ZIPEXE= (no value)" >&5
21807 $as_echo "$as_me: Setting user supplied tool ZIPEXE= (no value)" >&6;}
21808         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIPEXE" >&5
21809 $as_echo_n "checking for ZIPEXE... " >&6; }
21810         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21811 $as_echo "disabled" >&6; }
21812       else
21813         # Check if the provided tool contains a complete path.
21814         tool_specified="$ZIPEXE"
21815         tool_basename="${tool_specified##*/}"
21816         if test "x$tool_basename" = "x$tool_specified"; then
21817           # A command without a complete path is provided, search $PATH.
21818           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIPEXE=$tool_basename" >&5
21819 $as_echo "$as_me: Will search for user supplied tool ZIPEXE=$tool_basename" >&6;}
21820           # Extract the first word of "$tool_basename", so it can be a program name with args.
21821 set dummy $tool_basename; ac_word=$2
21822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21823 $as_echo_n "checking for $ac_word... " >&6; }
21824 if ${ac_cv_path_ZIPEXE+:} false; then :
21825   $as_echo_n "(cached) " >&6
21826 else
21827   case $ZIPEXE in
21828   [\\/]* | ?:[\\/]*)
21829   ac_cv_path_ZIPEXE="$ZIPEXE" # Let the user override the test with a path.
21830   ;;
21831   *)
21832   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21833 for as_dir in $PATH
21834 do
21835   IFS=$as_save_IFS
21836   test -z "$as_dir" && as_dir=.
21837     for ac_exec_ext in '' $ac_executable_extensions; do
21838   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21839     ac_cv_path_ZIPEXE="$as_dir/$ac_word$ac_exec_ext"
21840     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21841     break 2
21842   fi
21843 done
21844   done
21845 IFS=$as_save_IFS
21846 
21847   ;;
21848 esac
21849 fi
21850 ZIPEXE=$ac_cv_path_ZIPEXE
21851 if test -n "$ZIPEXE"; then
21852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIPEXE" >&5
21853 $as_echo "$ZIPEXE" >&6; }
21854 else
21855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21856 $as_echo "no" >&6; }
21857 fi
21858 
21859 
21860           if test "x$ZIPEXE" = x; then
21861             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21862           fi
21863         else
21864           # Otherwise we believe it is a complete path. Use it as it is.
21865           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIPEXE=$tool_specified" >&5
21866 $as_echo "$as_me: Will use user supplied tool ZIPEXE=$tool_specified" >&6;}
21867           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIPEXE" >&5
21868 $as_echo_n "checking for ZIPEXE... " >&6; }
21869           if test ! -x "$tool_specified"; then
21870             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21871 $as_echo "not found" >&6; }
21872             as_fn_error $? "User supplied tool ZIPEXE=$tool_specified does not exist or is not executable" "$LINENO" 5
21873           fi
21874           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21875 $as_echo "$tool_specified" >&6; }
21876         fi
21877       fi
21878     fi
21879 
21880   fi
21881 
21882 
21883 
21884   if test "x$ZIPEXE" = x; then
21885     as_fn_error $? "Could not find required tool for ZIPEXE" "$LINENO" 5
21886   fi
21887 
21888 
21889 
21890   # Non-required basic tools
21891 
21892 
21893 
21894   # Publish this variable in the help.
21895 
21896 
21897   if [ -z "${LDD+x}" ]; then
21898     # The variable is not set by user, try to locate tool using the code snippet
21899     for ac_prog in ldd
21900 do
21901   # Extract the first word of "$ac_prog", so it can be a program name with args.
21902 set dummy $ac_prog; ac_word=$2
21903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21904 $as_echo_n "checking for $ac_word... " >&6; }
21905 if ${ac_cv_path_LDD+:} false; then :
21906   $as_echo_n "(cached) " >&6
21907 else
21908   case $LDD in
21909   [\\/]* | ?:[\\/]*)
21910   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
21911   ;;
21912   *)
21913   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21914 for as_dir in $PATH
21915 do
21916   IFS=$as_save_IFS
21917   test -z "$as_dir" && as_dir=.
21918     for ac_exec_ext in '' $ac_executable_extensions; do
21919   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21920     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
21921     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21922     break 2
21923   fi
21924 done
21925   done
21926 IFS=$as_save_IFS
21927 
21928   ;;
21929 esac
21930 fi
21931 LDD=$ac_cv_path_LDD
21932 if test -n "$LDD"; then
21933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
21934 $as_echo "$LDD" >&6; }
21935 else
21936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21937 $as_echo "no" >&6; }
21938 fi
21939 
21940 
21941   test -n "$LDD" && break
21942 done
21943 
21944   else
21945     # The variable is set, but is it from the command line or the environment?
21946 
21947     # Try to remove the string !LDD! from our list.
21948     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/}
21949     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21950       # If it failed, the variable was not from the command line. Ignore it,
21951       # but warn the user (except for BASH, which is always set by the calling BASH).
21952       if test "xLDD" != xBASH; then
21953         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5
21954 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;}
21955       fi
21956       # Try to locate tool using the code snippet
21957       for ac_prog in ldd
21958 do
21959   # Extract the first word of "$ac_prog", so it can be a program name with args.
21960 set dummy $ac_prog; ac_word=$2
21961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21962 $as_echo_n "checking for $ac_word... " >&6; }
21963 if ${ac_cv_path_LDD+:} false; then :
21964   $as_echo_n "(cached) " >&6
21965 else
21966   case $LDD in
21967   [\\/]* | ?:[\\/]*)
21968   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
21969   ;;
21970   *)
21971   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21972 for as_dir in $PATH
21973 do
21974   IFS=$as_save_IFS
21975   test -z "$as_dir" && as_dir=.
21976     for ac_exec_ext in '' $ac_executable_extensions; do
21977   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21978     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
21979     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21980     break 2
21981   fi
21982 done
21983   done
21984 IFS=$as_save_IFS
21985 
21986   ;;
21987 esac
21988 fi
21989 LDD=$ac_cv_path_LDD
21990 if test -n "$LDD"; then
21991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
21992 $as_echo "$LDD" >&6; }
21993 else
21994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21995 $as_echo "no" >&6; }
21996 fi
21997 
21998 
21999   test -n "$LDD" && break
22000 done
22001 
22002     else
22003       # If it succeeded, then it was overridden by the user. We will use it
22004       # for the tool.
22005 
22006       # First remove it from the list of overridden variables, so we can test
22007       # for unknown variables in the end.
22008       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22009 
22010       # Check if we try to supply an empty value
22011       if test "x$LDD" = x; then
22012         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LDD= (no value)" >&5
22013 $as_echo "$as_me: Setting user supplied tool LDD= (no value)" >&6;}
22014         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5
22015 $as_echo_n "checking for LDD... " >&6; }
22016         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22017 $as_echo "disabled" >&6; }
22018       else
22019         # Check if the provided tool contains a complete path.
22020         tool_specified="$LDD"
22021         tool_basename="${tool_specified##*/}"
22022         if test "x$tool_basename" = "x$tool_specified"; then
22023           # A command without a complete path is provided, search $PATH.
22024           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5
22025 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;}
22026           # Extract the first word of "$tool_basename", so it can be a program name with args.
22027 set dummy $tool_basename; ac_word=$2
22028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22029 $as_echo_n "checking for $ac_word... " >&6; }
22030 if ${ac_cv_path_LDD+:} false; then :
22031   $as_echo_n "(cached) " >&6
22032 else
22033   case $LDD in
22034   [\\/]* | ?:[\\/]*)
22035   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
22036   ;;
22037   *)
22038   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22039 for as_dir in $PATH
22040 do
22041   IFS=$as_save_IFS
22042   test -z "$as_dir" && as_dir=.
22043     for ac_exec_ext in '' $ac_executable_extensions; do
22044   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22045     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
22046     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22047     break 2
22048   fi
22049 done
22050   done
22051 IFS=$as_save_IFS
22052 
22053   ;;
22054 esac
22055 fi
22056 LDD=$ac_cv_path_LDD
22057 if test -n "$LDD"; then
22058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
22059 $as_echo "$LDD" >&6; }
22060 else
22061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22062 $as_echo "no" >&6; }
22063 fi
22064 
22065 
22066           if test "x$LDD" = x; then
22067             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22068           fi
22069         else
22070           # Otherwise we believe it is a complete path. Use it as it is.
22071           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5
22072 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;}
22073           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5
22074 $as_echo_n "checking for LDD... " >&6; }
22075           if test ! -x "$tool_specified"; then
22076             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22077 $as_echo "not found" >&6; }
22078             as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5
22079           fi
22080           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22081 $as_echo "$tool_specified" >&6; }
22082         fi
22083       fi
22084     fi
22085 
22086   fi
22087 
22088 
22089   if test "x$LDD" = "x"; then
22090     # List shared lib dependencies is used for
22091     # debug output and checking for forbidden dependencies.
22092     # We can build without it.
22093     LDD="true"
22094   fi
22095 
22096 
22097   # Publish this variable in the help.
22098 
22099 
22100   if [ -z "${OTOOL+x}" ]; then
22101     # The variable is not set by user, try to locate tool using the code snippet
22102     for ac_prog in otool
22103 do
22104   # Extract the first word of "$ac_prog", so it can be a program name with args.
22105 set dummy $ac_prog; ac_word=$2
22106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22107 $as_echo_n "checking for $ac_word... " >&6; }
22108 if ${ac_cv_path_OTOOL+:} false; then :
22109   $as_echo_n "(cached) " >&6
22110 else
22111   case $OTOOL in
22112   [\\/]* | ?:[\\/]*)
22113   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
22114   ;;
22115   *)
22116   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22117 for as_dir in $PATH
22118 do
22119   IFS=$as_save_IFS
22120   test -z "$as_dir" && as_dir=.
22121     for ac_exec_ext in '' $ac_executable_extensions; do
22122   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22123     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
22124     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22125     break 2
22126   fi
22127 done
22128   done
22129 IFS=$as_save_IFS
22130 
22131   ;;
22132 esac
22133 fi
22134 OTOOL=$ac_cv_path_OTOOL
22135 if test -n "$OTOOL"; then
22136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
22137 $as_echo "$OTOOL" >&6; }
22138 else
22139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22140 $as_echo "no" >&6; }
22141 fi
22142 
22143 
22144   test -n "$OTOOL" && break
22145 done
22146 
22147   else
22148     # The variable is set, but is it from the command line or the environment?
22149 
22150     # Try to remove the string !OTOOL! from our list.
22151     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OTOOL!/}
22152     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22153       # If it failed, the variable was not from the command line. Ignore it,
22154       # but warn the user (except for BASH, which is always set by the calling BASH).
22155       if test "xOTOOL" != xBASH; then
22156         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&5
22157 $as_echo "$as_me: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&2;}
22158       fi
22159       # Try to locate tool using the code snippet
22160       for ac_prog in otool
22161 do
22162   # Extract the first word of "$ac_prog", so it can be a program name with args.
22163 set dummy $ac_prog; ac_word=$2
22164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22165 $as_echo_n "checking for $ac_word... " >&6; }
22166 if ${ac_cv_path_OTOOL+:} false; then :
22167   $as_echo_n "(cached) " >&6
22168 else
22169   case $OTOOL in
22170   [\\/]* | ?:[\\/]*)
22171   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
22172   ;;
22173   *)
22174   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22175 for as_dir in $PATH
22176 do
22177   IFS=$as_save_IFS
22178   test -z "$as_dir" && as_dir=.
22179     for ac_exec_ext in '' $ac_executable_extensions; do
22180   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22181     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
22182     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22183     break 2
22184   fi
22185 done
22186   done
22187 IFS=$as_save_IFS
22188 
22189   ;;
22190 esac
22191 fi
22192 OTOOL=$ac_cv_path_OTOOL
22193 if test -n "$OTOOL"; then
22194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
22195 $as_echo "$OTOOL" >&6; }
22196 else
22197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22198 $as_echo "no" >&6; }
22199 fi
22200 
22201 
22202   test -n "$OTOOL" && break
22203 done
22204 
22205     else
22206       # If it succeeded, then it was overridden by the user. We will use it
22207       # for the tool.
22208 
22209       # First remove it from the list of overridden variables, so we can test
22210       # for unknown variables in the end.
22211       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22212 
22213       # Check if we try to supply an empty value
22214       if test "x$OTOOL" = x; then
22215         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool OTOOL= (no value)" >&5
22216 $as_echo "$as_me: Setting user supplied tool OTOOL= (no value)" >&6;}
22217         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5
22218 $as_echo_n "checking for OTOOL... " >&6; }
22219         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22220 $as_echo "disabled" >&6; }
22221       else
22222         # Check if the provided tool contains a complete path.
22223         tool_specified="$OTOOL"
22224         tool_basename="${tool_specified##*/}"
22225         if test "x$tool_basename" = "x$tool_specified"; then
22226           # A command without a complete path is provided, search $PATH.
22227           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OTOOL=$tool_basename" >&5
22228 $as_echo "$as_me: Will search for user supplied tool OTOOL=$tool_basename" >&6;}
22229           # Extract the first word of "$tool_basename", so it can be a program name with args.
22230 set dummy $tool_basename; ac_word=$2
22231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22232 $as_echo_n "checking for $ac_word... " >&6; }
22233 if ${ac_cv_path_OTOOL+:} false; then :
22234   $as_echo_n "(cached) " >&6
22235 else
22236   case $OTOOL in
22237   [\\/]* | ?:[\\/]*)
22238   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
22239   ;;
22240   *)
22241   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22242 for as_dir in $PATH
22243 do
22244   IFS=$as_save_IFS
22245   test -z "$as_dir" && as_dir=.
22246     for ac_exec_ext in '' $ac_executable_extensions; do
22247   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22248     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
22249     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22250     break 2
22251   fi
22252 done
22253   done
22254 IFS=$as_save_IFS
22255 
22256   ;;
22257 esac
22258 fi
22259 OTOOL=$ac_cv_path_OTOOL
22260 if test -n "$OTOOL"; then
22261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
22262 $as_echo "$OTOOL" >&6; }
22263 else
22264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22265 $as_echo "no" >&6; }
22266 fi
22267 
22268 
22269           if test "x$OTOOL" = x; then
22270             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22271           fi
22272         else
22273           # Otherwise we believe it is a complete path. Use it as it is.
22274           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OTOOL=$tool_specified" >&5
22275 $as_echo "$as_me: Will use user supplied tool OTOOL=$tool_specified" >&6;}
22276           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5
22277 $as_echo_n "checking for OTOOL... " >&6; }
22278           if test ! -x "$tool_specified"; then
22279             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22280 $as_echo "not found" >&6; }
22281             as_fn_error $? "User supplied tool OTOOL=$tool_specified does not exist or is not executable" "$LINENO" 5
22282           fi
22283           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22284 $as_echo "$tool_specified" >&6; }
22285         fi
22286       fi
22287     fi
22288 
22289   fi
22290 
22291 
22292   if test "x$OTOOL" = "x"; then
22293     OTOOL="true"
22294   fi
22295 
22296 
22297   # Publish this variable in the help.
22298 
22299 
22300   if [ -z "${READELF+x}" ]; then
22301     # The variable is not set by user, try to locate tool using the code snippet
22302     for ac_prog in greadelf readelf
22303 do
22304   # Extract the first word of "$ac_prog", so it can be a program name with args.
22305 set dummy $ac_prog; ac_word=$2
22306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22307 $as_echo_n "checking for $ac_word... " >&6; }
22308 if ${ac_cv_path_READELF+:} false; then :
22309   $as_echo_n "(cached) " >&6
22310 else
22311   case $READELF in
22312   [\\/]* | ?:[\\/]*)
22313   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
22314   ;;
22315   *)
22316   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22317 for as_dir in $PATH
22318 do
22319   IFS=$as_save_IFS
22320   test -z "$as_dir" && as_dir=.
22321     for ac_exec_ext in '' $ac_executable_extensions; do
22322   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22323     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
22324     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22325     break 2
22326   fi
22327 done
22328   done
22329 IFS=$as_save_IFS
22330 
22331   ;;
22332 esac
22333 fi
22334 READELF=$ac_cv_path_READELF
22335 if test -n "$READELF"; then
22336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
22337 $as_echo "$READELF" >&6; }
22338 else
22339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22340 $as_echo "no" >&6; }
22341 fi
22342 
22343 
22344   test -n "$READELF" && break
22345 done
22346 
22347   else
22348     # The variable is set, but is it from the command line or the environment?
22349 
22350     # Try to remove the string !READELF! from our list.
22351     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/}
22352     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22353       # If it failed, the variable was not from the command line. Ignore it,
22354       # but warn the user (except for BASH, which is always set by the calling BASH).
22355       if test "xREADELF" != xBASH; then
22356         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5
22357 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;}
22358       fi
22359       # Try to locate tool using the code snippet
22360       for ac_prog in greadelf readelf
22361 do
22362   # Extract the first word of "$ac_prog", so it can be a program name with args.
22363 set dummy $ac_prog; ac_word=$2
22364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22365 $as_echo_n "checking for $ac_word... " >&6; }
22366 if ${ac_cv_path_READELF+:} false; then :
22367   $as_echo_n "(cached) " >&6
22368 else
22369   case $READELF in
22370   [\\/]* | ?:[\\/]*)
22371   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
22372   ;;
22373   *)
22374   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22375 for as_dir in $PATH
22376 do
22377   IFS=$as_save_IFS
22378   test -z "$as_dir" && as_dir=.
22379     for ac_exec_ext in '' $ac_executable_extensions; do
22380   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22381     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
22382     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22383     break 2
22384   fi
22385 done
22386   done
22387 IFS=$as_save_IFS
22388 
22389   ;;
22390 esac
22391 fi
22392 READELF=$ac_cv_path_READELF
22393 if test -n "$READELF"; then
22394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
22395 $as_echo "$READELF" >&6; }
22396 else
22397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22398 $as_echo "no" >&6; }
22399 fi
22400 
22401 
22402   test -n "$READELF" && break
22403 done
22404 
22405     else
22406       # If it succeeded, then it was overridden by the user. We will use it
22407       # for the tool.
22408 
22409       # First remove it from the list of overridden variables, so we can test
22410       # for unknown variables in the end.
22411       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22412 
22413       # Check if we try to supply an empty value
22414       if test "x$READELF" = x; then
22415         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool READELF= (no value)" >&5
22416 $as_echo "$as_me: Setting user supplied tool READELF= (no value)" >&6;}
22417         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5
22418 $as_echo_n "checking for READELF... " >&6; }
22419         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22420 $as_echo "disabled" >&6; }
22421       else
22422         # Check if the provided tool contains a complete path.
22423         tool_specified="$READELF"
22424         tool_basename="${tool_specified##*/}"
22425         if test "x$tool_basename" = "x$tool_specified"; then
22426           # A command without a complete path is provided, search $PATH.
22427           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5
22428 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;}
22429           # Extract the first word of "$tool_basename", so it can be a program name with args.
22430 set dummy $tool_basename; ac_word=$2
22431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22432 $as_echo_n "checking for $ac_word... " >&6; }
22433 if ${ac_cv_path_READELF+:} false; then :
22434   $as_echo_n "(cached) " >&6
22435 else
22436   case $READELF in
22437   [\\/]* | ?:[\\/]*)
22438   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
22439   ;;
22440   *)
22441   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22442 for as_dir in $PATH
22443 do
22444   IFS=$as_save_IFS
22445   test -z "$as_dir" && as_dir=.
22446     for ac_exec_ext in '' $ac_executable_extensions; do
22447   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22448     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
22449     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22450     break 2
22451   fi
22452 done
22453   done
22454 IFS=$as_save_IFS
22455 
22456   ;;
22457 esac
22458 fi
22459 READELF=$ac_cv_path_READELF
22460 if test -n "$READELF"; then
22461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
22462 $as_echo "$READELF" >&6; }
22463 else
22464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22465 $as_echo "no" >&6; }
22466 fi
22467 
22468 
22469           if test "x$READELF" = x; then
22470             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22471           fi
22472         else
22473           # Otherwise we believe it is a complete path. Use it as it is.
22474           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5
22475 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;}
22476           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5
22477 $as_echo_n "checking for READELF... " >&6; }
22478           if test ! -x "$tool_specified"; then
22479             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22480 $as_echo "not found" >&6; }
22481             as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5
22482           fi
22483           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22484 $as_echo "$tool_specified" >&6; }
22485         fi
22486       fi
22487     fi
22488 
22489   fi
22490 
22491 
22492 
22493 
22494   # Publish this variable in the help.
22495 
22496 
22497   if [ -z "${DOT+x}" ]; then
22498     # The variable is not set by user, try to locate tool using the code snippet
22499     for ac_prog in dot
22500 do
22501   # Extract the first word of "$ac_prog", so it can be a program name with args.
22502 set dummy $ac_prog; ac_word=$2
22503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22504 $as_echo_n "checking for $ac_word... " >&6; }
22505 if ${ac_cv_path_DOT+:} false; then :
22506   $as_echo_n "(cached) " >&6
22507 else
22508   case $DOT in
22509   [\\/]* | ?:[\\/]*)
22510   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
22511   ;;
22512   *)
22513   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22514 for as_dir in $PATH
22515 do
22516   IFS=$as_save_IFS
22517   test -z "$as_dir" && as_dir=.
22518     for ac_exec_ext in '' $ac_executable_extensions; do
22519   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22520     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
22521     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22522     break 2
22523   fi
22524 done
22525   done
22526 IFS=$as_save_IFS
22527 
22528   ;;
22529 esac
22530 fi
22531 DOT=$ac_cv_path_DOT
22532 if test -n "$DOT"; then
22533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
22534 $as_echo "$DOT" >&6; }
22535 else
22536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22537 $as_echo "no" >&6; }
22538 fi
22539 
22540 
22541   test -n "$DOT" && break
22542 done
22543 
22544   else
22545     # The variable is set, but is it from the command line or the environment?
22546 
22547     # Try to remove the string !DOT! from our list.
22548     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DOT!/}
22549     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22550       # If it failed, the variable was not from the command line. Ignore it,
22551       # but warn the user (except for BASH, which is always set by the calling BASH).
22552       if test "xDOT" != xBASH; then
22553         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DOT from the environment. Use command line variables instead." >&5
22554 $as_echo "$as_me: WARNING: Ignoring value of DOT from the environment. Use command line variables instead." >&2;}
22555       fi
22556       # Try to locate tool using the code snippet
22557       for ac_prog in dot
22558 do
22559   # Extract the first word of "$ac_prog", so it can be a program name with args.
22560 set dummy $ac_prog; ac_word=$2
22561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22562 $as_echo_n "checking for $ac_word... " >&6; }
22563 if ${ac_cv_path_DOT+:} false; then :
22564   $as_echo_n "(cached) " >&6
22565 else
22566   case $DOT in
22567   [\\/]* | ?:[\\/]*)
22568   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
22569   ;;
22570   *)
22571   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22572 for as_dir in $PATH
22573 do
22574   IFS=$as_save_IFS
22575   test -z "$as_dir" && as_dir=.
22576     for ac_exec_ext in '' $ac_executable_extensions; do
22577   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22578     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
22579     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22580     break 2
22581   fi
22582 done
22583   done
22584 IFS=$as_save_IFS
22585 
22586   ;;
22587 esac
22588 fi
22589 DOT=$ac_cv_path_DOT
22590 if test -n "$DOT"; then
22591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
22592 $as_echo "$DOT" >&6; }
22593 else
22594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22595 $as_echo "no" >&6; }
22596 fi
22597 
22598 
22599   test -n "$DOT" && break
22600 done
22601 
22602     else
22603       # If it succeeded, then it was overridden by the user. We will use it
22604       # for the tool.
22605 
22606       # First remove it from the list of overridden variables, so we can test
22607       # for unknown variables in the end.
22608       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22609 
22610       # Check if we try to supply an empty value
22611       if test "x$DOT" = x; then
22612         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DOT= (no value)" >&5
22613 $as_echo "$as_me: Setting user supplied tool DOT= (no value)" >&6;}
22614         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DOT" >&5
22615 $as_echo_n "checking for DOT... " >&6; }
22616         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22617 $as_echo "disabled" >&6; }
22618       else
22619         # Check if the provided tool contains a complete path.
22620         tool_specified="$DOT"
22621         tool_basename="${tool_specified##*/}"
22622         if test "x$tool_basename" = "x$tool_specified"; then
22623           # A command without a complete path is provided, search $PATH.
22624           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DOT=$tool_basename" >&5
22625 $as_echo "$as_me: Will search for user supplied tool DOT=$tool_basename" >&6;}
22626           # Extract the first word of "$tool_basename", so it can be a program name with args.
22627 set dummy $tool_basename; ac_word=$2
22628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22629 $as_echo_n "checking for $ac_word... " >&6; }
22630 if ${ac_cv_path_DOT+:} false; then :
22631   $as_echo_n "(cached) " >&6
22632 else
22633   case $DOT in
22634   [\\/]* | ?:[\\/]*)
22635   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
22636   ;;
22637   *)
22638   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22639 for as_dir in $PATH
22640 do
22641   IFS=$as_save_IFS
22642   test -z "$as_dir" && as_dir=.
22643     for ac_exec_ext in '' $ac_executable_extensions; do
22644   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22645     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
22646     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22647     break 2
22648   fi
22649 done
22650   done
22651 IFS=$as_save_IFS
22652 
22653   ;;
22654 esac
22655 fi
22656 DOT=$ac_cv_path_DOT
22657 if test -n "$DOT"; then
22658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
22659 $as_echo "$DOT" >&6; }
22660 else
22661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22662 $as_echo "no" >&6; }
22663 fi
22664 
22665 
22666           if test "x$DOT" = x; then
22667             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22668           fi
22669         else
22670           # Otherwise we believe it is a complete path. Use it as it is.
22671           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DOT=$tool_specified" >&5
22672 $as_echo "$as_me: Will use user supplied tool DOT=$tool_specified" >&6;}
22673           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DOT" >&5
22674 $as_echo_n "checking for DOT... " >&6; }
22675           if test ! -x "$tool_specified"; then
22676             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22677 $as_echo "not found" >&6; }
22678             as_fn_error $? "User supplied tool DOT=$tool_specified does not exist or is not executable" "$LINENO" 5
22679           fi
22680           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22681 $as_echo "$tool_specified" >&6; }
22682         fi
22683       fi
22684     fi
22685 
22686   fi
22687 
22688 
22689 
22690 
22691   # Publish this variable in the help.
22692 
22693 
22694   if [ -z "${HG+x}" ]; then
22695     # The variable is not set by user, try to locate tool using the code snippet
22696     for ac_prog in hg
22697 do
22698   # Extract the first word of "$ac_prog", so it can be a program name with args.
22699 set dummy $ac_prog; ac_word=$2
22700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22701 $as_echo_n "checking for $ac_word... " >&6; }
22702 if ${ac_cv_path_HG+:} false; then :
22703   $as_echo_n "(cached) " >&6
22704 else
22705   case $HG in
22706   [\\/]* | ?:[\\/]*)
22707   ac_cv_path_HG="$HG" # Let the user override the test with a path.
22708   ;;
22709   *)
22710   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22711 for as_dir in $PATH
22712 do
22713   IFS=$as_save_IFS
22714   test -z "$as_dir" && as_dir=.
22715     for ac_exec_ext in '' $ac_executable_extensions; do
22716   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22717     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
22718     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22719     break 2
22720   fi
22721 done
22722   done
22723 IFS=$as_save_IFS
22724 
22725   ;;
22726 esac
22727 fi
22728 HG=$ac_cv_path_HG
22729 if test -n "$HG"; then
22730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
22731 $as_echo "$HG" >&6; }
22732 else
22733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22734 $as_echo "no" >&6; }
22735 fi
22736 
22737 
22738   test -n "$HG" && break
22739 done
22740 
22741   else
22742     # The variable is set, but is it from the command line or the environment?
22743 
22744     # Try to remove the string !HG! from our list.
22745     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/}
22746     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22747       # If it failed, the variable was not from the command line. Ignore it,
22748       # but warn the user (except for BASH, which is always set by the calling BASH).
22749       if test "xHG" != xBASH; then
22750         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5
22751 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;}
22752       fi
22753       # Try to locate tool using the code snippet
22754       for ac_prog in hg
22755 do
22756   # Extract the first word of "$ac_prog", so it can be a program name with args.
22757 set dummy $ac_prog; ac_word=$2
22758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22759 $as_echo_n "checking for $ac_word... " >&6; }
22760 if ${ac_cv_path_HG+:} false; then :
22761   $as_echo_n "(cached) " >&6
22762 else
22763   case $HG in
22764   [\\/]* | ?:[\\/]*)
22765   ac_cv_path_HG="$HG" # Let the user override the test with a path.
22766   ;;
22767   *)
22768   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22769 for as_dir in $PATH
22770 do
22771   IFS=$as_save_IFS
22772   test -z "$as_dir" && as_dir=.
22773     for ac_exec_ext in '' $ac_executable_extensions; do
22774   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22775     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
22776     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22777     break 2
22778   fi
22779 done
22780   done
22781 IFS=$as_save_IFS
22782 
22783   ;;
22784 esac
22785 fi
22786 HG=$ac_cv_path_HG
22787 if test -n "$HG"; then
22788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
22789 $as_echo "$HG" >&6; }
22790 else
22791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22792 $as_echo "no" >&6; }
22793 fi
22794 
22795 
22796   test -n "$HG" && break
22797 done
22798 
22799     else
22800       # If it succeeded, then it was overridden by the user. We will use it
22801       # for the tool.
22802 
22803       # First remove it from the list of overridden variables, so we can test
22804       # for unknown variables in the end.
22805       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22806 
22807       # Check if we try to supply an empty value
22808       if test "x$HG" = x; then
22809         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool HG= (no value)" >&5
22810 $as_echo "$as_me: Setting user supplied tool HG= (no value)" >&6;}
22811         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5
22812 $as_echo_n "checking for HG... " >&6; }
22813         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22814 $as_echo "disabled" >&6; }
22815       else
22816         # Check if the provided tool contains a complete path.
22817         tool_specified="$HG"
22818         tool_basename="${tool_specified##*/}"
22819         if test "x$tool_basename" = "x$tool_specified"; then
22820           # A command without a complete path is provided, search $PATH.
22821           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5
22822 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;}
22823           # Extract the first word of "$tool_basename", so it can be a program name with args.
22824 set dummy $tool_basename; ac_word=$2
22825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22826 $as_echo_n "checking for $ac_word... " >&6; }
22827 if ${ac_cv_path_HG+:} false; then :
22828   $as_echo_n "(cached) " >&6
22829 else
22830   case $HG in
22831   [\\/]* | ?:[\\/]*)
22832   ac_cv_path_HG="$HG" # Let the user override the test with a path.
22833   ;;
22834   *)
22835   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22836 for as_dir in $PATH
22837 do
22838   IFS=$as_save_IFS
22839   test -z "$as_dir" && as_dir=.
22840     for ac_exec_ext in '' $ac_executable_extensions; do
22841   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22842     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
22843     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22844     break 2
22845   fi
22846 done
22847   done
22848 IFS=$as_save_IFS
22849 
22850   ;;
22851 esac
22852 fi
22853 HG=$ac_cv_path_HG
22854 if test -n "$HG"; then
22855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
22856 $as_echo "$HG" >&6; }
22857 else
22858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22859 $as_echo "no" >&6; }
22860 fi
22861 
22862 
22863           if test "x$HG" = x; then
22864             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22865           fi
22866         else
22867           # Otherwise we believe it is a complete path. Use it as it is.
22868           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5
22869 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;}
22870           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5
22871 $as_echo_n "checking for HG... " >&6; }
22872           if test ! -x "$tool_specified"; then
22873             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22874 $as_echo "not found" >&6; }
22875             as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5
22876           fi
22877           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22878 $as_echo "$tool_specified" >&6; }
22879         fi
22880       fi
22881     fi
22882 
22883   fi
22884 
22885 
22886 
22887 
22888   # Publish this variable in the help.
22889 
22890 
22891   if [ -z "${STAT+x}" ]; then
22892     # The variable is not set by user, try to locate tool using the code snippet
22893     for ac_prog in stat
22894 do
22895   # Extract the first word of "$ac_prog", so it can be a program name with args.
22896 set dummy $ac_prog; ac_word=$2
22897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22898 $as_echo_n "checking for $ac_word... " >&6; }
22899 if ${ac_cv_path_STAT+:} false; then :
22900   $as_echo_n "(cached) " >&6
22901 else
22902   case $STAT in
22903   [\\/]* | ?:[\\/]*)
22904   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
22905   ;;
22906   *)
22907   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22908 for as_dir in $PATH
22909 do
22910   IFS=$as_save_IFS
22911   test -z "$as_dir" && as_dir=.
22912     for ac_exec_ext in '' $ac_executable_extensions; do
22913   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22914     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
22915     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22916     break 2
22917   fi
22918 done
22919   done
22920 IFS=$as_save_IFS
22921 
22922   ;;
22923 esac
22924 fi
22925 STAT=$ac_cv_path_STAT
22926 if test -n "$STAT"; then
22927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
22928 $as_echo "$STAT" >&6; }
22929 else
22930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22931 $as_echo "no" >&6; }
22932 fi
22933 
22934 
22935   test -n "$STAT" && break
22936 done
22937 
22938   else
22939     # The variable is set, but is it from the command line or the environment?
22940 
22941     # Try to remove the string !STAT! from our list.
22942     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/}
22943     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22944       # If it failed, the variable was not from the command line. Ignore it,
22945       # but warn the user (except for BASH, which is always set by the calling BASH).
22946       if test "xSTAT" != xBASH; then
22947         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5
22948 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;}
22949       fi
22950       # Try to locate tool using the code snippet
22951       for ac_prog in stat
22952 do
22953   # Extract the first word of "$ac_prog", so it can be a program name with args.
22954 set dummy $ac_prog; ac_word=$2
22955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22956 $as_echo_n "checking for $ac_word... " >&6; }
22957 if ${ac_cv_path_STAT+:} false; then :
22958   $as_echo_n "(cached) " >&6
22959 else
22960   case $STAT in
22961   [\\/]* | ?:[\\/]*)
22962   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
22963   ;;
22964   *)
22965   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22966 for as_dir in $PATH
22967 do
22968   IFS=$as_save_IFS
22969   test -z "$as_dir" && as_dir=.
22970     for ac_exec_ext in '' $ac_executable_extensions; do
22971   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22972     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
22973     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22974     break 2
22975   fi
22976 done
22977   done
22978 IFS=$as_save_IFS
22979 
22980   ;;
22981 esac
22982 fi
22983 STAT=$ac_cv_path_STAT
22984 if test -n "$STAT"; then
22985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
22986 $as_echo "$STAT" >&6; }
22987 else
22988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22989 $as_echo "no" >&6; }
22990 fi
22991 
22992 
22993   test -n "$STAT" && break
22994 done
22995 
22996     else
22997       # If it succeeded, then it was overridden by the user. We will use it
22998       # for the tool.
22999 
23000       # First remove it from the list of overridden variables, so we can test
23001       # for unknown variables in the end.
23002       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
23003 
23004       # Check if we try to supply an empty value
23005       if test "x$STAT" = x; then
23006         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool STAT= (no value)" >&5
23007 $as_echo "$as_me: Setting user supplied tool STAT= (no value)" >&6;}
23008         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5
23009 $as_echo_n "checking for STAT... " >&6; }
23010         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
23011 $as_echo "disabled" >&6; }
23012       else
23013         # Check if the provided tool contains a complete path.
23014         tool_specified="$STAT"
23015         tool_basename="${tool_specified##*/}"
23016         if test "x$tool_basename" = "x$tool_specified"; then
23017           # A command without a complete path is provided, search $PATH.
23018           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5
23019 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;}
23020           # Extract the first word of "$tool_basename", so it can be a program name with args.
23021 set dummy $tool_basename; ac_word=$2
23022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23023 $as_echo_n "checking for $ac_word... " >&6; }
23024 if ${ac_cv_path_STAT+:} false; then :
23025   $as_echo_n "(cached) " >&6
23026 else
23027   case $STAT in
23028   [\\/]* | ?:[\\/]*)
23029   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
23030   ;;
23031   *)
23032   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23033 for as_dir in $PATH
23034 do
23035   IFS=$as_save_IFS
23036   test -z "$as_dir" && as_dir=.
23037     for ac_exec_ext in '' $ac_executable_extensions; do
23038   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23039     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
23040     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23041     break 2
23042   fi
23043 done
23044   done
23045 IFS=$as_save_IFS
23046 
23047   ;;
23048 esac
23049 fi
23050 STAT=$ac_cv_path_STAT
23051 if test -n "$STAT"; then
23052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
23053 $as_echo "$STAT" >&6; }
23054 else
23055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23056 $as_echo "no" >&6; }
23057 fi
23058 
23059 
23060           if test "x$STAT" = x; then
23061             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
23062           fi
23063         else
23064           # Otherwise we believe it is a complete path. Use it as it is.
23065           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5
23066 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;}
23067           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5
23068 $as_echo_n "checking for STAT... " >&6; }
23069           if test ! -x "$tool_specified"; then
23070             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23071 $as_echo "not found" >&6; }
23072             as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5
23073           fi
23074           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
23075 $as_echo "$tool_specified" >&6; }
23076         fi
23077       fi
23078     fi
23079 
23080   fi
23081 
23082 
23083 
23084 
23085   # Publish this variable in the help.
23086 
23087 
23088   if [ -z "${TIME+x}" ]; then
23089     # The variable is not set by user, try to locate tool using the code snippet
23090     for ac_prog in time
23091 do
23092   # Extract the first word of "$ac_prog", so it can be a program name with args.
23093 set dummy $ac_prog; ac_word=$2
23094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23095 $as_echo_n "checking for $ac_word... " >&6; }
23096 if ${ac_cv_path_TIME+:} false; then :
23097   $as_echo_n "(cached) " >&6
23098 else
23099   case $TIME in
23100   [\\/]* | ?:[\\/]*)
23101   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
23102   ;;
23103   *)
23104   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23105 for as_dir in $PATH
23106 do
23107   IFS=$as_save_IFS
23108   test -z "$as_dir" && as_dir=.
23109     for ac_exec_ext in '' $ac_executable_extensions; do
23110   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23111     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
23112     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23113     break 2
23114   fi
23115 done
23116   done
23117 IFS=$as_save_IFS
23118 
23119   ;;
23120 esac
23121 fi
23122 TIME=$ac_cv_path_TIME
23123 if test -n "$TIME"; then
23124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
23125 $as_echo "$TIME" >&6; }
23126 else
23127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23128 $as_echo "no" >&6; }
23129 fi
23130 
23131 
23132   test -n "$TIME" && break
23133 done
23134 
23135   else
23136     # The variable is set, but is it from the command line or the environment?
23137 
23138     # Try to remove the string !TIME! from our list.
23139     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/}
23140     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
23141       # If it failed, the variable was not from the command line. Ignore it,
23142       # but warn the user (except for BASH, which is always set by the calling BASH).
23143       if test "xTIME" != xBASH; then
23144         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5
23145 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;}
23146       fi
23147       # Try to locate tool using the code snippet
23148       for ac_prog in time
23149 do
23150   # Extract the first word of "$ac_prog", so it can be a program name with args.
23151 set dummy $ac_prog; ac_word=$2
23152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23153 $as_echo_n "checking for $ac_word... " >&6; }
23154 if ${ac_cv_path_TIME+:} false; then :
23155   $as_echo_n "(cached) " >&6
23156 else
23157   case $TIME in
23158   [\\/]* | ?:[\\/]*)
23159   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
23160   ;;
23161   *)
23162   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23163 for as_dir in $PATH
23164 do
23165   IFS=$as_save_IFS
23166   test -z "$as_dir" && as_dir=.
23167     for ac_exec_ext in '' $ac_executable_extensions; do
23168   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23169     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
23170     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23171     break 2
23172   fi
23173 done
23174   done
23175 IFS=$as_save_IFS
23176 
23177   ;;
23178 esac
23179 fi
23180 TIME=$ac_cv_path_TIME
23181 if test -n "$TIME"; then
23182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
23183 $as_echo "$TIME" >&6; }
23184 else
23185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23186 $as_echo "no" >&6; }
23187 fi
23188 
23189 
23190   test -n "$TIME" && break
23191 done
23192 
23193     else
23194       # If it succeeded, then it was overridden by the user. We will use it
23195       # for the tool.
23196 
23197       # First remove it from the list of overridden variables, so we can test
23198       # for unknown variables in the end.
23199       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
23200 
23201       # Check if we try to supply an empty value
23202       if test "x$TIME" = x; then
23203         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TIME= (no value)" >&5
23204 $as_echo "$as_me: Setting user supplied tool TIME= (no value)" >&6;}
23205         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5
23206 $as_echo_n "checking for TIME... " >&6; }
23207         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
23208 $as_echo "disabled" >&6; }
23209       else
23210         # Check if the provided tool contains a complete path.
23211         tool_specified="$TIME"
23212         tool_basename="${tool_specified##*/}"
23213         if test "x$tool_basename" = "x$tool_specified"; then
23214           # A command without a complete path is provided, search $PATH.
23215           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5
23216 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;}
23217           # Extract the first word of "$tool_basename", so it can be a program name with args.
23218 set dummy $tool_basename; ac_word=$2
23219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23220 $as_echo_n "checking for $ac_word... " >&6; }
23221 if ${ac_cv_path_TIME+:} false; then :
23222   $as_echo_n "(cached) " >&6
23223 else
23224   case $TIME in
23225   [\\/]* | ?:[\\/]*)
23226   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
23227   ;;
23228   *)
23229   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23230 for as_dir in $PATH
23231 do
23232   IFS=$as_save_IFS
23233   test -z "$as_dir" && as_dir=.
23234     for ac_exec_ext in '' $ac_executable_extensions; do
23235   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23236     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
23237     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23238     break 2
23239   fi
23240 done
23241   done
23242 IFS=$as_save_IFS
23243 
23244   ;;
23245 esac
23246 fi
23247 TIME=$ac_cv_path_TIME
23248 if test -n "$TIME"; then
23249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
23250 $as_echo "$TIME" >&6; }
23251 else
23252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23253 $as_echo "no" >&6; }
23254 fi
23255 
23256 
23257           if test "x$TIME" = x; then
23258             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
23259           fi
23260         else
23261           # Otherwise we believe it is a complete path. Use it as it is.
23262           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5
23263 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;}
23264           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5
23265 $as_echo_n "checking for TIME... " >&6; }
23266           if test ! -x "$tool_specified"; then
23267             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23268 $as_echo "not found" >&6; }
23269             as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5
23270           fi
23271           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
23272 $as_echo "$tool_specified" >&6; }
23273         fi
23274       fi
23275     fi
23276 
23277   fi
23278 
23279 
23280 
23281 
23282   # Publish this variable in the help.
23283 
23284 
23285   if [ -z "${FLOCK+x}" ]; then
23286     # The variable is not set by user, try to locate tool using the code snippet
23287     for ac_prog in flock
23288 do
23289   # Extract the first word of "$ac_prog", so it can be a program name with args.
23290 set dummy $ac_prog; ac_word=$2
23291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23292 $as_echo_n "checking for $ac_word... " >&6; }
23293 if ${ac_cv_path_FLOCK+:} false; then :
23294   $as_echo_n "(cached) " >&6
23295 else
23296   case $FLOCK in
23297   [\\/]* | ?:[\\/]*)
23298   ac_cv_path_FLOCK="$FLOCK" # Let the user override the test with a path.
23299   ;;
23300   *)
23301   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23302 for as_dir in $PATH
23303 do
23304   IFS=$as_save_IFS
23305   test -z "$as_dir" && as_dir=.
23306     for ac_exec_ext in '' $ac_executable_extensions; do
23307   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23308     ac_cv_path_FLOCK="$as_dir/$ac_word$ac_exec_ext"
23309     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23310     break 2
23311   fi
23312 done
23313   done
23314 IFS=$as_save_IFS
23315 
23316   ;;
23317 esac
23318 fi
23319 FLOCK=$ac_cv_path_FLOCK
23320 if test -n "$FLOCK"; then
23321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLOCK" >&5
23322 $as_echo "$FLOCK" >&6; }
23323 else
23324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23325 $as_echo "no" >&6; }
23326 fi
23327 
23328 
23329   test -n "$FLOCK" && break
23330 done
23331 
23332   else
23333     # The variable is set, but is it from the command line or the environment?
23334 
23335     # Try to remove the string !FLOCK! from our list.
23336     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FLOCK!/}
23337     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
23338       # If it failed, the variable was not from the command line. Ignore it,
23339       # but warn the user (except for BASH, which is always set by the calling BASH).
23340       if test "xFLOCK" != xBASH; then
23341         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FLOCK from the environment. Use command line variables instead." >&5
23342 $as_echo "$as_me: WARNING: Ignoring value of FLOCK from the environment. Use command line variables instead." >&2;}
23343       fi
23344       # Try to locate tool using the code snippet
23345       for ac_prog in flock
23346 do
23347   # Extract the first word of "$ac_prog", so it can be a program name with args.
23348 set dummy $ac_prog; ac_word=$2
23349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23350 $as_echo_n "checking for $ac_word... " >&6; }
23351 if ${ac_cv_path_FLOCK+:} false; then :
23352   $as_echo_n "(cached) " >&6
23353 else
23354   case $FLOCK in
23355   [\\/]* | ?:[\\/]*)
23356   ac_cv_path_FLOCK="$FLOCK" # Let the user override the test with a path.
23357   ;;
23358   *)
23359   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23360 for as_dir in $PATH
23361 do
23362   IFS=$as_save_IFS
23363   test -z "$as_dir" && as_dir=.
23364     for ac_exec_ext in '' $ac_executable_extensions; do
23365   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23366     ac_cv_path_FLOCK="$as_dir/$ac_word$ac_exec_ext"
23367     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23368     break 2
23369   fi
23370 done
23371   done
23372 IFS=$as_save_IFS
23373 
23374   ;;
23375 esac
23376 fi
23377 FLOCK=$ac_cv_path_FLOCK
23378 if test -n "$FLOCK"; then
23379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLOCK" >&5
23380 $as_echo "$FLOCK" >&6; }
23381 else
23382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23383 $as_echo "no" >&6; }
23384 fi
23385 
23386 
23387   test -n "$FLOCK" && break
23388 done
23389 
23390     else
23391       # If it succeeded, then it was overridden by the user. We will use it
23392       # for the tool.
23393 
23394       # First remove it from the list of overridden variables, so we can test
23395       # for unknown variables in the end.
23396       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
23397 
23398       # Check if we try to supply an empty value
23399       if test "x$FLOCK" = x; then
23400         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FLOCK= (no value)" >&5
23401 $as_echo "$as_me: Setting user supplied tool FLOCK= (no value)" >&6;}
23402         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FLOCK" >&5
23403 $as_echo_n "checking for FLOCK... " >&6; }
23404         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
23405 $as_echo "disabled" >&6; }
23406       else
23407         # Check if the provided tool contains a complete path.
23408         tool_specified="$FLOCK"
23409         tool_basename="${tool_specified##*/}"
23410         if test "x$tool_basename" = "x$tool_specified"; then
23411           # A command without a complete path is provided, search $PATH.
23412           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FLOCK=$tool_basename" >&5
23413 $as_echo "$as_me: Will search for user supplied tool FLOCK=$tool_basename" >&6;}
23414           # Extract the first word of "$tool_basename", so it can be a program name with args.
23415 set dummy $tool_basename; ac_word=$2
23416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23417 $as_echo_n "checking for $ac_word... " >&6; }
23418 if ${ac_cv_path_FLOCK+:} false; then :
23419   $as_echo_n "(cached) " >&6
23420 else
23421   case $FLOCK in
23422   [\\/]* | ?:[\\/]*)
23423   ac_cv_path_FLOCK="$FLOCK" # Let the user override the test with a path.
23424   ;;
23425   *)
23426   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23427 for as_dir in $PATH
23428 do
23429   IFS=$as_save_IFS
23430   test -z "$as_dir" && as_dir=.
23431     for ac_exec_ext in '' $ac_executable_extensions; do
23432   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23433     ac_cv_path_FLOCK="$as_dir/$ac_word$ac_exec_ext"
23434     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23435     break 2
23436   fi
23437 done
23438   done
23439 IFS=$as_save_IFS
23440 
23441   ;;
23442 esac
23443 fi
23444 FLOCK=$ac_cv_path_FLOCK
23445 if test -n "$FLOCK"; then
23446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLOCK" >&5
23447 $as_echo "$FLOCK" >&6; }
23448 else
23449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23450 $as_echo "no" >&6; }
23451 fi
23452 
23453 
23454           if test "x$FLOCK" = x; then
23455             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
23456           fi
23457         else
23458           # Otherwise we believe it is a complete path. Use it as it is.
23459           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FLOCK=$tool_specified" >&5
23460 $as_echo "$as_me: Will use user supplied tool FLOCK=$tool_specified" >&6;}
23461           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FLOCK" >&5
23462 $as_echo_n "checking for FLOCK... " >&6; }
23463           if test ! -x "$tool_specified"; then
23464             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23465 $as_echo "not found" >&6; }
23466             as_fn_error $? "User supplied tool FLOCK=$tool_specified does not exist or is not executable" "$LINENO" 5
23467           fi
23468           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
23469 $as_echo "$tool_specified" >&6; }
23470         fi
23471       fi
23472     fi
23473 
23474   fi
23475 
23476 
23477   # Dtrace is usually found in /usr/sbin on Solaris, but that directory may not
23478   # be in the user path.
23479 
23480 
23481   # Publish this variable in the help.
23482 
23483 
23484   if [ -z "${DTRACE+x}" ]; then
23485     # The variable is not set by user, try to locate tool using the code snippet
23486     for ac_prog in dtrace
23487 do
23488   # Extract the first word of "$ac_prog", so it can be a program name with args.
23489 set dummy $ac_prog; ac_word=$2
23490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23491 $as_echo_n "checking for $ac_word... " >&6; }
23492 if ${ac_cv_path_DTRACE+:} false; then :
23493   $as_echo_n "(cached) " >&6
23494 else
23495   case $DTRACE in
23496   [\\/]* | ?:[\\/]*)
23497   ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
23498   ;;
23499   *)
23500   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23501 as_dummy="$PATH:/usr/sbin"
23502 for as_dir in $as_dummy
23503 do
23504   IFS=$as_save_IFS
23505   test -z "$as_dir" && as_dir=.
23506     for ac_exec_ext in '' $ac_executable_extensions; do
23507   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23508     ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
23509     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23510     break 2
23511   fi
23512 done
23513   done
23514 IFS=$as_save_IFS
23515 
23516   ;;
23517 esac
23518 fi
23519 DTRACE=$ac_cv_path_DTRACE
23520 if test -n "$DTRACE"; then
23521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
23522 $as_echo "$DTRACE" >&6; }
23523 else
23524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23525 $as_echo "no" >&6; }
23526 fi
23527 
23528 
23529   test -n "$DTRACE" && break
23530 done
23531 
23532   else
23533     # The variable is set, but is it from the command line or the environment?
23534 
23535     # Try to remove the string !DTRACE! from our list.
23536     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DTRACE!/}
23537     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
23538       # If it failed, the variable was not from the command line. Ignore it,
23539       # but warn the user (except for BASH, which is always set by the calling BASH).
23540       if test "xDTRACE" != xBASH; then
23541         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DTRACE from the environment. Use command line variables instead." >&5
23542 $as_echo "$as_me: WARNING: Ignoring value of DTRACE from the environment. Use command line variables instead." >&2;}
23543       fi
23544       # Try to locate tool using the code snippet
23545       for ac_prog in dtrace
23546 do
23547   # Extract the first word of "$ac_prog", so it can be a program name with args.
23548 set dummy $ac_prog; ac_word=$2
23549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23550 $as_echo_n "checking for $ac_word... " >&6; }
23551 if ${ac_cv_path_DTRACE+:} false; then :
23552   $as_echo_n "(cached) " >&6
23553 else
23554   case $DTRACE in
23555   [\\/]* | ?:[\\/]*)
23556   ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
23557   ;;
23558   *)
23559   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23560 as_dummy="$PATH:/usr/sbin"
23561 for as_dir in $as_dummy
23562 do
23563   IFS=$as_save_IFS
23564   test -z "$as_dir" && as_dir=.
23565     for ac_exec_ext in '' $ac_executable_extensions; do
23566   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23567     ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
23568     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23569     break 2
23570   fi
23571 done
23572   done
23573 IFS=$as_save_IFS
23574 
23575   ;;
23576 esac
23577 fi
23578 DTRACE=$ac_cv_path_DTRACE
23579 if test -n "$DTRACE"; then
23580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
23581 $as_echo "$DTRACE" >&6; }
23582 else
23583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23584 $as_echo "no" >&6; }
23585 fi
23586 
23587 
23588   test -n "$DTRACE" && break
23589 done
23590 
23591     else
23592       # If it succeeded, then it was overridden by the user. We will use it
23593       # for the tool.
23594 
23595       # First remove it from the list of overridden variables, so we can test
23596       # for unknown variables in the end.
23597       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
23598 
23599       # Check if we try to supply an empty value
23600       if test "x$DTRACE" = x; then
23601         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DTRACE= (no value)" >&5
23602 $as_echo "$as_me: Setting user supplied tool DTRACE= (no value)" >&6;}
23603         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DTRACE" >&5
23604 $as_echo_n "checking for DTRACE... " >&6; }
23605         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
23606 $as_echo "disabled" >&6; }
23607       else
23608         # Check if the provided tool contains a complete path.
23609         tool_specified="$DTRACE"
23610         tool_basename="${tool_specified##*/}"
23611         if test "x$tool_basename" = "x$tool_specified"; then
23612           # A command without a complete path is provided, search $PATH.
23613           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DTRACE=$tool_basename" >&5
23614 $as_echo "$as_me: Will search for user supplied tool DTRACE=$tool_basename" >&6;}
23615           # Extract the first word of "$tool_basename", so it can be a program name with args.
23616 set dummy $tool_basename; ac_word=$2
23617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23618 $as_echo_n "checking for $ac_word... " >&6; }
23619 if ${ac_cv_path_DTRACE+:} false; then :
23620   $as_echo_n "(cached) " >&6
23621 else
23622   case $DTRACE in
23623   [\\/]* | ?:[\\/]*)
23624   ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
23625   ;;
23626   *)
23627   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23628 for as_dir in $PATH
23629 do
23630   IFS=$as_save_IFS
23631   test -z "$as_dir" && as_dir=.
23632     for ac_exec_ext in '' $ac_executable_extensions; do
23633   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23634     ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
23635     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23636     break 2
23637   fi
23638 done
23639   done
23640 IFS=$as_save_IFS
23641 
23642   ;;
23643 esac
23644 fi
23645 DTRACE=$ac_cv_path_DTRACE
23646 if test -n "$DTRACE"; then
23647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
23648 $as_echo "$DTRACE" >&6; }
23649 else
23650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23651 $as_echo "no" >&6; }
23652 fi
23653 
23654 
23655           if test "x$DTRACE" = x; then
23656             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
23657           fi
23658         else
23659           # Otherwise we believe it is a complete path. Use it as it is.
23660           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DTRACE=$tool_specified" >&5
23661 $as_echo "$as_me: Will use user supplied tool DTRACE=$tool_specified" >&6;}
23662           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DTRACE" >&5
23663 $as_echo_n "checking for DTRACE... " >&6; }
23664           if test ! -x "$tool_specified"; then
23665             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23666 $as_echo "not found" >&6; }
23667             as_fn_error $? "User supplied tool DTRACE=$tool_specified does not exist or is not executable" "$LINENO" 5
23668           fi
23669           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
23670 $as_echo "$tool_specified" >&6; }
23671         fi
23672       fi
23673     fi
23674 
23675   fi
23676 
23677 
23678 
23679 
23680   # Publish this variable in the help.
23681 
23682 
23683   if [ -z "${PATCH+x}" ]; then
23684     # The variable is not set by user, try to locate tool using the code snippet
23685     for ac_prog in gpatch patch
23686 do
23687   # Extract the first word of "$ac_prog", so it can be a program name with args.
23688 set dummy $ac_prog; ac_word=$2
23689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23690 $as_echo_n "checking for $ac_word... " >&6; }
23691 if ${ac_cv_path_PATCH+:} false; then :
23692   $as_echo_n "(cached) " >&6
23693 else
23694   case $PATCH in
23695   [\\/]* | ?:[\\/]*)
23696   ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
23697   ;;
23698   *)
23699   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23700 for as_dir in $PATH
23701 do
23702   IFS=$as_save_IFS
23703   test -z "$as_dir" && as_dir=.
23704     for ac_exec_ext in '' $ac_executable_extensions; do
23705   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23706     ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
23707     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23708     break 2
23709   fi
23710 done
23711   done
23712 IFS=$as_save_IFS
23713 
23714   ;;
23715 esac
23716 fi
23717 PATCH=$ac_cv_path_PATCH
23718 if test -n "$PATCH"; then
23719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
23720 $as_echo "$PATCH" >&6; }
23721 else
23722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23723 $as_echo "no" >&6; }
23724 fi
23725 
23726 
23727   test -n "$PATCH" && break
23728 done
23729 
23730   else
23731     # The variable is set, but is it from the command line or the environment?
23732 
23733     # Try to remove the string !PATCH! from our list.
23734     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PATCH!/}
23735     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
23736       # If it failed, the variable was not from the command line. Ignore it,
23737       # but warn the user (except for BASH, which is always set by the calling BASH).
23738       if test "xPATCH" != xBASH; then
23739         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PATCH from the environment. Use command line variables instead." >&5
23740 $as_echo "$as_me: WARNING: Ignoring value of PATCH from the environment. Use command line variables instead." >&2;}
23741       fi
23742       # Try to locate tool using the code snippet
23743       for ac_prog in gpatch patch
23744 do
23745   # Extract the first word of "$ac_prog", so it can be a program name with args.
23746 set dummy $ac_prog; ac_word=$2
23747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23748 $as_echo_n "checking for $ac_word... " >&6; }
23749 if ${ac_cv_path_PATCH+:} false; then :
23750   $as_echo_n "(cached) " >&6
23751 else
23752   case $PATCH in
23753   [\\/]* | ?:[\\/]*)
23754   ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
23755   ;;
23756   *)
23757   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23758 for as_dir in $PATH
23759 do
23760   IFS=$as_save_IFS
23761   test -z "$as_dir" && as_dir=.
23762     for ac_exec_ext in '' $ac_executable_extensions; do
23763   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23764     ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
23765     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23766     break 2
23767   fi
23768 done
23769   done
23770 IFS=$as_save_IFS
23771 
23772   ;;
23773 esac
23774 fi
23775 PATCH=$ac_cv_path_PATCH
23776 if test -n "$PATCH"; then
23777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
23778 $as_echo "$PATCH" >&6; }
23779 else
23780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23781 $as_echo "no" >&6; }
23782 fi
23783 
23784 
23785   test -n "$PATCH" && break
23786 done
23787 
23788     else
23789       # If it succeeded, then it was overridden by the user. We will use it
23790       # for the tool.
23791 
23792       # First remove it from the list of overridden variables, so we can test
23793       # for unknown variables in the end.
23794       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
23795 
23796       # Check if we try to supply an empty value
23797       if test "x$PATCH" = x; then
23798         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PATCH= (no value)" >&5
23799 $as_echo "$as_me: Setting user supplied tool PATCH= (no value)" >&6;}
23800         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATCH" >&5
23801 $as_echo_n "checking for PATCH... " >&6; }
23802         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
23803 $as_echo "disabled" >&6; }
23804       else
23805         # Check if the provided tool contains a complete path.
23806         tool_specified="$PATCH"
23807         tool_basename="${tool_specified##*/}"
23808         if test "x$tool_basename" = "x$tool_specified"; then
23809           # A command without a complete path is provided, search $PATH.
23810           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PATCH=$tool_basename" >&5
23811 $as_echo "$as_me: Will search for user supplied tool PATCH=$tool_basename" >&6;}
23812           # Extract the first word of "$tool_basename", so it can be a program name with args.
23813 set dummy $tool_basename; ac_word=$2
23814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23815 $as_echo_n "checking for $ac_word... " >&6; }
23816 if ${ac_cv_path_PATCH+:} false; then :
23817   $as_echo_n "(cached) " >&6
23818 else
23819   case $PATCH in
23820   [\\/]* | ?:[\\/]*)
23821   ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
23822   ;;
23823   *)
23824   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23825 for as_dir in $PATH
23826 do
23827   IFS=$as_save_IFS
23828   test -z "$as_dir" && as_dir=.
23829     for ac_exec_ext in '' $ac_executable_extensions; do
23830   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23831     ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
23832     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23833     break 2
23834   fi
23835 done
23836   done
23837 IFS=$as_save_IFS
23838 
23839   ;;
23840 esac
23841 fi
23842 PATCH=$ac_cv_path_PATCH
23843 if test -n "$PATCH"; then
23844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
23845 $as_echo "$PATCH" >&6; }
23846 else
23847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23848 $as_echo "no" >&6; }
23849 fi
23850 
23851 
23852           if test "x$PATCH" = x; then
23853             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
23854           fi
23855         else
23856           # Otherwise we believe it is a complete path. Use it as it is.
23857           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PATCH=$tool_specified" >&5
23858 $as_echo "$as_me: Will use user supplied tool PATCH=$tool_specified" >&6;}
23859           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATCH" >&5
23860 $as_echo_n "checking for PATCH... " >&6; }
23861           if test ! -x "$tool_specified"; then
23862             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23863 $as_echo "not found" >&6; }
23864             as_fn_error $? "User supplied tool PATCH=$tool_specified does not exist or is not executable" "$LINENO" 5
23865           fi
23866           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
23867 $as_echo "$tool_specified" >&6; }
23868         fi
23869       fi
23870     fi
23871 
23872   fi
23873 
23874 
23875   # Check if it's GNU time
23876   IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'`
23877   if test "x$IS_GNU_TIME" != x; then
23878     IS_GNU_TIME=yes
23879   else
23880     IS_GNU_TIME=no
23881   fi
23882 
23883 
23884   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
23885 
23886 
23887 
23888   # Publish this variable in the help.
23889 
23890 
23891   if [ -z "${DSYMUTIL+x}" ]; then
23892     # The variable is not set by user, try to locate tool using the code snippet
23893     for ac_prog in dsymutil
23894 do
23895   # Extract the first word of "$ac_prog", so it can be a program name with args.
23896 set dummy $ac_prog; ac_word=$2
23897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23898 $as_echo_n "checking for $ac_word... " >&6; }
23899 if ${ac_cv_path_DSYMUTIL+:} false; then :
23900   $as_echo_n "(cached) " >&6
23901 else
23902   case $DSYMUTIL in
23903   [\\/]* | ?:[\\/]*)
23904   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
23905   ;;
23906   *)
23907   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23908 for as_dir in $PATH
23909 do
23910   IFS=$as_save_IFS
23911   test -z "$as_dir" && as_dir=.
23912     for ac_exec_ext in '' $ac_executable_extensions; do
23913   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23914     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
23915     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23916     break 2
23917   fi
23918 done
23919   done
23920 IFS=$as_save_IFS
23921 
23922   ;;
23923 esac
23924 fi
23925 DSYMUTIL=$ac_cv_path_DSYMUTIL
23926 if test -n "$DSYMUTIL"; then
23927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
23928 $as_echo "$DSYMUTIL" >&6; }
23929 else
23930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23931 $as_echo "no" >&6; }
23932 fi
23933 
23934 
23935   test -n "$DSYMUTIL" && break
23936 done
23937 
23938   else
23939     # The variable is set, but is it from the command line or the environment?
23940 
23941     # Try to remove the string !DSYMUTIL! from our list.
23942     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/}
23943     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
23944       # If it failed, the variable was not from the command line. Ignore it,
23945       # but warn the user (except for BASH, which is always set by the calling BASH).
23946       if test "xDSYMUTIL" != xBASH; then
23947         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5
23948 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;}
23949       fi
23950       # Try to locate tool using the code snippet
23951       for ac_prog in dsymutil
23952 do
23953   # Extract the first word of "$ac_prog", so it can be a program name with args.
23954 set dummy $ac_prog; ac_word=$2
23955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23956 $as_echo_n "checking for $ac_word... " >&6; }
23957 if ${ac_cv_path_DSYMUTIL+:} false; then :
23958   $as_echo_n "(cached) " >&6
23959 else
23960   case $DSYMUTIL in
23961   [\\/]* | ?:[\\/]*)
23962   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
23963   ;;
23964   *)
23965   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23966 for as_dir in $PATH
23967 do
23968   IFS=$as_save_IFS
23969   test -z "$as_dir" && as_dir=.
23970     for ac_exec_ext in '' $ac_executable_extensions; do
23971   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23972     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
23973     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23974     break 2
23975   fi
23976 done
23977   done
23978 IFS=$as_save_IFS
23979 
23980   ;;
23981 esac
23982 fi
23983 DSYMUTIL=$ac_cv_path_DSYMUTIL
23984 if test -n "$DSYMUTIL"; then
23985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
23986 $as_echo "$DSYMUTIL" >&6; }
23987 else
23988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23989 $as_echo "no" >&6; }
23990 fi
23991 
23992 
23993   test -n "$DSYMUTIL" && break
23994 done
23995 
23996     else
23997       # If it succeeded, then it was overridden by the user. We will use it
23998       # for the tool.
23999 
24000       # First remove it from the list of overridden variables, so we can test
24001       # for unknown variables in the end.
24002       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
24003 
24004       # Check if we try to supply an empty value
24005       if test "x$DSYMUTIL" = x; then
24006         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DSYMUTIL= (no value)" >&5
24007 $as_echo "$as_me: Setting user supplied tool DSYMUTIL= (no value)" >&6;}
24008         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5
24009 $as_echo_n "checking for DSYMUTIL... " >&6; }
24010         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
24011 $as_echo "disabled" >&6; }
24012       else
24013         # Check if the provided tool contains a complete path.
24014         tool_specified="$DSYMUTIL"
24015         tool_basename="${tool_specified##*/}"
24016         if test "x$tool_basename" = "x$tool_specified"; then
24017           # A command without a complete path is provided, search $PATH.
24018           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5
24019 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;}
24020           # Extract the first word of "$tool_basename", so it can be a program name with args.
24021 set dummy $tool_basename; ac_word=$2
24022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24023 $as_echo_n "checking for $ac_word... " >&6; }
24024 if ${ac_cv_path_DSYMUTIL+:} false; then :
24025   $as_echo_n "(cached) " >&6
24026 else
24027   case $DSYMUTIL in
24028   [\\/]* | ?:[\\/]*)
24029   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
24030   ;;
24031   *)
24032   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24033 for as_dir in $PATH
24034 do
24035   IFS=$as_save_IFS
24036   test -z "$as_dir" && as_dir=.
24037     for ac_exec_ext in '' $ac_executable_extensions; do
24038   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24039     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
24040     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24041     break 2
24042   fi
24043 done
24044   done
24045 IFS=$as_save_IFS
24046 
24047   ;;
24048 esac
24049 fi
24050 DSYMUTIL=$ac_cv_path_DSYMUTIL
24051 if test -n "$DSYMUTIL"; then
24052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
24053 $as_echo "$DSYMUTIL" >&6; }
24054 else
24055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24056 $as_echo "no" >&6; }
24057 fi
24058 
24059 
24060           if test "x$DSYMUTIL" = x; then
24061             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
24062           fi
24063         else
24064           # Otherwise we believe it is a complete path. Use it as it is.
24065           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5
24066 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;}
24067           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5
24068 $as_echo_n "checking for DSYMUTIL... " >&6; }
24069           if test ! -x "$tool_specified"; then
24070             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24071 $as_echo "not found" >&6; }
24072             as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5
24073           fi
24074           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
24075 $as_echo "$tool_specified" >&6; }
24076         fi
24077       fi
24078     fi
24079 
24080   fi
24081 
24082 
24083 
24084   if test "x$DSYMUTIL" = x; then
24085     as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5
24086   fi
24087 
24088 
24089 
24090 
24091 
24092   # Publish this variable in the help.
24093 
24094 
24095   if [ -z "${XATTR+x}" ]; then
24096     # The variable is not set by user, try to locate tool using the code snippet
24097     for ac_prog in xattr
24098 do
24099   # Extract the first word of "$ac_prog", so it can be a program name with args.
24100 set dummy $ac_prog; ac_word=$2
24101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24102 $as_echo_n "checking for $ac_word... " >&6; }
24103 if ${ac_cv_path_XATTR+:} false; then :
24104   $as_echo_n "(cached) " >&6
24105 else
24106   case $XATTR in
24107   [\\/]* | ?:[\\/]*)
24108   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
24109   ;;
24110   *)
24111   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24112 for as_dir in $PATH
24113 do
24114   IFS=$as_save_IFS
24115   test -z "$as_dir" && as_dir=.
24116     for ac_exec_ext in '' $ac_executable_extensions; do
24117   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24118     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
24119     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24120     break 2
24121   fi
24122 done
24123   done
24124 IFS=$as_save_IFS
24125 
24126   ;;
24127 esac
24128 fi
24129 XATTR=$ac_cv_path_XATTR
24130 if test -n "$XATTR"; then
24131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
24132 $as_echo "$XATTR" >&6; }
24133 else
24134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24135 $as_echo "no" >&6; }
24136 fi
24137 
24138 
24139   test -n "$XATTR" && break
24140 done
24141 
24142   else
24143     # The variable is set, but is it from the command line or the environment?
24144 
24145     # Try to remove the string !XATTR! from our list.
24146     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/}
24147     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
24148       # If it failed, the variable was not from the command line. Ignore it,
24149       # but warn the user (except for BASH, which is always set by the calling BASH).
24150       if test "xXATTR" != xBASH; then
24151         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5
24152 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;}
24153       fi
24154       # Try to locate tool using the code snippet
24155       for ac_prog in xattr
24156 do
24157   # Extract the first word of "$ac_prog", so it can be a program name with args.
24158 set dummy $ac_prog; ac_word=$2
24159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24160 $as_echo_n "checking for $ac_word... " >&6; }
24161 if ${ac_cv_path_XATTR+:} false; then :
24162   $as_echo_n "(cached) " >&6
24163 else
24164   case $XATTR in
24165   [\\/]* | ?:[\\/]*)
24166   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
24167   ;;
24168   *)
24169   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24170 for as_dir in $PATH
24171 do
24172   IFS=$as_save_IFS
24173   test -z "$as_dir" && as_dir=.
24174     for ac_exec_ext in '' $ac_executable_extensions; do
24175   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24176     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
24177     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24178     break 2
24179   fi
24180 done
24181   done
24182 IFS=$as_save_IFS
24183 
24184   ;;
24185 esac
24186 fi
24187 XATTR=$ac_cv_path_XATTR
24188 if test -n "$XATTR"; then
24189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
24190 $as_echo "$XATTR" >&6; }
24191 else
24192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24193 $as_echo "no" >&6; }
24194 fi
24195 
24196 
24197   test -n "$XATTR" && break
24198 done
24199 
24200     else
24201       # If it succeeded, then it was overridden by the user. We will use it
24202       # for the tool.
24203 
24204       # First remove it from the list of overridden variables, so we can test
24205       # for unknown variables in the end.
24206       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
24207 
24208       # Check if we try to supply an empty value
24209       if test "x$XATTR" = x; then
24210         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool XATTR= (no value)" >&5
24211 $as_echo "$as_me: Setting user supplied tool XATTR= (no value)" >&6;}
24212         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5
24213 $as_echo_n "checking for XATTR... " >&6; }
24214         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
24215 $as_echo "disabled" >&6; }
24216       else
24217         # Check if the provided tool contains a complete path.
24218         tool_specified="$XATTR"
24219         tool_basename="${tool_specified##*/}"
24220         if test "x$tool_basename" = "x$tool_specified"; then
24221           # A command without a complete path is provided, search $PATH.
24222           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5
24223 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;}
24224           # Extract the first word of "$tool_basename", so it can be a program name with args.
24225 set dummy $tool_basename; ac_word=$2
24226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24227 $as_echo_n "checking for $ac_word... " >&6; }
24228 if ${ac_cv_path_XATTR+:} false; then :
24229   $as_echo_n "(cached) " >&6
24230 else
24231   case $XATTR in
24232   [\\/]* | ?:[\\/]*)
24233   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
24234   ;;
24235   *)
24236   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24237 for as_dir in $PATH
24238 do
24239   IFS=$as_save_IFS
24240   test -z "$as_dir" && as_dir=.
24241     for ac_exec_ext in '' $ac_executable_extensions; do
24242   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24243     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
24244     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24245     break 2
24246   fi
24247 done
24248   done
24249 IFS=$as_save_IFS
24250 
24251   ;;
24252 esac
24253 fi
24254 XATTR=$ac_cv_path_XATTR
24255 if test -n "$XATTR"; then
24256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
24257 $as_echo "$XATTR" >&6; }
24258 else
24259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24260 $as_echo "no" >&6; }
24261 fi
24262 
24263 
24264           if test "x$XATTR" = x; then
24265             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
24266           fi
24267         else
24268           # Otherwise we believe it is a complete path. Use it as it is.
24269           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5
24270 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;}
24271           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5
24272 $as_echo_n "checking for XATTR... " >&6; }
24273           if test ! -x "$tool_specified"; then
24274             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24275 $as_echo "not found" >&6; }
24276             as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5
24277           fi
24278           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
24279 $as_echo "$tool_specified" >&6; }
24280         fi
24281       fi
24282     fi
24283 
24284   fi
24285 
24286 
24287 
24288   if test "x$XATTR" = x; then
24289     as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5
24290   fi
24291 
24292 
24293 
24294 
24295   # Publish this variable in the help.
24296 
24297 
24298   if [ -z "${CODESIGN+x}" ]; then
24299     # The variable is not set by user, try to locate tool using the code snippet
24300     for ac_prog in codesign
24301 do
24302   # Extract the first word of "$ac_prog", so it can be a program name with args.
24303 set dummy $ac_prog; ac_word=$2
24304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24305 $as_echo_n "checking for $ac_word... " >&6; }
24306 if ${ac_cv_path_CODESIGN+:} false; then :
24307   $as_echo_n "(cached) " >&6
24308 else
24309   case $CODESIGN in
24310   [\\/]* | ?:[\\/]*)
24311   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
24312   ;;
24313   *)
24314   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24315 for as_dir in $PATH
24316 do
24317   IFS=$as_save_IFS
24318   test -z "$as_dir" && as_dir=.
24319     for ac_exec_ext in '' $ac_executable_extensions; do
24320   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24321     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
24322     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24323     break 2
24324   fi
24325 done
24326   done
24327 IFS=$as_save_IFS
24328 
24329   ;;
24330 esac
24331 fi
24332 CODESIGN=$ac_cv_path_CODESIGN
24333 if test -n "$CODESIGN"; then
24334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
24335 $as_echo "$CODESIGN" >&6; }
24336 else
24337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24338 $as_echo "no" >&6; }
24339 fi
24340 
24341 
24342   test -n "$CODESIGN" && break
24343 done
24344 
24345   else
24346     # The variable is set, but is it from the command line or the environment?
24347 
24348     # Try to remove the string !CODESIGN! from our list.
24349     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/}
24350     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
24351       # If it failed, the variable was not from the command line. Ignore it,
24352       # but warn the user (except for BASH, which is always set by the calling BASH).
24353       if test "xCODESIGN" != xBASH; then
24354         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5
24355 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;}
24356       fi
24357       # Try to locate tool using the code snippet
24358       for ac_prog in codesign
24359 do
24360   # Extract the first word of "$ac_prog", so it can be a program name with args.
24361 set dummy $ac_prog; ac_word=$2
24362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24363 $as_echo_n "checking for $ac_word... " >&6; }
24364 if ${ac_cv_path_CODESIGN+:} false; then :
24365   $as_echo_n "(cached) " >&6
24366 else
24367   case $CODESIGN in
24368   [\\/]* | ?:[\\/]*)
24369   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
24370   ;;
24371   *)
24372   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24373 for as_dir in $PATH
24374 do
24375   IFS=$as_save_IFS
24376   test -z "$as_dir" && as_dir=.
24377     for ac_exec_ext in '' $ac_executable_extensions; do
24378   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24379     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
24380     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24381     break 2
24382   fi
24383 done
24384   done
24385 IFS=$as_save_IFS
24386 
24387   ;;
24388 esac
24389 fi
24390 CODESIGN=$ac_cv_path_CODESIGN
24391 if test -n "$CODESIGN"; then
24392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
24393 $as_echo "$CODESIGN" >&6; }
24394 else
24395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24396 $as_echo "no" >&6; }
24397 fi
24398 
24399 
24400   test -n "$CODESIGN" && break
24401 done
24402 
24403     else
24404       # If it succeeded, then it was overridden by the user. We will use it
24405       # for the tool.
24406 
24407       # First remove it from the list of overridden variables, so we can test
24408       # for unknown variables in the end.
24409       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
24410 
24411       # Check if we try to supply an empty value
24412       if test "x$CODESIGN" = x; then
24413         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CODESIGN= (no value)" >&5
24414 $as_echo "$as_me: Setting user supplied tool CODESIGN= (no value)" >&6;}
24415         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5
24416 $as_echo_n "checking for CODESIGN... " >&6; }
24417         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
24418 $as_echo "disabled" >&6; }
24419       else
24420         # Check if the provided tool contains a complete path.
24421         tool_specified="$CODESIGN"
24422         tool_basename="${tool_specified##*/}"
24423         if test "x$tool_basename" = "x$tool_specified"; then
24424           # A command without a complete path is provided, search $PATH.
24425           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5
24426 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;}
24427           # Extract the first word of "$tool_basename", so it can be a program name with args.
24428 set dummy $tool_basename; ac_word=$2
24429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24430 $as_echo_n "checking for $ac_word... " >&6; }
24431 if ${ac_cv_path_CODESIGN+:} false; then :
24432   $as_echo_n "(cached) " >&6
24433 else
24434   case $CODESIGN in
24435   [\\/]* | ?:[\\/]*)
24436   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
24437   ;;
24438   *)
24439   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24440 for as_dir in $PATH
24441 do
24442   IFS=$as_save_IFS
24443   test -z "$as_dir" && as_dir=.
24444     for ac_exec_ext in '' $ac_executable_extensions; do
24445   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24446     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
24447     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24448     break 2
24449   fi
24450 done
24451   done
24452 IFS=$as_save_IFS
24453 
24454   ;;
24455 esac
24456 fi
24457 CODESIGN=$ac_cv_path_CODESIGN
24458 if test -n "$CODESIGN"; then
24459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
24460 $as_echo "$CODESIGN" >&6; }
24461 else
24462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24463 $as_echo "no" >&6; }
24464 fi
24465 
24466 
24467           if test "x$CODESIGN" = x; then
24468             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
24469           fi
24470         else
24471           # Otherwise we believe it is a complete path. Use it as it is.
24472           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5
24473 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;}
24474           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5
24475 $as_echo_n "checking for CODESIGN... " >&6; }
24476           if test ! -x "$tool_specified"; then
24477             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24478 $as_echo "not found" >&6; }
24479             as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5
24480           fi
24481           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
24482 $as_echo "$tool_specified" >&6; }
24483         fi
24484       fi
24485     fi
24486 
24487   fi
24488 
24489 
24490     if test "x$CODESIGN" != "x"; then
24491       # Verify that the openjdk_codesign certificate is present
24492       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5
24493 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; }
24494       $RM codesign-testfile
24495       $TOUCH codesign-testfile
24496       $CODESIGN -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN=
24497       $RM codesign-testfile
24498       if test "x$CODESIGN" = x; then
24499         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24500 $as_echo "no" >&6; }
24501       else
24502         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24503 $as_echo "yes" >&6; }
24504       fi
24505     fi
24506 
24507 
24508 
24509   # Publish this variable in the help.
24510 
24511 
24512   if [ -z "${SETFILE+x}" ]; then
24513     # The variable is not set by user, try to locate tool using the code snippet
24514     for ac_prog in SetFile
24515 do
24516   # Extract the first word of "$ac_prog", so it can be a program name with args.
24517 set dummy $ac_prog; ac_word=$2
24518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24519 $as_echo_n "checking for $ac_word... " >&6; }
24520 if ${ac_cv_path_SETFILE+:} false; then :
24521   $as_echo_n "(cached) " >&6
24522 else
24523   case $SETFILE in
24524   [\\/]* | ?:[\\/]*)
24525   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
24526   ;;
24527   *)
24528   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24529 for as_dir in $PATH
24530 do
24531   IFS=$as_save_IFS
24532   test -z "$as_dir" && as_dir=.
24533     for ac_exec_ext in '' $ac_executable_extensions; do
24534   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24535     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
24536     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24537     break 2
24538   fi
24539 done
24540   done
24541 IFS=$as_save_IFS
24542 
24543   ;;
24544 esac
24545 fi
24546 SETFILE=$ac_cv_path_SETFILE
24547 if test -n "$SETFILE"; then
24548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
24549 $as_echo "$SETFILE" >&6; }
24550 else
24551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24552 $as_echo "no" >&6; }
24553 fi
24554 
24555 
24556   test -n "$SETFILE" && break
24557 done
24558 
24559   else
24560     # The variable is set, but is it from the command line or the environment?
24561 
24562     # Try to remove the string !SETFILE! from our list.
24563     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/}
24564     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
24565       # If it failed, the variable was not from the command line. Ignore it,
24566       # but warn the user (except for BASH, which is always set by the calling BASH).
24567       if test "xSETFILE" != xBASH; then
24568         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5
24569 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;}
24570       fi
24571       # Try to locate tool using the code snippet
24572       for ac_prog in SetFile
24573 do
24574   # Extract the first word of "$ac_prog", so it can be a program name with args.
24575 set dummy $ac_prog; ac_word=$2
24576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24577 $as_echo_n "checking for $ac_word... " >&6; }
24578 if ${ac_cv_path_SETFILE+:} false; then :
24579   $as_echo_n "(cached) " >&6
24580 else
24581   case $SETFILE in
24582   [\\/]* | ?:[\\/]*)
24583   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
24584   ;;
24585   *)
24586   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24587 for as_dir in $PATH
24588 do
24589   IFS=$as_save_IFS
24590   test -z "$as_dir" && as_dir=.
24591     for ac_exec_ext in '' $ac_executable_extensions; do
24592   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24593     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
24594     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24595     break 2
24596   fi
24597 done
24598   done
24599 IFS=$as_save_IFS
24600 
24601   ;;
24602 esac
24603 fi
24604 SETFILE=$ac_cv_path_SETFILE
24605 if test -n "$SETFILE"; then
24606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
24607 $as_echo "$SETFILE" >&6; }
24608 else
24609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24610 $as_echo "no" >&6; }
24611 fi
24612 
24613 
24614   test -n "$SETFILE" && break
24615 done
24616 
24617     else
24618       # If it succeeded, then it was overridden by the user. We will use it
24619       # for the tool.
24620 
24621       # First remove it from the list of overridden variables, so we can test
24622       # for unknown variables in the end.
24623       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
24624 
24625       # Check if we try to supply an empty value
24626       if test "x$SETFILE" = x; then
24627         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SETFILE= (no value)" >&5
24628 $as_echo "$as_me: Setting user supplied tool SETFILE= (no value)" >&6;}
24629         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5
24630 $as_echo_n "checking for SETFILE... " >&6; }
24631         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
24632 $as_echo "disabled" >&6; }
24633       else
24634         # Check if the provided tool contains a complete path.
24635         tool_specified="$SETFILE"
24636         tool_basename="${tool_specified##*/}"
24637         if test "x$tool_basename" = "x$tool_specified"; then
24638           # A command without a complete path is provided, search $PATH.
24639           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5
24640 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;}
24641           # Extract the first word of "$tool_basename", so it can be a program name with args.
24642 set dummy $tool_basename; ac_word=$2
24643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24644 $as_echo_n "checking for $ac_word... " >&6; }
24645 if ${ac_cv_path_SETFILE+:} false; then :
24646   $as_echo_n "(cached) " >&6
24647 else
24648   case $SETFILE in
24649   [\\/]* | ?:[\\/]*)
24650   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
24651   ;;
24652   *)
24653   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24654 for as_dir in $PATH
24655 do
24656   IFS=$as_save_IFS
24657   test -z "$as_dir" && as_dir=.
24658     for ac_exec_ext in '' $ac_executable_extensions; do
24659   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24660     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
24661     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24662     break 2
24663   fi
24664 done
24665   done
24666 IFS=$as_save_IFS
24667 
24668   ;;
24669 esac
24670 fi
24671 SETFILE=$ac_cv_path_SETFILE
24672 if test -n "$SETFILE"; then
24673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
24674 $as_echo "$SETFILE" >&6; }
24675 else
24676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24677 $as_echo "no" >&6; }
24678 fi
24679 
24680 
24681           if test "x$SETFILE" = x; then
24682             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
24683           fi
24684         else
24685           # Otherwise we believe it is a complete path. Use it as it is.
24686           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5
24687 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;}
24688           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5
24689 $as_echo_n "checking for SETFILE... " >&6; }
24690           if test ! -x "$tool_specified"; then
24691             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24692 $as_echo "not found" >&6; }
24693             as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5
24694           fi
24695           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
24696 $as_echo "$tool_specified" >&6; }
24697         fi
24698       fi
24699     fi
24700 
24701   fi
24702 
24703 
24704 
24705   if test "x$SETFILE" = x; then
24706     as_fn_error $? "Could not find required tool for SETFILE" "$LINENO" 5
24707   fi
24708 
24709 
24710   fi
24711 
24712 
24713   # Check bash version
24714   # Extra [ ] to stop m4 mangling
24715    BASH_VER=`$BASH --version | $SED -n  -e 's/^.*bash.*ersion *\([0-9.]*\).*$/\1/ p'`
24716   { $as_echo "$as_me:${as_lineno-$LINENO}: checking bash version" >&5
24717 $as_echo_n "checking bash version... " >&6; }
24718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH_VER" >&5
24719 $as_echo "$BASH_VER" >&6; }
24720 
24721   BASH_MAJOR=`$ECHO $BASH_VER | $CUT -d . -f 1`
24722   BASH_MINOR=`$ECHO $BASH_VER | $CUT -d . -f 2`
24723   if test $BASH_MAJOR -lt 3 || (test $BASH_MAJOR -eq 3 && test $BASH_MINOR -lt 2); then
24724     as_fn_error $? "bash version 3.2 or better is required" "$LINENO" 5
24725   fi
24726 
24727   # Test if bash supports pipefail.
24728   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports pipefail" >&5
24729 $as_echo_n "checking if bash supports pipefail... " >&6; }
24730   if ${BASH} -c 'set -o pipefail'; then
24731     BASH_ARGS="$BASH_ARGS -o pipefail"
24732     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24733 $as_echo "yes" >&6; }
24734   else
24735     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24736 $as_echo "no" >&6; }
24737   fi
24738 
24739   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports errexit (-e)" >&5
24740 $as_echo_n "checking if bash supports errexit (-e)... " >&6; }
24741   if ${BASH} -e -c 'true'; then
24742     BASH_ARGS="$BASH_ARGS -e"
24743     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24744 $as_echo "yes" >&6; }
24745   else
24746     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24747 $as_echo "no" >&6; }
24748   fi
24749 
24750 
24751 
24752 
24753 # Check if pkg-config is available.
24754 
24755 
24756 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
24757         if test -n "$ac_tool_prefix"; then
24758   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24759 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24761 $as_echo_n "checking for $ac_word... " >&6; }
24762 if ${ac_cv_path_PKG_CONFIG+:} false; then :
24763   $as_echo_n "(cached) " >&6
24764 else
24765   case $PKG_CONFIG in
24766   [\\/]* | ?:[\\/]*)
24767   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24768   ;;
24769   *)
24770   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24771 for as_dir in $PATH
24772 do
24773   IFS=$as_save_IFS
24774   test -z "$as_dir" && as_dir=.
24775     for ac_exec_ext in '' $ac_executable_extensions; do
24776   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24777     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24778     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24779     break 2
24780   fi
24781 done
24782   done
24783 IFS=$as_save_IFS
24784 
24785   ;;
24786 esac
24787 fi
24788 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24789 if test -n "$PKG_CONFIG"; then
24790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
24791 $as_echo "$PKG_CONFIG" >&6; }
24792 else
24793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24794 $as_echo "no" >&6; }
24795 fi
24796 
24797 
24798 fi
24799 if test -z "$ac_cv_path_PKG_CONFIG"; then
24800   ac_pt_PKG_CONFIG=$PKG_CONFIG
24801   # Extract the first word of "pkg-config", so it can be a program name with args.
24802 set dummy pkg-config; ac_word=$2
24803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24804 $as_echo_n "checking for $ac_word... " >&6; }
24805 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
24806   $as_echo_n "(cached) " >&6
24807 else
24808   case $ac_pt_PKG_CONFIG in
24809   [\\/]* | ?:[\\/]*)
24810   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
24811   ;;
24812   *)
24813   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24814 for as_dir in $PATH
24815 do
24816   IFS=$as_save_IFS
24817   test -z "$as_dir" && as_dir=.
24818     for ac_exec_ext in '' $ac_executable_extensions; do
24819   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24820     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24821     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24822     break 2
24823   fi
24824 done
24825   done
24826 IFS=$as_save_IFS
24827 
24828   ;;
24829 esac
24830 fi
24831 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
24832 if test -n "$ac_pt_PKG_CONFIG"; then
24833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
24834 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
24835 else
24836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24837 $as_echo "no" >&6; }
24838 fi
24839 
24840   if test "x$ac_pt_PKG_CONFIG" = x; then
24841     PKG_CONFIG=""
24842   else
24843     case $cross_compiling:$ac_tool_warned in
24844 yes:)
24845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24846 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24847 ac_tool_warned=yes ;;
24848 esac
24849     PKG_CONFIG=$ac_pt_PKG_CONFIG
24850   fi
24851 else
24852   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
24853 fi
24854 
24855 fi
24856 if test -n "$PKG_CONFIG"; then
24857         _pkg_min_version=0.9.0
24858         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
24859 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
24860         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
24861                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24862 $as_echo "yes" >&6; }
24863         else
24864                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24865 $as_echo "no" >&6; }
24866                 PKG_CONFIG=""
24867         fi
24868 
24869 fi
24870 
24871 # After basic tools have been setup, we can check build os specific details.
24872 
24873   ###############################################################################
24874 
24875   # Note that this is the build platform OS version!
24876 
24877   OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`"
24878   OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`"
24879   OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`"
24880   OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`"
24881 
24882 
24883 
24884 
24885 
24886 # Misc basic settings
24887 
24888 
24889 # Check whether --with-default-make-target was given.
24890 if test "${with_default_make_target+set}" = set; then :
24891   withval=$with_default_make_target;
24892 fi
24893 
24894   if test "x$with_default_make_target" = "x" \
24895       || test "x$with_default_make_target" = "xyes"; then
24896     DEFAULT_MAKE_TARGET="exploded-image"
24897   elif test "x$with_default_make_target" = "xno"; then
24898     as_fn_error $? "--without-default-make-target is not a valid option" "$LINENO" 5
24899   else
24900     DEFAULT_MAKE_TARGET="$with_default_make_target"
24901   fi
24902 
24903 
24904 
24905 
24906 ###############################################################################
24907 #
24908 # Determine OpenJDK variants, options and version numbers.
24909 #
24910 ###############################################################################
24911 
24912 # We need build & target for this.
24913 
24914   # Should we build a JDK without a graphical UI?
24915   { $as_echo "$as_me:${as_lineno-$LINENO}: checking headless only" >&5
24916 $as_echo_n "checking headless only... " >&6; }
24917   # Check whether --enable-headless-only was given.
24918 if test "${enable_headless_only+set}" = set; then :
24919   enableval=$enable_headless_only;
24920 fi
24921 
24922 
24923   if test "x$enable_headless_only" = "xyes"; then
24924     ENABLE_HEADLESS_ONLY="true"
24925     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24926 $as_echo "yes" >&6; }
24927   elif test "x$enable_headless_only" = "xno"; then
24928     ENABLE_HEADLESS_ONLY="false"
24929     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24930 $as_echo "no" >&6; }
24931   elif test "x$enable_headless_only" = "x"; then
24932     ENABLE_HEADLESS_ONLY="false"
24933     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24934 $as_echo "no" >&6; }
24935   else
24936     as_fn_error $? "--enable-headless-only can only take yes or no" "$LINENO" 5
24937   fi
24938 
24939 
24940 
24941   # Should we build the complete docs, or just a lightweight version?
24942   # Check whether --enable-full-docs was given.
24943 if test "${enable_full_docs+set}" = set; then :
24944   enableval=$enable_full_docs;
24945 fi
24946 
24947 
24948   # Verify dependencies
24949   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for graphviz dot" >&5
24950 $as_echo_n "checking for graphviz dot... " >&6; }
24951   if test "x$DOT" != "x"; then
24952     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24953 $as_echo "yes" >&6; }
24954   else
24955     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, cannot generate full docs" >&5
24956 $as_echo "no, cannot generate full docs" >&6; }
24957     FULL_DOCS_DEP_MISSING=true
24958   fi
24959 
24960   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pandoc" >&5
24961 $as_echo_n "checking for pandoc... " >&6; }
24962   if test "x$PANDOC" != "x"; then
24963     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24964 $as_echo "yes" >&6; }
24965   else
24966     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, cannot generate full docs" >&5
24967 $as_echo "no, cannot generate full docs" >&6; }
24968     FULL_DOCS_DEP_MISSING=true
24969   fi
24970 
24971   { $as_echo "$as_me:${as_lineno-$LINENO}: checking full docs" >&5
24972 $as_echo_n "checking full docs... " >&6; }
24973   if test "x$enable_full_docs" = xyes; then
24974     if test "x$FULL_DOCS_DEP_MISSING" = "xtrue"; then
24975       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, missing dependencies" >&5
24976 $as_echo "no, missing dependencies" >&6; }
24977 
24978   # Print a helpful message on how to acquire the necessary build dependency.
24979   # dot is the help tag: freetype, cups, alsa etc
24980   MISSING_DEPENDENCY=dot
24981 
24982   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24983     cygwin_help $MISSING_DEPENDENCY
24984   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24985     msys_help $MISSING_DEPENDENCY
24986   else
24987     PKGHANDLER_COMMAND=
24988 
24989     case $PKGHANDLER in
24990       apt-get)
24991         apt_help     $MISSING_DEPENDENCY ;;
24992       yum)
24993         yum_help     $MISSING_DEPENDENCY ;;
24994       brew)
24995         brew_help    $MISSING_DEPENDENCY ;;
24996       port)
24997         port_help    $MISSING_DEPENDENCY ;;
24998       pkgutil)
24999         pkgutil_help $MISSING_DEPENDENCY ;;
25000       pkgadd)
25001         pkgadd_help  $MISSING_DEPENDENCY ;;
25002     esac
25003 
25004     if test "x$PKGHANDLER_COMMAND" != x; then
25005       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
25006     fi
25007   fi
25008 
25009       as_fn_error $? "Cannot enable full docs with missing dependencies. See above. $HELP_MSG" "$LINENO" 5
25010     else
25011       ENABLE_FULL_DOCS=true
25012       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5
25013 $as_echo "yes, forced" >&6; }
25014     fi
25015   elif test "x$enable_full_docs" = xno; then
25016     ENABLE_FULL_DOCS=false
25017     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5
25018 $as_echo "no, forced" >&6; }
25019   elif test "x$enable_full_docs" = x; then
25020     # Check for prerequisites
25021     if test "x$FULL_DOCS_DEP_MISSING" = xtrue; then
25022       ENABLE_FULL_DOCS=false
25023       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, missing dependencies" >&5
25024 $as_echo "no, missing dependencies" >&6; }
25025     else
25026       ENABLE_FULL_DOCS=true
25027       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, dependencies present" >&5
25028 $as_echo "yes, dependencies present" >&6; }
25029     fi
25030   else
25031     as_fn_error $? "--enable-full-docs can only take yes or no" "$LINENO" 5
25032   fi
25033 
25034 
25035 
25036   # Choose cacerts source file
25037 
25038 # Check whether --with-cacerts-file was given.
25039 if test "${with_cacerts_file+set}" = set; then :
25040   withval=$with_cacerts_file;
25041 fi
25042 
25043   if test "x$with_cacerts_file" != x; then
25044     CACERTS_FILE=$with_cacerts_file
25045   fi
25046 
25047 
25048   # Enable or disable unlimited crypto
25049   # Check whether --enable-unlimited-crypto was given.
25050 if test "${enable_unlimited_crypto+set}" = set; then :
25051   enableval=$enable_unlimited_crypto;
25052 else
25053   enable_unlimited_crypto=yes
25054 fi
25055 
25056   if test "x$enable_unlimited_crypto" = "xyes"; then
25057     UNLIMITED_CRYPTO=true
25058   else
25059     UNLIMITED_CRYPTO=false
25060   fi
25061 
25062 
25063   # Should we build the serviceability agent (SA)?
25064   INCLUDE_SA=true
25065   if   [[ " $JVM_VARIANTS " =~ " zero " ]]   ||   [[ " $JVM_VARIANTS " =~ " zeroshark " ]]  ; then
25066     INCLUDE_SA=false
25067   fi
25068   if test "x$OPENJDK_TARGET_OS" = xaix ; then
25069     INCLUDE_SA=false
25070   fi
25071 
25072 
25073   # Compress jars
25074   COMPRESS_JARS=false
25075 
25076 
25077 
25078   # Setup default copyright year. Mostly overridden when building close to a new year.
25079 
25080 # Check whether --with-copyright-year was given.
25081 if test "${with_copyright_year+set}" = set; then :
25082   withval=$with_copyright_year;
25083 fi
25084 
25085   if test "x$with_copyright_year" = xyes; then
25086     as_fn_error $? "Copyright year must have a value" "$LINENO" 5
25087   elif test "x$with_copyright_year" != x; then
25088     COPYRIGHT_YEAR="$with_copyright_year"
25089   else
25090     COPYRIGHT_YEAR=`$DATE +'%Y'`
25091   fi
25092 
25093 
25094 
25095   # Check whether --enable-keep-packaged-modules was given.
25096 if test "${enable_keep_packaged_modules+set}" = set; then :
25097   enableval=$enable_keep_packaged_modules;
25098 fi
25099 
25100 
25101   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if packaged modules are kept" >&5
25102 $as_echo_n "checking if packaged modules are kept... " >&6; }
25103   if test "x$enable_keep_packaged_modules" = "xyes"; then
25104     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25105 $as_echo "yes" >&6; }
25106     JLINK_KEEP_PACKAGED_MODULES=true
25107   elif test "x$enable_keep_packaged_modules" = "xno"; then
25108     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25109 $as_echo "no" >&6; }
25110     JLINK_KEEP_PACKAGED_MODULES=false
25111   elif test "x$enable_keep_packaged_modules" = "x"; then
25112     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5
25113 $as_echo "yes (default)" >&6; }
25114     JLINK_KEEP_PACKAGED_MODULES=true
25115   else
25116     { $as_echo "$as_me:${as_lineno-$LINENO}: result: error" >&5
25117 $as_echo "error" >&6; }
25118     as_fn_error $? "--enable-keep-packaged-modules accepts no argument" "$LINENO" 5
25119   fi
25120 
25121 
25122 
25123 
25124   # Warn user that old version arguments are deprecated.
25125 
25126 
25127 # Check whether --with-milestone was given.
25128 if test "${with_milestone+set}" = set; then :
25129   withval=$with_milestone; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-milestone is deprecated and will be ignored." >&5
25130 $as_echo "$as_me: WARNING: Option --with-milestone is deprecated and will be ignored." >&2;}
25131 fi
25132 
25133 
25134 
25135 
25136 # Check whether --with-update-version was given.
25137 if test "${with_update_version+set}" = set; then :
25138   withval=$with_update_version; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-update-version is deprecated and will be ignored." >&5
25139 $as_echo "$as_me: WARNING: Option --with-update-version is deprecated and will be ignored." >&2;}
25140 fi
25141 
25142 
25143 
25144 
25145 # Check whether --with-user-release-suffix was given.
25146 if test "${with_user_release_suffix+set}" = set; then :
25147   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
25148 $as_echo "$as_me: WARNING: Option --with-user-release-suffix is deprecated and will be ignored." >&2;}
25149 fi
25150 
25151 
25152 
25153 
25154 # Check whether --with-build-number was given.
25155 if test "${with_build_number+set}" = set; then :
25156   withval=$with_build_number; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-build-number is deprecated and will be ignored." >&5
25157 $as_echo "$as_me: WARNING: Option --with-build-number is deprecated and will be ignored." >&2;}
25158 fi
25159 
25160 
25161 
25162   # Source the version numbers file
25163   . $AUTOCONF_DIR/version-numbers
25164 
25165   # Some non-version number information is set in that file
25166 
25167 
25168 
25169 
25170 
25171 
25172 
25173 
25174 
25175   # Override version from arguments
25176 
25177   # If --with-version-string is set, process it first. It is possible to
25178   # override parts with more specific flags, since these are processed later.
25179 
25180 # Check whether --with-version-string was given.
25181 if test "${with_version_string+set}" = set; then :
25182   withval=$with_version_string;
25183 fi
25184 
25185   if test "x$with_version_string" = xyes; then
25186     as_fn_error $? "--with-version-string must have a value" "$LINENO" 5
25187   elif test "x$with_version_string" != x; then
25188     # Additional [] needed to keep m4 from mangling shell constructs.
25189     if  [[ $with_version_string =~ ^([0-9]+)(\.([0-9]+))?(\.([0-9]+))?(\.([0-9]+))?(-([a-zA-Z]+))?((\+)([0-9]+)?(-([-a-zA-Z0-9.]+))?)?$ ]] ; then
25190       VERSION_MAJOR=${BASH_REMATCH[1]}
25191       VERSION_MINOR=${BASH_REMATCH[3]}
25192       VERSION_SECURITY=${BASH_REMATCH[5]}
25193       VERSION_PATCH=${BASH_REMATCH[7]}
25194       VERSION_PRE=${BASH_REMATCH[9]}
25195       version_plus_separator=${BASH_REMATCH[11]}
25196       VERSION_BUILD=${BASH_REMATCH[12]}
25197       VERSION_OPT=${BASH_REMATCH[14]}
25198       # Unspecified numerical fields are interpreted as 0.
25199       if test "x$VERSION_MINOR" = x; then
25200         VERSION_MINOR=0
25201       fi
25202       if test "x$VERSION_SECURITY" = x; then
25203         VERSION_SECURITY=0
25204       fi
25205       if test "x$VERSION_PATCH" = x; then
25206         VERSION_PATCH=0
25207       fi
25208       if test "x$version_plus_separator" != x \
25209           && test "x$VERSION_BUILD$VERSION_OPT" = x; then
25210         as_fn_error $? "Version string contains + but both 'BUILD' and 'OPT' are missing" "$LINENO" 5
25211       fi
25212       # Stop the version part process from setting default values.
25213       # We still allow them to explicitly override though.
25214       NO_DEFAULT_VERSION_PARTS=true
25215     else
25216       as_fn_error $? "--with-version-string fails to parse as a valid version string: $with_version_string" "$LINENO" 5
25217     fi
25218   fi
25219 
25220 
25221 # Check whether --with-version-pre was given.
25222 if test "${with_version_pre+set}" = set; then :
25223   withval=$with_version_pre; with_version_pre_present=true
25224 else
25225   with_version_pre_present=false
25226 fi
25227 
25228 
25229   if test "x$with_version_pre_present" = xtrue; then
25230     if test "x$with_version_pre" = xyes; then
25231       as_fn_error $? "--with-version-pre must have a value" "$LINENO" 5
25232     elif test "x$with_version_pre" = xno; then
25233       # Interpret --without-* as empty string instead of the literal "no"
25234       VERSION_PRE=
25235     else
25236       # Only [a-zA-Z] is allowed in the VERSION_PRE. Outer [ ] to quote m4.
25237        VERSION_PRE=`$ECHO "$with_version_pre" | $TR -c -d '[a-z][A-Z]'`
25238       if test "x$VERSION_PRE" != "x$with_version_pre"; then
25239         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-version-pre value has been sanitized from '$with_version_pre' to '$VERSION_PRE'" >&5
25240 $as_echo "$as_me: WARNING: --with-version-pre value has been sanitized from '$with_version_pre' to '$VERSION_PRE'" >&2;}
25241       fi
25242     fi
25243   else
25244     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
25245       # Default is to use "internal" as pre
25246       VERSION_PRE="internal"
25247     fi
25248   fi
25249 
25250 
25251 # Check whether --with-version-opt was given.
25252 if test "${with_version_opt+set}" = set; then :
25253   withval=$with_version_opt; with_version_opt_present=true
25254 else
25255   with_version_opt_present=false
25256 fi
25257 
25258 
25259   if test "x$with_version_opt_present" = xtrue; then
25260     if test "x$with_version_opt" = xyes; then
25261       as_fn_error $? "--with-version-opt must have a value" "$LINENO" 5
25262     elif test "x$with_version_opt" = xno; then
25263       # Interpret --without-* as empty string instead of the literal "no"
25264       VERSION_OPT=
25265     else
25266       # Only [-.a-zA-Z0-9] is allowed in the VERSION_OPT. Outer [ ] to quote m4.
25267        VERSION_OPT=`$ECHO "$with_version_opt" | $TR -c -d '[a-z][A-Z][0-9].-'`
25268       if test "x$VERSION_OPT" != "x$with_version_opt"; then
25269         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-version-opt value has been sanitized from '$with_version_opt' to '$VERSION_OPT'" >&5
25270 $as_echo "$as_me: WARNING: --with-version-opt value has been sanitized from '$with_version_opt' to '$VERSION_OPT'" >&2;}
25271       fi
25272     fi
25273   else
25274     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
25275       # Default is to calculate a string like this 'adhoc.<username>.<base dir name>'
25276       # Outer [ ] to quote m4.
25277        basedirname=`$BASENAME "$TOPDIR" | $TR -d -c '[a-z][A-Z][0-9].-'`
25278       VERSION_OPT="adhoc.$USERNAME.$basedirname"
25279     fi
25280   fi
25281 
25282 
25283 # Check whether --with-version-build was given.
25284 if test "${with_version_build+set}" = set; then :
25285   withval=$with_version_build; with_version_build_present=true
25286 else
25287   with_version_build_present=false
25288 fi
25289 
25290 
25291   if test "x$with_version_build_present" = xtrue; then
25292     if test "x$with_version_build" = xyes; then
25293       as_fn_error $? "--with-version-build must have a value" "$LINENO" 5
25294     elif test "x$with_version_build" = xno; then
25295       # Interpret --without-* as empty string instead of the literal "no"
25296       VERSION_BUILD=
25297     elif test "x$with_version_build" = x; then
25298       VERSION_BUILD=
25299     else
25300 
25301   # Additional [] needed to keep m4 from mangling shell constructs.
25302   if  ! [[ "$with_version_build" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
25303     as_fn_error $? "\"$with_version_build\" is not a valid numerical value for VERSION_BUILD" "$LINENO" 5
25304   fi
25305   # Extract the version number without leading zeros.
25306   cleaned_value=${BASH_REMATCH[1]}
25307   if test "x$cleaned_value" = x; then
25308     # Special case for zero
25309     cleaned_value=${BASH_REMATCH[2]}
25310   fi
25311 
25312   if test $cleaned_value -gt 255; then
25313     as_fn_error $? "VERSION_BUILD is given as $with_version_build. This is greater than 255 which is not allowed." "$LINENO" 5
25314   fi
25315   if test "x$cleaned_value" != "x$with_version_build"; then
25316     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_BUILD has been sanitized from '$with_version_build' to '$cleaned_value'" >&5
25317 $as_echo "$as_me: WARNING: Value for VERSION_BUILD has been sanitized from '$with_version_build' to '$cleaned_value'" >&2;}
25318   fi
25319   VERSION_BUILD=$cleaned_value
25320 
25321     fi
25322   else
25323     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
25324       # Default is to not have a build number.
25325       VERSION_BUILD=""
25326       # FIXME: Until all code can cope with an empty VERSION_BUILD, set it to 0.
25327       VERSION_BUILD=0
25328     fi
25329   fi
25330 
25331 
25332 # Check whether --with-version-major was given.
25333 if test "${with_version_major+set}" = set; then :
25334   withval=$with_version_major; with_version_major_present=true
25335 else
25336   with_version_major_present=false
25337 fi
25338 
25339 
25340   if test "x$with_version_major_present" = xtrue; then
25341     if test "x$with_version_major" = xyes; then
25342       as_fn_error $? "--with-version-major must have a value" "$LINENO" 5
25343     else
25344 
25345   # Additional [] needed to keep m4 from mangling shell constructs.
25346   if  ! [[ "$with_version_major" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
25347     as_fn_error $? "\"$with_version_major\" is not a valid numerical value for VERSION_MAJOR" "$LINENO" 5
25348   fi
25349   # Extract the version number without leading zeros.
25350   cleaned_value=${BASH_REMATCH[1]}
25351   if test "x$cleaned_value" = x; then
25352     # Special case for zero
25353     cleaned_value=${BASH_REMATCH[2]}
25354   fi
25355 
25356   if test $cleaned_value -gt 255; then
25357     as_fn_error $? "VERSION_MAJOR is given as $with_version_major. This is greater than 255 which is not allowed." "$LINENO" 5
25358   fi
25359   if test "x$cleaned_value" != "x$with_version_major"; then
25360     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_MAJOR has been sanitized from '$with_version_major' to '$cleaned_value'" >&5
25361 $as_echo "$as_me: WARNING: Value for VERSION_MAJOR has been sanitized from '$with_version_major' to '$cleaned_value'" >&2;}
25362   fi
25363   VERSION_MAJOR=$cleaned_value
25364 
25365     fi
25366   else
25367     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
25368       # Default is to get value from version-numbers
25369       VERSION_MAJOR="$DEFAULT_VERSION_MAJOR"
25370     fi
25371   fi
25372 
25373 
25374 # Check whether --with-version-minor was given.
25375 if test "${with_version_minor+set}" = set; then :
25376   withval=$with_version_minor; with_version_minor_present=true
25377 else
25378   with_version_minor_present=false
25379 fi
25380 
25381 
25382   if test "x$with_version_minor_present" = xtrue; then
25383     if test "x$with_version_minor" = xyes; then
25384       as_fn_error $? "--with-version-minor must have a value" "$LINENO" 5
25385     elif test "x$with_version_minor" = xno; then
25386       # Interpret --without-* as empty string (i.e. 0) instead of the literal "no"
25387       VERSION_MINOR=0
25388     elif test "x$with_version_minor" = x; then
25389       VERSION_MINOR=0
25390     else
25391 
25392   # Additional [] needed to keep m4 from mangling shell constructs.
25393   if  ! [[ "$with_version_minor" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
25394     as_fn_error $? "\"$with_version_minor\" is not a valid numerical value for VERSION_MINOR" "$LINENO" 5
25395   fi
25396   # Extract the version number without leading zeros.
25397   cleaned_value=${BASH_REMATCH[1]}
25398   if test "x$cleaned_value" = x; then
25399     # Special case for zero
25400     cleaned_value=${BASH_REMATCH[2]}
25401   fi
25402 
25403   if test $cleaned_value -gt 255; then
25404     as_fn_error $? "VERSION_MINOR is given as $with_version_minor. This is greater than 255 which is not allowed." "$LINENO" 5
25405   fi
25406   if test "x$cleaned_value" != "x$with_version_minor"; then
25407     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_MINOR has been sanitized from '$with_version_minor' to '$cleaned_value'" >&5
25408 $as_echo "$as_me: WARNING: Value for VERSION_MINOR has been sanitized from '$with_version_minor' to '$cleaned_value'" >&2;}
25409   fi
25410   VERSION_MINOR=$cleaned_value
25411 
25412     fi
25413   else
25414     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
25415       # Default is 0, if unspecified
25416       VERSION_MINOR=$DEFAULT_VERSION_MINOR
25417     fi
25418   fi
25419 
25420 
25421 # Check whether --with-version-security was given.
25422 if test "${with_version_security+set}" = set; then :
25423   withval=$with_version_security; with_version_security_present=true
25424 else
25425   with_version_security_present=false
25426 fi
25427 
25428 
25429   if test "x$with_version_security_present" = xtrue; then
25430     if test "x$with_version_security" = xyes; then
25431       as_fn_error $? "--with-version-security must have a value" "$LINENO" 5
25432     elif test "x$with_version_security" = xno; then
25433       # Interpret --without-* as empty string (i.e. 0) instead of the literal "no"
25434       VERSION_SECURITY=0
25435     elif test "x$with_version_security" = x; then
25436       VERSION_SECURITY=0
25437     else
25438 
25439   # Additional [] needed to keep m4 from mangling shell constructs.
25440   if  ! [[ "$with_version_security" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
25441     as_fn_error $? "\"$with_version_security\" is not a valid numerical value for VERSION_SECURITY" "$LINENO" 5
25442   fi
25443   # Extract the version number without leading zeros.
25444   cleaned_value=${BASH_REMATCH[1]}
25445   if test "x$cleaned_value" = x; then
25446     # Special case for zero
25447     cleaned_value=${BASH_REMATCH[2]}
25448   fi
25449 
25450   if test $cleaned_value -gt 255; then
25451     as_fn_error $? "VERSION_SECURITY is given as $with_version_security. This is greater than 255 which is not allowed." "$LINENO" 5
25452   fi
25453   if test "x$cleaned_value" != "x$with_version_security"; then
25454     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_SECURITY has been sanitized from '$with_version_security' to '$cleaned_value'" >&5
25455 $as_echo "$as_me: WARNING: Value for VERSION_SECURITY has been sanitized from '$with_version_security' to '$cleaned_value'" >&2;}
25456   fi
25457   VERSION_SECURITY=$cleaned_value
25458 
25459     fi
25460   else
25461     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
25462       # Default is 0, if unspecified
25463       VERSION_SECURITY=$DEFAULT_VERSION_SECURITY
25464     fi
25465   fi
25466 
25467 
25468 # Check whether --with-version-patch was given.
25469 if test "${with_version_patch+set}" = set; then :
25470   withval=$with_version_patch; with_version_patch_present=true
25471 else
25472   with_version_patch_present=false
25473 fi
25474 
25475 
25476   if test "x$with_version_patch_present" = xtrue; then
25477     if test "x$with_version_patch" = xyes; then
25478       as_fn_error $? "--with-version-patch must have a value" "$LINENO" 5
25479     elif test "x$with_version_patch" = xno; then
25480       # Interpret --without-* as empty string (i.e. 0) instead of the literal "no"
25481       VERSION_PATCH=0
25482     elif test "x$with_version_patch" = x; then
25483       VERSION_PATCH=0
25484     else
25485 
25486   # Additional [] needed to keep m4 from mangling shell constructs.
25487   if  ! [[ "$with_version_patch" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
25488     as_fn_error $? "\"$with_version_patch\" is not a valid numerical value for VERSION_PATCH" "$LINENO" 5
25489   fi
25490   # Extract the version number without leading zeros.
25491   cleaned_value=${BASH_REMATCH[1]}
25492   if test "x$cleaned_value" = x; then
25493     # Special case for zero
25494     cleaned_value=${BASH_REMATCH[2]}
25495   fi
25496 
25497   if test $cleaned_value -gt 255; then
25498     as_fn_error $? "VERSION_PATCH is given as $with_version_patch. This is greater than 255 which is not allowed." "$LINENO" 5
25499   fi
25500   if test "x$cleaned_value" != "x$with_version_patch"; then
25501     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_PATCH has been sanitized from '$with_version_patch' to '$cleaned_value'" >&5
25502 $as_echo "$as_me: WARNING: Value for VERSION_PATCH has been sanitized from '$with_version_patch' to '$cleaned_value'" >&2;}
25503   fi
25504   VERSION_PATCH=$cleaned_value
25505 
25506     fi
25507   else
25508     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
25509       # Default is 0, if unspecified
25510       VERSION_PATCH=$DEFAULT_VERSION_PATCH
25511     fi
25512   fi
25513 
25514   # Calculate derived version properties
25515 
25516   # Set VERSION_IS_GA based on if VERSION_PRE has a value
25517   if test "x$VERSION_PRE" = x; then
25518     VERS