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 CCACHE 633 USE_PRECOMPILED_HEADER 634 SJAVAC_SERVER_DIR 635 ENABLE_SJAVAC 636 SJAVAC_SERVER_JAVA 637 JOBS 638 MEMORY_SIZE 639 NUM_CORES 640 ENABLE_INTREE_EC 641 SALIB_NAME 642 HOTSPOT_MAKE_ARGS 643 MSVCR_DLL 644 LIBCXX 645 LLVM_LIBS 646 LLVM_LDFLAGS 647 LLVM_CFLAGS 648 LLVM_CONFIG 649 LIBFFI_LIBS 650 LIBFFI_CFLAGS 651 STATIC_CXX_SETTING 652 LIBDL 653 LIBM 654 LIBZIP_CAN_USE_MMAP 655 USE_EXTERNAL_LIBZ 656 USE_EXTERNAL_LIBPNG 657 PNG_LIBS 658 PNG_CFLAGS 659 USE_EXTERNAL_LIBGIF 660 USE_EXTERNAL_LIBJPEG 661 ALSA_LIBS 662 ALSA_CFLAGS 663 FREETYPE_BUNDLE_LIB_PATH 664 FREETYPE_LIBS 665 FREETYPE_CFLAGS 666 CUPS_CFLAGS 667 X_EXTRA_LIBS 668 X_LIBS 669 X_PRE_LIBS 670 X_CFLAGS 671 XMKMF 672 FIXPATH 673 ZIP_DEBUGINFO_FILES 674 ENABLE_DEBUG_SYMBOLS 675 CFLAGS_WARNINGS_ARE_ERRORS 676 COMPILER_SUPPORTS_TARGET_BITS_FLAG 677 ZERO_ARCHFLAG 678 LDFLAGS_CXX_JDK 679 LDFLAGS_JDKEXE_SUFFIX 680 LDFLAGS_JDKLIB_SUFFIX 681 LDFLAGS_JDKEXE 682 LDFLAGS_JDKLIB 683 CXXFLAGS_JDKEXE 684 CXXFLAGS_JDKLIB 685 CFLAGS_JDKEXE 686 CFLAGS_JDKLIB 687 MACOSX_VERSION_MIN 688 LEGACY_EXTRA_LDFLAGS 689 LEGACY_EXTRA_CXXFLAGS 690 LEGACY_EXTRA_CFLAGS 691 CXX_O_FLAG_NONE 692 CXX_O_FLAG_NORM 693 CXX_O_FLAG_HI 694 CXX_O_FLAG_HIGHEST 695 C_O_FLAG_NONE 696 C_O_FLAG_NORM 697 C_O_FLAG_HI 698 C_O_FLAG_HIGHEST 699 CXXFLAGS_DEBUG_SYMBOLS 700 CFLAGS_DEBUG_SYMBOLS 701 CXX_FLAG_DEPS 702 C_FLAG_DEPS 703 SET_SHARED_LIBRARY_MAPFILE 704 SET_SHARED_LIBRARY_NAME 705 SET_SHARED_LIBRARY_ORIGIN 706 SET_EXECUTABLE_ORIGIN 707 SHARED_LIBRARY_FLAGS 708 CXX_FLAG_REORDER 709 C_FLAG_REORDER 710 SYSROOT_LDFLAGS 711 SYSROOT_CFLAGS 712 RC_FLAGS 713 AR_OUT_OPTION 714 LD_OUT_OPTION 715 EXE_OUT_OPTION 716 CC_OUT_OPTION 717 POST_MCS_CMD 718 POST_STRIP_CMD 719 ARFLAGS 720 COMPILER_TARGET_BITS_FLAG 721 JT_HOME 722 JTREGEXE 723 USING_BROKEN_SUSE_LD 724 PACKAGE_PATH 725 LDEXECXX 726 LDEXE 727 USE_CLANG 728 HOTSPOT_LD 729 HOTSPOT_CXX 730 HOTSPOT_RC 731 HOTSPOT_MT 732 BUILD_LD 733 BUILD_CXX 734 BUILD_CC 735 ac_ct_OBJDUMP 736 OBJDUMP 737 ac_ct_OBJCOPY 738 OBJCOPY 739 ac_ct_NM 740 ac_ct_STRIP 741 MCS 742 GNM 743 NM 744 STRIP 745 DUMPBIN 746 RC 747 MT 748 LIPO 749 ac_ct_OBJC 750 OBJCFLAGS 751 OBJC 752 ac_ct_AR 753 AR 754 AS 755 LDCXX 756 LD 757 CXXCPP 758 CPP 759 ac_ct_CXX 760 CXXFLAGS 761 CXX 762 ac_ct_PROPER_COMPILER_CXX 763 PROPER_COMPILER_CXX 764 TOOLCHAIN_PATH_CXX 765 POTENTIAL_CXX 766 OBJEXT 767 EXEEXT 768 ac_ct_CC 769 CPPFLAGS 770 LDFLAGS 771 CFLAGS 772 CC 773 ac_ct_PROPER_COMPILER_CC 774 PROPER_COMPILER_CC 775 TOOLCHAIN_PATH_CC 776 POTENTIAL_CC 777 VS_PATH 778 VS_LIB 779 VS_INCLUDE 780 CYGWIN_LINK 781 EXE_SUFFIX 782 OBJ_SUFFIX 783 STATIC_LIBRARY 784 SHARED_LIBRARY 785 STATIC_LIBRARY_SUFFIX 786 SHARED_LIBRARY_SUFFIX 787 LIBRARY_PREFIX 788 TOOLCHAIN_TYPE 789 BUILD_HOTSPOT 790 HOTSPOT_DIST 791 BUILD_OUTPUT 792 OVERRIDE_SRC_ROOT 793 ADD_SRC_ROOT 794 JDK_TOPDIR 795 NASHORN_TOPDIR 796 HOTSPOT_TOPDIR 797 JAXWS_TOPDIR 798 JAXP_TOPDIR 799 CORBA_TOPDIR 800 LANGTOOLS_TOPDIR 801 JAVA_FLAGS_SMALL 802 JAVA_FLAGS_BIG 803 JAVA_FLAGS 804 JAVAC_FLAGS 805 BOOT_JDK_SOURCETARGET 806 JARSIGNER 807 NATIVE2ASCII 808 JAR 809 JAVAH 810 JAVAC 811 JAVA 812 BOOT_JDK 813 BOOT_TOOLSJAR 814 BOOT_RTJAR 815 JAVA_CHECK 816 JAVAC_CHECK 817 COOKED_BUILD_NUMBER 818 JDK_VERSION 819 COPYRIGHT_YEAR 820 MACOSX_BUNDLE_ID_BASE 821 MACOSX_BUNDLE_NAME_BASE 822 COMPANY_NAME 823 JDK_RC_PLATFORM_NAME 824 PRODUCT_SUFFIX 825 PRODUCT_NAME 826 LAUNCHER_NAME 827 MILESTONE 828 JDK_BUILD_NUMBER 829 JDK_UPDATE_VERSION 830 JDK_MICRO_VERSION 831 JDK_MINOR_VERSION 832 JDK_MAJOR_VERSION 833 USER_RELEASE_SUFFIX 834 COMPRESS_JARS 835 RMICONNECTOR_IIOP 836 UNLIMITED_CRYPTO 837 CACERTS_FILE 838 TEST_IN_BUILD 839 BUILD_HEADLESS 840 SUPPORT_HEADFUL 841 SUPPORT_HEADLESS 842 BDEPS_FTP 843 BDEPS_UNZIP 844 OS_VERSION_MICRO 845 OS_VERSION_MINOR 846 OS_VERSION_MAJOR 847 PKG_CONFIG 848 CODESIGN 849 XATTR 850 DSYMUTIL 851 IS_GNU_TIME 852 TIME 853 STAT 854 HG 855 READELF 856 OTOOL 857 LDD 858 ZIP 859 UNZIP 860 FIND_DELETE 861 MAKE 862 CHECK_TOOLSDIR_MAKE 863 CHECK_TOOLSDIR_GMAKE 864 CHECK_MAKE 865 CHECK_GMAKE 866 PKGHANDLER 867 OUTPUT_ROOT 868 CONF_NAME 869 SPEC 870 BUILD_VARIANT_RELEASE 871 DEBUG_CLASSFILES 872 FASTDEBUG 873 VARIANT 874 DEBUG_LEVEL 875 MACOSX_UNIVERSAL 876 INCLUDE_SA 877 JVM_VARIANT_CORE 878 JVM_VARIANT_ZEROSHARK 879 JVM_VARIANT_ZERO 880 JVM_VARIANT_KERNEL 881 JVM_VARIANT_MINIMAL1 882 JVM_VARIANT_CLIENT 883 JVM_VARIANT_SERVER 884 JVM_VARIANTS 885 JVM_INTERPRETER 886 JDK_VARIANT 887 SET_OPENJDK 888 BUILD_LOG_WRAPPER 889 BUILD_LOG_PREVIOUS 890 BUILD_LOG 891 TOPDIR 892 PATH_SEP 893 ZERO_ARCHDEF 894 DEFINE_CROSS_COMPILE_ARCH 895 LP64 896 OPENJDK_TARGET_OS_EXPORT_DIR 897 OPENJDK_TARGET_OS_API_DIR 898 OPENJDK_TARGET_CPU_JLI_CFLAGS 899 OPENJDK_TARGET_CPU_OSARCH 900 OPENJDK_TARGET_CPU_ISADIR 901 OPENJDK_TARGET_CPU_LIBDIR 902 OPENJDK_TARGET_CPU_LEGACY_LIB 903 OPENJDK_TARGET_CPU_LEGACY 904 REQUIRED_OS_VERSION 905 REQUIRED_OS_NAME 906 COMPILE_TYPE 907 OPENJDK_TARGET_CPU_ENDIAN 908 OPENJDK_TARGET_CPU_BITS 909 OPENJDK_TARGET_CPU_ARCH 910 OPENJDK_TARGET_CPU 911 OPENJDK_TARGET_OS_API 912 OPENJDK_TARGET_OS 913 OPENJDK_BUILD_CPU_ENDIAN 914 OPENJDK_BUILD_CPU_BITS 915 OPENJDK_BUILD_CPU_ARCH 916 OPENJDK_BUILD_CPU 917 OPENJDK_BUILD_OS_API 918 OPENJDK_BUILD_OS 919 OPENJDK_BUILD_AUTOCONF_NAME 920 OPENJDK_TARGET_AUTOCONF_NAME 921 target_os 922 target_vendor 923 target_cpu 924 target 925 host_os 926 host_vendor 927 host_cpu 928 host 929 build_os 930 build_vendor 931 build_cpu 932 build 933 SETFILE 934 DF 935 READLINK 936 CYGPATH 937 SED 938 FGREP 939 EGREP 940 GREP 941 AWK 942 XARGS 943 WHICH 944 WC 945 UNIQ 946 UNAME 947 TR 948 TOUCH 949 TEE 950 TAR 951 TAIL 952 SORT 953 SH 954 RM 955 PRINTF 956 NAWK 957 MV 958 MKTEMP 959 MKDIR 960 LS 961 LN 962 HEAD 963 FIND 964 FILE 965 EXPR 966 ECHO 967 DIRNAME 968 DIFF 969 DATE 970 CUT 971 CPIO 972 CP 973 COMM 974 CMP 975 CHMOD 976 CAT 977 BASH 978 BASENAME 979 DATE_WHEN_CONFIGURED 980 CONFIGURE_COMMAND_LINE 981 target_alias 982 host_alias 983 build_alias 984 LIBS 985 ECHO_T 986 ECHO_N 987 ECHO_C 988 DEFS 989 mandir 990 localedir 991 libdir 992 psdir 993 pdfdir 994 dvidir 995 htmldir 996 infodir 997 docdir 998 oldincludedir 999 includedir 1000 localstatedir 1001 sharedstatedir 1002 sysconfdir 1003 datadir 1004 datarootdir 1005 libexecdir 1006 sbindir 1007 bindir 1008 program_transform_name 1009 prefix 1010 exec_prefix 1011 PACKAGE_URL 1012 PACKAGE_BUGREPORT 1013 PACKAGE_STRING 1014 PACKAGE_VERSION 1015 PACKAGE_TARNAME 1016 PACKAGE_NAME 1017 PATH_SEPARATOR 1018 SHELL' 1019 ac_subst_files='' 1020 ac_user_opts=' 1021 enable_option_checking 1022 with_target_bits 1023 enable_openjdk_only 1024 with_custom_make_dir 1025 with_jdk_variant 1026 with_jvm_interpreter 1027 with_jvm_variants 1028 enable_debug 1029 with_debug_level 1030 with_devkit 1031 with_sys_root 1032 with_sysroot 1033 with_tools_dir 1034 with_toolchain_path 1035 with_extra_path 1036 with_conf_name 1037 with_builddeps_conf 1038 with_builddeps_server 1039 with_builddeps_dir 1040 with_builddeps_group 1041 enable_headful 1042 enable_hotspot_test_in_build 1043 with_cacerts_file 1044 enable_unlimited_crypto 1045 enable_rmiconnector_iiop 1046 with_milestone 1047 with_update_version 1048 with_user_release_suffix 1049 with_build_number 1050 with_boot_jdk 1051 with_boot_jdk_jvmargs 1052 with_add_source_root 1053 with_override_source_root 1054 with_adds_and_overrides 1055 with_override_langtools 1056 with_override_corba 1057 with_override_jaxp 1058 with_override_jaxws 1059 with_override_hotspot 1060 with_override_nashorn 1061 with_override_jdk 1062 with_import_hotspot 1063 with_toolchain_type 1064 with_jtreg 1065 with_extra_cflags 1066 with_extra_cxxflags 1067 with_extra_ldflags 1068 enable_debug_symbols 1069 enable_zip_debug_info 1070 enable_macosx_runtime_support 1071 with_x 1072 with_cups 1073 with_cups_include 1074 with_freetype 1075 with_freetype_include 1076 with_freetype_lib 1077 enable_freetype_bundling 1078 with_alsa 1079 with_alsa_include 1080 with_alsa_lib 1081 with_giflib 1082 with_libpng 1083 with_zlib 1084 with_stdc__lib 1085 with_msvcr_dll 1086 with_dxsdk 1087 with_dxsdk_lib 1088 with_dxsdk_include 1089 with_num_cores 1090 with_memory_size 1091 with_jobs 1092 with_sjavac_server_java 1093 enable_sjavac 1094 enable_precompiled_headers 1095 enable_ccache 1096 with_ccache_dir 1097 ' 1098 ac_precious_vars='build_alias 1099 host_alias 1100 target_alias 1101 BASENAME 1102 BASH 1103 CAT 1104 CHMOD 1105 CMP 1106 COMM 1107 CP 1108 CPIO 1109 CUT 1110 DATE 1111 DIFF 1112 DIRNAME 1113 ECHO 1114 EXPR 1115 FILE 1116 FIND 1117 HEAD 1118 LN 1119 LS 1120 MKDIR 1121 MKTEMP 1122 MV 1123 NAWK 1124 PRINTF 1125 RM 1126 SH 1127 SORT 1128 TAIL 1129 TAR 1130 TEE 1131 TOUCH 1132 TR 1133 UNAME 1134 UNIQ 1135 WC 1136 WHICH 1137 XARGS 1138 AWK 1139 GREP 1140 EGREP 1141 FGREP 1142 SED 1143 CYGPATH 1144 READLINK 1145 DF 1146 SETFILE 1147 UNZIP 1148 ZIP 1149 LDD 1150 OTOOL 1151 READELF 1152 HG 1153 STAT 1154 TIME 1155 DSYMUTIL 1156 XATTR 1157 CODESIGN 1158 PKG_CONFIG 1159 JAVA 1160 JAVAC 1161 JAVAH 1162 JAR 1163 NATIVE2ASCII 1164 JARSIGNER 1165 CC 1166 CFLAGS 1167 LDFLAGS 1168 LIBS 1169 CPPFLAGS 1170 CXX 1171 CXXFLAGS 1172 CCC 1173 CPP 1174 CXXCPP 1175 AS 1176 AR 1177 OBJC 1178 OBJCFLAGS 1179 LIPO 1180 STRIP 1181 NM 1182 GNM 1183 MCS 1184 OBJCOPY 1185 OBJDUMP 1186 BUILD_CC 1187 BUILD_CXX 1188 BUILD_LD 1189 JTREGEXE 1190 XMKMF 1191 FREETYPE_CFLAGS 1192 FREETYPE_LIBS 1193 ALSA_CFLAGS 1194 ALSA_LIBS 1195 PNG_CFLAGS 1196 PNG_LIBS 1197 LIBFFI_CFLAGS 1198 LIBFFI_LIBS 1199 CCACHE' 1200 1201 1202 # Initialize some variables set by options. 1203 ac_init_help= 1204 ac_init_version=false 1205 ac_unrecognized_opts= 1206 ac_unrecognized_sep= 1207 # The variables have the same names as the options, with 1208 # dashes changed to underlines. 1209 cache_file=/dev/null 1210 exec_prefix=NONE 1211 no_create= 1212 no_recursion= 1213 prefix=NONE 1214 program_prefix=NONE 1215 program_suffix=NONE 1216 program_transform_name=s,x,x, 1217 silent= 1218 site= 1219 srcdir= 1220 verbose= 1221 x_includes=NONE 1222 x_libraries=NONE 1223 1224 # Installation directory options. 1225 # These are left unexpanded so users can "make install exec_prefix=/foo" 1226 # and all the variables that are supposed to be based on exec_prefix 1227 # by default will actually change. 1228 # Use braces instead of parens because sh, perl, etc. also accept them. 1229 # (The list follows the same order as the GNU Coding Standards.) 1230 bindir='${exec_prefix}/bin' 1231 sbindir='${exec_prefix}/sbin' 1232 libexecdir='${exec_prefix}/libexec' 1233 datarootdir='${prefix}/share' 1234 datadir='${datarootdir}' 1235 sysconfdir='${prefix}/etc' 1236 sharedstatedir='${prefix}/com' 1237 localstatedir='${prefix}/var' 1238 includedir='${prefix}/include' 1239 oldincludedir='/usr/include' 1240 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1241 infodir='${datarootdir}/info' 1242 htmldir='${docdir}' 1243 dvidir='${docdir}' 1244 pdfdir='${docdir}' 1245 psdir='${docdir}' 1246 libdir='${exec_prefix}/lib' 1247 localedir='${datarootdir}/locale' 1248 mandir='${datarootdir}/man' 1249 1250 ac_prev= 1251 ac_dashdash= 1252 for ac_option 1253 do 1254 # If the previous option needs an argument, assign it. 1255 if test -n "$ac_prev"; then 1256 eval $ac_prev=\$ac_option 1257 ac_prev= 1258 continue 1259 fi 1260 1261 case $ac_option in 1262 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1263 *=) ac_optarg= ;; 1264 *) ac_optarg=yes ;; 1265 esac 1266 1267 # Accept the important Cygnus configure options, so we can diagnose typos. 1268 1269 case $ac_dashdash$ac_option in 1270 --) 1271 ac_dashdash=yes ;; 1272 1273 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1274 ac_prev=bindir ;; 1275 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1276 bindir=$ac_optarg ;; 1277 1278 -build | --build | --buil | --bui | --bu) 1279 ac_prev=build_alias ;; 1280 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1281 build_alias=$ac_optarg ;; 1282 1283 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1284 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1285 ac_prev=cache_file ;; 1286 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1287 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1288 cache_file=$ac_optarg ;; 1289 1290 --config-cache | -C) 1291 cache_file=config.cache ;; 1292 1293 -datadir | --datadir | --datadi | --datad) 1294 ac_prev=datadir ;; 1295 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1296 datadir=$ac_optarg ;; 1297 1298 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1299 | --dataroo | --dataro | --datar) 1300 ac_prev=datarootdir ;; 1301 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1302 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1303 datarootdir=$ac_optarg ;; 1304 1305 -disable-* | --disable-*) 1306 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1307 # Reject names that are not valid shell variable names. 1308 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1309 as_fn_error $? "invalid feature name: $ac_useropt" 1310 ac_useropt_orig=$ac_useropt 1311 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1312 case $ac_user_opts in 1313 *" 1314 "enable_$ac_useropt" 1315 "*) ;; 1316 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1317 ac_unrecognized_sep=', ';; 1318 esac 1319 eval enable_$ac_useropt=no ;; 1320 1321 -docdir | --docdir | --docdi | --doc | --do) 1322 ac_prev=docdir ;; 1323 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1324 docdir=$ac_optarg ;; 1325 1326 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1327 ac_prev=dvidir ;; 1328 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1329 dvidir=$ac_optarg ;; 1330 1331 -enable-* | --enable-*) 1332 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1333 # Reject names that are not valid shell variable names. 1334 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1335 as_fn_error $? "invalid feature name: $ac_useropt" 1336 ac_useropt_orig=$ac_useropt 1337 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1338 case $ac_user_opts in 1339 *" 1340 "enable_$ac_useropt" 1341 "*) ;; 1342 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1343 ac_unrecognized_sep=', ';; 1344 esac 1345 eval enable_$ac_useropt=\$ac_optarg ;; 1346 1347 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1348 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1349 | --exec | --exe | --ex) 1350 ac_prev=exec_prefix ;; 1351 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1352 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1353 | --exec=* | --exe=* | --ex=*) 1354 exec_prefix=$ac_optarg ;; 1355 1356 -gas | --gas | --ga | --g) 1357 # Obsolete; use --with-gas. 1358 with_gas=yes ;; 1359 1360 -help | --help | --hel | --he | -h) 1361 ac_init_help=long ;; 1362 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1363 ac_init_help=recursive ;; 1364 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1365 ac_init_help=short ;; 1366 1367 -host | --host | --hos | --ho) 1368 ac_prev=host_alias ;; 1369 -host=* | --host=* | --hos=* | --ho=*) 1370 host_alias=$ac_optarg ;; 1371 1372 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1373 ac_prev=htmldir ;; 1374 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1375 | --ht=*) 1376 htmldir=$ac_optarg ;; 1377 1378 -includedir | --includedir | --includedi | --included | --include \ 1379 | --includ | --inclu | --incl | --inc) 1380 ac_prev=includedir ;; 1381 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1382 | --includ=* | --inclu=* | --incl=* | --inc=*) 1383 includedir=$ac_optarg ;; 1384 1385 -infodir | --infodir | --infodi | --infod | --info | --inf) 1386 ac_prev=infodir ;; 1387 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1388 infodir=$ac_optarg ;; 1389 1390 -libdir | --libdir | --libdi | --libd) 1391 ac_prev=libdir ;; 1392 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1393 libdir=$ac_optarg ;; 1394 1395 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1396 | --libexe | --libex | --libe) 1397 ac_prev=libexecdir ;; 1398 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1399 | --libexe=* | --libex=* | --libe=*) 1400 libexecdir=$ac_optarg ;; 1401 1402 -localedir | --localedir | --localedi | --localed | --locale) 1403 ac_prev=localedir ;; 1404 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1405 localedir=$ac_optarg ;; 1406 1407 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1408 | --localstate | --localstat | --localsta | --localst | --locals) 1409 ac_prev=localstatedir ;; 1410 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1411 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1412 localstatedir=$ac_optarg ;; 1413 1414 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1415 ac_prev=mandir ;; 1416 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1417 mandir=$ac_optarg ;; 1418 1419 -nfp | --nfp | --nf) 1420 # Obsolete; use --without-fp. 1421 with_fp=no ;; 1422 1423 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1424 | --no-cr | --no-c | -n) 1425 no_create=yes ;; 1426 1427 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1428 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1429 no_recursion=yes ;; 1430 1431 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1432 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1433 | --oldin | --oldi | --old | --ol | --o) 1434 ac_prev=oldincludedir ;; 1435 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1436 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1437 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1438 oldincludedir=$ac_optarg ;; 1439 1440 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1441 ac_prev=prefix ;; 1442 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1443 prefix=$ac_optarg ;; 1444 1445 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1446 | --program-pre | --program-pr | --program-p) 1447 ac_prev=program_prefix ;; 1448 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1449 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1450 program_prefix=$ac_optarg ;; 1451 1452 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1453 | --program-suf | --program-su | --program-s) 1454 ac_prev=program_suffix ;; 1455 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1456 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1457 program_suffix=$ac_optarg ;; 1458 1459 -program-transform-name | --program-transform-name \ 1460 | --program-transform-nam | --program-transform-na \ 1461 | --program-transform-n | --program-transform- \ 1462 | --program-transform | --program-transfor \ 1463 | --program-transfo | --program-transf \ 1464 | --program-trans | --program-tran \ 1465 | --progr-tra | --program-tr | --program-t) 1466 ac_prev=program_transform_name ;; 1467 -program-transform-name=* | --program-transform-name=* \ 1468 | --program-transform-nam=* | --program-transform-na=* \ 1469 | --program-transform-n=* | --program-transform-=* \ 1470 | --program-transform=* | --program-transfor=* \ 1471 | --program-transfo=* | --program-transf=* \ 1472 | --program-trans=* | --program-tran=* \ 1473 | --progr-tra=* | --program-tr=* | --program-t=*) 1474 program_transform_name=$ac_optarg ;; 1475 1476 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1477 ac_prev=pdfdir ;; 1478 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1479 pdfdir=$ac_optarg ;; 1480 1481 -psdir | --psdir | --psdi | --psd | --ps) 1482 ac_prev=psdir ;; 1483 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1484 psdir=$ac_optarg ;; 1485 1486 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1487 | -silent | --silent | --silen | --sile | --sil) 1488 silent=yes ;; 1489 1490 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1491 ac_prev=sbindir ;; 1492 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1493 | --sbi=* | --sb=*) 1494 sbindir=$ac_optarg ;; 1495 1496 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1497 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1498 | --sharedst | --shareds | --shared | --share | --shar \ 1499 | --sha | --sh) 1500 ac_prev=sharedstatedir ;; 1501 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1502 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1503 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1504 | --sha=* | --sh=*) 1505 sharedstatedir=$ac_optarg ;; 1506 1507 -site | --site | --sit) 1508 ac_prev=site ;; 1509 -site=* | --site=* | --sit=*) 1510 site=$ac_optarg ;; 1511 1512 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1513 ac_prev=srcdir ;; 1514 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1515 srcdir=$ac_optarg ;; 1516 1517 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1518 | --syscon | --sysco | --sysc | --sys | --sy) 1519 ac_prev=sysconfdir ;; 1520 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1521 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1522 sysconfdir=$ac_optarg ;; 1523 1524 -target | --target | --targe | --targ | --tar | --ta | --t) 1525 ac_prev=target_alias ;; 1526 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1527 target_alias=$ac_optarg ;; 1528 1529 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1530 verbose=yes ;; 1531 1532 -version | --version | --versio | --versi | --vers | -V) 1533 ac_init_version=: ;; 1534 1535 -with-* | --with-*) 1536 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1537 # Reject names that are not valid shell variable names. 1538 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1539 as_fn_error $? "invalid package name: $ac_useropt" 1540 ac_useropt_orig=$ac_useropt 1541 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1542 case $ac_user_opts in 1543 *" 1544 "with_$ac_useropt" 1545 "*) ;; 1546 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1547 ac_unrecognized_sep=', ';; 1548 esac 1549 eval with_$ac_useropt=\$ac_optarg ;; 1550 1551 -without-* | --without-*) 1552 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1553 # Reject names that are not valid shell variable names. 1554 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1555 as_fn_error $? "invalid package name: $ac_useropt" 1556 ac_useropt_orig=$ac_useropt 1557 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1558 case $ac_user_opts in 1559 *" 1560 "with_$ac_useropt" 1561 "*) ;; 1562 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1563 ac_unrecognized_sep=', ';; 1564 esac 1565 eval with_$ac_useropt=no ;; 1566 1567 --x) 1568 # Obsolete; use --with-x. 1569 with_x=yes ;; 1570 1571 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1572 | --x-incl | --x-inc | --x-in | --x-i) 1573 ac_prev=x_includes ;; 1574 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1575 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1576 x_includes=$ac_optarg ;; 1577 1578 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1579 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1580 ac_prev=x_libraries ;; 1581 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1582 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1583 x_libraries=$ac_optarg ;; 1584 1585 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1586 Try \`$0 --help' for more information" 1587 ;; 1588 1589 *=*) 1590 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1591 # Reject names that are not valid shell variable names. 1592 case $ac_envvar in #( 1593 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1594 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1595 esac 1596 eval $ac_envvar=\$ac_optarg 1597 export $ac_envvar ;; 1598 1599 *) 1600 # FIXME: should be removed in autoconf 3.0. 1601 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1602 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1603 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1604 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1605 ;; 1606 1607 esac 1608 done 1609 1610 if test -n "$ac_prev"; then 1611 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1612 as_fn_error $? "missing argument to $ac_option" 1613 fi 1614 1615 if test -n "$ac_unrecognized_opts"; then 1616 case $enable_option_checking in 1617 no) ;; 1618 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1619 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1620 esac 1621 fi 1622 1623 # Check all directory arguments for consistency. 1624 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1625 datadir sysconfdir sharedstatedir localstatedir includedir \ 1626 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1627 libdir localedir mandir 1628 do 1629 eval ac_val=\$$ac_var 1630 # Remove trailing slashes. 1631 case $ac_val in 1632 */ ) 1633 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1634 eval $ac_var=\$ac_val;; 1635 esac 1636 # Be sure to have absolute directory names. 1637 case $ac_val in 1638 [\\/$]* | ?:[\\/]* ) continue;; 1639 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1640 esac 1641 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1642 done 1643 1644 # There might be people who depend on the old broken behavior: `$host' 1645 # used to hold the argument of --host etc. 1646 # FIXME: To remove some day. 1647 build=$build_alias 1648 host=$host_alias 1649 target=$target_alias 1650 1651 # FIXME: To remove some day. 1652 if test "x$host_alias" != x; then 1653 if test "x$build_alias" = x; then 1654 cross_compiling=maybe 1655 elif test "x$build_alias" != "x$host_alias"; then 1656 cross_compiling=yes 1657 fi 1658 fi 1659 1660 ac_tool_prefix= 1661 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1662 1663 test "$silent" = yes && exec 6>/dev/null 1664 1665 1666 ac_pwd=`pwd` && test -n "$ac_pwd" && 1667 ac_ls_di=`ls -di .` && 1668 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1669 as_fn_error $? "working directory cannot be determined" 1670 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1671 as_fn_error $? "pwd does not report name of working directory" 1672 1673 1674 # Find the source files, if location was not specified. 1675 if test -z "$srcdir"; then 1676 ac_srcdir_defaulted=yes 1677 # Try the directory containing this script, then the parent directory. 1678 ac_confdir=`$as_dirname -- "$as_myself" || 1679 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1680 X"$as_myself" : 'X\(//\)[^/]' \| \ 1681 X"$as_myself" : 'X\(//\)$' \| \ 1682 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1683 $as_echo X"$as_myself" | 1684 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1685 s//\1/ 1686 q 1687 } 1688 /^X\(\/\/\)[^/].*/{ 1689 s//\1/ 1690 q 1691 } 1692 /^X\(\/\/\)$/{ 1693 s//\1/ 1694 q 1695 } 1696 /^X\(\/\).*/{ 1697 s//\1/ 1698 q 1699 } 1700 s/.*/./; q'` 1701 srcdir=$ac_confdir 1702 if test ! -r "$srcdir/$ac_unique_file"; then 1703 srcdir=.. 1704 fi 1705 else 1706 ac_srcdir_defaulted=no 1707 fi 1708 if test ! -r "$srcdir/$ac_unique_file"; then 1709 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1710 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1711 fi 1712 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1713 ac_abs_confdir=`( 1714 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1715 pwd)` 1716 # When building in place, set srcdir=. 1717 if test "$ac_abs_confdir" = "$ac_pwd"; then 1718 srcdir=. 1719 fi 1720 # Remove unnecessary trailing slashes from srcdir. 1721 # Double slashes in file names in object file debugging info 1722 # mess up M-x gdb in Emacs. 1723 case $srcdir in 1724 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1725 esac 1726 for ac_var in $ac_precious_vars; do 1727 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1728 eval ac_env_${ac_var}_value=\$${ac_var} 1729 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1730 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1731 done 1732 1733 # 1734 # Report the --help message. 1735 # 1736 if test "$ac_init_help" = "long"; then 1737 # Omit some internal or obsolete options to make the list less imposing. 1738 # This message is too long to be a string in the A/UX 3.1 sh. 1739 cat <<_ACEOF 1740 \`configure' configures OpenJDK jdk9 to adapt to many kinds of systems. 1741 1742 Usage: $0 [OPTION]... [VAR=VALUE]... 1743 1744 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1745 VAR=VALUE. See below for descriptions of some of the useful variables. 1746 1747 Defaults for the options are specified in brackets. 1748 1749 Configuration: 1750 -h, --help display this help and exit 1751 --help=short display options specific to this package 1752 --help=recursive display the short help of all the included packages 1753 -V, --version display version information and exit 1754 -q, --quiet, --silent do not print \`checking ...' messages 1755 --cache-file=FILE cache test results in FILE [disabled] 1756 -C, --config-cache alias for \`--cache-file=config.cache' 1757 -n, --no-create do not create output files 1758 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1759 1760 Installation directories: 1761 --prefix=PREFIX install architecture-independent files in PREFIX 1762 [$ac_default_prefix] 1763 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1764 [PREFIX] 1765 1766 By default, \`make install' will install all the files in 1767 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1768 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1769 for instance \`--prefix=\$HOME'. 1770 1771 For better control, use the options below. 1772 1773 Fine tuning of the installation directories: 1774 --bindir=DIR user executables [EPREFIX/bin] 1775 --sbindir=DIR system admin executables [EPREFIX/sbin] 1776 --libexecdir=DIR program executables [EPREFIX/libexec] 1777 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1778 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1779 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1780 --libdir=DIR object code libraries [EPREFIX/lib] 1781 --includedir=DIR C header files [PREFIX/include] 1782 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1783 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1784 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1785 --infodir=DIR info documentation [DATAROOTDIR/info] 1786 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1787 --mandir=DIR man documentation [DATAROOTDIR/man] 1788 --docdir=DIR documentation root [DATAROOTDIR/doc/openjdk] 1789 --htmldir=DIR html documentation [DOCDIR] 1790 --dvidir=DIR dvi documentation [DOCDIR] 1791 --pdfdir=DIR pdf documentation [DOCDIR] 1792 --psdir=DIR ps documentation [DOCDIR] 1793 _ACEOF 1794 1795 cat <<\_ACEOF 1796 1797 X features: 1798 --x-includes=DIR X include files are in DIR 1799 --x-libraries=DIR X library files are in DIR 1800 1801 System types: 1802 --build=BUILD configure for building on BUILD [guessed] 1803 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1804 --target=TARGET configure for building compilers for TARGET [HOST] 1805 _ACEOF 1806 fi 1807 1808 if test -n "$ac_init_help"; then 1809 case $ac_init_help in 1810 short | recursive ) echo "Configuration of OpenJDK jdk9:";; 1811 esac 1812 cat <<\_ACEOF 1813 1814 Optional Features: 1815 --disable-option-checking ignore unrecognized --enable/--with options 1816 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1817 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1818 --enable-openjdk-only suppress building custom source even if present 1819 [disabled] 1820 --enable-debug set the debug level to fastdebug (shorthand for 1821 --with-debug-level=fastdebug) [disabled] 1822 --disable-headful disable building headful support (graphical UI 1823 support) [enabled] 1824 --enable-hotspot-test-in-build 1825 run the Queens test after Hotspot build [disabled] 1826 --enable-unlimited-crypto 1827 Enable unlimited crypto policy [disabled] 1828 --enable-rmiconnector-iiop 1829 enable the JMX RMIConnector iiop transport 1830 [disabled] 1831 --disable-debug-symbols disable generation of debug symbols [enabled] 1832 --disable-zip-debug-info 1833 disable zipping of debug-info files [enabled] 1834 --enable-macosx-runtime-support 1835 Deprecated. Option is kept for backwards 1836 compatibility and is ignored 1837 --disable-freetype-bundling 1838 disable bundling of the freetype library with the 1839 build result [enabled on Windows or when using 1840 --with-freetype, disabled otherwise] 1841 --enable-sjavac use sjavac to do fast incremental compiles 1842 [disabled] 1843 --disable-precompiled-headers 1844 disable using precompiled headers when compiling C++ 1845 [enabled] 1846 --enable-ccache enable using ccache to speed up recompilations 1847 [disabled] 1848 1849 Optional Packages: 1850 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1851 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1852 --with-target-bits build 32-bit or 64-bit binaries (for platforms that 1853 support it), e.g. --with-target-bits=32 [guessed] 1854 --with-custom-make-dir Deprecated. Option is kept for backwards 1855 compatibility and is ignored 1856 --with-jdk-variant JDK variant to build (normal) [normal] 1857 --with-jvm-interpreter JVM interpreter to build (template, cpp) [template] 1858 --with-jvm-variants JVM variants (separated by commas) to build (server, 1859 client, minimal1, kernel, zero, zeroshark, core) 1860 [server] 1861 --with-debug-level set the debug level (release, fastdebug, slowdebug, 1862 optimized (HotSpot build only)) [release] 1863 --with-devkit use this devkit for compilers, tools and resources 1864 --with-sys-root alias for --with-sysroot for backwards compatability 1865 --with-sysroot use this directory as sysroot) 1866 --with-tools-dir alias for --with-toolchain-path for backwards 1867 compatibility 1868 --with-toolchain-path prepend these directories when searching for 1869 toolchain binaries (compilers etc) 1870 --with-extra-path prepend these directories to the default path 1871 --with-conf-name use this as the name of the configuration [generated 1872 from important configuration options] 1873 --with-builddeps-conf use this configuration file for the builddeps 1874 --with-builddeps-server download and use build dependencies from this server 1875 url 1876 --with-builddeps-dir store downloaded build dependencies here 1877 [/localhome/builddeps] 1878 --with-builddeps-group chgrp the downloaded build dependencies to this 1879 group 1880 --with-cacerts-file specify alternative cacerts file 1881 --with-milestone Set milestone value for build [internal] 1882 --with-update-version Set update version value for build [b00] 1883 --with-user-release-suffix 1884 Add a custom string to the version string if build 1885 number is not set.[username_builddateb00] 1886 --with-build-number Set build number value for build [b00] 1887 --with-boot-jdk path to Boot JDK (used to bootstrap build) [probed] 1888 --with-boot-jdk-jvmargs specify JVM arguments to be passed to all java 1889 invocations of boot JDK, overriding the default 1890 values, e.g --with-boot-jdk-jvmargs="-Xmx8G 1891 -enableassertions" 1892 --with-add-source-root for each and every source directory, look in this 1893 additional source root for the same directory; if it 1894 exists and have files in it, include it in the build 1895 --with-override-source-root 1896 for each and every source directory, look in this 1897 override source root for the same directory; if it 1898 exists, use that directory instead and ignore the 1899 directory in the original source root 1900 --with-adds-and-overrides 1901 use the subdirs 'adds' and 'overrides' in the 1902 specified directory as add-source-root and 1903 override-source-root 1904 --with-override-langtools 1905 use this langtools dir for the build 1906 --with-override-corba use this corba dir for the build 1907 --with-override-jaxp use this jaxp dir for the build 1908 --with-override-jaxws use this jaxws dir for the build 1909 --with-override-hotspot use this hotspot dir for the build 1910 --with-override-nashorn use this nashorn dir for the build 1911 --with-override-jdk use this jdk dir for the build 1912 --with-import-hotspot import hotspot binaries from this jdk image or 1913 hotspot build dist dir instead of building from 1914 source 1915 --with-toolchain-type the toolchain type (or family) to use, use '--help' 1916 to show possible values [platform dependent] 1917 --with-jtreg Regression Test Harness [probed] 1918 --with-extra-cflags extra flags to be used when compiling jdk c-files 1919 --with-extra-cxxflags extra flags to be used when compiling jdk c++-files 1920 --with-extra-ldflags extra flags to be used when linking jdk 1921 --with-x use the X Window System 1922 --with-cups specify prefix directory for the cups package 1923 (expecting the headers under PATH/include) 1924 --with-cups-include specify directory for the cups include files 1925 --with-freetype specify prefix directory for the freetype package 1926 (expecting the libraries under PATH/lib and the 1927 headers under PATH/include) 1928 --with-freetype-include specify directory for the freetype include files 1929 --with-freetype-lib specify directory for the freetype library 1930 --with-alsa specify prefix directory for the alsa package 1931 (expecting the libraries under PATH/lib and the 1932 headers under PATH/include) 1933 --with-alsa-include specify directory for the alsa include files 1934 --with-alsa-lib specify directory for the alsa library 1935 --with-giflib use giflib from build system or OpenJDK source 1936 (system, bundled) [bundled] 1937 --with-libpng use libpng from build system or OpenJDK source 1938 (system, bundled) [bundled] 1939 --with-zlib use zlib from build system or OpenJDK source 1940 (system, bundled) [bundled] 1941 --with-stdc++lib=<static>,<dynamic>,<default> 1942 force linking of the C++ runtime on Linux to either 1943 static or dynamic, default is static with dynamic as 1944 fallback 1945 --with-msvcr-dll copy this msvcr100.dll into the built JDK (Windows 1946 only) [probed] 1947 --with-dxsdk Deprecated. Option is kept for backwards 1948 compatibility and is ignored 1949 --with-dxsdk-lib Deprecated. Option is kept for backwards 1950 compatibility and is ignored 1951 --with-dxsdk-include Deprecated. Option is kept for backwards 1952 compatibility and is ignored 1953 --with-num-cores number of cores in the build system, e.g. 1954 --with-num-cores=8 [probed] 1955 --with-memory-size memory (in MB) available in the build system, e.g. 1956 --with-memory-size=1024 [probed] 1957 --with-jobs number of parallel jobs to let make run [calculated 1958 based on cores and memory] 1959 --with-sjavac-server-java 1960 use this java binary for running the sjavac 1961 background server [Boot JDK java] 1962 --with-ccache-dir where to store ccache files [~/.ccache] 1963 1964 Some influential environment variables: 1965 BASENAME Override default value for BASENAME 1966 BASH Override default value for BASH 1967 CAT Override default value for CAT 1968 CHMOD Override default value for CHMOD 1969 CMP Override default value for CMP 1970 COMM Override default value for COMM 1971 CP Override default value for CP 1972 CPIO Override default value for CPIO 1973 CUT Override default value for CUT 1974 DATE Override default value for DATE 1975 DIFF Override default value for DIFF 1976 DIRNAME Override default value for DIRNAME 1977 ECHO Override default value for ECHO 1978 EXPR Override default value for EXPR 1979 FILE Override default value for FILE 1980 FIND Override default value for FIND 1981 HEAD Override default value for HEAD 1982 LN Override default value for LN 1983 LS Override default value for LS 1984 MKDIR Override default value for MKDIR 1985 MKTEMP Override default value for MKTEMP 1986 MV Override default value for MV 1987 NAWK Override default value for NAWK 1988 PRINTF Override default value for PRINTF 1989 RM Override default value for RM 1990 SH Override default value for SH 1991 SORT Override default value for SORT 1992 TAIL Override default value for TAIL 1993 TAR Override default value for TAR 1994 TEE Override default value for TEE 1995 TOUCH Override default value for TOUCH 1996 TR Override default value for TR 1997 UNAME Override default value for UNAME 1998 UNIQ Override default value for UNIQ 1999 WC Override default value for WC 2000 WHICH Override default value for WHICH 2001 XARGS Override default value for XARGS 2002 AWK Override default value for AWK 2003 GREP Override default value for GREP 2004 EGREP Override default value for EGREP 2005 FGREP Override default value for FGREP 2006 SED Override default value for SED 2007 CYGPATH Override default value for CYGPATH 2008 READLINK Override default value for READLINK 2009 DF Override default value for DF 2010 SETFILE Override default value for SETFILE 2011 UNZIP Override default value for UNZIP 2012 ZIP Override default value for ZIP 2013 LDD Override default value for LDD 2014 OTOOL Override default value for OTOOL 2015 READELF Override default value for READELF 2016 HG Override default value for HG 2017 STAT Override default value for STAT 2018 TIME Override default value for TIME 2019 DSYMUTIL Override default value for DSYMUTIL 2020 XATTR Override default value for XATTR 2021 CODESIGN Override default value for CODESIGN 2022 PKG_CONFIG path to pkg-config utility 2023 JAVA Override default value for JAVA 2024 JAVAC Override default value for JAVAC 2025 JAVAH Override default value for JAVAH 2026 JAR Override default value for JAR 2027 NATIVE2ASCII 2028 Override default value for NATIVE2ASCII 2029 JARSIGNER Override default value for JARSIGNER 2030 CC C compiler command 2031 CFLAGS C compiler flags 2032 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 2033 nonstandard directory <lib dir> 2034 LIBS libraries to pass to the linker, e.g. -l<library> 2035 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 2036 you have headers in a nonstandard directory <include dir> 2037 CXX C++ compiler command 2038 CXXFLAGS C++ compiler flags 2039 CPP C preprocessor 2040 CXXCPP C++ preprocessor 2041 AS Override default value for AS 2042 AR Override default value for AR 2043 OBJC Objective C compiler command 2044 OBJCFLAGS Objective C compiler flags 2045 LIPO Override default value for LIPO 2046 STRIP Override default value for STRIP 2047 NM Override default value for NM 2048 GNM Override default value for GNM 2049 MCS Override default value for MCS 2050 OBJCOPY Override default value for OBJCOPY 2051 OBJDUMP Override default value for OBJDUMP 2052 BUILD_CC Override default value for BUILD_CC 2053 BUILD_CXX Override default value for BUILD_CXX 2054 BUILD_LD Override default value for BUILD_LD 2055 JTREGEXE Override default value for JTREGEXE 2056 XMKMF Path to xmkmf, Makefile generator for X Window System 2057 FREETYPE_CFLAGS 2058 C compiler flags for FREETYPE, overriding pkg-config 2059 FREETYPE_LIBS 2060 linker flags for FREETYPE, overriding pkg-config 2061 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config 2062 ALSA_LIBS linker flags for ALSA, overriding pkg-config 2063 PNG_CFLAGS C compiler flags for PNG, overriding pkg-config 2064 PNG_LIBS linker flags for PNG, overriding pkg-config 2065 LIBFFI_CFLAGS 2066 C compiler flags for LIBFFI, overriding pkg-config 2067 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config 2068 CCACHE Override default value for CCACHE 2069 2070 Use these variables to override the choices made by `configure' or to help 2071 it to find libraries and programs with nonstandard names/locations. 2072 2073 Report bugs to <build-dev@openjdk.java.net>. 2074 OpenJDK home page: <http://openjdk.java.net>. 2075 _ACEOF 2076 ac_status=$? 2077 fi 2078 2079 if test "$ac_init_help" = "recursive"; then 2080 # If there are subdirs, report their specific --help. 2081 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 2082 test -d "$ac_dir" || 2083 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 2084 continue 2085 ac_builddir=. 2086 2087 case "$ac_dir" in 2088 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 2089 *) 2090 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 2091 # A ".." for each directory in $ac_dir_suffix. 2092 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 2093 case $ac_top_builddir_sub in 2094 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 2095 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 2096 esac ;; 2097 esac 2098 ac_abs_top_builddir=$ac_pwd 2099 ac_abs_builddir=$ac_pwd$ac_dir_suffix 2100 # for backward compatibility: 2101 ac_top_builddir=$ac_top_build_prefix 2102 2103 case $srcdir in 2104 .) # We are building in place. 2105 ac_srcdir=. 2106 ac_top_srcdir=$ac_top_builddir_sub 2107 ac_abs_top_srcdir=$ac_pwd ;; 2108 [\\/]* | ?:[\\/]* ) # Absolute name. 2109 ac_srcdir=$srcdir$ac_dir_suffix; 2110 ac_top_srcdir=$srcdir 2111 ac_abs_top_srcdir=$srcdir ;; 2112 *) # Relative name. 2113 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 2114 ac_top_srcdir=$ac_top_build_prefix$srcdir 2115 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 2116 esac 2117 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 2118 2119 cd "$ac_dir" || { ac_status=$?; continue; } 2120 # Check for guested configure. 2121 if test -f "$ac_srcdir/configure.gnu"; then 2122 echo && 2123 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 2124 elif test -f "$ac_srcdir/configure"; then 2125 echo && 2126 $SHELL "$ac_srcdir/configure" --help=recursive 2127 else 2128 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 2129 fi || ac_status=$? 2130 cd "$ac_pwd" || { ac_status=$?; break; } 2131 done 2132 fi 2133 2134 test -n "$ac_init_help" && exit $ac_status 2135 if $ac_init_version; then 2136 cat <<\_ACEOF 2137 OpenJDK configure jdk9 2138 generated by GNU Autoconf 2.69 2139 2140 Copyright (C) 2012 Free Software Foundation, Inc. 2141 This configure script is free software; the Free Software Foundation 2142 gives unlimited permission to copy, distribute and modify it. 2143 _ACEOF 2144 exit 2145 fi 2146 2147 ## ------------------------ ## 2148 ## Autoconf initialization. ## 2149 ## ------------------------ ## 2150 2151 # ac_fn_c_try_compile LINENO 2152 # -------------------------- 2153 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2154 ac_fn_c_try_compile () 2155 { 2156 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2157 rm -f conftest.$ac_objext 2158 if { { ac_try="$ac_compile" 2159 case "(($ac_try" in 2160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2161 *) ac_try_echo=$ac_try;; 2162 esac 2163 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2164 $as_echo "$ac_try_echo"; } >&5 2165 (eval "$ac_compile") 2>conftest.err 2166 ac_status=$? 2167 if test -s conftest.err; then 2168 grep -v '^ *+' conftest.err >conftest.er1 2169 cat conftest.er1 >&5 2170 mv -f conftest.er1 conftest.err 2171 fi 2172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2173 test $ac_status = 0; } && { 2174 test -z "$ac_c_werror_flag" || 2175 test ! -s conftest.err 2176 } && test -s conftest.$ac_objext; then : 2177 ac_retval=0 2178 else 2179 $as_echo "$as_me: failed program was:" >&5 2180 sed 's/^/| /' conftest.$ac_ext >&5 2181 2182 ac_retval=1 2183 fi 2184 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2185 as_fn_set_status $ac_retval 2186 2187 } # ac_fn_c_try_compile 2188 2189 # ac_fn_cxx_try_compile LINENO 2190 # ---------------------------- 2191 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2192 ac_fn_cxx_try_compile () 2193 { 2194 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2195 rm -f conftest.$ac_objext 2196 if { { ac_try="$ac_compile" 2197 case "(($ac_try" in 2198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2199 *) ac_try_echo=$ac_try;; 2200 esac 2201 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2202 $as_echo "$ac_try_echo"; } >&5 2203 (eval "$ac_compile") 2>conftest.err 2204 ac_status=$? 2205 if test -s conftest.err; then 2206 grep -v '^ *+' conftest.err >conftest.er1 2207 cat conftest.er1 >&5 2208 mv -f conftest.er1 conftest.err 2209 fi 2210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2211 test $ac_status = 0; } && { 2212 test -z "$ac_cxx_werror_flag" || 2213 test ! -s conftest.err 2214 } && test -s conftest.$ac_objext; then : 2215 ac_retval=0 2216 else 2217 $as_echo "$as_me: failed program was:" >&5 2218 sed 's/^/| /' conftest.$ac_ext >&5 2219 2220 ac_retval=1 2221 fi 2222 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2223 as_fn_set_status $ac_retval 2224 2225 } # ac_fn_cxx_try_compile 2226 2227 # ac_fn_c_try_cpp LINENO 2228 # ---------------------- 2229 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2230 ac_fn_c_try_cpp () 2231 { 2232 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2233 if { { ac_try="$ac_cpp conftest.$ac_ext" 2234 case "(($ac_try" in 2235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2236 *) ac_try_echo=$ac_try;; 2237 esac 2238 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2239 $as_echo "$ac_try_echo"; } >&5 2240 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2241 ac_status=$? 2242 if test -s conftest.err; then 2243 grep -v '^ *+' conftest.err >conftest.er1 2244 cat conftest.er1 >&5 2245 mv -f conftest.er1 conftest.err 2246 fi 2247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2248 test $ac_status = 0; } > conftest.i && { 2249 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2250 test ! -s conftest.err 2251 }; then : 2252 ac_retval=0 2253 else 2254 $as_echo "$as_me: failed program was:" >&5 2255 sed 's/^/| /' conftest.$ac_ext >&5 2256 2257 ac_retval=1 2258 fi 2259 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2260 as_fn_set_status $ac_retval 2261 2262 } # ac_fn_c_try_cpp 2263 2264 # ac_fn_cxx_try_cpp LINENO 2265 # ------------------------ 2266 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2267 ac_fn_cxx_try_cpp () 2268 { 2269 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2270 if { { ac_try="$ac_cpp conftest.$ac_ext" 2271 case "(($ac_try" in 2272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2273 *) ac_try_echo=$ac_try;; 2274 esac 2275 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2276 $as_echo "$ac_try_echo"; } >&5 2277 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2278 ac_status=$? 2279 if test -s conftest.err; then 2280 grep -v '^ *+' conftest.err >conftest.er1 2281 cat conftest.er1 >&5 2282 mv -f conftest.er1 conftest.err 2283 fi 2284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2285 test $ac_status = 0; } > conftest.i && { 2286 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2287 test ! -s conftest.err 2288 }; then : 2289 ac_retval=0 2290 else 2291 $as_echo "$as_me: failed program was:" >&5 2292 sed 's/^/| /' conftest.$ac_ext >&5 2293 2294 ac_retval=1 2295 fi 2296 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2297 as_fn_set_status $ac_retval 2298 2299 } # ac_fn_cxx_try_cpp 2300 2301 # ac_fn_objc_try_compile LINENO 2302 # ----------------------------- 2303 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2304 ac_fn_objc_try_compile () 2305 { 2306 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2307 rm -f conftest.$ac_objext 2308 if { { ac_try="$ac_compile" 2309 case "(($ac_try" in 2310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2311 *) ac_try_echo=$ac_try;; 2312 esac 2313 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2314 $as_echo "$ac_try_echo"; } >&5 2315 (eval "$ac_compile") 2>conftest.err 2316 ac_status=$? 2317 if test -s conftest.err; then 2318 grep -v '^ *+' conftest.err >conftest.er1 2319 cat conftest.er1 >&5 2320 mv -f conftest.er1 conftest.err 2321 fi 2322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2323 test $ac_status = 0; } && { 2324 test -z "$ac_objc_werror_flag" || 2325 test ! -s conftest.err 2326 } && test -s conftest.$ac_objext; then : 2327 ac_retval=0 2328 else 2329 $as_echo "$as_me: failed program was:" >&5 2330 sed 's/^/| /' conftest.$ac_ext >&5 2331 2332 ac_retval=1 2333 fi 2334 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2335 as_fn_set_status $ac_retval 2336 2337 } # ac_fn_objc_try_compile 2338 2339 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES 2340 # --------------------------------------------------------- 2341 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 2342 # the include files in INCLUDES and setting the cache variable VAR 2343 # accordingly. 2344 ac_fn_cxx_check_header_mongrel () 2345 { 2346 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2347 if eval \${$3+:} false; then : 2348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2349 $as_echo_n "checking for $2... " >&6; } 2350 if eval \${$3+:} false; then : 2351 $as_echo_n "(cached) " >&6 2352 fi 2353 eval ac_res=\$$3 2354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2355 $as_echo "$ac_res" >&6; } 2356 else 2357 # Is the header compilable? 2358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2359 $as_echo_n "checking $2 usability... " >&6; } 2360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2361 /* end confdefs.h. */ 2362 $4 2363 #include <$2> 2364 _ACEOF 2365 if ac_fn_cxx_try_compile "$LINENO"; then : 2366 ac_header_compiler=yes 2367 else 2368 ac_header_compiler=no 2369 fi 2370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2372 $as_echo "$ac_header_compiler" >&6; } 2373 2374 # Is the header present? 2375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2376 $as_echo_n "checking $2 presence... " >&6; } 2377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2378 /* end confdefs.h. */ 2379 #include <$2> 2380 _ACEOF 2381 if ac_fn_cxx_try_cpp "$LINENO"; then : 2382 ac_header_preproc=yes 2383 else 2384 ac_header_preproc=no 2385 fi 2386 rm -f conftest.err conftest.i conftest.$ac_ext 2387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2388 $as_echo "$ac_header_preproc" >&6; } 2389 2390 # So? What about this header? 2391 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( 2392 yes:no: ) 2393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2394 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2396 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2397 ;; 2398 no:yes:* ) 2399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2400 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2402 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2404 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2406 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2408 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2409 ( $as_echo "## ----------------------------------------- ## 2410 ## Report this to build-dev@openjdk.java.net ## 2411 ## ----------------------------------------- ##" 2412 ) | sed "s/^/$as_me: WARNING: /" >&2 2413 ;; 2414 esac 2415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2416 $as_echo_n "checking for $2... " >&6; } 2417 if eval \${$3+:} false; then : 2418 $as_echo_n "(cached) " >&6 2419 else 2420 eval "$3=\$ac_header_compiler" 2421 fi 2422 eval ac_res=\$$3 2423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2424 $as_echo "$ac_res" >&6; } 2425 fi 2426 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2427 2428 } # ac_fn_cxx_check_header_mongrel 2429 2430 # ac_fn_cxx_try_run LINENO 2431 # ------------------------ 2432 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2433 # that executables *can* be run. 2434 ac_fn_cxx_try_run () 2435 { 2436 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2437 if { { ac_try="$ac_link" 2438 case "(($ac_try" in 2439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2440 *) ac_try_echo=$ac_try;; 2441 esac 2442 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2443 $as_echo "$ac_try_echo"; } >&5 2444 (eval "$ac_link") 2>&5 2445 ac_status=$? 2446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2447 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2448 { { case "(($ac_try" in 2449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2450 *) ac_try_echo=$ac_try;; 2451 esac 2452 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2453 $as_echo "$ac_try_echo"; } >&5 2454 (eval "$ac_try") 2>&5 2455 ac_status=$? 2456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2457 test $ac_status = 0; }; }; then : 2458 ac_retval=0 2459 else 2460 $as_echo "$as_me: program exited with status $ac_status" >&5 2461 $as_echo "$as_me: failed program was:" >&5 2462 sed 's/^/| /' conftest.$ac_ext >&5 2463 2464 ac_retval=$ac_status 2465 fi 2466 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2467 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2468 as_fn_set_status $ac_retval 2469 2470 } # ac_fn_cxx_try_run 2471 2472 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES 2473 # --------------------------------------------------------- 2474 # Tests whether HEADER exists and can be compiled using the include files in 2475 # INCLUDES, setting the cache variable VAR accordingly. 2476 ac_fn_cxx_check_header_compile () 2477 { 2478 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2480 $as_echo_n "checking for $2... " >&6; } 2481 if eval \${$3+:} false; then : 2482 $as_echo_n "(cached) " >&6 2483 else 2484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2485 /* end confdefs.h. */ 2486 $4 2487 #include <$2> 2488 _ACEOF 2489 if ac_fn_cxx_try_compile "$LINENO"; then : 2490 eval "$3=yes" 2491 else 2492 eval "$3=no" 2493 fi 2494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2495 fi 2496 eval ac_res=\$$3 2497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2498 $as_echo "$ac_res" >&6; } 2499 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2500 2501 } # ac_fn_cxx_check_header_compile 2502 2503 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES 2504 # ---------------------------------------------- 2505 # Tries to find the compile-time value of EXPR in a program that includes 2506 # INCLUDES, setting VAR accordingly. Returns whether the value could be 2507 # computed 2508 ac_fn_cxx_compute_int () 2509 { 2510 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2511 if test "$cross_compiling" = yes; then 2512 # Depending upon the size, compute the lo and hi bounds. 2513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2514 /* end confdefs.h. */ 2515 $4 2516 int 2517 main () 2518 { 2519 static int test_array [1 - 2 * !(($2) >= 0)]; 2520 test_array [0] = 0; 2521 return test_array [0]; 2522 2523 ; 2524 return 0; 2525 } 2526 _ACEOF 2527 if ac_fn_cxx_try_compile "$LINENO"; then : 2528 ac_lo=0 ac_mid=0 2529 while :; do 2530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2531 /* end confdefs.h. */ 2532 $4 2533 int 2534 main () 2535 { 2536 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2537 test_array [0] = 0; 2538 return test_array [0]; 2539 2540 ; 2541 return 0; 2542 } 2543 _ACEOF 2544 if ac_fn_cxx_try_compile "$LINENO"; then : 2545 ac_hi=$ac_mid; break 2546 else 2547 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2548 if test $ac_lo -le $ac_mid; then 2549 ac_lo= ac_hi= 2550 break 2551 fi 2552 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2553 fi 2554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2555 done 2556 else 2557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2558 /* end confdefs.h. */ 2559 $4 2560 int 2561 main () 2562 { 2563 static int test_array [1 - 2 * !(($2) < 0)]; 2564 test_array [0] = 0; 2565 return test_array [0]; 2566 2567 ; 2568 return 0; 2569 } 2570 _ACEOF 2571 if ac_fn_cxx_try_compile "$LINENO"; then : 2572 ac_hi=-1 ac_mid=-1 2573 while :; do 2574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2575 /* end confdefs.h. */ 2576 $4 2577 int 2578 main () 2579 { 2580 static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2581 test_array [0] = 0; 2582 return test_array [0]; 2583 2584 ; 2585 return 0; 2586 } 2587 _ACEOF 2588 if ac_fn_cxx_try_compile "$LINENO"; then : 2589 ac_lo=$ac_mid; break 2590 else 2591 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2592 if test $ac_mid -le $ac_hi; then 2593 ac_lo= ac_hi= 2594 break 2595 fi 2596 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2597 fi 2598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2599 done 2600 else 2601 ac_lo= ac_hi= 2602 fi 2603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2604 fi 2605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2606 # Binary search between lo and hi bounds. 2607 while test "x$ac_lo" != "x$ac_hi"; do 2608 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2610 /* end confdefs.h. */ 2611 $4 2612 int 2613 main () 2614 { 2615 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2616 test_array [0] = 0; 2617 return test_array [0]; 2618 2619 ; 2620 return 0; 2621 } 2622 _ACEOF 2623 if ac_fn_cxx_try_compile "$LINENO"; then : 2624 ac_hi=$ac_mid 2625 else 2626 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2627 fi 2628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2629 done 2630 case $ac_lo in #(( 2631 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2632 '') ac_retval=1 ;; 2633 esac 2634 else 2635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2636 /* end confdefs.h. */ 2637 $4 2638 static long int longval () { return $2; } 2639 static unsigned long int ulongval () { return $2; } 2640 #include <stdio.h> 2641 #include <stdlib.h> 2642 int 2643 main () 2644 { 2645 2646 FILE *f = fopen ("conftest.val", "w"); 2647 if (! f) 2648 return 1; 2649 if (($2) < 0) 2650 { 2651 long int i = longval (); 2652 if (i != ($2)) 2653 return 1; 2654 fprintf (f, "%ld", i); 2655 } 2656 else 2657 { 2658 unsigned long int i = ulongval (); 2659 if (i != ($2)) 2660 return 1; 2661 fprintf (f, "%lu", i); 2662 } 2663 /* Do not output a trailing newline, as this causes \r\n confusion 2664 on some platforms. */ 2665 return ferror (f) || fclose (f) != 0; 2666 2667 ; 2668 return 0; 2669 } 2670 _ACEOF 2671 if ac_fn_cxx_try_run "$LINENO"; then : 2672 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2673 else 2674 ac_retval=1 2675 fi 2676 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2677 conftest.$ac_objext conftest.beam conftest.$ac_ext 2678 rm -f conftest.val 2679 2680 fi 2681 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2682 as_fn_set_status $ac_retval 2683 2684 } # ac_fn_cxx_compute_int 2685 2686 # ac_fn_cxx_try_link LINENO 2687 # ------------------------- 2688 # Try to link conftest.$ac_ext, and return whether this succeeded. 2689 ac_fn_cxx_try_link () 2690 { 2691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2692 rm -f conftest.$ac_objext conftest$ac_exeext 2693 if { { ac_try="$ac_link" 2694 case "(($ac_try" in 2695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2696 *) ac_try_echo=$ac_try;; 2697 esac 2698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2699 $as_echo "$ac_try_echo"; } >&5 2700 (eval "$ac_link") 2>conftest.err 2701 ac_status=$? 2702 if test -s conftest.err; then 2703 grep -v '^ *+' conftest.err >conftest.er1 2704 cat conftest.er1 >&5 2705 mv -f conftest.er1 conftest.err 2706 fi 2707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2708 test $ac_status = 0; } && { 2709 test -z "$ac_cxx_werror_flag" || 2710 test ! -s conftest.err 2711 } && test -s conftest$ac_exeext && { 2712 test "$cross_compiling" = yes || 2713 test -x conftest$ac_exeext 2714 }; then : 2715 ac_retval=0 2716 else 2717 $as_echo "$as_me: failed program was:" >&5 2718 sed 's/^/| /' conftest.$ac_ext >&5 2719 2720 ac_retval=1 2721 fi 2722 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2723 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2724 # interfere with the next link command; also delete a directory that is 2725 # left behind by Apple's compiler. We do this before executing the actions. 2726 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2727 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2728 as_fn_set_status $ac_retval 2729 2730 } # ac_fn_cxx_try_link 2731 2732 # ac_fn_cxx_check_func LINENO FUNC VAR 2733 # ------------------------------------ 2734 # Tests whether FUNC exists, setting the cache variable VAR accordingly 2735 ac_fn_cxx_check_func () 2736 { 2737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2739 $as_echo_n "checking for $2... " >&6; } 2740 if eval \${$3+:} false; then : 2741 $as_echo_n "(cached) " >&6 2742 else 2743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2744 /* end confdefs.h. */ 2745 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2746 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2747 #define $2 innocuous_$2 2748 2749 /* System header to define __stub macros and hopefully few prototypes, 2750 which can conflict with char $2 (); below. 2751 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2752 <limits.h> exists even on freestanding compilers. */ 2753 2754 #ifdef __STDC__ 2755 # include <limits.h> 2756 #else 2757 # include <assert.h> 2758 #endif 2759 2760 #undef $2 2761 2762 /* Override any GCC internal prototype to avoid an error. 2763 Use char because int might match the return type of a GCC 2764 builtin and then its argument prototype would still apply. */ 2765 #ifdef __cplusplus 2766 extern "C" 2767 #endif 2768 char $2 (); 2769 /* The GNU C library defines this for functions which it implements 2770 to always fail with ENOSYS. Some functions are actually named 2771 something starting with __ and the normal name is an alias. */ 2772 #if defined __stub_$2 || defined __stub___$2 2773 choke me 2774 #endif 2775 2776 int 2777 main () 2778 { 2779 return $2 (); 2780 ; 2781 return 0; 2782 } 2783 _ACEOF 2784 if ac_fn_cxx_try_link "$LINENO"; then : 2785 eval "$3=yes" 2786 else 2787 eval "$3=no" 2788 fi 2789 rm -f core conftest.err conftest.$ac_objext \ 2790 conftest$ac_exeext conftest.$ac_ext 2791 fi 2792 eval ac_res=\$$3 2793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2794 $as_echo "$ac_res" >&6; } 2795 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2796 2797 } # ac_fn_cxx_check_func 2798 2799 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2800 # ------------------------------------------------------- 2801 # Tests whether HEADER exists and can be compiled using the include files in 2802 # INCLUDES, setting the cache variable VAR accordingly. 2803 ac_fn_c_check_header_compile () 2804 { 2805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2807 $as_echo_n "checking for $2... " >&6; } 2808 if eval \${$3+:} false; then : 2809 $as_echo_n "(cached) " >&6 2810 else 2811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2812 /* end confdefs.h. */ 2813 $4 2814 #include <$2> 2815 _ACEOF 2816 if ac_fn_c_try_compile "$LINENO"; then : 2817 eval "$3=yes" 2818 else 2819 eval "$3=no" 2820 fi 2821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2822 fi 2823 eval ac_res=\$$3 2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2825 $as_echo "$ac_res" >&6; } 2826 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2827 2828 } # ac_fn_c_check_header_compile 2829 cat >config.log <<_ACEOF 2830 This file contains any messages produced by compilers while 2831 running configure, to aid debugging if configure makes a mistake. 2832 2833 It was created by OpenJDK $as_me jdk9, which was 2834 generated by GNU Autoconf 2.69. Invocation command line was 2835 2836 $ $0 $@ 2837 2838 _ACEOF 2839 exec 5>>config.log 2840 { 2841 cat <<_ASUNAME 2842 ## --------- ## 2843 ## Platform. ## 2844 ## --------- ## 2845 2846 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2847 uname -m = `(uname -m) 2>/dev/null || echo unknown` 2848 uname -r = `(uname -r) 2>/dev/null || echo unknown` 2849 uname -s = `(uname -s) 2>/dev/null || echo unknown` 2850 uname -v = `(uname -v) 2>/dev/null || echo unknown` 2851 2852 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2853 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2854 2855 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2856 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2857 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2858 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2859 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2860 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2861 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2862 2863 _ASUNAME 2864 2865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2866 for as_dir in $PATH 2867 do 2868 IFS=$as_save_IFS 2869 test -z "$as_dir" && as_dir=. 2870 $as_echo "PATH: $as_dir" 2871 done 2872 IFS=$as_save_IFS 2873 2874 } >&5 2875 2876 cat >&5 <<_ACEOF 2877 2878 2879 ## ----------- ## 2880 ## Core tests. ## 2881 ## ----------- ## 2882 2883 _ACEOF 2884 2885 2886 # Keep a trace of the command line. 2887 # Strip out --no-create and --no-recursion so they do not pile up. 2888 # Strip out --silent because we don't want to record it for future runs. 2889 # Also quote any args containing shell meta-characters. 2890 # Make two passes to allow for proper duplicate-argument suppression. 2891 ac_configure_args= 2892 ac_configure_args0= 2893 ac_configure_args1= 2894 ac_must_keep_next=false 2895 for ac_pass in 1 2 2896 do 2897 for ac_arg 2898 do 2899 case $ac_arg in 2900 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2901 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2902 | -silent | --silent | --silen | --sile | --sil) 2903 continue ;; 2904 *\'*) 2905 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2906 esac 2907 case $ac_pass in 2908 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2909 2) 2910 as_fn_append ac_configure_args1 " '$ac_arg'" 2911 if test $ac_must_keep_next = true; then 2912 ac_must_keep_next=false # Got value, back to normal. 2913 else 2914 case $ac_arg in 2915 *=* | --config-cache | -C | -disable-* | --disable-* \ 2916 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2917 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2918 | -with-* | --with-* | -without-* | --without-* | --x) 2919 case "$ac_configure_args0 " in 2920 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2921 esac 2922 ;; 2923 -* ) ac_must_keep_next=true ;; 2924 esac 2925 fi 2926 as_fn_append ac_configure_args " '$ac_arg'" 2927 ;; 2928 esac 2929 done 2930 done 2931 { ac_configure_args0=; unset ac_configure_args0;} 2932 { ac_configure_args1=; unset ac_configure_args1;} 2933 2934 # When interrupted or exit'd, cleanup temporary files, and complete 2935 # config.log. We remove comments because anyway the quotes in there 2936 # would cause problems or look ugly. 2937 # WARNING: Use '\'' to represent an apostrophe within the trap. 2938 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2939 trap 'exit_status=$? 2940 # Save into config.log some information that might help in debugging. 2941 { 2942 echo 2943 2944 $as_echo "## ---------------- ## 2945 ## Cache variables. ## 2946 ## ---------------- ##" 2947 echo 2948 # The following way of writing the cache mishandles newlines in values, 2949 ( 2950 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2951 eval ac_val=\$$ac_var 2952 case $ac_val in #( 2953 *${as_nl}*) 2954 case $ac_var in #( 2955 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2956 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2957 esac 2958 case $ac_var in #( 2959 _ | IFS | as_nl) ;; #( 2960 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2961 *) { eval $ac_var=; unset $ac_var;} ;; 2962 esac ;; 2963 esac 2964 done 2965 (set) 2>&1 | 2966 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2967 *${as_nl}ac_space=\ *) 2968 sed -n \ 2969 "s/'\''/'\''\\\\'\'''\''/g; 2970 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2971 ;; #( 2972 *) 2973 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2974 ;; 2975 esac | 2976 sort 2977 ) 2978 echo 2979 2980 $as_echo "## ----------------- ## 2981 ## Output variables. ## 2982 ## ----------------- ##" 2983 echo 2984 for ac_var in $ac_subst_vars 2985 do 2986 eval ac_val=\$$ac_var 2987 case $ac_val in 2988 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2989 esac 2990 $as_echo "$ac_var='\''$ac_val'\''" 2991 done | sort 2992 echo 2993 2994 if test -n "$ac_subst_files"; then 2995 $as_echo "## ------------------- ## 2996 ## File substitutions. ## 2997 ## ------------------- ##" 2998 echo 2999 for ac_var in $ac_subst_files 3000 do 3001 eval ac_val=\$$ac_var 3002 case $ac_val in 3003 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3004 esac 3005 $as_echo "$ac_var='\''$ac_val'\''" 3006 done | sort 3007 echo 3008 fi 3009 3010 if test -s confdefs.h; then 3011 $as_echo "## ----------- ## 3012 ## confdefs.h. ## 3013 ## ----------- ##" 3014 echo 3015 cat confdefs.h 3016 echo 3017 fi 3018 test "$ac_signal" != 0 && 3019 $as_echo "$as_me: caught signal $ac_signal" 3020 $as_echo "$as_me: exit $exit_status" 3021 } >&5 3022 rm -f core *.core core.conftest.* && 3023 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 3024 exit $exit_status 3025 ' 0 3026 for ac_signal in 1 2 13 15; do 3027 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 3028 done 3029 ac_signal=0 3030 3031 # confdefs.h avoids OS command line length limits that DEFS can exceed. 3032 rm -f -r conftest* confdefs.h 3033 3034 $as_echo "/* confdefs.h */" > confdefs.h 3035 3036 # Predefined preprocessor variables. 3037 3038 cat >>confdefs.h <<_ACEOF 3039 #define PACKAGE_NAME "$PACKAGE_NAME" 3040 _ACEOF 3041 3042 cat >>confdefs.h <<_ACEOF 3043 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 3044 _ACEOF 3045 3046 cat >>confdefs.h <<_ACEOF 3047 #define PACKAGE_VERSION "$PACKAGE_VERSION" 3048 _ACEOF 3049 3050 cat >>confdefs.h <<_ACEOF 3051 #define PACKAGE_STRING "$PACKAGE_STRING" 3052 _ACEOF 3053 3054 cat >>confdefs.h <<_ACEOF 3055 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 3056 _ACEOF 3057 3058 cat >>confdefs.h <<_ACEOF 3059 #define PACKAGE_URL "$PACKAGE_URL" 3060 _ACEOF 3061 3062 3063 # Let the site file select an alternate cache file if it wants to. 3064 # Prefer an explicitly selected file to automatically selected ones. 3065 ac_site_file1=NONE 3066 ac_site_file2=NONE 3067 if test -n "$CONFIG_SITE"; then 3068 # We do not want a PATH search for config.site. 3069 case $CONFIG_SITE in #(( 3070 -*) ac_site_file1=./$CONFIG_SITE;; 3071 */*) ac_site_file1=$CONFIG_SITE;; 3072 *) ac_site_file1=./$CONFIG_SITE;; 3073 esac 3074 elif test "x$prefix" != xNONE; then 3075 ac_site_file1=$prefix/share/config.site 3076 ac_site_file2=$prefix/etc/config.site 3077 else 3078 ac_site_file1=$ac_default_prefix/share/config.site 3079 ac_site_file2=$ac_default_prefix/etc/config.site 3080 fi 3081 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 3082 do 3083 test "x$ac_site_file" = xNONE && continue 3084 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 3085 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 3086 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 3087 sed 's/^/| /' "$ac_site_file" >&5 3088 . "$ac_site_file" \ 3089 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3090 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3091 as_fn_error $? "failed to load site script $ac_site_file 3092 See \`config.log' for more details" "$LINENO" 5; } 3093 fi 3094 done 3095 3096 if test -r "$cache_file"; then 3097 # Some versions of bash will fail to source /dev/null (special files 3098 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 3099 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 3100 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 3101 $as_echo "$as_me: loading cache $cache_file" >&6;} 3102 case $cache_file in 3103 [\\/]* | ?:[\\/]* ) . "$cache_file";; 3104 *) . "./$cache_file";; 3105 esac 3106 fi 3107 else 3108 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 3109 $as_echo "$as_me: creating cache $cache_file" >&6;} 3110 >$cache_file 3111 fi 3112 3113 # Check that the precious variables saved in the cache have kept the same 3114 # value. 3115 ac_cache_corrupted=false 3116 for ac_var in $ac_precious_vars; do 3117 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3118 eval ac_new_set=\$ac_env_${ac_var}_set 3119 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3120 eval ac_new_val=\$ac_env_${ac_var}_value 3121 case $ac_old_set,$ac_new_set in 3122 set,) 3123 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3124 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3125 ac_cache_corrupted=: ;; 3126 ,set) 3127 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3128 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3129 ac_cache_corrupted=: ;; 3130 ,);; 3131 *) 3132 if test "x$ac_old_val" != "x$ac_new_val"; then 3133 # differences in whitespace do not lead to failure. 3134 ac_old_val_w=`echo x $ac_old_val` 3135 ac_new_val_w=`echo x $ac_new_val` 3136 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3137 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3138 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3139 ac_cache_corrupted=: 3140 else 3141 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3142 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3143 eval $ac_var=\$ac_old_val 3144 fi 3145 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3146 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 3147 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3148 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 3149 fi;; 3150 esac 3151 # Pass precious variables to config.status. 3152 if test "$ac_new_set" = set; then 3153 case $ac_new_val in 3154 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3155 *) ac_arg=$ac_var=$ac_new_val ;; 3156 esac 3157 case " $ac_configure_args " in 3158 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3159 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3160 esac 3161 fi 3162 done 3163 if $ac_cache_corrupted; then 3164 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3165 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3166 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3167 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 3168 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 3169 fi 3170 ## -------------------- ## 3171 ## Main body of script. ## 3172 ## -------------------- ## 3173 3174 ac_ext=c 3175 ac_cpp='$CPP $CPPFLAGS' 3176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3178 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3179 3180 3181 3182 ac_aux_dir= 3183 for ac_dir in $TOPDIR/common/autoconf/build-aux "$srcdir"/$TOPDIR/common/autoconf/build-aux; do 3184 if test -f "$ac_dir/install-sh"; then 3185 ac_aux_dir=$ac_dir 3186 ac_install_sh="$ac_aux_dir/install-sh -c" 3187 break 3188 elif test -f "$ac_dir/install.sh"; then 3189 ac_aux_dir=$ac_dir 3190 ac_install_sh="$ac_aux_dir/install.sh -c" 3191 break 3192 elif test -f "$ac_dir/shtool"; then 3193 ac_aux_dir=$ac_dir 3194 ac_install_sh="$ac_aux_dir/shtool install -c" 3195 break 3196 fi 3197 done 3198 if test -z "$ac_aux_dir"; then 3199 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 3200 fi 3201 3202 # These three variables are undocumented and unsupported, 3203 # and are intended to be withdrawn in a future Autoconf release. 3204 # They can cause serious problems if a builder's source tree is in a directory 3205 # whose full name contains unusual characters. 3206 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3207 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3208 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3209 3210 3211 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- 3212 3213 # 3214 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. 3215 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3216 # 3217 # This code is free software; you can redistribute it and/or modify it 3218 # under the terms of the GNU General Public License version 2 only, as 3219 # published by the Free Software Foundation. Oracle designates this 3220 # particular file as subject to the "Classpath" exception as provided 3221 # by Oracle in the LICENSE file that accompanied this code. 3222 # 3223 # This code is distributed in the hope that it will be useful, but WITHOUT 3224 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3225 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3226 # version 2 for more details (a copy is included in the LICENSE file that 3227 # accompanied this code). 3228 # 3229 # You should have received a copy of the GNU General Public License version 3230 # 2 along with this work; if not, write to the Free Software Foundation, 3231 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3232 # 3233 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3234 # or visit www.oracle.com if you need additional information or have any 3235 # questions. 3236 # 3237 3238 # 3239 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>. 3240 # 3241 # This program is free software; you can redistribute it and/or modify 3242 # it under the terms of the GNU General Public License as published by 3243 # the Free Software Foundation; either version 2 of the License, or 3244 # (at your option) any later version. 3245 # 3246 # This program is distributed in the hope that it will be useful, but 3247 # WITHOUT ANY WARRANTY; without even the implied warranty of 3248 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 3249 # General Public License for more details. 3250 # 3251 # You should have received a copy of the GNU General Public License 3252 # along with this program; if not, write to the Free Software 3253 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 3254 # 3255 # As a special exception to the GNU General Public License, if you 3256 # distribute this file as part of a program that contains a 3257 # configuration script generated by Autoconf, you may include it under 3258 # the same distribution terms that you use for the rest of that program. 3259 3260 # PKG_PROG_PKG_CONFIG([MIN-VERSION]) 3261 # ---------------------------------- 3262 # PKG_PROG_PKG_CONFIG 3263 3264 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 3265 # 3266 # Check to see whether a particular set of modules exists. Similar 3267 # to PKG_CHECK_MODULES(), but does not set variables or print errors. 3268 # 3269 # 3270 # Similar to PKG_CHECK_MODULES, make sure that the first instance of 3271 # this or PKG_CHECK_MODULES is called, or make sure to call 3272 # PKG_CHECK_EXISTS manually 3273 # -------------------------------------------------------------- 3274 3275 3276 3277 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) 3278 # --------------------------------------------- 3279 # _PKG_CONFIG 3280 3281 # _PKG_SHORT_ERRORS_SUPPORTED 3282 # ----------------------------- 3283 # _PKG_SHORT_ERRORS_SUPPORTED 3284 3285 3286 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], 3287 # [ACTION-IF-NOT-FOUND]) 3288 # 3289 # 3290 # Note that if there is a possibility the first call to 3291 # PKG_CHECK_MODULES might not happen, you should be sure to include an 3292 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac 3293 # 3294 # 3295 # -------------------------------------------------------------- 3296 # PKG_CHECK_MODULES 3297 3298 3299 # Include these first... 3300 # 3301 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. 3302 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3303 # 3304 # This code is free software; you can redistribute it and/or modify it 3305 # under the terms of the GNU General Public License version 2 only, as 3306 # published by the Free Software Foundation. Oracle designates this 3307 # particular file as subject to the "Classpath" exception as provided 3308 # by Oracle in the LICENSE file that accompanied this code. 3309 # 3310 # This code is distributed in the hope that it will be useful, but WITHOUT 3311 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3312 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3313 # version 2 for more details (a copy is included in the LICENSE file that 3314 # accompanied this code). 3315 # 3316 # You should have received a copy of the GNU General Public License version 3317 # 2 along with this work; if not, write to the Free Software Foundation, 3318 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3319 # 3320 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3321 # or visit www.oracle.com if you need additional information or have any 3322 # questions. 3323 # 3324 3325 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3) 3326 # If so, then append $1 to $2 \ 3327 # Also set JVM_ARG_OK to true/false depending on outcome. 3328 3329 3330 # Appends a string to a path variable, only adding the : when needed. 3331 3332 3333 # Prepends a string to a path variable, only adding the : when needed. 3334 3335 3336 # This will make sure the given variable points to a full and proper 3337 # path. This means: 3338 # 1) There will be no spaces in the path. On posix platforms, 3339 # spaces in the path will result in an error. On Windows, 3340 # the path will be rewritten using short-style to be space-free. 3341 # 2) The path will be absolute, and it will be in unix-style (on 3342 # cygwin). 3343 # $1: The name of the variable to fix 3344 3345 3346 # This will make sure the given variable points to a executable 3347 # with a full and proper path. This means: 3348 # 1) There will be no spaces in the path. On posix platforms, 3349 # spaces in the path will result in an error. On Windows, 3350 # the path will be rewritten using short-style to be space-free. 3351 # 2) The path will be absolute, and it will be in unix-style (on 3352 # cygwin). 3353 # Any arguments given to the executable is preserved. 3354 # If the input variable does not have a directory specification, then 3355 # it need to be in the PATH. 3356 # $1: The name of the variable to fix 3357 3358 3359 3360 3361 # Register a --with argument but mark it as deprecated 3362 # $1: The name of the with argument to deprecate, not including --with- 3363 3364 3365 # Register a --enable argument but mark it as deprecated 3366 # $1: The name of the with argument to deprecate, not including --enable- 3367 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -) 3368 3369 3370 3371 3372 # Test that variable $1 denoting a program is not empty. If empty, exit with an error. 3373 # $1: variable to check 3374 3375 3376 # Check that there are no unprocessed overridden variables left. 3377 # If so, they are an incorrect argument and we will exit with an error. 3378 3379 3380 # Setup a tool for the given variable. If correctly specified by the user, 3381 # use that value, otherwise search for the tool using the supplied code snippet. 3382 # $1: variable to set 3383 # $2: code snippet to call to look for the tool 3384 3385 3386 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool 3387 # $1: variable to set 3388 # $2: executable name (or list of names) to look for 3389 3390 3391 # Call BASIC_SETUP_TOOL with AC_CHECK_TOOLS to locate the tool 3392 # $1: variable to set 3393 # $2: executable name (or list of names) to look for 3394 3395 3396 # Like BASIC_PATH_PROGS but fails if no tool was found. 3397 # $1: variable to set 3398 # $2: executable name (or list of names) to look for 3399 3400 3401 # Like BASIC_SETUP_TOOL but fails if no tool was found. 3402 # $1: variable to set 3403 # $2: autoconf macro to call to look for the special tool 3404 3405 3406 # Setup the most fundamental tools that relies on not much else to set up, 3407 # but is used by much of the early bootstrap code. 3408 3409 3410 # Setup basic configuration paths, and platform-specific stuff related to PATHs. 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 #%%% Simple tools %%% 3421 3422 # Check if we have found a usable version of make 3423 # $1: the path to a potential make binary (or empty) 3424 # $2: the description on how we found this 3425 3426 3427 # Goes looking for a usable version of GNU make. 3428 3429 3430 3431 3432 3433 3434 # Check if build directory is on local disk. If not possible to determine, 3435 # we prefer to claim it's local. 3436 # Argument 1: directory to test 3437 # Argument 2: what to do if it is on local disk 3438 # Argument 3: what to do otherwise (remote disk or failure) 3439 3440 3441 # Check that source files have basic read permissions set. This might 3442 # not be the case in cygwin in certain conditions. 3443 3444 3445 3446 3447 # 3448 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3449 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3450 # 3451 # This code is free software; you can redistribute it and/or modify it 3452 # under the terms of the GNU General Public License version 2 only, as 3453 # published by the Free Software Foundation. Oracle designates this 3454 # particular file as subject to the "Classpath" exception as provided 3455 # by Oracle in the LICENSE file that accompanied this code. 3456 # 3457 # This code is distributed in the hope that it will be useful, but WITHOUT 3458 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3459 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3460 # version 2 for more details (a copy is included in the LICENSE file that 3461 # accompanied this code). 3462 # 3463 # You should have received a copy of the GNU General Public License version 3464 # 2 along with this work; if not, write to the Free Software Foundation, 3465 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3466 # 3467 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3468 # or visit www.oracle.com if you need additional information or have any 3469 # questions. 3470 # 3471 3472 3473 3474 3475 3476 # Helper function which possibly converts a path using DOS-style short mode. 3477 # If so, the updated path is stored in $new_path. 3478 # $1: The path to check 3479 3480 3481 # Helper function which possibly converts a path using DOS-style short mode. 3482 # If so, the updated path is stored in $new_path. 3483 # $1: The path to check 3484 3485 3486 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted 3487 # and could probably be heavily simplified. However, all changes in this 3488 # area tend to need lot of testing in different scenarios, and in lack of 3489 # proper unit testing, cleaning this up has not been deemed worth the effort 3490 # at the moment. 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 # Setup basic configuration paths, and platform-specific stuff related to PATHs. 3501 3502 3503 3504 3505 # 3506 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3507 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3508 # 3509 # This code is free software; you can redistribute it and/or modify it 3510 # under the terms of the GNU General Public License version 2 only, as 3511 # published by the Free Software Foundation. Oracle designates this 3512 # particular file as subject to the "Classpath" exception as provided 3513 # by Oracle in the LICENSE file that accompanied this code. 3514 # 3515 # This code is distributed in the hope that it will be useful, but WITHOUT 3516 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3517 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3518 # version 2 for more details (a copy is included in the LICENSE file that 3519 # accompanied this code). 3520 # 3521 # You should have received a copy of the GNU General Public License version 3522 # 2 along with this work; if not, write to the Free Software Foundation, 3523 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3524 # 3525 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3526 # or visit www.oracle.com if you need additional information or have any 3527 # questions. 3528 # 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 # ... then the rest 3541 # 3542 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. 3543 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3544 # 3545 # This code is free software; you can redistribute it and/or modify it 3546 # under the terms of the GNU General Public License version 2 only, as 3547 # published by the Free Software Foundation. Oracle designates this 3548 # particular file as subject to the "Classpath" exception as provided 3549 # by Oracle in the LICENSE file that accompanied this code. 3550 # 3551 # This code is distributed in the hope that it will be useful, but WITHOUT 3552 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3553 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3554 # version 2 for more details (a copy is included in the LICENSE file that 3555 # accompanied this code). 3556 # 3557 # You should have received a copy of the GNU General Public License version 3558 # 2 along with this work; if not, write to the Free Software Foundation, 3559 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3560 # 3561 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3562 # or visit www.oracle.com if you need additional information or have any 3563 # questions. 3564 # 3565 3566 ######################################################################## 3567 # This file handles detection of the Boot JDK. The Boot JDK detection 3568 # process has been developed as a response to solve a complex real-world 3569 # problem. Initially, it was simple, but it has grown as platform after 3570 # platform, idiosyncracy after idiosyncracy has been supported. 3571 # 3572 # The basic idea is this: 3573 # 1) You need an acceptable *) JDK to use as a Boot JDK 3574 # 2) There are several ways to locate a JDK, that are mostly platform 3575 # dependent **) 3576 # 3) You can have multiple JDKs installed 3577 # 4) If possible, configure should try to dig out an acceptable JDK 3578 # automatically, without having to resort to command-line options 3579 # 3580 # *) acceptable means e.g. JDK7 for building JDK8, a complete JDK (with 3581 # javac) and not a JRE, etc. 3582 # 3583 # **) On Windows we typically use a well-known path. 3584 # On MacOSX we typically use the tool java_home. 3585 # On Linux we typically find javac in the $PATH, and then follow a 3586 # chain of symlinks that often ends up in a real JDK. 3587 # 3588 # This leads to the code where we check in different ways to locate a 3589 # JDK, and if one is found, check if it is acceptable. If not, we print 3590 # our reasons for rejecting it (useful when debugging non-working 3591 # configure situations) and continue checking the next one. 3592 ######################################################################## 3593 3594 # Execute the check given as argument, and verify the result 3595 # If the Boot JDK was previously found, do nothing 3596 # $1 A command line (typically autoconf macro) to execute 3597 3598 3599 # Test: Is bootjdk explicitely set by command line arguments? 3600 3601 3602 # Test: Is bootjdk available from builddeps? 3603 3604 3605 # Test: Is $JAVA_HOME set? 3606 3607 3608 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK? 3609 3610 3611 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX) 3612 # $1: Argument to the java_home binary (optional) 3613 3614 3615 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home? 3616 3617 3618 # Look for a jdk in the given path. If there are multiple, try to select the newest. 3619 # If found, set BOOT_JDK and BOOT_JDK_FOUND. 3620 # $1 = Path to directory containing jdk installations. 3621 # $2 = String to append to the found JDK directory to get the proper JDK home 3622 3623 3624 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given 3625 # environmental variable as base for where to look. 3626 # $1 Name of an environmal variable, assumed to point to the Program Files directory. 3627 3628 3629 # Test: Is there a JDK installed in default, well-known locations? 3630 3631 3632 # Check that a command-line tool in the Boot JDK is correct 3633 # $1 = name of variable to assign 3634 # $2 = name of binary 3635 3636 3637 ############################################################################### 3638 # 3639 # We need a Boot JDK to bootstrap the build. 3640 # 3641 3642 3643 3644 3645 3646 # 3647 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3648 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3649 # 3650 # This code is free software; you can redistribute it and/or modify it 3651 # under the terms of the GNU General Public License version 2 only, as 3652 # published by the Free Software Foundation. Oracle designates this 3653 # particular file as subject to the "Classpath" exception as provided 3654 # by Oracle in the LICENSE file that accompanied this code. 3655 # 3656 # This code is distributed in the hope that it will be useful, but WITHOUT 3657 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3658 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3659 # version 2 for more details (a copy is included in the LICENSE file that 3660 # accompanied this code). 3661 # 3662 # You should have received a copy of the GNU General Public License version 3663 # 2 along with this work; if not, write to the Free Software Foundation, 3664 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3665 # 3666 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3667 # or visit www.oracle.com if you need additional information or have any 3668 # questions. 3669 # 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 # 3691 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. 3692 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3693 # 3694 # This code is free software; you can redistribute it and/or modify it 3695 # under the terms of the GNU General Public License version 2 only, as 3696 # published by the Free Software Foundation. Oracle designates this 3697 # particular file as subject to the "Classpath" exception as provided 3698 # by Oracle in the LICENSE file that accompanied this code. 3699 # 3700 # This code is distributed in the hope that it will be useful, but WITHOUT 3701 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3702 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3703 # version 2 for more details (a copy is included in the LICENSE file that 3704 # accompanied this code). 3705 # 3706 # You should have received a copy of the GNU General Public License version 3707 # 2 along with this work; if not, write to the Free Software Foundation, 3708 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3709 # 3710 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3711 # or visit www.oracle.com if you need additional information or have any 3712 # questions. 3713 # 3714 3715 3716 3717 3718 3719 # Documentation on common flags used for solstudio in HIGHEST. 3720 # 3721 # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be 3722 # done with care, there are some assumptions below that need to 3723 # be understood about the use of pointers, and IEEE behavior. 3724 # 3725 # -fns: Use non-standard floating point mode (not IEEE 754) 3726 # -fsimple: Do some simplification of floating point arithmetic (not IEEE 754) 3727 # -fsingle: Use single precision floating point with 'float' 3728 # -xalias_level=basic: Assume memory references via basic pointer types do not alias 3729 # (Source with excessing pointer casting and data access with mixed 3730 # pointer types are not recommended) 3731 # -xbuiltin=%all: Use intrinsic or inline versions for math/std functions 3732 # (If you expect perfect errno behavior, do not use this) 3733 # -xdepend: Loop data dependency optimizations (need -xO3 or higher) 3734 # -xrestrict: Pointer parameters to functions do not overlap 3735 # (Similar to -xalias_level=basic usage, but less obvious sometimes. 3736 # If you pass in multiple pointers to the same data, do not use this) 3737 # -xlibmil: Inline some library routines 3738 # (If you expect perfect errno behavior, do not use this) 3739 # -xlibmopt: Use optimized math routines (CURRENTLY DISABLED) 3740 # (If you expect perfect errno behavior, do not use this) 3741 # Can cause undefined external on Solaris 8 X86 on __sincos, removing for now 3742 3743 # FIXME: this will never happen since sparc != sparcv9, ie 32 bit, which we don't build anymore. 3744 # Bug? 3745 #if test "x$OPENJDK_TARGET_CPU" = xsparc; then 3746 # CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s" 3747 # CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s" 3748 #fi 3749 3750 3751 3752 3753 3754 3755 # FLAGS_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE], 3756 # [RUN-IF-FALSE]) 3757 # ------------------------------------------------------------ 3758 # Check that the c and c++ compilers support an argument 3759 3760 3761 3762 3763 # 3764 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. 3765 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3766 # 3767 # This code is free software; you can redistribute it and/or modify it 3768 # under the terms of the GNU General Public License version 2 only, as 3769 # published by the Free Software Foundation. Oracle designates this 3770 # particular file as subject to the "Classpath" exception as provided 3771 # by Oracle in the LICENSE file that accompanied this code. 3772 # 3773 # This code is distributed in the hope that it will be useful, but WITHOUT 3774 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3775 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3776 # version 2 for more details (a copy is included in the LICENSE file that 3777 # accompanied this code). 3778 # 3779 # You should have received a copy of the GNU General Public License version 3780 # 2 along with this work; if not, write to the Free Software Foundation, 3781 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3782 # 3783 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3784 # or visit www.oracle.com if you need additional information or have any 3785 # questions. 3786 # 3787 3788 3789 3790 3791 3792 cygwin_help() { 3793 case $1 in 3794 unzip) 3795 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )" 3796 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 3797 ;; 3798 zip) 3799 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )" 3800 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 3801 ;; 3802 make) 3803 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )" 3804 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 3805 ;; 3806 freetype) 3807 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 3808 HELP_MSG="To install freetype, run: 3809 wget \"http://gnuwin32.sourceforge.net/downlinks/freetype.php\" -O /tmp/freetype-setup.exe 3810 chmod +x /tmp/freetype-setup.exe 3811 /tmp/freetype-setup.exe 3812 Follow GUI prompts, and install to default directory \"C:\Program Files (x86)\GnuWin32\". 3813 After installation, locate lib/libfreetype.dll.a and make a copy with the name freetype.dll." 3814 else 3815 HELP_MSG="You need to build a 64-bit version of freetype. 3816 This is not readily available. 3817 You can find source code and build instructions on 3818 http://www.freetype.org/ 3819 If you put the resulting build in \"C:\Program Files\GnuWin32\", it will be found automatically." 3820 fi 3821 ;; 3822 esac 3823 } 3824 3825 msys_help() { 3826 PKGHANDLER_COMMAND="" 3827 } 3828 3829 apt_help() { 3830 case $1 in 3831 devkit) 3832 PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;; 3833 openjdk) 3834 PKGHANDLER_COMMAND="sudo apt-get install openjdk-7-jdk" ;; 3835 alsa) 3836 PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;; 3837 cups) 3838 PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;; 3839 freetype) 3840 PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;; 3841 pulse) 3842 PKGHANDLER_COMMAND="sudo apt-get install libpulse-dev" ;; 3843 x11) 3844 PKGHANDLER_COMMAND="sudo apt-get install libX11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;; 3845 ccache) 3846 PKGHANDLER_COMMAND="sudo apt-get install ccache" ;; 3847 esac 3848 } 3849 3850 yum_help() { 3851 case $1 in 3852 devkit) 3853 PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;; 3854 openjdk) 3855 PKGHANDLER_COMMAND="sudo yum install java-1.7.0-openjdk" ;; 3856 alsa) 3857 PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;; 3858 cups) 3859 PKGHANDLER_COMMAND="sudo yum install cups-devel" ;; 3860 freetype) 3861 PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;; 3862 pulse) 3863 PKGHANDLER_COMMAND="sudo yum install pulseaudio-libs-devel" ;; 3864 x11) 3865 PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel" ;; 3866 ccache) 3867 PKGHANDLER_COMMAND="sudo yum install ccache" ;; 3868 esac 3869 } 3870 3871 port_help() { 3872 PKGHANDLER_COMMAND="" 3873 } 3874 3875 pkgutil_help() { 3876 PKGHANDLER_COMMAND="" 3877 } 3878 3879 pkgadd_help() { 3880 PKGHANDLER_COMMAND="" 3881 } 3882 3883 # This function will check if we're called from the "configure" wrapper while 3884 # printing --help. If so, we will print out additional information that can 3885 # only be extracted within the autoconf script, and then exit. This must be 3886 # called at the very beginning in configure.ac. 3887 3888 3889 3890 3891 # 3892 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. 3893 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3894 # 3895 # This code is free software; you can redistribute it and/or modify it 3896 # under the terms of the GNU General Public License version 2 only, as 3897 # published by the Free Software Foundation. Oracle designates this 3898 # particular file as subject to the "Classpath" exception as provided 3899 # by Oracle in the LICENSE file that accompanied this code. 3900 # 3901 # This code is distributed in the hope that it will be useful, but WITHOUT 3902 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3903 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3904 # version 2 for more details (a copy is included in the LICENSE file that 3905 # accompanied this code). 3906 # 3907 # You should have received a copy of the GNU General Public License version 3908 # 2 along with this work; if not, write to the Free Software Foundation, 3909 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3910 # 3911 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3912 # or visit www.oracle.com if you need additional information or have any 3913 # questions. 3914 # 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 ############################################################################### 3926 # 3927 # Should we build only OpenJDK even if closed sources are present? 3928 # 3929 3930 3931 3932 3933 ############################################################################### 3934 # 3935 # Setup version numbers 3936 # 3937 3938 3939 3940 3941 3942 3943 # 3944 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. 3945 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3946 # 3947 # This code is free software; you can redistribute it and/or modify it 3948 # under the terms of the GNU General Public License version 2 only, as 3949 # published by the Free Software Foundation. Oracle designates this 3950 # particular file as subject to the "Classpath" exception as provided 3951 # by Oracle in the LICENSE file that accompanied this code. 3952 # 3953 # This code is distributed in the hope that it will be useful, but WITHOUT 3954 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3955 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3956 # version 2 for more details (a copy is included in the LICENSE file that 3957 # accompanied this code). 3958 # 3959 # You should have received a copy of the GNU General Public License version 3960 # 2 along with this work; if not, write to the Free Software Foundation, 3961 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3962 # 3963 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3964 # or visit www.oracle.com if you need additional information or have any 3965 # questions. 3966 # 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 # 3987 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3988 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3989 # 3990 # This code is free software; you can redistribute it and/or modify it 3991 # under the terms of the GNU General Public License version 2 only, as 3992 # published by the Free Software Foundation. Oracle designates this 3993 # particular file as subject to the "Classpath" exception as provided 3994 # by Oracle in the LICENSE file that accompanied this code. 3995 # 3996 # This code is distributed in the hope that it will be useful, but WITHOUT 3997 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3998 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3999 # version 2 for more details (a copy is included in the LICENSE file that 4000 # accompanied this code). 4001 # 4002 # You should have received a copy of the GNU General Public License version 4003 # 2 along with this work; if not, write to the Free Software Foundation, 4004 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4005 # 4006 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4007 # or visit www.oracle.com if you need additional information or have any 4008 # questions. 4009 # 4010 4011 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD. 4012 # Converts autoconf style CPU name to OpenJDK style, into 4013 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN. 4014 4015 4016 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD. 4017 # Converts autoconf style OS name to OpenJDK style, into 4018 # VAR_OS and VAR_OS_API. 4019 4020 4021 # Expects $host_os $host_cpu $build_os and $build_cpu 4022 # and $with_target_bits to have been setup! 4023 # 4024 # Translate the standard triplet(quadruplet) definition 4025 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU, 4026 # OPENJDK_BUILD_OS, etc. 4027 4028 4029 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour 4030 # accordingly. Must be done after setting up build and target system, but before 4031 # doing anything else with these values. 4032 4033 4034 # Setup the legacy variables, for controlling the old makefiles. 4035 # 4036 4037 4038 4039 4040 #%%% Build and target systems %%% 4041 4042 4043 4044 4045 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS. 4046 # Add -mX to various FLAGS variables. 4047 4048 4049 4050 4051 4052 4053 # 4054 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 4055 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4056 # 4057 # This code is free software; you can redistribute it and/or modify it 4058 # under the terms of the GNU General Public License version 2 only, as 4059 # published by the Free Software Foundation. Oracle designates this 4060 # particular file as subject to the "Classpath" exception as provided 4061 # by Oracle in the LICENSE file that accompanied this code. 4062 # 4063 # This code is distributed in the hope that it will be useful, but WITHOUT 4064 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4065 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4066 # version 2 for more details (a copy is included in the LICENSE file that 4067 # accompanied this code). 4068 # 4069 # You should have received a copy of the GNU General Public License version 4070 # 2 along with this work; if not, write to the Free Software Foundation, 4071 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4072 # 4073 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4074 # or visit www.oracle.com if you need additional information or have any 4075 # questions. 4076 # 4077 4078 4079 4080 4081 4082 4083 4084 4085 # 4086 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. 4087 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4088 # 4089 # This code is free software; you can redistribute it and/or modify it 4090 # under the terms of the GNU General Public License version 2 only, as 4091 # published by the Free Software Foundation. Oracle designates this 4092 # particular file as subject to the "Classpath" exception as provided 4093 # by Oracle in the LICENSE file that accompanied this code. 4094 # 4095 # This code is distributed in the hope that it will be useful, but WITHOUT 4096 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4097 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4098 # version 2 for more details (a copy is included in the LICENSE file that 4099 # accompanied this code). 4100 # 4101 # You should have received a copy of the GNU General Public License version 4102 # 2 along with this work; if not, write to the Free Software Foundation, 4103 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4104 # 4105 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4106 # or visit www.oracle.com if you need additional information or have any 4107 # questions. 4108 # 4109 4110 ######################################################################## 4111 # This file is responsible for detecting, verifying and setting up the 4112 # toolchain, i.e. the compiler, linker and related utilities. It will setup 4113 # proper paths to the binaries, but it will not setup any flags. 4114 # 4115 # The binaries used is determined by the toolchain type, which is the family of 4116 # compilers and related tools that are used. 4117 ######################################################################## 4118 4119 4120 # All valid toolchains, regardless of platform (used by help.m4) 4121 VALID_TOOLCHAINS_all="gcc clang solstudio xlc microsoft" 4122 4123 # These toolchains are valid on different platforms 4124 VALID_TOOLCHAINS_linux="gcc clang" 4125 VALID_TOOLCHAINS_solaris="solstudio" 4126 VALID_TOOLCHAINS_macosx="gcc clang" 4127 VALID_TOOLCHAINS_aix="xlc" 4128 VALID_TOOLCHAINS_windows="microsoft" 4129 4130 # Toolchain descriptions 4131 TOOLCHAIN_DESCRIPTION_clang="clang/LLVM" 4132 TOOLCHAIN_DESCRIPTION_gcc="GNU Compiler Collection" 4133 TOOLCHAIN_DESCRIPTION_microsoft="Microsoft Visual Studio" 4134 TOOLCHAIN_DESCRIPTION_solstudio="Oracle Solaris Studio" 4135 TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++" 4136 4137 # Setup a number of variables describing how native output files are 4138 # named on this platform/toolchain. 4139 4140 4141 # Determine which toolchain type to use, and make sure it is valid for this 4142 # platform. Setup various information about the selected toolchain. 4143 4144 4145 # Before we start detecting the toolchain executables, we might need some 4146 # special setup, e.g. additional paths etc. 4147 4148 4149 # Restore path, etc 4150 4151 4152 # Check if a compiler is of the toolchain type we expect, and save the version 4153 # information from it. If the compiler does not match the expected type, 4154 # this function will abort using AC_MSG_ERROR. If it matches, the version will 4155 # be stored in CC_VERSION_NUMBER/CXX_VERSION_NUMBER (as a dotted number), and 4156 # the full version string in CC_VERSION_STRING/CXX_VERSION_STRING. 4157 # 4158 # $1 = compiler to test (CC or CXX) 4159 # $2 = human readable name of compiler (C or C++) 4160 4161 4162 # Try to locate the given C or C++ compiler in the path, or otherwise. 4163 # 4164 # $1 = compiler to test (CC or CXX) 4165 # $2 = human readable name of compiler (C or C++) 4166 # $3 = list of compiler names to search for 4167 4168 4169 # Detect the core components of the toolchain, i.e. the compilers (CC and CXX), 4170 # preprocessor (CPP and CXXCPP), the linker (LD), the assembler (AS) and the 4171 # archiver (AR). Verify that the compilers are correct according to the 4172 # toolchain type. 4173 4174 4175 # Setup additional tools that is considered a part of the toolchain, but not the 4176 # core part. Many of these are highly platform-specific and do not exist, 4177 # and/or are not needed on all platforms. 4178 4179 4180 # Setup the build tools (i.e, the compiler and linker used to build programs 4181 # that should be run on the build platform, not the target platform, as a build 4182 # helper). Since the non-cross-compile case uses the normal, target compilers 4183 # for this, we can only do this after these have been setup. 4184 4185 4186 # Setup legacy variables that are still needed as alternative ways to refer to 4187 # parts of the toolchain. 4188 4189 4190 # Do some additional checks on the detected tools. 4191 4192 4193 # Setup the JTReg Regression Test Harness. 4194 4195 4196 # 4197 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 4198 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4199 # 4200 # This code is free software; you can redistribute it and/or modify it 4201 # under the terms of the GNU General Public License version 2 only, as 4202 # published by the Free Software Foundation. Oracle designates this 4203 # particular file as subject to the "Classpath" exception as provided 4204 # by Oracle in the LICENSE file that accompanied this code. 4205 # 4206 # This code is distributed in the hope that it will be useful, but WITHOUT 4207 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4208 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4209 # version 2 for more details (a copy is included in the LICENSE file that 4210 # accompanied this code). 4211 # 4212 # You should have received a copy of the GNU General Public License version 4213 # 2 along with this work; if not, write to the Free Software Foundation, 4214 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4215 # 4216 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4217 # or visit www.oracle.com if you need additional information or have any 4218 # questions. 4219 # 4220 4221 4222 4223 4224 4225 4226 4227 # Check if the VS env variables were setup prior to running configure. 4228 # If not, then find vcvarsall.bat and run it automatically, and integrate 4229 # the set env variables into the spec file. 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 # This line needs to be here, verbatim, after all includes and the dummy hook 4241 # definitions. It is replaced with custom functionality when building 4242 # custom sources. 4243 #CUSTOM_AUTOCONF_INCLUDE 4244 4245 # Do not change or remove the following line, it is needed for consistency checks: 4246 DATE_WHEN_GENERATED=1395839362 4247 4248 ############################################################################### 4249 # 4250 # Initialization / Boot-strapping 4251 # 4252 # The bootstrapping process needs to solve the "chicken or the egg" problem, 4253 # thus it jumps back and forth, each time gaining something needed later on. 4254 # 4255 ############################################################################### 4256 4257 # If we are requested to print additional help, do that and then exit. 4258 # This must be the very first call. 4259 4260 if test "x$CONFIGURE_PRINT_TOOLCHAIN_LIST" != x; then 4261 $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n" 4262 $PRINTF "Which are valid to use depends on the build platform.\n" 4263 for toolchain in $VALID_TOOLCHAINS_all; do 4264 # Use indirect variable referencing 4265 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain 4266 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 4267 $PRINTF " %-10s %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION" 4268 done 4269 4270 # And now exit directly 4271 exit 0 4272 fi 4273 4274 4275 # Basic initialization that must happen first of all in the normal process. 4276 4277 # Save the original command line. This is passed to us by the wrapper configure script. 4278 4279 DATE_WHEN_CONFIGURED=`LANG=C date` 4280 4281 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5 4282 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;} 4283 { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5 4284 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;} 4285 4286 4287 # Start with tools that do not need have cross compilation support 4288 # and can be expected to be found in the default PATH. These tools are 4289 # used by configure. Nor are these tools expected to be found in the 4290 # devkit from the builddeps server either, since they are 4291 # needed to download the devkit. 4292 4293 # First are all the simple required tools. 4294 4295 4296 4297 # Publish this variable in the help. 4298 4299 4300 if test "x$BASENAME" = x; then 4301 # The variable is not set by user, try to locate tool using the code snippet 4302 for ac_prog in basename 4303 do 4304 # Extract the first word of "$ac_prog", so it can be a program name with args. 4305 set dummy $ac_prog; ac_word=$2 4306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4307 $as_echo_n "checking for $ac_word... " >&6; } 4308 if ${ac_cv_path_BASENAME+:} false; then : 4309 $as_echo_n "(cached) " >&6 4310 else 4311 case $BASENAME in 4312 [\\/]* | ?:[\\/]*) 4313 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 4314 ;; 4315 *) 4316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4317 for as_dir in $PATH 4318 do 4319 IFS=$as_save_IFS 4320 test -z "$as_dir" && as_dir=. 4321 for ac_exec_ext in '' $ac_executable_extensions; do 4322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4323 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 4324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4325 break 2 4326 fi 4327 done 4328 done 4329 IFS=$as_save_IFS 4330 4331 ;; 4332 esac 4333 fi 4334 BASENAME=$ac_cv_path_BASENAME 4335 if test -n "$BASENAME"; then 4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 4337 $as_echo "$BASENAME" >&6; } 4338 else 4339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4340 $as_echo "no" >&6; } 4341 fi 4342 4343 4344 test -n "$BASENAME" && break 4345 done 4346 4347 else 4348 # The variable is set, but is it from the command line or the environment? 4349 4350 # Try to remove the string !BASENAME! from our list. 4351 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/} 4352 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 4353 # If it failed, the variable was not from the command line. Ignore it, 4354 # but warn the user (except for BASH, which is always set by the calling BASH). 4355 if test "xBASENAME" != xBASH; then 4356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5 4357 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;} 4358 fi 4359 # Try to locate tool using the code snippet 4360 for ac_prog in basename 4361 do 4362 # Extract the first word of "$ac_prog", so it can be a program name with args. 4363 set dummy $ac_prog; ac_word=$2 4364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4365 $as_echo_n "checking for $ac_word... " >&6; } 4366 if ${ac_cv_path_BASENAME+:} false; then : 4367 $as_echo_n "(cached) " >&6 4368 else 4369 case $BASENAME in 4370 [\\/]* | ?:[\\/]*) 4371 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 4372 ;; 4373 *) 4374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4375 for as_dir in $PATH 4376 do 4377 IFS=$as_save_IFS 4378 test -z "$as_dir" && as_dir=. 4379 for ac_exec_ext in '' $ac_executable_extensions; do 4380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4381 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 4382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4383 break 2 4384 fi 4385 done 4386 done 4387 IFS=$as_save_IFS 4388 4389 ;; 4390 esac 4391 fi 4392 BASENAME=$ac_cv_path_BASENAME 4393 if test -n "$BASENAME"; then 4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 4395 $as_echo "$BASENAME" >&6; } 4396 else 4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4398 $as_echo "no" >&6; } 4399 fi 4400 4401 4402 test -n "$BASENAME" && break 4403 done 4404 4405 else 4406 # If it succeeded, then it was overridden by the user. We will use it 4407 # for the tool. 4408 4409 # First remove it from the list of overridden variables, so we can test 4410 # for unknown variables in the end. 4411 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 4412 4413 # Check if the provided tool contains a complete path. 4414 tool_specified="$BASENAME" 4415 tool_basename="${tool_specified##*/}" 4416 if test "x$tool_basename" = "x$tool_specified"; then 4417 # A command without a complete path is provided, search $PATH. 4418 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5 4419 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;} 4420 # Extract the first word of "$tool_basename", so it can be a program name with args. 4421 set dummy $tool_basename; ac_word=$2 4422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4423 $as_echo_n "checking for $ac_word... " >&6; } 4424 if ${ac_cv_path_BASENAME+:} false; then : 4425 $as_echo_n "(cached) " >&6 4426 else 4427 case $BASENAME in 4428 [\\/]* | ?:[\\/]*) 4429 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 4430 ;; 4431 *) 4432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4433 for as_dir in $PATH 4434 do 4435 IFS=$as_save_IFS 4436 test -z "$as_dir" && as_dir=. 4437 for ac_exec_ext in '' $ac_executable_extensions; do 4438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4439 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 4440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4441 break 2 4442 fi 4443 done 4444 done 4445 IFS=$as_save_IFS 4446 4447 ;; 4448 esac 4449 fi 4450 BASENAME=$ac_cv_path_BASENAME 4451 if test -n "$BASENAME"; then 4452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 4453 $as_echo "$BASENAME" >&6; } 4454 else 4455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4456 $as_echo "no" >&6; } 4457 fi 4458 4459 4460 if test "x$BASENAME" = x; then 4461 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 4462 fi 4463 else 4464 # Otherwise we believe it is a complete path. Use it as it is. 4465 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5 4466 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;} 4467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5 4468 $as_echo_n "checking for BASENAME... " >&6; } 4469 if test ! -x "$tool_specified"; then 4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 4471 $as_echo "not found" >&6; } 4472 as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5 4473 fi 4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 4475 $as_echo "$tool_specified" >&6; } 4476 fi 4477 fi 4478 fi 4479 4480 4481 4482 if test "x$BASENAME" = x; then 4483 as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5 4484 fi 4485 4486 4487 4488 4489 4490 # Publish this variable in the help. 4491 4492 4493 if test "x$BASH" = x; then 4494 # The variable is not set by user, try to locate tool using the code snippet 4495 for ac_prog in bash 4496 do 4497 # Extract the first word of "$ac_prog", so it can be a program name with args. 4498 set dummy $ac_prog; ac_word=$2 4499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4500 $as_echo_n "checking for $ac_word... " >&6; } 4501 if ${ac_cv_path_BASH+:} false; then : 4502 $as_echo_n "(cached) " >&6 4503 else 4504 case $BASH in 4505 [\\/]* | ?:[\\/]*) 4506 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 4507 ;; 4508 *) 4509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4510 for as_dir in $PATH 4511 do 4512 IFS=$as_save_IFS 4513 test -z "$as_dir" && as_dir=. 4514 for ac_exec_ext in '' $ac_executable_extensions; do 4515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4516 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 4517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4518 break 2 4519 fi 4520 done 4521 done 4522 IFS=$as_save_IFS 4523 4524 ;; 4525 esac 4526 fi 4527 BASH=$ac_cv_path_BASH 4528 if test -n "$BASH"; then 4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 4530 $as_echo "$BASH" >&6; } 4531 else 4532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4533 $as_echo "no" >&6; } 4534 fi 4535 4536 4537 test -n "$BASH" && break 4538 done 4539 4540 else 4541 # The variable is set, but is it from the command line or the environment? 4542 4543 # Try to remove the string !BASH! from our list. 4544 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/} 4545 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 4546 # If it failed, the variable was not from the command line. Ignore it, 4547 # but warn the user (except for BASH, which is always set by the calling BASH). 4548 if test "xBASH" != xBASH; then 4549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5 4550 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;} 4551 fi 4552 # Try to locate tool using the code snippet 4553 for ac_prog in bash 4554 do 4555 # Extract the first word of "$ac_prog", so it can be a program name with args. 4556 set dummy $ac_prog; ac_word=$2 4557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4558 $as_echo_n "checking for $ac_word... " >&6; } 4559 if ${ac_cv_path_BASH+:} false; then : 4560 $as_echo_n "(cached) " >&6 4561 else 4562 case $BASH in 4563 [\\/]* | ?:[\\/]*) 4564 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 4565 ;; 4566 *) 4567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4568 for as_dir in $PATH 4569 do 4570 IFS=$as_save_IFS 4571 test -z "$as_dir" && as_dir=. 4572 for ac_exec_ext in '' $ac_executable_extensions; do 4573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4574 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 4575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4576 break 2 4577 fi 4578 done 4579 done 4580 IFS=$as_save_IFS 4581 4582 ;; 4583 esac 4584 fi 4585 BASH=$ac_cv_path_BASH 4586 if test -n "$BASH"; then 4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 4588 $as_echo "$BASH" >&6; } 4589 else 4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4591 $as_echo "no" >&6; } 4592 fi 4593 4594 4595 test -n "$BASH" && break 4596 done 4597 4598 else 4599 # If it succeeded, then it was overridden by the user. We will use it 4600 # for the tool. 4601 4602 # First remove it from the list of overridden variables, so we can test 4603 # for unknown variables in the end. 4604 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 4605 4606 # Check if the provided tool contains a complete path. 4607 tool_specified="$BASH" 4608 tool_basename="${tool_specified##*/}" 4609 if test "x$tool_basename" = "x$tool_specified"; then 4610 # A command without a complete path is provided, search $PATH. 4611 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5 4612 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;} 4613 # Extract the first word of "$tool_basename", so it can be a program name with args. 4614 set dummy $tool_basename; ac_word=$2 4615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4616 $as_echo_n "checking for $ac_word... " >&6; } 4617 if ${ac_cv_path_BASH+:} false; then : 4618 $as_echo_n "(cached) " >&6 4619 else 4620 case $BASH in 4621 [\\/]* | ?:[\\/]*) 4622 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 4623 ;; 4624 *) 4625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4626 for as_dir in $PATH 4627 do 4628 IFS=$as_save_IFS 4629 test -z "$as_dir" && as_dir=. 4630 for ac_exec_ext in '' $ac_executable_extensions; do 4631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4632 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 4633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4634 break 2 4635 fi 4636 done 4637 done 4638 IFS=$as_save_IFS 4639 4640 ;; 4641 esac 4642 fi 4643 BASH=$ac_cv_path_BASH 4644 if test -n "$BASH"; then 4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 4646 $as_echo "$BASH" >&6; } 4647 else 4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4649 $as_echo "no" >&6; } 4650 fi 4651 4652 4653 if test "x$BASH" = x; then 4654 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 4655 fi 4656 else 4657 # Otherwise we believe it is a complete path. Use it as it is. 4658 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5 4659 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;} 4660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5 4661 $as_echo_n "checking for BASH... " >&6; } 4662 if test ! -x "$tool_specified"; then 4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 4664 $as_echo "not found" >&6; } 4665 as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5 4666 fi 4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 4668 $as_echo "$tool_specified" >&6; } 4669 fi 4670 fi 4671 fi 4672 4673 4674 4675 if test "x$BASH" = x; then 4676 as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5 4677 fi 4678 4679 4680 4681 4682 4683 # Publish this variable in the help. 4684 4685 4686 if test "x$CAT" = x; then 4687 # The variable is not set by user, try to locate tool using the code snippet 4688 for ac_prog in cat 4689 do 4690 # Extract the first word of "$ac_prog", so it can be a program name with args. 4691 set dummy $ac_prog; ac_word=$2 4692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4693 $as_echo_n "checking for $ac_word... " >&6; } 4694 if ${ac_cv_path_CAT+:} false; then : 4695 $as_echo_n "(cached) " >&6 4696 else 4697 case $CAT in 4698 [\\/]* | ?:[\\/]*) 4699 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 4700 ;; 4701 *) 4702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4703 for as_dir in $PATH 4704 do 4705 IFS=$as_save_IFS 4706 test -z "$as_dir" && as_dir=. 4707 for ac_exec_ext in '' $ac_executable_extensions; do 4708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4709 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 4710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4711 break 2 4712 fi 4713 done 4714 done 4715 IFS=$as_save_IFS 4716 4717 ;; 4718 esac 4719 fi 4720 CAT=$ac_cv_path_CAT 4721 if test -n "$CAT"; then 4722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 4723 $as_echo "$CAT" >&6; } 4724 else 4725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4726 $as_echo "no" >&6; } 4727 fi 4728 4729 4730 test -n "$CAT" && break 4731 done 4732 4733 else 4734 # The variable is set, but is it from the command line or the environment? 4735 4736 # Try to remove the string !CAT! from our list. 4737 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/} 4738 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 4739 # If it failed, the variable was not from the command line. Ignore it, 4740 # but warn the user (except for BASH, which is always set by the calling BASH). 4741 if test "xCAT" != xBASH; then 4742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5 4743 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;} 4744 fi 4745 # Try to locate tool using the code snippet 4746 for ac_prog in cat 4747 do 4748 # Extract the first word of "$ac_prog", so it can be a program name with args. 4749 set dummy $ac_prog; ac_word=$2 4750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4751 $as_echo_n "checking for $ac_word... " >&6; } 4752 if ${ac_cv_path_CAT+:} false; then : 4753 $as_echo_n "(cached) " >&6 4754 else 4755 case $CAT in 4756 [\\/]* | ?:[\\/]*) 4757 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 4758 ;; 4759 *) 4760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4761 for as_dir in $PATH 4762 do 4763 IFS=$as_save_IFS 4764 test -z "$as_dir" && as_dir=. 4765 for ac_exec_ext in '' $ac_executable_extensions; do 4766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4767 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 4768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4769 break 2 4770 fi 4771 done 4772 done 4773 IFS=$as_save_IFS 4774 4775 ;; 4776 esac 4777 fi 4778 CAT=$ac_cv_path_CAT 4779 if test -n "$CAT"; then 4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 4781 $as_echo "$CAT" >&6; } 4782 else 4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4784 $as_echo "no" >&6; } 4785 fi 4786 4787 4788 test -n "$CAT" && break 4789 done 4790 4791 else 4792 # If it succeeded, then it was overridden by the user. We will use it 4793 # for the tool. 4794 4795 # First remove it from the list of overridden variables, so we can test 4796 # for unknown variables in the end. 4797 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 4798 4799 # Check if the provided tool contains a complete path. 4800 tool_specified="$CAT" 4801 tool_basename="${tool_specified##*/}" 4802 if test "x$tool_basename" = "x$tool_specified"; then 4803 # A command without a complete path is provided, search $PATH. 4804 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5 4805 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;} 4806 # Extract the first word of "$tool_basename", so it can be a program name with args. 4807 set dummy $tool_basename; ac_word=$2 4808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4809 $as_echo_n "checking for $ac_word... " >&6; } 4810 if ${ac_cv_path_CAT+:} false; then : 4811 $as_echo_n "(cached) " >&6 4812 else 4813 case $CAT in 4814 [\\/]* | ?:[\\/]*) 4815 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 4816 ;; 4817 *) 4818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4819 for as_dir in $PATH 4820 do 4821 IFS=$as_save_IFS 4822 test -z "$as_dir" && as_dir=. 4823 for ac_exec_ext in '' $ac_executable_extensions; do 4824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4825 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 4826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4827 break 2 4828 fi 4829 done 4830 done 4831 IFS=$as_save_IFS 4832 4833 ;; 4834 esac 4835 fi 4836 CAT=$ac_cv_path_CAT 4837 if test -n "$CAT"; then 4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 4839 $as_echo "$CAT" >&6; } 4840 else 4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4842 $as_echo "no" >&6; } 4843 fi 4844 4845 4846 if test "x$CAT" = x; then 4847 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 4848 fi 4849 else 4850 # Otherwise we believe it is a complete path. Use it as it is. 4851 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5 4852 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;} 4853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5 4854 $as_echo_n "checking for CAT... " >&6; } 4855 if test ! -x "$tool_specified"; then 4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 4857 $as_echo "not found" >&6; } 4858 as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5 4859 fi 4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 4861 $as_echo "$tool_specified" >&6; } 4862 fi 4863 fi 4864 fi 4865 4866 4867 4868 if test "x$CAT" = x; then 4869 as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5 4870 fi 4871 4872 4873 4874 4875 4876 # Publish this variable in the help. 4877 4878 4879 if test "x$CHMOD" = x; then 4880 # The variable is not set by user, try to locate tool using the code snippet 4881 for ac_prog in chmod 4882 do 4883 # Extract the first word of "$ac_prog", so it can be a program name with args. 4884 set dummy $ac_prog; ac_word=$2 4885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4886 $as_echo_n "checking for $ac_word... " >&6; } 4887 if ${ac_cv_path_CHMOD+:} false; then : 4888 $as_echo_n "(cached) " >&6 4889 else 4890 case $CHMOD in 4891 [\\/]* | ?:[\\/]*) 4892 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 4893 ;; 4894 *) 4895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4896 for as_dir in $PATH 4897 do 4898 IFS=$as_save_IFS 4899 test -z "$as_dir" && as_dir=. 4900 for ac_exec_ext in '' $ac_executable_extensions; do 4901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4902 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 4903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4904 break 2 4905 fi 4906 done 4907 done 4908 IFS=$as_save_IFS 4909 4910 ;; 4911 esac 4912 fi 4913 CHMOD=$ac_cv_path_CHMOD 4914 if test -n "$CHMOD"; then 4915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 4916 $as_echo "$CHMOD" >&6; } 4917 else 4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4919 $as_echo "no" >&6; } 4920 fi 4921 4922 4923 test -n "$CHMOD" && break 4924 done 4925 4926 else 4927 # The variable is set, but is it from the command line or the environment? 4928 4929 # Try to remove the string !CHMOD! from our list. 4930 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/} 4931 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 4932 # If it failed, the variable was not from the command line. Ignore it, 4933 # but warn the user (except for BASH, which is always set by the calling BASH). 4934 if test "xCHMOD" != xBASH; then 4935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5 4936 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;} 4937 fi 4938 # Try to locate tool using the code snippet 4939 for ac_prog in chmod 4940 do 4941 # Extract the first word of "$ac_prog", so it can be a program name with args. 4942 set dummy $ac_prog; ac_word=$2 4943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4944 $as_echo_n "checking for $ac_word... " >&6; } 4945 if ${ac_cv_path_CHMOD+:} false; then : 4946 $as_echo_n "(cached) " >&6 4947 else 4948 case $CHMOD in 4949 [\\/]* | ?:[\\/]*) 4950 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 4951 ;; 4952 *) 4953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4954 for as_dir in $PATH 4955 do 4956 IFS=$as_save_IFS 4957 test -z "$as_dir" && as_dir=. 4958 for ac_exec_ext in '' $ac_executable_extensions; do 4959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4960 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 4961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4962 break 2 4963 fi 4964 done 4965 done 4966 IFS=$as_save_IFS 4967 4968 ;; 4969 esac 4970 fi 4971 CHMOD=$ac_cv_path_CHMOD 4972 if test -n "$CHMOD"; then 4973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 4974 $as_echo "$CHMOD" >&6; } 4975 else 4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4977 $as_echo "no" >&6; } 4978 fi 4979 4980 4981 test -n "$CHMOD" && break 4982 done 4983 4984 else 4985 # If it succeeded, then it was overridden by the user. We will use it 4986 # for the tool. 4987 4988 # First remove it from the list of overridden variables, so we can test 4989 # for unknown variables in the end. 4990 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 4991 4992 # Check if the provided tool contains a complete path. 4993 tool_specified="$CHMOD" 4994 tool_basename="${tool_specified##*/}" 4995 if test "x$tool_basename" = "x$tool_specified"; then 4996 # A command without a complete path is provided, search $PATH. 4997 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5 4998 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;} 4999 # Extract the first word of "$tool_basename", so it can be a program name with args. 5000 set dummy $tool_basename; ac_word=$2 5001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5002 $as_echo_n "checking for $ac_word... " >&6; } 5003 if ${ac_cv_path_CHMOD+:} false; then : 5004 $as_echo_n "(cached) " >&6 5005 else 5006 case $CHMOD in 5007 [\\/]* | ?:[\\/]*) 5008 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5009 ;; 5010 *) 5011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5012 for as_dir in $PATH 5013 do 5014 IFS=$as_save_IFS 5015 test -z "$as_dir" && as_dir=. 5016 for ac_exec_ext in '' $ac_executable_extensions; do 5017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5018 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5020 break 2 5021 fi 5022 done 5023 done 5024 IFS=$as_save_IFS 5025 5026 ;; 5027 esac 5028 fi 5029 CHMOD=$ac_cv_path_CHMOD 5030 if test -n "$CHMOD"; then 5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5032 $as_echo "$CHMOD" >&6; } 5033 else 5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5035 $as_echo "no" >&6; } 5036 fi 5037 5038 5039 if test "x$CHMOD" = x; then 5040 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5041 fi 5042 else 5043 # Otherwise we believe it is a complete path. Use it as it is. 5044 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5 5045 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;} 5046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5 5047 $as_echo_n "checking for CHMOD... " >&6; } 5048 if test ! -x "$tool_specified"; then 5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5050 $as_echo "not found" >&6; } 5051 as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5 5052 fi 5053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5054 $as_echo "$tool_specified" >&6; } 5055 fi 5056 fi 5057 fi 5058 5059 5060 5061 if test "x$CHMOD" = x; then 5062 as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5 5063 fi 5064 5065 5066 5067 5068 5069 # Publish this variable in the help. 5070 5071 5072 if test "x$CMP" = x; then 5073 # The variable is not set by user, try to locate tool using the code snippet 5074 for ac_prog in cmp 5075 do 5076 # Extract the first word of "$ac_prog", so it can be a program name with args. 5077 set dummy $ac_prog; ac_word=$2 5078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5079 $as_echo_n "checking for $ac_word... " >&6; } 5080 if ${ac_cv_path_CMP+:} false; then : 5081 $as_echo_n "(cached) " >&6 5082 else 5083 case $CMP in 5084 [\\/]* | ?:[\\/]*) 5085 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 5086 ;; 5087 *) 5088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5089 for as_dir in $PATH 5090 do 5091 IFS=$as_save_IFS 5092 test -z "$as_dir" && as_dir=. 5093 for ac_exec_ext in '' $ac_executable_extensions; do 5094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5095 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 5096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5097 break 2 5098 fi 5099 done 5100 done 5101 IFS=$as_save_IFS 5102 5103 ;; 5104 esac 5105 fi 5106 CMP=$ac_cv_path_CMP 5107 if test -n "$CMP"; then 5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 5109 $as_echo "$CMP" >&6; } 5110 else 5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5112 $as_echo "no" >&6; } 5113 fi 5114 5115 5116 test -n "$CMP" && break 5117 done 5118 5119 else 5120 # The variable is set, but is it from the command line or the environment? 5121 5122 # Try to remove the string !CMP! from our list. 5123 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/} 5124 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5125 # If it failed, the variable was not from the command line. Ignore it, 5126 # but warn the user (except for BASH, which is always set by the calling BASH). 5127 if test "xCMP" != xBASH; then 5128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5 5129 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;} 5130 fi 5131 # Try to locate tool using the code snippet 5132 for ac_prog in cmp 5133 do 5134 # Extract the first word of "$ac_prog", so it can be a program name with args. 5135 set dummy $ac_prog; ac_word=$2 5136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5137 $as_echo_n "checking for $ac_word... " >&6; } 5138 if ${ac_cv_path_CMP+:} false; then : 5139 $as_echo_n "(cached) " >&6 5140 else 5141 case $CMP in 5142 [\\/]* | ?:[\\/]*) 5143 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 5144 ;; 5145 *) 5146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5147 for as_dir in $PATH 5148 do 5149 IFS=$as_save_IFS 5150 test -z "$as_dir" && as_dir=. 5151 for ac_exec_ext in '' $ac_executable_extensions; do 5152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5153 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 5154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5155 break 2 5156 fi 5157 done 5158 done 5159 IFS=$as_save_IFS 5160 5161 ;; 5162 esac 5163 fi 5164 CMP=$ac_cv_path_CMP 5165 if test -n "$CMP"; then 5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 5167 $as_echo "$CMP" >&6; } 5168 else 5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5170 $as_echo "no" >&6; } 5171 fi 5172 5173 5174 test -n "$CMP" && break 5175 done 5176 5177 else 5178 # If it succeeded, then it was overridden by the user. We will use it 5179 # for the tool. 5180 5181 # First remove it from the list of overridden variables, so we can test 5182 # for unknown variables in the end. 5183 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5184 5185 # Check if the provided tool contains a complete path. 5186 tool_specified="$CMP" 5187 tool_basename="${tool_specified##*/}" 5188 if test "x$tool_basename" = "x$tool_specified"; then 5189 # A command without a complete path is provided, search $PATH. 5190 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5 5191 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;} 5192 # Extract the first word of "$tool_basename", so it can be a program name with args. 5193 set dummy $tool_basename; ac_word=$2 5194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5195 $as_echo_n "checking for $ac_word... " >&6; } 5196 if ${ac_cv_path_CMP+:} false; then : 5197 $as_echo_n "(cached) " >&6 5198 else 5199 case $CMP in 5200 [\\/]* | ?:[\\/]*) 5201 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 5202 ;; 5203 *) 5204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5205 for as_dir in $PATH 5206 do 5207 IFS=$as_save_IFS 5208 test -z "$as_dir" && as_dir=. 5209 for ac_exec_ext in '' $ac_executable_extensions; do 5210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5211 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 5212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5213 break 2 5214 fi 5215 done 5216 done 5217 IFS=$as_save_IFS 5218 5219 ;; 5220 esac 5221 fi 5222 CMP=$ac_cv_path_CMP 5223 if test -n "$CMP"; then 5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 5225 $as_echo "$CMP" >&6; } 5226 else 5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5228 $as_echo "no" >&6; } 5229 fi 5230 5231 5232 if test "x$CMP" = x; then 5233 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5234 fi 5235 else 5236 # Otherwise we believe it is a complete path. Use it as it is. 5237 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5 5238 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;} 5239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5 5240 $as_echo_n "checking for CMP... " >&6; } 5241 if test ! -x "$tool_specified"; then 5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5243 $as_echo "not found" >&6; } 5244 as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5 5245 fi 5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5247 $as_echo "$tool_specified" >&6; } 5248 fi 5249 fi 5250 fi 5251 5252 5253 5254 if test "x$CMP" = x; then 5255 as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5 5256 fi 5257 5258 5259 5260 5261 5262 # Publish this variable in the help. 5263 5264 5265 if test "x$COMM" = x; then 5266 # The variable is not set by user, try to locate tool using the code snippet 5267 for ac_prog in comm 5268 do 5269 # Extract the first word of "$ac_prog", so it can be a program name with args. 5270 set dummy $ac_prog; ac_word=$2 5271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5272 $as_echo_n "checking for $ac_word... " >&6; } 5273 if ${ac_cv_path_COMM+:} false; then : 5274 $as_echo_n "(cached) " >&6 5275 else 5276 case $COMM in 5277 [\\/]* | ?:[\\/]*) 5278 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 5279 ;; 5280 *) 5281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5282 for as_dir in $PATH 5283 do 5284 IFS=$as_save_IFS 5285 test -z "$as_dir" && as_dir=. 5286 for ac_exec_ext in '' $ac_executable_extensions; do 5287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5288 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 5289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5290 break 2 5291 fi 5292 done 5293 done 5294 IFS=$as_save_IFS 5295 5296 ;; 5297 esac 5298 fi 5299 COMM=$ac_cv_path_COMM 5300 if test -n "$COMM"; then 5301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 5302 $as_echo "$COMM" >&6; } 5303 else 5304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5305 $as_echo "no" >&6; } 5306 fi 5307 5308 5309 test -n "$COMM" && break 5310 done 5311 5312 else 5313 # The variable is set, but is it from the command line or the environment? 5314 5315 # Try to remove the string !COMM! from our list. 5316 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/} 5317 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5318 # If it failed, the variable was not from the command line. Ignore it, 5319 # but warn the user (except for BASH, which is always set by the calling BASH). 5320 if test "xCOMM" != xBASH; then 5321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5 5322 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;} 5323 fi 5324 # Try to locate tool using the code snippet 5325 for ac_prog in comm 5326 do 5327 # Extract the first word of "$ac_prog", so it can be a program name with args. 5328 set dummy $ac_prog; ac_word=$2 5329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5330 $as_echo_n "checking for $ac_word... " >&6; } 5331 if ${ac_cv_path_COMM+:} false; then : 5332 $as_echo_n "(cached) " >&6 5333 else 5334 case $COMM in 5335 [\\/]* | ?:[\\/]*) 5336 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 5337 ;; 5338 *) 5339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5340 for as_dir in $PATH 5341 do 5342 IFS=$as_save_IFS 5343 test -z "$as_dir" && as_dir=. 5344 for ac_exec_ext in '' $ac_executable_extensions; do 5345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5346 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 5347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5348 break 2 5349 fi 5350 done 5351 done 5352 IFS=$as_save_IFS 5353 5354 ;; 5355 esac 5356 fi 5357 COMM=$ac_cv_path_COMM 5358 if test -n "$COMM"; then 5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 5360 $as_echo "$COMM" >&6; } 5361 else 5362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5363 $as_echo "no" >&6; } 5364 fi 5365 5366 5367 test -n "$COMM" && break 5368 done 5369 5370 else 5371 # If it succeeded, then it was overridden by the user. We will use it 5372 # for the tool. 5373 5374 # First remove it from the list of overridden variables, so we can test 5375 # for unknown variables in the end. 5376 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5377 5378 # Check if the provided tool contains a complete path. 5379 tool_specified="$COMM" 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 COMM=$tool_basename" >&5 5384 $as_echo "$as_me: Will search for user supplied tool COMM=$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_COMM+:} false; then : 5390 $as_echo_n "(cached) " >&6 5391 else 5392 case $COMM in 5393 [\\/]* | ?:[\\/]*) 5394 ac_cv_path_COMM="$COMM" # 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_COMM="$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 COMM=$ac_cv_path_COMM 5416 if test -n "$COMM"; then 5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 5418 $as_echo "$COMM" >&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$COMM" = 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 COMM=$tool_specified" >&5 5431 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;} 5432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5 5433 $as_echo_n "checking for COMM... " >&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 COMM=$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 5446 5447 if test "x$COMM" = x; then 5448 as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5 5449 fi 5450 5451 5452 5453 5454 5455 # Publish this variable in the help. 5456 5457 5458 if test "x$CP" = x; then 5459 # The variable is not set by user, try to locate tool using the code snippet 5460 for ac_prog in cp 5461 do 5462 # Extract the first word of "$ac_prog", so it can be a program name with args. 5463 set dummy $ac_prog; ac_word=$2 5464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5465 $as_echo_n "checking for $ac_word... " >&6; } 5466 if ${ac_cv_path_CP+:} false; then : 5467 $as_echo_n "(cached) " >&6 5468 else 5469 case $CP in 5470 [\\/]* | ?:[\\/]*) 5471 ac_cv_path_CP="$CP" # Let the user override the test with a path. 5472 ;; 5473 *) 5474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5475 for as_dir in $PATH 5476 do 5477 IFS=$as_save_IFS 5478 test -z "$as_dir" && as_dir=. 5479 for ac_exec_ext in '' $ac_executable_extensions; do 5480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5481 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 5482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5483 break 2 5484 fi 5485 done 5486 done 5487 IFS=$as_save_IFS 5488 5489 ;; 5490 esac 5491 fi 5492 CP=$ac_cv_path_CP 5493 if test -n "$CP"; then 5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 5495 $as_echo "$CP" >&6; } 5496 else 5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5498 $as_echo "no" >&6; } 5499 fi 5500 5501 5502 test -n "$CP" && break 5503 done 5504 5505 else 5506 # The variable is set, but is it from the command line or the environment? 5507 5508 # Try to remove the string !CP! from our list. 5509 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/} 5510 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5511 # If it failed, the variable was not from the command line. Ignore it, 5512 # but warn the user (except for BASH, which is always set by the calling BASH). 5513 if test "xCP" != xBASH; then 5514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5 5515 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;} 5516 fi 5517 # Try to locate tool using the code snippet 5518 for ac_prog in cp 5519 do 5520 # Extract the first word of "$ac_prog", so it can be a program name with args. 5521 set dummy $ac_prog; ac_word=$2 5522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5523 $as_echo_n "checking for $ac_word... " >&6; } 5524 if ${ac_cv_path_CP+:} false; then : 5525 $as_echo_n "(cached) " >&6 5526 else 5527 case $CP in 5528 [\\/]* | ?:[\\/]*) 5529 ac_cv_path_CP="$CP" # Let the user override the test with a path. 5530 ;; 5531 *) 5532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5533 for as_dir in $PATH 5534 do 5535 IFS=$as_save_IFS 5536 test -z "$as_dir" && as_dir=. 5537 for ac_exec_ext in '' $ac_executable_extensions; do 5538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5539 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 5540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5541 break 2 5542 fi 5543 done 5544 done 5545 IFS=$as_save_IFS 5546 5547 ;; 5548 esac 5549 fi 5550 CP=$ac_cv_path_CP 5551 if test -n "$CP"; then 5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 5553 $as_echo "$CP" >&6; } 5554 else 5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5556 $as_echo "no" >&6; } 5557 fi 5558 5559 5560 test -n "$CP" && break 5561 done 5562 5563 else 5564 # If it succeeded, then it was overridden by the user. We will use it 5565 # for the tool. 5566 5567 # First remove it from the list of overridden variables, so we can test 5568 # for unknown variables in the end. 5569 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5570 5571 # Check if the provided tool contains a complete path. 5572 tool_specified="$CP" 5573 tool_basename="${tool_specified##*/}" 5574 if test "x$tool_basename" = "x$tool_specified"; then 5575 # A command without a complete path is provided, search $PATH. 5576 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5 5577 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;} 5578 # Extract the first word of "$tool_basename", so it can be a program name with args. 5579 set dummy $tool_basename; ac_word=$2 5580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5581 $as_echo_n "checking for $ac_word... " >&6; } 5582 if ${ac_cv_path_CP+:} false; then : 5583 $as_echo_n "(cached) " >&6 5584 else 5585 case $CP in 5586 [\\/]* | ?:[\\/]*) 5587 ac_cv_path_CP="$CP" # Let the user override the test with a path. 5588 ;; 5589 *) 5590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5591 for as_dir in $PATH 5592 do 5593 IFS=$as_save_IFS 5594 test -z "$as_dir" && as_dir=. 5595 for ac_exec_ext in '' $ac_executable_extensions; do 5596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5597 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 5598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5599 break 2 5600 fi 5601 done 5602 done 5603 IFS=$as_save_IFS 5604 5605 ;; 5606 esac 5607 fi 5608 CP=$ac_cv_path_CP 5609 if test -n "$CP"; then 5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 5611 $as_echo "$CP" >&6; } 5612 else 5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5614 $as_echo "no" >&6; } 5615 fi 5616 5617 5618 if test "x$CP" = x; then 5619 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5620 fi 5621 else 5622 # Otherwise we believe it is a complete path. Use it as it is. 5623 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5 5624 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;} 5625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5 5626 $as_echo_n "checking for CP... " >&6; } 5627 if test ! -x "$tool_specified"; then 5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5629 $as_echo "not found" >&6; } 5630 as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5 5631 fi 5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5633 $as_echo "$tool_specified" >&6; } 5634 fi 5635 fi 5636 fi 5637 5638 5639 5640 if test "x$CP" = x; then 5641 as_fn_error $? "Could not find required tool for CP" "$LINENO" 5 5642 fi 5643 5644 5645 5646 5647 5648 # Publish this variable in the help. 5649 5650 5651 if test "x$CPIO" = x; then 5652 # The variable is not set by user, try to locate tool using the code snippet 5653 for ac_prog in cpio 5654 do 5655 # Extract the first word of "$ac_prog", so it can be a program name with args. 5656 set dummy $ac_prog; ac_word=$2 5657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5658 $as_echo_n "checking for $ac_word... " >&6; } 5659 if ${ac_cv_path_CPIO+:} false; then : 5660 $as_echo_n "(cached) " >&6 5661 else 5662 case $CPIO in 5663 [\\/]* | ?:[\\/]*) 5664 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 5665 ;; 5666 *) 5667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5668 for as_dir in $PATH 5669 do 5670 IFS=$as_save_IFS 5671 test -z "$as_dir" && as_dir=. 5672 for ac_exec_ext in '' $ac_executable_extensions; do 5673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5674 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 5675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5676 break 2 5677 fi 5678 done 5679 done 5680 IFS=$as_save_IFS 5681 5682 ;; 5683 esac 5684 fi 5685 CPIO=$ac_cv_path_CPIO 5686 if test -n "$CPIO"; then 5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 5688 $as_echo "$CPIO" >&6; } 5689 else 5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5691 $as_echo "no" >&6; } 5692 fi 5693 5694 5695 test -n "$CPIO" && break 5696 done 5697 5698 else 5699 # The variable is set, but is it from the command line or the environment? 5700 5701 # Try to remove the string !CPIO! from our list. 5702 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/} 5703 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5704 # If it failed, the variable was not from the command line. Ignore it, 5705 # but warn the user (except for BASH, which is always set by the calling BASH). 5706 if test "xCPIO" != xBASH; then 5707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5 5708 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;} 5709 fi 5710 # Try to locate tool using the code snippet 5711 for ac_prog in cpio 5712 do 5713 # Extract the first word of "$ac_prog", so it can be a program name with args. 5714 set dummy $ac_prog; ac_word=$2 5715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5716 $as_echo_n "checking for $ac_word... " >&6; } 5717 if ${ac_cv_path_CPIO+:} false; then : 5718 $as_echo_n "(cached) " >&6 5719 else 5720 case $CPIO in 5721 [\\/]* | ?:[\\/]*) 5722 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 5723 ;; 5724 *) 5725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5726 for as_dir in $PATH 5727 do 5728 IFS=$as_save_IFS 5729 test -z "$as_dir" && as_dir=. 5730 for ac_exec_ext in '' $ac_executable_extensions; do 5731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5732 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 5733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5734 break 2 5735 fi 5736 done 5737 done 5738 IFS=$as_save_IFS 5739 5740 ;; 5741 esac 5742 fi 5743 CPIO=$ac_cv_path_CPIO 5744 if test -n "$CPIO"; then 5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 5746 $as_echo "$CPIO" >&6; } 5747 else 5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5749 $as_echo "no" >&6; } 5750 fi 5751 5752 5753 test -n "$CPIO" && break 5754 done 5755 5756 else 5757 # If it succeeded, then it was overridden by the user. We will use it 5758 # for the tool. 5759 5760 # First remove it from the list of overridden variables, so we can test 5761 # for unknown variables in the end. 5762 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5763 5764 # Check if the provided tool contains a complete path. 5765 tool_specified="$CPIO" 5766 tool_basename="${tool_specified##*/}" 5767 if test "x$tool_basename" = "x$tool_specified"; then 5768 # A command without a complete path is provided, search $PATH. 5769 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5 5770 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;} 5771 # Extract the first word of "$tool_basename", so it can be a program name with args. 5772 set dummy $tool_basename; ac_word=$2 5773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5774 $as_echo_n "checking for $ac_word... " >&6; } 5775 if ${ac_cv_path_CPIO+:} false; then : 5776 $as_echo_n "(cached) " >&6 5777 else 5778 case $CPIO in 5779 [\\/]* | ?:[\\/]*) 5780 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 5781 ;; 5782 *) 5783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5784 for as_dir in $PATH 5785 do 5786 IFS=$as_save_IFS 5787 test -z "$as_dir" && as_dir=. 5788 for ac_exec_ext in '' $ac_executable_extensions; do 5789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5790 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 5791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5792 break 2 5793 fi 5794 done 5795 done 5796 IFS=$as_save_IFS 5797 5798 ;; 5799 esac 5800 fi 5801 CPIO=$ac_cv_path_CPIO 5802 if test -n "$CPIO"; then 5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 5804 $as_echo "$CPIO" >&6; } 5805 else 5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5807 $as_echo "no" >&6; } 5808 fi 5809 5810 5811 if test "x$CPIO" = x; then 5812 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5813 fi 5814 else 5815 # Otherwise we believe it is a complete path. Use it as it is. 5816 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5 5817 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;} 5818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5 5819 $as_echo_n "checking for CPIO... " >&6; } 5820 if test ! -x "$tool_specified"; then 5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5822 $as_echo "not found" >&6; } 5823 as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5 5824 fi 5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5826 $as_echo "$tool_specified" >&6; } 5827 fi 5828 fi 5829 fi 5830 5831 5832 5833 if test "x$CPIO" = x; then 5834 as_fn_error $? "Could not find required tool for CPIO" "$LINENO" 5 5835 fi 5836 5837 5838 5839 5840 5841 # Publish this variable in the help. 5842 5843 5844 if test "x$CUT" = x; then 5845 # The variable is not set by user, try to locate tool using the code snippet 5846 for ac_prog in cut 5847 do 5848 # Extract the first word of "$ac_prog", so it can be a program name with args. 5849 set dummy $ac_prog; ac_word=$2 5850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5851 $as_echo_n "checking for $ac_word... " >&6; } 5852 if ${ac_cv_path_CUT+:} false; then : 5853 $as_echo_n "(cached) " >&6 5854 else 5855 case $CUT in 5856 [\\/]* | ?:[\\/]*) 5857 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 5858 ;; 5859 *) 5860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5861 for as_dir in $PATH 5862 do 5863 IFS=$as_save_IFS 5864 test -z "$as_dir" && as_dir=. 5865 for ac_exec_ext in '' $ac_executable_extensions; do 5866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5867 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 5868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5869 break 2 5870 fi 5871 done 5872 done 5873 IFS=$as_save_IFS 5874 5875 ;; 5876 esac 5877 fi 5878 CUT=$ac_cv_path_CUT 5879 if test -n "$CUT"; then 5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 5881 $as_echo "$CUT" >&6; } 5882 else 5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5884 $as_echo "no" >&6; } 5885 fi 5886 5887 5888 test -n "$CUT" && break 5889 done 5890 5891 else 5892 # The variable is set, but is it from the command line or the environment? 5893 5894 # Try to remove the string !CUT! from our list. 5895 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/} 5896 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5897 # If it failed, the variable was not from the command line. Ignore it, 5898 # but warn the user (except for BASH, which is always set by the calling BASH). 5899 if test "xCUT" != xBASH; then 5900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5 5901 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;} 5902 fi 5903 # Try to locate tool using the code snippet 5904 for ac_prog in cut 5905 do 5906 # Extract the first word of "$ac_prog", so it can be a program name with args. 5907 set dummy $ac_prog; ac_word=$2 5908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5909 $as_echo_n "checking for $ac_word... " >&6; } 5910 if ${ac_cv_path_CUT+:} false; then : 5911 $as_echo_n "(cached) " >&6 5912 else 5913 case $CUT in 5914 [\\/]* | ?:[\\/]*) 5915 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 5916 ;; 5917 *) 5918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5919 for as_dir in $PATH 5920 do 5921 IFS=$as_save_IFS 5922 test -z "$as_dir" && as_dir=. 5923 for ac_exec_ext in '' $ac_executable_extensions; do 5924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5925 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 5926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5927 break 2 5928 fi 5929 done 5930 done 5931 IFS=$as_save_IFS 5932 5933 ;; 5934 esac 5935 fi 5936 CUT=$ac_cv_path_CUT 5937 if test -n "$CUT"; then 5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 5939 $as_echo "$CUT" >&6; } 5940 else 5941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5942 $as_echo "no" >&6; } 5943 fi 5944 5945 5946 test -n "$CUT" && break 5947 done 5948 5949 else 5950 # If it succeeded, then it was overridden by the user. We will use it 5951 # for the tool. 5952 5953 # First remove it from the list of overridden variables, so we can test 5954 # for unknown variables in the end. 5955 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5956 5957 # Check if the provided tool contains a complete path. 5958 tool_specified="$CUT" 5959 tool_basename="${tool_specified##*/}" 5960 if test "x$tool_basename" = "x$tool_specified"; then 5961 # A command without a complete path is provided, search $PATH. 5962 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5 5963 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;} 5964 # Extract the first word of "$tool_basename", so it can be a program name with args. 5965 set dummy $tool_basename; ac_word=$2 5966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5967 $as_echo_n "checking for $ac_word... " >&6; } 5968 if ${ac_cv_path_CUT+:} false; then : 5969 $as_echo_n "(cached) " >&6 5970 else 5971 case $CUT in 5972 [\\/]* | ?:[\\/]*) 5973 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 5974 ;; 5975 *) 5976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5977 for as_dir in $PATH 5978 do 5979 IFS=$as_save_IFS 5980 test -z "$as_dir" && as_dir=. 5981 for ac_exec_ext in '' $ac_executable_extensions; do 5982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5983 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 5984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5985 break 2 5986 fi 5987 done 5988 done 5989 IFS=$as_save_IFS 5990 5991 ;; 5992 esac 5993 fi 5994 CUT=$ac_cv_path_CUT 5995 if test -n "$CUT"; then 5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 5997 $as_echo "$CUT" >&6; } 5998 else 5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6000 $as_echo "no" >&6; } 6001 fi 6002 6003 6004 if test "x$CUT" = x; then 6005 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6006 fi 6007 else 6008 # Otherwise we believe it is a complete path. Use it as it is. 6009 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5 6010 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;} 6011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5 6012 $as_echo_n "checking for CUT... " >&6; } 6013 if test ! -x "$tool_specified"; then 6014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6015 $as_echo "not found" >&6; } 6016 as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5 6017 fi 6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6019 $as_echo "$tool_specified" >&6; } 6020 fi 6021 fi 6022 fi 6023 6024 6025 6026 if test "x$CUT" = x; then 6027 as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5 6028 fi 6029 6030 6031 6032 6033 6034 # Publish this variable in the help. 6035 6036 6037 if test "x$DATE" = x; then 6038 # The variable is not set by user, try to locate tool using the code snippet 6039 for ac_prog in date 6040 do 6041 # Extract the first word of "$ac_prog", so it can be a program name with args. 6042 set dummy $ac_prog; ac_word=$2 6043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6044 $as_echo_n "checking for $ac_word... " >&6; } 6045 if ${ac_cv_path_DATE+:} false; then : 6046 $as_echo_n "(cached) " >&6 6047 else 6048 case $DATE in 6049 [\\/]* | ?:[\\/]*) 6050 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6051 ;; 6052 *) 6053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6054 for as_dir in $PATH 6055 do 6056 IFS=$as_save_IFS 6057 test -z "$as_dir" && as_dir=. 6058 for ac_exec_ext in '' $ac_executable_extensions; do 6059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6060 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6062 break 2 6063 fi 6064 done 6065 done 6066 IFS=$as_save_IFS 6067 6068 ;; 6069 esac 6070 fi 6071 DATE=$ac_cv_path_DATE 6072 if test -n "$DATE"; then 6073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6074 $as_echo "$DATE" >&6; } 6075 else 6076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6077 $as_echo "no" >&6; } 6078 fi 6079 6080 6081 test -n "$DATE" && break 6082 done 6083 6084 else 6085 # The variable is set, but is it from the command line or the environment? 6086 6087 # Try to remove the string !DATE! from our list. 6088 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/} 6089 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6090 # If it failed, the variable was not from the command line. Ignore it, 6091 # but warn the user (except for BASH, which is always set by the calling BASH). 6092 if test "xDATE" != xBASH; then 6093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5 6094 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;} 6095 fi 6096 # Try to locate tool using the code snippet 6097 for ac_prog in date 6098 do 6099 # Extract the first word of "$ac_prog", so it can be a program name with args. 6100 set dummy $ac_prog; ac_word=$2 6101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6102 $as_echo_n "checking for $ac_word... " >&6; } 6103 if ${ac_cv_path_DATE+:} false; then : 6104 $as_echo_n "(cached) " >&6 6105 else 6106 case $DATE in 6107 [\\/]* | ?:[\\/]*) 6108 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6109 ;; 6110 *) 6111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6112 for as_dir in $PATH 6113 do 6114 IFS=$as_save_IFS 6115 test -z "$as_dir" && as_dir=. 6116 for ac_exec_ext in '' $ac_executable_extensions; do 6117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6118 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6120 break 2 6121 fi 6122 done 6123 done 6124 IFS=$as_save_IFS 6125 6126 ;; 6127 esac 6128 fi 6129 DATE=$ac_cv_path_DATE 6130 if test -n "$DATE"; then 6131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6132 $as_echo "$DATE" >&6; } 6133 else 6134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6135 $as_echo "no" >&6; } 6136 fi 6137 6138 6139 test -n "$DATE" && break 6140 done 6141 6142 else 6143 # If it succeeded, then it was overridden by the user. We will use it 6144 # for the tool. 6145 6146 # First remove it from the list of overridden variables, so we can test 6147 # for unknown variables in the end. 6148 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6149 6150 # Check if the provided tool contains a complete path. 6151 tool_specified="$DATE" 6152 tool_basename="${tool_specified##*/}" 6153 if test "x$tool_basename" = "x$tool_specified"; then 6154 # A command without a complete path is provided, search $PATH. 6155 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5 6156 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;} 6157 # Extract the first word of "$tool_basename", so it can be a program name with args. 6158 set dummy $tool_basename; ac_word=$2 6159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6160 $as_echo_n "checking for $ac_word... " >&6; } 6161 if ${ac_cv_path_DATE+:} false; then : 6162 $as_echo_n "(cached) " >&6 6163 else 6164 case $DATE in 6165 [\\/]* | ?:[\\/]*) 6166 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6167 ;; 6168 *) 6169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6170 for as_dir in $PATH 6171 do 6172 IFS=$as_save_IFS 6173 test -z "$as_dir" && as_dir=. 6174 for ac_exec_ext in '' $ac_executable_extensions; do 6175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6176 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6178 break 2 6179 fi 6180 done 6181 done 6182 IFS=$as_save_IFS 6183 6184 ;; 6185 esac 6186 fi 6187 DATE=$ac_cv_path_DATE 6188 if test -n "$DATE"; then 6189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6190 $as_echo "$DATE" >&6; } 6191 else 6192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6193 $as_echo "no" >&6; } 6194 fi 6195 6196 6197 if test "x$DATE" = x; then 6198 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6199 fi 6200 else 6201 # Otherwise we believe it is a complete path. Use it as it is. 6202 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5 6203 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;} 6204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5 6205 $as_echo_n "checking for DATE... " >&6; } 6206 if test ! -x "$tool_specified"; then 6207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6208 $as_echo "not found" >&6; } 6209 as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5 6210 fi 6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6212 $as_echo "$tool_specified" >&6; } 6213 fi 6214 fi 6215 fi 6216 6217 6218 6219 if test "x$DATE" = x; then 6220 as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5 6221 fi 6222 6223 6224 6225 6226 6227 # Publish this variable in the help. 6228 6229 6230 if test "x$DIFF" = x; then 6231 # The variable is not set by user, try to locate tool using the code snippet 6232 for ac_prog in gdiff diff 6233 do 6234 # Extract the first word of "$ac_prog", so it can be a program name with args. 6235 set dummy $ac_prog; ac_word=$2 6236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6237 $as_echo_n "checking for $ac_word... " >&6; } 6238 if ${ac_cv_path_DIFF+:} false; then : 6239 $as_echo_n "(cached) " >&6 6240 else 6241 case $DIFF in 6242 [\\/]* | ?:[\\/]*) 6243 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 6244 ;; 6245 *) 6246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6247 for as_dir in $PATH 6248 do 6249 IFS=$as_save_IFS 6250 test -z "$as_dir" && as_dir=. 6251 for ac_exec_ext in '' $ac_executable_extensions; do 6252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6253 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 6254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6255 break 2 6256 fi 6257 done 6258 done 6259 IFS=$as_save_IFS 6260 6261 ;; 6262 esac 6263 fi 6264 DIFF=$ac_cv_path_DIFF 6265 if test -n "$DIFF"; then 6266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 6267 $as_echo "$DIFF" >&6; } 6268 else 6269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6270 $as_echo "no" >&6; } 6271 fi 6272 6273 6274 test -n "$DIFF" && break 6275 done 6276 6277 else 6278 # The variable is set, but is it from the command line or the environment? 6279 6280 # Try to remove the string !DIFF! from our list. 6281 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/} 6282 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6283 # If it failed, the variable was not from the command line. Ignore it, 6284 # but warn the user (except for BASH, which is always set by the calling BASH). 6285 if test "xDIFF" != xBASH; then 6286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5 6287 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;} 6288 fi 6289 # Try to locate tool using the code snippet 6290 for ac_prog in gdiff diff 6291 do 6292 # Extract the first word of "$ac_prog", so it can be a program name with args. 6293 set dummy $ac_prog; ac_word=$2 6294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6295 $as_echo_n "checking for $ac_word... " >&6; } 6296 if ${ac_cv_path_DIFF+:} false; then : 6297 $as_echo_n "(cached) " >&6 6298 else 6299 case $DIFF in 6300 [\\/]* | ?:[\\/]*) 6301 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 6302 ;; 6303 *) 6304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6305 for as_dir in $PATH 6306 do 6307 IFS=$as_save_IFS 6308 test -z "$as_dir" && as_dir=. 6309 for ac_exec_ext in '' $ac_executable_extensions; do 6310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6311 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 6312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6313 break 2 6314 fi 6315 done 6316 done 6317 IFS=$as_save_IFS 6318 6319 ;; 6320 esac 6321 fi 6322 DIFF=$ac_cv_path_DIFF 6323 if test -n "$DIFF"; then 6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 6325 $as_echo "$DIFF" >&6; } 6326 else 6327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6328 $as_echo "no" >&6; } 6329 fi 6330 6331 6332 test -n "$DIFF" && break 6333 done 6334 6335 else 6336 # If it succeeded, then it was overridden by the user. We will use it 6337 # for the tool. 6338 6339 # First remove it from the list of overridden variables, so we can test 6340 # for unknown variables in the end. 6341 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6342 6343 # Check if the provided tool contains a complete path. 6344 tool_specified="$DIFF" 6345 tool_basename="${tool_specified##*/}" 6346 if test "x$tool_basename" = "x$tool_specified"; then 6347 # A command without a complete path is provided, search $PATH. 6348 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5 6349 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;} 6350 # Extract the first word of "$tool_basename", so it can be a program name with args. 6351 set dummy $tool_basename; ac_word=$2 6352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6353 $as_echo_n "checking for $ac_word... " >&6; } 6354 if ${ac_cv_path_DIFF+:} false; then : 6355 $as_echo_n "(cached) " >&6 6356 else 6357 case $DIFF in 6358 [\\/]* | ?:[\\/]*) 6359 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 6360 ;; 6361 *) 6362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6363 for as_dir in $PATH 6364 do 6365 IFS=$as_save_IFS 6366 test -z "$as_dir" && as_dir=. 6367 for ac_exec_ext in '' $ac_executable_extensions; do 6368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6369 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 6370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6371 break 2 6372 fi 6373 done 6374 done 6375 IFS=$as_save_IFS 6376 6377 ;; 6378 esac 6379 fi 6380 DIFF=$ac_cv_path_DIFF 6381 if test -n "$DIFF"; then 6382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 6383 $as_echo "$DIFF" >&6; } 6384 else 6385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6386 $as_echo "no" >&6; } 6387 fi 6388 6389 6390 if test "x$DIFF" = x; then 6391 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6392 fi 6393 else 6394 # Otherwise we believe it is a complete path. Use it as it is. 6395 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5 6396 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;} 6397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5 6398 $as_echo_n "checking for DIFF... " >&6; } 6399 if test ! -x "$tool_specified"; then 6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6401 $as_echo "not found" >&6; } 6402 as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5 6403 fi 6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6405 $as_echo "$tool_specified" >&6; } 6406 fi 6407 fi 6408 fi 6409 6410 6411 6412 if test "x$DIFF" = x; then 6413 as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5 6414 fi 6415 6416 6417 6418 6419 6420 # Publish this variable in the help. 6421 6422 6423 if test "x$DIRNAME" = x; then 6424 # The variable is not set by user, try to locate tool using the code snippet 6425 for ac_prog in dirname 6426 do 6427 # Extract the first word of "$ac_prog", so it can be a program name with args. 6428 set dummy $ac_prog; ac_word=$2 6429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6430 $as_echo_n "checking for $ac_word... " >&6; } 6431 if ${ac_cv_path_DIRNAME+:} false; then : 6432 $as_echo_n "(cached) " >&6 6433 else 6434 case $DIRNAME in 6435 [\\/]* | ?:[\\/]*) 6436 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 6437 ;; 6438 *) 6439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6440 for as_dir in $PATH 6441 do 6442 IFS=$as_save_IFS 6443 test -z "$as_dir" && as_dir=. 6444 for ac_exec_ext in '' $ac_executable_extensions; do 6445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6446 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 6447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6448 break 2 6449 fi 6450 done 6451 done 6452 IFS=$as_save_IFS 6453 6454 ;; 6455 esac 6456 fi 6457 DIRNAME=$ac_cv_path_DIRNAME 6458 if test -n "$DIRNAME"; then 6459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 6460 $as_echo "$DIRNAME" >&6; } 6461 else 6462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6463 $as_echo "no" >&6; } 6464 fi 6465 6466 6467 test -n "$DIRNAME" && break 6468 done 6469 6470 else 6471 # The variable is set, but is it from the command line or the environment? 6472 6473 # Try to remove the string !DIRNAME! from our list. 6474 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/} 6475 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6476 # If it failed, the variable was not from the command line. Ignore it, 6477 # but warn the user (except for BASH, which is always set by the calling BASH). 6478 if test "xDIRNAME" != xBASH; then 6479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5 6480 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;} 6481 fi 6482 # Try to locate tool using the code snippet 6483 for ac_prog in dirname 6484 do 6485 # Extract the first word of "$ac_prog", so it can be a program name with args. 6486 set dummy $ac_prog; ac_word=$2 6487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6488 $as_echo_n "checking for $ac_word... " >&6; } 6489 if ${ac_cv_path_DIRNAME+:} false; then : 6490 $as_echo_n "(cached) " >&6 6491 else 6492 case $DIRNAME in 6493 [\\/]* | ?:[\\/]*) 6494 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 6495 ;; 6496 *) 6497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6498 for as_dir in $PATH 6499 do 6500 IFS=$as_save_IFS 6501 test -z "$as_dir" && as_dir=. 6502 for ac_exec_ext in '' $ac_executable_extensions; do 6503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6504 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 6505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6506 break 2 6507 fi 6508 done 6509 done 6510 IFS=$as_save_IFS 6511 6512 ;; 6513 esac 6514 fi 6515 DIRNAME=$ac_cv_path_DIRNAME 6516 if test -n "$DIRNAME"; then 6517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 6518 $as_echo "$DIRNAME" >&6; } 6519 else 6520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6521 $as_echo "no" >&6; } 6522 fi 6523 6524 6525 test -n "$DIRNAME" && break 6526 done 6527 6528 else 6529 # If it succeeded, then it was overridden by the user. We will use it 6530 # for the tool. 6531 6532 # First remove it from the list of overridden variables, so we can test 6533 # for unknown variables in the end. 6534 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6535 6536 # Check if the provided tool contains a complete path. 6537 tool_specified="$DIRNAME" 6538 tool_basename="${tool_specified##*/}" 6539 if test "x$tool_basename" = "x$tool_specified"; then 6540 # A command without a complete path is provided, search $PATH. 6541 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5 6542 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;} 6543 # Extract the first word of "$tool_basename", so it can be a program name with args. 6544 set dummy $tool_basename; ac_word=$2 6545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6546 $as_echo_n "checking for $ac_word... " >&6; } 6547 if ${ac_cv_path_DIRNAME+:} false; then : 6548 $as_echo_n "(cached) " >&6 6549 else 6550 case $DIRNAME in 6551 [\\/]* | ?:[\\/]*) 6552 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 6553 ;; 6554 *) 6555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6556 for as_dir in $PATH 6557 do 6558 IFS=$as_save_IFS 6559 test -z "$as_dir" && as_dir=. 6560 for ac_exec_ext in '' $ac_executable_extensions; do 6561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6562 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 6563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6564 break 2 6565 fi 6566 done 6567 done 6568 IFS=$as_save_IFS 6569 6570 ;; 6571 esac 6572 fi 6573 DIRNAME=$ac_cv_path_DIRNAME 6574 if test -n "$DIRNAME"; then 6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 6576 $as_echo "$DIRNAME" >&6; } 6577 else 6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6579 $as_echo "no" >&6; } 6580 fi 6581 6582 6583 if test "x$DIRNAME" = x; then 6584 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6585 fi 6586 else 6587 # Otherwise we believe it is a complete path. Use it as it is. 6588 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5 6589 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;} 6590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5 6591 $as_echo_n "checking for DIRNAME... " >&6; } 6592 if test ! -x "$tool_specified"; then 6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6594 $as_echo "not found" >&6; } 6595 as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5 6596 fi 6597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6598 $as_echo "$tool_specified" >&6; } 6599 fi 6600 fi 6601 fi 6602 6603 6604 6605 if test "x$DIRNAME" = x; then 6606 as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5 6607 fi 6608 6609 6610 6611 6612 6613 # Publish this variable in the help. 6614 6615 6616 if test "x$ECHO" = x; then 6617 # The variable is not set by user, try to locate tool using the code snippet 6618 for ac_prog in echo 6619 do 6620 # Extract the first word of "$ac_prog", so it can be a program name with args. 6621 set dummy $ac_prog; ac_word=$2 6622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6623 $as_echo_n "checking for $ac_word... " >&6; } 6624 if ${ac_cv_path_ECHO+:} false; then : 6625 $as_echo_n "(cached) " >&6 6626 else 6627 case $ECHO in 6628 [\\/]* | ?:[\\/]*) 6629 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 6630 ;; 6631 *) 6632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6633 for as_dir in $PATH 6634 do 6635 IFS=$as_save_IFS 6636 test -z "$as_dir" && as_dir=. 6637 for ac_exec_ext in '' $ac_executable_extensions; do 6638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6639 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 6640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6641 break 2 6642 fi 6643 done 6644 done 6645 IFS=$as_save_IFS 6646 6647 ;; 6648 esac 6649 fi 6650 ECHO=$ac_cv_path_ECHO 6651 if test -n "$ECHO"; then 6652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 6653 $as_echo "$ECHO" >&6; } 6654 else 6655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6656 $as_echo "no" >&6; } 6657 fi 6658 6659 6660 test -n "$ECHO" && break 6661 done 6662 6663 else 6664 # The variable is set, but is it from the command line or the environment? 6665 6666 # Try to remove the string !ECHO! from our list. 6667 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/} 6668 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6669 # If it failed, the variable was not from the command line. Ignore it, 6670 # but warn the user (except for BASH, which is always set by the calling BASH). 6671 if test "xECHO" != xBASH; then 6672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5 6673 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;} 6674 fi 6675 # Try to locate tool using the code snippet 6676 for ac_prog in echo 6677 do 6678 # Extract the first word of "$ac_prog", so it can be a program name with args. 6679 set dummy $ac_prog; ac_word=$2 6680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6681 $as_echo_n "checking for $ac_word... " >&6; } 6682 if ${ac_cv_path_ECHO+:} false; then : 6683 $as_echo_n "(cached) " >&6 6684 else 6685 case $ECHO in 6686 [\\/]* | ?:[\\/]*) 6687 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 6688 ;; 6689 *) 6690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6691 for as_dir in $PATH 6692 do 6693 IFS=$as_save_IFS 6694 test -z "$as_dir" && as_dir=. 6695 for ac_exec_ext in '' $ac_executable_extensions; do 6696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6697 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 6698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6699 break 2 6700 fi 6701 done 6702 done 6703 IFS=$as_save_IFS 6704 6705 ;; 6706 esac 6707 fi 6708 ECHO=$ac_cv_path_ECHO 6709 if test -n "$ECHO"; then 6710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 6711 $as_echo "$ECHO" >&6; } 6712 else 6713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6714 $as_echo "no" >&6; } 6715 fi 6716 6717 6718 test -n "$ECHO" && break 6719 done 6720 6721 else 6722 # If it succeeded, then it was overridden by the user. We will use it 6723 # for the tool. 6724 6725 # First remove it from the list of overridden variables, so we can test 6726 # for unknown variables in the end. 6727 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6728 6729 # Check if the provided tool contains a complete path. 6730 tool_specified="$ECHO" 6731 tool_basename="${tool_specified##*/}" 6732 if test "x$tool_basename" = "x$tool_specified"; then 6733 # A command without a complete path is provided, search $PATH. 6734 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5 6735 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;} 6736 # Extract the first word of "$tool_basename", so it can be a program name with args. 6737 set dummy $tool_basename; ac_word=$2 6738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6739 $as_echo_n "checking for $ac_word... " >&6; } 6740 if ${ac_cv_path_ECHO+:} false; then : 6741 $as_echo_n "(cached) " >&6 6742 else 6743 case $ECHO in 6744 [\\/]* | ?:[\\/]*) 6745 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 6746 ;; 6747 *) 6748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6749 for as_dir in $PATH 6750 do 6751 IFS=$as_save_IFS 6752 test -z "$as_dir" && as_dir=. 6753 for ac_exec_ext in '' $ac_executable_extensions; do 6754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6755 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 6756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6757 break 2 6758 fi 6759 done 6760 done 6761 IFS=$as_save_IFS 6762 6763 ;; 6764 esac 6765 fi 6766 ECHO=$ac_cv_path_ECHO 6767 if test -n "$ECHO"; then 6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 6769 $as_echo "$ECHO" >&6; } 6770 else 6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6772 $as_echo "no" >&6; } 6773 fi 6774 6775 6776 if test "x$ECHO" = x; then 6777 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6778 fi 6779 else 6780 # Otherwise we believe it is a complete path. Use it as it is. 6781 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5 6782 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;} 6783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5 6784 $as_echo_n "checking for ECHO... " >&6; } 6785 if test ! -x "$tool_specified"; then 6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6787 $as_echo "not found" >&6; } 6788 as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5 6789 fi 6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6791 $as_echo "$tool_specified" >&6; } 6792 fi 6793 fi 6794 fi 6795 6796 6797 6798 if test "x$ECHO" = x; then 6799 as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5 6800 fi 6801 6802 6803 6804 6805 6806 # Publish this variable in the help. 6807 6808 6809 if test "x$EXPR" = x; then 6810 # The variable is not set by user, try to locate tool using the code snippet 6811 for ac_prog in expr 6812 do 6813 # Extract the first word of "$ac_prog", so it can be a program name with args. 6814 set dummy $ac_prog; 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_EXPR+:} false; then : 6818 $as_echo_n "(cached) " >&6 6819 else 6820 case $EXPR in 6821 [\\/]* | ?:[\\/]*) 6822 ac_cv_path_EXPR="$EXPR" # 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_EXPR="$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 EXPR=$ac_cv_path_EXPR 6844 if test -n "$EXPR"; then 6845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 6846 $as_echo "$EXPR" >&6; } 6847 else 6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6849 $as_echo "no" >&6; } 6850 fi 6851 6852 6853 test -n "$EXPR" && break 6854 done 6855 6856 else 6857 # The variable is set, but is it from the command line or the environment? 6858 6859 # Try to remove the string !EXPR! from our list. 6860 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/} 6861 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6862 # If it failed, the variable was not from the command line. Ignore it, 6863 # but warn the user (except for BASH, which is always set by the calling BASH). 6864 if test "xEXPR" != xBASH; then 6865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5 6866 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;} 6867 fi 6868 # Try to locate tool using the code snippet 6869 for ac_prog in expr 6870 do 6871 # Extract the first word of "$ac_prog", so it can be a program name with args. 6872 set dummy $ac_prog; ac_word=$2 6873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6874 $as_echo_n "checking for $ac_word... " >&6; } 6875 if ${ac_cv_path_EXPR+:} false; then : 6876 $as_echo_n "(cached) " >&6 6877 else 6878 case $EXPR in 6879 [\\/]* | ?:[\\/]*) 6880 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 6881 ;; 6882 *) 6883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6884 for as_dir in $PATH 6885 do 6886 IFS=$as_save_IFS 6887 test -z "$as_dir" && as_dir=. 6888 for ac_exec_ext in '' $ac_executable_extensions; do 6889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6890 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 6891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6892 break 2 6893 fi 6894 done 6895 done 6896 IFS=$as_save_IFS 6897 6898 ;; 6899 esac 6900 fi 6901 EXPR=$ac_cv_path_EXPR 6902 if test -n "$EXPR"; then 6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 6904 $as_echo "$EXPR" >&6; } 6905 else 6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6907 $as_echo "no" >&6; } 6908 fi 6909 6910 6911 test -n "$EXPR" && break 6912 done 6913 6914 else 6915 # If it succeeded, then it was overridden by the user. We will use it 6916 # for the tool. 6917 6918 # First remove it from the list of overridden variables, so we can test 6919 # for unknown variables in the end. 6920 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6921 6922 # Check if the provided tool contains a complete path. 6923 tool_specified="$EXPR" 6924 tool_basename="${tool_specified##*/}" 6925 if test "x$tool_basename" = "x$tool_specified"; then 6926 # A command without a complete path is provided, search $PATH. 6927 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5 6928 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;} 6929 # Extract the first word of "$tool_basename", so it can be a program name with args. 6930 set dummy $tool_basename; ac_word=$2 6931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6932 $as_echo_n "checking for $ac_word... " >&6; } 6933 if ${ac_cv_path_EXPR+:} false; then : 6934 $as_echo_n "(cached) " >&6 6935 else 6936 case $EXPR in 6937 [\\/]* | ?:[\\/]*) 6938 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 6939 ;; 6940 *) 6941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6942 for as_dir in $PATH 6943 do 6944 IFS=$as_save_IFS 6945 test -z "$as_dir" && as_dir=. 6946 for ac_exec_ext in '' $ac_executable_extensions; do 6947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6948 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 6949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6950 break 2 6951 fi 6952 done 6953 done 6954 IFS=$as_save_IFS 6955 6956 ;; 6957 esac 6958 fi 6959 EXPR=$ac_cv_path_EXPR 6960 if test -n "$EXPR"; then 6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 6962 $as_echo "$EXPR" >&6; } 6963 else 6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6965 $as_echo "no" >&6; } 6966 fi 6967 6968 6969 if test "x$EXPR" = x; then 6970 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6971 fi 6972 else 6973 # Otherwise we believe it is a complete path. Use it as it is. 6974 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5 6975 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;} 6976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5 6977 $as_echo_n "checking for EXPR... " >&6; } 6978 if test ! -x "$tool_specified"; then 6979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6980 $as_echo "not found" >&6; } 6981 as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5 6982 fi 6983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6984 $as_echo "$tool_specified" >&6; } 6985 fi 6986 fi 6987 fi 6988 6989 6990 6991 if test "x$EXPR" = x; then 6992 as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5 6993 fi 6994 6995 6996 6997 6998 6999 # Publish this variable in the help. 7000 7001 7002 if test "x$FILE" = x; then 7003 # The variable is not set by user, try to locate tool using the code snippet 7004 for ac_prog in file 7005 do 7006 # Extract the first word of "$ac_prog", so it can be a program name with args. 7007 set dummy $ac_prog; ac_word=$2 7008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7009 $as_echo_n "checking for $ac_word... " >&6; } 7010 if ${ac_cv_path_FILE+:} false; then : 7011 $as_echo_n "(cached) " >&6 7012 else 7013 case $FILE in 7014 [\\/]* | ?:[\\/]*) 7015 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 7016 ;; 7017 *) 7018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7019 for as_dir in $PATH 7020 do 7021 IFS=$as_save_IFS 7022 test -z "$as_dir" && as_dir=. 7023 for ac_exec_ext in '' $ac_executable_extensions; do 7024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7025 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 7026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7027 break 2 7028 fi 7029 done 7030 done 7031 IFS=$as_save_IFS 7032 7033 ;; 7034 esac 7035 fi 7036 FILE=$ac_cv_path_FILE 7037 if test -n "$FILE"; then 7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 7039 $as_echo "$FILE" >&6; } 7040 else 7041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7042 $as_echo "no" >&6; } 7043 fi 7044 7045 7046 test -n "$FILE" && break 7047 done 7048 7049 else 7050 # The variable is set, but is it from the command line or the environment? 7051 7052 # Try to remove the string !FILE! from our list. 7053 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/} 7054 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7055 # If it failed, the variable was not from the command line. Ignore it, 7056 # but warn the user (except for BASH, which is always set by the calling BASH). 7057 if test "xFILE" != xBASH; then 7058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5 7059 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;} 7060 fi 7061 # Try to locate tool using the code snippet 7062 for ac_prog in file 7063 do 7064 # Extract the first word of "$ac_prog", so it can be a program name with args. 7065 set dummy $ac_prog; ac_word=$2 7066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7067 $as_echo_n "checking for $ac_word... " >&6; } 7068 if ${ac_cv_path_FILE+:} false; then : 7069 $as_echo_n "(cached) " >&6 7070 else 7071 case $FILE in 7072 [\\/]* | ?:[\\/]*) 7073 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 7074 ;; 7075 *) 7076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7077 for as_dir in $PATH 7078 do 7079 IFS=$as_save_IFS 7080 test -z "$as_dir" && as_dir=. 7081 for ac_exec_ext in '' $ac_executable_extensions; do 7082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7083 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 7084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7085 break 2 7086 fi 7087 done 7088 done 7089 IFS=$as_save_IFS 7090 7091 ;; 7092 esac 7093 fi 7094 FILE=$ac_cv_path_FILE 7095 if test -n "$FILE"; then 7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 7097 $as_echo "$FILE" >&6; } 7098 else 7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7100 $as_echo "no" >&6; } 7101 fi 7102 7103 7104 test -n "$FILE" && break 7105 done 7106 7107 else 7108 # If it succeeded, then it was overridden by the user. We will use it 7109 # for the tool. 7110 7111 # First remove it from the list of overridden variables, so we can test 7112 # for unknown variables in the end. 7113 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7114 7115 # Check if the provided tool contains a complete path. 7116 tool_specified="$FILE" 7117 tool_basename="${tool_specified##*/}" 7118 if test "x$tool_basename" = "x$tool_specified"; then 7119 # A command without a complete path is provided, search $PATH. 7120 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5 7121 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;} 7122 # Extract the first word of "$tool_basename", so it can be a program name with args. 7123 set dummy $tool_basename; ac_word=$2 7124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7125 $as_echo_n "checking for $ac_word... " >&6; } 7126 if ${ac_cv_path_FILE+:} false; then : 7127 $as_echo_n "(cached) " >&6 7128 else 7129 case $FILE in 7130 [\\/]* | ?:[\\/]*) 7131 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 7132 ;; 7133 *) 7134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7135 for as_dir in $PATH 7136 do 7137 IFS=$as_save_IFS 7138 test -z "$as_dir" && as_dir=. 7139 for ac_exec_ext in '' $ac_executable_extensions; do 7140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7141 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 7142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7143 break 2 7144 fi 7145 done 7146 done 7147 IFS=$as_save_IFS 7148 7149 ;; 7150 esac 7151 fi 7152 FILE=$ac_cv_path_FILE 7153 if test -n "$FILE"; then 7154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 7155 $as_echo "$FILE" >&6; } 7156 else 7157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7158 $as_echo "no" >&6; } 7159 fi 7160 7161 7162 if test "x$FILE" = x; then 7163 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7164 fi 7165 else 7166 # Otherwise we believe it is a complete path. Use it as it is. 7167 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5 7168 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;} 7169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5 7170 $as_echo_n "checking for FILE... " >&6; } 7171 if test ! -x "$tool_specified"; then 7172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7173 $as_echo "not found" >&6; } 7174 as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5 7175 fi 7176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7177 $as_echo "$tool_specified" >&6; } 7178 fi 7179 fi 7180 fi 7181 7182 7183 7184 if test "x$FILE" = x; then 7185 as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5 7186 fi 7187 7188 7189 7190 7191 7192 # Publish this variable in the help. 7193 7194 7195 if test "x$FIND" = x; then 7196 # The variable is not set by user, try to locate tool using the code snippet 7197 for ac_prog in find 7198 do 7199 # Extract the first word of "$ac_prog", so it can be a program name with args. 7200 set dummy $ac_prog; ac_word=$2 7201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7202 $as_echo_n "checking for $ac_word... " >&6; } 7203 if ${ac_cv_path_FIND+:} false; then : 7204 $as_echo_n "(cached) " >&6 7205 else 7206 case $FIND in 7207 [\\/]* | ?:[\\/]*) 7208 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 7209 ;; 7210 *) 7211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7212 for as_dir in $PATH 7213 do 7214 IFS=$as_save_IFS 7215 test -z "$as_dir" && as_dir=. 7216 for ac_exec_ext in '' $ac_executable_extensions; do 7217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7218 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 7219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7220 break 2 7221 fi 7222 done 7223 done 7224 IFS=$as_save_IFS 7225 7226 ;; 7227 esac 7228 fi 7229 FIND=$ac_cv_path_FIND 7230 if test -n "$FIND"; then 7231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 7232 $as_echo "$FIND" >&6; } 7233 else 7234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7235 $as_echo "no" >&6; } 7236 fi 7237 7238 7239 test -n "$FIND" && break 7240 done 7241 7242 else 7243 # The variable is set, but is it from the command line or the environment? 7244 7245 # Try to remove the string !FIND! from our list. 7246 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/} 7247 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7248 # If it failed, the variable was not from the command line. Ignore it, 7249 # but warn the user (except for BASH, which is always set by the calling BASH). 7250 if test "xFIND" != xBASH; then 7251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5 7252 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;} 7253 fi 7254 # Try to locate tool using the code snippet 7255 for ac_prog in find 7256 do 7257 # Extract the first word of "$ac_prog", so it can be a program name with args. 7258 set dummy $ac_prog; ac_word=$2 7259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7260 $as_echo_n "checking for $ac_word... " >&6; } 7261 if ${ac_cv_path_FIND+:} false; then : 7262 $as_echo_n "(cached) " >&6 7263 else 7264 case $FIND in 7265 [\\/]* | ?:[\\/]*) 7266 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 7267 ;; 7268 *) 7269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7270 for as_dir in $PATH 7271 do 7272 IFS=$as_save_IFS 7273 test -z "$as_dir" && as_dir=. 7274 for ac_exec_ext in '' $ac_executable_extensions; do 7275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7276 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 7277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7278 break 2 7279 fi 7280 done 7281 done 7282 IFS=$as_save_IFS 7283 7284 ;; 7285 esac 7286 fi 7287 FIND=$ac_cv_path_FIND 7288 if test -n "$FIND"; then 7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 7290 $as_echo "$FIND" >&6; } 7291 else 7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7293 $as_echo "no" >&6; } 7294 fi 7295 7296 7297 test -n "$FIND" && break 7298 done 7299 7300 else 7301 # If it succeeded, then it was overridden by the user. We will use it 7302 # for the tool. 7303 7304 # First remove it from the list of overridden variables, so we can test 7305 # for unknown variables in the end. 7306 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7307 7308 # Check if the provided tool contains a complete path. 7309 tool_specified="$FIND" 7310 tool_basename="${tool_specified##*/}" 7311 if test "x$tool_basename" = "x$tool_specified"; then 7312 # A command without a complete path is provided, search $PATH. 7313 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5 7314 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;} 7315 # Extract the first word of "$tool_basename", so it can be a program name with args. 7316 set dummy $tool_basename; ac_word=$2 7317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7318 $as_echo_n "checking for $ac_word... " >&6; } 7319 if ${ac_cv_path_FIND+:} false; then : 7320 $as_echo_n "(cached) " >&6 7321 else 7322 case $FIND in 7323 [\\/]* | ?:[\\/]*) 7324 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 7325 ;; 7326 *) 7327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7328 for as_dir in $PATH 7329 do 7330 IFS=$as_save_IFS 7331 test -z "$as_dir" && as_dir=. 7332 for ac_exec_ext in '' $ac_executable_extensions; do 7333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7334 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 7335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7336 break 2 7337 fi 7338 done 7339 done 7340 IFS=$as_save_IFS 7341 7342 ;; 7343 esac 7344 fi 7345 FIND=$ac_cv_path_FIND 7346 if test -n "$FIND"; then 7347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 7348 $as_echo "$FIND" >&6; } 7349 else 7350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7351 $as_echo "no" >&6; } 7352 fi 7353 7354 7355 if test "x$FIND" = x; then 7356 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7357 fi 7358 else 7359 # Otherwise we believe it is a complete path. Use it as it is. 7360 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5 7361 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;} 7362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5 7363 $as_echo_n "checking for FIND... " >&6; } 7364 if test ! -x "$tool_specified"; then 7365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7366 $as_echo "not found" >&6; } 7367 as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5 7368 fi 7369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7370 $as_echo "$tool_specified" >&6; } 7371 fi 7372 fi 7373 fi 7374 7375 7376 7377 if test "x$FIND" = x; then 7378 as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5 7379 fi 7380 7381 7382 7383 7384 7385 # Publish this variable in the help. 7386 7387 7388 if test "x$HEAD" = x; then 7389 # The variable is not set by user, try to locate tool using the code snippet 7390 for ac_prog in head 7391 do 7392 # Extract the first word of "$ac_prog", so it can be a program name with args. 7393 set dummy $ac_prog; ac_word=$2 7394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7395 $as_echo_n "checking for $ac_word... " >&6; } 7396 if ${ac_cv_path_HEAD+:} false; then : 7397 $as_echo_n "(cached) " >&6 7398 else 7399 case $HEAD in 7400 [\\/]* | ?:[\\/]*) 7401 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 7402 ;; 7403 *) 7404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7405 for as_dir in $PATH 7406 do 7407 IFS=$as_save_IFS 7408 test -z "$as_dir" && as_dir=. 7409 for ac_exec_ext in '' $ac_executable_extensions; do 7410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7411 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 7412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7413 break 2 7414 fi 7415 done 7416 done 7417 IFS=$as_save_IFS 7418 7419 ;; 7420 esac 7421 fi 7422 HEAD=$ac_cv_path_HEAD 7423 if test -n "$HEAD"; then 7424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 7425 $as_echo "$HEAD" >&6; } 7426 else 7427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7428 $as_echo "no" >&6; } 7429 fi 7430 7431 7432 test -n "$HEAD" && break 7433 done 7434 7435 else 7436 # The variable is set, but is it from the command line or the environment? 7437 7438 # Try to remove the string !HEAD! from our list. 7439 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/} 7440 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7441 # If it failed, the variable was not from the command line. Ignore it, 7442 # but warn the user (except for BASH, which is always set by the calling BASH). 7443 if test "xHEAD" != xBASH; then 7444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5 7445 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;} 7446 fi 7447 # Try to locate tool using the code snippet 7448 for ac_prog in head 7449 do 7450 # Extract the first word of "$ac_prog", so it can be a program name with args. 7451 set dummy $ac_prog; ac_word=$2 7452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7453 $as_echo_n "checking for $ac_word... " >&6; } 7454 if ${ac_cv_path_HEAD+:} false; then : 7455 $as_echo_n "(cached) " >&6 7456 else 7457 case $HEAD in 7458 [\\/]* | ?:[\\/]*) 7459 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 7460 ;; 7461 *) 7462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7463 for as_dir in $PATH 7464 do 7465 IFS=$as_save_IFS 7466 test -z "$as_dir" && as_dir=. 7467 for ac_exec_ext in '' $ac_executable_extensions; do 7468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7469 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 7470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7471 break 2 7472 fi 7473 done 7474 done 7475 IFS=$as_save_IFS 7476 7477 ;; 7478 esac 7479 fi 7480 HEAD=$ac_cv_path_HEAD 7481 if test -n "$HEAD"; then 7482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 7483 $as_echo "$HEAD" >&6; } 7484 else 7485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7486 $as_echo "no" >&6; } 7487 fi 7488 7489 7490 test -n "$HEAD" && break 7491 done 7492 7493 else 7494 # If it succeeded, then it was overridden by the user. We will use it 7495 # for the tool. 7496 7497 # First remove it from the list of overridden variables, so we can test 7498 # for unknown variables in the end. 7499 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7500 7501 # Check if the provided tool contains a complete path. 7502 tool_specified="$HEAD" 7503 tool_basename="${tool_specified##*/}" 7504 if test "x$tool_basename" = "x$tool_specified"; then 7505 # A command without a complete path is provided, search $PATH. 7506 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5 7507 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;} 7508 # Extract the first word of "$tool_basename", so it can be a program name with args. 7509 set dummy $tool_basename; ac_word=$2 7510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7511 $as_echo_n "checking for $ac_word... " >&6; } 7512 if ${ac_cv_path_HEAD+:} false; then : 7513 $as_echo_n "(cached) " >&6 7514 else 7515 case $HEAD in 7516 [\\/]* | ?:[\\/]*) 7517 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 7518 ;; 7519 *) 7520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7521 for as_dir in $PATH 7522 do 7523 IFS=$as_save_IFS 7524 test -z "$as_dir" && as_dir=. 7525 for ac_exec_ext in '' $ac_executable_extensions; do 7526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7527 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 7528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7529 break 2 7530 fi 7531 done 7532 done 7533 IFS=$as_save_IFS 7534 7535 ;; 7536 esac 7537 fi 7538 HEAD=$ac_cv_path_HEAD 7539 if test -n "$HEAD"; then 7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 7541 $as_echo "$HEAD" >&6; } 7542 else 7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7544 $as_echo "no" >&6; } 7545 fi 7546 7547 7548 if test "x$HEAD" = x; then 7549 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7550 fi 7551 else 7552 # Otherwise we believe it is a complete path. Use it as it is. 7553 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5 7554 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;} 7555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5 7556 $as_echo_n "checking for HEAD... " >&6; } 7557 if test ! -x "$tool_specified"; then 7558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7559 $as_echo "not found" >&6; } 7560 as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5 7561 fi 7562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7563 $as_echo "$tool_specified" >&6; } 7564 fi 7565 fi 7566 fi 7567 7568 7569 7570 if test "x$HEAD" = x; then 7571 as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5 7572 fi 7573 7574 7575 7576 7577 7578 # Publish this variable in the help. 7579 7580 7581 if test "x$LN" = x; then 7582 # The variable is not set by user, try to locate tool using the code snippet 7583 for ac_prog in ln 7584 do 7585 # Extract the first word of "$ac_prog", so it can be a program name with args. 7586 set dummy $ac_prog; ac_word=$2 7587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7588 $as_echo_n "checking for $ac_word... " >&6; } 7589 if ${ac_cv_path_LN+:} false; then : 7590 $as_echo_n "(cached) " >&6 7591 else 7592 case $LN in 7593 [\\/]* | ?:[\\/]*) 7594 ac_cv_path_LN="$LN" # Let the user override the test with a path. 7595 ;; 7596 *) 7597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7598 for as_dir in $PATH 7599 do 7600 IFS=$as_save_IFS 7601 test -z "$as_dir" && as_dir=. 7602 for ac_exec_ext in '' $ac_executable_extensions; do 7603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7604 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 7605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7606 break 2 7607 fi 7608 done 7609 done 7610 IFS=$as_save_IFS 7611 7612 ;; 7613 esac 7614 fi 7615 LN=$ac_cv_path_LN 7616 if test -n "$LN"; then 7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 7618 $as_echo "$LN" >&6; } 7619 else 7620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7621 $as_echo "no" >&6; } 7622 fi 7623 7624 7625 test -n "$LN" && break 7626 done 7627 7628 else 7629 # The variable is set, but is it from the command line or the environment? 7630 7631 # Try to remove the string !LN! from our list. 7632 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/} 7633 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7634 # If it failed, the variable was not from the command line. Ignore it, 7635 # but warn the user (except for BASH, which is always set by the calling BASH). 7636 if test "xLN" != xBASH; then 7637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5 7638 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;} 7639 fi 7640 # Try to locate tool using the code snippet 7641 for ac_prog in ln 7642 do 7643 # Extract the first word of "$ac_prog", so it can be a program name with args. 7644 set dummy $ac_prog; ac_word=$2 7645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7646 $as_echo_n "checking for $ac_word... " >&6; } 7647 if ${ac_cv_path_LN+:} false; then : 7648 $as_echo_n "(cached) " >&6 7649 else 7650 case $LN in 7651 [\\/]* | ?:[\\/]*) 7652 ac_cv_path_LN="$LN" # Let the user override the test with a path. 7653 ;; 7654 *) 7655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7656 for as_dir in $PATH 7657 do 7658 IFS=$as_save_IFS 7659 test -z "$as_dir" && as_dir=. 7660 for ac_exec_ext in '' $ac_executable_extensions; do 7661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7662 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 7663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7664 break 2 7665 fi 7666 done 7667 done 7668 IFS=$as_save_IFS 7669 7670 ;; 7671 esac 7672 fi 7673 LN=$ac_cv_path_LN 7674 if test -n "$LN"; then 7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 7676 $as_echo "$LN" >&6; } 7677 else 7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7679 $as_echo "no" >&6; } 7680 fi 7681 7682 7683 test -n "$LN" && break 7684 done 7685 7686 else 7687 # If it succeeded, then it was overridden by the user. We will use it 7688 # for the tool. 7689 7690 # First remove it from the list of overridden variables, so we can test 7691 # for unknown variables in the end. 7692 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7693 7694 # Check if the provided tool contains a complete path. 7695 tool_specified="$LN" 7696 tool_basename="${tool_specified##*/}" 7697 if test "x$tool_basename" = "x$tool_specified"; then 7698 # A command without a complete path is provided, search $PATH. 7699 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5 7700 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;} 7701 # Extract the first word of "$tool_basename", so it can be a program name with args. 7702 set dummy $tool_basename; ac_word=$2 7703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7704 $as_echo_n "checking for $ac_word... " >&6; } 7705 if ${ac_cv_path_LN+:} false; then : 7706 $as_echo_n "(cached) " >&6 7707 else 7708 case $LN in 7709 [\\/]* | ?:[\\/]*) 7710 ac_cv_path_LN="$LN" # Let the user override the test with a path. 7711 ;; 7712 *) 7713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7714 for as_dir in $PATH 7715 do 7716 IFS=$as_save_IFS 7717 test -z "$as_dir" && as_dir=. 7718 for ac_exec_ext in '' $ac_executable_extensions; do 7719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7720 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 7721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7722 break 2 7723 fi 7724 done 7725 done 7726 IFS=$as_save_IFS 7727 7728 ;; 7729 esac 7730 fi 7731 LN=$ac_cv_path_LN 7732 if test -n "$LN"; then 7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 7734 $as_echo "$LN" >&6; } 7735 else 7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7737 $as_echo "no" >&6; } 7738 fi 7739 7740 7741 if test "x$LN" = x; then 7742 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7743 fi 7744 else 7745 # Otherwise we believe it is a complete path. Use it as it is. 7746 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5 7747 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;} 7748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5 7749 $as_echo_n "checking for LN... " >&6; } 7750 if test ! -x "$tool_specified"; then 7751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7752 $as_echo "not found" >&6; } 7753 as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5 7754 fi 7755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7756 $as_echo "$tool_specified" >&6; } 7757 fi 7758 fi 7759 fi 7760 7761 7762 7763 if test "x$LN" = x; then 7764 as_fn_error $? "Could not find required tool for LN" "$LINENO" 5 7765 fi 7766 7767 7768 7769 7770 7771 # Publish this variable in the help. 7772 7773 7774 if test "x$LS" = x; then 7775 # The variable is not set by user, try to locate tool using the code snippet 7776 for ac_prog in ls 7777 do 7778 # Extract the first word of "$ac_prog", so it can be a program name with args. 7779 set dummy $ac_prog; ac_word=$2 7780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7781 $as_echo_n "checking for $ac_word... " >&6; } 7782 if ${ac_cv_path_LS+:} false; then : 7783 $as_echo_n "(cached) " >&6 7784 else 7785 case $LS in 7786 [\\/]* | ?:[\\/]*) 7787 ac_cv_path_LS="$LS" # Let the user override the test with a path. 7788 ;; 7789 *) 7790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7791 for as_dir in $PATH 7792 do 7793 IFS=$as_save_IFS 7794 test -z "$as_dir" && as_dir=. 7795 for ac_exec_ext in '' $ac_executable_extensions; do 7796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7797 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 7798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7799 break 2 7800 fi 7801 done 7802 done 7803 IFS=$as_save_IFS 7804 7805 ;; 7806 esac 7807 fi 7808 LS=$ac_cv_path_LS 7809 if test -n "$LS"; then 7810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 7811 $as_echo "$LS" >&6; } 7812 else 7813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7814 $as_echo "no" >&6; } 7815 fi 7816 7817 7818 test -n "$LS" && break 7819 done 7820 7821 else 7822 # The variable is set, but is it from the command line or the environment? 7823 7824 # Try to remove the string !LS! from our list. 7825 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/} 7826 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7827 # If it failed, the variable was not from the command line. Ignore it, 7828 # but warn the user (except for BASH, which is always set by the calling BASH). 7829 if test "xLS" != xBASH; then 7830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5 7831 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;} 7832 fi 7833 # Try to locate tool using the code snippet 7834 for ac_prog in ls 7835 do 7836 # Extract the first word of "$ac_prog", so it can be a program name with args. 7837 set dummy $ac_prog; ac_word=$2 7838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7839 $as_echo_n "checking for $ac_word... " >&6; } 7840 if ${ac_cv_path_LS+:} false; then : 7841 $as_echo_n "(cached) " >&6 7842 else 7843 case $LS in 7844 [\\/]* | ?:[\\/]*) 7845 ac_cv_path_LS="$LS" # Let the user override the test with a path. 7846 ;; 7847 *) 7848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7849 for as_dir in $PATH 7850 do 7851 IFS=$as_save_IFS 7852 test -z "$as_dir" && as_dir=. 7853 for ac_exec_ext in '' $ac_executable_extensions; do 7854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7855 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 7856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7857 break 2 7858 fi 7859 done 7860 done 7861 IFS=$as_save_IFS 7862 7863 ;; 7864 esac 7865 fi 7866 LS=$ac_cv_path_LS 7867 if test -n "$LS"; then 7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 7869 $as_echo "$LS" >&6; } 7870 else 7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7872 $as_echo "no" >&6; } 7873 fi 7874 7875 7876 test -n "$LS" && break 7877 done 7878 7879 else 7880 # If it succeeded, then it was overridden by the user. We will use it 7881 # for the tool. 7882 7883 # First remove it from the list of overridden variables, so we can test 7884 # for unknown variables in the end. 7885 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7886 7887 # Check if the provided tool contains a complete path. 7888 tool_specified="$LS" 7889 tool_basename="${tool_specified##*/}" 7890 if test "x$tool_basename" = "x$tool_specified"; then 7891 # A command without a complete path is provided, search $PATH. 7892 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5 7893 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;} 7894 # Extract the first word of "$tool_basename", so it can be a program name with args. 7895 set dummy $tool_basename; ac_word=$2 7896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7897 $as_echo_n "checking for $ac_word... " >&6; } 7898 if ${ac_cv_path_LS+:} false; then : 7899 $as_echo_n "(cached) " >&6 7900 else 7901 case $LS in 7902 [\\/]* | ?:[\\/]*) 7903 ac_cv_path_LS="$LS" # Let the user override the test with a path. 7904 ;; 7905 *) 7906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7907 for as_dir in $PATH 7908 do 7909 IFS=$as_save_IFS 7910 test -z "$as_dir" && as_dir=. 7911 for ac_exec_ext in '' $ac_executable_extensions; do 7912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7913 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 7914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7915 break 2 7916 fi 7917 done 7918 done 7919 IFS=$as_save_IFS 7920 7921 ;; 7922 esac 7923 fi 7924 LS=$ac_cv_path_LS 7925 if test -n "$LS"; then 7926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 7927 $as_echo "$LS" >&6; } 7928 else 7929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7930 $as_echo "no" >&6; } 7931 fi 7932 7933 7934 if test "x$LS" = x; then 7935 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7936 fi 7937 else 7938 # Otherwise we believe it is a complete path. Use it as it is. 7939 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5 7940 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;} 7941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5 7942 $as_echo_n "checking for LS... " >&6; } 7943 if test ! -x "$tool_specified"; then 7944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7945 $as_echo "not found" >&6; } 7946 as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5 7947 fi 7948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7949 $as_echo "$tool_specified" >&6; } 7950 fi 7951 fi 7952 fi 7953 7954 7955 7956 if test "x$LS" = x; then 7957 as_fn_error $? "Could not find required tool for LS" "$LINENO" 5 7958 fi 7959 7960 7961 7962 7963 7964 # Publish this variable in the help. 7965 7966 7967 if test "x$MKDIR" = x; then 7968 # The variable is not set by user, try to locate tool using the code snippet 7969 for ac_prog in mkdir 7970 do 7971 # Extract the first word of "$ac_prog", so it can be a program name with args. 7972 set dummy $ac_prog; ac_word=$2 7973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7974 $as_echo_n "checking for $ac_word... " >&6; } 7975 if ${ac_cv_path_MKDIR+:} false; then : 7976 $as_echo_n "(cached) " >&6 7977 else 7978 case $MKDIR in 7979 [\\/]* | ?:[\\/]*) 7980 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 7981 ;; 7982 *) 7983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7984 for as_dir in $PATH 7985 do 7986 IFS=$as_save_IFS 7987 test -z "$as_dir" && as_dir=. 7988 for ac_exec_ext in '' $ac_executable_extensions; do 7989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7990 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 7991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7992 break 2 7993 fi 7994 done 7995 done 7996 IFS=$as_save_IFS 7997 7998 ;; 7999 esac 8000 fi 8001 MKDIR=$ac_cv_path_MKDIR 8002 if test -n "$MKDIR"; then 8003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 8004 $as_echo "$MKDIR" >&6; } 8005 else 8006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8007 $as_echo "no" >&6; } 8008 fi 8009 8010 8011 test -n "$MKDIR" && break 8012 done 8013 8014 else 8015 # The variable is set, but is it from the command line or the environment? 8016 8017 # Try to remove the string !MKDIR! from our list. 8018 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/} 8019 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8020 # If it failed, the variable was not from the command line. Ignore it, 8021 # but warn the user (except for BASH, which is always set by the calling BASH). 8022 if test "xMKDIR" != xBASH; then 8023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5 8024 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;} 8025 fi 8026 # Try to locate tool using the code snippet 8027 for ac_prog in mkdir 8028 do 8029 # Extract the first word of "$ac_prog", so it can be a program name with args. 8030 set dummy $ac_prog; ac_word=$2 8031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8032 $as_echo_n "checking for $ac_word... " >&6; } 8033 if ${ac_cv_path_MKDIR+:} false; then : 8034 $as_echo_n "(cached) " >&6 8035 else 8036 case $MKDIR in 8037 [\\/]* | ?:[\\/]*) 8038 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 8039 ;; 8040 *) 8041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8042 for as_dir in $PATH 8043 do 8044 IFS=$as_save_IFS 8045 test -z "$as_dir" && as_dir=. 8046 for ac_exec_ext in '' $ac_executable_extensions; do 8047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8048 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 8049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8050 break 2 8051 fi 8052 done 8053 done 8054 IFS=$as_save_IFS 8055 8056 ;; 8057 esac 8058 fi 8059 MKDIR=$ac_cv_path_MKDIR 8060 if test -n "$MKDIR"; then 8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 8062 $as_echo "$MKDIR" >&6; } 8063 else 8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8065 $as_echo "no" >&6; } 8066 fi 8067 8068 8069 test -n "$MKDIR" && break 8070 done 8071 8072 else 8073 # If it succeeded, then it was overridden by the user. We will use it 8074 # for the tool. 8075 8076 # First remove it from the list of overridden variables, so we can test 8077 # for unknown variables in the end. 8078 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8079 8080 # Check if the provided tool contains a complete path. 8081 tool_specified="$MKDIR" 8082 tool_basename="${tool_specified##*/}" 8083 if test "x$tool_basename" = "x$tool_specified"; then 8084 # A command without a complete path is provided, search $PATH. 8085 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5 8086 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;} 8087 # Extract the first word of "$tool_basename", so it can be a program name with args. 8088 set dummy $tool_basename; ac_word=$2 8089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8090 $as_echo_n "checking for $ac_word... " >&6; } 8091 if ${ac_cv_path_MKDIR+:} false; then : 8092 $as_echo_n "(cached) " >&6 8093 else 8094 case $MKDIR in 8095 [\\/]* | ?:[\\/]*) 8096 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 8097 ;; 8098 *) 8099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8100 for as_dir in $PATH 8101 do 8102 IFS=$as_save_IFS 8103 test -z "$as_dir" && as_dir=. 8104 for ac_exec_ext in '' $ac_executable_extensions; do 8105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8106 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 8107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8108 break 2 8109 fi 8110 done 8111 done 8112 IFS=$as_save_IFS 8113 8114 ;; 8115 esac 8116 fi 8117 MKDIR=$ac_cv_path_MKDIR 8118 if test -n "$MKDIR"; then 8119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 8120 $as_echo "$MKDIR" >&6; } 8121 else 8122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8123 $as_echo "no" >&6; } 8124 fi 8125 8126 8127 if test "x$MKDIR" = x; then 8128 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8129 fi 8130 else 8131 # Otherwise we believe it is a complete path. Use it as it is. 8132 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5 8133 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;} 8134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5 8135 $as_echo_n "checking for MKDIR... " >&6; } 8136 if test ! -x "$tool_specified"; then 8137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8138 $as_echo "not found" >&6; } 8139 as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5 8140 fi 8141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8142 $as_echo "$tool_specified" >&6; } 8143 fi 8144 fi 8145 fi 8146 8147 8148 8149 if test "x$MKDIR" = x; then 8150 as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5 8151 fi 8152 8153 8154 8155 8156 8157 # Publish this variable in the help. 8158 8159 8160 if test "x$MKTEMP" = x; then 8161 # The variable is not set by user, try to locate tool using the code snippet 8162 for ac_prog in mktemp 8163 do 8164 # Extract the first word of "$ac_prog", so it can be a program name with args. 8165 set dummy $ac_prog; ac_word=$2 8166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8167 $as_echo_n "checking for $ac_word... " >&6; } 8168 if ${ac_cv_path_MKTEMP+:} false; then : 8169 $as_echo_n "(cached) " >&6 8170 else 8171 case $MKTEMP in 8172 [\\/]* | ?:[\\/]*) 8173 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 8174 ;; 8175 *) 8176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8177 for as_dir in $PATH 8178 do 8179 IFS=$as_save_IFS 8180 test -z "$as_dir" && as_dir=. 8181 for ac_exec_ext in '' $ac_executable_extensions; do 8182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8183 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 8184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8185 break 2 8186 fi 8187 done 8188 done 8189 IFS=$as_save_IFS 8190 8191 ;; 8192 esac 8193 fi 8194 MKTEMP=$ac_cv_path_MKTEMP 8195 if test -n "$MKTEMP"; then 8196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 8197 $as_echo "$MKTEMP" >&6; } 8198 else 8199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8200 $as_echo "no" >&6; } 8201 fi 8202 8203 8204 test -n "$MKTEMP" && break 8205 done 8206 8207 else 8208 # The variable is set, but is it from the command line or the environment? 8209 8210 # Try to remove the string !MKTEMP! from our list. 8211 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/} 8212 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8213 # If it failed, the variable was not from the command line. Ignore it, 8214 # but warn the user (except for BASH, which is always set by the calling BASH). 8215 if test "xMKTEMP" != xBASH; then 8216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5 8217 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;} 8218 fi 8219 # Try to locate tool using the code snippet 8220 for ac_prog in mktemp 8221 do 8222 # Extract the first word of "$ac_prog", so it can be a program name with args. 8223 set dummy $ac_prog; ac_word=$2 8224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8225 $as_echo_n "checking for $ac_word... " >&6; } 8226 if ${ac_cv_path_MKTEMP+:} false; then : 8227 $as_echo_n "(cached) " >&6 8228 else 8229 case $MKTEMP in 8230 [\\/]* | ?:[\\/]*) 8231 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 8232 ;; 8233 *) 8234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8235 for as_dir in $PATH 8236 do 8237 IFS=$as_save_IFS 8238 test -z "$as_dir" && as_dir=. 8239 for ac_exec_ext in '' $ac_executable_extensions; do 8240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8241 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 8242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8243 break 2 8244 fi 8245 done 8246 done 8247 IFS=$as_save_IFS 8248 8249 ;; 8250 esac 8251 fi 8252 MKTEMP=$ac_cv_path_MKTEMP 8253 if test -n "$MKTEMP"; then 8254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 8255 $as_echo "$MKTEMP" >&6; } 8256 else 8257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8258 $as_echo "no" >&6; } 8259 fi 8260 8261 8262 test -n "$MKTEMP" && break 8263 done 8264 8265 else 8266 # If it succeeded, then it was overridden by the user. We will use it 8267 # for the tool. 8268 8269 # First remove it from the list of overridden variables, so we can test 8270 # for unknown variables in the end. 8271 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8272 8273 # Check if the provided tool contains a complete path. 8274 tool_specified="$MKTEMP" 8275 tool_basename="${tool_specified##*/}" 8276 if test "x$tool_basename" = "x$tool_specified"; then 8277 # A command without a complete path is provided, search $PATH. 8278 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5 8279 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;} 8280 # Extract the first word of "$tool_basename", so it can be a program name with args. 8281 set dummy $tool_basename; ac_word=$2 8282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8283 $as_echo_n "checking for $ac_word... " >&6; } 8284 if ${ac_cv_path_MKTEMP+:} false; then : 8285 $as_echo_n "(cached) " >&6 8286 else 8287 case $MKTEMP in 8288 [\\/]* | ?:[\\/]*) 8289 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 8290 ;; 8291 *) 8292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8293 for as_dir in $PATH 8294 do 8295 IFS=$as_save_IFS 8296 test -z "$as_dir" && as_dir=. 8297 for ac_exec_ext in '' $ac_executable_extensions; do 8298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8299 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 8300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8301 break 2 8302 fi 8303 done 8304 done 8305 IFS=$as_save_IFS 8306 8307 ;; 8308 esac 8309 fi 8310 MKTEMP=$ac_cv_path_MKTEMP 8311 if test -n "$MKTEMP"; then 8312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 8313 $as_echo "$MKTEMP" >&6; } 8314 else 8315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8316 $as_echo "no" >&6; } 8317 fi 8318 8319 8320 if test "x$MKTEMP" = x; then 8321 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8322 fi 8323 else 8324 # Otherwise we believe it is a complete path. Use it as it is. 8325 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5 8326 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;} 8327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5 8328 $as_echo_n "checking for MKTEMP... " >&6; } 8329 if test ! -x "$tool_specified"; then 8330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8331 $as_echo "not found" >&6; } 8332 as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5 8333 fi 8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8335 $as_echo "$tool_specified" >&6; } 8336 fi 8337 fi 8338 fi 8339 8340 8341 8342 if test "x$MKTEMP" = x; then 8343 as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5 8344 fi 8345 8346 8347 8348 8349 8350 # Publish this variable in the help. 8351 8352 8353 if test "x$MV" = x; then 8354 # The variable is not set by user, try to locate tool using the code snippet 8355 for ac_prog in mv 8356 do 8357 # Extract the first word of "$ac_prog", so it can be a program name with args. 8358 set dummy $ac_prog; ac_word=$2 8359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8360 $as_echo_n "checking for $ac_word... " >&6; } 8361 if ${ac_cv_path_MV+:} false; then : 8362 $as_echo_n "(cached) " >&6 8363 else 8364 case $MV in 8365 [\\/]* | ?:[\\/]*) 8366 ac_cv_path_MV="$MV" # Let the user override the test with a path. 8367 ;; 8368 *) 8369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8370 for as_dir in $PATH 8371 do 8372 IFS=$as_save_IFS 8373 test -z "$as_dir" && as_dir=. 8374 for ac_exec_ext in '' $ac_executable_extensions; do 8375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8376 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 8377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8378 break 2 8379 fi 8380 done 8381 done 8382 IFS=$as_save_IFS 8383 8384 ;; 8385 esac 8386 fi 8387 MV=$ac_cv_path_MV 8388 if test -n "$MV"; then 8389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 8390 $as_echo "$MV" >&6; } 8391 else 8392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8393 $as_echo "no" >&6; } 8394 fi 8395 8396 8397 test -n "$MV" && break 8398 done 8399 8400 else 8401 # The variable is set, but is it from the command line or the environment? 8402 8403 # Try to remove the string !MV! from our list. 8404 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/} 8405 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8406 # If it failed, the variable was not from the command line. Ignore it, 8407 # but warn the user (except for BASH, which is always set by the calling BASH). 8408 if test "xMV" != xBASH; then 8409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5 8410 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;} 8411 fi 8412 # Try to locate tool using the code snippet 8413 for ac_prog in mv 8414 do 8415 # Extract the first word of "$ac_prog", so it can be a program name with args. 8416 set dummy $ac_prog; ac_word=$2 8417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8418 $as_echo_n "checking for $ac_word... " >&6; } 8419 if ${ac_cv_path_MV+:} false; then : 8420 $as_echo_n "(cached) " >&6 8421 else 8422 case $MV in 8423 [\\/]* | ?:[\\/]*) 8424 ac_cv_path_MV="$MV" # Let the user override the test with a path. 8425 ;; 8426 *) 8427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8428 for as_dir in $PATH 8429 do 8430 IFS=$as_save_IFS 8431 test -z "$as_dir" && as_dir=. 8432 for ac_exec_ext in '' $ac_executable_extensions; do 8433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8434 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 8435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8436 break 2 8437 fi 8438 done 8439 done 8440 IFS=$as_save_IFS 8441 8442 ;; 8443 esac 8444 fi 8445 MV=$ac_cv_path_MV 8446 if test -n "$MV"; then 8447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 8448 $as_echo "$MV" >&6; } 8449 else 8450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8451 $as_echo "no" >&6; } 8452 fi 8453 8454 8455 test -n "$MV" && break 8456 done 8457 8458 else 8459 # If it succeeded, then it was overridden by the user. We will use it 8460 # for the tool. 8461 8462 # First remove it from the list of overridden variables, so we can test 8463 # for unknown variables in the end. 8464 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8465 8466 # Check if the provided tool contains a complete path. 8467 tool_specified="$MV" 8468 tool_basename="${tool_specified##*/}" 8469 if test "x$tool_basename" = "x$tool_specified"; then 8470 # A command without a complete path is provided, search $PATH. 8471 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5 8472 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;} 8473 # Extract the first word of "$tool_basename", so it can be a program name with args. 8474 set dummy $tool_basename; ac_word=$2 8475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8476 $as_echo_n "checking for $ac_word... " >&6; } 8477 if ${ac_cv_path_MV+:} false; then : 8478 $as_echo_n "(cached) " >&6 8479 else 8480 case $MV in 8481 [\\/]* | ?:[\\/]*) 8482 ac_cv_path_MV="$MV" # Let the user override the test with a path. 8483 ;; 8484 *) 8485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8486 for as_dir in $PATH 8487 do 8488 IFS=$as_save_IFS 8489 test -z "$as_dir" && as_dir=. 8490 for ac_exec_ext in '' $ac_executable_extensions; do 8491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8492 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 8493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8494 break 2 8495 fi 8496 done 8497 done 8498 IFS=$as_save_IFS 8499 8500 ;; 8501 esac 8502 fi 8503 MV=$ac_cv_path_MV 8504 if test -n "$MV"; then 8505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 8506 $as_echo "$MV" >&6; } 8507 else 8508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8509 $as_echo "no" >&6; } 8510 fi 8511 8512 8513 if test "x$MV" = x; then 8514 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8515 fi 8516 else 8517 # Otherwise we believe it is a complete path. Use it as it is. 8518 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5 8519 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;} 8520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5 8521 $as_echo_n "checking for MV... " >&6; } 8522 if test ! -x "$tool_specified"; then 8523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8524 $as_echo "not found" >&6; } 8525 as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5 8526 fi 8527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8528 $as_echo "$tool_specified" >&6; } 8529 fi 8530 fi 8531 fi 8532 8533 8534 8535 if test "x$MV" = x; then 8536 as_fn_error $? "Could not find required tool for MV" "$LINENO" 5 8537 fi 8538 8539 8540 8541 8542 8543 # Publish this variable in the help. 8544 8545 8546 if test "x$NAWK" = x; then 8547 # The variable is not set by user, try to locate tool using the code snippet 8548 for ac_prog in nawk gawk awk 8549 do 8550 # Extract the first word of "$ac_prog", so it can be a program name with args. 8551 set dummy $ac_prog; ac_word=$2 8552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8553 $as_echo_n "checking for $ac_word... " >&6; } 8554 if ${ac_cv_path_NAWK+:} false; then : 8555 $as_echo_n "(cached) " >&6 8556 else 8557 case $NAWK in 8558 [\\/]* | ?:[\\/]*) 8559 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 8560 ;; 8561 *) 8562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8563 for as_dir in $PATH 8564 do 8565 IFS=$as_save_IFS 8566 test -z "$as_dir" && as_dir=. 8567 for ac_exec_ext in '' $ac_executable_extensions; do 8568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8569 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 8570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8571 break 2 8572 fi 8573 done 8574 done 8575 IFS=$as_save_IFS 8576 8577 ;; 8578 esac 8579 fi 8580 NAWK=$ac_cv_path_NAWK 8581 if test -n "$NAWK"; then 8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 8583 $as_echo "$NAWK" >&6; } 8584 else 8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8586 $as_echo "no" >&6; } 8587 fi 8588 8589 8590 test -n "$NAWK" && break 8591 done 8592 8593 else 8594 # The variable is set, but is it from the command line or the environment? 8595 8596 # Try to remove the string !NAWK! from our list. 8597 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/} 8598 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8599 # If it failed, the variable was not from the command line. Ignore it, 8600 # but warn the user (except for BASH, which is always set by the calling BASH). 8601 if test "xNAWK" != xBASH; then 8602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5 8603 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;} 8604 fi 8605 # Try to locate tool using the code snippet 8606 for ac_prog in nawk gawk awk 8607 do 8608 # Extract the first word of "$ac_prog", so it can be a program name with args. 8609 set dummy $ac_prog; ac_word=$2 8610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8611 $as_echo_n "checking for $ac_word... " >&6; } 8612 if ${ac_cv_path_NAWK+:} false; then : 8613 $as_echo_n "(cached) " >&6 8614 else 8615 case $NAWK in 8616 [\\/]* | ?:[\\/]*) 8617 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 8618 ;; 8619 *) 8620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8621 for as_dir in $PATH 8622 do 8623 IFS=$as_save_IFS 8624 test -z "$as_dir" && as_dir=. 8625 for ac_exec_ext in '' $ac_executable_extensions; do 8626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8627 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 8628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8629 break 2 8630 fi 8631 done 8632 done 8633 IFS=$as_save_IFS 8634 8635 ;; 8636 esac 8637 fi 8638 NAWK=$ac_cv_path_NAWK 8639 if test -n "$NAWK"; then 8640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 8641 $as_echo "$NAWK" >&6; } 8642 else 8643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8644 $as_echo "no" >&6; } 8645 fi 8646 8647 8648 test -n "$NAWK" && break 8649 done 8650 8651 else 8652 # If it succeeded, then it was overridden by the user. We will use it 8653 # for the tool. 8654 8655 # First remove it from the list of overridden variables, so we can test 8656 # for unknown variables in the end. 8657 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8658 8659 # Check if the provided tool contains a complete path. 8660 tool_specified="$NAWK" 8661 tool_basename="${tool_specified##*/}" 8662 if test "x$tool_basename" = "x$tool_specified"; then 8663 # A command without a complete path is provided, search $PATH. 8664 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5 8665 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;} 8666 # Extract the first word of "$tool_basename", so it can be a program name with args. 8667 set dummy $tool_basename; ac_word=$2 8668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8669 $as_echo_n "checking for $ac_word... " >&6; } 8670 if ${ac_cv_path_NAWK+:} false; then : 8671 $as_echo_n "(cached) " >&6 8672 else 8673 case $NAWK in 8674 [\\/]* | ?:[\\/]*) 8675 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 8676 ;; 8677 *) 8678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8679 for as_dir in $PATH 8680 do 8681 IFS=$as_save_IFS 8682 test -z "$as_dir" && as_dir=. 8683 for ac_exec_ext in '' $ac_executable_extensions; do 8684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8685 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 8686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8687 break 2 8688 fi 8689 done 8690 done 8691 IFS=$as_save_IFS 8692 8693 ;; 8694 esac 8695 fi 8696 NAWK=$ac_cv_path_NAWK 8697 if test -n "$NAWK"; then 8698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 8699 $as_echo "$NAWK" >&6; } 8700 else 8701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8702 $as_echo "no" >&6; } 8703 fi 8704 8705 8706 if test "x$NAWK" = x; then 8707 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8708 fi 8709 else 8710 # Otherwise we believe it is a complete path. Use it as it is. 8711 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5 8712 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;} 8713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5 8714 $as_echo_n "checking for NAWK... " >&6; } 8715 if test ! -x "$tool_specified"; then 8716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8717 $as_echo "not found" >&6; } 8718 as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5 8719 fi 8720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8721 $as_echo "$tool_specified" >&6; } 8722 fi 8723 fi 8724 fi 8725 8726 8727 8728 if test "x$NAWK" = x; then 8729 as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5 8730 fi 8731 8732 8733 8734 8735 8736 # Publish this variable in the help. 8737 8738 8739 if test "x$PRINTF" = x; then 8740 # The variable is not set by user, try to locate tool using the code snippet 8741 for ac_prog in printf 8742 do 8743 # Extract the first word of "$ac_prog", so it can be a program name with args. 8744 set dummy $ac_prog; ac_word=$2 8745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8746 $as_echo_n "checking for $ac_word... " >&6; } 8747 if ${ac_cv_path_PRINTF+:} false; then : 8748 $as_echo_n "(cached) " >&6 8749 else 8750 case $PRINTF in 8751 [\\/]* | ?:[\\/]*) 8752 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 8753 ;; 8754 *) 8755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8756 for as_dir in $PATH 8757 do 8758 IFS=$as_save_IFS 8759 test -z "$as_dir" && as_dir=. 8760 for ac_exec_ext in '' $ac_executable_extensions; do 8761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8762 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 8763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8764 break 2 8765 fi 8766 done 8767 done 8768 IFS=$as_save_IFS 8769 8770 ;; 8771 esac 8772 fi 8773 PRINTF=$ac_cv_path_PRINTF 8774 if test -n "$PRINTF"; then 8775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 8776 $as_echo "$PRINTF" >&6; } 8777 else 8778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8779 $as_echo "no" >&6; } 8780 fi 8781 8782 8783 test -n "$PRINTF" && break 8784 done 8785 8786 else 8787 # The variable is set, but is it from the command line or the environment? 8788 8789 # Try to remove the string !PRINTF! from our list. 8790 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/} 8791 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8792 # If it failed, the variable was not from the command line. Ignore it, 8793 # but warn the user (except for BASH, which is always set by the calling BASH). 8794 if test "xPRINTF" != xBASH; then 8795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5 8796 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;} 8797 fi 8798 # Try to locate tool using the code snippet 8799 for ac_prog in printf 8800 do 8801 # Extract the first word of "$ac_prog", so it can be a program name with args. 8802 set dummy $ac_prog; ac_word=$2 8803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8804 $as_echo_n "checking for $ac_word... " >&6; } 8805 if ${ac_cv_path_PRINTF+:} false; then : 8806 $as_echo_n "(cached) " >&6 8807 else 8808 case $PRINTF in 8809 [\\/]* | ?:[\\/]*) 8810 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 8811 ;; 8812 *) 8813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8814 for as_dir in $PATH 8815 do 8816 IFS=$as_save_IFS 8817 test -z "$as_dir" && as_dir=. 8818 for ac_exec_ext in '' $ac_executable_extensions; do 8819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8820 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 8821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8822 break 2 8823 fi 8824 done 8825 done 8826 IFS=$as_save_IFS 8827 8828 ;; 8829 esac 8830 fi 8831 PRINTF=$ac_cv_path_PRINTF 8832 if test -n "$PRINTF"; then 8833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 8834 $as_echo "$PRINTF" >&6; } 8835 else 8836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8837 $as_echo "no" >&6; } 8838 fi 8839 8840 8841 test -n "$PRINTF" && break 8842 done 8843 8844 else 8845 # If it succeeded, then it was overridden by the user. We will use it 8846 # for the tool. 8847 8848 # First remove it from the list of overridden variables, so we can test 8849 # for unknown variables in the end. 8850 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8851 8852 # Check if the provided tool contains a complete path. 8853 tool_specified="$PRINTF" 8854 tool_basename="${tool_specified##*/}" 8855 if test "x$tool_basename" = "x$tool_specified"; then 8856 # A command without a complete path is provided, search $PATH. 8857 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5 8858 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;} 8859 # Extract the first word of "$tool_basename", so it can be a program name with args. 8860 set dummy $tool_basename; ac_word=$2 8861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8862 $as_echo_n "checking for $ac_word... " >&6; } 8863 if ${ac_cv_path_PRINTF+:} false; then : 8864 $as_echo_n "(cached) " >&6 8865 else 8866 case $PRINTF in 8867 [\\/]* | ?:[\\/]*) 8868 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 8869 ;; 8870 *) 8871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8872 for as_dir in $PATH 8873 do 8874 IFS=$as_save_IFS 8875 test -z "$as_dir" && as_dir=. 8876 for ac_exec_ext in '' $ac_executable_extensions; do 8877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8878 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 8879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8880 break 2 8881 fi 8882 done 8883 done 8884 IFS=$as_save_IFS 8885 8886 ;; 8887 esac 8888 fi 8889 PRINTF=$ac_cv_path_PRINTF 8890 if test -n "$PRINTF"; then 8891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 8892 $as_echo "$PRINTF" >&6; } 8893 else 8894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8895 $as_echo "no" >&6; } 8896 fi 8897 8898 8899 if test "x$PRINTF" = x; then 8900 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8901 fi 8902 else 8903 # Otherwise we believe it is a complete path. Use it as it is. 8904 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5 8905 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;} 8906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5 8907 $as_echo_n "checking for PRINTF... " >&6; } 8908 if test ! -x "$tool_specified"; then 8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8910 $as_echo "not found" >&6; } 8911 as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5 8912 fi 8913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8914 $as_echo "$tool_specified" >&6; } 8915 fi 8916 fi 8917 fi 8918 8919 8920 8921 if test "x$PRINTF" = x; then 8922 as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5 8923 fi 8924 8925 8926 8927 8928 8929 # Publish this variable in the help. 8930 8931 8932 if test "x$RM" = x; then 8933 # The variable is not set by user, try to locate tool using the code snippet 8934 for ac_prog in rm 8935 do 8936 # Extract the first word of "$ac_prog", so it can be a program name with args. 8937 set dummy $ac_prog; ac_word=$2 8938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8939 $as_echo_n "checking for $ac_word... " >&6; } 8940 if ${ac_cv_path_RM+:} false; then : 8941 $as_echo_n "(cached) " >&6 8942 else 8943 case $RM in 8944 [\\/]* | ?:[\\/]*) 8945 ac_cv_path_RM="$RM" # Let the user override the test with a path. 8946 ;; 8947 *) 8948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8949 for as_dir in $PATH 8950 do 8951 IFS=$as_save_IFS 8952 test -z "$as_dir" && as_dir=. 8953 for ac_exec_ext in '' $ac_executable_extensions; do 8954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8955 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 8956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8957 break 2 8958 fi 8959 done 8960 done 8961 IFS=$as_save_IFS 8962 8963 ;; 8964 esac 8965 fi 8966 RM=$ac_cv_path_RM 8967 if test -n "$RM"; then 8968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 8969 $as_echo "$RM" >&6; } 8970 else 8971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8972 $as_echo "no" >&6; } 8973 fi 8974 8975 8976 test -n "$RM" && break 8977 done 8978 8979 else 8980 # The variable is set, but is it from the command line or the environment? 8981 8982 # Try to remove the string !RM! from our list. 8983 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/} 8984 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8985 # If it failed, the variable was not from the command line. Ignore it, 8986 # but warn the user (except for BASH, which is always set by the calling BASH). 8987 if test "xRM" != xBASH; then 8988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5 8989 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;} 8990 fi 8991 # Try to locate tool using the code snippet 8992 for ac_prog in rm 8993 do 8994 # Extract the first word of "$ac_prog", so it can be a program name with args. 8995 set dummy $ac_prog; ac_word=$2 8996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8997 $as_echo_n "checking for $ac_word... " >&6; } 8998 if ${ac_cv_path_RM+:} false; then : 8999 $as_echo_n "(cached) " >&6 9000 else 9001 case $RM in 9002 [\\/]* | ?:[\\/]*) 9003 ac_cv_path_RM="$RM" # Let the user override the test with a path. 9004 ;; 9005 *) 9006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9007 for as_dir in $PATH 9008 do 9009 IFS=$as_save_IFS 9010 test -z "$as_dir" && as_dir=. 9011 for ac_exec_ext in '' $ac_executable_extensions; do 9012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9013 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 9014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9015 break 2 9016 fi 9017 done 9018 done 9019 IFS=$as_save_IFS 9020 9021 ;; 9022 esac 9023 fi 9024 RM=$ac_cv_path_RM 9025 if test -n "$RM"; then 9026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 9027 $as_echo "$RM" >&6; } 9028 else 9029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9030 $as_echo "no" >&6; } 9031 fi 9032 9033 9034 test -n "$RM" && break 9035 done 9036 9037 else 9038 # If it succeeded, then it was overridden by the user. We will use it 9039 # for the tool. 9040 9041 # First remove it from the list of overridden variables, so we can test 9042 # for unknown variables in the end. 9043 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9044 9045 # Check if the provided tool contains a complete path. 9046 tool_specified="$RM" 9047 tool_basename="${tool_specified##*/}" 9048 if test "x$tool_basename" = "x$tool_specified"; then 9049 # A command without a complete path is provided, search $PATH. 9050 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5 9051 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;} 9052 # Extract the first word of "$tool_basename", so it can be a program name with args. 9053 set dummy $tool_basename; ac_word=$2 9054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9055 $as_echo_n "checking for $ac_word... " >&6; } 9056 if ${ac_cv_path_RM+:} false; then : 9057 $as_echo_n "(cached) " >&6 9058 else 9059 case $RM in 9060 [\\/]* | ?:[\\/]*) 9061 ac_cv_path_RM="$RM" # Let the user override the test with a path. 9062 ;; 9063 *) 9064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9065 for as_dir in $PATH 9066 do 9067 IFS=$as_save_IFS 9068 test -z "$as_dir" && as_dir=. 9069 for ac_exec_ext in '' $ac_executable_extensions; do 9070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9071 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 9072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9073 break 2 9074 fi 9075 done 9076 done 9077 IFS=$as_save_IFS 9078 9079 ;; 9080 esac 9081 fi 9082 RM=$ac_cv_path_RM 9083 if test -n "$RM"; then 9084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 9085 $as_echo "$RM" >&6; } 9086 else 9087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9088 $as_echo "no" >&6; } 9089 fi 9090 9091 9092 if test "x$RM" = x; then 9093 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9094 fi 9095 else 9096 # Otherwise we believe it is a complete path. Use it as it is. 9097 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5 9098 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;} 9099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5 9100 $as_echo_n "checking for RM... " >&6; } 9101 if test ! -x "$tool_specified"; then 9102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9103 $as_echo "not found" >&6; } 9104 as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5 9105 fi 9106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9107 $as_echo "$tool_specified" >&6; } 9108 fi 9109 fi 9110 fi 9111 9112 9113 9114 if test "x$RM" = x; then 9115 as_fn_error $? "Could not find required tool for RM" "$LINENO" 5 9116 fi 9117 9118 9119 9120 9121 9122 # Publish this variable in the help. 9123 9124 9125 if test "x$SH" = x; then 9126 # The variable is not set by user, try to locate tool using the code snippet 9127 for ac_prog in sh 9128 do 9129 # Extract the first word of "$ac_prog", so it can be a program name with args. 9130 set dummy $ac_prog; ac_word=$2 9131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9132 $as_echo_n "checking for $ac_word... " >&6; } 9133 if ${ac_cv_path_SH+:} false; then : 9134 $as_echo_n "(cached) " >&6 9135 else 9136 case $SH in 9137 [\\/]* | ?:[\\/]*) 9138 ac_cv_path_SH="$SH" # Let the user override the test with a path. 9139 ;; 9140 *) 9141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9142 for as_dir in $PATH 9143 do 9144 IFS=$as_save_IFS 9145 test -z "$as_dir" && as_dir=. 9146 for ac_exec_ext in '' $ac_executable_extensions; do 9147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9148 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 9149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9150 break 2 9151 fi 9152 done 9153 done 9154 IFS=$as_save_IFS 9155 9156 ;; 9157 esac 9158 fi 9159 SH=$ac_cv_path_SH 9160 if test -n "$SH"; then 9161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 9162 $as_echo "$SH" >&6; } 9163 else 9164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9165 $as_echo "no" >&6; } 9166 fi 9167 9168 9169 test -n "$SH" && break 9170 done 9171 9172 else 9173 # The variable is set, but is it from the command line or the environment? 9174 9175 # Try to remove the string !SH! from our list. 9176 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/} 9177 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9178 # If it failed, the variable was not from the command line. Ignore it, 9179 # but warn the user (except for BASH, which is always set by the calling BASH). 9180 if test "xSH" != xBASH; then 9181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5 9182 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;} 9183 fi 9184 # Try to locate tool using the code snippet 9185 for ac_prog in sh 9186 do 9187 # Extract the first word of "$ac_prog", so it can be a program name with args. 9188 set dummy $ac_prog; ac_word=$2 9189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9190 $as_echo_n "checking for $ac_word... " >&6; } 9191 if ${ac_cv_path_SH+:} false; then : 9192 $as_echo_n "(cached) " >&6 9193 else 9194 case $SH in 9195 [\\/]* | ?:[\\/]*) 9196 ac_cv_path_SH="$SH" # Let the user override the test with a path. 9197 ;; 9198 *) 9199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9200 for as_dir in $PATH 9201 do 9202 IFS=$as_save_IFS 9203 test -z "$as_dir" && as_dir=. 9204 for ac_exec_ext in '' $ac_executable_extensions; do 9205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9206 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 9207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9208 break 2 9209 fi 9210 done 9211 done 9212 IFS=$as_save_IFS 9213 9214 ;; 9215 esac 9216 fi 9217 SH=$ac_cv_path_SH 9218 if test -n "$SH"; then 9219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 9220 $as_echo "$SH" >&6; } 9221 else 9222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9223 $as_echo "no" >&6; } 9224 fi 9225 9226 9227 test -n "$SH" && break 9228 done 9229 9230 else 9231 # If it succeeded, then it was overridden by the user. We will use it 9232 # for the tool. 9233 9234 # First remove it from the list of overridden variables, so we can test 9235 # for unknown variables in the end. 9236 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9237 9238 # Check if the provided tool contains a complete path. 9239 tool_specified="$SH" 9240 tool_basename="${tool_specified##*/}" 9241 if test "x$tool_basename" = "x$tool_specified"; then 9242 # A command without a complete path is provided, search $PATH. 9243 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5 9244 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;} 9245 # Extract the first word of "$tool_basename", so it can be a program name with args. 9246 set dummy $tool_basename; ac_word=$2 9247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9248 $as_echo_n "checking for $ac_word... " >&6; } 9249 if ${ac_cv_path_SH+:} false; then : 9250 $as_echo_n "(cached) " >&6 9251 else 9252 case $SH in 9253 [\\/]* | ?:[\\/]*) 9254 ac_cv_path_SH="$SH" # Let the user override the test with a path. 9255 ;; 9256 *) 9257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9258 for as_dir in $PATH 9259 do 9260 IFS=$as_save_IFS 9261 test -z "$as_dir" && as_dir=. 9262 for ac_exec_ext in '' $ac_executable_extensions; do 9263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9264 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 9265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9266 break 2 9267 fi 9268 done 9269 done 9270 IFS=$as_save_IFS 9271 9272 ;; 9273 esac 9274 fi 9275 SH=$ac_cv_path_SH 9276 if test -n "$SH"; then 9277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 9278 $as_echo "$SH" >&6; } 9279 else 9280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9281 $as_echo "no" >&6; } 9282 fi 9283 9284 9285 if test "x$SH" = x; then 9286 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9287 fi 9288 else 9289 # Otherwise we believe it is a complete path. Use it as it is. 9290 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5 9291 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;} 9292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5 9293 $as_echo_n "checking for SH... " >&6; } 9294 if test ! -x "$tool_specified"; then 9295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9296 $as_echo "not found" >&6; } 9297 as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5 9298 fi 9299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9300 $as_echo "$tool_specified" >&6; } 9301 fi 9302 fi 9303 fi 9304 9305 9306 9307 if test "x$SH" = x; then 9308 as_fn_error $? "Could not find required tool for SH" "$LINENO" 5 9309 fi 9310 9311 9312 9313 9314 9315 # Publish this variable in the help. 9316 9317 9318 if test "x$SORT" = x; then 9319 # The variable is not set by user, try to locate tool using the code snippet 9320 for ac_prog in sort 9321 do 9322 # Extract the first word of "$ac_prog", so it can be a program name with args. 9323 set dummy $ac_prog; ac_word=$2 9324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9325 $as_echo_n "checking for $ac_word... " >&6; } 9326 if ${ac_cv_path_SORT+:} false; then : 9327 $as_echo_n "(cached) " >&6 9328 else 9329 case $SORT in 9330 [\\/]* | ?:[\\/]*) 9331 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 9332 ;; 9333 *) 9334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9335 for as_dir in $PATH 9336 do 9337 IFS=$as_save_IFS 9338 test -z "$as_dir" && as_dir=. 9339 for ac_exec_ext in '' $ac_executable_extensions; do 9340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9341 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 9342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9343 break 2 9344 fi 9345 done 9346 done 9347 IFS=$as_save_IFS 9348 9349 ;; 9350 esac 9351 fi 9352 SORT=$ac_cv_path_SORT 9353 if test -n "$SORT"; then 9354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 9355 $as_echo "$SORT" >&6; } 9356 else 9357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9358 $as_echo "no" >&6; } 9359 fi 9360 9361 9362 test -n "$SORT" && break 9363 done 9364 9365 else 9366 # The variable is set, but is it from the command line or the environment? 9367 9368 # Try to remove the string !SORT! from our list. 9369 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/} 9370 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9371 # If it failed, the variable was not from the command line. Ignore it, 9372 # but warn the user (except for BASH, which is always set by the calling BASH). 9373 if test "xSORT" != xBASH; then 9374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5 9375 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;} 9376 fi 9377 # Try to locate tool using the code snippet 9378 for ac_prog in sort 9379 do 9380 # Extract the first word of "$ac_prog", so it can be a program name with args. 9381 set dummy $ac_prog; ac_word=$2 9382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9383 $as_echo_n "checking for $ac_word... " >&6; } 9384 if ${ac_cv_path_SORT+:} false; then : 9385 $as_echo_n "(cached) " >&6 9386 else 9387 case $SORT in 9388 [\\/]* | ?:[\\/]*) 9389 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 9390 ;; 9391 *) 9392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9393 for as_dir in $PATH 9394 do 9395 IFS=$as_save_IFS 9396 test -z "$as_dir" && as_dir=. 9397 for ac_exec_ext in '' $ac_executable_extensions; do 9398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9399 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 9400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9401 break 2 9402 fi 9403 done 9404 done 9405 IFS=$as_save_IFS 9406 9407 ;; 9408 esac 9409 fi 9410 SORT=$ac_cv_path_SORT 9411 if test -n "$SORT"; then 9412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 9413 $as_echo "$SORT" >&6; } 9414 else 9415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9416 $as_echo "no" >&6; } 9417 fi 9418 9419 9420 test -n "$SORT" && break 9421 done 9422 9423 else 9424 # If it succeeded, then it was overridden by the user. We will use it 9425 # for the tool. 9426 9427 # First remove it from the list of overridden variables, so we can test 9428 # for unknown variables in the end. 9429 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9430 9431 # Check if the provided tool contains a complete path. 9432 tool_specified="$SORT" 9433 tool_basename="${tool_specified##*/}" 9434 if test "x$tool_basename" = "x$tool_specified"; then 9435 # A command without a complete path is provided, search $PATH. 9436 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5 9437 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;} 9438 # Extract the first word of "$tool_basename", so it can be a program name with args. 9439 set dummy $tool_basename; ac_word=$2 9440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9441 $as_echo_n "checking for $ac_word... " >&6; } 9442 if ${ac_cv_path_SORT+:} false; then : 9443 $as_echo_n "(cached) " >&6 9444 else 9445 case $SORT in 9446 [\\/]* | ?:[\\/]*) 9447 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 9448 ;; 9449 *) 9450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9451 for as_dir in $PATH 9452 do 9453 IFS=$as_save_IFS 9454 test -z "$as_dir" && as_dir=. 9455 for ac_exec_ext in '' $ac_executable_extensions; do 9456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9457 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 9458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9459 break 2 9460 fi 9461 done 9462 done 9463 IFS=$as_save_IFS 9464 9465 ;; 9466 esac 9467 fi 9468 SORT=$ac_cv_path_SORT 9469 if test -n "$SORT"; then 9470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 9471 $as_echo "$SORT" >&6; } 9472 else 9473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9474 $as_echo "no" >&6; } 9475 fi 9476 9477 9478 if test "x$SORT" = x; then 9479 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9480 fi 9481 else 9482 # Otherwise we believe it is a complete path. Use it as it is. 9483 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5 9484 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;} 9485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5 9486 $as_echo_n "checking for SORT... " >&6; } 9487 if test ! -x "$tool_specified"; then 9488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9489 $as_echo "not found" >&6; } 9490 as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5 9491 fi 9492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9493 $as_echo "$tool_specified" >&6; } 9494 fi 9495 fi 9496 fi 9497 9498 9499 9500 if test "x$SORT" = x; then 9501 as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5 9502 fi 9503 9504 9505 9506 9507 9508 # Publish this variable in the help. 9509 9510 9511 if test "x$TAIL" = x; then 9512 # The variable is not set by user, try to locate tool using the code snippet 9513 for ac_prog in tail 9514 do 9515 # Extract the first word of "$ac_prog", so it can be a program name with args. 9516 set dummy $ac_prog; ac_word=$2 9517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9518 $as_echo_n "checking for $ac_word... " >&6; } 9519 if ${ac_cv_path_TAIL+:} false; then : 9520 $as_echo_n "(cached) " >&6 9521 else 9522 case $TAIL in 9523 [\\/]* | ?:[\\/]*) 9524 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 9525 ;; 9526 *) 9527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9528 for as_dir in $PATH 9529 do 9530 IFS=$as_save_IFS 9531 test -z "$as_dir" && as_dir=. 9532 for ac_exec_ext in '' $ac_executable_extensions; do 9533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9534 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 9535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9536 break 2 9537 fi 9538 done 9539 done 9540 IFS=$as_save_IFS 9541 9542 ;; 9543 esac 9544 fi 9545 TAIL=$ac_cv_path_TAIL 9546 if test -n "$TAIL"; then 9547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 9548 $as_echo "$TAIL" >&6; } 9549 else 9550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9551 $as_echo "no" >&6; } 9552 fi 9553 9554 9555 test -n "$TAIL" && break 9556 done 9557 9558 else 9559 # The variable is set, but is it from the command line or the environment? 9560 9561 # Try to remove the string !TAIL! from our list. 9562 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/} 9563 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9564 # If it failed, the variable was not from the command line. Ignore it, 9565 # but warn the user (except for BASH, which is always set by the calling BASH). 9566 if test "xTAIL" != xBASH; then 9567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5 9568 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;} 9569 fi 9570 # Try to locate tool using the code snippet 9571 for ac_prog in tail 9572 do 9573 # Extract the first word of "$ac_prog", so it can be a program name with args. 9574 set dummy $ac_prog; ac_word=$2 9575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9576 $as_echo_n "checking for $ac_word... " >&6; } 9577 if ${ac_cv_path_TAIL+:} false; then : 9578 $as_echo_n "(cached) " >&6 9579 else 9580 case $TAIL in 9581 [\\/]* | ?:[\\/]*) 9582 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 9583 ;; 9584 *) 9585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9586 for as_dir in $PATH 9587 do 9588 IFS=$as_save_IFS 9589 test -z "$as_dir" && as_dir=. 9590 for ac_exec_ext in '' $ac_executable_extensions; do 9591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9592 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 9593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9594 break 2 9595 fi 9596 done 9597 done 9598 IFS=$as_save_IFS 9599 9600 ;; 9601 esac 9602 fi 9603 TAIL=$ac_cv_path_TAIL 9604 if test -n "$TAIL"; then 9605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 9606 $as_echo "$TAIL" >&6; } 9607 else 9608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9609 $as_echo "no" >&6; } 9610 fi 9611 9612 9613 test -n "$TAIL" && break 9614 done 9615 9616 else 9617 # If it succeeded, then it was overridden by the user. We will use it 9618 # for the tool. 9619 9620 # First remove it from the list of overridden variables, so we can test 9621 # for unknown variables in the end. 9622 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9623 9624 # Check if the provided tool contains a complete path. 9625 tool_specified="$TAIL" 9626 tool_basename="${tool_specified##*/}" 9627 if test "x$tool_basename" = "x$tool_specified"; then 9628 # A command without a complete path is provided, search $PATH. 9629 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5 9630 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;} 9631 # Extract the first word of "$tool_basename", so it can be a program name with args. 9632 set dummy $tool_basename; ac_word=$2 9633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9634 $as_echo_n "checking for $ac_word... " >&6; } 9635 if ${ac_cv_path_TAIL+:} false; then : 9636 $as_echo_n "(cached) " >&6 9637 else 9638 case $TAIL in 9639 [\\/]* | ?:[\\/]*) 9640 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 9641 ;; 9642 *) 9643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9644 for as_dir in $PATH 9645 do 9646 IFS=$as_save_IFS 9647 test -z "$as_dir" && as_dir=. 9648 for ac_exec_ext in '' $ac_executable_extensions; do 9649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9650 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 9651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9652 break 2 9653 fi 9654 done 9655 done 9656 IFS=$as_save_IFS 9657 9658 ;; 9659 esac 9660 fi 9661 TAIL=$ac_cv_path_TAIL 9662 if test -n "$TAIL"; then 9663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 9664 $as_echo "$TAIL" >&6; } 9665 else 9666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9667 $as_echo "no" >&6; } 9668 fi 9669 9670 9671 if test "x$TAIL" = x; then 9672 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9673 fi 9674 else 9675 # Otherwise we believe it is a complete path. Use it as it is. 9676 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5 9677 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;} 9678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5 9679 $as_echo_n "checking for TAIL... " >&6; } 9680 if test ! -x "$tool_specified"; then 9681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9682 $as_echo "not found" >&6; } 9683 as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5 9684 fi 9685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9686 $as_echo "$tool_specified" >&6; } 9687 fi 9688 fi 9689 fi 9690 9691 9692 9693 if test "x$TAIL" = x; then 9694 as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5 9695 fi 9696 9697 9698 9699 9700 9701 # Publish this variable in the help. 9702 9703 9704 if test "x$TAR" = x; then 9705 # The variable is not set by user, try to locate tool using the code snippet 9706 for ac_prog in tar 9707 do 9708 # Extract the first word of "$ac_prog", so it can be a program name with args. 9709 set dummy $ac_prog; ac_word=$2 9710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9711 $as_echo_n "checking for $ac_word... " >&6; } 9712 if ${ac_cv_path_TAR+:} false; then : 9713 $as_echo_n "(cached) " >&6 9714 else 9715 case $TAR in 9716 [\\/]* | ?:[\\/]*) 9717 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 9718 ;; 9719 *) 9720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9721 for as_dir in $PATH 9722 do 9723 IFS=$as_save_IFS 9724 test -z "$as_dir" && as_dir=. 9725 for ac_exec_ext in '' $ac_executable_extensions; do 9726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9727 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 9728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9729 break 2 9730 fi 9731 done 9732 done 9733 IFS=$as_save_IFS 9734 9735 ;; 9736 esac 9737 fi 9738 TAR=$ac_cv_path_TAR 9739 if test -n "$TAR"; then 9740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 9741 $as_echo "$TAR" >&6; } 9742 else 9743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9744 $as_echo "no" >&6; } 9745 fi 9746 9747 9748 test -n "$TAR" && break 9749 done 9750 9751 else 9752 # The variable is set, but is it from the command line or the environment? 9753 9754 # Try to remove the string !TAR! from our list. 9755 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/} 9756 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9757 # If it failed, the variable was not from the command line. Ignore it, 9758 # but warn the user (except for BASH, which is always set by the calling BASH). 9759 if test "xTAR" != xBASH; then 9760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5 9761 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;} 9762 fi 9763 # Try to locate tool using the code snippet 9764 for ac_prog in tar 9765 do 9766 # Extract the first word of "$ac_prog", so it can be a program name with args. 9767 set dummy $ac_prog; ac_word=$2 9768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9769 $as_echo_n "checking for $ac_word... " >&6; } 9770 if ${ac_cv_path_TAR+:} false; then : 9771 $as_echo_n "(cached) " >&6 9772 else 9773 case $TAR in 9774 [\\/]* | ?:[\\/]*) 9775 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 9776 ;; 9777 *) 9778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9779 for as_dir in $PATH 9780 do 9781 IFS=$as_save_IFS 9782 test -z "$as_dir" && as_dir=. 9783 for ac_exec_ext in '' $ac_executable_extensions; do 9784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9785 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 9786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9787 break 2 9788 fi 9789 done 9790 done 9791 IFS=$as_save_IFS 9792 9793 ;; 9794 esac 9795 fi 9796 TAR=$ac_cv_path_TAR 9797 if test -n "$TAR"; then 9798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 9799 $as_echo "$TAR" >&6; } 9800 else 9801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9802 $as_echo "no" >&6; } 9803 fi 9804 9805 9806 test -n "$TAR" && break 9807 done 9808 9809 else 9810 # If it succeeded, then it was overridden by the user. We will use it 9811 # for the tool. 9812 9813 # First remove it from the list of overridden variables, so we can test 9814 # for unknown variables in the end. 9815 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9816 9817 # Check if the provided tool contains a complete path. 9818 tool_specified="$TAR" 9819 tool_basename="${tool_specified##*/}" 9820 if test "x$tool_basename" = "x$tool_specified"; then 9821 # A command without a complete path is provided, search $PATH. 9822 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5 9823 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;} 9824 # Extract the first word of "$tool_basename", so it can be a program name with args. 9825 set dummy $tool_basename; ac_word=$2 9826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9827 $as_echo_n "checking for $ac_word... " >&6; } 9828 if ${ac_cv_path_TAR+:} false; then : 9829 $as_echo_n "(cached) " >&6 9830 else 9831 case $TAR in 9832 [\\/]* | ?:[\\/]*) 9833 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 9834 ;; 9835 *) 9836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9837 for as_dir in $PATH 9838 do 9839 IFS=$as_save_IFS 9840 test -z "$as_dir" && as_dir=. 9841 for ac_exec_ext in '' $ac_executable_extensions; do 9842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9843 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 9844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9845 break 2 9846 fi 9847 done 9848 done 9849 IFS=$as_save_IFS 9850 9851 ;; 9852 esac 9853 fi 9854 TAR=$ac_cv_path_TAR 9855 if test -n "$TAR"; then 9856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 9857 $as_echo "$TAR" >&6; } 9858 else 9859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9860 $as_echo "no" >&6; } 9861 fi 9862 9863 9864 if test "x$TAR" = x; then 9865 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9866 fi 9867 else 9868 # Otherwise we believe it is a complete path. Use it as it is. 9869 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5 9870 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;} 9871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5 9872 $as_echo_n "checking for TAR... " >&6; } 9873 if test ! -x "$tool_specified"; then 9874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9875 $as_echo "not found" >&6; } 9876 as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5 9877 fi 9878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9879 $as_echo "$tool_specified" >&6; } 9880 fi 9881 fi 9882 fi 9883 9884 9885 9886 if test "x$TAR" = x; then 9887 as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5 9888 fi 9889 9890 9891 9892 9893 9894 # Publish this variable in the help. 9895 9896 9897 if test "x$TEE" = x; then 9898 # The variable is not set by user, try to locate tool using the code snippet 9899 for ac_prog in tee 9900 do 9901 # Extract the first word of "$ac_prog", so it can be a program name with args. 9902 set dummy $ac_prog; ac_word=$2 9903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9904 $as_echo_n "checking for $ac_word... " >&6; } 9905 if ${ac_cv_path_TEE+:} false; then : 9906 $as_echo_n "(cached) " >&6 9907 else 9908 case $TEE in 9909 [\\/]* | ?:[\\/]*) 9910 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 9911 ;; 9912 *) 9913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9914 for as_dir in $PATH 9915 do 9916 IFS=$as_save_IFS 9917 test -z "$as_dir" && as_dir=. 9918 for ac_exec_ext in '' $ac_executable_extensions; do 9919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9920 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 9921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9922 break 2 9923 fi 9924 done 9925 done 9926 IFS=$as_save_IFS 9927 9928 ;; 9929 esac 9930 fi 9931 TEE=$ac_cv_path_TEE 9932 if test -n "$TEE"; then 9933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 9934 $as_echo "$TEE" >&6; } 9935 else 9936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9937 $as_echo "no" >&6; } 9938 fi 9939 9940 9941 test -n "$TEE" && break 9942 done 9943 9944 else 9945 # The variable is set, but is it from the command line or the environment? 9946 9947 # Try to remove the string !TEE! from our list. 9948 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/} 9949 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9950 # If it failed, the variable was not from the command line. Ignore it, 9951 # but warn the user (except for BASH, which is always set by the calling BASH). 9952 if test "xTEE" != xBASH; then 9953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5 9954 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;} 9955 fi 9956 # Try to locate tool using the code snippet 9957 for ac_prog in tee 9958 do 9959 # Extract the first word of "$ac_prog", so it can be a program name with args. 9960 set dummy $ac_prog; ac_word=$2 9961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9962 $as_echo_n "checking for $ac_word... " >&6; } 9963 if ${ac_cv_path_TEE+:} false; then : 9964 $as_echo_n "(cached) " >&6 9965 else 9966 case $TEE in 9967 [\\/]* | ?:[\\/]*) 9968 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 9969 ;; 9970 *) 9971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9972 for as_dir in $PATH 9973 do 9974 IFS=$as_save_IFS 9975 test -z "$as_dir" && as_dir=. 9976 for ac_exec_ext in '' $ac_executable_extensions; do 9977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9978 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 9979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9980 break 2 9981 fi 9982 done 9983 done 9984 IFS=$as_save_IFS 9985 9986 ;; 9987 esac 9988 fi 9989 TEE=$ac_cv_path_TEE 9990 if test -n "$TEE"; then 9991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 9992 $as_echo "$TEE" >&6; } 9993 else 9994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9995 $as_echo "no" >&6; } 9996 fi 9997 9998 9999 test -n "$TEE" && break 10000 done 10001 10002 else 10003 # If it succeeded, then it was overridden by the user. We will use it 10004 # for the tool. 10005 10006 # First remove it from the list of overridden variables, so we can test 10007 # for unknown variables in the end. 10008 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10009 10010 # Check if the provided tool contains a complete path. 10011 tool_specified="$TEE" 10012 tool_basename="${tool_specified##*/}" 10013 if test "x$tool_basename" = "x$tool_specified"; then 10014 # A command without a complete path is provided, search $PATH. 10015 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5 10016 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;} 10017 # Extract the first word of "$tool_basename", so it can be a program name with args. 10018 set dummy $tool_basename; ac_word=$2 10019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10020 $as_echo_n "checking for $ac_word... " >&6; } 10021 if ${ac_cv_path_TEE+:} false; then : 10022 $as_echo_n "(cached) " >&6 10023 else 10024 case $TEE in 10025 [\\/]* | ?:[\\/]*) 10026 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 10027 ;; 10028 *) 10029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10030 for as_dir in $PATH 10031 do 10032 IFS=$as_save_IFS 10033 test -z "$as_dir" && as_dir=. 10034 for ac_exec_ext in '' $ac_executable_extensions; do 10035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10036 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 10037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10038 break 2 10039 fi 10040 done 10041 done 10042 IFS=$as_save_IFS 10043 10044 ;; 10045 esac 10046 fi 10047 TEE=$ac_cv_path_TEE 10048 if test -n "$TEE"; then 10049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 10050 $as_echo "$TEE" >&6; } 10051 else 10052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10053 $as_echo "no" >&6; } 10054 fi 10055 10056 10057 if test "x$TEE" = x; then 10058 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10059 fi 10060 else 10061 # Otherwise we believe it is a complete path. Use it as it is. 10062 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5 10063 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;} 10064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5 10065 $as_echo_n "checking for TEE... " >&6; } 10066 if test ! -x "$tool_specified"; then 10067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10068 $as_echo "not found" >&6; } 10069 as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5 10070 fi 10071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10072 $as_echo "$tool_specified" >&6; } 10073 fi 10074 fi 10075 fi 10076 10077 10078 10079 if test "x$TEE" = x; then 10080 as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5 10081 fi 10082 10083 10084 10085 10086 10087 # Publish this variable in the help. 10088 10089 10090 if test "x$TOUCH" = x; then 10091 # The variable is not set by user, try to locate tool using the code snippet 10092 for ac_prog in touch 10093 do 10094 # Extract the first word of "$ac_prog", so it can be a program name with args. 10095 set dummy $ac_prog; ac_word=$2 10096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10097 $as_echo_n "checking for $ac_word... " >&6; } 10098 if ${ac_cv_path_TOUCH+:} false; then : 10099 $as_echo_n "(cached) " >&6 10100 else 10101 case $TOUCH in 10102 [\\/]* | ?:[\\/]*) 10103 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 10104 ;; 10105 *) 10106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10107 for as_dir in $PATH 10108 do 10109 IFS=$as_save_IFS 10110 test -z "$as_dir" && as_dir=. 10111 for ac_exec_ext in '' $ac_executable_extensions; do 10112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10113 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 10114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10115 break 2 10116 fi 10117 done 10118 done 10119 IFS=$as_save_IFS 10120 10121 ;; 10122 esac 10123 fi 10124 TOUCH=$ac_cv_path_TOUCH 10125 if test -n "$TOUCH"; then 10126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 10127 $as_echo "$TOUCH" >&6; } 10128 else 10129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10130 $as_echo "no" >&6; } 10131 fi 10132 10133 10134 test -n "$TOUCH" && break 10135 done 10136 10137 else 10138 # The variable is set, but is it from the command line or the environment? 10139 10140 # Try to remove the string !TOUCH! from our list. 10141 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/} 10142 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10143 # If it failed, the variable was not from the command line. Ignore it, 10144 # but warn the user (except for BASH, which is always set by the calling BASH). 10145 if test "xTOUCH" != xBASH; then 10146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5 10147 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;} 10148 fi 10149 # Try to locate tool using the code snippet 10150 for ac_prog in touch 10151 do 10152 # Extract the first word of "$ac_prog", so it can be a program name with args. 10153 set dummy $ac_prog; ac_word=$2 10154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10155 $as_echo_n "checking for $ac_word... " >&6; } 10156 if ${ac_cv_path_TOUCH+:} false; then : 10157 $as_echo_n "(cached) " >&6 10158 else 10159 case $TOUCH in 10160 [\\/]* | ?:[\\/]*) 10161 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 10162 ;; 10163 *) 10164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10165 for as_dir in $PATH 10166 do 10167 IFS=$as_save_IFS 10168 test -z "$as_dir" && as_dir=. 10169 for ac_exec_ext in '' $ac_executable_extensions; do 10170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10171 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 10172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10173 break 2 10174 fi 10175 done 10176 done 10177 IFS=$as_save_IFS 10178 10179 ;; 10180 esac 10181 fi 10182 TOUCH=$ac_cv_path_TOUCH 10183 if test -n "$TOUCH"; then 10184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 10185 $as_echo "$TOUCH" >&6; } 10186 else 10187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10188 $as_echo "no" >&6; } 10189 fi 10190 10191 10192 test -n "$TOUCH" && break 10193 done 10194 10195 else 10196 # If it succeeded, then it was overridden by the user. We will use it 10197 # for the tool. 10198 10199 # First remove it from the list of overridden variables, so we can test 10200 # for unknown variables in the end. 10201 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10202 10203 # Check if the provided tool contains a complete path. 10204 tool_specified="$TOUCH" 10205 tool_basename="${tool_specified##*/}" 10206 if test "x$tool_basename" = "x$tool_specified"; then 10207 # A command without a complete path is provided, search $PATH. 10208 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5 10209 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;} 10210 # Extract the first word of "$tool_basename", so it can be a program name with args. 10211 set dummy $tool_basename; ac_word=$2 10212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10213 $as_echo_n "checking for $ac_word... " >&6; } 10214 if ${ac_cv_path_TOUCH+:} false; then : 10215 $as_echo_n "(cached) " >&6 10216 else 10217 case $TOUCH in 10218 [\\/]* | ?:[\\/]*) 10219 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 10220 ;; 10221 *) 10222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10223 for as_dir in $PATH 10224 do 10225 IFS=$as_save_IFS 10226 test -z "$as_dir" && as_dir=. 10227 for ac_exec_ext in '' $ac_executable_extensions; do 10228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10229 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 10230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10231 break 2 10232 fi 10233 done 10234 done 10235 IFS=$as_save_IFS 10236 10237 ;; 10238 esac 10239 fi 10240 TOUCH=$ac_cv_path_TOUCH 10241 if test -n "$TOUCH"; then 10242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 10243 $as_echo "$TOUCH" >&6; } 10244 else 10245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10246 $as_echo "no" >&6; } 10247 fi 10248 10249 10250 if test "x$TOUCH" = x; then 10251 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10252 fi 10253 else 10254 # Otherwise we believe it is a complete path. Use it as it is. 10255 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5 10256 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;} 10257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5 10258 $as_echo_n "checking for TOUCH... " >&6; } 10259 if test ! -x "$tool_specified"; then 10260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10261 $as_echo "not found" >&6; } 10262 as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5 10263 fi 10264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10265 $as_echo "$tool_specified" >&6; } 10266 fi 10267 fi 10268 fi 10269 10270 10271 10272 if test "x$TOUCH" = x; then 10273 as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5 10274 fi 10275 10276 10277 10278 10279 10280 # Publish this variable in the help. 10281 10282 10283 if test "x$TR" = x; then 10284 # The variable is not set by user, try to locate tool using the code snippet 10285 for ac_prog in tr 10286 do 10287 # Extract the first word of "$ac_prog", so it can be a program name with args. 10288 set dummy $ac_prog; ac_word=$2 10289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10290 $as_echo_n "checking for $ac_word... " >&6; } 10291 if ${ac_cv_path_TR+:} false; then : 10292 $as_echo_n "(cached) " >&6 10293 else 10294 case $TR in 10295 [\\/]* | ?:[\\/]*) 10296 ac_cv_path_TR="$TR" # Let the user override the test with a path. 10297 ;; 10298 *) 10299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10300 for as_dir in $PATH 10301 do 10302 IFS=$as_save_IFS 10303 test -z "$as_dir" && as_dir=. 10304 for ac_exec_ext in '' $ac_executable_extensions; do 10305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10306 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 10307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10308 break 2 10309 fi 10310 done 10311 done 10312 IFS=$as_save_IFS 10313 10314 ;; 10315 esac 10316 fi 10317 TR=$ac_cv_path_TR 10318 if test -n "$TR"; then 10319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 10320 $as_echo "$TR" >&6; } 10321 else 10322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10323 $as_echo "no" >&6; } 10324 fi 10325 10326 10327 test -n "$TR" && break 10328 done 10329 10330 else 10331 # The variable is set, but is it from the command line or the environment? 10332 10333 # Try to remove the string !TR! from our list. 10334 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/} 10335 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10336 # If it failed, the variable was not from the command line. Ignore it, 10337 # but warn the user (except for BASH, which is always set by the calling BASH). 10338 if test "xTR" != xBASH; then 10339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5 10340 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;} 10341 fi 10342 # Try to locate tool using the code snippet 10343 for ac_prog in tr 10344 do 10345 # Extract the first word of "$ac_prog", so it can be a program name with args. 10346 set dummy $ac_prog; ac_word=$2 10347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10348 $as_echo_n "checking for $ac_word... " >&6; } 10349 if ${ac_cv_path_TR+:} false; then : 10350 $as_echo_n "(cached) " >&6 10351 else 10352 case $TR in 10353 [\\/]* | ?:[\\/]*) 10354 ac_cv_path_TR="$TR" # Let the user override the test with a path. 10355 ;; 10356 *) 10357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10358 for as_dir in $PATH 10359 do 10360 IFS=$as_save_IFS 10361 test -z "$as_dir" && as_dir=. 10362 for ac_exec_ext in '' $ac_executable_extensions; do 10363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10364 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 10365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10366 break 2 10367 fi 10368 done 10369 done 10370 IFS=$as_save_IFS 10371 10372 ;; 10373 esac 10374 fi 10375 TR=$ac_cv_path_TR 10376 if test -n "$TR"; then 10377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 10378 $as_echo "$TR" >&6; } 10379 else 10380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10381 $as_echo "no" >&6; } 10382 fi 10383 10384 10385 test -n "$TR" && break 10386 done 10387 10388 else 10389 # If it succeeded, then it was overridden by the user. We will use it 10390 # for the tool. 10391 10392 # First remove it from the list of overridden variables, so we can test 10393 # for unknown variables in the end. 10394 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10395 10396 # Check if the provided tool contains a complete path. 10397 tool_specified="$TR" 10398 tool_basename="${tool_specified##*/}" 10399 if test "x$tool_basename" = "x$tool_specified"; then 10400 # A command without a complete path is provided, search $PATH. 10401 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5 10402 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;} 10403 # Extract the first word of "$tool_basename", so it can be a program name with args. 10404 set dummy $tool_basename; ac_word=$2 10405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10406 $as_echo_n "checking for $ac_word... " >&6; } 10407 if ${ac_cv_path_TR+:} false; then : 10408 $as_echo_n "(cached) " >&6 10409 else 10410 case $TR in 10411 [\\/]* | ?:[\\/]*) 10412 ac_cv_path_TR="$TR" # Let the user override the test with a path. 10413 ;; 10414 *) 10415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10416 for as_dir in $PATH 10417 do 10418 IFS=$as_save_IFS 10419 test -z "$as_dir" && as_dir=. 10420 for ac_exec_ext in '' $ac_executable_extensions; do 10421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10422 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 10423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10424 break 2 10425 fi 10426 done 10427 done 10428 IFS=$as_save_IFS 10429 10430 ;; 10431 esac 10432 fi 10433 TR=$ac_cv_path_TR 10434 if test -n "$TR"; then 10435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 10436 $as_echo "$TR" >&6; } 10437 else 10438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10439 $as_echo "no" >&6; } 10440 fi 10441 10442 10443 if test "x$TR" = x; then 10444 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10445 fi 10446 else 10447 # Otherwise we believe it is a complete path. Use it as it is. 10448 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5 10449 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;} 10450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5 10451 $as_echo_n "checking for TR... " >&6; } 10452 if test ! -x "$tool_specified"; then 10453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10454 $as_echo "not found" >&6; } 10455 as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5 10456 fi 10457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10458 $as_echo "$tool_specified" >&6; } 10459 fi 10460 fi 10461 fi 10462 10463 10464 10465 if test "x$TR" = x; then 10466 as_fn_error $? "Could not find required tool for TR" "$LINENO" 5 10467 fi 10468 10469 10470 10471 10472 10473 # Publish this variable in the help. 10474 10475 10476 if test "x$UNAME" = x; then 10477 # The variable is not set by user, try to locate tool using the code snippet 10478 for ac_prog in uname 10479 do 10480 # Extract the first word of "$ac_prog", so it can be a program name with args. 10481 set dummy $ac_prog; ac_word=$2 10482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10483 $as_echo_n "checking for $ac_word... " >&6; } 10484 if ${ac_cv_path_UNAME+:} false; then : 10485 $as_echo_n "(cached) " >&6 10486 else 10487 case $UNAME in 10488 [\\/]* | ?:[\\/]*) 10489 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 10490 ;; 10491 *) 10492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10493 for as_dir in $PATH 10494 do 10495 IFS=$as_save_IFS 10496 test -z "$as_dir" && as_dir=. 10497 for ac_exec_ext in '' $ac_executable_extensions; do 10498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10499 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 10500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10501 break 2 10502 fi 10503 done 10504 done 10505 IFS=$as_save_IFS 10506 10507 ;; 10508 esac 10509 fi 10510 UNAME=$ac_cv_path_UNAME 10511 if test -n "$UNAME"; then 10512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 10513 $as_echo "$UNAME" >&6; } 10514 else 10515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10516 $as_echo "no" >&6; } 10517 fi 10518 10519 10520 test -n "$UNAME" && break 10521 done 10522 10523 else 10524 # The variable is set, but is it from the command line or the environment? 10525 10526 # Try to remove the string !UNAME! from our list. 10527 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/} 10528 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10529 # If it failed, the variable was not from the command line. Ignore it, 10530 # but warn the user (except for BASH, which is always set by the calling BASH). 10531 if test "xUNAME" != xBASH; then 10532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5 10533 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;} 10534 fi 10535 # Try to locate tool using the code snippet 10536 for ac_prog in uname 10537 do 10538 # Extract the first word of "$ac_prog", so it can be a program name with args. 10539 set dummy $ac_prog; ac_word=$2 10540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10541 $as_echo_n "checking for $ac_word... " >&6; } 10542 if ${ac_cv_path_UNAME+:} false; then : 10543 $as_echo_n "(cached) " >&6 10544 else 10545 case $UNAME in 10546 [\\/]* | ?:[\\/]*) 10547 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 10548 ;; 10549 *) 10550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10551 for as_dir in $PATH 10552 do 10553 IFS=$as_save_IFS 10554 test -z "$as_dir" && as_dir=. 10555 for ac_exec_ext in '' $ac_executable_extensions; do 10556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10557 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 10558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10559 break 2 10560 fi 10561 done 10562 done 10563 IFS=$as_save_IFS 10564 10565 ;; 10566 esac 10567 fi 10568 UNAME=$ac_cv_path_UNAME 10569 if test -n "$UNAME"; then 10570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 10571 $as_echo "$UNAME" >&6; } 10572 else 10573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10574 $as_echo "no" >&6; } 10575 fi 10576 10577 10578 test -n "$UNAME" && break 10579 done 10580 10581 else 10582 # If it succeeded, then it was overridden by the user. We will use it 10583 # for the tool. 10584 10585 # First remove it from the list of overridden variables, so we can test 10586 # for unknown variables in the end. 10587 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10588 10589 # Check if the provided tool contains a complete path. 10590 tool_specified="$UNAME" 10591 tool_basename="${tool_specified##*/}" 10592 if test "x$tool_basename" = "x$tool_specified"; then 10593 # A command without a complete path is provided, search $PATH. 10594 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5 10595 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;} 10596 # Extract the first word of "$tool_basename", so it can be a program name with args. 10597 set dummy $tool_basename; ac_word=$2 10598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10599 $as_echo_n "checking for $ac_word... " >&6; } 10600 if ${ac_cv_path_UNAME+:} false; then : 10601 $as_echo_n "(cached) " >&6 10602 else 10603 case $UNAME in 10604 [\\/]* | ?:[\\/]*) 10605 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 10606 ;; 10607 *) 10608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10609 for as_dir in $PATH 10610 do 10611 IFS=$as_save_IFS 10612 test -z "$as_dir" && as_dir=. 10613 for ac_exec_ext in '' $ac_executable_extensions; do 10614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10615 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 10616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10617 break 2 10618 fi 10619 done 10620 done 10621 IFS=$as_save_IFS 10622 10623 ;; 10624 esac 10625 fi 10626 UNAME=$ac_cv_path_UNAME 10627 if test -n "$UNAME"; then 10628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 10629 $as_echo "$UNAME" >&6; } 10630 else 10631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10632 $as_echo "no" >&6; } 10633 fi 10634 10635 10636 if test "x$UNAME" = x; then 10637 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10638 fi 10639 else 10640 # Otherwise we believe it is a complete path. Use it as it is. 10641 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5 10642 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;} 10643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5 10644 $as_echo_n "checking for UNAME... " >&6; } 10645 if test ! -x "$tool_specified"; then 10646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10647 $as_echo "not found" >&6; } 10648 as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5 10649 fi 10650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10651 $as_echo "$tool_specified" >&6; } 10652 fi 10653 fi 10654 fi 10655 10656 10657 10658 if test "x$UNAME" = x; then 10659 as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5 10660 fi 10661 10662 10663 10664 10665 10666 # Publish this variable in the help. 10667 10668 10669 if test "x$UNIQ" = x; then 10670 # The variable is not set by user, try to locate tool using the code snippet 10671 for ac_prog in uniq 10672 do 10673 # Extract the first word of "$ac_prog", so it can be a program name with args. 10674 set dummy $ac_prog; ac_word=$2 10675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10676 $as_echo_n "checking for $ac_word... " >&6; } 10677 if ${ac_cv_path_UNIQ+:} false; then : 10678 $as_echo_n "(cached) " >&6 10679 else 10680 case $UNIQ in 10681 [\\/]* | ?:[\\/]*) 10682 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 10683 ;; 10684 *) 10685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10686 for as_dir in $PATH 10687 do 10688 IFS=$as_save_IFS 10689 test -z "$as_dir" && as_dir=. 10690 for ac_exec_ext in '' $ac_executable_extensions; do 10691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10692 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 10693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10694 break 2 10695 fi 10696 done 10697 done 10698 IFS=$as_save_IFS 10699 10700 ;; 10701 esac 10702 fi 10703 UNIQ=$ac_cv_path_UNIQ 10704 if test -n "$UNIQ"; then 10705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 10706 $as_echo "$UNIQ" >&6; } 10707 else 10708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10709 $as_echo "no" >&6; } 10710 fi 10711 10712 10713 test -n "$UNIQ" && break 10714 done 10715 10716 else 10717 # The variable is set, but is it from the command line or the environment? 10718 10719 # Try to remove the string !UNIQ! from our list. 10720 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/} 10721 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10722 # If it failed, the variable was not from the command line. Ignore it, 10723 # but warn the user (except for BASH, which is always set by the calling BASH). 10724 if test "xUNIQ" != xBASH; then 10725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5 10726 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;} 10727 fi 10728 # Try to locate tool using the code snippet 10729 for ac_prog in uniq 10730 do 10731 # Extract the first word of "$ac_prog", so it can be a program name with args. 10732 set dummy $ac_prog; ac_word=$2 10733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10734 $as_echo_n "checking for $ac_word... " >&6; } 10735 if ${ac_cv_path_UNIQ+:} false; then : 10736 $as_echo_n "(cached) " >&6 10737 else 10738 case $UNIQ in 10739 [\\/]* | ?:[\\/]*) 10740 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 10741 ;; 10742 *) 10743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10744 for as_dir in $PATH 10745 do 10746 IFS=$as_save_IFS 10747 test -z "$as_dir" && as_dir=. 10748 for ac_exec_ext in '' $ac_executable_extensions; do 10749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10750 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 10751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10752 break 2 10753 fi 10754 done 10755 done 10756 IFS=$as_save_IFS 10757 10758 ;; 10759 esac 10760 fi 10761 UNIQ=$ac_cv_path_UNIQ 10762 if test -n "$UNIQ"; then 10763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 10764 $as_echo "$UNIQ" >&6; } 10765 else 10766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10767 $as_echo "no" >&6; } 10768 fi 10769 10770 10771 test -n "$UNIQ" && break 10772 done 10773 10774 else 10775 # If it succeeded, then it was overridden by the user. We will use it 10776 # for the tool. 10777 10778 # First remove it from the list of overridden variables, so we can test 10779 # for unknown variables in the end. 10780 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10781 10782 # Check if the provided tool contains a complete path. 10783 tool_specified="$UNIQ" 10784 tool_basename="${tool_specified##*/}" 10785 if test "x$tool_basename" = "x$tool_specified"; then 10786 # A command without a complete path is provided, search $PATH. 10787 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5 10788 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;} 10789 # Extract the first word of "$tool_basename", so it can be a program name with args. 10790 set dummy $tool_basename; ac_word=$2 10791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10792 $as_echo_n "checking for $ac_word... " >&6; } 10793 if ${ac_cv_path_UNIQ+:} false; then : 10794 $as_echo_n "(cached) " >&6 10795 else 10796 case $UNIQ in 10797 [\\/]* | ?:[\\/]*) 10798 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 10799 ;; 10800 *) 10801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10802 for as_dir in $PATH 10803 do 10804 IFS=$as_save_IFS 10805 test -z "$as_dir" && as_dir=. 10806 for ac_exec_ext in '' $ac_executable_extensions; do 10807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10808 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 10809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10810 break 2 10811 fi 10812 done 10813 done 10814 IFS=$as_save_IFS 10815 10816 ;; 10817 esac 10818 fi 10819 UNIQ=$ac_cv_path_UNIQ 10820 if test -n "$UNIQ"; then 10821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 10822 $as_echo "$UNIQ" >&6; } 10823 else 10824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10825 $as_echo "no" >&6; } 10826 fi 10827 10828 10829 if test "x$UNIQ" = x; then 10830 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10831 fi 10832 else 10833 # Otherwise we believe it is a complete path. Use it as it is. 10834 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5 10835 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;} 10836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5 10837 $as_echo_n "checking for UNIQ... " >&6; } 10838 if test ! -x "$tool_specified"; then 10839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10840 $as_echo "not found" >&6; } 10841 as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5 10842 fi 10843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10844 $as_echo "$tool_specified" >&6; } 10845 fi 10846 fi 10847 fi 10848 10849 10850 10851 if test "x$UNIQ" = x; then 10852 as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5 10853 fi 10854 10855 10856 10857 10858 10859 # Publish this variable in the help. 10860 10861 10862 if test "x$WC" = x; then 10863 # The variable is not set by user, try to locate tool using the code snippet 10864 for ac_prog in wc 10865 do 10866 # Extract the first word of "$ac_prog", so it can be a program name with args. 10867 set dummy $ac_prog; ac_word=$2 10868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10869 $as_echo_n "checking for $ac_word... " >&6; } 10870 if ${ac_cv_path_WC+:} false; then : 10871 $as_echo_n "(cached) " >&6 10872 else 10873 case $WC in 10874 [\\/]* | ?:[\\/]*) 10875 ac_cv_path_WC="$WC" # Let the user override the test with a path. 10876 ;; 10877 *) 10878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10879 for as_dir in $PATH 10880 do 10881 IFS=$as_save_IFS 10882 test -z "$as_dir" && as_dir=. 10883 for ac_exec_ext in '' $ac_executable_extensions; do 10884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10885 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 10886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10887 break 2 10888 fi 10889 done 10890 done 10891 IFS=$as_save_IFS 10892 10893 ;; 10894 esac 10895 fi 10896 WC=$ac_cv_path_WC 10897 if test -n "$WC"; then 10898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 10899 $as_echo "$WC" >&6; } 10900 else 10901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10902 $as_echo "no" >&6; } 10903 fi 10904 10905 10906 test -n "$WC" && break 10907 done 10908 10909 else 10910 # The variable is set, but is it from the command line or the environment? 10911 10912 # Try to remove the string !WC! from our list. 10913 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/} 10914 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10915 # If it failed, the variable was not from the command line. Ignore it, 10916 # but warn the user (except for BASH, which is always set by the calling BASH). 10917 if test "xWC" != xBASH; then 10918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5 10919 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;} 10920 fi 10921 # Try to locate tool using the code snippet 10922 for ac_prog in wc 10923 do 10924 # Extract the first word of "$ac_prog", so it can be a program name with args. 10925 set dummy $ac_prog; ac_word=$2 10926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10927 $as_echo_n "checking for $ac_word... " >&6; } 10928 if ${ac_cv_path_WC+:} false; then : 10929 $as_echo_n "(cached) " >&6 10930 else 10931 case $WC in 10932 [\\/]* | ?:[\\/]*) 10933 ac_cv_path_WC="$WC" # Let the user override the test with a path. 10934 ;; 10935 *) 10936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10937 for as_dir in $PATH 10938 do 10939 IFS=$as_save_IFS 10940 test -z "$as_dir" && as_dir=. 10941 for ac_exec_ext in '' $ac_executable_extensions; do 10942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10943 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 10944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10945 break 2 10946 fi 10947 done 10948 done 10949 IFS=$as_save_IFS 10950 10951 ;; 10952 esac 10953 fi 10954 WC=$ac_cv_path_WC 10955 if test -n "$WC"; then 10956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 10957 $as_echo "$WC" >&6; } 10958 else 10959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10960 $as_echo "no" >&6; } 10961 fi 10962 10963 10964 test -n "$WC" && break 10965 done 10966 10967 else 10968 # If it succeeded, then it was overridden by the user. We will use it 10969 # for the tool. 10970 10971 # First remove it from the list of overridden variables, so we can test 10972 # for unknown variables in the end. 10973 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10974 10975 # Check if the provided tool contains a complete path. 10976 tool_specified="$WC" 10977 tool_basename="${tool_specified##*/}" 10978 if test "x$tool_basename" = "x$tool_specified"; then 10979 # A command without a complete path is provided, search $PATH. 10980 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5 10981 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;} 10982 # Extract the first word of "$tool_basename", so it can be a program name with args. 10983 set dummy $tool_basename; ac_word=$2 10984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10985 $as_echo_n "checking for $ac_word... " >&6; } 10986 if ${ac_cv_path_WC+:} false; then : 10987 $as_echo_n "(cached) " >&6 10988 else 10989 case $WC in 10990 [\\/]* | ?:[\\/]*) 10991 ac_cv_path_WC="$WC" # Let the user override the test with a path. 10992 ;; 10993 *) 10994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10995 for as_dir in $PATH 10996 do 10997 IFS=$as_save_IFS 10998 test -z "$as_dir" && as_dir=. 10999 for ac_exec_ext in '' $ac_executable_extensions; do 11000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11001 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 11002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11003 break 2 11004 fi 11005 done 11006 done 11007 IFS=$as_save_IFS 11008 11009 ;; 11010 esac 11011 fi 11012 WC=$ac_cv_path_WC 11013 if test -n "$WC"; then 11014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 11015 $as_echo "$WC" >&6; } 11016 else 11017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11018 $as_echo "no" >&6; } 11019 fi 11020 11021 11022 if test "x$WC" = x; then 11023 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11024 fi 11025 else 11026 # Otherwise we believe it is a complete path. Use it as it is. 11027 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5 11028 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;} 11029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5 11030 $as_echo_n "checking for WC... " >&6; } 11031 if test ! -x "$tool_specified"; then 11032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11033 $as_echo "not found" >&6; } 11034 as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5 11035 fi 11036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11037 $as_echo "$tool_specified" >&6; } 11038 fi 11039 fi 11040 fi 11041 11042 11043 11044 if test "x$WC" = x; then 11045 as_fn_error $? "Could not find required tool for WC" "$LINENO" 5 11046 fi 11047 11048 11049 11050 11051 11052 # Publish this variable in the help. 11053 11054 11055 if test "x$WHICH" = x; then 11056 # The variable is not set by user, try to locate tool using the code snippet 11057 for ac_prog in which 11058 do 11059 # Extract the first word of "$ac_prog", so it can be a program name with args. 11060 set dummy $ac_prog; ac_word=$2 11061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11062 $as_echo_n "checking for $ac_word... " >&6; } 11063 if ${ac_cv_path_WHICH+:} false; then : 11064 $as_echo_n "(cached) " >&6 11065 else 11066 case $WHICH in 11067 [\\/]* | ?:[\\/]*) 11068 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 11069 ;; 11070 *) 11071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11072 for as_dir in $PATH 11073 do 11074 IFS=$as_save_IFS 11075 test -z "$as_dir" && as_dir=. 11076 for ac_exec_ext in '' $ac_executable_extensions; do 11077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11078 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 11079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11080 break 2 11081 fi 11082 done 11083 done 11084 IFS=$as_save_IFS 11085 11086 ;; 11087 esac 11088 fi 11089 WHICH=$ac_cv_path_WHICH 11090 if test -n "$WHICH"; then 11091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 11092 $as_echo "$WHICH" >&6; } 11093 else 11094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11095 $as_echo "no" >&6; } 11096 fi 11097 11098 11099 test -n "$WHICH" && break 11100 done 11101 11102 else 11103 # The variable is set, but is it from the command line or the environment? 11104 11105 # Try to remove the string !WHICH! from our list. 11106 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/} 11107 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11108 # If it failed, the variable was not from the command line. Ignore it, 11109 # but warn the user (except for BASH, which is always set by the calling BASH). 11110 if test "xWHICH" != xBASH; then 11111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5 11112 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;} 11113 fi 11114 # Try to locate tool using the code snippet 11115 for ac_prog in which 11116 do 11117 # Extract the first word of "$ac_prog", so it can be a program name with args. 11118 set dummy $ac_prog; ac_word=$2 11119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11120 $as_echo_n "checking for $ac_word... " >&6; } 11121 if ${ac_cv_path_WHICH+:} false; then : 11122 $as_echo_n "(cached) " >&6 11123 else 11124 case $WHICH in 11125 [\\/]* | ?:[\\/]*) 11126 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 11127 ;; 11128 *) 11129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11130 for as_dir in $PATH 11131 do 11132 IFS=$as_save_IFS 11133 test -z "$as_dir" && as_dir=. 11134 for ac_exec_ext in '' $ac_executable_extensions; do 11135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11136 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 11137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11138 break 2 11139 fi 11140 done 11141 done 11142 IFS=$as_save_IFS 11143 11144 ;; 11145 esac 11146 fi 11147 WHICH=$ac_cv_path_WHICH 11148 if test -n "$WHICH"; then 11149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 11150 $as_echo "$WHICH" >&6; } 11151 else 11152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11153 $as_echo "no" >&6; } 11154 fi 11155 11156 11157 test -n "$WHICH" && break 11158 done 11159 11160 else 11161 # If it succeeded, then it was overridden by the user. We will use it 11162 # for the tool. 11163 11164 # First remove it from the list of overridden variables, so we can test 11165 # for unknown variables in the end. 11166 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11167 11168 # Check if the provided tool contains a complete path. 11169 tool_specified="$WHICH" 11170 tool_basename="${tool_specified##*/}" 11171 if test "x$tool_basename" = "x$tool_specified"; then 11172 # A command without a complete path is provided, search $PATH. 11173 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5 11174 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;} 11175 # Extract the first word of "$tool_basename", so it can be a program name with args. 11176 set dummy $tool_basename; ac_word=$2 11177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11178 $as_echo_n "checking for $ac_word... " >&6; } 11179 if ${ac_cv_path_WHICH+:} false; then : 11180 $as_echo_n "(cached) " >&6 11181 else 11182 case $WHICH in 11183 [\\/]* | ?:[\\/]*) 11184 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 11185 ;; 11186 *) 11187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11188 for as_dir in $PATH 11189 do 11190 IFS=$as_save_IFS 11191 test -z "$as_dir" && as_dir=. 11192 for ac_exec_ext in '' $ac_executable_extensions; do 11193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11194 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 11195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11196 break 2 11197 fi 11198 done 11199 done 11200 IFS=$as_save_IFS 11201 11202 ;; 11203 esac 11204 fi 11205 WHICH=$ac_cv_path_WHICH 11206 if test -n "$WHICH"; then 11207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 11208 $as_echo "$WHICH" >&6; } 11209 else 11210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11211 $as_echo "no" >&6; } 11212 fi 11213 11214 11215 if test "x$WHICH" = x; then 11216 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11217 fi 11218 else 11219 # Otherwise we believe it is a complete path. Use it as it is. 11220 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5 11221 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;} 11222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5 11223 $as_echo_n "checking for WHICH... " >&6; } 11224 if test ! -x "$tool_specified"; then 11225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11226 $as_echo "not found" >&6; } 11227 as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5 11228 fi 11229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11230 $as_echo "$tool_specified" >&6; } 11231 fi 11232 fi 11233 fi 11234 11235 11236 11237 if test "x$WHICH" = x; then 11238 as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5 11239 fi 11240 11241 11242 11243 11244 11245 # Publish this variable in the help. 11246 11247 11248 if test "x$XARGS" = x; then 11249 # The variable is not set by user, try to locate tool using the code snippet 11250 for ac_prog in xargs 11251 do 11252 # Extract the first word of "$ac_prog", so it can be a program name with args. 11253 set dummy $ac_prog; ac_word=$2 11254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11255 $as_echo_n "checking for $ac_word... " >&6; } 11256 if ${ac_cv_path_XARGS+:} false; then : 11257 $as_echo_n "(cached) " >&6 11258 else 11259 case $XARGS in 11260 [\\/]* | ?:[\\/]*) 11261 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 11262 ;; 11263 *) 11264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11265 for as_dir in $PATH 11266 do 11267 IFS=$as_save_IFS 11268 test -z "$as_dir" && as_dir=. 11269 for ac_exec_ext in '' $ac_executable_extensions; do 11270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11271 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 11272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11273 break 2 11274 fi 11275 done 11276 done 11277 IFS=$as_save_IFS 11278 11279 ;; 11280 esac 11281 fi 11282 XARGS=$ac_cv_path_XARGS 11283 if test -n "$XARGS"; then 11284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 11285 $as_echo "$XARGS" >&6; } 11286 else 11287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11288 $as_echo "no" >&6; } 11289 fi 11290 11291 11292 test -n "$XARGS" && break 11293 done 11294 11295 else 11296 # The variable is set, but is it from the command line or the environment? 11297 11298 # Try to remove the string !XARGS! from our list. 11299 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/} 11300 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11301 # If it failed, the variable was not from the command line. Ignore it, 11302 # but warn the user (except for BASH, which is always set by the calling BASH). 11303 if test "xXARGS" != xBASH; then 11304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5 11305 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;} 11306 fi 11307 # Try to locate tool using the code snippet 11308 for ac_prog in xargs 11309 do 11310 # Extract the first word of "$ac_prog", so it can be a program name with args. 11311 set dummy $ac_prog; ac_word=$2 11312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11313 $as_echo_n "checking for $ac_word... " >&6; } 11314 if ${ac_cv_path_XARGS+:} false; then : 11315 $as_echo_n "(cached) " >&6 11316 else 11317 case $XARGS in 11318 [\\/]* | ?:[\\/]*) 11319 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 11320 ;; 11321 *) 11322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11323 for as_dir in $PATH 11324 do 11325 IFS=$as_save_IFS 11326 test -z "$as_dir" && as_dir=. 11327 for ac_exec_ext in '' $ac_executable_extensions; do 11328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11329 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 11330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11331 break 2 11332 fi 11333 done 11334 done 11335 IFS=$as_save_IFS 11336 11337 ;; 11338 esac 11339 fi 11340 XARGS=$ac_cv_path_XARGS 11341 if test -n "$XARGS"; then 11342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 11343 $as_echo "$XARGS" >&6; } 11344 else 11345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11346 $as_echo "no" >&6; } 11347 fi 11348 11349 11350 test -n "$XARGS" && break 11351 done 11352 11353 else 11354 # If it succeeded, then it was overridden by the user. We will use it 11355 # for the tool. 11356 11357 # First remove it from the list of overridden variables, so we can test 11358 # for unknown variables in the end. 11359 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11360 11361 # Check if the provided tool contains a complete path. 11362 tool_specified="$XARGS" 11363 tool_basename="${tool_specified##*/}" 11364 if test "x$tool_basename" = "x$tool_specified"; then 11365 # A command without a complete path is provided, search $PATH. 11366 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5 11367 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;} 11368 # Extract the first word of "$tool_basename", so it can be a program name with args. 11369 set dummy $tool_basename; ac_word=$2 11370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11371 $as_echo_n "checking for $ac_word... " >&6; } 11372 if ${ac_cv_path_XARGS+:} false; then : 11373 $as_echo_n "(cached) " >&6 11374 else 11375 case $XARGS in 11376 [\\/]* | ?:[\\/]*) 11377 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 11378 ;; 11379 *) 11380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11381 for as_dir in $PATH 11382 do 11383 IFS=$as_save_IFS 11384 test -z "$as_dir" && as_dir=. 11385 for ac_exec_ext in '' $ac_executable_extensions; do 11386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11387 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 11388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11389 break 2 11390 fi 11391 done 11392 done 11393 IFS=$as_save_IFS 11394 11395 ;; 11396 esac 11397 fi 11398 XARGS=$ac_cv_path_XARGS 11399 if test -n "$XARGS"; then 11400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 11401 $as_echo "$XARGS" >&6; } 11402 else 11403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11404 $as_echo "no" >&6; } 11405 fi 11406 11407 11408 if test "x$XARGS" = x; then 11409 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11410 fi 11411 else 11412 # Otherwise we believe it is a complete path. Use it as it is. 11413 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5 11414 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;} 11415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5 11416 $as_echo_n "checking for XARGS... " >&6; } 11417 if test ! -x "$tool_specified"; then 11418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11419 $as_echo "not found" >&6; } 11420 as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5 11421 fi 11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11423 $as_echo "$tool_specified" >&6; } 11424 fi 11425 fi 11426 fi 11427 11428 11429 11430 if test "x$XARGS" = x; then 11431 as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5 11432 fi 11433 11434 11435 11436 # Then required tools that require some special treatment. 11437 11438 11439 # Publish this variable in the help. 11440 11441 11442 if test "x$AWK" = x; then 11443 # The variable is not set by user, try to locate tool using the code snippet 11444 for ac_prog in gawk mawk nawk awk 11445 do 11446 # Extract the first word of "$ac_prog", so it can be a program name with args. 11447 set dummy $ac_prog; ac_word=$2 11448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11449 $as_echo_n "checking for $ac_word... " >&6; } 11450 if ${ac_cv_prog_AWK+:} false; then : 11451 $as_echo_n "(cached) " >&6 11452 else 11453 if test -n "$AWK"; then 11454 ac_cv_prog_AWK="$AWK" # Let the user override the test. 11455 else 11456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11457 for as_dir in $PATH 11458 do 11459 IFS=$as_save_IFS 11460 test -z "$as_dir" && as_dir=. 11461 for ac_exec_ext in '' $ac_executable_extensions; do 11462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11463 ac_cv_prog_AWK="$ac_prog" 11464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11465 break 2 11466 fi 11467 done 11468 done 11469 IFS=$as_save_IFS 11470 11471 fi 11472 fi 11473 AWK=$ac_cv_prog_AWK 11474 if test -n "$AWK"; then 11475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 11476 $as_echo "$AWK" >&6; } 11477 else 11478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11479 $as_echo "no" >&6; } 11480 fi 11481 11482 11483 test -n "$AWK" && break 11484 done 11485 11486 else 11487 # The variable is set, but is it from the command line or the environment? 11488 11489 # Try to remove the string !AWK! from our list. 11490 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/} 11491 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11492 # If it failed, the variable was not from the command line. Ignore it, 11493 # but warn the user (except for BASH, which is always set by the calling BASH). 11494 if test "xAWK" != xBASH; then 11495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5 11496 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;} 11497 fi 11498 # Try to locate tool using the code snippet 11499 for ac_prog in gawk mawk nawk awk 11500 do 11501 # Extract the first word of "$ac_prog", so it can be a program name with args. 11502 set dummy $ac_prog; ac_word=$2 11503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11504 $as_echo_n "checking for $ac_word... " >&6; } 11505 if ${ac_cv_prog_AWK+:} false; then : 11506 $as_echo_n "(cached) " >&6 11507 else 11508 if test -n "$AWK"; then 11509 ac_cv_prog_AWK="$AWK" # Let the user override the test. 11510 else 11511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11512 for as_dir in $PATH 11513 do 11514 IFS=$as_save_IFS 11515 test -z "$as_dir" && as_dir=. 11516 for ac_exec_ext in '' $ac_executable_extensions; do 11517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11518 ac_cv_prog_AWK="$ac_prog" 11519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11520 break 2 11521 fi 11522 done 11523 done 11524 IFS=$as_save_IFS 11525 11526 fi 11527 fi 11528 AWK=$ac_cv_prog_AWK 11529 if test -n "$AWK"; then 11530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 11531 $as_echo "$AWK" >&6; } 11532 else 11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11534 $as_echo "no" >&6; } 11535 fi 11536 11537 11538 test -n "$AWK" && break 11539 done 11540 11541 else 11542 # If it succeeded, then it was overridden by the user. We will use it 11543 # for the tool. 11544 11545 # First remove it from the list of overridden variables, so we can test 11546 # for unknown variables in the end. 11547 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11548 11549 # Check if the provided tool contains a complete path. 11550 tool_specified="$AWK" 11551 tool_basename="${tool_specified##*/}" 11552 if test "x$tool_basename" = "x$tool_specified"; then 11553 # A command without a complete path is provided, search $PATH. 11554 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5 11555 $as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;} 11556 # Extract the first word of "$tool_basename", so it can be a program name with args. 11557 set dummy $tool_basename; ac_word=$2 11558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11559 $as_echo_n "checking for $ac_word... " >&6; } 11560 if ${ac_cv_path_AWK+:} false; then : 11561 $as_echo_n "(cached) " >&6 11562 else 11563 case $AWK in 11564 [\\/]* | ?:[\\/]*) 11565 ac_cv_path_AWK="$AWK" # Let the user override the test with a path. 11566 ;; 11567 *) 11568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11569 for as_dir in $PATH 11570 do 11571 IFS=$as_save_IFS 11572 test -z "$as_dir" && as_dir=. 11573 for ac_exec_ext in '' $ac_executable_extensions; do 11574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11575 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext" 11576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11577 break 2 11578 fi 11579 done 11580 done 11581 IFS=$as_save_IFS 11582 11583 ;; 11584 esac 11585 fi 11586 AWK=$ac_cv_path_AWK 11587 if test -n "$AWK"; then 11588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 11589 $as_echo "$AWK" >&6; } 11590 else 11591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11592 $as_echo "no" >&6; } 11593 fi 11594 11595 11596 if test "x$AWK" = x; then 11597 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11598 fi 11599 else 11600 # Otherwise we believe it is a complete path. Use it as it is. 11601 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5 11602 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;} 11603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5 11604 $as_echo_n "checking for AWK... " >&6; } 11605 if test ! -x "$tool_specified"; then 11606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11607 $as_echo "not found" >&6; } 11608 as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5 11609 fi 11610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11611 $as_echo "$tool_specified" >&6; } 11612 fi 11613 fi 11614 fi 11615 11616 11617 if test "x$AWK" = x; then 11618 as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5 11619 fi 11620 11621 11622 11623 11624 # Publish this variable in the help. 11625 11626 11627 if test "x$GREP" = x; then 11628 # The variable is not set by user, try to locate tool using the code snippet 11629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 11630 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 11631 if ${ac_cv_path_GREP+:} false; then : 11632 $as_echo_n "(cached) " >&6 11633 else 11634 if test -z "$GREP"; then 11635 ac_path_GREP_found=false 11636 # Loop through the user's path and test for each of PROGNAME-LIST 11637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11638 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11639 do 11640 IFS=$as_save_IFS 11641 test -z "$as_dir" && as_dir=. 11642 for ac_prog in grep ggrep; do 11643 for ac_exec_ext in '' $ac_executable_extensions; do 11644 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 11645 as_fn_executable_p "$ac_path_GREP" || continue 11646 # Check for GNU ac_path_GREP and select it if it is found. 11647 # Check for GNU $ac_path_GREP 11648 case `"$ac_path_GREP" --version 2>&1` in 11649 *GNU*) 11650 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 11651 *) 11652 ac_count=0 11653 $as_echo_n 0123456789 >"conftest.in" 11654 while : 11655 do 11656 cat "conftest.in" "conftest.in" >"conftest.tmp" 11657 mv "conftest.tmp" "conftest.in" 11658 cp "conftest.in" "conftest.nl" 11659 $as_echo 'GREP' >> "conftest.nl" 11660 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11661 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11662 as_fn_arith $ac_count + 1 && ac_count=$as_val 11663 if test $ac_count -gt ${ac_path_GREP_max-0}; then 11664 # Best one so far, save it but keep looking for a better one 11665 ac_cv_path_GREP="$ac_path_GREP" 11666 ac_path_GREP_max=$ac_count 11667 fi 11668 # 10*(2^10) chars as input seems more than enough 11669 test $ac_count -gt 10 && break 11670 done 11671 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11672 esac 11673 11674 $ac_path_GREP_found && break 3 11675 done 11676 done 11677 done 11678 IFS=$as_save_IFS 11679 if test -z "$ac_cv_path_GREP"; then 11680 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11681 fi 11682 else 11683 ac_cv_path_GREP=$GREP 11684 fi 11685 11686 fi 11687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 11688 $as_echo "$ac_cv_path_GREP" >&6; } 11689 GREP="$ac_cv_path_GREP" 11690 11691 11692 else 11693 # The variable is set, but is it from the command line or the environment? 11694 11695 # Try to remove the string !GREP! from our list. 11696 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/} 11697 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11698 # If it failed, the variable was not from the command line. Ignore it, 11699 # but warn the user (except for BASH, which is always set by the calling BASH). 11700 if test "xGREP" != xBASH; then 11701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5 11702 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;} 11703 fi 11704 # Try to locate tool using the code snippet 11705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 11706 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 11707 if ${ac_cv_path_GREP+:} false; then : 11708 $as_echo_n "(cached) " >&6 11709 else 11710 if test -z "$GREP"; then 11711 ac_path_GREP_found=false 11712 # Loop through the user's path and test for each of PROGNAME-LIST 11713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11714 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11715 do 11716 IFS=$as_save_IFS 11717 test -z "$as_dir" && as_dir=. 11718 for ac_prog in grep ggrep; do 11719 for ac_exec_ext in '' $ac_executable_extensions; do 11720 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 11721 as_fn_executable_p "$ac_path_GREP" || continue 11722 # Check for GNU ac_path_GREP and select it if it is found. 11723 # Check for GNU $ac_path_GREP 11724 case `"$ac_path_GREP" --version 2>&1` in 11725 *GNU*) 11726 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 11727 *) 11728 ac_count=0 11729 $as_echo_n 0123456789 >"conftest.in" 11730 while : 11731 do 11732 cat "conftest.in" "conftest.in" >"conftest.tmp" 11733 mv "conftest.tmp" "conftest.in" 11734 cp "conftest.in" "conftest.nl" 11735 $as_echo 'GREP' >> "conftest.nl" 11736 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11737 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11738 as_fn_arith $ac_count + 1 && ac_count=$as_val 11739 if test $ac_count -gt ${ac_path_GREP_max-0}; then 11740 # Best one so far, save it but keep looking for a better one 11741 ac_cv_path_GREP="$ac_path_GREP" 11742 ac_path_GREP_max=$ac_count 11743 fi 11744 # 10*(2^10) chars as input seems more than enough 11745 test $ac_count -gt 10 && break 11746 done 11747 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11748 esac 11749 11750 $ac_path_GREP_found && break 3 11751 done 11752 done 11753 done 11754 IFS=$as_save_IFS 11755 if test -z "$ac_cv_path_GREP"; then 11756 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11757 fi 11758 else 11759 ac_cv_path_GREP=$GREP 11760 fi 11761 11762 fi 11763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 11764 $as_echo "$ac_cv_path_GREP" >&6; } 11765 GREP="$ac_cv_path_GREP" 11766 11767 11768 else 11769 # If it succeeded, then it was overridden by the user. We will use it 11770 # for the tool. 11771 11772 # First remove it from the list of overridden variables, so we can test 11773 # for unknown variables in the end. 11774 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11775 11776 # Check if the provided tool contains a complete path. 11777 tool_specified="$GREP" 11778 tool_basename="${tool_specified##*/}" 11779 if test "x$tool_basename" = "x$tool_specified"; then 11780 # A command without a complete path is provided, search $PATH. 11781 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5 11782 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;} 11783 # Extract the first word of "$tool_basename", so it can be a program name with args. 11784 set dummy $tool_basename; ac_word=$2 11785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11786 $as_echo_n "checking for $ac_word... " >&6; } 11787 if ${ac_cv_path_GREP+:} false; then : 11788 $as_echo_n "(cached) " >&6 11789 else 11790 case $GREP in 11791 [\\/]* | ?:[\\/]*) 11792 ac_cv_path_GREP="$GREP" # Let the user override the test with a path. 11793 ;; 11794 *) 11795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11796 for as_dir in $PATH 11797 do 11798 IFS=$as_save_IFS 11799 test -z "$as_dir" && as_dir=. 11800 for ac_exec_ext in '' $ac_executable_extensions; do 11801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11802 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" 11803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11804 break 2 11805 fi 11806 done 11807 done 11808 IFS=$as_save_IFS 11809 11810 ;; 11811 esac 11812 fi 11813 GREP=$ac_cv_path_GREP 11814 if test -n "$GREP"; then 11815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5 11816 $as_echo "$GREP" >&6; } 11817 else 11818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11819 $as_echo "no" >&6; } 11820 fi 11821 11822 11823 if test "x$GREP" = x; then 11824 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11825 fi 11826 else 11827 # Otherwise we believe it is a complete path. Use it as it is. 11828 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5 11829 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;} 11830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5 11831 $as_echo_n "checking for GREP... " >&6; } 11832 if test ! -x "$tool_specified"; then 11833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11834 $as_echo "not found" >&6; } 11835 as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5 11836 fi 11837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11838 $as_echo "$tool_specified" >&6; } 11839 fi 11840 fi 11841 fi 11842 11843 11844 if test "x$GREP" = x; then 11845 as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5 11846 fi 11847 11848 11849 11850 11851 # Publish this variable in the help. 11852 11853 11854 if test "x$EGREP" = x; then 11855 # The variable is not set by user, try to locate tool using the code snippet 11856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 11857 $as_echo_n "checking for egrep... " >&6; } 11858 if ${ac_cv_path_EGREP+:} false; then : 11859 $as_echo_n "(cached) " >&6 11860 else 11861 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 11862 then ac_cv_path_EGREP="$GREP -E" 11863 else 11864 if test -z "$EGREP"; then 11865 ac_path_EGREP_found=false 11866 # Loop through the user's path and test for each of PROGNAME-LIST 11867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11868 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11869 do 11870 IFS=$as_save_IFS 11871 test -z "$as_dir" && as_dir=. 11872 for ac_prog in egrep; do 11873 for ac_exec_ext in '' $ac_executable_extensions; do 11874 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 11875 as_fn_executable_p "$ac_path_EGREP" || continue 11876 # Check for GNU ac_path_EGREP and select it if it is found. 11877 # Check for GNU $ac_path_EGREP 11878 case `"$ac_path_EGREP" --version 2>&1` in 11879 *GNU*) 11880 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 11881 *) 11882 ac_count=0 11883 $as_echo_n 0123456789 >"conftest.in" 11884 while : 11885 do 11886 cat "conftest.in" "conftest.in" >"conftest.tmp" 11887 mv "conftest.tmp" "conftest.in" 11888 cp "conftest.in" "conftest.nl" 11889 $as_echo 'EGREP' >> "conftest.nl" 11890 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11891 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11892 as_fn_arith $ac_count + 1 && ac_count=$as_val 11893 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 11894 # Best one so far, save it but keep looking for a better one 11895 ac_cv_path_EGREP="$ac_path_EGREP" 11896 ac_path_EGREP_max=$ac_count 11897 fi 11898 # 10*(2^10) chars as input seems more than enough 11899 test $ac_count -gt 10 && break 11900 done 11901 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11902 esac 11903 11904 $ac_path_EGREP_found && break 3 11905 done 11906 done 11907 done 11908 IFS=$as_save_IFS 11909 if test -z "$ac_cv_path_EGREP"; then 11910 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11911 fi 11912 else 11913 ac_cv_path_EGREP=$EGREP 11914 fi 11915 11916 fi 11917 fi 11918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 11919 $as_echo "$ac_cv_path_EGREP" >&6; } 11920 EGREP="$ac_cv_path_EGREP" 11921 11922 11923 else 11924 # The variable is set, but is it from the command line or the environment? 11925 11926 # Try to remove the string !EGREP! from our list. 11927 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/} 11928 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11929 # If it failed, the variable was not from the command line. Ignore it, 11930 # but warn the user (except for BASH, which is always set by the calling BASH). 11931 if test "xEGREP" != xBASH; then 11932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5 11933 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;} 11934 fi 11935 # Try to locate tool using the code snippet 11936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 11937 $as_echo_n "checking for egrep... " >&6; } 11938 if ${ac_cv_path_EGREP+:} false; then : 11939 $as_echo_n "(cached) " >&6 11940 else 11941 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 11942 then ac_cv_path_EGREP="$GREP -E" 11943 else 11944 if test -z "$EGREP"; then 11945 ac_path_EGREP_found=false 11946 # Loop through the user's path and test for each of PROGNAME-LIST 11947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11948 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11949 do 11950 IFS=$as_save_IFS 11951 test -z "$as_dir" && as_dir=. 11952 for ac_prog in egrep; do 11953 for ac_exec_ext in '' $ac_executable_extensions; do 11954 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 11955 as_fn_executable_p "$ac_path_EGREP" || continue 11956 # Check for GNU ac_path_EGREP and select it if it is found. 11957 # Check for GNU $ac_path_EGREP 11958 case `"$ac_path_EGREP" --version 2>&1` in 11959 *GNU*) 11960 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 11961 *) 11962 ac_count=0 11963 $as_echo_n 0123456789 >"conftest.in" 11964 while : 11965 do 11966 cat "conftest.in" "conftest.in" >"conftest.tmp" 11967 mv "conftest.tmp" "conftest.in" 11968 cp "conftest.in" "conftest.nl" 11969 $as_echo 'EGREP' >> "conftest.nl" 11970 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11971 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11972 as_fn_arith $ac_count + 1 && ac_count=$as_val 11973 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 11974 # Best one so far, save it but keep looking for a better one 11975 ac_cv_path_EGREP="$ac_path_EGREP" 11976 ac_path_EGREP_max=$ac_count 11977 fi 11978 # 10*(2^10) chars as input seems more than enough 11979 test $ac_count -gt 10 && break 11980 done 11981 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11982 esac 11983 11984 $ac_path_EGREP_found && break 3 11985 done 11986 done 11987 done 11988 IFS=$as_save_IFS 11989 if test -z "$ac_cv_path_EGREP"; then 11990 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11991 fi 11992 else 11993 ac_cv_path_EGREP=$EGREP 11994 fi 11995 11996 fi 11997 fi 11998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 11999 $as_echo "$ac_cv_path_EGREP" >&6; } 12000 EGREP="$ac_cv_path_EGREP" 12001 12002 12003 else 12004 # If it succeeded, then it was overridden by the user. We will use it 12005 # for the tool. 12006 12007 # First remove it from the list of overridden variables, so we can test 12008 # for unknown variables in the end. 12009 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12010 12011 # Check if the provided tool contains a complete path. 12012 tool_specified="$EGREP" 12013 tool_basename="${tool_specified##*/}" 12014 if test "x$tool_basename" = "x$tool_specified"; then 12015 # A command without a complete path is provided, search $PATH. 12016 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5 12017 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;} 12018 # Extract the first word of "$tool_basename", so it can be a program name with args. 12019 set dummy $tool_basename; ac_word=$2 12020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12021 $as_echo_n "checking for $ac_word... " >&6; } 12022 if ${ac_cv_path_EGREP+:} false; then : 12023 $as_echo_n "(cached) " >&6 12024 else 12025 case $EGREP in 12026 [\\/]* | ?:[\\/]*) 12027 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path. 12028 ;; 12029 *) 12030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12031 for as_dir in $PATH 12032 do 12033 IFS=$as_save_IFS 12034 test -z "$as_dir" && as_dir=. 12035 for ac_exec_ext in '' $ac_executable_extensions; do 12036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12037 ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext" 12038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12039 break 2 12040 fi 12041 done 12042 done 12043 IFS=$as_save_IFS 12044 12045 ;; 12046 esac 12047 fi 12048 EGREP=$ac_cv_path_EGREP 12049 if test -n "$EGREP"; then 12050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5 12051 $as_echo "$EGREP" >&6; } 12052 else 12053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12054 $as_echo "no" >&6; } 12055 fi 12056 12057 12058 if test "x$EGREP" = x; then 12059 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12060 fi 12061 else 12062 # Otherwise we believe it is a complete path. Use it as it is. 12063 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5 12064 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;} 12065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5 12066 $as_echo_n "checking for EGREP... " >&6; } 12067 if test ! -x "$tool_specified"; then 12068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12069 $as_echo "not found" >&6; } 12070 as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5 12071 fi 12072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12073 $as_echo "$tool_specified" >&6; } 12074 fi 12075 fi 12076 fi 12077 12078 12079 if test "x$EGREP" = x; then 12080 as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5 12081 fi 12082 12083 12084 12085 12086 # Publish this variable in the help. 12087 12088 12089 if test "x$FGREP" = x; then 12090 # The variable is not set by user, try to locate tool using the code snippet 12091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 12092 $as_echo_n "checking for fgrep... " >&6; } 12093 if ${ac_cv_path_FGREP+:} false; then : 12094 $as_echo_n "(cached) " >&6 12095 else 12096 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 12097 then ac_cv_path_FGREP="$GREP -F" 12098 else 12099 if test -z "$FGREP"; then 12100 ac_path_FGREP_found=false 12101 # Loop through the user's path and test for each of PROGNAME-LIST 12102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12103 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 12104 do 12105 IFS=$as_save_IFS 12106 test -z "$as_dir" && as_dir=. 12107 for ac_prog in fgrep; do 12108 for ac_exec_ext in '' $ac_executable_extensions; do 12109 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 12110 as_fn_executable_p "$ac_path_FGREP" || continue 12111 # Check for GNU ac_path_FGREP and select it if it is found. 12112 # Check for GNU $ac_path_FGREP 12113 case `"$ac_path_FGREP" --version 2>&1` in 12114 *GNU*) 12115 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 12116 *) 12117 ac_count=0 12118 $as_echo_n 0123456789 >"conftest.in" 12119 while : 12120 do 12121 cat "conftest.in" "conftest.in" >"conftest.tmp" 12122 mv "conftest.tmp" "conftest.in" 12123 cp "conftest.in" "conftest.nl" 12124 $as_echo 'FGREP' >> "conftest.nl" 12125 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 12126 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12127 as_fn_arith $ac_count + 1 && ac_count=$as_val 12128 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 12129 # Best one so far, save it but keep looking for a better one 12130 ac_cv_path_FGREP="$ac_path_FGREP" 12131 ac_path_FGREP_max=$ac_count 12132 fi 12133 # 10*(2^10) chars as input seems more than enough 12134 test $ac_count -gt 10 && break 12135 done 12136 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12137 esac 12138 12139 $ac_path_FGREP_found && break 3 12140 done 12141 done 12142 done 12143 IFS=$as_save_IFS 12144 if test -z "$ac_cv_path_FGREP"; then 12145 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 12146 fi 12147 else 12148 ac_cv_path_FGREP=$FGREP 12149 fi 12150 12151 fi 12152 fi 12153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 12154 $as_echo "$ac_cv_path_FGREP" >&6; } 12155 FGREP="$ac_cv_path_FGREP" 12156 12157 12158 else 12159 # The variable is set, but is it from the command line or the environment? 12160 12161 # Try to remove the string !FGREP! from our list. 12162 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/} 12163 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12164 # If it failed, the variable was not from the command line. Ignore it, 12165 # but warn the user (except for BASH, which is always set by the calling BASH). 12166 if test "xFGREP" != xBASH; then 12167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5 12168 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;} 12169 fi 12170 # Try to locate tool using the code snippet 12171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 12172 $as_echo_n "checking for fgrep... " >&6; } 12173 if ${ac_cv_path_FGREP+:} false; then : 12174 $as_echo_n "(cached) " >&6 12175 else 12176 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 12177 then ac_cv_path_FGREP="$GREP -F" 12178 else 12179 if test -z "$FGREP"; then 12180 ac_path_FGREP_found=false 12181 # Loop through the user's path and test for each of PROGNAME-LIST 12182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12183 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 12184 do 12185 IFS=$as_save_IFS 12186 test -z "$as_dir" && as_dir=. 12187 for ac_prog in fgrep; do 12188 for ac_exec_ext in '' $ac_executable_extensions; do 12189 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 12190 as_fn_executable_p "$ac_path_FGREP" || continue 12191 # Check for GNU ac_path_FGREP and select it if it is found. 12192 # Check for GNU $ac_path_FGREP 12193 case `"$ac_path_FGREP" --version 2>&1` in 12194 *GNU*) 12195 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 12196 *) 12197 ac_count=0 12198 $as_echo_n 0123456789 >"conftest.in" 12199 while : 12200 do 12201 cat "conftest.in" "conftest.in" >"conftest.tmp" 12202 mv "conftest.tmp" "conftest.in" 12203 cp "conftest.in" "conftest.nl" 12204 $as_echo 'FGREP' >> "conftest.nl" 12205 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 12206 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12207 as_fn_arith $ac_count + 1 && ac_count=$as_val 12208 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 12209 # Best one so far, save it but keep looking for a better one 12210 ac_cv_path_FGREP="$ac_path_FGREP" 12211 ac_path_FGREP_max=$ac_count 12212 fi 12213 # 10*(2^10) chars as input seems more than enough 12214 test $ac_count -gt 10 && break 12215 done 12216 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12217 esac 12218 12219 $ac_path_FGREP_found && break 3 12220 done 12221 done 12222 done 12223 IFS=$as_save_IFS 12224 if test -z "$ac_cv_path_FGREP"; then 12225 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 12226 fi 12227 else 12228 ac_cv_path_FGREP=$FGREP 12229 fi 12230 12231 fi 12232 fi 12233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 12234 $as_echo "$ac_cv_path_FGREP" >&6; } 12235 FGREP="$ac_cv_path_FGREP" 12236 12237 12238 else 12239 # If it succeeded, then it was overridden by the user. We will use it 12240 # for the tool. 12241 12242 # First remove it from the list of overridden variables, so we can test 12243 # for unknown variables in the end. 12244 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12245 12246 # Check if the provided tool contains a complete path. 12247 tool_specified="$FGREP" 12248 tool_basename="${tool_specified##*/}" 12249 if test "x$tool_basename" = "x$tool_specified"; then 12250 # A command without a complete path is provided, search $PATH. 12251 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5 12252 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;} 12253 # Extract the first word of "$tool_basename", so it can be a program name with args. 12254 set dummy $tool_basename; ac_word=$2 12255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12256 $as_echo_n "checking for $ac_word... " >&6; } 12257 if ${ac_cv_path_FGREP+:} false; then : 12258 $as_echo_n "(cached) " >&6 12259 else 12260 case $FGREP in 12261 [\\/]* | ?:[\\/]*) 12262 ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path. 12263 ;; 12264 *) 12265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12266 for as_dir in $PATH 12267 do 12268 IFS=$as_save_IFS 12269 test -z "$as_dir" && as_dir=. 12270 for ac_exec_ext in '' $ac_executable_extensions; do 12271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12272 ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext" 12273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12274 break 2 12275 fi 12276 done 12277 done 12278 IFS=$as_save_IFS 12279 12280 ;; 12281 esac 12282 fi 12283 FGREP=$ac_cv_path_FGREP 12284 if test -n "$FGREP"; then 12285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5 12286 $as_echo "$FGREP" >&6; } 12287 else 12288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12289 $as_echo "no" >&6; } 12290 fi 12291 12292 12293 if test "x$FGREP" = x; then 12294 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12295 fi 12296 else 12297 # Otherwise we believe it is a complete path. Use it as it is. 12298 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5 12299 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;} 12300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5 12301 $as_echo_n "checking for FGREP... " >&6; } 12302 if test ! -x "$tool_specified"; then 12303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12304 $as_echo "not found" >&6; } 12305 as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5 12306 fi 12307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12308 $as_echo "$tool_specified" >&6; } 12309 fi 12310 fi 12311 fi 12312 12313 12314 if test "x$FGREP" = x; then 12315 as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5 12316 fi 12317 12318 12319 12320 12321 # Publish this variable in the help. 12322 12323 12324 if test "x$SED" = x; then 12325 # The variable is not set by user, try to locate tool using the code snippet 12326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 12327 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 12328 if ${ac_cv_path_SED+:} false; then : 12329 $as_echo_n "(cached) " >&6 12330 else 12331 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 12332 for ac_i in 1 2 3 4 5 6 7; do 12333 ac_script="$ac_script$as_nl$ac_script" 12334 done 12335 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 12336 { ac_script=; unset ac_script;} 12337 if test -z "$SED"; then 12338 ac_path_SED_found=false 12339 # Loop through the user's path and test for each of PROGNAME-LIST 12340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12341 for as_dir in $PATH 12342 do 12343 IFS=$as_save_IFS 12344 test -z "$as_dir" && as_dir=. 12345 for ac_prog in sed gsed; do 12346 for ac_exec_ext in '' $ac_executable_extensions; do 12347 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 12348 as_fn_executable_p "$ac_path_SED" || continue 12349 # Check for GNU ac_path_SED and select it if it is found. 12350 # Check for GNU $ac_path_SED 12351 case `"$ac_path_SED" --version 2>&1` in 12352 *GNU*) 12353 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 12354 *) 12355 ac_count=0 12356 $as_echo_n 0123456789 >"conftest.in" 12357 while : 12358 do 12359 cat "conftest.in" "conftest.in" >"conftest.tmp" 12360 mv "conftest.tmp" "conftest.in" 12361 cp "conftest.in" "conftest.nl" 12362 $as_echo '' >> "conftest.nl" 12363 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 12364 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12365 as_fn_arith $ac_count + 1 && ac_count=$as_val 12366 if test $ac_count -gt ${ac_path_SED_max-0}; then 12367 # Best one so far, save it but keep looking for a better one 12368 ac_cv_path_SED="$ac_path_SED" 12369 ac_path_SED_max=$ac_count 12370 fi 12371 # 10*(2^10) chars as input seems more than enough 12372 test $ac_count -gt 10 && break 12373 done 12374 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12375 esac 12376 12377 $ac_path_SED_found && break 3 12378 done 12379 done 12380 done 12381 IFS=$as_save_IFS 12382 if test -z "$ac_cv_path_SED"; then 12383 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 12384 fi 12385 else 12386 ac_cv_path_SED=$SED 12387 fi 12388 12389 fi 12390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 12391 $as_echo "$ac_cv_path_SED" >&6; } 12392 SED="$ac_cv_path_SED" 12393 rm -f conftest.sed 12394 12395 else 12396 # The variable is set, but is it from the command line or the environment? 12397 12398 # Try to remove the string !SED! from our list. 12399 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/} 12400 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12401 # If it failed, the variable was not from the command line. Ignore it, 12402 # but warn the user (except for BASH, which is always set by the calling BASH). 12403 if test "xSED" != xBASH; then 12404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5 12405 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;} 12406 fi 12407 # Try to locate tool using the code snippet 12408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 12409 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 12410 if ${ac_cv_path_SED+:} false; then : 12411 $as_echo_n "(cached) " >&6 12412 else 12413 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 12414 for ac_i in 1 2 3 4 5 6 7; do 12415 ac_script="$ac_script$as_nl$ac_script" 12416 done 12417 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 12418 { ac_script=; unset ac_script;} 12419 if test -z "$SED"; then 12420 ac_path_SED_found=false 12421 # Loop through the user's path and test for each of PROGNAME-LIST 12422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12423 for as_dir in $PATH 12424 do 12425 IFS=$as_save_IFS 12426 test -z "$as_dir" && as_dir=. 12427 for ac_prog in sed gsed; do 12428 for ac_exec_ext in '' $ac_executable_extensions; do 12429 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 12430 as_fn_executable_p "$ac_path_SED" || continue 12431 # Check for GNU ac_path_SED and select it if it is found. 12432 # Check for GNU $ac_path_SED 12433 case `"$ac_path_SED" --version 2>&1` in 12434 *GNU*) 12435 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 12436 *) 12437 ac_count=0 12438 $as_echo_n 0123456789 >"conftest.in" 12439 while : 12440 do 12441 cat "conftest.in" "conftest.in" >"conftest.tmp" 12442 mv "conftest.tmp" "conftest.in" 12443 cp "conftest.in" "conftest.nl" 12444 $as_echo '' >> "conftest.nl" 12445 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 12446 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12447 as_fn_arith $ac_count + 1 && ac_count=$as_val 12448 if test $ac_count -gt ${ac_path_SED_max-0}; then 12449 # Best one so far, save it but keep looking for a better one 12450 ac_cv_path_SED="$ac_path_SED" 12451 ac_path_SED_max=$ac_count 12452 fi 12453 # 10*(2^10) chars as input seems more than enough 12454 test $ac_count -gt 10 && break 12455 done 12456 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12457 esac 12458 12459 $ac_path_SED_found && break 3 12460 done 12461 done 12462 done 12463 IFS=$as_save_IFS 12464 if test -z "$ac_cv_path_SED"; then 12465 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 12466 fi 12467 else 12468 ac_cv_path_SED=$SED 12469 fi 12470 12471 fi 12472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 12473 $as_echo "$ac_cv_path_SED" >&6; } 12474 SED="$ac_cv_path_SED" 12475 rm -f conftest.sed 12476 12477 else 12478 # If it succeeded, then it was overridden by the user. We will use it 12479 # for the tool. 12480 12481 # First remove it from the list of overridden variables, so we can test 12482 # for unknown variables in the end. 12483 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12484 12485 # Check if the provided tool contains a complete path. 12486 tool_specified="$SED" 12487 tool_basename="${tool_specified##*/}" 12488 if test "x$tool_basename" = "x$tool_specified"; then 12489 # A command without a complete path is provided, search $PATH. 12490 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5 12491 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;} 12492 # Extract the first word of "$tool_basename", so it can be a program name with args. 12493 set dummy $tool_basename; ac_word=$2 12494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12495 $as_echo_n "checking for $ac_word... " >&6; } 12496 if ${ac_cv_path_SED+:} false; then : 12497 $as_echo_n "(cached) " >&6 12498 else 12499 case $SED in 12500 [\\/]* | ?:[\\/]*) 12501 ac_cv_path_SED="$SED" # Let the user override the test with a path. 12502 ;; 12503 *) 12504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12505 for as_dir in $PATH 12506 do 12507 IFS=$as_save_IFS 12508 test -z "$as_dir" && as_dir=. 12509 for ac_exec_ext in '' $ac_executable_extensions; do 12510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12511 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" 12512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12513 break 2 12514 fi 12515 done 12516 done 12517 IFS=$as_save_IFS 12518 12519 ;; 12520 esac 12521 fi 12522 SED=$ac_cv_path_SED 12523 if test -n "$SED"; then 12524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 12525 $as_echo "$SED" >&6; } 12526 else 12527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12528 $as_echo "no" >&6; } 12529 fi 12530 12531 12532 if test "x$SED" = x; then 12533 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12534 fi 12535 else 12536 # Otherwise we believe it is a complete path. Use it as it is. 12537 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5 12538 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;} 12539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5 12540 $as_echo_n "checking for SED... " >&6; } 12541 if test ! -x "$tool_specified"; then 12542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12543 $as_echo "not found" >&6; } 12544 as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5 12545 fi 12546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12547 $as_echo "$tool_specified" >&6; } 12548 fi 12549 fi 12550 fi 12551 12552 12553 if test "x$SED" = x; then 12554 as_fn_error $? "Could not find required tool for SED" "$LINENO" 5 12555 fi 12556 12557 12558 12559 # Always force rm. 12560 RM="$RM -f" 12561 12562 # pwd behaves differently on various platforms and some don't support the -L flag. 12563 # Always use the bash builtin pwd to get uniform behavior. 12564 THEPWDCMD=pwd 12565 12566 # These are not required on all platforms 12567 12568 12569 # Publish this variable in the help. 12570 12571 12572 if test "x$CYGPATH" = x; then 12573 # The variable is not set by user, try to locate tool using the code snippet 12574 for ac_prog in cygpath 12575 do 12576 # Extract the first word of "$ac_prog", so it can be a program name with args. 12577 set dummy $ac_prog; ac_word=$2 12578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12579 $as_echo_n "checking for $ac_word... " >&6; } 12580 if ${ac_cv_path_CYGPATH+:} false; then : 12581 $as_echo_n "(cached) " >&6 12582 else 12583 case $CYGPATH in 12584 [\\/]* | ?:[\\/]*) 12585 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 12586 ;; 12587 *) 12588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12589 for as_dir in $PATH 12590 do 12591 IFS=$as_save_IFS 12592 test -z "$as_dir" && as_dir=. 12593 for ac_exec_ext in '' $ac_executable_extensions; do 12594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12595 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 12596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12597 break 2 12598 fi 12599 done 12600 done 12601 IFS=$as_save_IFS 12602 12603 ;; 12604 esac 12605 fi 12606 CYGPATH=$ac_cv_path_CYGPATH 12607 if test -n "$CYGPATH"; then 12608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 12609 $as_echo "$CYGPATH" >&6; } 12610 else 12611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12612 $as_echo "no" >&6; } 12613 fi 12614 12615 12616 test -n "$CYGPATH" && break 12617 done 12618 12619 else 12620 # The variable is set, but is it from the command line or the environment? 12621 12622 # Try to remove the string !CYGPATH! from our list. 12623 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/} 12624 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12625 # If it failed, the variable was not from the command line. Ignore it, 12626 # but warn the user (except for BASH, which is always set by the calling BASH). 12627 if test "xCYGPATH" != xBASH; then 12628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5 12629 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;} 12630 fi 12631 # Try to locate tool using the code snippet 12632 for ac_prog in cygpath 12633 do 12634 # Extract the first word of "$ac_prog", so it can be a program name with args. 12635 set dummy $ac_prog; ac_word=$2 12636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12637 $as_echo_n "checking for $ac_word... " >&6; } 12638 if ${ac_cv_path_CYGPATH+:} false; then : 12639 $as_echo_n "(cached) " >&6 12640 else 12641 case $CYGPATH in 12642 [\\/]* | ?:[\\/]*) 12643 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 12644 ;; 12645 *) 12646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12647 for as_dir in $PATH 12648 do 12649 IFS=$as_save_IFS 12650 test -z "$as_dir" && as_dir=. 12651 for ac_exec_ext in '' $ac_executable_extensions; do 12652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12653 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 12654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12655 break 2 12656 fi 12657 done 12658 done 12659 IFS=$as_save_IFS 12660 12661 ;; 12662 esac 12663 fi 12664 CYGPATH=$ac_cv_path_CYGPATH 12665 if test -n "$CYGPATH"; then 12666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 12667 $as_echo "$CYGPATH" >&6; } 12668 else 12669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12670 $as_echo "no" >&6; } 12671 fi 12672 12673 12674 test -n "$CYGPATH" && break 12675 done 12676 12677 else 12678 # If it succeeded, then it was overridden by the user. We will use it 12679 # for the tool. 12680 12681 # First remove it from the list of overridden variables, so we can test 12682 # for unknown variables in the end. 12683 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12684 12685 # Check if the provided tool contains a complete path. 12686 tool_specified="$CYGPATH" 12687 tool_basename="${tool_specified##*/}" 12688 if test "x$tool_basename" = "x$tool_specified"; then 12689 # A command without a complete path is provided, search $PATH. 12690 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5 12691 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;} 12692 # Extract the first word of "$tool_basename", so it can be a program name with args. 12693 set dummy $tool_basename; ac_word=$2 12694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12695 $as_echo_n "checking for $ac_word... " >&6; } 12696 if ${ac_cv_path_CYGPATH+:} false; then : 12697 $as_echo_n "(cached) " >&6 12698 else 12699 case $CYGPATH in 12700 [\\/]* | ?:[\\/]*) 12701 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 12702 ;; 12703 *) 12704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12705 for as_dir in $PATH 12706 do 12707 IFS=$as_save_IFS 12708 test -z "$as_dir" && as_dir=. 12709 for ac_exec_ext in '' $ac_executable_extensions; do 12710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12711 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 12712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12713 break 2 12714 fi 12715 done 12716 done 12717 IFS=$as_save_IFS 12718 12719 ;; 12720 esac 12721 fi 12722 CYGPATH=$ac_cv_path_CYGPATH 12723 if test -n "$CYGPATH"; then 12724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 12725 $as_echo "$CYGPATH" >&6; } 12726 else 12727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12728 $as_echo "no" >&6; } 12729 fi 12730 12731 12732 if test "x$CYGPATH" = x; then 12733 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12734 fi 12735 else 12736 # Otherwise we believe it is a complete path. Use it as it is. 12737 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5 12738 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;} 12739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5 12740 $as_echo_n "checking for CYGPATH... " >&6; } 12741 if test ! -x "$tool_specified"; then 12742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12743 $as_echo "not found" >&6; } 12744 as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5 12745 fi 12746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12747 $as_echo "$tool_specified" >&6; } 12748 fi 12749 fi 12750 fi 12751 12752 12753 12754 12755 # Publish this variable in the help. 12756 12757 12758 if test "x$READLINK" = x; then 12759 # The variable is not set by user, try to locate tool using the code snippet 12760 for ac_prog in greadlink readlink 12761 do 12762 # Extract the first word of "$ac_prog", so it can be a program name with args. 12763 set dummy $ac_prog; ac_word=$2 12764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12765 $as_echo_n "checking for $ac_word... " >&6; } 12766 if ${ac_cv_path_READLINK+:} false; then : 12767 $as_echo_n "(cached) " >&6 12768 else 12769 case $READLINK in 12770 [\\/]* | ?:[\\/]*) 12771 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 12772 ;; 12773 *) 12774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12775 for as_dir in $PATH 12776 do 12777 IFS=$as_save_IFS 12778 test -z "$as_dir" && as_dir=. 12779 for ac_exec_ext in '' $ac_executable_extensions; do 12780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12781 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 12782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12783 break 2 12784 fi 12785 done 12786 done 12787 IFS=$as_save_IFS 12788 12789 ;; 12790 esac 12791 fi 12792 READLINK=$ac_cv_path_READLINK 12793 if test -n "$READLINK"; then 12794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 12795 $as_echo "$READLINK" >&6; } 12796 else 12797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12798 $as_echo "no" >&6; } 12799 fi 12800 12801 12802 test -n "$READLINK" && break 12803 done 12804 12805 else 12806 # The variable is set, but is it from the command line or the environment? 12807 12808 # Try to remove the string !READLINK! from our list. 12809 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/} 12810 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12811 # If it failed, the variable was not from the command line. Ignore it, 12812 # but warn the user (except for BASH, which is always set by the calling BASH). 12813 if test "xREADLINK" != xBASH; then 12814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5 12815 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;} 12816 fi 12817 # Try to locate tool using the code snippet 12818 for ac_prog in greadlink readlink 12819 do 12820 # Extract the first word of "$ac_prog", so it can be a program name with args. 12821 set dummy $ac_prog; ac_word=$2 12822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12823 $as_echo_n "checking for $ac_word... " >&6; } 12824 if ${ac_cv_path_READLINK+:} false; then : 12825 $as_echo_n "(cached) " >&6 12826 else 12827 case $READLINK in 12828 [\\/]* | ?:[\\/]*) 12829 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 12830 ;; 12831 *) 12832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12833 for as_dir in $PATH 12834 do 12835 IFS=$as_save_IFS 12836 test -z "$as_dir" && as_dir=. 12837 for ac_exec_ext in '' $ac_executable_extensions; do 12838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12839 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 12840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12841 break 2 12842 fi 12843 done 12844 done 12845 IFS=$as_save_IFS 12846 12847 ;; 12848 esac 12849 fi 12850 READLINK=$ac_cv_path_READLINK 12851 if test -n "$READLINK"; then 12852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 12853 $as_echo "$READLINK" >&6; } 12854 else 12855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12856 $as_echo "no" >&6; } 12857 fi 12858 12859 12860 test -n "$READLINK" && break 12861 done 12862 12863 else 12864 # If it succeeded, then it was overridden by the user. We will use it 12865 # for the tool. 12866 12867 # First remove it from the list of overridden variables, so we can test 12868 # for unknown variables in the end. 12869 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12870 12871 # Check if the provided tool contains a complete path. 12872 tool_specified="$READLINK" 12873 tool_basename="${tool_specified##*/}" 12874 if test "x$tool_basename" = "x$tool_specified"; then 12875 # A command without a complete path is provided, search $PATH. 12876 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5 12877 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;} 12878 # Extract the first word of "$tool_basename", so it can be a program name with args. 12879 set dummy $tool_basename; ac_word=$2 12880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12881 $as_echo_n "checking for $ac_word... " >&6; } 12882 if ${ac_cv_path_READLINK+:} false; then : 12883 $as_echo_n "(cached) " >&6 12884 else 12885 case $READLINK in 12886 [\\/]* | ?:[\\/]*) 12887 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 12888 ;; 12889 *) 12890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12891 for as_dir in $PATH 12892 do 12893 IFS=$as_save_IFS 12894 test -z "$as_dir" && as_dir=. 12895 for ac_exec_ext in '' $ac_executable_extensions; do 12896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12897 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 12898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12899 break 2 12900 fi 12901 done 12902 done 12903 IFS=$as_save_IFS 12904 12905 ;; 12906 esac 12907 fi 12908 READLINK=$ac_cv_path_READLINK 12909 if test -n "$READLINK"; then 12910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 12911 $as_echo "$READLINK" >&6; } 12912 else 12913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12914 $as_echo "no" >&6; } 12915 fi 12916 12917 12918 if test "x$READLINK" = x; then 12919 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12920 fi 12921 else 12922 # Otherwise we believe it is a complete path. Use it as it is. 12923 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5 12924 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;} 12925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5 12926 $as_echo_n "checking for READLINK... " >&6; } 12927 if test ! -x "$tool_specified"; then 12928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12929 $as_echo "not found" >&6; } 12930 as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5 12931 fi 12932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12933 $as_echo "$tool_specified" >&6; } 12934 fi 12935 fi 12936 fi 12937 12938 12939 12940 12941 # Publish this variable in the help. 12942 12943 12944 if test "x$DF" = x; then 12945 # The variable is not set by user, try to locate tool using the code snippet 12946 for ac_prog in df 12947 do 12948 # Extract the first word of "$ac_prog", so it can be a program name with args. 12949 set dummy $ac_prog; ac_word=$2 12950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12951 $as_echo_n "checking for $ac_word... " >&6; } 12952 if ${ac_cv_path_DF+:} false; then : 12953 $as_echo_n "(cached) " >&6 12954 else 12955 case $DF in 12956 [\\/]* | ?:[\\/]*) 12957 ac_cv_path_DF="$DF" # Let the user override the test with a path. 12958 ;; 12959 *) 12960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12961 for as_dir in $PATH 12962 do 12963 IFS=$as_save_IFS 12964 test -z "$as_dir" && as_dir=. 12965 for ac_exec_ext in '' $ac_executable_extensions; do 12966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12967 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 12968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12969 break 2 12970 fi 12971 done 12972 done 12973 IFS=$as_save_IFS 12974 12975 ;; 12976 esac 12977 fi 12978 DF=$ac_cv_path_DF 12979 if test -n "$DF"; then 12980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 12981 $as_echo "$DF" >&6; } 12982 else 12983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12984 $as_echo "no" >&6; } 12985 fi 12986 12987 12988 test -n "$DF" && break 12989 done 12990 12991 else 12992 # The variable is set, but is it from the command line or the environment? 12993 12994 # Try to remove the string !DF! from our list. 12995 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/} 12996 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12997 # If it failed, the variable was not from the command line. Ignore it, 12998 # but warn the user (except for BASH, which is always set by the calling BASH). 12999 if test "xDF" != xBASH; then 13000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5 13001 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;} 13002 fi 13003 # Try to locate tool using the code snippet 13004 for ac_prog in df 13005 do 13006 # Extract the first word of "$ac_prog", so it can be a program name with args. 13007 set dummy $ac_prog; ac_word=$2 13008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13009 $as_echo_n "checking for $ac_word... " >&6; } 13010 if ${ac_cv_path_DF+:} false; then : 13011 $as_echo_n "(cached) " >&6 13012 else 13013 case $DF in 13014 [\\/]* | ?:[\\/]*) 13015 ac_cv_path_DF="$DF" # Let the user override the test with a path. 13016 ;; 13017 *) 13018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13019 for as_dir in $PATH 13020 do 13021 IFS=$as_save_IFS 13022 test -z "$as_dir" && as_dir=. 13023 for ac_exec_ext in '' $ac_executable_extensions; do 13024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13025 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 13026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13027 break 2 13028 fi 13029 done 13030 done 13031 IFS=$as_save_IFS 13032 13033 ;; 13034 esac 13035 fi 13036 DF=$ac_cv_path_DF 13037 if test -n "$DF"; then 13038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 13039 $as_echo "$DF" >&6; } 13040 else 13041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13042 $as_echo "no" >&6; } 13043 fi 13044 13045 13046 test -n "$DF" && break 13047 done 13048 13049 else 13050 # If it succeeded, then it was overridden by the user. We will use it 13051 # for the tool. 13052 13053 # First remove it from the list of overridden variables, so we can test 13054 # for unknown variables in the end. 13055 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13056 13057 # Check if the provided tool contains a complete path. 13058 tool_specified="$DF" 13059 tool_basename="${tool_specified##*/}" 13060 if test "x$tool_basename" = "x$tool_specified"; then 13061 # A command without a complete path is provided, search $PATH. 13062 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5 13063 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;} 13064 # Extract the first word of "$tool_basename", so it can be a program name with args. 13065 set dummy $tool_basename; ac_word=$2 13066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13067 $as_echo_n "checking for $ac_word... " >&6; } 13068 if ${ac_cv_path_DF+:} false; then : 13069 $as_echo_n "(cached) " >&6 13070 else 13071 case $DF in 13072 [\\/]* | ?:[\\/]*) 13073 ac_cv_path_DF="$DF" # Let the user override the test with a path. 13074 ;; 13075 *) 13076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13077 for as_dir in $PATH 13078 do 13079 IFS=$as_save_IFS 13080 test -z "$as_dir" && as_dir=. 13081 for ac_exec_ext in '' $ac_executable_extensions; do 13082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13083 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 13084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13085 break 2 13086 fi 13087 done 13088 done 13089 IFS=$as_save_IFS 13090 13091 ;; 13092 esac 13093 fi 13094 DF=$ac_cv_path_DF 13095 if test -n "$DF"; then 13096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 13097 $as_echo "$DF" >&6; } 13098 else 13099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13100 $as_echo "no" >&6; } 13101 fi 13102 13103 13104 if test "x$DF" = x; then 13105 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13106 fi 13107 else 13108 # Otherwise we believe it is a complete path. Use it as it is. 13109 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5 13110 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;} 13111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5 13112 $as_echo_n "checking for DF... " >&6; } 13113 if test ! -x "$tool_specified"; then 13114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13115 $as_echo "not found" >&6; } 13116 as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5 13117 fi 13118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13119 $as_echo "$tool_specified" >&6; } 13120 fi 13121 fi 13122 fi 13123 13124 13125 13126 13127 # Publish this variable in the help. 13128 13129 13130 if test "x$SETFILE" = x; then 13131 # The variable is not set by user, try to locate tool using the code snippet 13132 for ac_prog in SetFile 13133 do 13134 # Extract the first word of "$ac_prog", so it can be a program name with args. 13135 set dummy $ac_prog; ac_word=$2 13136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13137 $as_echo_n "checking for $ac_word... " >&6; } 13138 if ${ac_cv_path_SETFILE+:} false; then : 13139 $as_echo_n "(cached) " >&6 13140 else 13141 case $SETFILE in 13142 [\\/]* | ?:[\\/]*) 13143 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 13144 ;; 13145 *) 13146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13147 for as_dir in $PATH 13148 do 13149 IFS=$as_save_IFS 13150 test -z "$as_dir" && as_dir=. 13151 for ac_exec_ext in '' $ac_executable_extensions; do 13152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13153 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 13154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13155 break 2 13156 fi 13157 done 13158 done 13159 IFS=$as_save_IFS 13160 13161 ;; 13162 esac 13163 fi 13164 SETFILE=$ac_cv_path_SETFILE 13165 if test -n "$SETFILE"; then 13166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 13167 $as_echo "$SETFILE" >&6; } 13168 else 13169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13170 $as_echo "no" >&6; } 13171 fi 13172 13173 13174 test -n "$SETFILE" && break 13175 done 13176 13177 else 13178 # The variable is set, but is it from the command line or the environment? 13179 13180 # Try to remove the string !SETFILE! from our list. 13181 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/} 13182 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13183 # If it failed, the variable was not from the command line. Ignore it, 13184 # but warn the user (except for BASH, which is always set by the calling BASH). 13185 if test "xSETFILE" != xBASH; then 13186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5 13187 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;} 13188 fi 13189 # Try to locate tool using the code snippet 13190 for ac_prog in SetFile 13191 do 13192 # Extract the first word of "$ac_prog", so it can be a program name with args. 13193 set dummy $ac_prog; ac_word=$2 13194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13195 $as_echo_n "checking for $ac_word... " >&6; } 13196 if ${ac_cv_path_SETFILE+:} false; then : 13197 $as_echo_n "(cached) " >&6 13198 else 13199 case $SETFILE in 13200 [\\/]* | ?:[\\/]*) 13201 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 13202 ;; 13203 *) 13204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13205 for as_dir in $PATH 13206 do 13207 IFS=$as_save_IFS 13208 test -z "$as_dir" && as_dir=. 13209 for ac_exec_ext in '' $ac_executable_extensions; do 13210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13211 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 13212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13213 break 2 13214 fi 13215 done 13216 done 13217 IFS=$as_save_IFS 13218 13219 ;; 13220 esac 13221 fi 13222 SETFILE=$ac_cv_path_SETFILE 13223 if test -n "$SETFILE"; then 13224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 13225 $as_echo "$SETFILE" >&6; } 13226 else 13227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13228 $as_echo "no" >&6; } 13229 fi 13230 13231 13232 test -n "$SETFILE" && break 13233 done 13234 13235 else 13236 # If it succeeded, then it was overridden by the user. We will use it 13237 # for the tool. 13238 13239 # First remove it from the list of overridden variables, so we can test 13240 # for unknown variables in the end. 13241 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13242 13243 # Check if the provided tool contains a complete path. 13244 tool_specified="$SETFILE" 13245 tool_basename="${tool_specified##*/}" 13246 if test "x$tool_basename" = "x$tool_specified"; then 13247 # A command without a complete path is provided, search $PATH. 13248 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5 13249 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;} 13250 # Extract the first word of "$tool_basename", so it can be a program name with args. 13251 set dummy $tool_basename; ac_word=$2 13252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13253 $as_echo_n "checking for $ac_word... " >&6; } 13254 if ${ac_cv_path_SETFILE+:} false; then : 13255 $as_echo_n "(cached) " >&6 13256 else 13257 case $SETFILE in 13258 [\\/]* | ?:[\\/]*) 13259 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 13260 ;; 13261 *) 13262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13263 for as_dir in $PATH 13264 do 13265 IFS=$as_save_IFS 13266 test -z "$as_dir" && as_dir=. 13267 for ac_exec_ext in '' $ac_executable_extensions; do 13268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13269 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 13270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13271 break 2 13272 fi 13273 done 13274 done 13275 IFS=$as_save_IFS 13276 13277 ;; 13278 esac 13279 fi 13280 SETFILE=$ac_cv_path_SETFILE 13281 if test -n "$SETFILE"; then 13282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 13283 $as_echo "$SETFILE" >&6; } 13284 else 13285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13286 $as_echo "no" >&6; } 13287 fi 13288 13289 13290 if test "x$SETFILE" = x; then 13291 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13292 fi 13293 else 13294 # Otherwise we believe it is a complete path. Use it as it is. 13295 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5 13296 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;} 13297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5 13298 $as_echo_n "checking for SETFILE... " >&6; } 13299 if test ! -x "$tool_specified"; then 13300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13301 $as_echo "not found" >&6; } 13302 as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5 13303 fi 13304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13305 $as_echo "$tool_specified" >&6; } 13306 fi 13307 fi 13308 fi 13309 13310 13311 13312 13313 # Now we can determine OpenJDK build and target platforms. This is required to 13314 # have early on. 13315 # Make sure we can run config.sub. 13316 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 13317 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 13318 13319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 13320 $as_echo_n "checking build system type... " >&6; } 13321 if ${ac_cv_build+:} false; then : 13322 $as_echo_n "(cached) " >&6 13323 else 13324 ac_build_alias=$build_alias 13325 test "x$ac_build_alias" = x && 13326 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 13327 test "x$ac_build_alias" = x && 13328 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 13329 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 13330 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 13331 13332 fi 13333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 13334 $as_echo "$ac_cv_build" >&6; } 13335 case $ac_cv_build in 13336 *-*-*) ;; 13337 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 13338 esac 13339 build=$ac_cv_build 13340 ac_save_IFS=$IFS; IFS='-' 13341 set x $ac_cv_build 13342 shift 13343 build_cpu=$1 13344 build_vendor=$2 13345 shift; shift 13346 # Remember, the first character of IFS is used to create $*, 13347 # except with old shells: 13348 build_os=$* 13349 IFS=$ac_save_IFS 13350 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 13351 13352 13353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 13354 $as_echo_n "checking host system type... " >&6; } 13355 if ${ac_cv_host+:} false; then : 13356 $as_echo_n "(cached) " >&6 13357 else 13358 if test "x$host_alias" = x; then 13359 ac_cv_host=$ac_cv_build 13360 else 13361 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 13362 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 13363 fi 13364 13365 fi 13366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 13367 $as_echo "$ac_cv_host" >&6; } 13368 case $ac_cv_host in 13369 *-*-*) ;; 13370 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 13371 esac 13372 host=$ac_cv_host 13373 ac_save_IFS=$IFS; IFS='-' 13374 set x $ac_cv_host 13375 shift 13376 host_cpu=$1 13377 host_vendor=$2 13378 shift; shift 13379 # Remember, the first character of IFS is used to create $*, 13380 # except with old shells: 13381 host_os=$* 13382 IFS=$ac_save_IFS 13383 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 13384 13385 13386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 13387 $as_echo_n "checking target system type... " >&6; } 13388 if ${ac_cv_target+:} false; then : 13389 $as_echo_n "(cached) " >&6 13390 else 13391 if test "x$target_alias" = x; then 13392 ac_cv_target=$ac_cv_host 13393 else 13394 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 13395 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 13396 fi 13397 13398 fi 13399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 13400 $as_echo "$ac_cv_target" >&6; } 13401 case $ac_cv_target in 13402 *-*-*) ;; 13403 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 13404 esac 13405 target=$ac_cv_target 13406 ac_save_IFS=$IFS; IFS='-' 13407 set x $ac_cv_target 13408 shift 13409 target_cpu=$1 13410 target_vendor=$2 13411 shift; shift 13412 # Remember, the first character of IFS is used to create $*, 13413 # except with old shells: 13414 target_os=$* 13415 IFS=$ac_save_IFS 13416 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 13417 13418 13419 # The aliases save the names the user supplied, while $host etc. 13420 # will get canonicalized. 13421 test -n "$target_alias" && 13422 test "$program_prefix$program_suffix$program_transform_name" = \ 13423 NONENONEs,x,x, && 13424 program_prefix=${target_alias}- 13425 13426 # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target" 13427 # is confusing; it assumes you are cross-compiling a cross-compiler (!) and "target" is thus the target of the 13428 # product you're building. The target of this build is called "host". Since this is confusing to most people, we 13429 # have not adopted that system, but use "target" as the platform we are building for. In some places though we need 13430 # to use the configure naming style. 13431 13432 13433 13434 13435 13436 # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME 13437 # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME 13438 # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build, 13439 # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME. 13440 OPENJDK_TARGET_AUTOCONF_NAME="$host" 13441 OPENJDK_BUILD_AUTOCONF_NAME="$build" 13442 13443 13444 13445 # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables. 13446 13447 case "$build_os" in 13448 *linux*) 13449 VAR_OS=linux 13450 VAR_OS_API=posix 13451 VAR_OS_ENV=linux 13452 ;; 13453 *solaris*) 13454 VAR_OS=solaris 13455 VAR_OS_API=posix 13456 VAR_OS_ENV=solaris 13457 ;; 13458 *darwin*) 13459 VAR_OS=macosx 13460 VAR_OS_API=posix 13461 VAR_OS_ENV=macosx 13462 ;; 13463 *bsd*) 13464 VAR_OS=bsd 13465 VAR_OS_API=posix 13466 VAR_OS_ENV=bsd 13467 ;; 13468 *cygwin*) 13469 VAR_OS=windows 13470 VAR_OS_API=winapi 13471 VAR_OS_ENV=windows.cygwin 13472 ;; 13473 *mingw*) 13474 VAR_OS=windows 13475 VAR_OS_API=winapi 13476 VAR_OS_ENV=windows.msys 13477 ;; 13478 *aix*) 13479 VAR_OS=aix 13480 VAR_OS_API=posix 13481 VAR_OS_ENV=aix 13482 ;; 13483 *) 13484 as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5 13485 ;; 13486 esac 13487 13488 13489 # First argument is the cpu name from the trip/quad 13490 case "$build_cpu" in 13491 x86_64) 13492 VAR_CPU=x86_64 13493 VAR_CPU_ARCH=x86 13494 VAR_CPU_BITS=64 13495 VAR_CPU_ENDIAN=little 13496 ;; 13497 i?86) 13498 VAR_CPU=x86 13499 VAR_CPU_ARCH=x86 13500 VAR_CPU_BITS=32 13501 VAR_CPU_ENDIAN=little 13502 ;; 13503 arm*) 13504 VAR_CPU=arm 13505 VAR_CPU_ARCH=arm 13506 VAR_CPU_BITS=32 13507 VAR_CPU_ENDIAN=little 13508 ;; 13509 powerpc) 13510 VAR_CPU=ppc 13511 VAR_CPU_ARCH=ppc 13512 VAR_CPU_BITS=32 13513 VAR_CPU_ENDIAN=big 13514 ;; 13515 powerpc64) 13516 VAR_CPU=ppc64 13517 VAR_CPU_ARCH=ppc 13518 VAR_CPU_BITS=64 13519 VAR_CPU_ENDIAN=big 13520 ;; 13521 s390) 13522 VAR_CPU=s390 13523 VAR_CPU_ARCH=s390 13524 VAR_CPU_BITS=32 13525 VAR_CPU_ENDIAN=big 13526 ;; 13527 s390x) 13528 VAR_CPU=s390x 13529 VAR_CPU_ARCH=s390 13530 VAR_CPU_BITS=64 13531 VAR_CPU_ENDIAN=big 13532 ;; 13533 sparc) 13534 VAR_CPU=sparc 13535 VAR_CPU_ARCH=sparc 13536 VAR_CPU_BITS=32 13537 VAR_CPU_ENDIAN=big 13538 ;; 13539 sparcv9) 13540 VAR_CPU=sparcv9 13541 VAR_CPU_ARCH=sparc 13542 VAR_CPU_BITS=64 13543 VAR_CPU_ENDIAN=big 13544 ;; 13545 *) 13546 as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5 13547 ;; 13548 esac 13549 13550 # ..and setup our own variables. (Do this explicitely to facilitate searching) 13551 OPENJDK_BUILD_OS="$VAR_OS" 13552 OPENJDK_BUILD_OS_API="$VAR_OS_API" 13553 OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV" 13554 OPENJDK_BUILD_CPU="$VAR_CPU" 13555 OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH" 13556 OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS" 13557 OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN" 13558 13559 13560 13561 13562 13563 13564 13565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5 13566 $as_echo_n "checking openjdk-build os-cpu... " >&6; } 13567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5 13568 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; } 13569 13570 # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables. 13571 13572 case "$host_os" in 13573 *linux*) 13574 VAR_OS=linux 13575 VAR_OS_API=posix 13576 VAR_OS_ENV=linux 13577 ;; 13578 *solaris*) 13579 VAR_OS=solaris 13580 VAR_OS_API=posix 13581 VAR_OS_ENV=solaris 13582 ;; 13583 *darwin*) 13584 VAR_OS=macosx 13585 VAR_OS_API=posix 13586 VAR_OS_ENV=macosx 13587 ;; 13588 *bsd*) 13589 VAR_OS=bsd 13590 VAR_OS_API=posix 13591 VAR_OS_ENV=bsd 13592 ;; 13593 *cygwin*) 13594 VAR_OS=windows 13595 VAR_OS_API=winapi 13596 VAR_OS_ENV=windows.cygwin 13597 ;; 13598 *mingw*) 13599 VAR_OS=windows 13600 VAR_OS_API=winapi 13601 VAR_OS_ENV=windows.msys 13602 ;; 13603 *aix*) 13604 VAR_OS=aix 13605 VAR_OS_API=posix 13606 VAR_OS_ENV=aix 13607 ;; 13608 *) 13609 as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5 13610 ;; 13611 esac 13612 13613 13614 # First argument is the cpu name from the trip/quad 13615 case "$host_cpu" in 13616 x86_64) 13617 VAR_CPU=x86_64 13618 VAR_CPU_ARCH=x86 13619 VAR_CPU_BITS=64 13620 VAR_CPU_ENDIAN=little 13621 ;; 13622 i?86) 13623 VAR_CPU=x86 13624 VAR_CPU_ARCH=x86 13625 VAR_CPU_BITS=32 13626 VAR_CPU_ENDIAN=little 13627 ;; 13628 arm*) 13629 VAR_CPU=arm 13630 VAR_CPU_ARCH=arm 13631 VAR_CPU_BITS=32 13632 VAR_CPU_ENDIAN=little 13633 ;; 13634 powerpc) 13635 VAR_CPU=ppc 13636 VAR_CPU_ARCH=ppc 13637 VAR_CPU_BITS=32 13638 VAR_CPU_ENDIAN=big 13639 ;; 13640 powerpc64) 13641 VAR_CPU=ppc64 13642 VAR_CPU_ARCH=ppc 13643 VAR_CPU_BITS=64 13644 VAR_CPU_ENDIAN=big 13645 ;; 13646 s390) 13647 VAR_CPU=s390 13648 VAR_CPU_ARCH=s390 13649 VAR_CPU_BITS=32 13650 VAR_CPU_ENDIAN=big 13651 ;; 13652 s390x) 13653 VAR_CPU=s390x 13654 VAR_CPU_ARCH=s390 13655 VAR_CPU_BITS=64 13656 VAR_CPU_ENDIAN=big 13657 ;; 13658 sparc) 13659 VAR_CPU=sparc 13660 VAR_CPU_ARCH=sparc 13661 VAR_CPU_BITS=32 13662 VAR_CPU_ENDIAN=big 13663 ;; 13664 sparcv9) 13665 VAR_CPU=sparcv9 13666 VAR_CPU_ARCH=sparc 13667 VAR_CPU_BITS=64 13668 VAR_CPU_ENDIAN=big 13669 ;; 13670 *) 13671 as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5 13672 ;; 13673 esac 13674 13675 # ... and setup our own variables. (Do this explicitely to facilitate searching) 13676 OPENJDK_TARGET_OS="$VAR_OS" 13677 OPENJDK_TARGET_OS_API="$VAR_OS_API" 13678 OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV" 13679 OPENJDK_TARGET_CPU="$VAR_CPU" 13680 OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH" 13681 OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS" 13682 OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN" 13683 13684 13685 13686 13687 13688 13689 13690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5 13691 $as_echo_n "checking openjdk-target os-cpu... " >&6; } 13692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5 13693 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; } 13694 13695 13696 13697 # Check whether --with-target-bits was given. 13698 if test "${with_target_bits+set}" = set; then : 13699 withval=$with_target_bits; 13700 fi 13701 13702 13703 # We have three types of compiles: 13704 # native == normal compilation, target system == build system 13705 # cross == traditional cross compilation, target system != build system; special toolchain needed 13706 # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines 13707 # 13708 if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then 13709 # We're doing a proper cross-compilation 13710 COMPILE_TYPE="cross" 13711 else 13712 COMPILE_TYPE="native" 13713 fi 13714 13715 if test "x$with_target_bits" != x; then 13716 if test "x$COMPILE_TYPE" = "xcross"; then 13717 as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5 13718 fi 13719 13720 if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 13721 # A reduced build is requested 13722 COMPILE_TYPE="reduced" 13723 OPENJDK_TARGET_CPU_BITS=32 13724 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then 13725 OPENJDK_TARGET_CPU=x86 13726 elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 13727 OPENJDK_TARGET_CPU=sparc 13728 else 13729 as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5 13730 fi 13731 elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 13732 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 13733 elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then 13734 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5 13735 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;} 13736 else 13737 as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5 13738 fi 13739 fi 13740 13741 13742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5 13743 $as_echo_n "checking compilation type... " >&6; } 13744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5 13745 $as_echo "$COMPILE_TYPE" >&6; } 13746 13747 13748 if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then 13749 REQUIRED_OS_NAME=SunOS 13750 REQUIRED_OS_VERSION=5.10 13751 fi 13752 if test "x$OPENJDK_TARGET_OS" = "xlinux"; then 13753 REQUIRED_OS_NAME=Linux 13754 REQUIRED_OS_VERSION=2.6 13755 fi 13756 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 13757 REQUIRED_OS_NAME=Windows 13758 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then 13759 REQUIRED_OS_VERSION=5.2 13760 else 13761 REQUIRED_OS_VERSION=5.1 13762 fi 13763 fi 13764 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 13765 REQUIRED_OS_NAME=Darwin 13766 REQUIRED_OS_VERSION=11.2 13767 fi 13768 13769 13770 13771 13772 13773 # Also store the legacy naming of the cpu. 13774 # Ie i586 and amd64 instead of x86 and x86_64 13775 OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU" 13776 if test "x$OPENJDK_TARGET_CPU" = xx86; then 13777 OPENJDK_TARGET_CPU_LEGACY="i586" 13778 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13779 # On all platforms except MacOSX replace x86_64 with amd64. 13780 OPENJDK_TARGET_CPU_LEGACY="amd64" 13781 fi 13782 13783 13784 # And the second legacy naming of the cpu. 13785 # Ie i386 and amd64 instead of x86 and x86_64. 13786 OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU" 13787 if test "x$OPENJDK_TARGET_CPU" = xx86; then 13788 OPENJDK_TARGET_CPU_LEGACY_LIB="i386" 13789 elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13790 OPENJDK_TARGET_CPU_LEGACY_LIB="amd64" 13791 fi 13792 13793 13794 # This is the name of the cpu (but using i386 and amd64 instead of 13795 # x86 and x86_64, respectively), preceeded by a /, to be used when 13796 # locating libraries. On macosx, it's empty, though. 13797 OPENJDK_TARGET_CPU_LIBDIR="/$OPENJDK_TARGET_CPU_LEGACY_LIB" 13798 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 13799 OPENJDK_TARGET_CPU_LIBDIR="" 13800 fi 13801 13802 13803 # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to 13804 # /amd64 or /sparcv9. This string is appended to some library paths, like this: 13805 # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so 13806 OPENJDK_TARGET_CPU_ISADIR="" 13807 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 13808 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13809 OPENJDK_TARGET_CPU_ISADIR="/amd64" 13810 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 13811 OPENJDK_TARGET_CPU_ISADIR="/sparcv9" 13812 fi 13813 fi 13814 13815 13816 # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property 13817 OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU" 13818 if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then 13819 # On linux only, we replace x86 with i386. 13820 OPENJDK_TARGET_CPU_OSARCH="i386" 13821 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13822 # On all platforms except macosx, we replace x86_64 with amd64. 13823 OPENJDK_TARGET_CPU_OSARCH="amd64" 13824 fi 13825 13826 13827 OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU" 13828 if test "x$OPENJDK_TARGET_CPU" = xx86; then 13829 OPENJDK_TARGET_CPU_JLI="i386" 13830 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13831 # On all platforms except macosx, we replace x86_64 with amd64. 13832 OPENJDK_TARGET_CPU_JLI="amd64" 13833 fi 13834 # Now setup the -D flags for building libjli. 13835 OPENJDK_TARGET_CPU_JLI_CFLAGS="-DLIBARCHNAME='\"$OPENJDK_TARGET_CPU_JLI\"'" 13836 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 13837 if test "x$OPENJDK_TARGET_CPU_ARCH" = xsparc; then 13838 OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"sparc\"' -DLIBARCH64NAME='\"sparcv9\"'" 13839 elif test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then 13840 OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"i386\"' -DLIBARCH64NAME='\"amd64\"'" 13841 fi 13842 fi 13843 13844 13845 # Setup OPENJDK_TARGET_OS_API_DIR, used in source paths. 13846 if test "x$OPENJDK_TARGET_OS_API" = xposix; then 13847 OPENJDK_TARGET_OS_API_DIR="solaris" 13848 fi 13849 if test "x$OPENJDK_TARGET_OS_API" = xwinapi; then 13850 OPENJDK_TARGET_OS_API_DIR="windows" 13851 fi 13852 13853 13854 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 13855 OPENJDK_TARGET_OS_EXPORT_DIR=macosx 13856 else 13857 OPENJDK_TARGET_OS_EXPORT_DIR=${OPENJDK_TARGET_OS_API_DIR} 13858 fi 13859 13860 13861 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 13862 A_LP64="LP64:=" 13863 # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in 13864 # unpack200.exe 13865 if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then 13866 ADD_LP64="-D_LP64=1" 13867 fi 13868 fi 13869 LP64=$A_LP64 13870 13871 13872 if test "x$COMPILE_TYPE" = "xcross"; then 13873 # FIXME: ... or should this include reduced builds..? 13874 DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY" 13875 else 13876 DEFINE_CROSS_COMPILE_ARCH="" 13877 fi 13878 13879 13880 # ZERO_ARCHDEF is used to enable architecture-specific code 13881 case "${OPENJDK_TARGET_CPU}" in 13882 ppc*) ZERO_ARCHDEF=PPC ;; 13883 s390*) ZERO_ARCHDEF=S390 ;; 13884 sparc*) ZERO_ARCHDEF=SPARC ;; 13885 x86_64*) ZERO_ARCHDEF=AMD64 ;; 13886 x86) ZERO_ARCHDEF=IA32 ;; 13887 *) ZERO_ARCHDEF=$(echo "${OPENJDK_TARGET_CPU_LEGACY_LIB}" | tr a-z A-Z) 13888 esac 13889 13890 13891 13892 13893 # Continue setting up basic stuff. Most remaining code require fundamental tools. 13894 13895 # Save the current directory this script was started from 13896 CURDIR="$PWD" 13897 13898 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 13899 PATH_SEP=";" 13900 13901 SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m` 13902 if test $SRC_ROOT_LENGTH -gt 100; then 13903 as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5 13904 fi 13905 13906 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 13907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5 13908 $as_echo_n "checking cygwin release... " >&6; } 13909 CYGWIN_VERSION=`$UNAME -r` 13910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5 13911 $as_echo "$CYGWIN_VERSION" >&6; } 13912 WINDOWS_ENV_VENDOR='cygwin' 13913 WINDOWS_ENV_VERSION="$CYGWIN_VERSION" 13914 13915 CYGWIN_VERSION_OK=`$ECHO $CYGWIN_VERSION | $GREP ^1.7.` 13916 if test "x$CYGWIN_VERSION_OK" = x; then 13917 { $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 13918 $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;} 13919 as_fn_error $? "Cannot continue" "$LINENO" 5 13920 fi 13921 if test "x$CYGPATH" = x; then 13922 as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5 13923 fi 13924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5 13925 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; } 13926 # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away 13927 cygwin_winpath_root=`cd / ; cmd /c cd | grep ".*"` 13928 # Force cygpath to report the proper root by including a trailing space, and then stripping it off again. 13929 CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "` 13930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5 13931 $as_echo "$CYGWIN_ROOT_PATH" >&6; } 13932 WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH" 13933 test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/` 13934 if test "x$test_cygdrive_prefix" = x; then 13935 as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5 13936 fi 13937 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 13938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5 13939 $as_echo_n "checking msys release... " >&6; } 13940 MSYS_VERSION=`$UNAME -r` 13941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5 13942 $as_echo "$MSYS_VERSION" >&6; } 13943 13944 WINDOWS_ENV_VENDOR='msys' 13945 WINDOWS_ENV_VERSION="$MSYS_VERSION" 13946 13947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5 13948 $as_echo_n "checking msys root directory as unix-style path... " >&6; } 13949 # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away 13950 MSYS_ROOT_PATH=`cd / ; cmd /c cd | grep ".*"` 13951 13952 windows_path="$MSYS_ROOT_PATH" 13953 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 13954 unix_path=`$CYGPATH -u "$windows_path"` 13955 MSYS_ROOT_PATH="$unix_path" 13956 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 13957 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 13958 MSYS_ROOT_PATH="$unix_path" 13959 fi 13960 13961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5 13962 $as_echo "$MSYS_ROOT_PATH" >&6; } 13963 WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH" 13964 else 13965 as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5 13966 fi 13967 13968 # Test if windows or unix (cygwin/msys) find is first in path. 13969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5 13970 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; } 13971 FIND_BINARY_OUTPUT=`find --version 2>&1` 13972 if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then 13973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5 13974 $as_echo "unix style" >&6; } 13975 elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then 13976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5 13977 $as_echo "Windows" >&6; } 13978 { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5 13979 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;} 13980 { $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 13981 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;} 13982 as_fn_error $? "Cannot continue" "$LINENO" 5 13983 else 13984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 13985 $as_echo "unknown" >&6; } 13986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5 13987 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;} 13988 fi 13989 13990 else 13991 PATH_SEP=":" 13992 fi 13993 13994 13995 # We get the top-level directory from the supporting wrappers. 13996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for top-level directory" >&5 13997 $as_echo_n "checking for top-level directory... " >&6; } 13998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5 13999 $as_echo "$TOPDIR" >&6; } 14000 14001 14002 # We can only call BASIC_FIXUP_PATH after BASIC_CHECK_PATHS_WINDOWS. 14003 14004 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14005 14006 # Input might be given as Windows format, start by converting to 14007 # unix format. 14008 path="$CURDIR" 14009 new_path=`$CYGPATH -u "$path"` 14010 14011 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 14012 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 14013 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 14014 # "foo.exe" is OK but "foo" is an error. 14015 # 14016 # This test is therefore slightly more accurate than "test -f" to check for file precense. 14017 # It is also a way to make sure we got the proper file name for the real test later on. 14018 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 14019 if test "x$test_shortpath" = x; then 14020 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5 14021 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;} 14022 as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5 14023 fi 14024 14025 # Call helper function which possibly converts this using DOS-style short mode. 14026 # If so, the updated path is stored in $new_path. 14027 14028 input_path="$new_path" 14029 # Check if we need to convert this using DOS-style short mode. If the path 14030 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14031 # take no chances and rewrite it. 14032 # Note: m4 eats our [], so we need to use [ and ] instead. 14033 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 14034 if test "x$has_forbidden_chars" != x; then 14035 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14036 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 14037 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 14038 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 14039 # Going to short mode and back again did indeed matter. Since short mode is 14040 # case insensitive, let's make it lowercase to improve readability. 14041 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14042 # Now convert it back to Unix-stile (cygpath) 14043 input_path=`$CYGPATH -u "$shortmode_path"` 14044 new_path="$input_path" 14045 fi 14046 fi 14047 14048 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 14049 if test "x$test_cygdrive_prefix" = x; then 14050 # As a simple fix, exclude /usr/bin since it's not a real path. 14051 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 14052 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 14053 # a path prefixed by /cygdrive for fixpath to work. 14054 new_path="$CYGWIN_ROOT_PATH$input_path" 14055 fi 14056 fi 14057 14058 14059 if test "x$path" != "x$new_path"; then 14060 CURDIR="$new_path" 14061 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5 14062 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;} 14063 fi 14064 14065 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14066 14067 path="$CURDIR" 14068 has_colon=`$ECHO $path | $GREP ^.:` 14069 new_path="$path" 14070 if test "x$has_colon" = x; then 14071 # Not in mixed or Windows style, start by that. 14072 new_path=`cmd //c echo $path` 14073 fi 14074 14075 14076 input_path="$new_path" 14077 # Check if we need to convert this using DOS-style short mode. If the path 14078 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14079 # take no chances and rewrite it. 14080 # Note: m4 eats our [], so we need to use [ and ] instead. 14081 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 14082 if test "x$has_forbidden_chars" != x; then 14083 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14084 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14085 fi 14086 14087 14088 windows_path="$new_path" 14089 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14090 unix_path=`$CYGPATH -u "$windows_path"` 14091 new_path="$unix_path" 14092 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14093 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14094 new_path="$unix_path" 14095 fi 14096 14097 if test "x$path" != "x$new_path"; then 14098 CURDIR="$new_path" 14099 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5 14100 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;} 14101 fi 14102 14103 # Save the first 10 bytes of this path to the storage, so fixpath can work. 14104 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 14105 14106 else 14107 # We're on a posix platform. Hooray! :) 14108 path="$CURDIR" 14109 has_space=`$ECHO "$path" | $GREP " "` 14110 if test "x$has_space" != x; then 14111 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5 14112 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;} 14113 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 14114 fi 14115 14116 # Use eval to expand a potential ~ 14117 eval path="$path" 14118 if test ! -f "$path" && test ! -d "$path"; then 14119 as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5 14120 fi 14121 14122 CURDIR="`cd "$path"; $THEPWDCMD -L`" 14123 fi 14124 14125 14126 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14127 14128 # Input might be given as Windows format, start by converting to 14129 # unix format. 14130 path="$TOPDIR" 14131 new_path=`$CYGPATH -u "$path"` 14132 14133 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 14134 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 14135 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 14136 # "foo.exe" is OK but "foo" is an error. 14137 # 14138 # This test is therefore slightly more accurate than "test -f" to check for file precense. 14139 # It is also a way to make sure we got the proper file name for the real test later on. 14140 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 14141 if test "x$test_shortpath" = x; then 14142 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5 14143 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;} 14144 as_fn_error $? "Cannot locate the the path of TOPDIR" "$LINENO" 5 14145 fi 14146 14147 # Call helper function which possibly converts this using DOS-style short mode. 14148 # If so, the updated path is stored in $new_path. 14149 14150 input_path="$new_path" 14151 # Check if we need to convert this using DOS-style short mode. If the path 14152 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14153 # take no chances and rewrite it. 14154 # Note: m4 eats our [], so we need to use [ and ] instead. 14155 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 14156 if test "x$has_forbidden_chars" != x; then 14157 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14158 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 14159 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 14160 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 14161 # Going to short mode and back again did indeed matter. Since short mode is 14162 # case insensitive, let's make it lowercase to improve readability. 14163 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14164 # Now convert it back to Unix-stile (cygpath) 14165 input_path=`$CYGPATH -u "$shortmode_path"` 14166 new_path="$input_path" 14167 fi 14168 fi 14169 14170 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 14171 if test "x$test_cygdrive_prefix" = x; then 14172 # As a simple fix, exclude /usr/bin since it's not a real path. 14173 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 14174 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 14175 # a path prefixed by /cygdrive for fixpath to work. 14176 new_path="$CYGWIN_ROOT_PATH$input_path" 14177 fi 14178 fi 14179 14180 14181 if test "x$path" != "x$new_path"; then 14182 TOPDIR="$new_path" 14183 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5 14184 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;} 14185 fi 14186 14187 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14188 14189 path="$TOPDIR" 14190 has_colon=`$ECHO $path | $GREP ^.:` 14191 new_path="$path" 14192 if test "x$has_colon" = x; then 14193 # Not in mixed or Windows style, start by that. 14194 new_path=`cmd //c echo $path` 14195 fi 14196 14197 14198 input_path="$new_path" 14199 # Check if we need to convert this using DOS-style short mode. If the path 14200 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14201 # take no chances and rewrite it. 14202 # Note: m4 eats our [], so we need to use [ and ] instead. 14203 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 14204 if test "x$has_forbidden_chars" != x; then 14205 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14206 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14207 fi 14208 14209 14210 windows_path="$new_path" 14211 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14212 unix_path=`$CYGPATH -u "$windows_path"` 14213 new_path="$unix_path" 14214 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14215 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14216 new_path="$unix_path" 14217 fi 14218 14219 if test "x$path" != "x$new_path"; then 14220 TOPDIR="$new_path" 14221 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5 14222 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;} 14223 fi 14224 14225 # Save the first 10 bytes of this path to the storage, so fixpath can work. 14226 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 14227 14228 else 14229 # We're on a posix platform. Hooray! :) 14230 path="$TOPDIR" 14231 has_space=`$ECHO "$path" | $GREP " "` 14232 if test "x$has_space" != x; then 14233 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5 14234 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;} 14235 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 14236 fi 14237 14238 # Use eval to expand a potential ~ 14239 eval path="$path" 14240 if test ! -f "$path" && test ! -d "$path"; then 14241 as_fn_error $? "The path of TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5 14242 fi 14243 14244 TOPDIR="`cd "$path"; $THEPWDCMD -L`" 14245 fi 14246 14247 # SRC_ROOT is a traditional alias for TOPDIR. 14248 SRC_ROOT=$TOPDIR 14249 14250 # Locate the directory of this script. 14251 AUTOCONF_DIR=$TOPDIR/common/autoconf 14252 14253 14254 # Setup default logging of stdout and stderr to build.log in the output root. 14255 BUILD_LOG='$(OUTPUT_ROOT)/build.log' 14256 BUILD_LOG_PREVIOUS='$(OUTPUT_ROOT)/build.log.old' 14257 BUILD_LOG_WRAPPER='$(BASH) $(SRC_ROOT)/common/bin/logger.sh $(BUILD_LOG)' 14258 14259 14260 14261 14262 14263 # Check if it's a pure open build or if custom sources are to be used. 14264 14265 # Check whether --enable-openjdk-only was given. 14266 if test "${enable_openjdk_only+set}" = set; then : 14267 enableval=$enable_openjdk_only; 14268 else 14269 enable_openjdk_only="no" 14270 fi 14271 14272 14273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of closed sources" >&5 14274 $as_echo_n "checking for presence of closed sources... " >&6; } 14275 if test -d "$SRC_ROOT/jdk/src/closed"; then 14276 CLOSED_SOURCE_PRESENT=yes 14277 else 14278 CLOSED_SOURCE_PRESENT=no 14279 fi 14280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLOSED_SOURCE_PRESENT" >&5 14281 $as_echo "$CLOSED_SOURCE_PRESENT" >&6; } 14282 14283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closed source is suppressed (openjdk-only)" >&5 14284 $as_echo_n "checking if closed source is suppressed (openjdk-only)... " >&6; } 14285 SUPPRESS_CLOSED_SOURCE="$enable_openjdk_only" 14286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SUPPRESS_CLOSED_SOURCE" >&5 14287 $as_echo "$SUPPRESS_CLOSED_SOURCE" >&6; } 14288 14289 if test "x$CLOSED_SOURCE_PRESENT" = xno; then 14290 OPENJDK=true 14291 if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then 14292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&5 14293 $as_echo "$as_me: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&2;} 14294 fi 14295 else 14296 if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then 14297 OPENJDK=true 14298 else 14299 OPENJDK=false 14300 fi 14301 fi 14302 14303 if test "x$OPENJDK" = "xtrue"; then 14304 SET_OPENJDK="OPENJDK=true" 14305 fi 14306 14307 14308 14309 # custom-make-dir is deprecated. Please use your custom-hook.m4 to override 14310 # the IncludeCustomExtension macro. 14311 14312 14313 # Check whether --with-custom-make-dir was given. 14314 if test "${with_custom_make_dir+set}" = set; then : 14315 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 14316 $as_echo "$as_me: WARNING: Option --with-custom-make-dir is deprecated and will be ignored." >&2;} 14317 fi 14318 14319 14320 14321 14322 # These are needed to be able to create a configuration name (and thus the output directory) 14323 14324 ############################################################################### 14325 # 14326 # Check which variant of the JDK that we want to build. 14327 # Currently we have: 14328 # normal: standard edition 14329 # but the custom make system may add other variants 14330 # 14331 # Effectively the JDK variant gives a name to a specific set of 14332 # modules to compile into the JDK. In the future, these modules 14333 # might even be Jigsaw modules. 14334 # 14335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5 14336 $as_echo_n "checking which variant of the JDK to build... " >&6; } 14337 14338 # Check whether --with-jdk-variant was given. 14339 if test "${with_jdk_variant+set}" = set; then : 14340 withval=$with_jdk_variant; 14341 fi 14342 14343 14344 if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then 14345 JDK_VARIANT="normal" 14346 else 14347 as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5 14348 fi 14349 14350 14351 14352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5 14353 $as_echo "$JDK_VARIANT" >&6; } 14354 14355 14356 ############################################################################### 14357 # 14358 # Check which interpreter of the JVM we want to build. 14359 # Currently we have: 14360 # template: Template interpreter (the default) 14361 # cpp : C++ interpreter 14362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which interpreter of the JVM to build" >&5 14363 $as_echo_n "checking which interpreter of the JVM to build... " >&6; } 14364 14365 # Check whether --with-jvm-interpreter was given. 14366 if test "${with_jvm_interpreter+set}" = set; then : 14367 withval=$with_jvm_interpreter; 14368 fi 14369 14370 14371 if test "x$with_jvm_interpreter" = x; then 14372 with_jvm_interpreter="template" 14373 fi 14374 14375 JVM_INTERPRETER="$with_jvm_interpreter" 14376 14377 if test "x$JVM_INTERPRETER" != xtemplate && test "x$JVM_INTERPRETER" != xcpp; then 14378 as_fn_error $? "The available JVM interpreters are: template, cpp" "$LINENO" 5 14379 fi 14380 14381 14382 14383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_interpreter" >&5 14384 $as_echo "$with_jvm_interpreter" >&6; } 14385 14386 14387 14388 ############################################################################### 14389 # 14390 # Check which variants of the JVM that we want to build. 14391 # Currently we have: 14392 # server: normal interpreter and a tiered C1/C2 compiler 14393 # client: normal interpreter and C1 (no C2 compiler) (only 32-bit platforms) 14394 # minimal1: reduced form of client with optional VM services and features stripped out 14395 # kernel: kernel footprint JVM that passes the TCK without major performance problems, 14396 # ie normal interpreter and C1, only the serial GC, kernel jvmti etc 14397 # zero: no machine code interpreter, no compiler 14398 # zeroshark: zero interpreter and shark/llvm compiler backend 14399 # core: interpreter only, no compiler (only works on some platforms) 14400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5 14401 $as_echo_n "checking which variants of the JVM to build... " >&6; } 14402 14403 # Check whether --with-jvm-variants was given. 14404 if test "${with_jvm_variants+set}" = set; then : 14405 withval=$with_jvm_variants; 14406 fi 14407 14408 14409 if test "x$with_jvm_variants" = x; then 14410 with_jvm_variants="server" 14411 fi 14412 14413 JVM_VARIANTS=",$with_jvm_variants," 14414 TEST_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/server,//' -e 's/client,//' -e 's/minimal1,//' -e 's/kernel,//' -e 's/zero,//' -e 's/zeroshark,//' -e 's/core,//'` 14415 14416 if test "x$TEST_VARIANTS" != "x,"; then 14417 as_fn_error $? "The available JVM variants are: server, client, minimal1, kernel, zero, zeroshark, core" "$LINENO" 5 14418 fi 14419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_variants" >&5 14420 $as_echo "$with_jvm_variants" >&6; } 14421 14422 JVM_VARIANT_SERVER=`$ECHO "$JVM_VARIANTS" | $SED -e '/,server,/!s/.*/false/g' -e '/,server,/s/.*/true/g'` 14423 JVM_VARIANT_CLIENT=`$ECHO "$JVM_VARIANTS" | $SED -e '/,client,/!s/.*/false/g' -e '/,client,/s/.*/true/g'` 14424 JVM_VARIANT_MINIMAL1=`$ECHO "$JVM_VARIANTS" | $SED -e '/,minimal1,/!s/.*/false/g' -e '/,minimal1,/s/.*/true/g'` 14425 JVM_VARIANT_KERNEL=`$ECHO "$JVM_VARIANTS" | $SED -e '/,kernel,/!s/.*/false/g' -e '/,kernel,/s/.*/true/g'` 14426 JVM_VARIANT_ZERO=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zero,/!s/.*/false/g' -e '/,zero,/s/.*/true/g'` 14427 JVM_VARIANT_ZEROSHARK=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zeroshark,/!s/.*/false/g' -e '/,zeroshark,/s/.*/true/g'` 14428 JVM_VARIANT_CORE=`$ECHO "$JVM_VARIANTS" | $SED -e '/,core,/!s/.*/false/g' -e '/,core,/s/.*/true/g'` 14429 14430 if test "x$JVM_VARIANT_CLIENT" = xtrue; then 14431 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 14432 as_fn_error $? "You cannot build a client JVM for a 64-bit machine." "$LINENO" 5 14433 fi 14434 fi 14435 if test "x$JVM_VARIANT_KERNEL" = xtrue; then 14436 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 14437 as_fn_error $? "You cannot build a kernel JVM for a 64-bit machine." "$LINENO" 5 14438 fi 14439 fi 14440 if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then 14441 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 14442 as_fn_error $? "You cannot build a minimal JVM for a 64-bit machine." "$LINENO" 5 14443 fi 14444 fi 14445 14446 # Replace the commas with AND for use in the build directory name. 14447 ANDED_JVM_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/^,//' -e 's/,$//' -e 's/,/AND/g'` 14448 COUNT_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/server,/1/' -e 's/client,/1/' -e 's/minimal1,/1/' -e 's/kernel,/1/' -e 's/zero,/1/' -e 's/zeroshark,/1/' -e 's/core,/1/'` 14449 if test "x$COUNT_VARIANTS" != "x,1"; then 14450 BUILDING_MULTIPLE_JVM_VARIANTS=yes 14451 else 14452 BUILDING_MULTIPLE_JVM_VARIANTS=no 14453 fi 14454 14455 14456 14457 14458 14459 14460 14461 14462 14463 14464 INCLUDE_SA=true 14465 if test "x$JVM_VARIANT_ZERO" = xtrue ; then 14466 INCLUDE_SA=false 14467 fi 14468 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue ; then 14469 INCLUDE_SA=false 14470 fi 14471 if test "x$VAR_CPU" = xppc64 ; then 14472 INCLUDE_SA=false 14473 fi 14474 14475 14476 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 14477 MACOSX_UNIVERSAL="true" 14478 fi 14479 14480 14481 14482 14483 ############################################################################### 14484 # 14485 # Set the debug level 14486 # release: no debug information, all optimizations, no asserts. 14487 # optimized: no debug information, all optimizations, no asserts, HotSpot target is 'optimized'. 14488 # fastdebug: debug information (-g), all optimizations, all asserts 14489 # slowdebug: debug information (-g), no optimizations, all asserts 14490 # 14491 DEBUG_LEVEL="release" 14492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5 14493 $as_echo_n "checking which debug level to use... " >&6; } 14494 # Check whether --enable-debug was given. 14495 if test "${enable_debug+set}" = set; then : 14496 enableval=$enable_debug; 14497 ENABLE_DEBUG="${enableval}" 14498 DEBUG_LEVEL="fastdebug" 14499 14500 else 14501 ENABLE_DEBUG="no" 14502 fi 14503 14504 14505 14506 # Check whether --with-debug-level was given. 14507 if test "${with_debug_level+set}" = set; then : 14508 withval=$with_debug_level; 14509 DEBUG_LEVEL="${withval}" 14510 if test "x$ENABLE_DEBUG" = xyes; then 14511 as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5 14512 fi 14513 14514 fi 14515 14516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5 14517 $as_echo "$DEBUG_LEVEL" >&6; } 14518 14519 if test "x$DEBUG_LEVEL" != xrelease && \ 14520 test "x$DEBUG_LEVEL" != xoptimized && \ 14521 test "x$DEBUG_LEVEL" != xfastdebug && \ 14522 test "x$DEBUG_LEVEL" != xslowdebug; then 14523 as_fn_error $? "Allowed debug levels are: release, fastdebug and slowdebug" "$LINENO" 5 14524 fi 14525 14526 14527 ############################################################################### 14528 # 14529 # Setup legacy vars/targets and new vars to deal with different debug levels. 14530 # 14531 14532 case $DEBUG_LEVEL in 14533 release ) 14534 VARIANT="OPT" 14535 FASTDEBUG="false" 14536 DEBUG_CLASSFILES="false" 14537 BUILD_VARIANT_RELEASE="" 14538 HOTSPOT_DEBUG_LEVEL="product" 14539 HOTSPOT_EXPORT="product" 14540 ;; 14541 fastdebug ) 14542 VARIANT="DBG" 14543 FASTDEBUG="true" 14544 DEBUG_CLASSFILES="true" 14545 BUILD_VARIANT_RELEASE="-fastdebug" 14546 HOTSPOT_DEBUG_LEVEL="fastdebug" 14547 HOTSPOT_EXPORT="fastdebug" 14548 ;; 14549 slowdebug ) 14550 VARIANT="DBG" 14551 FASTDEBUG="false" 14552 DEBUG_CLASSFILES="true" 14553 BUILD_VARIANT_RELEASE="-debug" 14554 HOTSPOT_DEBUG_LEVEL="jvmg" 14555 HOTSPOT_EXPORT="debug" 14556 ;; 14557 optimized ) 14558 VARIANT="OPT" 14559 FASTDEBUG="false" 14560 DEBUG_CLASSFILES="false" 14561 BUILD_VARIANT_RELEASE="-optimized" 14562 HOTSPOT_DEBUG_LEVEL="optimized" 14563 HOTSPOT_EXPORT="optimized" 14564 ;; 14565 esac 14566 14567 # The debug level 'optimized' is a little special because it is currently only 14568 # applicable to the HotSpot build where it means to build a completely 14569 # optimized version of the VM without any debugging code (like for the 14570 # 'release' debug level which is called 'product' in the HotSpot build) but 14571 # with the exception that it can contain additional code which is otherwise 14572 # protected by '#ifndef PRODUCT' macros. These 'optimized' builds are used to 14573 # test new and/or experimental features which are not intended for customer 14574 # shipment. Because these new features need to be tested and benchmarked in 14575 # real world scenarios, we want to build the containing JDK at the 'release' 14576 # debug level. 14577 if test "x$DEBUG_LEVEL" = xoptimized; then 14578 DEBUG_LEVEL="release" 14579 fi 14580 14581 ##### 14582 # Generate the legacy makefile targets for hotspot. 14583 # The hotspot api for selecting the build artifacts, really, needs to be improved. 14584 # JDK-7195896 will fix this on the hotspot side by using the JVM_VARIANT_* variables to 14585 # determine what needs to be built. All we will need to set here is all_product, all_fastdebug etc 14586 # But until then ... 14587 HOTSPOT_TARGET="" 14588 14589 if test "x$JVM_VARIANT_SERVER" = xtrue; then 14590 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL} " 14591 fi 14592 14593 if test "x$JVM_VARIANT_CLIENT" = xtrue; then 14594 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}1 " 14595 fi 14596 14597 if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then 14598 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}minimal1 " 14599 fi 14600 14601 if test "x$JVM_VARIANT_KERNEL" = xtrue; then 14602 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}kernel " 14603 fi 14604 14605 if test "x$JVM_VARIANT_ZERO" = xtrue; then 14606 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}zero " 14607 fi 14608 14609 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 14610 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}shark " 14611 fi 14612 14613 if test "x$JVM_VARIANT_CORE" = xtrue; then 14614 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}core " 14615 fi 14616 14617 HOTSPOT_TARGET="$HOTSPOT_TARGET docs export_$HOTSPOT_EXPORT" 14618 14619 # On Macosx universal binaries are produced, but they only contain 14620 # 64 bit intel. This invalidates control of which jvms are built 14621 # from configure, but only server is valid anyway. Fix this 14622 # when hotspot makefiles are rewritten. 14623 if test "x$MACOSX_UNIVERSAL" = xtrue; then 14624 HOTSPOT_TARGET=universal_${HOTSPOT_EXPORT} 14625 fi 14626 14627 ##### 14628 14629 14630 14631 14632 14633 14634 14635 14636 # With basic setup done, call the custom early hook. 14637 14638 14639 # Check if we have devkits, extra paths or sysroot set. 14640 14641 14642 # Check whether --with-devkit was given. 14643 if test "${with_devkit+set}" = set; then : 14644 withval=$with_devkit; 14645 14646 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14647 14648 # Input might be given as Windows format, start by converting to 14649 # unix format. 14650 path="$with_devkit" 14651 new_path=`$CYGPATH -u "$path"` 14652 14653 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 14654 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 14655 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 14656 # "foo.exe" is OK but "foo" is an error. 14657 # 14658 # This test is therefore slightly more accurate than "test -f" to check for file precense. 14659 # It is also a way to make sure we got the proper file name for the real test later on. 14660 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 14661 if test "x$test_shortpath" = x; then 14662 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5 14663 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;} 14664 as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5 14665 fi 14666 14667 # Call helper function which possibly converts this using DOS-style short mode. 14668 # If so, the updated path is stored in $new_path. 14669 14670 input_path="$new_path" 14671 # Check if we need to convert this using DOS-style short mode. If the path 14672 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14673 # take no chances and rewrite it. 14674 # Note: m4 eats our [], so we need to use [ and ] instead. 14675 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 14676 if test "x$has_forbidden_chars" != x; then 14677 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14678 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 14679 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 14680 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 14681 # Going to short mode and back again did indeed matter. Since short mode is 14682 # case insensitive, let's make it lowercase to improve readability. 14683 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14684 # Now convert it back to Unix-stile (cygpath) 14685 input_path=`$CYGPATH -u "$shortmode_path"` 14686 new_path="$input_path" 14687 fi 14688 fi 14689 14690 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 14691 if test "x$test_cygdrive_prefix" = x; then 14692 # As a simple fix, exclude /usr/bin since it's not a real path. 14693 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 14694 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 14695 # a path prefixed by /cygdrive for fixpath to work. 14696 new_path="$CYGWIN_ROOT_PATH$input_path" 14697 fi 14698 fi 14699 14700 14701 if test "x$path" != "x$new_path"; then 14702 with_devkit="$new_path" 14703 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5 14704 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;} 14705 fi 14706 14707 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14708 14709 path="$with_devkit" 14710 has_colon=`$ECHO $path | $GREP ^.:` 14711 new_path="$path" 14712 if test "x$has_colon" = x; then 14713 # Not in mixed or Windows style, start by that. 14714 new_path=`cmd //c echo $path` 14715 fi 14716 14717 14718 input_path="$new_path" 14719 # Check if we need to convert this using DOS-style short mode. If the path 14720 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14721 # take no chances and rewrite it. 14722 # Note: m4 eats our [], so we need to use [ and ] instead. 14723 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 14724 if test "x$has_forbidden_chars" != x; then 14725 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14726 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14727 fi 14728 14729 14730 windows_path="$new_path" 14731 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14732 unix_path=`$CYGPATH -u "$windows_path"` 14733 new_path="$unix_path" 14734 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14735 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14736 new_path="$unix_path" 14737 fi 14738 14739 if test "x$path" != "x$new_path"; then 14740 with_devkit="$new_path" 14741 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5 14742 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;} 14743 fi 14744 14745 # Save the first 10 bytes of this path to the storage, so fixpath can work. 14746 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 14747 14748 else 14749 # We're on a posix platform. Hooray! :) 14750 path="$with_devkit" 14751 has_space=`$ECHO "$path" | $GREP " "` 14752 if test "x$has_space" != x; then 14753 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5 14754 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;} 14755 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 14756 fi 14757 14758 # Use eval to expand a potential ~ 14759 eval path="$path" 14760 if test ! -f "$path" && test ! -d "$path"; then 14761 as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5 14762 fi 14763 14764 with_devkit="`cd "$path"; $THEPWDCMD -L`" 14765 fi 14766 14767 DEVKIT_ROOT="$with_devkit" 14768 # Check for a meta data info file in the root of the devkit 14769 if test -f "$DEVKIT_ROOT/devkit.info"; then 14770 # This potentially sets the following: 14771 # DEVKIT_NAME: A descriptive name of the devkit 14772 # DEVKIT_TOOLCHAIN_PATH: Corresponds to --with-toolchain-path 14773 # DEVKIT_EXTRA_PATH: Corresponds to --with-extra-path 14774 # DEVKIT_SYSROOT: Corresponds to --with-sysroot 14775 . $DEVKIT_ROOT/devkit.info 14776 fi 14777 14778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devkit" >&5 14779 $as_echo_n "checking for devkit... " >&6; } 14780 if test "x$DEVKIT_NAME" != x; then 14781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_NAME in $DEVKIT_ROOT" >&5 14782 $as_echo "$DEVKIT_NAME in $DEVKIT_ROOT" >&6; } 14783 else 14784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_ROOT" >&5 14785 $as_echo "$DEVKIT_ROOT" >&6; } 14786 fi 14787 14788 if test "x$DEVKIT_EXTRA_PATH" != x; then 14789 14790 if test "x$DEVKIT_EXTRA_PATH" != x; then 14791 if test "x$EXTRA_PATH" = x; then 14792 EXTRA_PATH="$DEVKIT_EXTRA_PATH" 14793 else 14794 EXTRA_PATH="$DEVKIT_EXTRA_PATH:$EXTRA_PATH" 14795 fi 14796 fi 14797 14798 fi 14799 14800 # Fallback default of just /bin if DEVKIT_PATH is not defined 14801 if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then 14802 DEVKIT_TOOLCHAIN_PATH="$DEVKIT_ROOT/bin" 14803 fi 14804 14805 if test "x$DEVKIT_TOOLCHAIN_PATH" != x; then 14806 if test "x$TOOLCHAIN_PATH" = x; then 14807 TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH" 14808 else 14809 TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH:$TOOLCHAIN_PATH" 14810 fi 14811 fi 14812 14813 14814 # If DEVKIT_SYSROOT is set, use that, otherwise try a couple of known 14815 # places for backwards compatiblity. 14816 if test "x$DEVKIT_SYSROOT" != x; then 14817 SYSROOT="$DEVKIT_SYSROOT" 14818 elif test -d "$DEVKIT_ROOT/$host_alias/libc"; then 14819 SYSROOT="$DEVKIT_ROOT/$host_alias/libc" 14820 elif test -d "$DEVKIT_ROOT/$host/sys-root"; then 14821 SYSROOT="$DEVKIT_ROOT/$host/sys-root" 14822 fi 14823 14824 14825 fi 14826 14827 14828 # You can force the sysroot if the sysroot encoded into the compiler tools 14829 # is not correct. 14830 14831 # Check whether --with-sys-root was given. 14832 if test "${with_sys_root+set}" = set; then : 14833 withval=$with_sys_root; SYSROOT=$with_sys_root 14834 14835 fi 14836 14837 14838 14839 # Check whether --with-sysroot was given. 14840 if test "${with_sysroot+set}" = set; then : 14841 withval=$with_sysroot; SYSROOT=$with_sysroot 14842 14843 fi 14844 14845 14846 14847 # Check whether --with-tools-dir was given. 14848 if test "${with_tools_dir+set}" = set; then : 14849 withval=$with_tools_dir; 14850 if test "x$with_tools_dir" != x; then 14851 if test "x$TOOLCHAIN_PATH" = x; then 14852 TOOLCHAIN_PATH="$with_tools_dir" 14853 else 14854 TOOLCHAIN_PATH="$with_tools_dir:$TOOLCHAIN_PATH" 14855 fi 14856 fi 14857 14858 14859 fi 14860 14861 14862 14863 # Check whether --with-toolchain-path was given. 14864 if test "${with_toolchain_path+set}" = set; then : 14865 withval=$with_toolchain_path; 14866 if test "x$with_toolchain_path" != x; then 14867 if test "x$TOOLCHAIN_PATH" = x; then 14868 TOOLCHAIN_PATH="$with_toolchain_path" 14869 else 14870 TOOLCHAIN_PATH="$with_toolchain_path:$TOOLCHAIN_PATH" 14871 fi 14872 fi 14873 14874 14875 fi 14876 14877 14878 14879 # Check whether --with-extra-path was given. 14880 if test "${with_extra_path+set}" = set; then : 14881 withval=$with_extra_path; 14882 if test "x$with_extra_path" != x; then 14883 if test "x$EXTRA_PATH" = x; then 14884 EXTRA_PATH="$with_extra_path" 14885 else 14886 EXTRA_PATH="$with_extra_path:$EXTRA_PATH" 14887 fi 14888 fi 14889 14890 14891 fi 14892 14893 14894 # Prepend the extra path to the global path 14895 14896 if test "x$EXTRA_PATH" != x; then 14897 if test "x$PATH" = x; then 14898 PATH="$EXTRA_PATH" 14899 else 14900 PATH="$EXTRA_PATH:$PATH" 14901 fi 14902 fi 14903 14904 14905 if test "x$OPENJDK_BUILD_OS" = "xsolaris"; then 14906 # Add extra search paths on solaris for utilities like ar and as etc... 14907 PATH="$PATH:/usr/ccs/bin:/usr/sfw/bin:/opt/csw/bin" 14908 fi 14909 14910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 14911 $as_echo_n "checking for sysroot... " >&6; } 14912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSROOT" >&5 14913 $as_echo "$SYSROOT" >&6; } 14914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for toolchain path" >&5 14915 $as_echo_n "checking for toolchain path... " >&6; } 14916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH" >&5 14917 $as_echo "$TOOLCHAIN_PATH" >&6; } 14918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra path" >&5 14919 $as_echo_n "checking for extra path... " >&6; } 14920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_PATH" >&5 14921 $as_echo "$EXTRA_PATH" >&6; } 14922 14923 14924 # To properly create a configuration name, we need to have the OpenJDK target 14925 # and options (variants and debug level) parsed. 14926 14927 14928 14929 # Check whether --with-conf-name was given. 14930 if test "${with_conf_name+set}" = set; then : 14931 withval=$with_conf_name; CONF_NAME=${with_conf_name} 14932 fi 14933 14934 14935 # Test from where we are running configure, in or outside of src root. 14936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to store configuration" >&5 14937 $as_echo_n "checking where to store configuration... " >&6; } 14938 if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" \ 14939 || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" \ 14940 || test "x$CURDIR" = "x$SRC_ROOT/make" ; then 14941 # We are running configure from the src root. 14942 # Create a default ./build/target-variant-debuglevel output root. 14943 if test "x${CONF_NAME}" = x; then 14944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default location" >&5 14945 $as_echo "in default location" >&6; } 14946 CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${ANDED_JVM_VARIANTS}-${DEBUG_LEVEL}" 14947 else 14948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5 14949 $as_echo "in build directory with custom name" >&6; } 14950 fi 14951 OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}" 14952 $MKDIR -p "$OUTPUT_ROOT" 14953 if test ! -d "$OUTPUT_ROOT"; then 14954 as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5 14955 fi 14956 else 14957 # We are running configure from outside of the src dir. 14958 # Then use the current directory as output dir! 14959 # If configuration is situated in normal build directory, just use the build 14960 # directory name as configuration name, otherwise use the complete path. 14961 if test "x${CONF_NAME}" = x; then 14962 CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${SRC_ROOT}/build/!!"` 14963 fi 14964 OUTPUT_ROOT="$CURDIR" 14965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in current directory" >&5 14966 $as_echo "in current directory" >&6; } 14967 14968 # WARNING: This might be a bad thing to do. You need to be sure you want to 14969 # have a configuration in this directory. Do some sanity checks! 14970 14971 if test ! -e "$OUTPUT_ROOT/spec.gmk"; then 14972 # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for 14973 # other files 14974 files_present=`$LS $OUTPUT_ROOT` 14975 # Configure has already touched config.log and confdefs.h in the current dir when this check 14976 # is performed. 14977 filtered_files=`$ECHO "$files_present" | $SED -e 's/config.log//g' -e 's/confdefs.h//g' -e 's/ //g' \ 14978 | $TR -d '\n'` 14979 if test "x$filtered_files" != x; then 14980 { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5 14981 $as_echo "$as_me: Current directory is $CURDIR." >&6;} 14982 { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5 14983 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;} 14984 { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5 14985 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;} 14986 { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5 14987 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;} 14988 { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5 14989 $as_echo "$as_me: seriously mess up just about everything." >&6;} 14990 { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $SRC_ROOT' and restart configure" >&5 14991 $as_echo "$as_me: Try 'cd $SRC_ROOT' and restart configure" >&6;} 14992 { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5 14993 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;} 14994 as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5 14995 fi 14996 fi 14997 fi 14998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5 14999 $as_echo_n "checking what configuration name to use... " >&6; } 15000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5 15001 $as_echo "$CONF_NAME" >&6; } 15002 15003 15004 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15005 15006 # Input might be given as Windows format, start by converting to 15007 # unix format. 15008 path="$OUTPUT_ROOT" 15009 new_path=`$CYGPATH -u "$path"` 15010 15011 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 15012 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 15013 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 15014 # "foo.exe" is OK but "foo" is an error. 15015 # 15016 # This test is therefore slightly more accurate than "test -f" to check for file precense. 15017 # It is also a way to make sure we got the proper file name for the real test later on. 15018 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 15019 if test "x$test_shortpath" = x; then 15020 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5 15021 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;} 15022 as_fn_error $? "Cannot locate the the path of OUTPUT_ROOT" "$LINENO" 5 15023 fi 15024 15025 # Call helper function which possibly converts this using DOS-style short mode. 15026 # If so, the updated path is stored in $new_path. 15027 15028 input_path="$new_path" 15029 # Check if we need to convert this using DOS-style short mode. If the path 15030 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15031 # take no chances and rewrite it. 15032 # Note: m4 eats our [], so we need to use [ and ] instead. 15033 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 15034 if test "x$has_forbidden_chars" != x; then 15035 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15036 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 15037 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 15038 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 15039 # Going to short mode and back again did indeed matter. Since short mode is 15040 # case insensitive, let's make it lowercase to improve readability. 15041 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15042 # Now convert it back to Unix-stile (cygpath) 15043 input_path=`$CYGPATH -u "$shortmode_path"` 15044 new_path="$input_path" 15045 fi 15046 fi 15047 15048 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 15049 if test "x$test_cygdrive_prefix" = x; then 15050 # As a simple fix, exclude /usr/bin since it's not a real path. 15051 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 15052 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 15053 # a path prefixed by /cygdrive for fixpath to work. 15054 new_path="$CYGWIN_ROOT_PATH$input_path" 15055 fi 15056 fi 15057 15058 15059 if test "x$path" != "x$new_path"; then 15060 OUTPUT_ROOT="$new_path" 15061 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5 15062 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;} 15063 fi 15064 15065 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15066 15067 path="$OUTPUT_ROOT" 15068 has_colon=`$ECHO $path | $GREP ^.:` 15069 new_path="$path" 15070 if test "x$has_colon" = x; then 15071 # Not in mixed or Windows style, start by that. 15072 new_path=`cmd //c echo $path` 15073 fi 15074 15075 15076 input_path="$new_path" 15077 # Check if we need to convert this using DOS-style short mode. If the path 15078 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15079 # take no chances and rewrite it. 15080 # Note: m4 eats our [], so we need to use [ and ] instead. 15081 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 15082 if test "x$has_forbidden_chars" != x; then 15083 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15084 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15085 fi 15086 15087 15088 windows_path="$new_path" 15089 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15090 unix_path=`$CYGPATH -u "$windows_path"` 15091 new_path="$unix_path" 15092 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15093 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15094 new_path="$unix_path" 15095 fi 15096 15097 if test "x$path" != "x$new_path"; then 15098 OUTPUT_ROOT="$new_path" 15099 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5 15100 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;} 15101 fi 15102 15103 # Save the first 10 bytes of this path to the storage, so fixpath can work. 15104 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 15105 15106 else 15107 # We're on a posix platform. Hooray! :) 15108 path="$OUTPUT_ROOT" 15109 has_space=`$ECHO "$path" | $GREP " "` 15110 if test "x$has_space" != x; then 15111 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5 15112 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;} 15113 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 15114 fi 15115 15116 # Use eval to expand a potential ~ 15117 eval path="$path" 15118 if test ! -f "$path" && test ! -d "$path"; then 15119 as_fn_error $? "The path of OUTPUT_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5 15120 fi 15121 15122 OUTPUT_ROOT="`cd "$path"; $THEPWDCMD -L`" 15123 fi 15124 15125 15126 SPEC=$OUTPUT_ROOT/spec.gmk 15127 15128 CONF_NAME=$CONF_NAME 15129 15130 OUTPUT_ROOT=$OUTPUT_ROOT 15131 15132 15133 # Most of the probed defines are put into config.h 15134 ac_config_headers="$ac_config_headers $OUTPUT_ROOT/config.h:$AUTOCONF_DIR/config.h.in" 15135 15136 # The spec.gmk file contains all variables for the make system. 15137 ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" 15138 15139 # The hotspot-spec.gmk file contains legacy variables for the hotspot make system. 15140 ac_config_files="$ac_config_files $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in" 15141 15142 # The bootcycle-spec.gmk file contains support for boot cycle builds. 15143 ac_config_files="$ac_config_files $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" 15144 15145 # The compare.sh is used to compare the build output to other builds. 15146 ac_config_files="$ac_config_files $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in" 15147 15148 # Spec.sh is currently used by compare-objects.sh 15149 ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.sh:$AUTOCONF_DIR/spec.sh.in" 15150 15151 # The generated Makefile knows where the spec.gmk is and where the source is. 15152 # You can run make from the OUTPUT_ROOT, or from the top-level Makefile 15153 # which will look for generated configurations 15154 ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" 15155 15156 15157 15158 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY. 15159 15160 for ac_prog in apt-get yum port pkgutil pkgadd 15161 do 15162 # Extract the first word of "$ac_prog", so it can be a program name with args. 15163 set dummy $ac_prog; ac_word=$2 15164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15165 $as_echo_n "checking for $ac_word... " >&6; } 15166 if ${ac_cv_prog_PKGHANDLER+:} false; then : 15167 $as_echo_n "(cached) " >&6 15168 else 15169 if test -n "$PKGHANDLER"; then 15170 ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test. 15171 else 15172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15173 for as_dir in $PATH 15174 do 15175 IFS=$as_save_IFS 15176 test -z "$as_dir" && as_dir=. 15177 for ac_exec_ext in '' $ac_executable_extensions; do 15178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15179 ac_cv_prog_PKGHANDLER="$ac_prog" 15180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15181 break 2 15182 fi 15183 done 15184 done 15185 IFS=$as_save_IFS 15186 15187 fi 15188 fi 15189 PKGHANDLER=$ac_cv_prog_PKGHANDLER 15190 if test -n "$PKGHANDLER"; then 15191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5 15192 $as_echo "$PKGHANDLER" >&6; } 15193 else 15194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15195 $as_echo "no" >&6; } 15196 fi 15197 15198 15199 test -n "$PKGHANDLER" && break 15200 done 15201 15202 15203 15204 # Setup tools that requires more complex handling, or that is not needed by the configure script. 15205 15206 15207 # We need to find a recent version of GNU make. Especially on Solaris, this can be tricky. 15208 if test "x$MAKE" != x; then 15209 # User has supplied a make, test it. 15210 if test ! -f "$MAKE"; then 15211 as_fn_error $? "The specified make (by MAKE=$MAKE) is not found." "$LINENO" 5 15212 fi 15213 15214 MAKE_CANDIDATE=""$MAKE"" 15215 DESCRIPTION="user supplied MAKE=$MAKE" 15216 if test "x$MAKE_CANDIDATE" != x; then 15217 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 15218 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 15219 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 15220 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 15221 if test "x$IS_GNU_MAKE" = x; then 15222 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 15223 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 15224 else 15225 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 15226 if test "x$IS_MODERN_MAKE" = x; then 15227 { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5 15228 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;} 15229 else 15230 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 15231 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15232 MAKE_EXPECTED_ENV='cygwin' 15233 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15234 MAKE_EXPECTED_ENV='msys' 15235 else 15236 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 15237 fi 15238 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 15239 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 15240 else 15241 # Not relevant for non-Windows 15242 IS_MAKE_CORRECT_ENV=true 15243 fi 15244 if test "x$IS_MAKE_CORRECT_ENV" = x; then 15245 { $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 15246 $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;} 15247 else 15248 FOUND_MAKE=$MAKE_CANDIDATE 15249 15250 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15251 15252 # First separate the path from the arguments. This will split at the first 15253 # space. 15254 complete="$FOUND_MAKE" 15255 path="${complete%% *}" 15256 tmp="$complete EOL" 15257 arguments="${tmp#* }" 15258 15259 # Input might be given as Windows format, start by converting to 15260 # unix format. 15261 new_path=`$CYGPATH -u "$path"` 15262 15263 # Now try to locate executable using which 15264 new_path=`$WHICH "$new_path" 2> /dev/null` 15265 # bat and cmd files are not always considered executable in cygwin causing which 15266 # to not find them 15267 if test "x$new_path" = x \ 15268 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15269 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15270 new_path=`$CYGPATH -u "$path"` 15271 fi 15272 if test "x$new_path" = x; then 15273 # Oops. Which didn't find the executable. 15274 # The splitting of arguments from the executable at a space might have been incorrect, 15275 # since paths with space are more likely in Windows. Give it another try with the whole 15276 # argument. 15277 path="$complete" 15278 arguments="EOL" 15279 new_path=`$CYGPATH -u "$path"` 15280 new_path=`$WHICH "$new_path" 2> /dev/null` 15281 # bat and cmd files are not always considered executable in cygwin causing which 15282 # to not find them 15283 if test "x$new_path" = x \ 15284 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15285 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15286 new_path=`$CYGPATH -u "$path"` 15287 fi 15288 if test "x$new_path" = x; then 15289 # It's still not found. Now this is an unrecoverable error. 15290 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15291 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15292 has_space=`$ECHO "$complete" | $GREP " "` 15293 if test "x$has_space" != x; then 15294 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 15295 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 15296 fi 15297 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15298 fi 15299 fi 15300 15301 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 15302 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 15303 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 15304 # "foo.exe" is OK but "foo" is an error. 15305 # 15306 # This test is therefore slightly more accurate than "test -f" to check for file presence. 15307 # It is also a way to make sure we got the proper file name for the real test later on. 15308 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 15309 if test "x$test_shortpath" = x; then 15310 # Short path failed, file does not exist as specified. 15311 # Try adding .exe or .cmd 15312 if test -f "${new_path}.exe"; then 15313 input_to_shortpath="${new_path}.exe" 15314 elif test -f "${new_path}.cmd"; then 15315 input_to_shortpath="${new_path}.cmd" 15316 else 15317 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 15318 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 15319 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 15320 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 15321 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15322 fi 15323 else 15324 input_to_shortpath="$new_path" 15325 fi 15326 15327 # Call helper function which possibly converts this using DOS-style short mode. 15328 # If so, the updated path is stored in $new_path. 15329 new_path="$input_to_shortpath" 15330 15331 input_path="$input_to_shortpath" 15332 # Check if we need to convert this using DOS-style short mode. If the path 15333 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15334 # take no chances and rewrite it. 15335 # Note: m4 eats our [], so we need to use [ and ] instead. 15336 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 15337 if test "x$has_forbidden_chars" != x; then 15338 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15339 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 15340 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 15341 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 15342 # Going to short mode and back again did indeed matter. Since short mode is 15343 # case insensitive, let's make it lowercase to improve readability. 15344 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15345 # Now convert it back to Unix-stile (cygpath) 15346 input_path=`$CYGPATH -u "$shortmode_path"` 15347 new_path="$input_path" 15348 fi 15349 fi 15350 15351 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 15352 if test "x$test_cygdrive_prefix" = x; then 15353 # As a simple fix, exclude /usr/bin since it's not a real path. 15354 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 15355 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 15356 # a path prefixed by /cygdrive for fixpath to work. 15357 new_path="$CYGWIN_ROOT_PATH$input_path" 15358 fi 15359 fi 15360 15361 # remove trailing .exe if any 15362 new_path="${new_path/%.exe/}" 15363 15364 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15365 15366 # First separate the path from the arguments. This will split at the first 15367 # space. 15368 complete="$FOUND_MAKE" 15369 path="${complete%% *}" 15370 tmp="$complete EOL" 15371 arguments="${tmp#* }" 15372 15373 # Input might be given as Windows format, start by converting to 15374 # unix format. 15375 new_path="$path" 15376 15377 windows_path="$new_path" 15378 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15379 unix_path=`$CYGPATH -u "$windows_path"` 15380 new_path="$unix_path" 15381 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15382 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15383 new_path="$unix_path" 15384 fi 15385 15386 15387 # Now try to locate executable using which 15388 new_path=`$WHICH "$new_path" 2> /dev/null` 15389 15390 if test "x$new_path" = x; then 15391 # Oops. Which didn't find the executable. 15392 # The splitting of arguments from the executable at a space might have been incorrect, 15393 # since paths with space are more likely in Windows. Give it another try with the whole 15394 # argument. 15395 path="$complete" 15396 arguments="EOL" 15397 new_path="$path" 15398 15399 windows_path="$new_path" 15400 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15401 unix_path=`$CYGPATH -u "$windows_path"` 15402 new_path="$unix_path" 15403 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15404 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15405 new_path="$unix_path" 15406 fi 15407 15408 15409 new_path=`$WHICH "$new_path" 2> /dev/null` 15410 15411 if test "x$new_path" = x; then 15412 # It's still not found. Now this is an unrecoverable error. 15413 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15414 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15415 has_space=`$ECHO "$complete" | $GREP " "` 15416 if test "x$has_space" != x; then 15417 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 15418 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 15419 fi 15420 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15421 fi 15422 fi 15423 15424 # Now new_path has a complete unix path to the binary 15425 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 15426 # Keep paths in /bin as-is, but remove trailing .exe if any 15427 new_path="${new_path/%.exe/}" 15428 # Do not save /bin paths to all_fixpath_prefixes! 15429 else 15430 # Not in mixed or Windows style, start by that. 15431 new_path=`cmd //c echo $new_path` 15432 15433 input_path="$new_path" 15434 # Check if we need to convert this using DOS-style short mode. If the path 15435 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15436 # take no chances and rewrite it. 15437 # Note: m4 eats our [], so we need to use [ and ] instead. 15438 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 15439 if test "x$has_forbidden_chars" != x; then 15440 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15441 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15442 fi 15443 15444 # Output is in $new_path 15445 15446 windows_path="$new_path" 15447 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15448 unix_path=`$CYGPATH -u "$windows_path"` 15449 new_path="$unix_path" 15450 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15451 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15452 new_path="$unix_path" 15453 fi 15454 15455 # remove trailing .exe if any 15456 new_path="${new_path/%.exe/}" 15457 15458 # Save the first 10 bytes of this path to the storage, so fixpath can work. 15459 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 15460 fi 15461 15462 else 15463 # We're on a posix platform. Hooray! :) 15464 # First separate the path from the arguments. This will split at the first 15465 # space. 15466 complete="$FOUND_MAKE" 15467 path="${complete%% *}" 15468 tmp="$complete EOL" 15469 arguments="${tmp#* }" 15470 15471 # Cannot rely on the command "which" here since it doesn't always work. 15472 is_absolute_path=`$ECHO "$path" | $GREP ^/` 15473 if test -z "$is_absolute_path"; then 15474 # Path to executable is not absolute. Find it. 15475 IFS_save="$IFS" 15476 IFS=: 15477 for p in $PATH; do 15478 if test -f "$p/$path" && test -x "$p/$path"; then 15479 new_path="$p/$path" 15480 break 15481 fi 15482 done 15483 IFS="$IFS_save" 15484 else 15485 # This is an absolute path, we can use it without further modifications. 15486 new_path="$path" 15487 fi 15488 15489 if test "x$new_path" = x; then 15490 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15491 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15492 has_space=`$ECHO "$complete" | $GREP " "` 15493 if test "x$has_space" != x; then 15494 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 15495 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 15496 fi 15497 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15498 fi 15499 fi 15500 15501 # Now join together the path and the arguments once again 15502 if test "x$arguments" != xEOL; then 15503 new_complete="$new_path ${arguments% *}" 15504 else 15505 new_complete="$new_path" 15506 fi 15507 15508 if test "x$complete" != "x$new_complete"; then 15509 FOUND_MAKE="$new_complete" 15510 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 15511 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 15512 fi 15513 15514 fi 15515 fi 15516 fi 15517 fi 15518 15519 if test "x$FOUND_MAKE" = x; then 15520 as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make 3.81 or newer." "$LINENO" 5 15521 fi 15522 else 15523 # Try our hardest to locate a correct version of GNU make 15524 for ac_prog in gmake 15525 do 15526 # Extract the first word of "$ac_prog", so it can be a program name with args. 15527 set dummy $ac_prog; ac_word=$2 15528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15529 $as_echo_n "checking for $ac_word... " >&6; } 15530 if ${ac_cv_path_CHECK_GMAKE+:} false; then : 15531 $as_echo_n "(cached) " >&6 15532 else 15533 case $CHECK_GMAKE in 15534 [\\/]* | ?:[\\/]*) 15535 ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path. 15536 ;; 15537 *) 15538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15539 for as_dir in $PATH 15540 do 15541 IFS=$as_save_IFS 15542 test -z "$as_dir" && as_dir=. 15543 for ac_exec_ext in '' $ac_executable_extensions; do 15544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15545 ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext" 15546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15547 break 2 15548 fi 15549 done 15550 done 15551 IFS=$as_save_IFS 15552 15553 ;; 15554 esac 15555 fi 15556 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE 15557 if test -n "$CHECK_GMAKE"; then 15558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5 15559 $as_echo "$CHECK_GMAKE" >&6; } 15560 else 15561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15562 $as_echo "no" >&6; } 15563 fi 15564 15565 15566 test -n "$CHECK_GMAKE" && break 15567 done 15568 15569 15570 MAKE_CANDIDATE=""$CHECK_GMAKE"" 15571 DESCRIPTION="gmake in PATH" 15572 if test "x$MAKE_CANDIDATE" != x; then 15573 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 15574 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 15575 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 15576 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 15577 if test "x$IS_GNU_MAKE" = x; then 15578 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 15579 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 15580 else 15581 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 15582 if test "x$IS_MODERN_MAKE" = x; then 15583 { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5 15584 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;} 15585 else 15586 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 15587 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15588 MAKE_EXPECTED_ENV='cygwin' 15589 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15590 MAKE_EXPECTED_ENV='msys' 15591 else 15592 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 15593 fi 15594 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 15595 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 15596 else 15597 # Not relevant for non-Windows 15598 IS_MAKE_CORRECT_ENV=true 15599 fi 15600 if test "x$IS_MAKE_CORRECT_ENV" = x; then 15601 { $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 15602 $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;} 15603 else 15604 FOUND_MAKE=$MAKE_CANDIDATE 15605 15606 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15607 15608 # First separate the path from the arguments. This will split at the first 15609 # space. 15610 complete="$FOUND_MAKE" 15611 path="${complete%% *}" 15612 tmp="$complete EOL" 15613 arguments="${tmp#* }" 15614 15615 # Input might be given as Windows format, start by converting to 15616 # unix format. 15617 new_path=`$CYGPATH -u "$path"` 15618 15619 # Now try to locate executable using which 15620 new_path=`$WHICH "$new_path" 2> /dev/null` 15621 # bat and cmd files are not always considered executable in cygwin causing which 15622 # to not find them 15623 if test "x$new_path" = x \ 15624 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15625 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15626 new_path=`$CYGPATH -u "$path"` 15627 fi 15628 if test "x$new_path" = x; then 15629 # Oops. Which didn't find the executable. 15630 # The splitting of arguments from the executable at a space might have been incorrect, 15631 # since paths with space are more likely in Windows. Give it another try with the whole 15632 # argument. 15633 path="$complete" 15634 arguments="EOL" 15635 new_path=`$CYGPATH -u "$path"` 15636 new_path=`$WHICH "$new_path" 2> /dev/null` 15637 # bat and cmd files are not always considered executable in cygwin causing which 15638 # to not find them 15639 if test "x$new_path" = x \ 15640 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15641 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15642 new_path=`$CYGPATH -u "$path"` 15643 fi 15644 if test "x$new_path" = x; then 15645 # It's still not found. Now this is an unrecoverable error. 15646 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15647 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15648 has_space=`$ECHO "$complete" | $GREP " "` 15649 if test "x$has_space" != x; then 15650 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 15651 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 15652 fi 15653 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15654 fi 15655 fi 15656 15657 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 15658 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 15659 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 15660 # "foo.exe" is OK but "foo" is an error. 15661 # 15662 # This test is therefore slightly more accurate than "test -f" to check for file presence. 15663 # It is also a way to make sure we got the proper file name for the real test later on. 15664 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 15665 if test "x$test_shortpath" = x; then 15666 # Short path failed, file does not exist as specified. 15667 # Try adding .exe or .cmd 15668 if test -f "${new_path}.exe"; then 15669 input_to_shortpath="${new_path}.exe" 15670 elif test -f "${new_path}.cmd"; then 15671 input_to_shortpath="${new_path}.cmd" 15672 else 15673 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 15674 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 15675 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 15676 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 15677 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15678 fi 15679 else 15680 input_to_shortpath="$new_path" 15681 fi 15682 15683 # Call helper function which possibly converts this using DOS-style short mode. 15684 # If so, the updated path is stored in $new_path. 15685 new_path="$input_to_shortpath" 15686 15687 input_path="$input_to_shortpath" 15688 # Check if we need to convert this using DOS-style short mode. If the path 15689 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15690 # take no chances and rewrite it. 15691 # Note: m4 eats our [], so we need to use [ and ] instead. 15692 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 15693 if test "x$has_forbidden_chars" != x; then 15694 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15695 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 15696 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 15697 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 15698 # Going to short mode and back again did indeed matter. Since short mode is 15699 # case insensitive, let's make it lowercase to improve readability. 15700 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15701 # Now convert it back to Unix-stile (cygpath) 15702 input_path=`$CYGPATH -u "$shortmode_path"` 15703 new_path="$input_path" 15704 fi 15705 fi 15706 15707 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 15708 if test "x$test_cygdrive_prefix" = x; then 15709 # As a simple fix, exclude /usr/bin since it's not a real path. 15710 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 15711 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 15712 # a path prefixed by /cygdrive for fixpath to work. 15713 new_path="$CYGWIN_ROOT_PATH$input_path" 15714 fi 15715 fi 15716 15717 # remove trailing .exe if any 15718 new_path="${new_path/%.exe/}" 15719 15720 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15721 15722 # First separate the path from the arguments. This will split at the first 15723 # space. 15724 complete="$FOUND_MAKE" 15725 path="${complete%% *}" 15726 tmp="$complete EOL" 15727 arguments="${tmp#* }" 15728 15729 # Input might be given as Windows format, start by converting to 15730 # unix format. 15731 new_path="$path" 15732 15733 windows_path="$new_path" 15734 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15735 unix_path=`$CYGPATH -u "$windows_path"` 15736 new_path="$unix_path" 15737 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15738 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15739 new_path="$unix_path" 15740 fi 15741 15742 15743 # Now try to locate executable using which 15744 new_path=`$WHICH "$new_path" 2> /dev/null` 15745 15746 if test "x$new_path" = x; then 15747 # Oops. Which didn't find the executable. 15748 # The splitting of arguments from the executable at a space might have been incorrect, 15749 # since paths with space are more likely in Windows. Give it another try with the whole 15750 # argument. 15751 path="$complete" 15752 arguments="EOL" 15753 new_path="$path" 15754 15755 windows_path="$new_path" 15756 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15757 unix_path=`$CYGPATH -u "$windows_path"` 15758 new_path="$unix_path" 15759 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15760 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15761 new_path="$unix_path" 15762 fi 15763 15764 15765 new_path=`$WHICH "$new_path" 2> /dev/null` 15766 15767 if test "x$new_path" = x; then 15768 # It's still not found. Now this is an unrecoverable error. 15769 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15770 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15771 has_space=`$ECHO "$complete" | $GREP " "` 15772 if test "x$has_space" != x; then 15773 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 15774 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 15775 fi 15776 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15777 fi 15778 fi 15779 15780 # Now new_path has a complete unix path to the binary 15781 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 15782 # Keep paths in /bin as-is, but remove trailing .exe if any 15783 new_path="${new_path/%.exe/}" 15784 # Do not save /bin paths to all_fixpath_prefixes! 15785 else 15786 # Not in mixed or Windows style, start by that. 15787 new_path=`cmd //c echo $new_path` 15788 15789 input_path="$new_path" 15790 # Check if we need to convert this using DOS-style short mode. If the path 15791 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15792 # take no chances and rewrite it. 15793 # Note: m4 eats our [], so we need to use [ and ] instead. 15794 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 15795 if test "x$has_forbidden_chars" != x; then 15796 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15797 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15798 fi 15799 15800 # Output is in $new_path 15801 15802 windows_path="$new_path" 15803 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15804 unix_path=`$CYGPATH -u "$windows_path"` 15805 new_path="$unix_path" 15806 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15807 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15808 new_path="$unix_path" 15809 fi 15810 15811 # remove trailing .exe if any 15812 new_path="${new_path/%.exe/}" 15813 15814 # Save the first 10 bytes of this path to the storage, so fixpath can work. 15815 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 15816 fi 15817 15818 else 15819 # We're on a posix platform. Hooray! :) 15820 # First separate the path from the arguments. This will split at the first 15821 # space. 15822 complete="$FOUND_MAKE" 15823 path="${complete%% *}" 15824 tmp="$complete EOL" 15825 arguments="${tmp#* }" 15826 15827 # Cannot rely on the command "which" here since it doesn't always work. 15828 is_absolute_path=`$ECHO "$path" | $GREP ^/` 15829 if test -z "$is_absolute_path"; then 15830 # Path to executable is not absolute. Find it. 15831 IFS_save="$IFS" 15832 IFS=: 15833 for p in $PATH; do 15834 if test -f "$p/$path" && test -x "$p/$path"; then 15835 new_path="$p/$path" 15836 break 15837 fi 15838 done 15839 IFS="$IFS_save" 15840 else 15841 # This is an absolute path, we can use it without further modifications. 15842 new_path="$path" 15843 fi 15844 15845 if test "x$new_path" = x; then 15846 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15847 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15848 has_space=`$ECHO "$complete" | $GREP " "` 15849 if test "x$has_space" != x; then 15850 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 15851 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 15852 fi 15853 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15854 fi 15855 fi 15856 15857 # Now join together the path and the arguments once again 15858 if test "x$arguments" != xEOL; then 15859 new_complete="$new_path ${arguments% *}" 15860 else 15861 new_complete="$new_path" 15862 fi 15863 15864 if test "x$complete" != "x$new_complete"; then 15865 FOUND_MAKE="$new_complete" 15866 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 15867 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 15868 fi 15869 15870 fi 15871 fi 15872 fi 15873 fi 15874 15875 15876 if test "x$FOUND_MAKE" = x; then 15877 for ac_prog in make 15878 do 15879 # Extract the first word of "$ac_prog", so it can be a program name with args. 15880 set dummy $ac_prog; ac_word=$2 15881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15882 $as_echo_n "checking for $ac_word... " >&6; } 15883 if ${ac_cv_path_CHECK_MAKE+:} false; then : 15884 $as_echo_n "(cached) " >&6 15885 else 15886 case $CHECK_MAKE in 15887 [\\/]* | ?:[\\/]*) 15888 ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path. 15889 ;; 15890 *) 15891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15892 for as_dir in $PATH 15893 do 15894 IFS=$as_save_IFS 15895 test -z "$as_dir" && as_dir=. 15896 for ac_exec_ext in '' $ac_executable_extensions; do 15897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15898 ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext" 15899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15900 break 2 15901 fi 15902 done 15903 done 15904 IFS=$as_save_IFS 15905 15906 ;; 15907 esac 15908 fi 15909 CHECK_MAKE=$ac_cv_path_CHECK_MAKE 15910 if test -n "$CHECK_MAKE"; then 15911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5 15912 $as_echo "$CHECK_MAKE" >&6; } 15913 else 15914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15915 $as_echo "no" >&6; } 15916 fi 15917 15918 15919 test -n "$CHECK_MAKE" && break 15920 done 15921 15922 15923 MAKE_CANDIDATE=""$CHECK_MAKE"" 15924 DESCRIPTION="make in PATH" 15925 if test "x$MAKE_CANDIDATE" != x; then 15926 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 15927 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 15928 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 15929 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 15930 if test "x$IS_GNU_MAKE" = x; then 15931 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 15932 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 15933 else 15934 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 15935 if test "x$IS_MODERN_MAKE" = x; then 15936 { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5 15937 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;} 15938 else 15939 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 15940 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15941 MAKE_EXPECTED_ENV='cygwin' 15942 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15943 MAKE_EXPECTED_ENV='msys' 15944 else 15945 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 15946 fi 15947 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 15948 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 15949 else 15950 # Not relevant for non-Windows 15951 IS_MAKE_CORRECT_ENV=true 15952 fi 15953 if test "x$IS_MAKE_CORRECT_ENV" = x; then 15954 { $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 15955 $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;} 15956 else 15957 FOUND_MAKE=$MAKE_CANDIDATE 15958 15959 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15960 15961 # First separate the path from the arguments. This will split at the first 15962 # space. 15963 complete="$FOUND_MAKE" 15964 path="${complete%% *}" 15965 tmp="$complete EOL" 15966 arguments="${tmp#* }" 15967 15968 # Input might be given as Windows format, start by converting to 15969 # unix format. 15970 new_path=`$CYGPATH -u "$path"` 15971 15972 # Now try to locate executable using which 15973 new_path=`$WHICH "$new_path" 2> /dev/null` 15974 # bat and cmd files are not always considered executable in cygwin causing which 15975 # to not find them 15976 if test "x$new_path" = x \ 15977 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15978 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15979 new_path=`$CYGPATH -u "$path"` 15980 fi 15981 if test "x$new_path" = x; then 15982 # Oops. Which didn't find the executable. 15983 # The splitting of arguments from the executable at a space might have been incorrect, 15984 # since paths with space are more likely in Windows. Give it another try with the whole 15985 # argument. 15986 path="$complete" 15987 arguments="EOL" 15988 new_path=`$CYGPATH -u "$path"` 15989 new_path=`$WHICH "$new_path" 2> /dev/null` 15990 # bat and cmd files are not always considered executable in cygwin causing which 15991 # to not find them 15992 if test "x$new_path" = x \ 15993 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15994 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15995 new_path=`$CYGPATH -u "$path"` 15996 fi 15997 if test "x$new_path" = x; then 15998 # It's still not found. Now this is an unrecoverable error. 15999 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16000 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16001 has_space=`$ECHO "$complete" | $GREP " "` 16002 if test "x$has_space" != x; then 16003 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16004 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16005 fi 16006 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16007 fi 16008 fi 16009 16010 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16011 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16012 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16013 # "foo.exe" is OK but "foo" is an error. 16014 # 16015 # This test is therefore slightly more accurate than "test -f" to check for file presence. 16016 # It is also a way to make sure we got the proper file name for the real test later on. 16017 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16018 if test "x$test_shortpath" = x; then 16019 # Short path failed, file does not exist as specified. 16020 # Try adding .exe or .cmd 16021 if test -f "${new_path}.exe"; then 16022 input_to_shortpath="${new_path}.exe" 16023 elif test -f "${new_path}.cmd"; then 16024 input_to_shortpath="${new_path}.cmd" 16025 else 16026 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 16027 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 16028 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 16029 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 16030 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16031 fi 16032 else 16033 input_to_shortpath="$new_path" 16034 fi 16035 16036 # Call helper function which possibly converts this using DOS-style short mode. 16037 # If so, the updated path is stored in $new_path. 16038 new_path="$input_to_shortpath" 16039 16040 input_path="$input_to_shortpath" 16041 # Check if we need to convert this using DOS-style short mode. If the path 16042 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16043 # take no chances and rewrite it. 16044 # Note: m4 eats our [], so we need to use [ and ] instead. 16045 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16046 if test "x$has_forbidden_chars" != x; then 16047 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16048 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16049 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16050 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16051 # Going to short mode and back again did indeed matter. Since short mode is 16052 # case insensitive, let's make it lowercase to improve readability. 16053 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16054 # Now convert it back to Unix-stile (cygpath) 16055 input_path=`$CYGPATH -u "$shortmode_path"` 16056 new_path="$input_path" 16057 fi 16058 fi 16059 16060 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16061 if test "x$test_cygdrive_prefix" = x; then 16062 # As a simple fix, exclude /usr/bin since it's not a real path. 16063 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 16064 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16065 # a path prefixed by /cygdrive for fixpath to work. 16066 new_path="$CYGWIN_ROOT_PATH$input_path" 16067 fi 16068 fi 16069 16070 # remove trailing .exe if any 16071 new_path="${new_path/%.exe/}" 16072 16073 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16074 16075 # First separate the path from the arguments. This will split at the first 16076 # space. 16077 complete="$FOUND_MAKE" 16078 path="${complete%% *}" 16079 tmp="$complete EOL" 16080 arguments="${tmp#* }" 16081 16082 # Input might be given as Windows format, start by converting to 16083 # unix format. 16084 new_path="$path" 16085 16086 windows_path="$new_path" 16087 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16088 unix_path=`$CYGPATH -u "$windows_path"` 16089 new_path="$unix_path" 16090 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16091 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16092 new_path="$unix_path" 16093 fi 16094 16095 16096 # Now try to locate executable using which 16097 new_path=`$WHICH "$new_path" 2> /dev/null` 16098 16099 if test "x$new_path" = x; then 16100 # Oops. Which didn't find the executable. 16101 # The splitting of arguments from the executable at a space might have been incorrect, 16102 # since paths with space are more likely in Windows. Give it another try with the whole 16103 # argument. 16104 path="$complete" 16105 arguments="EOL" 16106 new_path="$path" 16107 16108 windows_path="$new_path" 16109 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16110 unix_path=`$CYGPATH -u "$windows_path"` 16111 new_path="$unix_path" 16112 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16113 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16114 new_path="$unix_path" 16115 fi 16116 16117 16118 new_path=`$WHICH "$new_path" 2> /dev/null` 16119 16120 if test "x$new_path" = x; then 16121 # It's still not found. Now this is an unrecoverable error. 16122 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16123 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16124 has_space=`$ECHO "$complete" | $GREP " "` 16125 if test "x$has_space" != x; then 16126 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16127 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16128 fi 16129 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16130 fi 16131 fi 16132 16133 # Now new_path has a complete unix path to the binary 16134 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 16135 # Keep paths in /bin as-is, but remove trailing .exe if any 16136 new_path="${new_path/%.exe/}" 16137 # Do not save /bin paths to all_fixpath_prefixes! 16138 else 16139 # Not in mixed or Windows style, start by that. 16140 new_path=`cmd //c echo $new_path` 16141 16142 input_path="$new_path" 16143 # Check if we need to convert this using DOS-style short mode. If the path 16144 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16145 # take no chances and rewrite it. 16146 # Note: m4 eats our [], so we need to use [ and ] instead. 16147 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16148 if test "x$has_forbidden_chars" != x; then 16149 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16150 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16151 fi 16152 16153 # Output is in $new_path 16154 16155 windows_path="$new_path" 16156 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16157 unix_path=`$CYGPATH -u "$windows_path"` 16158 new_path="$unix_path" 16159 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16160 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16161 new_path="$unix_path" 16162 fi 16163 16164 # remove trailing .exe if any 16165 new_path="${new_path/%.exe/}" 16166 16167 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16168 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16169 fi 16170 16171 else 16172 # We're on a posix platform. Hooray! :) 16173 # First separate the path from the arguments. This will split at the first 16174 # space. 16175 complete="$FOUND_MAKE" 16176 path="${complete%% *}" 16177 tmp="$complete EOL" 16178 arguments="${tmp#* }" 16179 16180 # Cannot rely on the command "which" here since it doesn't always work. 16181 is_absolute_path=`$ECHO "$path" | $GREP ^/` 16182 if test -z "$is_absolute_path"; then 16183 # Path to executable is not absolute. Find it. 16184 IFS_save="$IFS" 16185 IFS=: 16186 for p in $PATH; do 16187 if test -f "$p/$path" && test -x "$p/$path"; then 16188 new_path="$p/$path" 16189 break 16190 fi 16191 done 16192 IFS="$IFS_save" 16193 else 16194 # This is an absolute path, we can use it without further modifications. 16195 new_path="$path" 16196 fi 16197 16198 if test "x$new_path" = x; then 16199 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16200 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16201 has_space=`$ECHO "$complete" | $GREP " "` 16202 if test "x$has_space" != x; then 16203 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 16204 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 16205 fi 16206 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16207 fi 16208 fi 16209 16210 # Now join together the path and the arguments once again 16211 if test "x$arguments" != xEOL; then 16212 new_complete="$new_path ${arguments% *}" 16213 else 16214 new_complete="$new_path" 16215 fi 16216 16217 if test "x$complete" != "x$new_complete"; then 16218 FOUND_MAKE="$new_complete" 16219 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 16220 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 16221 fi 16222 16223 fi 16224 fi 16225 fi 16226 fi 16227 16228 fi 16229 16230 if test "x$FOUND_MAKE" = x; then 16231 if test "x$TOOLCHAIN_PATH" != x; then 16232 # We have a toolchain path, check that as well before giving up. 16233 OLD_PATH=$PATH 16234 PATH=$TOOLCHAIN_PATH:$PATH 16235 for ac_prog in gmake 16236 do 16237 # Extract the first word of "$ac_prog", so it can be a program name with args. 16238 set dummy $ac_prog; ac_word=$2 16239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16240 $as_echo_n "checking for $ac_word... " >&6; } 16241 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then : 16242 $as_echo_n "(cached) " >&6 16243 else 16244 case $CHECK_TOOLSDIR_GMAKE in 16245 [\\/]* | ?:[\\/]*) 16246 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path. 16247 ;; 16248 *) 16249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16250 for as_dir in $PATH 16251 do 16252 IFS=$as_save_IFS 16253 test -z "$as_dir" && as_dir=. 16254 for ac_exec_ext in '' $ac_executable_extensions; do 16255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16256 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext" 16257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16258 break 2 16259 fi 16260 done 16261 done 16262 IFS=$as_save_IFS 16263 16264 ;; 16265 esac 16266 fi 16267 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE 16268 if test -n "$CHECK_TOOLSDIR_GMAKE"; then 16269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5 16270 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; } 16271 else 16272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16273 $as_echo "no" >&6; } 16274 fi 16275 16276 16277 test -n "$CHECK_TOOLSDIR_GMAKE" && break 16278 done 16279 16280 16281 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE"" 16282 DESCRIPTION="gmake in tools-dir" 16283 if test "x$MAKE_CANDIDATE" != x; then 16284 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 16285 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 16286 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 16287 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 16288 if test "x$IS_GNU_MAKE" = x; then 16289 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 16290 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 16291 else 16292 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 16293 if test "x$IS_MODERN_MAKE" = x; then 16294 { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5 16295 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;} 16296 else 16297 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 16298 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16299 MAKE_EXPECTED_ENV='cygwin' 16300 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16301 MAKE_EXPECTED_ENV='msys' 16302 else 16303 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 16304 fi 16305 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 16306 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 16307 else 16308 # Not relevant for non-Windows 16309 IS_MAKE_CORRECT_ENV=true 16310 fi 16311 if test "x$IS_MAKE_CORRECT_ENV" = x; then 16312 { $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 16313 $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;} 16314 else 16315 FOUND_MAKE=$MAKE_CANDIDATE 16316 16317 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16318 16319 # First separate the path from the arguments. This will split at the first 16320 # space. 16321 complete="$FOUND_MAKE" 16322 path="${complete%% *}" 16323 tmp="$complete EOL" 16324 arguments="${tmp#* }" 16325 16326 # Input might be given as Windows format, start by converting to 16327 # unix format. 16328 new_path=`$CYGPATH -u "$path"` 16329 16330 # Now try to locate executable using which 16331 new_path=`$WHICH "$new_path" 2> /dev/null` 16332 # bat and cmd files are not always considered executable in cygwin causing which 16333 # to not find them 16334 if test "x$new_path" = x \ 16335 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16336 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16337 new_path=`$CYGPATH -u "$path"` 16338 fi 16339 if test "x$new_path" = x; then 16340 # Oops. Which didn't find the executable. 16341 # The splitting of arguments from the executable at a space might have been incorrect, 16342 # since paths with space are more likely in Windows. Give it another try with the whole 16343 # argument. 16344 path="$complete" 16345 arguments="EOL" 16346 new_path=`$CYGPATH -u "$path"` 16347 new_path=`$WHICH "$new_path" 2> /dev/null` 16348 # bat and cmd files are not always considered executable in cygwin causing which 16349 # to not find them 16350 if test "x$new_path" = x \ 16351 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16352 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16353 new_path=`$CYGPATH -u "$path"` 16354 fi 16355 if test "x$new_path" = x; then 16356 # It's still not found. Now this is an unrecoverable error. 16357 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16358 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16359 has_space=`$ECHO "$complete" | $GREP " "` 16360 if test "x$has_space" != x; then 16361 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16362 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16363 fi 16364 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16365 fi 16366 fi 16367 16368 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16369 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16370 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16371 # "foo.exe" is OK but "foo" is an error. 16372 # 16373 # This test is therefore slightly more accurate than "test -f" to check for file presence. 16374 # It is also a way to make sure we got the proper file name for the real test later on. 16375 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16376 if test "x$test_shortpath" = x; then 16377 # Short path failed, file does not exist as specified. 16378 # Try adding .exe or .cmd 16379 if test -f "${new_path}.exe"; then 16380 input_to_shortpath="${new_path}.exe" 16381 elif test -f "${new_path}.cmd"; then 16382 input_to_shortpath="${new_path}.cmd" 16383 else 16384 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 16385 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 16386 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 16387 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 16388 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16389 fi 16390 else 16391 input_to_shortpath="$new_path" 16392 fi 16393 16394 # Call helper function which possibly converts this using DOS-style short mode. 16395 # If so, the updated path is stored in $new_path. 16396 new_path="$input_to_shortpath" 16397 16398 input_path="$input_to_shortpath" 16399 # Check if we need to convert this using DOS-style short mode. If the path 16400 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16401 # take no chances and rewrite it. 16402 # Note: m4 eats our [], so we need to use [ and ] instead. 16403 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16404 if test "x$has_forbidden_chars" != x; then 16405 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16406 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16407 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16408 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16409 # Going to short mode and back again did indeed matter. Since short mode is 16410 # case insensitive, let's make it lowercase to improve readability. 16411 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16412 # Now convert it back to Unix-stile (cygpath) 16413 input_path=`$CYGPATH -u "$shortmode_path"` 16414 new_path="$input_path" 16415 fi 16416 fi 16417 16418 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16419 if test "x$test_cygdrive_prefix" = x; then 16420 # As a simple fix, exclude /usr/bin since it's not a real path. 16421 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 16422 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16423 # a path prefixed by /cygdrive for fixpath to work. 16424 new_path="$CYGWIN_ROOT_PATH$input_path" 16425 fi 16426 fi 16427 16428 # remove trailing .exe if any 16429 new_path="${new_path/%.exe/}" 16430 16431 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16432 16433 # First separate the path from the arguments. This will split at the first 16434 # space. 16435 complete="$FOUND_MAKE" 16436 path="${complete%% *}" 16437 tmp="$complete EOL" 16438 arguments="${tmp#* }" 16439 16440 # Input might be given as Windows format, start by converting to 16441 # unix format. 16442 new_path="$path" 16443 16444 windows_path="$new_path" 16445 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16446 unix_path=`$CYGPATH -u "$windows_path"` 16447 new_path="$unix_path" 16448 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16449 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16450 new_path="$unix_path" 16451 fi 16452 16453 16454 # Now try to locate executable using which 16455 new_path=`$WHICH "$new_path" 2> /dev/null` 16456 16457 if test "x$new_path" = x; then 16458 # Oops. Which didn't find the executable. 16459 # The splitting of arguments from the executable at a space might have been incorrect, 16460 # since paths with space are more likely in Windows. Give it another try with the whole 16461 # argument. 16462 path="$complete" 16463 arguments="EOL" 16464 new_path="$path" 16465 16466 windows_path="$new_path" 16467 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16468 unix_path=`$CYGPATH -u "$windows_path"` 16469 new_path="$unix_path" 16470 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16471 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16472 new_path="$unix_path" 16473 fi 16474 16475 16476 new_path=`$WHICH "$new_path" 2> /dev/null` 16477 16478 if test "x$new_path" = x; then 16479 # It's still not found. Now this is an unrecoverable error. 16480 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16481 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16482 has_space=`$ECHO "$complete" | $GREP " "` 16483 if test "x$has_space" != x; then 16484 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16485 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16486 fi 16487 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16488 fi 16489 fi 16490 16491 # Now new_path has a complete unix path to the binary 16492 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 16493 # Keep paths in /bin as-is, but remove trailing .exe if any 16494 new_path="${new_path/%.exe/}" 16495 # Do not save /bin paths to all_fixpath_prefixes! 16496 else 16497 # Not in mixed or Windows style, start by that. 16498 new_path=`cmd //c echo $new_path` 16499 16500 input_path="$new_path" 16501 # Check if we need to convert this using DOS-style short mode. If the path 16502 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16503 # take no chances and rewrite it. 16504 # Note: m4 eats our [], so we need to use [ and ] instead. 16505 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16506 if test "x$has_forbidden_chars" != x; then 16507 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16508 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16509 fi 16510 16511 # Output is in $new_path 16512 16513 windows_path="$new_path" 16514 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16515 unix_path=`$CYGPATH -u "$windows_path"` 16516 new_path="$unix_path" 16517 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16518 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16519 new_path="$unix_path" 16520 fi 16521 16522 # remove trailing .exe if any 16523 new_path="${new_path/%.exe/}" 16524 16525 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16526 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16527 fi 16528 16529 else 16530 # We're on a posix platform. Hooray! :) 16531 # First separate the path from the arguments. This will split at the first 16532 # space. 16533 complete="$FOUND_MAKE" 16534 path="${complete%% *}" 16535 tmp="$complete EOL" 16536 arguments="${tmp#* }" 16537 16538 # Cannot rely on the command "which" here since it doesn't always work. 16539 is_absolute_path=`$ECHO "$path" | $GREP ^/` 16540 if test -z "$is_absolute_path"; then 16541 # Path to executable is not absolute. Find it. 16542 IFS_save="$IFS" 16543 IFS=: 16544 for p in $PATH; do 16545 if test -f "$p/$path" && test -x "$p/$path"; then 16546 new_path="$p/$path" 16547 break 16548 fi 16549 done 16550 IFS="$IFS_save" 16551 else 16552 # This is an absolute path, we can use it without further modifications. 16553 new_path="$path" 16554 fi 16555 16556 if test "x$new_path" = x; then 16557 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16558 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16559 has_space=`$ECHO "$complete" | $GREP " "` 16560 if test "x$has_space" != x; then 16561 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 16562 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 16563 fi 16564 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16565 fi 16566 fi 16567 16568 # Now join together the path and the arguments once again 16569 if test "x$arguments" != xEOL; then 16570 new_complete="$new_path ${arguments% *}" 16571 else 16572 new_complete="$new_path" 16573 fi 16574 16575 if test "x$complete" != "x$new_complete"; then 16576 FOUND_MAKE="$new_complete" 16577 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 16578 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 16579 fi 16580 16581 fi 16582 fi 16583 fi 16584 fi 16585 16586 if test "x$FOUND_MAKE" = x; then 16587 for ac_prog in make 16588 do 16589 # Extract the first word of "$ac_prog", so it can be a program name with args. 16590 set dummy $ac_prog; ac_word=$2 16591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16592 $as_echo_n "checking for $ac_word... " >&6; } 16593 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then : 16594 $as_echo_n "(cached) " >&6 16595 else 16596 case $CHECK_TOOLSDIR_MAKE in 16597 [\\/]* | ?:[\\/]*) 16598 ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path. 16599 ;; 16600 *) 16601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16602 for as_dir in $PATH 16603 do 16604 IFS=$as_save_IFS 16605 test -z "$as_dir" && as_dir=. 16606 for ac_exec_ext in '' $ac_executable_extensions; do 16607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16608 ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext" 16609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16610 break 2 16611 fi 16612 done 16613 done 16614 IFS=$as_save_IFS 16615 16616 ;; 16617 esac 16618 fi 16619 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE 16620 if test -n "$CHECK_TOOLSDIR_MAKE"; then 16621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5 16622 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; } 16623 else 16624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16625 $as_echo "no" >&6; } 16626 fi 16627 16628 16629 test -n "$CHECK_TOOLSDIR_MAKE" && break 16630 done 16631 16632 16633 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE"" 16634 DESCRIPTION="make in tools-dir" 16635 if test "x$MAKE_CANDIDATE" != x; then 16636 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 16637 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 16638 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 16639 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 16640 if test "x$IS_GNU_MAKE" = x; then 16641 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 16642 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 16643 else 16644 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 16645 if test "x$IS_MODERN_MAKE" = x; then 16646 { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5 16647 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;} 16648 else 16649 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 16650 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16651 MAKE_EXPECTED_ENV='cygwin' 16652 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16653 MAKE_EXPECTED_ENV='msys' 16654 else 16655 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 16656 fi 16657 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 16658 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 16659 else 16660 # Not relevant for non-Windows 16661 IS_MAKE_CORRECT_ENV=true 16662 fi 16663 if test "x$IS_MAKE_CORRECT_ENV" = x; then 16664 { $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 16665 $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;} 16666 else 16667 FOUND_MAKE=$MAKE_CANDIDATE 16668 16669 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16670 16671 # First separate the path from the arguments. This will split at the first 16672 # space. 16673 complete="$FOUND_MAKE" 16674 path="${complete%% *}" 16675 tmp="$complete EOL" 16676 arguments="${tmp#* }" 16677 16678 # Input might be given as Windows format, start by converting to 16679 # unix format. 16680 new_path=`$CYGPATH -u "$path"` 16681 16682 # Now try to locate executable using which 16683 new_path=`$WHICH "$new_path" 2> /dev/null` 16684 # bat and cmd files are not always considered executable in cygwin causing which 16685 # to not find them 16686 if test "x$new_path" = x \ 16687 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16688 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16689 new_path=`$CYGPATH -u "$path"` 16690 fi 16691 if test "x$new_path" = x; then 16692 # Oops. Which didn't find the executable. 16693 # The splitting of arguments from the executable at a space might have been incorrect, 16694 # since paths with space are more likely in Windows. Give it another try with the whole 16695 # argument. 16696 path="$complete" 16697 arguments="EOL" 16698 new_path=`$CYGPATH -u "$path"` 16699 new_path=`$WHICH "$new_path" 2> /dev/null` 16700 # bat and cmd files are not always considered executable in cygwin causing which 16701 # to not find them 16702 if test "x$new_path" = x \ 16703 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16704 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16705 new_path=`$CYGPATH -u "$path"` 16706 fi 16707 if test "x$new_path" = x; then 16708 # It's still not found. Now this is an unrecoverable error. 16709 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16710 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16711 has_space=`$ECHO "$complete" | $GREP " "` 16712 if test "x$has_space" != x; then 16713 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16714 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16715 fi 16716 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16717 fi 16718 fi 16719 16720 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16721 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16722 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16723 # "foo.exe" is OK but "foo" is an error. 16724 # 16725 # This test is therefore slightly more accurate than "test -f" to check for file presence. 16726 # It is also a way to make sure we got the proper file name for the real test later on. 16727 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16728 if test "x$test_shortpath" = x; then 16729 # Short path failed, file does not exist as specified. 16730 # Try adding .exe or .cmd 16731 if test -f "${new_path}.exe"; then 16732 input_to_shortpath="${new_path}.exe" 16733 elif test -f "${new_path}.cmd"; then 16734 input_to_shortpath="${new_path}.cmd" 16735 else 16736 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 16737 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 16738 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 16739 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 16740 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16741 fi 16742 else 16743 input_to_shortpath="$new_path" 16744 fi 16745 16746 # Call helper function which possibly converts this using DOS-style short mode. 16747 # If so, the updated path is stored in $new_path. 16748 new_path="$input_to_shortpath" 16749 16750 input_path="$input_to_shortpath" 16751 # Check if we need to convert this using DOS-style short mode. If the path 16752 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16753 # take no chances and rewrite it. 16754 # Note: m4 eats our [], so we need to use [ and ] instead. 16755 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16756 if test "x$has_forbidden_chars" != x; then 16757 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16758 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16759 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16760 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16761 # Going to short mode and back again did indeed matter. Since short mode is 16762 # case insensitive, let's make it lowercase to improve readability. 16763 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16764 # Now convert it back to Unix-stile (cygpath) 16765 input_path=`$CYGPATH -u "$shortmode_path"` 16766 new_path="$input_path" 16767 fi 16768 fi 16769 16770 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16771 if test "x$test_cygdrive_prefix" = x; then 16772 # As a simple fix, exclude /usr/bin since it's not a real path. 16773 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 16774 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16775 # a path prefixed by /cygdrive for fixpath to work. 16776 new_path="$CYGWIN_ROOT_PATH$input_path" 16777 fi 16778 fi 16779 16780 # remove trailing .exe if any 16781 new_path="${new_path/%.exe/}" 16782 16783 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16784 16785 # First separate the path from the arguments. This will split at the first 16786 # space. 16787 complete="$FOUND_MAKE" 16788 path="${complete%% *}" 16789 tmp="$complete EOL" 16790 arguments="${tmp#* }" 16791 16792 # Input might be given as Windows format, start by converting to 16793 # unix format. 16794 new_path="$path" 16795 16796 windows_path="$new_path" 16797 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16798 unix_path=`$CYGPATH -u "$windows_path"` 16799 new_path="$unix_path" 16800 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16801 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16802 new_path="$unix_path" 16803 fi 16804 16805 16806 # Now try to locate executable using which 16807 new_path=`$WHICH "$new_path" 2> /dev/null` 16808 16809 if test "x$new_path" = x; then 16810 # Oops. Which didn't find the executable. 16811 # The splitting of arguments from the executable at a space might have been incorrect, 16812 # since paths with space are more likely in Windows. Give it another try with the whole 16813 # argument. 16814 path="$complete" 16815 arguments="EOL" 16816 new_path="$path" 16817 16818 windows_path="$new_path" 16819 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16820 unix_path=`$CYGPATH -u "$windows_path"` 16821 new_path="$unix_path" 16822 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16823 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16824 new_path="$unix_path" 16825 fi 16826 16827 16828 new_path=`$WHICH "$new_path" 2> /dev/null` 16829 16830 if test "x$new_path" = x; then 16831 # It's still not found. Now this is an unrecoverable error. 16832 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16833 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16834 has_space=`$ECHO "$complete" | $GREP " "` 16835 if test "x$has_space" != x; then 16836 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16837 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16838 fi 16839 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16840 fi 16841 fi 16842 16843 # Now new_path has a complete unix path to the binary 16844 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 16845 # Keep paths in /bin as-is, but remove trailing .exe if any 16846 new_path="${new_path/%.exe/}" 16847 # Do not save /bin paths to all_fixpath_prefixes! 16848 else 16849 # Not in mixed or Windows style, start by that. 16850 new_path=`cmd //c echo $new_path` 16851 16852 input_path="$new_path" 16853 # Check if we need to convert this using DOS-style short mode. If the path 16854 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16855 # take no chances and rewrite it. 16856 # Note: m4 eats our [], so we need to use [ and ] instead. 16857 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16858 if test "x$has_forbidden_chars" != x; then 16859 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16860 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16861 fi 16862 16863 # Output is in $new_path 16864 16865 windows_path="$new_path" 16866 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16867 unix_path=`$CYGPATH -u "$windows_path"` 16868 new_path="$unix_path" 16869 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16870 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16871 new_path="$unix_path" 16872 fi 16873 16874 # remove trailing .exe if any 16875 new_path="${new_path/%.exe/}" 16876 16877 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16878 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16879 fi 16880 16881 else 16882 # We're on a posix platform. Hooray! :) 16883 # First separate the path from the arguments. This will split at the first 16884 # space. 16885 complete="$FOUND_MAKE" 16886 path="${complete%% *}" 16887 tmp="$complete EOL" 16888 arguments="${tmp#* }" 16889 16890 # Cannot rely on the command "which" here since it doesn't always work. 16891 is_absolute_path=`$ECHO "$path" | $GREP ^/` 16892 if test -z "$is_absolute_path"; then 16893 # Path to executable is not absolute. Find it. 16894 IFS_save="$IFS" 16895 IFS=: 16896 for p in $PATH; do 16897 if test -f "$p/$path" && test -x "$p/$path"; then 16898 new_path="$p/$path" 16899 break 16900 fi 16901 done 16902 IFS="$IFS_save" 16903 else 16904 # This is an absolute path, we can use it without further modifications. 16905 new_path="$path" 16906 fi 16907 16908 if test "x$new_path" = x; then 16909 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16910 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16911 has_space=`$ECHO "$complete" | $GREP " "` 16912 if test "x$has_space" != x; then 16913 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 16914 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 16915 fi 16916 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16917 fi 16918 fi 16919 16920 # Now join together the path and the arguments once again 16921 if test "x$arguments" != xEOL; then 16922 new_complete="$new_path ${arguments% *}" 16923 else 16924 new_complete="$new_path" 16925 fi 16926 16927 if test "x$complete" != "x$new_complete"; then 16928 FOUND_MAKE="$new_complete" 16929 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 16930 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 16931 fi 16932 16933 fi 16934 fi 16935 fi 16936 fi 16937 16938 fi 16939 PATH=$OLD_PATH 16940 fi 16941 fi 16942 16943 if test "x$FOUND_MAKE" = x; then 16944 as_fn_error $? "Cannot find GNU make 3.81 or newer! Please put it in the path, or add e.g. MAKE=/opt/gmake3.81/make as argument to configure." "$LINENO" 5 16945 fi 16946 fi 16947 16948 MAKE=$FOUND_MAKE 16949 16950 { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5 16951 $as_echo "$as_me: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;} 16952 16953 16954 16955 # Test if find supports -delete 16956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5 16957 $as_echo_n "checking if find supports -delete... " >&6; } 16958 FIND_DELETE="-delete" 16959 16960 DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?) 16961 16962 echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete 16963 16964 TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1` 16965 if test -f $DELETEDIR/TestIfFindSupportsDelete; then 16966 # No, it does not. 16967 rm $DELETEDIR/TestIfFindSupportsDelete 16968 FIND_DELETE="-exec rm \{\} \+" 16969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16970 $as_echo "no" >&6; } 16971 else 16972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16973 $as_echo "yes" >&6; } 16974 fi 16975 rmdir $DELETEDIR 16976 16977 16978 16979 # These tools might not be installed by default, 16980 # need hint on how to install them. 16981 16982 16983 16984 # Publish this variable in the help. 16985 16986 16987 if test "x$UNZIP" = x; then 16988 # The variable is not set by user, try to locate tool using the code snippet 16989 for ac_prog in unzip 16990 do 16991 # Extract the first word of "$ac_prog", so it can be a program name with args. 16992 set dummy $ac_prog; ac_word=$2 16993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16994 $as_echo_n "checking for $ac_word... " >&6; } 16995 if ${ac_cv_path_UNZIP+:} false; then : 16996 $as_echo_n "(cached) " >&6 16997 else 16998 case $UNZIP in 16999 [\\/]* | ?:[\\/]*) 17000 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 17001 ;; 17002 *) 17003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17004 for as_dir in $PATH 17005 do 17006 IFS=$as_save_IFS 17007 test -z "$as_dir" && as_dir=. 17008 for ac_exec_ext in '' $ac_executable_extensions; do 17009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17010 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 17011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17012 break 2 17013 fi 17014 done 17015 done 17016 IFS=$as_save_IFS 17017 17018 ;; 17019 esac 17020 fi 17021 UNZIP=$ac_cv_path_UNZIP 17022 if test -n "$UNZIP"; then 17023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 17024 $as_echo "$UNZIP" >&6; } 17025 else 17026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17027 $as_echo "no" >&6; } 17028 fi 17029 17030 17031 test -n "$UNZIP" && break 17032 done 17033 17034 else 17035 # The variable is set, but is it from the command line or the environment? 17036 17037 # Try to remove the string !UNZIP! from our list. 17038 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/} 17039 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17040 # If it failed, the variable was not from the command line. Ignore it, 17041 # but warn the user (except for BASH, which is always set by the calling BASH). 17042 if test "xUNZIP" != xBASH; then 17043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5 17044 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;} 17045 fi 17046 # Try to locate tool using the code snippet 17047 for ac_prog in unzip 17048 do 17049 # Extract the first word of "$ac_prog", so it can be a program name with args. 17050 set dummy $ac_prog; ac_word=$2 17051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17052 $as_echo_n "checking for $ac_word... " >&6; } 17053 if ${ac_cv_path_UNZIP+:} false; then : 17054 $as_echo_n "(cached) " >&6 17055 else 17056 case $UNZIP in 17057 [\\/]* | ?:[\\/]*) 17058 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 17059 ;; 17060 *) 17061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17062 for as_dir in $PATH 17063 do 17064 IFS=$as_save_IFS 17065 test -z "$as_dir" && as_dir=. 17066 for ac_exec_ext in '' $ac_executable_extensions; do 17067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17068 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 17069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17070 break 2 17071 fi 17072 done 17073 done 17074 IFS=$as_save_IFS 17075 17076 ;; 17077 esac 17078 fi 17079 UNZIP=$ac_cv_path_UNZIP 17080 if test -n "$UNZIP"; then 17081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 17082 $as_echo "$UNZIP" >&6; } 17083 else 17084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17085 $as_echo "no" >&6; } 17086 fi 17087 17088 17089 test -n "$UNZIP" && break 17090 done 17091 17092 else 17093 # If it succeeded, then it was overridden by the user. We will use it 17094 # for the tool. 17095 17096 # First remove it from the list of overridden variables, so we can test 17097 # for unknown variables in the end. 17098 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 17099 17100 # Check if the provided tool contains a complete path. 17101 tool_specified="$UNZIP" 17102 tool_basename="${tool_specified##*/}" 17103 if test "x$tool_basename" = "x$tool_specified"; then 17104 # A command without a complete path is provided, search $PATH. 17105 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5 17106 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;} 17107 # Extract the first word of "$tool_basename", so it can be a program name with args. 17108 set dummy $tool_basename; ac_word=$2 17109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17110 $as_echo_n "checking for $ac_word... " >&6; } 17111 if ${ac_cv_path_UNZIP+:} false; then : 17112 $as_echo_n "(cached) " >&6 17113 else 17114 case $UNZIP in 17115 [\\/]* | ?:[\\/]*) 17116 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 17117 ;; 17118 *) 17119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17120 for as_dir in $PATH 17121 do 17122 IFS=$as_save_IFS 17123 test -z "$as_dir" && as_dir=. 17124 for ac_exec_ext in '' $ac_executable_extensions; do 17125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17126 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 17127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17128 break 2 17129 fi 17130 done 17131 done 17132 IFS=$as_save_IFS 17133 17134 ;; 17135 esac 17136 fi 17137 UNZIP=$ac_cv_path_UNZIP 17138 if test -n "$UNZIP"; then 17139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 17140 $as_echo "$UNZIP" >&6; } 17141 else 17142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17143 $as_echo "no" >&6; } 17144 fi 17145 17146 17147 if test "x$UNZIP" = x; then 17148 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 17149 fi 17150 else 17151 # Otherwise we believe it is a complete path. Use it as it is. 17152 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5 17153 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;} 17154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5 17155 $as_echo_n "checking for UNZIP... " >&6; } 17156 if test ! -x "$tool_specified"; then 17157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 17158 $as_echo "not found" >&6; } 17159 as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 17160 fi 17161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 17162 $as_echo "$tool_specified" >&6; } 17163 fi 17164 fi 17165 fi 17166 17167 17168 17169 if test "x$UNZIP" = x; then 17170 as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5 17171 fi 17172 17173 17174 17175 17176 17177 # Publish this variable in the help. 17178 17179 17180 if test "x$ZIP" = x; then 17181 # The variable is not set by user, try to locate tool using the code snippet 17182 for ac_prog in zip 17183 do 17184 # Extract the first word of "$ac_prog", so it can be a program name with args. 17185 set dummy $ac_prog; ac_word=$2 17186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17187 $as_echo_n "checking for $ac_word... " >&6; } 17188 if ${ac_cv_path_ZIP+:} false; then : 17189 $as_echo_n "(cached) " >&6 17190 else 17191 case $ZIP in 17192 [\\/]* | ?:[\\/]*) 17193 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 17194 ;; 17195 *) 17196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17197 for as_dir in $PATH 17198 do 17199 IFS=$as_save_IFS 17200 test -z "$as_dir" && as_dir=. 17201 for ac_exec_ext in '' $ac_executable_extensions; do 17202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17203 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 17204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17205 break 2 17206 fi 17207 done 17208 done 17209 IFS=$as_save_IFS 17210 17211 ;; 17212 esac 17213 fi 17214 ZIP=$ac_cv_path_ZIP 17215 if test -n "$ZIP"; then 17216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 17217 $as_echo "$ZIP" >&6; } 17218 else 17219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17220 $as_echo "no" >&6; } 17221 fi 17222 17223 17224 test -n "$ZIP" && break 17225 done 17226 17227 else 17228 # The variable is set, but is it from the command line or the environment? 17229 17230 # Try to remove the string !ZIP! from our list. 17231 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIP!/} 17232 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17233 # If it failed, the variable was not from the command line. Ignore it, 17234 # but warn the user (except for BASH, which is always set by the calling BASH). 17235 if test "xZIP" != xBASH; then 17236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&5 17237 $as_echo "$as_me: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&2;} 17238 fi 17239 # Try to locate tool using the code snippet 17240 for ac_prog in zip 17241 do 17242 # Extract the first word of "$ac_prog", so it can be a program name with args. 17243 set dummy $ac_prog; ac_word=$2 17244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17245 $as_echo_n "checking for $ac_word... " >&6; } 17246 if ${ac_cv_path_ZIP+:} false; then : 17247 $as_echo_n "(cached) " >&6 17248 else 17249 case $ZIP in 17250 [\\/]* | ?:[\\/]*) 17251 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 17252 ;; 17253 *) 17254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17255 for as_dir in $PATH 17256 do 17257 IFS=$as_save_IFS 17258 test -z "$as_dir" && as_dir=. 17259 for ac_exec_ext in '' $ac_executable_extensions; do 17260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17261 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 17262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17263 break 2 17264 fi 17265 done 17266 done 17267 IFS=$as_save_IFS 17268 17269 ;; 17270 esac 17271 fi 17272 ZIP=$ac_cv_path_ZIP 17273 if test -n "$ZIP"; then 17274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 17275 $as_echo "$ZIP" >&6; } 17276 else 17277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17278 $as_echo "no" >&6; } 17279 fi 17280 17281 17282 test -n "$ZIP" && break 17283 done 17284 17285 else 17286 # If it succeeded, then it was overridden by the user. We will use it 17287 # for the tool. 17288 17289 # First remove it from the list of overridden variables, so we can test 17290 # for unknown variables in the end. 17291 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 17292 17293 # Check if the provided tool contains a complete path. 17294 tool_specified="$ZIP" 17295 tool_basename="${tool_specified##*/}" 17296 if test "x$tool_basename" = "x$tool_specified"; then 17297 # A command without a complete path is provided, search $PATH. 17298 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIP=$tool_basename" >&5 17299 $as_echo "$as_me: Will search for user supplied tool ZIP=$tool_basename" >&6;} 17300 # Extract the first word of "$tool_basename", so it can be a program name with args. 17301 set dummy $tool_basename; ac_word=$2 17302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17303 $as_echo_n "checking for $ac_word... " >&6; } 17304 if ${ac_cv_path_ZIP+:} false; then : 17305 $as_echo_n "(cached) " >&6 17306 else 17307 case $ZIP in 17308 [\\/]* | ?:[\\/]*) 17309 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 17310 ;; 17311 *) 17312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17313 for as_dir in $PATH 17314 do 17315 IFS=$as_save_IFS 17316 test -z "$as_dir" && as_dir=. 17317 for ac_exec_ext in '' $ac_executable_extensions; do 17318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17319 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 17320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17321 break 2 17322 fi 17323 done 17324 done 17325 IFS=$as_save_IFS 17326 17327 ;; 17328 esac 17329 fi 17330 ZIP=$ac_cv_path_ZIP 17331 if test -n "$ZIP"; then 17332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 17333 $as_echo "$ZIP" >&6; } 17334 else 17335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17336 $as_echo "no" >&6; } 17337 fi 17338 17339 17340 if test "x$ZIP" = x; then 17341 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 17342 fi 17343 else 17344 # Otherwise we believe it is a complete path. Use it as it is. 17345 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIP=$tool_specified" >&5 17346 $as_echo "$as_me: Will use user supplied tool ZIP=$tool_specified" >&6;} 17347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5 17348 $as_echo_n "checking for ZIP... " >&6; } 17349 if test ! -x "$tool_specified"; then 17350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 17351 $as_echo "not found" >&6; } 17352 as_fn_error $? "User supplied tool ZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 17353 fi 17354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 17355 $as_echo "$tool_specified" >&6; } 17356 fi 17357 fi 17358 fi 17359 17360 17361 17362 if test "x$ZIP" = x; then 17363 as_fn_error $? "Could not find required tool for ZIP" "$LINENO" 5 17364 fi 17365 17366 17367 17368 # Non-required basic tools 17369 17370 17371 17372 # Publish this variable in the help. 17373 17374 17375 if test "x$LDD" = x; then 17376 # The variable is not set by user, try to locate tool using the code snippet 17377 for ac_prog in ldd 17378 do 17379 # Extract the first word of "$ac_prog", so it can be a program name with args. 17380 set dummy $ac_prog; ac_word=$2 17381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17382 $as_echo_n "checking for $ac_word... " >&6; } 17383 if ${ac_cv_path_LDD+:} false; then : 17384 $as_echo_n "(cached) " >&6 17385 else 17386 case $LDD in 17387 [\\/]* | ?:[\\/]*) 17388 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 17389 ;; 17390 *) 17391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17392 for as_dir in $PATH 17393 do 17394 IFS=$as_save_IFS 17395 test -z "$as_dir" && as_dir=. 17396 for ac_exec_ext in '' $ac_executable_extensions; do 17397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17398 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 17399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17400 break 2 17401 fi 17402 done 17403 done 17404 IFS=$as_save_IFS 17405 17406 ;; 17407 esac 17408 fi 17409 LDD=$ac_cv_path_LDD 17410 if test -n "$LDD"; then 17411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 17412 $as_echo "$LDD" >&6; } 17413 else 17414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17415 $as_echo "no" >&6; } 17416 fi 17417 17418 17419 test -n "$LDD" && break 17420 done 17421 17422 else 17423 # The variable is set, but is it from the command line or the environment? 17424 17425 # Try to remove the string !LDD! from our list. 17426 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/} 17427 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17428 # If it failed, the variable was not from the command line. Ignore it, 17429 # but warn the user (except for BASH, which is always set by the calling BASH). 17430 if test "xLDD" != xBASH; then 17431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5 17432 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;} 17433 fi 17434 # Try to locate tool using the code snippet 17435 for ac_prog in ldd 17436 do 17437 # Extract the first word of "$ac_prog", so it can be a program name with args. 17438 set dummy $ac_prog; ac_word=$2 17439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17440 $as_echo_n "checking for $ac_word... " >&6; } 17441 if ${ac_cv_path_LDD+:} false; then : 17442 $as_echo_n "(cached) " >&6 17443 else 17444 case $LDD in 17445 [\\/]* | ?:[\\/]*) 17446 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 17447 ;; 17448 *) 17449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17450 for as_dir in $PATH 17451 do 17452 IFS=$as_save_IFS 17453 test -z "$as_dir" && as_dir=. 17454 for ac_exec_ext in '' $ac_executable_extensions; do 17455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17456 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 17457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17458 break 2 17459 fi 17460 done 17461 done 17462 IFS=$as_save_IFS 17463 17464 ;; 17465 esac 17466 fi 17467 LDD=$ac_cv_path_LDD 17468 if test -n "$LDD"; then 17469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 17470 $as_echo "$LDD" >&6; } 17471 else 17472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17473 $as_echo "no" >&6; } 17474 fi 17475 17476 17477 test -n "$LDD" && break 17478 done 17479 17480 else 17481 # If it succeeded, then it was overridden by the user. We will use it 17482 # for the tool. 17483 17484 # First remove it from the list of overridden variables, so we can test 17485 # for unknown variables in the end. 17486 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 17487 17488 # Check if the provided tool contains a complete path. 17489 tool_specified="$LDD" 17490 tool_basename="${tool_specified##*/}" 17491 if test "x$tool_basename" = "x$tool_specified"; then 17492 # A command without a complete path is provided, search $PATH. 17493 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5 17494 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;} 17495 # Extract the first word of "$tool_basename", so it can be a program name with args. 17496 set dummy $tool_basename; ac_word=$2 17497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17498 $as_echo_n "checking for $ac_word... " >&6; } 17499 if ${ac_cv_path_LDD+:} false; then : 17500 $as_echo_n "(cached) " >&6 17501 else 17502 case $LDD in 17503 [\\/]* | ?:[\\/]*) 17504 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 17505 ;; 17506 *) 17507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17508 for as_dir in $PATH 17509 do 17510 IFS=$as_save_IFS 17511 test -z "$as_dir" && as_dir=. 17512 for ac_exec_ext in '' $ac_executable_extensions; do 17513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17514 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 17515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17516 break 2 17517 fi 17518 done 17519 done 17520 IFS=$as_save_IFS 17521 17522 ;; 17523 esac 17524 fi 17525 LDD=$ac_cv_path_LDD 17526 if test -n "$LDD"; then 17527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 17528 $as_echo "$LDD" >&6; } 17529 else 17530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17531 $as_echo "no" >&6; } 17532 fi 17533 17534 17535 if test "x$LDD" = x; then 17536 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 17537 fi 17538 else 17539 # Otherwise we believe it is a complete path. Use it as it is. 17540 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5 17541 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;} 17542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5 17543 $as_echo_n "checking for LDD... " >&6; } 17544 if test ! -x "$tool_specified"; then 17545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 17546 $as_echo "not found" >&6; } 17547 as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5 17548 fi 17549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 17550 $as_echo "$tool_specified" >&6; } 17551 fi 17552 fi 17553 fi 17554 17555 17556 if test "x$LDD" = "x"; then 17557 # List shared lib dependencies is used for 17558 # debug output and checking for forbidden dependencies. 17559 # We can build without it. 17560 LDD="true" 17561 fi 17562 17563 17564 # Publish this variable in the help. 17565 17566 17567 if test "x$OTOOL" = x; then 17568 # The variable is not set by user, try to locate tool using the code snippet 17569 for ac_prog in otool 17570 do 17571 # Extract the first word of "$ac_prog", so it can be a program name with args. 17572 set dummy $ac_prog; ac_word=$2 17573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17574 $as_echo_n "checking for $ac_word... " >&6; } 17575 if ${ac_cv_path_OTOOL+:} false; then : 17576 $as_echo_n "(cached) " >&6 17577 else 17578 case $OTOOL in 17579 [\\/]* | ?:[\\/]*) 17580 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 17581 ;; 17582 *) 17583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17584 for as_dir in $PATH 17585 do 17586 IFS=$as_save_IFS 17587 test -z "$as_dir" && as_dir=. 17588 for ac_exec_ext in '' $ac_executable_extensions; do 17589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17590 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 17591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17592 break 2 17593 fi 17594 done 17595 done 17596 IFS=$as_save_IFS 17597 17598 ;; 17599 esac 17600 fi 17601 OTOOL=$ac_cv_path_OTOOL 17602 if test -n "$OTOOL"; then 17603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 17604 $as_echo "$OTOOL" >&6; } 17605 else 17606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17607 $as_echo "no" >&6; } 17608 fi 17609 17610 17611 test -n "$OTOOL" && break 17612 done 17613 17614 else 17615 # The variable is set, but is it from the command line or the environment? 17616 17617 # Try to remove the string !OTOOL! from our list. 17618 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OTOOL!/} 17619 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17620 # If it failed, the variable was not from the command line. Ignore it, 17621 # but warn the user (except for BASH, which is always set by the calling BASH). 17622 if test "xOTOOL" != xBASH; then 17623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&5 17624 $as_echo "$as_me: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&2;} 17625 fi 17626 # Try to locate tool using the code snippet 17627 for ac_prog in otool 17628 do 17629 # Extract the first word of "$ac_prog", so it can be a program name with args. 17630 set dummy $ac_prog; ac_word=$2 17631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17632 $as_echo_n "checking for $ac_word... " >&6; } 17633 if ${ac_cv_path_OTOOL+:} false; then : 17634 $as_echo_n "(cached) " >&6 17635 else 17636 case $OTOOL in 17637 [\\/]* | ?:[\\/]*) 17638 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 17639 ;; 17640 *) 17641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17642 for as_dir in $PATH 17643 do 17644 IFS=$as_save_IFS 17645 test -z "$as_dir" && as_dir=. 17646 for ac_exec_ext in '' $ac_executable_extensions; do 17647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17648 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 17649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17650 break 2 17651 fi 17652 done 17653 done 17654 IFS=$as_save_IFS 17655 17656 ;; 17657 esac 17658 fi 17659 OTOOL=$ac_cv_path_OTOOL 17660 if test -n "$OTOOL"; then 17661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 17662 $as_echo "$OTOOL" >&6; } 17663 else 17664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17665 $as_echo "no" >&6; } 17666 fi 17667 17668 17669 test -n "$OTOOL" && break 17670 done 17671 17672 else 17673 # If it succeeded, then it was overridden by the user. We will use it 17674 # for the tool. 17675 17676 # First remove it from the list of overridden variables, so we can test 17677 # for unknown variables in the end. 17678 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 17679 17680 # Check if the provided tool contains a complete path. 17681 tool_specified="$OTOOL" 17682 tool_basename="${tool_specified##*/}" 17683 if test "x$tool_basename" = "x$tool_specified"; then 17684 # A command without a complete path is provided, search $PATH. 17685 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OTOOL=$tool_basename" >&5 17686 $as_echo "$as_me: Will search for user supplied tool OTOOL=$tool_basename" >&6;} 17687 # Extract the first word of "$tool_basename", so it can be a program name with args. 17688 set dummy $tool_basename; ac_word=$2 17689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17690 $as_echo_n "checking for $ac_word... " >&6; } 17691 if ${ac_cv_path_OTOOL+:} false; then : 17692 $as_echo_n "(cached) " >&6 17693 else 17694 case $OTOOL in 17695 [\\/]* | ?:[\\/]*) 17696 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 17697 ;; 17698 *) 17699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17700 for as_dir in $PATH 17701 do 17702 IFS=$as_save_IFS 17703 test -z "$as_dir" && as_dir=. 17704 for ac_exec_ext in '' $ac_executable_extensions; do 17705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17706 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 17707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17708 break 2 17709 fi 17710 done 17711 done 17712 IFS=$as_save_IFS 17713 17714 ;; 17715 esac 17716 fi 17717 OTOOL=$ac_cv_path_OTOOL 17718 if test -n "$OTOOL"; then 17719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 17720 $as_echo "$OTOOL" >&6; } 17721 else 17722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17723 $as_echo "no" >&6; } 17724 fi 17725 17726 17727 if test "x$OTOOL" = x; then 17728 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 17729 fi 17730 else 17731 # Otherwise we believe it is a complete path. Use it as it is. 17732 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OTOOL=$tool_specified" >&5 17733 $as_echo "$as_me: Will use user supplied tool OTOOL=$tool_specified" >&6;} 17734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5 17735 $as_echo_n "checking for OTOOL... " >&6; } 17736 if test ! -x "$tool_specified"; then 17737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 17738 $as_echo "not found" >&6; } 17739 as_fn_error $? "User supplied tool OTOOL=$tool_specified does not exist or is not executable" "$LINENO" 5 17740 fi 17741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 17742 $as_echo "$tool_specified" >&6; } 17743 fi 17744 fi 17745 fi 17746 17747 17748 if test "x$OTOOL" = "x"; then 17749 OTOOL="true" 17750 fi 17751 17752 17753 # Publish this variable in the help. 17754 17755 17756 if test "x$READELF" = x; then 17757 # The variable is not set by user, try to locate tool using the code snippet 17758 for ac_prog in greadelf readelf 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_path_READELF+:} false; then : 17765 $as_echo_n "(cached) " >&6 17766 else 17767 case $READELF in 17768 [\\/]* | ?:[\\/]*) 17769 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 17770 ;; 17771 *) 17772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17773 for as_dir in $PATH 17774 do 17775 IFS=$as_save_IFS 17776 test -z "$as_dir" && as_dir=. 17777 for ac_exec_ext in '' $ac_executable_extensions; do 17778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17779 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 17780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17781 break 2 17782 fi 17783 done 17784 done 17785 IFS=$as_save_IFS 17786 17787 ;; 17788 esac 17789 fi 17790 READELF=$ac_cv_path_READELF 17791 if test -n "$READELF"; then 17792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 17793 $as_echo "$READELF" >&6; } 17794 else 17795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17796 $as_echo "no" >&6; } 17797 fi 17798 17799 17800 test -n "$READELF" && break 17801 done 17802 17803 else 17804 # The variable is set, but is it from the command line or the environment? 17805 17806 # Try to remove the string !READELF! from our list. 17807 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/} 17808 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17809 # If it failed, the variable was not from the command line. Ignore it, 17810 # but warn the user (except for BASH, which is always set by the calling BASH). 17811 if test "xREADELF" != xBASH; then 17812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5 17813 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;} 17814 fi 17815 # Try to locate tool using the code snippet 17816 for ac_prog in greadelf readelf 17817 do 17818 # Extract the first word of "$ac_prog", so it can be a program name with args. 17819 set dummy $ac_prog; ac_word=$2 17820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17821 $as_echo_n "checking for $ac_word... " >&6; } 17822 if ${ac_cv_path_READELF+:} false; then : 17823 $as_echo_n "(cached) " >&6 17824 else 17825 case $READELF in 17826 [\\/]* | ?:[\\/]*) 17827 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 17828 ;; 17829 *) 17830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17831 for as_dir in $PATH 17832 do 17833 IFS=$as_save_IFS 17834 test -z "$as_dir" && as_dir=. 17835 for ac_exec_ext in '' $ac_executable_extensions; do 17836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17837 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 17838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17839 break 2 17840 fi 17841 done 17842 done 17843 IFS=$as_save_IFS 17844 17845 ;; 17846 esac 17847 fi 17848 READELF=$ac_cv_path_READELF 17849 if test -n "$READELF"; then 17850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 17851 $as_echo "$READELF" >&6; } 17852 else 17853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17854 $as_echo "no" >&6; } 17855 fi 17856 17857 17858 test -n "$READELF" && break 17859 done 17860 17861 else 17862 # If it succeeded, then it was overridden by the user. We will use it 17863 # for the tool. 17864 17865 # First remove it from the list of overridden variables, so we can test 17866 # for unknown variables in the end. 17867 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 17868 17869 # Check if the provided tool contains a complete path. 17870 tool_specified="$READELF" 17871 tool_basename="${tool_specified##*/}" 17872 if test "x$tool_basename" = "x$tool_specified"; then 17873 # A command without a complete path is provided, search $PATH. 17874 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5 17875 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;} 17876 # Extract the first word of "$tool_basename", so it can be a program name with args. 17877 set dummy $tool_basename; ac_word=$2 17878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17879 $as_echo_n "checking for $ac_word... " >&6; } 17880 if ${ac_cv_path_READELF+:} false; then : 17881 $as_echo_n "(cached) " >&6 17882 else 17883 case $READELF in 17884 [\\/]* | ?:[\\/]*) 17885 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 17886 ;; 17887 *) 17888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17889 for as_dir in $PATH 17890 do 17891 IFS=$as_save_IFS 17892 test -z "$as_dir" && as_dir=. 17893 for ac_exec_ext in '' $ac_executable_extensions; do 17894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17895 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 17896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17897 break 2 17898 fi 17899 done 17900 done 17901 IFS=$as_save_IFS 17902 17903 ;; 17904 esac 17905 fi 17906 READELF=$ac_cv_path_READELF 17907 if test -n "$READELF"; then 17908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 17909 $as_echo "$READELF" >&6; } 17910 else 17911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17912 $as_echo "no" >&6; } 17913 fi 17914 17915 17916 if test "x$READELF" = x; then 17917 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 17918 fi 17919 else 17920 # Otherwise we believe it is a complete path. Use it as it is. 17921 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5 17922 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;} 17923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5 17924 $as_echo_n "checking for READELF... " >&6; } 17925 if test ! -x "$tool_specified"; then 17926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 17927 $as_echo "not found" >&6; } 17928 as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5 17929 fi 17930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 17931 $as_echo "$tool_specified" >&6; } 17932 fi 17933 fi 17934 fi 17935 17936 17937 17938 17939 # Publish this variable in the help. 17940 17941 17942 if test "x$HG" = x; then 17943 # The variable is not set by user, try to locate tool using the code snippet 17944 for ac_prog in hg 17945 do 17946 # Extract the first word of "$ac_prog", so it can be a program name with args. 17947 set dummy $ac_prog; ac_word=$2 17948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17949 $as_echo_n "checking for $ac_word... " >&6; } 17950 if ${ac_cv_path_HG+:} false; then : 17951 $as_echo_n "(cached) " >&6 17952 else 17953 case $HG in 17954 [\\/]* | ?:[\\/]*) 17955 ac_cv_path_HG="$HG" # Let the user override the test with a path. 17956 ;; 17957 *) 17958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17959 for as_dir in $PATH 17960 do 17961 IFS=$as_save_IFS 17962 test -z "$as_dir" && as_dir=. 17963 for ac_exec_ext in '' $ac_executable_extensions; do 17964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17965 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 17966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17967 break 2 17968 fi 17969 done 17970 done 17971 IFS=$as_save_IFS 17972 17973 ;; 17974 esac 17975 fi 17976 HG=$ac_cv_path_HG 17977 if test -n "$HG"; then 17978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 17979 $as_echo "$HG" >&6; } 17980 else 17981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17982 $as_echo "no" >&6; } 17983 fi 17984 17985 17986 test -n "$HG" && break 17987 done 17988 17989 else 17990 # The variable is set, but is it from the command line or the environment? 17991 17992 # Try to remove the string !HG! from our list. 17993 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/} 17994 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17995 # If it failed, the variable was not from the command line. Ignore it, 17996 # but warn the user (except for BASH, which is always set by the calling BASH). 17997 if test "xHG" != xBASH; then 17998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5 17999 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;} 18000 fi 18001 # Try to locate tool using the code snippet 18002 for ac_prog in hg 18003 do 18004 # Extract the first word of "$ac_prog", so it can be a program name with args. 18005 set dummy $ac_prog; ac_word=$2 18006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18007 $as_echo_n "checking for $ac_word... " >&6; } 18008 if ${ac_cv_path_HG+:} false; then : 18009 $as_echo_n "(cached) " >&6 18010 else 18011 case $HG in 18012 [\\/]* | ?:[\\/]*) 18013 ac_cv_path_HG="$HG" # Let the user override the test with a path. 18014 ;; 18015 *) 18016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18017 for as_dir in $PATH 18018 do 18019 IFS=$as_save_IFS 18020 test -z "$as_dir" && as_dir=. 18021 for ac_exec_ext in '' $ac_executable_extensions; do 18022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18023 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 18024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18025 break 2 18026 fi 18027 done 18028 done 18029 IFS=$as_save_IFS 18030 18031 ;; 18032 esac 18033 fi 18034 HG=$ac_cv_path_HG 18035 if test -n "$HG"; then 18036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 18037 $as_echo "$HG" >&6; } 18038 else 18039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18040 $as_echo "no" >&6; } 18041 fi 18042 18043 18044 test -n "$HG" && break 18045 done 18046 18047 else 18048 # If it succeeded, then it was overridden by the user. We will use it 18049 # for the tool. 18050 18051 # First remove it from the list of overridden variables, so we can test 18052 # for unknown variables in the end. 18053 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18054 18055 # Check if the provided tool contains a complete path. 18056 tool_specified="$HG" 18057 tool_basename="${tool_specified##*/}" 18058 if test "x$tool_basename" = "x$tool_specified"; then 18059 # A command without a complete path is provided, search $PATH. 18060 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5 18061 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;} 18062 # Extract the first word of "$tool_basename", so it can be a program name with args. 18063 set dummy $tool_basename; ac_word=$2 18064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18065 $as_echo_n "checking for $ac_word... " >&6; } 18066 if ${ac_cv_path_HG+:} false; then : 18067 $as_echo_n "(cached) " >&6 18068 else 18069 case $HG in 18070 [\\/]* | ?:[\\/]*) 18071 ac_cv_path_HG="$HG" # Let the user override the test with a path. 18072 ;; 18073 *) 18074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18075 for as_dir in $PATH 18076 do 18077 IFS=$as_save_IFS 18078 test -z "$as_dir" && as_dir=. 18079 for ac_exec_ext in '' $ac_executable_extensions; do 18080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18081 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 18082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18083 break 2 18084 fi 18085 done 18086 done 18087 IFS=$as_save_IFS 18088 18089 ;; 18090 esac 18091 fi 18092 HG=$ac_cv_path_HG 18093 if test -n "$HG"; then 18094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 18095 $as_echo "$HG" >&6; } 18096 else 18097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18098 $as_echo "no" >&6; } 18099 fi 18100 18101 18102 if test "x$HG" = x; then 18103 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18104 fi 18105 else 18106 # Otherwise we believe it is a complete path. Use it as it is. 18107 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5 18108 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;} 18109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5 18110 $as_echo_n "checking for HG... " >&6; } 18111 if test ! -x "$tool_specified"; then 18112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18113 $as_echo "not found" >&6; } 18114 as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5 18115 fi 18116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18117 $as_echo "$tool_specified" >&6; } 18118 fi 18119 fi 18120 fi 18121 18122 18123 18124 18125 # Publish this variable in the help. 18126 18127 18128 if test "x$STAT" = x; then 18129 # The variable is not set by user, try to locate tool using the code snippet 18130 for ac_prog in stat 18131 do 18132 # Extract the first word of "$ac_prog", so it can be a program name with args. 18133 set dummy $ac_prog; ac_word=$2 18134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18135 $as_echo_n "checking for $ac_word... " >&6; } 18136 if ${ac_cv_path_STAT+:} false; then : 18137 $as_echo_n "(cached) " >&6 18138 else 18139 case $STAT in 18140 [\\/]* | ?:[\\/]*) 18141 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 18142 ;; 18143 *) 18144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18145 for as_dir in $PATH 18146 do 18147 IFS=$as_save_IFS 18148 test -z "$as_dir" && as_dir=. 18149 for ac_exec_ext in '' $ac_executable_extensions; do 18150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18151 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 18152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18153 break 2 18154 fi 18155 done 18156 done 18157 IFS=$as_save_IFS 18158 18159 ;; 18160 esac 18161 fi 18162 STAT=$ac_cv_path_STAT 18163 if test -n "$STAT"; then 18164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 18165 $as_echo "$STAT" >&6; } 18166 else 18167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18168 $as_echo "no" >&6; } 18169 fi 18170 18171 18172 test -n "$STAT" && break 18173 done 18174 18175 else 18176 # The variable is set, but is it from the command line or the environment? 18177 18178 # Try to remove the string !STAT! from our list. 18179 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/} 18180 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18181 # If it failed, the variable was not from the command line. Ignore it, 18182 # but warn the user (except for BASH, which is always set by the calling BASH). 18183 if test "xSTAT" != xBASH; then 18184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5 18185 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;} 18186 fi 18187 # Try to locate tool using the code snippet 18188 for ac_prog in stat 18189 do 18190 # Extract the first word of "$ac_prog", so it can be a program name with args. 18191 set dummy $ac_prog; ac_word=$2 18192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18193 $as_echo_n "checking for $ac_word... " >&6; } 18194 if ${ac_cv_path_STAT+:} false; then : 18195 $as_echo_n "(cached) " >&6 18196 else 18197 case $STAT in 18198 [\\/]* | ?:[\\/]*) 18199 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 18200 ;; 18201 *) 18202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18203 for as_dir in $PATH 18204 do 18205 IFS=$as_save_IFS 18206 test -z "$as_dir" && as_dir=. 18207 for ac_exec_ext in '' $ac_executable_extensions; do 18208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18209 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 18210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18211 break 2 18212 fi 18213 done 18214 done 18215 IFS=$as_save_IFS 18216 18217 ;; 18218 esac 18219 fi 18220 STAT=$ac_cv_path_STAT 18221 if test -n "$STAT"; then 18222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 18223 $as_echo "$STAT" >&6; } 18224 else 18225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18226 $as_echo "no" >&6; } 18227 fi 18228 18229 18230 test -n "$STAT" && break 18231 done 18232 18233 else 18234 # If it succeeded, then it was overridden by the user. We will use it 18235 # for the tool. 18236 18237 # First remove it from the list of overridden variables, so we can test 18238 # for unknown variables in the end. 18239 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18240 18241 # Check if the provided tool contains a complete path. 18242 tool_specified="$STAT" 18243 tool_basename="${tool_specified##*/}" 18244 if test "x$tool_basename" = "x$tool_specified"; then 18245 # A command without a complete path is provided, search $PATH. 18246 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5 18247 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;} 18248 # Extract the first word of "$tool_basename", so it can be a program name with args. 18249 set dummy $tool_basename; ac_word=$2 18250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18251 $as_echo_n "checking for $ac_word... " >&6; } 18252 if ${ac_cv_path_STAT+:} false; then : 18253 $as_echo_n "(cached) " >&6 18254 else 18255 case $STAT in 18256 [\\/]* | ?:[\\/]*) 18257 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 18258 ;; 18259 *) 18260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18261 for as_dir in $PATH 18262 do 18263 IFS=$as_save_IFS 18264 test -z "$as_dir" && as_dir=. 18265 for ac_exec_ext in '' $ac_executable_extensions; do 18266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18267 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 18268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18269 break 2 18270 fi 18271 done 18272 done 18273 IFS=$as_save_IFS 18274 18275 ;; 18276 esac 18277 fi 18278 STAT=$ac_cv_path_STAT 18279 if test -n "$STAT"; then 18280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 18281 $as_echo "$STAT" >&6; } 18282 else 18283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18284 $as_echo "no" >&6; } 18285 fi 18286 18287 18288 if test "x$STAT" = x; then 18289 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18290 fi 18291 else 18292 # Otherwise we believe it is a complete path. Use it as it is. 18293 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5 18294 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;} 18295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5 18296 $as_echo_n "checking for STAT... " >&6; } 18297 if test ! -x "$tool_specified"; then 18298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18299 $as_echo "not found" >&6; } 18300 as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5 18301 fi 18302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18303 $as_echo "$tool_specified" >&6; } 18304 fi 18305 fi 18306 fi 18307 18308 18309 18310 18311 # Publish this variable in the help. 18312 18313 18314 if test "x$TIME" = x; then 18315 # The variable is not set by user, try to locate tool using the code snippet 18316 for ac_prog in time 18317 do 18318 # Extract the first word of "$ac_prog", so it can be a program name with args. 18319 set dummy $ac_prog; ac_word=$2 18320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18321 $as_echo_n "checking for $ac_word... " >&6; } 18322 if ${ac_cv_path_TIME+:} false; then : 18323 $as_echo_n "(cached) " >&6 18324 else 18325 case $TIME in 18326 [\\/]* | ?:[\\/]*) 18327 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 18328 ;; 18329 *) 18330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18331 for as_dir in $PATH 18332 do 18333 IFS=$as_save_IFS 18334 test -z "$as_dir" && as_dir=. 18335 for ac_exec_ext in '' $ac_executable_extensions; do 18336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18337 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 18338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18339 break 2 18340 fi 18341 done 18342 done 18343 IFS=$as_save_IFS 18344 18345 ;; 18346 esac 18347 fi 18348 TIME=$ac_cv_path_TIME 18349 if test -n "$TIME"; then 18350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 18351 $as_echo "$TIME" >&6; } 18352 else 18353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18354 $as_echo "no" >&6; } 18355 fi 18356 18357 18358 test -n "$TIME" && break 18359 done 18360 18361 else 18362 # The variable is set, but is it from the command line or the environment? 18363 18364 # Try to remove the string !TIME! from our list. 18365 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/} 18366 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18367 # If it failed, the variable was not from the command line. Ignore it, 18368 # but warn the user (except for BASH, which is always set by the calling BASH). 18369 if test "xTIME" != xBASH; then 18370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5 18371 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;} 18372 fi 18373 # Try to locate tool using the code snippet 18374 for ac_prog in time 18375 do 18376 # Extract the first word of "$ac_prog", so it can be a program name with args. 18377 set dummy $ac_prog; ac_word=$2 18378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18379 $as_echo_n "checking for $ac_word... " >&6; } 18380 if ${ac_cv_path_TIME+:} false; then : 18381 $as_echo_n "(cached) " >&6 18382 else 18383 case $TIME in 18384 [\\/]* | ?:[\\/]*) 18385 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 18386 ;; 18387 *) 18388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18389 for as_dir in $PATH 18390 do 18391 IFS=$as_save_IFS 18392 test -z "$as_dir" && as_dir=. 18393 for ac_exec_ext in '' $ac_executable_extensions; do 18394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18395 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 18396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18397 break 2 18398 fi 18399 done 18400 done 18401 IFS=$as_save_IFS 18402 18403 ;; 18404 esac 18405 fi 18406 TIME=$ac_cv_path_TIME 18407 if test -n "$TIME"; then 18408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 18409 $as_echo "$TIME" >&6; } 18410 else 18411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18412 $as_echo "no" >&6; } 18413 fi 18414 18415 18416 test -n "$TIME" && break 18417 done 18418 18419 else 18420 # If it succeeded, then it was overridden by the user. We will use it 18421 # for the tool. 18422 18423 # First remove it from the list of overridden variables, so we can test 18424 # for unknown variables in the end. 18425 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18426 18427 # Check if the provided tool contains a complete path. 18428 tool_specified="$TIME" 18429 tool_basename="${tool_specified##*/}" 18430 if test "x$tool_basename" = "x$tool_specified"; then 18431 # A command without a complete path is provided, search $PATH. 18432 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5 18433 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;} 18434 # Extract the first word of "$tool_basename", so it can be a program name with args. 18435 set dummy $tool_basename; ac_word=$2 18436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18437 $as_echo_n "checking for $ac_word... " >&6; } 18438 if ${ac_cv_path_TIME+:} false; then : 18439 $as_echo_n "(cached) " >&6 18440 else 18441 case $TIME in 18442 [\\/]* | ?:[\\/]*) 18443 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 18444 ;; 18445 *) 18446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18447 for as_dir in $PATH 18448 do 18449 IFS=$as_save_IFS 18450 test -z "$as_dir" && as_dir=. 18451 for ac_exec_ext in '' $ac_executable_extensions; do 18452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18453 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 18454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18455 break 2 18456 fi 18457 done 18458 done 18459 IFS=$as_save_IFS 18460 18461 ;; 18462 esac 18463 fi 18464 TIME=$ac_cv_path_TIME 18465 if test -n "$TIME"; then 18466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 18467 $as_echo "$TIME" >&6; } 18468 else 18469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18470 $as_echo "no" >&6; } 18471 fi 18472 18473 18474 if test "x$TIME" = x; then 18475 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18476 fi 18477 else 18478 # Otherwise we believe it is a complete path. Use it as it is. 18479 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5 18480 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;} 18481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5 18482 $as_echo_n "checking for TIME... " >&6; } 18483 if test ! -x "$tool_specified"; then 18484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18485 $as_echo "not found" >&6; } 18486 as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5 18487 fi 18488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18489 $as_echo "$tool_specified" >&6; } 18490 fi 18491 fi 18492 fi 18493 18494 18495 # Check if it's GNU time 18496 IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'` 18497 if test "x$IS_GNU_TIME" != x; then 18498 IS_GNU_TIME=yes 18499 else 18500 IS_GNU_TIME=no 18501 fi 18502 18503 18504 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 18505 18506 18507 18508 # Publish this variable in the help. 18509 18510 18511 if test "x$COMM" = x; then 18512 # The variable is not set by user, try to locate tool using the code snippet 18513 for ac_prog in comm 18514 do 18515 # Extract the first word of "$ac_prog", so it can be a program name with args. 18516 set dummy $ac_prog; ac_word=$2 18517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18518 $as_echo_n "checking for $ac_word... " >&6; } 18519 if ${ac_cv_path_COMM+:} false; then : 18520 $as_echo_n "(cached) " >&6 18521 else 18522 case $COMM in 18523 [\\/]* | ?:[\\/]*) 18524 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 18525 ;; 18526 *) 18527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18528 for as_dir in $PATH 18529 do 18530 IFS=$as_save_IFS 18531 test -z "$as_dir" && as_dir=. 18532 for ac_exec_ext in '' $ac_executable_extensions; do 18533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18534 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 18535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18536 break 2 18537 fi 18538 done 18539 done 18540 IFS=$as_save_IFS 18541 18542 ;; 18543 esac 18544 fi 18545 COMM=$ac_cv_path_COMM 18546 if test -n "$COMM"; then 18547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 18548 $as_echo "$COMM" >&6; } 18549 else 18550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18551 $as_echo "no" >&6; } 18552 fi 18553 18554 18555 test -n "$COMM" && break 18556 done 18557 18558 else 18559 # The variable is set, but is it from the command line or the environment? 18560 18561 # Try to remove the string !COMM! from our list. 18562 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/} 18563 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18564 # If it failed, the variable was not from the command line. Ignore it, 18565 # but warn the user (except for BASH, which is always set by the calling BASH). 18566 if test "xCOMM" != xBASH; then 18567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5 18568 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;} 18569 fi 18570 # Try to locate tool using the code snippet 18571 for ac_prog in comm 18572 do 18573 # Extract the first word of "$ac_prog", so it can be a program name with args. 18574 set dummy $ac_prog; ac_word=$2 18575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18576 $as_echo_n "checking for $ac_word... " >&6; } 18577 if ${ac_cv_path_COMM+:} false; then : 18578 $as_echo_n "(cached) " >&6 18579 else 18580 case $COMM in 18581 [\\/]* | ?:[\\/]*) 18582 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 18583 ;; 18584 *) 18585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18586 for as_dir in $PATH 18587 do 18588 IFS=$as_save_IFS 18589 test -z "$as_dir" && as_dir=. 18590 for ac_exec_ext in '' $ac_executable_extensions; do 18591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18592 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 18593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18594 break 2 18595 fi 18596 done 18597 done 18598 IFS=$as_save_IFS 18599 18600 ;; 18601 esac 18602 fi 18603 COMM=$ac_cv_path_COMM 18604 if test -n "$COMM"; then 18605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 18606 $as_echo "$COMM" >&6; } 18607 else 18608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18609 $as_echo "no" >&6; } 18610 fi 18611 18612 18613 test -n "$COMM" && break 18614 done 18615 18616 else 18617 # If it succeeded, then it was overridden by the user. We will use it 18618 # for the tool. 18619 18620 # First remove it from the list of overridden variables, so we can test 18621 # for unknown variables in the end. 18622 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18623 18624 # Check if the provided tool contains a complete path. 18625 tool_specified="$COMM" 18626 tool_basename="${tool_specified##*/}" 18627 if test "x$tool_basename" = "x$tool_specified"; then 18628 # A command without a complete path is provided, search $PATH. 18629 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5 18630 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;} 18631 # Extract the first word of "$tool_basename", so it can be a program name with args. 18632 set dummy $tool_basename; ac_word=$2 18633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18634 $as_echo_n "checking for $ac_word... " >&6; } 18635 if ${ac_cv_path_COMM+:} false; then : 18636 $as_echo_n "(cached) " >&6 18637 else 18638 case $COMM in 18639 [\\/]* | ?:[\\/]*) 18640 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 18641 ;; 18642 *) 18643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18644 for as_dir in $PATH 18645 do 18646 IFS=$as_save_IFS 18647 test -z "$as_dir" && as_dir=. 18648 for ac_exec_ext in '' $ac_executable_extensions; do 18649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18650 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 18651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18652 break 2 18653 fi 18654 done 18655 done 18656 IFS=$as_save_IFS 18657 18658 ;; 18659 esac 18660 fi 18661 COMM=$ac_cv_path_COMM 18662 if test -n "$COMM"; then 18663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 18664 $as_echo "$COMM" >&6; } 18665 else 18666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18667 $as_echo "no" >&6; } 18668 fi 18669 18670 18671 if test "x$COMM" = x; then 18672 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18673 fi 18674 else 18675 # Otherwise we believe it is a complete path. Use it as it is. 18676 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5 18677 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;} 18678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5 18679 $as_echo_n "checking for COMM... " >&6; } 18680 if test ! -x "$tool_specified"; then 18681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18682 $as_echo "not found" >&6; } 18683 as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5 18684 fi 18685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18686 $as_echo "$tool_specified" >&6; } 18687 fi 18688 fi 18689 fi 18690 18691 18692 18693 if test "x$COMM" = x; then 18694 as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5 18695 fi 18696 18697 18698 fi 18699 18700 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 18701 18702 18703 18704 # Publish this variable in the help. 18705 18706 18707 if test "x$DSYMUTIL" = x; then 18708 # The variable is not set by user, try to locate tool using the code snippet 18709 for ac_prog in dsymutil 18710 do 18711 # Extract the first word of "$ac_prog", so it can be a program name with args. 18712 set dummy $ac_prog; ac_word=$2 18713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18714 $as_echo_n "checking for $ac_word... " >&6; } 18715 if ${ac_cv_path_DSYMUTIL+:} false; then : 18716 $as_echo_n "(cached) " >&6 18717 else 18718 case $DSYMUTIL in 18719 [\\/]* | ?:[\\/]*) 18720 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 18721 ;; 18722 *) 18723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18724 for as_dir in $PATH 18725 do 18726 IFS=$as_save_IFS 18727 test -z "$as_dir" && as_dir=. 18728 for ac_exec_ext in '' $ac_executable_extensions; do 18729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18730 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 18731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18732 break 2 18733 fi 18734 done 18735 done 18736 IFS=$as_save_IFS 18737 18738 ;; 18739 esac 18740 fi 18741 DSYMUTIL=$ac_cv_path_DSYMUTIL 18742 if test -n "$DSYMUTIL"; then 18743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 18744 $as_echo "$DSYMUTIL" >&6; } 18745 else 18746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18747 $as_echo "no" >&6; } 18748 fi 18749 18750 18751 test -n "$DSYMUTIL" && break 18752 done 18753 18754 else 18755 # The variable is set, but is it from the command line or the environment? 18756 18757 # Try to remove the string !DSYMUTIL! from our list. 18758 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/} 18759 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18760 # If it failed, the variable was not from the command line. Ignore it, 18761 # but warn the user (except for BASH, which is always set by the calling BASH). 18762 if test "xDSYMUTIL" != xBASH; then 18763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5 18764 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;} 18765 fi 18766 # Try to locate tool using the code snippet 18767 for ac_prog in dsymutil 18768 do 18769 # Extract the first word of "$ac_prog", so it can be a program name with args. 18770 set dummy $ac_prog; ac_word=$2 18771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18772 $as_echo_n "checking for $ac_word... " >&6; } 18773 if ${ac_cv_path_DSYMUTIL+:} false; then : 18774 $as_echo_n "(cached) " >&6 18775 else 18776 case $DSYMUTIL in 18777 [\\/]* | ?:[\\/]*) 18778 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 18779 ;; 18780 *) 18781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18782 for as_dir in $PATH 18783 do 18784 IFS=$as_save_IFS 18785 test -z "$as_dir" && as_dir=. 18786 for ac_exec_ext in '' $ac_executable_extensions; do 18787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18788 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 18789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18790 break 2 18791 fi 18792 done 18793 done 18794 IFS=$as_save_IFS 18795 18796 ;; 18797 esac 18798 fi 18799 DSYMUTIL=$ac_cv_path_DSYMUTIL 18800 if test -n "$DSYMUTIL"; then 18801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 18802 $as_echo "$DSYMUTIL" >&6; } 18803 else 18804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18805 $as_echo "no" >&6; } 18806 fi 18807 18808 18809 test -n "$DSYMUTIL" && break 18810 done 18811 18812 else 18813 # If it succeeded, then it was overridden by the user. We will use it 18814 # for the tool. 18815 18816 # First remove it from the list of overridden variables, so we can test 18817 # for unknown variables in the end. 18818 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18819 18820 # Check if the provided tool contains a complete path. 18821 tool_specified="$DSYMUTIL" 18822 tool_basename="${tool_specified##*/}" 18823 if test "x$tool_basename" = "x$tool_specified"; then 18824 # A command without a complete path is provided, search $PATH. 18825 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5 18826 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;} 18827 # Extract the first word of "$tool_basename", so it can be a program name with args. 18828 set dummy $tool_basename; ac_word=$2 18829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18830 $as_echo_n "checking for $ac_word... " >&6; } 18831 if ${ac_cv_path_DSYMUTIL+:} false; then : 18832 $as_echo_n "(cached) " >&6 18833 else 18834 case $DSYMUTIL in 18835 [\\/]* | ?:[\\/]*) 18836 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 18837 ;; 18838 *) 18839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18840 for as_dir in $PATH 18841 do 18842 IFS=$as_save_IFS 18843 test -z "$as_dir" && as_dir=. 18844 for ac_exec_ext in '' $ac_executable_extensions; do 18845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18846 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 18847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18848 break 2 18849 fi 18850 done 18851 done 18852 IFS=$as_save_IFS 18853 18854 ;; 18855 esac 18856 fi 18857 DSYMUTIL=$ac_cv_path_DSYMUTIL 18858 if test -n "$DSYMUTIL"; then 18859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 18860 $as_echo "$DSYMUTIL" >&6; } 18861 else 18862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18863 $as_echo "no" >&6; } 18864 fi 18865 18866 18867 if test "x$DSYMUTIL" = x; then 18868 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18869 fi 18870 else 18871 # Otherwise we believe it is a complete path. Use it as it is. 18872 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5 18873 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;} 18874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5 18875 $as_echo_n "checking for DSYMUTIL... " >&6; } 18876 if test ! -x "$tool_specified"; then 18877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18878 $as_echo "not found" >&6; } 18879 as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5 18880 fi 18881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18882 $as_echo "$tool_specified" >&6; } 18883 fi 18884 fi 18885 fi 18886 18887 18888 18889 if test "x$DSYMUTIL" = x; then 18890 as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5 18891 fi 18892 18893 18894 18895 18896 18897 # Publish this variable in the help. 18898 18899 18900 if test "x$XATTR" = x; then 18901 # The variable is not set by user, try to locate tool using the code snippet 18902 for ac_prog in xattr 18903 do 18904 # Extract the first word of "$ac_prog", so it can be a program name with args. 18905 set dummy $ac_prog; ac_word=$2 18906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18907 $as_echo_n "checking for $ac_word... " >&6; } 18908 if ${ac_cv_path_XATTR+:} false; then : 18909 $as_echo_n "(cached) " >&6 18910 else 18911 case $XATTR in 18912 [\\/]* | ?:[\\/]*) 18913 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 18914 ;; 18915 *) 18916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18917 for as_dir in $PATH 18918 do 18919 IFS=$as_save_IFS 18920 test -z "$as_dir" && as_dir=. 18921 for ac_exec_ext in '' $ac_executable_extensions; do 18922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18923 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 18924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18925 break 2 18926 fi 18927 done 18928 done 18929 IFS=$as_save_IFS 18930 18931 ;; 18932 esac 18933 fi 18934 XATTR=$ac_cv_path_XATTR 18935 if test -n "$XATTR"; then 18936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 18937 $as_echo "$XATTR" >&6; } 18938 else 18939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18940 $as_echo "no" >&6; } 18941 fi 18942 18943 18944 test -n "$XATTR" && break 18945 done 18946 18947 else 18948 # The variable is set, but is it from the command line or the environment? 18949 18950 # Try to remove the string !XATTR! from our list. 18951 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/} 18952 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18953 # If it failed, the variable was not from the command line. Ignore it, 18954 # but warn the user (except for BASH, which is always set by the calling BASH). 18955 if test "xXATTR" != xBASH; then 18956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5 18957 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;} 18958 fi 18959 # Try to locate tool using the code snippet 18960 for ac_prog in xattr 18961 do 18962 # Extract the first word of "$ac_prog", so it can be a program name with args. 18963 set dummy $ac_prog; ac_word=$2 18964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18965 $as_echo_n "checking for $ac_word... " >&6; } 18966 if ${ac_cv_path_XATTR+:} false; then : 18967 $as_echo_n "(cached) " >&6 18968 else 18969 case $XATTR in 18970 [\\/]* | ?:[\\/]*) 18971 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 18972 ;; 18973 *) 18974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18975 for as_dir in $PATH 18976 do 18977 IFS=$as_save_IFS 18978 test -z "$as_dir" && as_dir=. 18979 for ac_exec_ext in '' $ac_executable_extensions; do 18980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18981 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 18982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18983 break 2 18984 fi 18985 done 18986 done 18987 IFS=$as_save_IFS 18988 18989 ;; 18990 esac 18991 fi 18992 XATTR=$ac_cv_path_XATTR 18993 if test -n "$XATTR"; then 18994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 18995 $as_echo "$XATTR" >&6; } 18996 else 18997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18998 $as_echo "no" >&6; } 18999 fi 19000 19001 19002 test -n "$XATTR" && break 19003 done 19004 19005 else 19006 # If it succeeded, then it was overridden by the user. We will use it 19007 # for the tool. 19008 19009 # First remove it from the list of overridden variables, so we can test 19010 # for unknown variables in the end. 19011 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 19012 19013 # Check if the provided tool contains a complete path. 19014 tool_specified="$XATTR" 19015 tool_basename="${tool_specified##*/}" 19016 if test "x$tool_basename" = "x$tool_specified"; then 19017 # A command without a complete path is provided, search $PATH. 19018 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5 19019 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;} 19020 # Extract the first word of "$tool_basename", so it can be a program name with args. 19021 set dummy $tool_basename; ac_word=$2 19022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19023 $as_echo_n "checking for $ac_word... " >&6; } 19024 if ${ac_cv_path_XATTR+:} false; then : 19025 $as_echo_n "(cached) " >&6 19026 else 19027 case $XATTR in 19028 [\\/]* | ?:[\\/]*) 19029 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 19030 ;; 19031 *) 19032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19033 for as_dir in $PATH 19034 do 19035 IFS=$as_save_IFS 19036 test -z "$as_dir" && as_dir=. 19037 for ac_exec_ext in '' $ac_executable_extensions; do 19038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19039 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 19040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19041 break 2 19042 fi 19043 done 19044 done 19045 IFS=$as_save_IFS 19046 19047 ;; 19048 esac 19049 fi 19050 XATTR=$ac_cv_path_XATTR 19051 if test -n "$XATTR"; then 19052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 19053 $as_echo "$XATTR" >&6; } 19054 else 19055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19056 $as_echo "no" >&6; } 19057 fi 19058 19059 19060 if test "x$XATTR" = x; then 19061 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 19062 fi 19063 else 19064 # Otherwise we believe it is a complete path. Use it as it is. 19065 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5 19066 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;} 19067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5 19068 $as_echo_n "checking for XATTR... " >&6; } 19069 if test ! -x "$tool_specified"; then 19070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 19071 $as_echo "not found" >&6; } 19072 as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5 19073 fi 19074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 19075 $as_echo "$tool_specified" >&6; } 19076 fi 19077 fi 19078 fi 19079 19080 19081 19082 if test "x$XATTR" = x; then 19083 as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5 19084 fi 19085 19086 19087 19088 19089 # Publish this variable in the help. 19090 19091 19092 if test "x$CODESIGN" = x; then 19093 # The variable is not set by user, try to locate tool using the code snippet 19094 for ac_prog in codesign 19095 do 19096 # Extract the first word of "$ac_prog", so it can be a program name with args. 19097 set dummy $ac_prog; ac_word=$2 19098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19099 $as_echo_n "checking for $ac_word... " >&6; } 19100 if ${ac_cv_path_CODESIGN+:} false; then : 19101 $as_echo_n "(cached) " >&6 19102 else 19103 case $CODESIGN in 19104 [\\/]* | ?:[\\/]*) 19105 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 19106 ;; 19107 *) 19108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19109 for as_dir in $PATH 19110 do 19111 IFS=$as_save_IFS 19112 test -z "$as_dir" && as_dir=. 19113 for ac_exec_ext in '' $ac_executable_extensions; do 19114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19115 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 19116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19117 break 2 19118 fi 19119 done 19120 done 19121 IFS=$as_save_IFS 19122 19123 ;; 19124 esac 19125 fi 19126 CODESIGN=$ac_cv_path_CODESIGN 19127 if test -n "$CODESIGN"; then 19128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 19129 $as_echo "$CODESIGN" >&6; } 19130 else 19131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19132 $as_echo "no" >&6; } 19133 fi 19134 19135 19136 test -n "$CODESIGN" && break 19137 done 19138 19139 else 19140 # The variable is set, but is it from the command line or the environment? 19141 19142 # Try to remove the string !CODESIGN! from our list. 19143 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/} 19144 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 19145 # If it failed, the variable was not from the command line. Ignore it, 19146 # but warn the user (except for BASH, which is always set by the calling BASH). 19147 if test "xCODESIGN" != xBASH; then 19148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5 19149 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;} 19150 fi 19151 # Try to locate tool using the code snippet 19152 for ac_prog in codesign 19153 do 19154 # Extract the first word of "$ac_prog", so it can be a program name with args. 19155 set dummy $ac_prog; ac_word=$2 19156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19157 $as_echo_n "checking for $ac_word... " >&6; } 19158 if ${ac_cv_path_CODESIGN+:} false; then : 19159 $as_echo_n "(cached) " >&6 19160 else 19161 case $CODESIGN in 19162 [\\/]* | ?:[\\/]*) 19163 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 19164 ;; 19165 *) 19166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19167 for as_dir in $PATH 19168 do 19169 IFS=$as_save_IFS 19170 test -z "$as_dir" && as_dir=. 19171 for ac_exec_ext in '' $ac_executable_extensions; do 19172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19173 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 19174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19175 break 2 19176 fi 19177 done 19178 done 19179 IFS=$as_save_IFS 19180 19181 ;; 19182 esac 19183 fi 19184 CODESIGN=$ac_cv_path_CODESIGN 19185 if test -n "$CODESIGN"; then 19186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 19187 $as_echo "$CODESIGN" >&6; } 19188 else 19189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19190 $as_echo "no" >&6; } 19191 fi 19192 19193 19194 test -n "$CODESIGN" && break 19195 done 19196 19197 else 19198 # If it succeeded, then it was overridden by the user. We will use it 19199 # for the tool. 19200 19201 # First remove it from the list of overridden variables, so we can test 19202 # for unknown variables in the end. 19203 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 19204 19205 # Check if the provided tool contains a complete path. 19206 tool_specified="$CODESIGN" 19207 tool_basename="${tool_specified##*/}" 19208 if test "x$tool_basename" = "x$tool_specified"; then 19209 # A command without a complete path is provided, search $PATH. 19210 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5 19211 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;} 19212 # Extract the first word of "$tool_basename", so it can be a program name with args. 19213 set dummy $tool_basename; ac_word=$2 19214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19215 $as_echo_n "checking for $ac_word... " >&6; } 19216 if ${ac_cv_path_CODESIGN+:} false; then : 19217 $as_echo_n "(cached) " >&6 19218 else 19219 case $CODESIGN in 19220 [\\/]* | ?:[\\/]*) 19221 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 19222 ;; 19223 *) 19224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19225 for as_dir in $PATH 19226 do 19227 IFS=$as_save_IFS 19228 test -z "$as_dir" && as_dir=. 19229 for ac_exec_ext in '' $ac_executable_extensions; do 19230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19231 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 19232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19233 break 2 19234 fi 19235 done 19236 done 19237 IFS=$as_save_IFS 19238 19239 ;; 19240 esac 19241 fi 19242 CODESIGN=$ac_cv_path_CODESIGN 19243 if test -n "$CODESIGN"; then 19244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 19245 $as_echo "$CODESIGN" >&6; } 19246 else 19247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19248 $as_echo "no" >&6; } 19249 fi 19250 19251 19252 if test "x$CODESIGN" = x; then 19253 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 19254 fi 19255 else 19256 # Otherwise we believe it is a complete path. Use it as it is. 19257 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5 19258 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;} 19259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5 19260 $as_echo_n "checking for CODESIGN... " >&6; } 19261 if test ! -x "$tool_specified"; then 19262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 19263 $as_echo "not found" >&6; } 19264 as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5 19265 fi 19266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 19267 $as_echo "$tool_specified" >&6; } 19268 fi 19269 fi 19270 fi 19271 19272 19273 if test "x$CODESIGN" != "x"; then 19274 # Verify that the openjdk_codesign certificate is present 19275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5 19276 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; } 19277 rm -f codesign-testfile 19278 touch codesign-testfile 19279 codesign -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN= 19280 rm -f codesign-testfile 19281 if test "x$CODESIGN" = x; then 19282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19283 $as_echo "no" >&6; } 19284 else 19285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19286 $as_echo "yes" >&6; } 19287 fi 19288 fi 19289 fi 19290 19291 19292 # Check if pkg-config is available. 19293 19294 19295 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 19296 if test -n "$ac_tool_prefix"; then 19297 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 19298 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 19299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19300 $as_echo_n "checking for $ac_word... " >&6; } 19301 if ${ac_cv_path_PKG_CONFIG+:} false; then : 19302 $as_echo_n "(cached) " >&6 19303 else 19304 case $PKG_CONFIG in 19305 [\\/]* | ?:[\\/]*) 19306 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 19307 ;; 19308 *) 19309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19310 for as_dir in $PATH 19311 do 19312 IFS=$as_save_IFS 19313 test -z "$as_dir" && as_dir=. 19314 for ac_exec_ext in '' $ac_executable_extensions; do 19315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19316 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19318 break 2 19319 fi 19320 done 19321 done 19322 IFS=$as_save_IFS 19323 19324 ;; 19325 esac 19326 fi 19327 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 19328 if test -n "$PKG_CONFIG"; then 19329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 19330 $as_echo "$PKG_CONFIG" >&6; } 19331 else 19332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19333 $as_echo "no" >&6; } 19334 fi 19335 19336 19337 fi 19338 if test -z "$ac_cv_path_PKG_CONFIG"; then 19339 ac_pt_PKG_CONFIG=$PKG_CONFIG 19340 # Extract the first word of "pkg-config", so it can be a program name with args. 19341 set dummy pkg-config; ac_word=$2 19342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19343 $as_echo_n "checking for $ac_word... " >&6; } 19344 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 19345 $as_echo_n "(cached) " >&6 19346 else 19347 case $ac_pt_PKG_CONFIG in 19348 [\\/]* | ?:[\\/]*) 19349 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 19350 ;; 19351 *) 19352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19353 for as_dir in $PATH 19354 do 19355 IFS=$as_save_IFS 19356 test -z "$as_dir" && as_dir=. 19357 for ac_exec_ext in '' $ac_executable_extensions; do 19358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19359 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19361 break 2 19362 fi 19363 done 19364 done 19365 IFS=$as_save_IFS 19366 19367 ;; 19368 esac 19369 fi 19370 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 19371 if test -n "$ac_pt_PKG_CONFIG"; then 19372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 19373 $as_echo "$ac_pt_PKG_CONFIG" >&6; } 19374 else 19375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19376 $as_echo "no" >&6; } 19377 fi 19378 19379 if test "x$ac_pt_PKG_CONFIG" = x; then 19380 PKG_CONFIG="" 19381 else 19382 case $cross_compiling:$ac_tool_warned in 19383 yes:) 19384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 19385 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 19386 ac_tool_warned=yes ;; 19387 esac 19388 PKG_CONFIG=$ac_pt_PKG_CONFIG 19389 fi 19390 else 19391 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 19392 fi 19393 19394 fi 19395 if test -n "$PKG_CONFIG"; then 19396 _pkg_min_version=0.9.0 19397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 19398 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 19399 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 19400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19401 $as_echo "yes" >&6; } 19402 else 19403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19404 $as_echo "no" >&6; } 19405 PKG_CONFIG="" 19406 fi 19407 19408 fi 19409 19410 # After basic tools have been setup, we can check build os specific details. 19411 19412 ############################################################################### 19413 19414 # Note that this is the build platform OS version! 19415 19416 OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`" 19417 OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`" 19418 OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`" 19419 OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`" 19420 19421 19422 19423 19424 19425 # Setup builddeps, for automatic downloading of tools we need. 19426 # This is needed before we can call BDEPS_CHECK_MODULE, which is done in 19427 # boot-jdk setup, but we need to have basic tools setup first. 19428 19429 19430 # Check whether --with-builddeps-conf was given. 19431 if test "${with_builddeps_conf+set}" = set; then : 19432 withval=$with_builddeps_conf; 19433 fi 19434 19435 19436 19437 # Check whether --with-builddeps-server was given. 19438 if test "${with_builddeps_server+set}" = set; then : 19439 withval=$with_builddeps_server; 19440 fi 19441 19442 19443 19444 # Check whether --with-builddeps-dir was given. 19445 if test "${with_builddeps_dir+set}" = set; then : 19446 withval=$with_builddeps_dir; 19447 else 19448 with_builddeps_dir=/localhome/builddeps 19449 fi 19450 19451 19452 19453 # Check whether --with-builddeps-group was given. 19454 if test "${with_builddeps_group+set}" = set; then : 19455 withval=$with_builddeps_group; 19456 fi 19457 19458 19459 19460 19461 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 19462 if test "x$with_builddeps_conf" != x; then 19463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supplied builddeps configuration file" >&5 19464 $as_echo_n "checking for supplied builddeps configuration file... " >&6; } 19465 builddepsfile=$with_builddeps_conf 19466 if test -s $builddepsfile; then 19467 . $builddepsfile 19468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loaded!" >&5 19469 $as_echo "loaded!" >&6; } 19470 else 19471 as_fn_error $? "The given builddeps conf file $with_builddeps_conf could not be loaded!" "$LINENO" 5 19472 fi 19473 else 19474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builddeps.conf files in sources..." >&5 19475 $as_echo_n "checking for builddeps.conf files in sources...... " >&6; } 19476 builddepsfile=`mktemp` 19477 touch $builddepsfile 19478 # Put all found confs into a single file. 19479 find ${SRC_ROOT} -name builddeps.conf -exec cat \{\} \; >> $builddepsfile 19480 # Source the file to acquire the variables 19481 if test -s $builddepsfile; then 19482 . $builddepsfile 19483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found at least one!" >&5 19484 $as_echo "found at least one!" >&6; } 19485 else 19486 as_fn_error $? "Could not find any builddeps.conf at all!" "$LINENO" 5 19487 fi 19488 fi 19489 # Create build and target names that use _ instead of "-" and ".". 19490 # This is necessary to use them in variable names. 19491 build_var=`echo ${OPENJDK_BUILD_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'` 19492 target_var=`echo ${OPENJDK_TARGET_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'` 19493 # Extract rewrite information for build and target 19494 eval rewritten_build=\${REWRITE_${build_var}} 19495 if test "x$rewritten_build" = x; then 19496 rewritten_build=${OPENJDK_BUILD_AUTOCONF_NAME} 19497 echo Build stays the same $rewritten_build 19498 else 19499 echo Rewriting build for builddeps into $rewritten_build 19500 fi 19501 eval rewritten_target=\${REWRITE_${target_var}} 19502 if test "x$rewritten_target" = x; then 19503 rewritten_target=${OPENJDK_TARGET_AUTOCONF_NAME} 19504 echo Target stays the same $rewritten_target 19505 else 19506 echo Rewriting target for builddeps into $rewritten_target 19507 fi 19508 rewritten_build_var=`echo ${rewritten_build} | tr '-' '_' | tr '.' '_'` 19509 rewritten_target_var=`echo ${rewritten_target} | tr '-' '_' | tr '.' '_'` 19510 fi 19511 for ac_prog in 7z unzip 19512 do 19513 # Extract the first word of "$ac_prog", so it can be a program name with args. 19514 set dummy $ac_prog; ac_word=$2 19515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19516 $as_echo_n "checking for $ac_word... " >&6; } 19517 if ${ac_cv_prog_BDEPS_UNZIP+:} false; then : 19518 $as_echo_n "(cached) " >&6 19519 else 19520 if test -n "$BDEPS_UNZIP"; then 19521 ac_cv_prog_BDEPS_UNZIP="$BDEPS_UNZIP" # Let the user override the test. 19522 else 19523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19524 for as_dir in $PATH 19525 do 19526 IFS=$as_save_IFS 19527 test -z "$as_dir" && as_dir=. 19528 for ac_exec_ext in '' $ac_executable_extensions; do 19529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19530 ac_cv_prog_BDEPS_UNZIP="$ac_prog" 19531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19532 break 2 19533 fi 19534 done 19535 done 19536 IFS=$as_save_IFS 19537 19538 fi 19539 fi 19540 BDEPS_UNZIP=$ac_cv_prog_BDEPS_UNZIP 19541 if test -n "$BDEPS_UNZIP"; then 19542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_UNZIP" >&5 19543 $as_echo "$BDEPS_UNZIP" >&6; } 19544 else 19545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19546 $as_echo "no" >&6; } 19547 fi 19548 19549 19550 test -n "$BDEPS_UNZIP" && break 19551 done 19552 19553 if test "x$BDEPS_UNZIP" = x7z; then 19554 BDEPS_UNZIP="7z x" 19555 fi 19556 19557 for ac_prog in wget lftp ftp 19558 do 19559 # Extract the first word of "$ac_prog", so it can be a program name with args. 19560 set dummy $ac_prog; ac_word=$2 19561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19562 $as_echo_n "checking for $ac_word... " >&6; } 19563 if ${ac_cv_prog_BDEPS_FTP+:} false; then : 19564 $as_echo_n "(cached) " >&6 19565 else 19566 if test -n "$BDEPS_FTP"; then 19567 ac_cv_prog_BDEPS_FTP="$BDEPS_FTP" # Let the user override the test. 19568 else 19569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19570 for as_dir in $PATH 19571 do 19572 IFS=$as_save_IFS 19573 test -z "$as_dir" && as_dir=. 19574 for ac_exec_ext in '' $ac_executable_extensions; do 19575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19576 ac_cv_prog_BDEPS_FTP="$ac_prog" 19577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19578 break 2 19579 fi 19580 done 19581 done 19582 IFS=$as_save_IFS 19583 19584 fi 19585 fi 19586 BDEPS_FTP=$ac_cv_prog_BDEPS_FTP 19587 if test -n "$BDEPS_FTP"; then 19588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_FTP" >&5 19589 $as_echo "$BDEPS_FTP" >&6; } 19590 else 19591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19592 $as_echo "no" >&6; } 19593 fi 19594 19595 19596 test -n "$BDEPS_FTP" && break 19597 done 19598 19599 19600 19601 ############################################################################### 19602 # 19603 # Determine OpenJDK variants, options and version numbers. 19604 # 19605 ############################################################################### 19606 19607 # We need build & target for this. 19608 19609 19610 ############################################################################### 19611 # 19612 # Should we build a JDK/JVM with headful support (ie a graphical ui)? 19613 # We always build headless support. 19614 # 19615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking headful support" >&5 19616 $as_echo_n "checking headful support... " >&6; } 19617 # Check whether --enable-headful was given. 19618 if test "${enable_headful+set}" = set; then : 19619 enableval=$enable_headful; SUPPORT_HEADFUL=${enable_headful} 19620 else 19621 SUPPORT_HEADFUL=yes 19622 fi 19623 19624 19625 SUPPORT_HEADLESS=yes 19626 BUILD_HEADLESS="BUILD_HEADLESS:=true" 19627 19628 if test "x$SUPPORT_HEADFUL" = xyes; then 19629 # We are building both headful and headless. 19630 headful_msg="include support for both headful and headless" 19631 fi 19632 19633 if test "x$SUPPORT_HEADFUL" = xno; then 19634 # Thus we are building headless only. 19635 BUILD_HEADLESS="BUILD_HEADLESS:=true" 19636 headful_msg="headless only" 19637 fi 19638 19639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $headful_msg" >&5 19640 $as_echo "$headful_msg" >&6; } 19641 19642 19643 19644 19645 19646 # Control wether Hotspot runs Queens test after build. 19647 # Check whether --enable-hotspot-test-in-build was given. 19648 if test "${enable_hotspot_test_in_build+set}" = set; then : 19649 enableval=$enable_hotspot_test_in_build; 19650 else 19651 enable_hotspot_test_in_build=no 19652 fi 19653 19654 if test "x$enable_hotspot_test_in_build" = "xyes"; then 19655 TEST_IN_BUILD=true 19656 else 19657 TEST_IN_BUILD=false 19658 fi 19659 19660 19661 ############################################################################### 19662 # 19663 # Choose cacerts source file 19664 # 19665 19666 # Check whether --with-cacerts-file was given. 19667 if test "${with_cacerts_file+set}" = set; then : 19668 withval=$with_cacerts_file; 19669 fi 19670 19671 if test "x$with_cacerts_file" != x; then 19672 CACERTS_FILE=$with_cacerts_file 19673 else 19674 CACERTS_FILE=${SRC_ROOT}/jdk/src/share/lib/security/cacerts 19675 fi 19676 19677 19678 ############################################################################### 19679 # 19680 # Enable or disable unlimited crypto 19681 # 19682 # Check whether --enable-unlimited-crypto was given. 19683 if test "${enable_unlimited_crypto+set}" = set; then : 19684 enableval=$enable_unlimited_crypto; 19685 else 19686 enable_unlimited_crypto=no 19687 fi 19688 19689 if test "x$enable_unlimited_crypto" = "xyes"; then 19690 UNLIMITED_CRYPTO=true 19691 else 19692 UNLIMITED_CRYPTO=false 19693 fi 19694 19695 19696 ############################################################################### 19697 # 19698 # Enable or disable the elliptic curve crypto implementation 19699 # 19700 19701 19702 ############################################################################### 19703 # 19704 # --enable-rmiconnector-iiop 19705 # 19706 # Check whether --enable-rmiconnector-iiop was given. 19707 if test "${enable_rmiconnector_iiop+set}" = set; then : 19708 enableval=$enable_rmiconnector_iiop; 19709 fi 19710 19711 if test "x$enable_rmiconnector_iiop" = "xyes"; then 19712 RMICONNECTOR_IIOP=true 19713 else 19714 RMICONNECTOR_IIOP=false 19715 fi 19716 19717 19718 ############################################################################### 19719 # 19720 # Compress jars 19721 # 19722 COMPRESS_JARS=false 19723 19724 19725 19726 19727 # Source the version numbers 19728 . $AUTOCONF_DIR/version-numbers 19729 19730 # Get the settings from parameters 19731 19732 # Check whether --with-milestone was given. 19733 if test "${with_milestone+set}" = set; then : 19734 withval=$with_milestone; 19735 fi 19736 19737 if test "x$with_milestone" = xyes; then 19738 as_fn_error $? "Milestone must have a value" "$LINENO" 5 19739 elif test "x$with_milestone" != x; then 19740 MILESTONE="$with_milestone" 19741 fi 19742 if test "x$MILESTONE" = x; then 19743 MILESTONE=internal 19744 fi 19745 19746 19747 # Check whether --with-update-version was given. 19748 if test "${with_update_version+set}" = set; then : 19749 withval=$with_update_version; 19750 fi 19751 19752 if test "x$with_update_version" = xyes; then 19753 as_fn_error $? "Update version must have a value" "$LINENO" 5 19754 elif test "x$with_update_version" != x; then 19755 JDK_UPDATE_VERSION="$with_update_version" 19756 # On macosx 10.7, it's not possible to set --with-update-version=0X due 19757 # to a bug in expr (which reduces it to just X). To work around this, we 19758 # always add a 0 to one digit update versions. 19759 if test "${#JDK_UPDATE_VERSION}" = "1"; then 19760 JDK_UPDATE_VERSION="0${JDK_UPDATE_VERSION}" 19761 fi 19762 fi 19763 19764 19765 # Check whether --with-user-release-suffix was given. 19766 if test "${with_user_release_suffix+set}" = set; then : 19767 withval=$with_user_release_suffix; 19768 fi 19769 19770 if test "x$with_user_release_suffix" = xyes; then 19771 as_fn_error $? "Release suffix must have a value" "$LINENO" 5 19772 elif test "x$with_user_release_suffix" != x; then 19773 USER_RELEASE_SUFFIX="$with_user_release_suffix" 19774 fi 19775 19776 19777 # Check whether --with-build-number was given. 19778 if test "${with_build_number+set}" = set; then : 19779 withval=$with_build_number; 19780 fi 19781 19782 if test "x$with_build_number" = xyes; then 19783 as_fn_error $? "Build number must have a value" "$LINENO" 5 19784 elif test "x$with_build_number" != x; then 19785 JDK_BUILD_NUMBER="$with_build_number" 19786 fi 19787 # Define default USER_RELEASE_SUFFIX if BUILD_NUMBER and USER_RELEASE_SUFFIX are not set 19788 if test "x$JDK_BUILD_NUMBER" = x; then 19789 JDK_BUILD_NUMBER=b00 19790 if test "x$USER_RELEASE_SUFFIX" = x; then 19791 BUILD_DATE=`date '+%Y_%m_%d_%H_%M'` 19792 # Avoid [:alnum:] since it depends on the locale. 19793 CLEAN_USERNAME=`echo "$USER" | $TR -d -c 'abcdefghijklmnopqrstuvqxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'` 19794 USER_RELEASE_SUFFIX=`echo "${CLEAN_USERNAME}_${BUILD_DATE}" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19795 fi 19796 fi 19797 19798 # Now set the JDK version, milestone, build number etc. 19799 19800 19801 19802 19803 19804 19805 19806 19807 19808 19809 19810 19811 19812 19813 19814 COPYRIGHT_YEAR=`date +'%Y'` 19815 19816 19817 if test "x$JDK_UPDATE_VERSION" != x; then 19818 JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}_${JDK_UPDATE_VERSION}" 19819 else 19820 JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}" 19821 fi 19822 19823 19824 COOKED_BUILD_NUMBER=`$ECHO $JDK_BUILD_NUMBER | $SED -e 's/^b//' -e 's/^0//'` 19825 19826 19827 19828 ############################################################################### 19829 # 19830 # Setup BootJDK, used to bootstrap the build. 19831 # 19832 ############################################################################### 19833 19834 19835 BOOT_JDK_FOUND=no 19836 19837 # Check whether --with-boot-jdk was given. 19838 if test "${with_boot_jdk+set}" = set; then : 19839 withval=$with_boot_jdk; 19840 fi 19841 19842 19843 # We look for the Boot JDK through various means, going from more certain to 19844 # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if 19845 # we detected something (if so, the path to the jdk is in BOOT_JDK). But we 19846 # must check if this is indeed valid; otherwise we'll continue looking. 19847 19848 # Test: Is bootjdk explicitely set by command line arguments? 19849 19850 if test "x$BOOT_JDK_FOUND" = xno; then 19851 # Now execute the test 19852 19853 if test "x$with_boot_jdk" != x; then 19854 BOOT_JDK=$with_boot_jdk 19855 BOOT_JDK_FOUND=maybe 19856 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5 19857 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;} 19858 fi 19859 19860 19861 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 19862 if test "x$BOOT_JDK_FOUND" = xmaybe; then 19863 # Do we have a bin/java? 19864 if test ! -x "$BOOT_JDK/bin/java"; then 19865 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 19866 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 19867 BOOT_JDK_FOUND=no 19868 else 19869 # Do we have a bin/javac? 19870 if test ! -x "$BOOT_JDK/bin/javac"; then 19871 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 19872 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 19873 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 19874 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 19875 BOOT_JDK_FOUND=no 19876 else 19877 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 19878 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 19879 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 19880 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 19881 BOOT_JDK_FOUND=no 19882 else 19883 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 19884 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 19885 19886 # Extra M4 quote needed to protect [] in grep expression. 19887 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 19888 if test "x$FOUND_CORRECT_VERSION" = x; then 19889 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 19890 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 19891 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 19892 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 19893 BOOT_JDK_FOUND=no 19894 else 19895 # We're done! :-) 19896 BOOT_JDK_FOUND=yes 19897 19898 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19899 19900 # Input might be given as Windows format, start by converting to 19901 # unix format. 19902 path="$BOOT_JDK" 19903 new_path=`$CYGPATH -u "$path"` 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 precense. 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 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 19915 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 19916 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 19917 fi 19918 19919 # Call helper function which possibly converts this using DOS-style short mode. 19920 # If so, the updated path is stored in $new_path. 19921 19922 input_path="$new_path" 19923 # Check if we need to convert this using DOS-style short mode. If the path 19924 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19925 # take no chances and rewrite it. 19926 # Note: m4 eats our [], so we need to use [ and ] instead. 19927 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 19928 if test "x$has_forbidden_chars" != x; then 19929 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19930 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 19931 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 19932 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 19933 # Going to short mode and back again did indeed matter. Since short mode is 19934 # case insensitive, let's make it lowercase to improve readability. 19935 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19936 # Now convert it back to Unix-stile (cygpath) 19937 input_path=`$CYGPATH -u "$shortmode_path"` 19938 new_path="$input_path" 19939 fi 19940 fi 19941 19942 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 19943 if test "x$test_cygdrive_prefix" = x; then 19944 # As a simple fix, exclude /usr/bin since it's not a real path. 19945 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 19946 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 19947 # a path prefixed by /cygdrive for fixpath to work. 19948 new_path="$CYGWIN_ROOT_PATH$input_path" 19949 fi 19950 fi 19951 19952 19953 if test "x$path" != "x$new_path"; then 19954 BOOT_JDK="$new_path" 19955 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 19956 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 19957 fi 19958 19959 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19960 19961 path="$BOOT_JDK" 19962 has_colon=`$ECHO $path | $GREP ^.:` 19963 new_path="$path" 19964 if test "x$has_colon" = x; then 19965 # Not in mixed or Windows style, start by that. 19966 new_path=`cmd //c echo $path` 19967 fi 19968 19969 19970 input_path="$new_path" 19971 # Check if we need to convert this using DOS-style short mode. If the path 19972 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19973 # take no chances and rewrite it. 19974 # Note: m4 eats our [], so we need to use [ and ] instead. 19975 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 19976 if test "x$has_forbidden_chars" != x; then 19977 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19978 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19979 fi 19980 19981 19982 windows_path="$new_path" 19983 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19984 unix_path=`$CYGPATH -u "$windows_path"` 19985 new_path="$unix_path" 19986 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19987 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19988 new_path="$unix_path" 19989 fi 19990 19991 if test "x$path" != "x$new_path"; then 19992 BOOT_JDK="$new_path" 19993 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 19994 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 19995 fi 19996 19997 # Save the first 10 bytes of this path to the storage, so fixpath can work. 19998 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 19999 20000 else 20001 # We're on a posix platform. Hooray! :) 20002 path="$BOOT_JDK" 20003 has_space=`$ECHO "$path" | $GREP " "` 20004 if test "x$has_space" != x; then 20005 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20006 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20007 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20008 fi 20009 20010 # Use eval to expand a potential ~ 20011 eval path="$path" 20012 if test ! -f "$path" && test ! -d "$path"; then 20013 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 20014 fi 20015 20016 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 20017 fi 20018 20019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 20020 $as_echo_n "checking for Boot JDK... " >&6; } 20021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 20022 $as_echo "$BOOT_JDK" >&6; } 20023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 20024 $as_echo_n "checking Boot JDK version... " >&6; } 20025 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 20026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 20027 $as_echo "$BOOT_JDK_VERSION" >&6; } 20028 fi # end check jdk version 20029 fi # end check rt.jar 20030 fi # end check javac 20031 fi # end check java 20032 fi # end check boot jdk found 20033 fi 20034 20035 if test "x$with_boot_jdk" != x && test "x$BOOT_JDK_FOUND" = xno; then 20036 # Having specified an argument which is incorrect will produce an instant failure; 20037 # we should not go on looking 20038 as_fn_error $? "The path given by --with-boot-jdk does not contain a valid Boot JDK" "$LINENO" 5 20039 fi 20040 20041 # Test: Is bootjdk available from builddeps? 20042 20043 if test "x$BOOT_JDK_FOUND" = xno; then 20044 # Now execute the test 20045 20046 20047 20048 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 20049 # Source the builddeps file again, to make sure it uses the latest variables! 20050 . $builddepsfile 20051 # Look for a target and build machine specific resource! 20052 eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 20053 if test "x$resource" = x; then 20054 # Ok, lets instead look for a target specific resource 20055 eval resource=\${builddep_bootjdk_TARGET_${rewritten_target_var}} 20056 fi 20057 if test "x$resource" = x; then 20058 # Ok, lets instead look for a build specific resource 20059 eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}} 20060 fi 20061 if test "x$resource" = x; then 20062 # Ok, lets instead look for a generic resource 20063 # (The bootjdk comes from M4 and not the shell, thus no need for eval here.) 20064 resource=${builddep_bootjdk} 20065 fi 20066 if test "x$resource" != x; then 20067 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for bootjdk" >&5 20068 $as_echo "$as_me: Using builddeps $resource for bootjdk" >&6;} 20069 # If the resource in the builddeps.conf file is an existing directory, 20070 # for example /java/linux/cups 20071 if test -d ${resource}; then 20072 depdir=${resource} 20073 else 20074 20075 # bootjdk is for example mymodule 20076 # $resource is for example libs/general/libmymod_1_2_3.zip 20077 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 20078 # $with_builddeps_dir is for example /localhome/builddeps 20079 # depdir is the name of the variable into which we store the depdir, eg MYMOD 20080 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 20081 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 20082 filename=`basename $resource` 20083 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 20084 filebase=${filename%%.*} 20085 extension=${filename#*.} 20086 installdir=$with_builddeps_dir/$filebase 20087 if test ! -f $installdir/$filename.unpacked; then 20088 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&5 20089 $as_echo "$as_me: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&6;} 20090 if test ! -d $installdir; then 20091 mkdir -p $installdir 20092 fi 20093 if test ! -d $installdir; then 20094 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 20095 fi 20096 tmpfile=`mktemp $installdir/bootjdk.XXXXXXXXX` 20097 touch $tmpfile 20098 if test ! -f $tmpfile; then 20099 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 20100 fi 20101 20102 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 20103 # $tmpfile is the local file name for the downloaded file. 20104 VALID_TOOL=no 20105 if test "x$BDEPS_FTP" = xwget; then 20106 VALID_TOOL=yes 20107 wget -O $tmpfile $with_builddeps_server/$resource 20108 fi 20109 if test "x$BDEPS_FTP" = xlftp; then 20110 VALID_TOOL=yes 20111 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 20112 fi 20113 if test "x$BDEPS_FTP" = xftp; then 20114 VALID_TOOL=yes 20115 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 20116 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 20117 FTPUSERPWD=${FTPSERVER%%@*} 20118 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 20119 FTPUSER=${userpwd%%:*} 20120 FTPPWD=${userpwd#*@} 20121 FTPSERVER=${FTPSERVER#*@} 20122 else 20123 FTPUSER=ftp 20124 FTPPWD=ftp 20125 fi 20126 # the "pass" command does not work on some 20127 # ftp clients (read ftp.exe) but if it works, 20128 # passive mode is better! 20129 ( \ 20130 echo "user $FTPUSER $FTPPWD" ; \ 20131 echo "pass" ; \ 20132 echo "bin" ; \ 20133 echo "get $FTPPATH $tmpfile" ; \ 20134 ) | ftp -in $FTPSERVER 20135 fi 20136 if test "x$VALID_TOOL" != xyes; then 20137 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 20138 fi 20139 20140 mv $tmpfile $installdir/$filename 20141 if test ! -s $installdir/$filename; then 20142 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 20143 fi 20144 case "$extension" in 20145 zip) echo "Unzipping $installdir/$filename..." 20146 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 20147 ;; 20148 tar.gz) echo "Untaring $installdir/$filename..." 20149 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 20150 ;; 20151 tgz) echo "Untaring $installdir/$filename..." 20152 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 20153 ;; 20154 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 20155 ;; 20156 esac 20157 fi 20158 if test -f $installdir/$filename.unpacked; then 20159 depdir=$installdir 20160 fi 20161 20162 fi 20163 # Source the builddeps file again, because in the previous command, the depdir 20164 # was updated to point at the current build dependency install directory. 20165 . $builddepsfile 20166 # Now extract variables from the builddeps.conf files. 20167 theroot=${builddep_bootjdk_ROOT} 20168 thecflags=${builddep_bootjdk_CFLAGS} 20169 thelibs=${builddep_bootjdk_LIBS} 20170 if test "x$depdir" = x; then 20171 as_fn_error $? "Could not download build dependency bootjdk" "$LINENO" 5 20172 fi 20173 BOOT_JDK=$depdir 20174 if test "x$theroot" != x; then 20175 BOOT_JDK="$theroot" 20176 fi 20177 if test "x$thecflags" != x; then 20178 BOOT_JDK_CFLAGS="$thecflags" 20179 fi 20180 if test "x$thelibs" != x; then 20181 BOOT_JDK_LIBS="$thelibs" 20182 fi 20183 BOOT_JDK_FOUND=maybe 20184 else BOOT_JDK_FOUND=no 20185 20186 fi 20187 else BOOT_JDK_FOUND=no 20188 20189 fi 20190 20191 20192 20193 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20194 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20195 # Do we have a bin/java? 20196 if test ! -x "$BOOT_JDK/bin/java"; then 20197 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20198 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20199 BOOT_JDK_FOUND=no 20200 else 20201 # Do we have a bin/javac? 20202 if test ! -x "$BOOT_JDK/bin/javac"; then 20203 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20204 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20205 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20206 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20207 BOOT_JDK_FOUND=no 20208 else 20209 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 20210 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 20211 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 20212 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 20213 BOOT_JDK_FOUND=no 20214 else 20215 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20216 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20217 20218 # Extra M4 quote needed to protect [] in grep expression. 20219 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 20220 if test "x$FOUND_CORRECT_VERSION" = x; then 20221 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20222 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20223 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 20224 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 20225 BOOT_JDK_FOUND=no 20226 else 20227 # We're done! :-) 20228 BOOT_JDK_FOUND=yes 20229 20230 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20231 20232 # Input might be given as Windows format, start by converting to 20233 # unix format. 20234 path="$BOOT_JDK" 20235 new_path=`$CYGPATH -u "$path"` 20236 20237 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20238 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20239 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20240 # "foo.exe" is OK but "foo" is an error. 20241 # 20242 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20243 # It is also a way to make sure we got the proper file name for the real test later on. 20244 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20245 if test "x$test_shortpath" = x; then 20246 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20247 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20248 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20249 fi 20250 20251 # Call helper function which possibly converts this using DOS-style short mode. 20252 # If so, the updated path is stored in $new_path. 20253 20254 input_path="$new_path" 20255 # Check if we need to convert this using DOS-style short mode. If the path 20256 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20257 # take no chances and rewrite it. 20258 # Note: m4 eats our [], so we need to use [ and ] instead. 20259 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20260 if test "x$has_forbidden_chars" != x; then 20261 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20262 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20263 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20264 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20265 # Going to short mode and back again did indeed matter. Since short mode is 20266 # case insensitive, let's make it lowercase to improve readability. 20267 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20268 # Now convert it back to Unix-stile (cygpath) 20269 input_path=`$CYGPATH -u "$shortmode_path"` 20270 new_path="$input_path" 20271 fi 20272 fi 20273 20274 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20275 if test "x$test_cygdrive_prefix" = x; then 20276 # As a simple fix, exclude /usr/bin since it's not a real path. 20277 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20278 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20279 # a path prefixed by /cygdrive for fixpath to work. 20280 new_path="$CYGWIN_ROOT_PATH$input_path" 20281 fi 20282 fi 20283 20284 20285 if test "x$path" != "x$new_path"; then 20286 BOOT_JDK="$new_path" 20287 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20288 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20289 fi 20290 20291 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20292 20293 path="$BOOT_JDK" 20294 has_colon=`$ECHO $path | $GREP ^.:` 20295 new_path="$path" 20296 if test "x$has_colon" = x; then 20297 # Not in mixed or Windows style, start by that. 20298 new_path=`cmd //c echo $path` 20299 fi 20300 20301 20302 input_path="$new_path" 20303 # Check if we need to convert this using DOS-style short mode. If the path 20304 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20305 # take no chances and rewrite it. 20306 # Note: m4 eats our [], so we need to use [ and ] instead. 20307 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20308 if test "x$has_forbidden_chars" != x; then 20309 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20310 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20311 fi 20312 20313 20314 windows_path="$new_path" 20315 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20316 unix_path=`$CYGPATH -u "$windows_path"` 20317 new_path="$unix_path" 20318 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20319 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20320 new_path="$unix_path" 20321 fi 20322 20323 if test "x$path" != "x$new_path"; then 20324 BOOT_JDK="$new_path" 20325 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20326 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20327 fi 20328 20329 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20330 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20331 20332 else 20333 # We're on a posix platform. Hooray! :) 20334 path="$BOOT_JDK" 20335 has_space=`$ECHO "$path" | $GREP " "` 20336 if test "x$has_space" != x; then 20337 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20338 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20339 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20340 fi 20341 20342 # Use eval to expand a potential ~ 20343 eval path="$path" 20344 if test ! -f "$path" && test ! -d "$path"; then 20345 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 20346 fi 20347 20348 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 20349 fi 20350 20351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 20352 $as_echo_n "checking for Boot JDK... " >&6; } 20353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 20354 $as_echo "$BOOT_JDK" >&6; } 20355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 20356 $as_echo_n "checking Boot JDK version... " >&6; } 20357 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 20358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 20359 $as_echo "$BOOT_JDK_VERSION" >&6; } 20360 fi # end check jdk version 20361 fi # end check rt.jar 20362 fi # end check javac 20363 fi # end check java 20364 fi # end check boot jdk found 20365 fi 20366 20367 20368 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home? 20369 20370 if test "x$BOOT_JDK_FOUND" = xno; then 20371 # Now execute the test 20372 20373 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 20374 # First check at user selected default 20375 20376 if test "x$BOOT_JDK_FOUND" = xno; then 20377 # Now execute the test 20378 20379 if test -x /usr/libexec/java_home; then 20380 BOOT_JDK=`/usr/libexec/java_home ` 20381 BOOT_JDK_FOUND=maybe 20382 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home " >&5 20383 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home " >&6;} 20384 fi 20385 20386 20387 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20388 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20389 # Do we have a bin/java? 20390 if test ! -x "$BOOT_JDK/bin/java"; then 20391 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20392 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20393 BOOT_JDK_FOUND=no 20394 else 20395 # Do we have a bin/javac? 20396 if test ! -x "$BOOT_JDK/bin/javac"; then 20397 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20398 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20399 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20400 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20401 BOOT_JDK_FOUND=no 20402 else 20403 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 20404 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 20405 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 20406 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 20407 BOOT_JDK_FOUND=no 20408 else 20409 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20410 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20411 20412 # Extra M4 quote needed to protect [] in grep expression. 20413 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 20414 if test "x$FOUND_CORRECT_VERSION" = x; then 20415 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20416 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20417 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 20418 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 20419 BOOT_JDK_FOUND=no 20420 else 20421 # We're done! :-) 20422 BOOT_JDK_FOUND=yes 20423 20424 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20425 20426 # Input might be given as Windows format, start by converting to 20427 # unix format. 20428 path="$BOOT_JDK" 20429 new_path=`$CYGPATH -u "$path"` 20430 20431 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20432 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20433 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20434 # "foo.exe" is OK but "foo" is an error. 20435 # 20436 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20437 # It is also a way to make sure we got the proper file name for the real test later on. 20438 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20439 if test "x$test_shortpath" = x; then 20440 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20441 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20442 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20443 fi 20444 20445 # Call helper function which possibly converts this using DOS-style short mode. 20446 # If so, the updated path is stored in $new_path. 20447 20448 input_path="$new_path" 20449 # Check if we need to convert this using DOS-style short mode. If the path 20450 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20451 # take no chances and rewrite it. 20452 # Note: m4 eats our [], so we need to use [ and ] instead. 20453 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20454 if test "x$has_forbidden_chars" != x; then 20455 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20456 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20457 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20458 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20459 # Going to short mode and back again did indeed matter. Since short mode is 20460 # case insensitive, let's make it lowercase to improve readability. 20461 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20462 # Now convert it back to Unix-stile (cygpath) 20463 input_path=`$CYGPATH -u "$shortmode_path"` 20464 new_path="$input_path" 20465 fi 20466 fi 20467 20468 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20469 if test "x$test_cygdrive_prefix" = x; then 20470 # As a simple fix, exclude /usr/bin since it's not a real path. 20471 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20472 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20473 # a path prefixed by /cygdrive for fixpath to work. 20474 new_path="$CYGWIN_ROOT_PATH$input_path" 20475 fi 20476 fi 20477 20478 20479 if test "x$path" != "x$new_path"; then 20480 BOOT_JDK="$new_path" 20481 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20482 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20483 fi 20484 20485 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20486 20487 path="$BOOT_JDK" 20488 has_colon=`$ECHO $path | $GREP ^.:` 20489 new_path="$path" 20490 if test "x$has_colon" = x; then 20491 # Not in mixed or Windows style, start by that. 20492 new_path=`cmd //c echo $path` 20493 fi 20494 20495 20496 input_path="$new_path" 20497 # Check if we need to convert this using DOS-style short mode. If the path 20498 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20499 # take no chances and rewrite it. 20500 # Note: m4 eats our [], so we need to use [ and ] instead. 20501 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20502 if test "x$has_forbidden_chars" != x; then 20503 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20504 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20505 fi 20506 20507 20508 windows_path="$new_path" 20509 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20510 unix_path=`$CYGPATH -u "$windows_path"` 20511 new_path="$unix_path" 20512 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20513 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20514 new_path="$unix_path" 20515 fi 20516 20517 if test "x$path" != "x$new_path"; then 20518 BOOT_JDK="$new_path" 20519 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20520 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20521 fi 20522 20523 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20524 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20525 20526 else 20527 # We're on a posix platform. Hooray! :) 20528 path="$BOOT_JDK" 20529 has_space=`$ECHO "$path" | $GREP " "` 20530 if test "x$has_space" != x; then 20531 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20532 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20533 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20534 fi 20535 20536 # Use eval to expand a potential ~ 20537 eval path="$path" 20538 if test ! -f "$path" && test ! -d "$path"; then 20539 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 20540 fi 20541 20542 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 20543 fi 20544 20545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 20546 $as_echo_n "checking for Boot JDK... " >&6; } 20547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 20548 $as_echo "$BOOT_JDK" >&6; } 20549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 20550 $as_echo_n "checking Boot JDK version... " >&6; } 20551 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 20552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 20553 $as_echo "$BOOT_JDK_VERSION" >&6; } 20554 fi # end check jdk version 20555 fi # end check rt.jar 20556 fi # end check javac 20557 fi # end check java 20558 fi # end check boot jdk found 20559 fi 20560 20561 # If that did not work out (e.g. too old), try explicit versions instead 20562 20563 if test "x$BOOT_JDK_FOUND" = xno; then 20564 # Now execute the test 20565 20566 if test -x /usr/libexec/java_home; then 20567 BOOT_JDK=`/usr/libexec/java_home -v 1.9` 20568 BOOT_JDK_FOUND=maybe 20569 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&5 20570 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&6;} 20571 fi 20572 20573 20574 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20575 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20576 # Do we have a bin/java? 20577 if test ! -x "$BOOT_JDK/bin/java"; then 20578 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20579 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20580 BOOT_JDK_FOUND=no 20581 else 20582 # Do we have a bin/javac? 20583 if test ! -x "$BOOT_JDK/bin/javac"; then 20584 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20585 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20586 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20587 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20588 BOOT_JDK_FOUND=no 20589 else 20590 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 20591 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 20592 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 20593 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 20594 BOOT_JDK_FOUND=no 20595 else 20596 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20597 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20598 20599 # Extra M4 quote needed to protect [] in grep expression. 20600 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 20601 if test "x$FOUND_CORRECT_VERSION" = x; then 20602 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20603 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20604 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 20605 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 20606 BOOT_JDK_FOUND=no 20607 else 20608 # We're done! :-) 20609 BOOT_JDK_FOUND=yes 20610 20611 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20612 20613 # Input might be given as Windows format, start by converting to 20614 # unix format. 20615 path="$BOOT_JDK" 20616 new_path=`$CYGPATH -u "$path"` 20617 20618 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20619 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20620 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20621 # "foo.exe" is OK but "foo" is an error. 20622 # 20623 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20624 # It is also a way to make sure we got the proper file name for the real test later on. 20625 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20626 if test "x$test_shortpath" = x; then 20627 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20628 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20629 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20630 fi 20631 20632 # Call helper function which possibly converts this using DOS-style short mode. 20633 # If so, the updated path is stored in $new_path. 20634 20635 input_path="$new_path" 20636 # Check if we need to convert this using DOS-style short mode. If the path 20637 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20638 # take no chances and rewrite it. 20639 # Note: m4 eats our [], so we need to use [ and ] instead. 20640 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20641 if test "x$has_forbidden_chars" != x; then 20642 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20643 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20644 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20645 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20646 # Going to short mode and back again did indeed matter. Since short mode is 20647 # case insensitive, let's make it lowercase to improve readability. 20648 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20649 # Now convert it back to Unix-stile (cygpath) 20650 input_path=`$CYGPATH -u "$shortmode_path"` 20651 new_path="$input_path" 20652 fi 20653 fi 20654 20655 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20656 if test "x$test_cygdrive_prefix" = x; then 20657 # As a simple fix, exclude /usr/bin since it's not a real path. 20658 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20659 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20660 # a path prefixed by /cygdrive for fixpath to work. 20661 new_path="$CYGWIN_ROOT_PATH$input_path" 20662 fi 20663 fi 20664 20665 20666 if test "x$path" != "x$new_path"; then 20667 BOOT_JDK="$new_path" 20668 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20669 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20670 fi 20671 20672 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20673 20674 path="$BOOT_JDK" 20675 has_colon=`$ECHO $path | $GREP ^.:` 20676 new_path="$path" 20677 if test "x$has_colon" = x; then 20678 # Not in mixed or Windows style, start by that. 20679 new_path=`cmd //c echo $path` 20680 fi 20681 20682 20683 input_path="$new_path" 20684 # Check if we need to convert this using DOS-style short mode. If the path 20685 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20686 # take no chances and rewrite it. 20687 # Note: m4 eats our [], so we need to use [ and ] instead. 20688 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20689 if test "x$has_forbidden_chars" != x; then 20690 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20691 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20692 fi 20693 20694 20695 windows_path="$new_path" 20696 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20697 unix_path=`$CYGPATH -u "$windows_path"` 20698 new_path="$unix_path" 20699 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20700 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20701 new_path="$unix_path" 20702 fi 20703 20704 if test "x$path" != "x$new_path"; then 20705 BOOT_JDK="$new_path" 20706 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20707 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20708 fi 20709 20710 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20711 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20712 20713 else 20714 # We're on a posix platform. Hooray! :) 20715 path="$BOOT_JDK" 20716 has_space=`$ECHO "$path" | $GREP " "` 20717 if test "x$has_space" != x; then 20718 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20719 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20720 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20721 fi 20722 20723 # Use eval to expand a potential ~ 20724 eval path="$path" 20725 if test ! -f "$path" && test ! -d "$path"; then 20726 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 20727 fi 20728 20729 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 20730 fi 20731 20732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 20733 $as_echo_n "checking for Boot JDK... " >&6; } 20734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 20735 $as_echo "$BOOT_JDK" >&6; } 20736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 20737 $as_echo_n "checking Boot JDK version... " >&6; } 20738 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 20739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 20740 $as_echo "$BOOT_JDK_VERSION" >&6; } 20741 fi # end check jdk version 20742 fi # end check rt.jar 20743 fi # end check javac 20744 fi # end check java 20745 fi # end check boot jdk found 20746 fi 20747 20748 20749 if test "x$BOOT_JDK_FOUND" = xno; then 20750 # Now execute the test 20751 20752 if test -x /usr/libexec/java_home; then 20753 BOOT_JDK=`/usr/libexec/java_home -v 1.8` 20754 BOOT_JDK_FOUND=maybe 20755 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&5 20756 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&6;} 20757 fi 20758 20759 20760 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20761 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20762 # Do we have a bin/java? 20763 if test ! -x "$BOOT_JDK/bin/java"; then 20764 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20765 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20766 BOOT_JDK_FOUND=no 20767 else 20768 # Do we have a bin/javac? 20769 if test ! -x "$BOOT_JDK/bin/javac"; then 20770 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20771 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20772 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20773 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20774 BOOT_JDK_FOUND=no 20775 else 20776 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 20777 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 20778 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 20779 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 20780 BOOT_JDK_FOUND=no 20781 else 20782 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20783 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20784 20785 # Extra M4 quote needed to protect [] in grep expression. 20786 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 20787 if test "x$FOUND_CORRECT_VERSION" = x; then 20788 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20789 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20790 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 20791 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 20792 BOOT_JDK_FOUND=no 20793 else 20794 # We're done! :-) 20795 BOOT_JDK_FOUND=yes 20796 20797 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20798 20799 # Input might be given as Windows format, start by converting to 20800 # unix format. 20801 path="$BOOT_JDK" 20802 new_path=`$CYGPATH -u "$path"` 20803 20804 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20805 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20806 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20807 # "foo.exe" is OK but "foo" is an error. 20808 # 20809 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20810 # It is also a way to make sure we got the proper file name for the real test later on. 20811 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20812 if test "x$test_shortpath" = x; then 20813 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20814 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20815 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20816 fi 20817 20818 # Call helper function which possibly converts this using DOS-style short mode. 20819 # If so, the updated path is stored in $new_path. 20820 20821 input_path="$new_path" 20822 # Check if we need to convert this using DOS-style short mode. If the path 20823 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20824 # take no chances and rewrite it. 20825 # Note: m4 eats our [], so we need to use [ and ] instead. 20826 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20827 if test "x$has_forbidden_chars" != x; then 20828 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20829 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20830 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20831 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20832 # Going to short mode and back again did indeed matter. Since short mode is 20833 # case insensitive, let's make it lowercase to improve readability. 20834 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20835 # Now convert it back to Unix-stile (cygpath) 20836 input_path=`$CYGPATH -u "$shortmode_path"` 20837 new_path="$input_path" 20838 fi 20839 fi 20840 20841 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20842 if test "x$test_cygdrive_prefix" = x; then 20843 # As a simple fix, exclude /usr/bin since it's not a real path. 20844 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20845 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20846 # a path prefixed by /cygdrive for fixpath to work. 20847 new_path="$CYGWIN_ROOT_PATH$input_path" 20848 fi 20849 fi 20850 20851 20852 if test "x$path" != "x$new_path"; then 20853 BOOT_JDK="$new_path" 20854 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20855 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20856 fi 20857 20858 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20859 20860 path="$BOOT_JDK" 20861 has_colon=`$ECHO $path | $GREP ^.:` 20862 new_path="$path" 20863 if test "x$has_colon" = x; then 20864 # Not in mixed or Windows style, start by that. 20865 new_path=`cmd //c echo $path` 20866 fi 20867 20868 20869 input_path="$new_path" 20870 # Check if we need to convert this using DOS-style short mode. If the path 20871 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20872 # take no chances and rewrite it. 20873 # Note: m4 eats our [], so we need to use [ and ] instead. 20874 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20875 if test "x$has_forbidden_chars" != x; then 20876 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20877 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20878 fi 20879 20880 20881 windows_path="$new_path" 20882 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20883 unix_path=`$CYGPATH -u "$windows_path"` 20884 new_path="$unix_path" 20885 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20886 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20887 new_path="$unix_path" 20888 fi 20889 20890 if test "x$path" != "x$new_path"; then 20891 BOOT_JDK="$new_path" 20892 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20893 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20894 fi 20895 20896 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20897 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20898 20899 else 20900 # We're on a posix platform. Hooray! :) 20901 path="$BOOT_JDK" 20902 has_space=`$ECHO "$path" | $GREP " "` 20903 if test "x$has_space" != x; then 20904 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20905 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20906 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20907 fi 20908 20909 # Use eval to expand a potential ~ 20910 eval path="$path" 20911 if test ! -f "$path" && test ! -d "$path"; then 20912 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 20913 fi 20914 20915 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 20916 fi 20917 20918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 20919 $as_echo_n "checking for Boot JDK... " >&6; } 20920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 20921 $as_echo "$BOOT_JDK" >&6; } 20922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 20923 $as_echo_n "checking Boot JDK version... " >&6; } 20924 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 20925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 20926 $as_echo "$BOOT_JDK_VERSION" >&6; } 20927 fi # end check jdk version 20928 fi # end check rt.jar 20929 fi # end check javac 20930 fi # end check java 20931 fi # end check boot jdk found 20932 fi 20933 20934 20935 if test "x$BOOT_JDK_FOUND" = xno; then 20936 # Now execute the test 20937 20938 if test -x /usr/libexec/java_home; then 20939 BOOT_JDK=`/usr/libexec/java_home -v 1.7` 20940 BOOT_JDK_FOUND=maybe 20941 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&5 20942 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&6;} 20943 fi 20944 20945 20946 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20947 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20948 # Do we have a bin/java? 20949 if test ! -x "$BOOT_JDK/bin/java"; then 20950 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20951 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20952 BOOT_JDK_FOUND=no 20953 else 20954 # Do we have a bin/javac? 20955 if test ! -x "$BOOT_JDK/bin/javac"; then 20956 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20957 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20958 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20959 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20960 BOOT_JDK_FOUND=no 20961 else 20962 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 20963 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 20964 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 20965 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 20966 BOOT_JDK_FOUND=no 20967 else 20968 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20969 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20970 20971 # Extra M4 quote needed to protect [] in grep expression. 20972 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 20973 if test "x$FOUND_CORRECT_VERSION" = x; then 20974 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20975 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20976 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 20977 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 20978 BOOT_JDK_FOUND=no 20979 else 20980 # We're done! :-) 20981 BOOT_JDK_FOUND=yes 20982 20983 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20984 20985 # Input might be given as Windows format, start by converting to 20986 # unix format. 20987 path="$BOOT_JDK" 20988 new_path=`$CYGPATH -u "$path"` 20989 20990 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20991 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20992 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20993 # "foo.exe" is OK but "foo" is an error. 20994 # 20995 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20996 # It is also a way to make sure we got the proper file name for the real test later on. 20997 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20998 if test "x$test_shortpath" = x; then 20999 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21000 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21001 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21002 fi 21003 21004 # Call helper function which possibly converts this using DOS-style short mode. 21005 # If so, the updated path is stored in $new_path. 21006 21007 input_path="$new_path" 21008 # Check if we need to convert this using DOS-style short mode. If the path 21009 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21010 # take no chances and rewrite it. 21011 # Note: m4 eats our [], so we need to use [ and ] instead. 21012 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21013 if test "x$has_forbidden_chars" != x; then 21014 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21015 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21016 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21017 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21018 # Going to short mode and back again did indeed matter. Since short mode is 21019 # case insensitive, let's make it lowercase to improve readability. 21020 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21021 # Now convert it back to Unix-stile (cygpath) 21022 input_path=`$CYGPATH -u "$shortmode_path"` 21023 new_path="$input_path" 21024 fi 21025 fi 21026 21027 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21028 if test "x$test_cygdrive_prefix" = x; then 21029 # As a simple fix, exclude /usr/bin since it's not a real path. 21030 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21031 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21032 # a path prefixed by /cygdrive for fixpath to work. 21033 new_path="$CYGWIN_ROOT_PATH$input_path" 21034 fi 21035 fi 21036 21037 21038 if test "x$path" != "x$new_path"; then 21039 BOOT_JDK="$new_path" 21040 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21041 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21042 fi 21043 21044 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21045 21046 path="$BOOT_JDK" 21047 has_colon=`$ECHO $path | $GREP ^.:` 21048 new_path="$path" 21049 if test "x$has_colon" = x; then 21050 # Not in mixed or Windows style, start by that. 21051 new_path=`cmd //c echo $path` 21052 fi 21053 21054 21055 input_path="$new_path" 21056 # Check if we need to convert this using DOS-style short mode. If the path 21057 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21058 # take no chances and rewrite it. 21059 # Note: m4 eats our [], so we need to use [ and ] instead. 21060 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21061 if test "x$has_forbidden_chars" != x; then 21062 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21063 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21064 fi 21065 21066 21067 windows_path="$new_path" 21068 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21069 unix_path=`$CYGPATH -u "$windows_path"` 21070 new_path="$unix_path" 21071 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21072 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21073 new_path="$unix_path" 21074 fi 21075 21076 if test "x$path" != "x$new_path"; then 21077 BOOT_JDK="$new_path" 21078 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21079 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21080 fi 21081 21082 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21083 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21084 21085 else 21086 # We're on a posix platform. Hooray! :) 21087 path="$BOOT_JDK" 21088 has_space=`$ECHO "$path" | $GREP " "` 21089 if test "x$has_space" != x; then 21090 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21091 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21092 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21093 fi 21094 21095 # Use eval to expand a potential ~ 21096 eval path="$path" 21097 if test ! -f "$path" && test ! -d "$path"; then 21098 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21099 fi 21100 21101 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21102 fi 21103 21104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21105 $as_echo_n "checking for Boot JDK... " >&6; } 21106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21107 $as_echo "$BOOT_JDK" >&6; } 21108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21109 $as_echo_n "checking Boot JDK version... " >&6; } 21110 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21112 $as_echo "$BOOT_JDK_VERSION" >&6; } 21113 fi # end check jdk version 21114 fi # end check rt.jar 21115 fi # end check javac 21116 fi # end check java 21117 fi # end check boot jdk found 21118 fi 21119 21120 fi 21121 21122 21123 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21124 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21125 # Do we have a bin/java? 21126 if test ! -x "$BOOT_JDK/bin/java"; then 21127 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21128 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21129 BOOT_JDK_FOUND=no 21130 else 21131 # Do we have a bin/javac? 21132 if test ! -x "$BOOT_JDK/bin/javac"; then 21133 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21134 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21135 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21136 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21137 BOOT_JDK_FOUND=no 21138 else 21139 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 21140 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 21141 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 21142 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 21143 BOOT_JDK_FOUND=no 21144 else 21145 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21146 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21147 21148 # Extra M4 quote needed to protect [] in grep expression. 21149 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 21150 if test "x$FOUND_CORRECT_VERSION" = x; then 21151 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21152 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21153 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 21154 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 21155 BOOT_JDK_FOUND=no 21156 else 21157 # We're done! :-) 21158 BOOT_JDK_FOUND=yes 21159 21160 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21161 21162 # Input might be given as Windows format, start by converting to 21163 # unix format. 21164 path="$BOOT_JDK" 21165 new_path=`$CYGPATH -u "$path"` 21166 21167 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21168 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21169 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21170 # "foo.exe" is OK but "foo" is an error. 21171 # 21172 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21173 # It is also a way to make sure we got the proper file name for the real test later on. 21174 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21175 if test "x$test_shortpath" = x; then 21176 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21177 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21178 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21179 fi 21180 21181 # Call helper function which possibly converts this using DOS-style short mode. 21182 # If so, the updated path is stored in $new_path. 21183 21184 input_path="$new_path" 21185 # Check if we need to convert this using DOS-style short mode. If the path 21186 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21187 # take no chances and rewrite it. 21188 # Note: m4 eats our [], so we need to use [ and ] instead. 21189 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21190 if test "x$has_forbidden_chars" != x; then 21191 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21192 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21193 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21194 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21195 # Going to short mode and back again did indeed matter. Since short mode is 21196 # case insensitive, let's make it lowercase to improve readability. 21197 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21198 # Now convert it back to Unix-stile (cygpath) 21199 input_path=`$CYGPATH -u "$shortmode_path"` 21200 new_path="$input_path" 21201 fi 21202 fi 21203 21204 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21205 if test "x$test_cygdrive_prefix" = x; then 21206 # As a simple fix, exclude /usr/bin since it's not a real path. 21207 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21208 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21209 # a path prefixed by /cygdrive for fixpath to work. 21210 new_path="$CYGWIN_ROOT_PATH$input_path" 21211 fi 21212 fi 21213 21214 21215 if test "x$path" != "x$new_path"; then 21216 BOOT_JDK="$new_path" 21217 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21218 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21219 fi 21220 21221 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21222 21223 path="$BOOT_JDK" 21224 has_colon=`$ECHO $path | $GREP ^.:` 21225 new_path="$path" 21226 if test "x$has_colon" = x; then 21227 # Not in mixed or Windows style, start by that. 21228 new_path=`cmd //c echo $path` 21229 fi 21230 21231 21232 input_path="$new_path" 21233 # Check if we need to convert this using DOS-style short mode. If the path 21234 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21235 # take no chances and rewrite it. 21236 # Note: m4 eats our [], so we need to use [ and ] instead. 21237 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21238 if test "x$has_forbidden_chars" != x; then 21239 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21240 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21241 fi 21242 21243 21244 windows_path="$new_path" 21245 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21246 unix_path=`$CYGPATH -u "$windows_path"` 21247 new_path="$unix_path" 21248 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21249 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21250 new_path="$unix_path" 21251 fi 21252 21253 if test "x$path" != "x$new_path"; then 21254 BOOT_JDK="$new_path" 21255 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21256 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21257 fi 21258 21259 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21260 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21261 21262 else 21263 # We're on a posix platform. Hooray! :) 21264 path="$BOOT_JDK" 21265 has_space=`$ECHO "$path" | $GREP " "` 21266 if test "x$has_space" != x; then 21267 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21268 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21269 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21270 fi 21271 21272 # Use eval to expand a potential ~ 21273 eval path="$path" 21274 if test ! -f "$path" && test ! -d "$path"; then 21275 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21276 fi 21277 21278 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21279 fi 21280 21281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21282 $as_echo_n "checking for Boot JDK... " >&6; } 21283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21284 $as_echo "$BOOT_JDK" >&6; } 21285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21286 $as_echo_n "checking Boot JDK version... " >&6; } 21287 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21289 $as_echo "$BOOT_JDK_VERSION" >&6; } 21290 fi # end check jdk version 21291 fi # end check rt.jar 21292 fi # end check javac 21293 fi # end check java 21294 fi # end check boot jdk found 21295 fi 21296 21297 21298 # Test: Is $JAVA_HOME set? 21299 21300 if test "x$BOOT_JDK_FOUND" = xno; then 21301 # Now execute the test 21302 21303 if test "x$JAVA_HOME" != x; then 21304 JAVA_HOME_PROCESSED="$JAVA_HOME" 21305 21306 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21307 21308 # Input might be given as Windows format, start by converting to 21309 # unix format. 21310 path="$JAVA_HOME_PROCESSED" 21311 new_path=`$CYGPATH -u "$path"` 21312 21313 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21314 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21315 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21316 # "foo.exe" is OK but "foo" is an error. 21317 # 21318 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21319 # It is also a way to make sure we got the proper file name for the real test later on. 21320 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21321 if test "x$test_shortpath" = x; then 21322 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5 21323 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;} 21324 as_fn_error $? "Cannot locate the the path of JAVA_HOME_PROCESSED" "$LINENO" 5 21325 fi 21326 21327 # Call helper function which possibly converts this using DOS-style short mode. 21328 # If so, the updated path is stored in $new_path. 21329 21330 input_path="$new_path" 21331 # Check if we need to convert this using DOS-style short mode. If the path 21332 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21333 # take no chances and rewrite it. 21334 # Note: m4 eats our [], so we need to use [ and ] instead. 21335 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21336 if test "x$has_forbidden_chars" != x; then 21337 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21338 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21339 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21340 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21341 # Going to short mode and back again did indeed matter. Since short mode is 21342 # case insensitive, let's make it lowercase to improve readability. 21343 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21344 # Now convert it back to Unix-stile (cygpath) 21345 input_path=`$CYGPATH -u "$shortmode_path"` 21346 new_path="$input_path" 21347 fi 21348 fi 21349 21350 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21351 if test "x$test_cygdrive_prefix" = x; then 21352 # As a simple fix, exclude /usr/bin since it's not a real path. 21353 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21354 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21355 # a path prefixed by /cygdrive for fixpath to work. 21356 new_path="$CYGWIN_ROOT_PATH$input_path" 21357 fi 21358 fi 21359 21360 21361 if test "x$path" != "x$new_path"; then 21362 JAVA_HOME_PROCESSED="$new_path" 21363 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5 21364 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;} 21365 fi 21366 21367 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21368 21369 path="$JAVA_HOME_PROCESSED" 21370 has_colon=`$ECHO $path | $GREP ^.:` 21371 new_path="$path" 21372 if test "x$has_colon" = x; then 21373 # Not in mixed or Windows style, start by that. 21374 new_path=`cmd //c echo $path` 21375 fi 21376 21377 21378 input_path="$new_path" 21379 # Check if we need to convert this using DOS-style short mode. If the path 21380 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21381 # take no chances and rewrite it. 21382 # Note: m4 eats our [], so we need to use [ and ] instead. 21383 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21384 if test "x$has_forbidden_chars" != x; then 21385 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21386 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21387 fi 21388 21389 21390 windows_path="$new_path" 21391 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21392 unix_path=`$CYGPATH -u "$windows_path"` 21393 new_path="$unix_path" 21394 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21395 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21396 new_path="$unix_path" 21397 fi 21398 21399 if test "x$path" != "x$new_path"; then 21400 JAVA_HOME_PROCESSED="$new_path" 21401 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5 21402 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;} 21403 fi 21404 21405 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21406 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21407 21408 else 21409 # We're on a posix platform. Hooray! :) 21410 path="$JAVA_HOME_PROCESSED" 21411 has_space=`$ECHO "$path" | $GREP " "` 21412 if test "x$has_space" != x; then 21413 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5 21414 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;} 21415 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21416 fi 21417 21418 # Use eval to expand a potential ~ 21419 eval path="$path" 21420 if test ! -f "$path" && test ! -d "$path"; then 21421 as_fn_error $? "The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is not found." "$LINENO" 5 21422 fi 21423 21424 JAVA_HOME_PROCESSED="`cd "$path"; $THEPWDCMD -L`" 21425 fi 21426 21427 if test ! -d "$JAVA_HOME_PROCESSED"; then 21428 { $as_echo "$as_me:${as_lineno-$LINENO}: Your JAVA_HOME points to a non-existing directory!" >&5 21429 $as_echo "$as_me: Your JAVA_HOME points to a non-existing directory!" >&6;} 21430 else 21431 # Aha, the user has set a JAVA_HOME 21432 # let us use that as the Boot JDK. 21433 BOOT_JDK="$JAVA_HOME_PROCESSED" 21434 BOOT_JDK_FOUND=maybe 21435 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using JAVA_HOME" >&5 21436 $as_echo "$as_me: Found potential Boot JDK using JAVA_HOME" >&6;} 21437 fi 21438 fi 21439 21440 21441 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21442 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21443 # Do we have a bin/java? 21444 if test ! -x "$BOOT_JDK/bin/java"; then 21445 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21446 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21447 BOOT_JDK_FOUND=no 21448 else 21449 # Do we have a bin/javac? 21450 if test ! -x "$BOOT_JDK/bin/javac"; then 21451 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21452 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21453 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21454 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21455 BOOT_JDK_FOUND=no 21456 else 21457 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 21458 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 21459 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 21460 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 21461 BOOT_JDK_FOUND=no 21462 else 21463 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21464 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21465 21466 # Extra M4 quote needed to protect [] in grep expression. 21467 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 21468 if test "x$FOUND_CORRECT_VERSION" = x; then 21469 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21470 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21471 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 21472 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 21473 BOOT_JDK_FOUND=no 21474 else 21475 # We're done! :-) 21476 BOOT_JDK_FOUND=yes 21477 21478 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21479 21480 # Input might be given as Windows format, start by converting to 21481 # unix format. 21482 path="$BOOT_JDK" 21483 new_path=`$CYGPATH -u "$path"` 21484 21485 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21486 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21487 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21488 # "foo.exe" is OK but "foo" is an error. 21489 # 21490 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21491 # It is also a way to make sure we got the proper file name for the real test later on. 21492 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21493 if test "x$test_shortpath" = x; then 21494 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21495 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21496 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21497 fi 21498 21499 # Call helper function which possibly converts this using DOS-style short mode. 21500 # If so, the updated path is stored in $new_path. 21501 21502 input_path="$new_path" 21503 # Check if we need to convert this using DOS-style short mode. If the path 21504 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21505 # take no chances and rewrite it. 21506 # Note: m4 eats our [], so we need to use [ and ] instead. 21507 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21508 if test "x$has_forbidden_chars" != x; then 21509 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21510 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21511 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21512 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21513 # Going to short mode and back again did indeed matter. Since short mode is 21514 # case insensitive, let's make it lowercase to improve readability. 21515 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21516 # Now convert it back to Unix-stile (cygpath) 21517 input_path=`$CYGPATH -u "$shortmode_path"` 21518 new_path="$input_path" 21519 fi 21520 fi 21521 21522 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21523 if test "x$test_cygdrive_prefix" = x; then 21524 # As a simple fix, exclude /usr/bin since it's not a real path. 21525 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21526 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21527 # a path prefixed by /cygdrive for fixpath to work. 21528 new_path="$CYGWIN_ROOT_PATH$input_path" 21529 fi 21530 fi 21531 21532 21533 if test "x$path" != "x$new_path"; then 21534 BOOT_JDK="$new_path" 21535 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21536 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21537 fi 21538 21539 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21540 21541 path="$BOOT_JDK" 21542 has_colon=`$ECHO $path | $GREP ^.:` 21543 new_path="$path" 21544 if test "x$has_colon" = x; then 21545 # Not in mixed or Windows style, start by that. 21546 new_path=`cmd //c echo $path` 21547 fi 21548 21549 21550 input_path="$new_path" 21551 # Check if we need to convert this using DOS-style short mode. If the path 21552 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21553 # take no chances and rewrite it. 21554 # Note: m4 eats our [], so we need to use [ and ] instead. 21555 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21556 if test "x$has_forbidden_chars" != x; then 21557 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21558 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21559 fi 21560 21561 21562 windows_path="$new_path" 21563 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21564 unix_path=`$CYGPATH -u "$windows_path"` 21565 new_path="$unix_path" 21566 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21567 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21568 new_path="$unix_path" 21569 fi 21570 21571 if test "x$path" != "x$new_path"; then 21572 BOOT_JDK="$new_path" 21573 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21574 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21575 fi 21576 21577 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21578 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21579 21580 else 21581 # We're on a posix platform. Hooray! :) 21582 path="$BOOT_JDK" 21583 has_space=`$ECHO "$path" | $GREP " "` 21584 if test "x$has_space" != x; then 21585 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21586 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21587 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21588 fi 21589 21590 # Use eval to expand a potential ~ 21591 eval path="$path" 21592 if test ! -f "$path" && test ! -d "$path"; then 21593 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21594 fi 21595 21596 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21597 fi 21598 21599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21600 $as_echo_n "checking for Boot JDK... " >&6; } 21601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21602 $as_echo "$BOOT_JDK" >&6; } 21603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21604 $as_echo_n "checking Boot JDK version... " >&6; } 21605 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21607 $as_echo "$BOOT_JDK_VERSION" >&6; } 21608 fi # end check jdk version 21609 fi # end check rt.jar 21610 fi # end check javac 21611 fi # end check java 21612 fi # end check boot jdk found 21613 fi 21614 21615 21616 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK? 21617 21618 if test "x$BOOT_JDK_FOUND" = xno; then 21619 # Now execute the test 21620 21621 # Extract the first word of "javac", so it can be a program name with args. 21622 set dummy javac; ac_word=$2 21623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21624 $as_echo_n "checking for $ac_word... " >&6; } 21625 if ${ac_cv_path_JAVAC_CHECK+:} false; then : 21626 $as_echo_n "(cached) " >&6 21627 else 21628 case $JAVAC_CHECK in 21629 [\\/]* | ?:[\\/]*) 21630 ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path. 21631 ;; 21632 *) 21633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21634 for as_dir in $PATH 21635 do 21636 IFS=$as_save_IFS 21637 test -z "$as_dir" && as_dir=. 21638 for ac_exec_ext in '' $ac_executable_extensions; do 21639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21640 ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext" 21641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21642 break 2 21643 fi 21644 done 21645 done 21646 IFS=$as_save_IFS 21647 21648 ;; 21649 esac 21650 fi 21651 JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK 21652 if test -n "$JAVAC_CHECK"; then 21653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5 21654 $as_echo "$JAVAC_CHECK" >&6; } 21655 else 21656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21657 $as_echo "no" >&6; } 21658 fi 21659 21660 21661 # Extract the first word of "java", so it can be a program name with args. 21662 set dummy java; ac_word=$2 21663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21664 $as_echo_n "checking for $ac_word... " >&6; } 21665 if ${ac_cv_path_JAVA_CHECK+:} false; then : 21666 $as_echo_n "(cached) " >&6 21667 else 21668 case $JAVA_CHECK in 21669 [\\/]* | ?:[\\/]*) 21670 ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path. 21671 ;; 21672 *) 21673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21674 for as_dir in $PATH 21675 do 21676 IFS=$as_save_IFS 21677 test -z "$as_dir" && as_dir=. 21678 for ac_exec_ext in '' $ac_executable_extensions; do 21679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21680 ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext" 21681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21682 break 2 21683 fi 21684 done 21685 done 21686 IFS=$as_save_IFS 21687 21688 ;; 21689 esac 21690 fi 21691 JAVA_CHECK=$ac_cv_path_JAVA_CHECK 21692 if test -n "$JAVA_CHECK"; then 21693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5 21694 $as_echo "$JAVA_CHECK" >&6; } 21695 else 21696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21697 $as_echo "no" >&6; } 21698 fi 21699 21700 21701 BINARY="$JAVAC_CHECK" 21702 if test "x$JAVAC_CHECK" = x; then 21703 BINARY="$JAVA_CHECK" 21704 fi 21705 if test "x$BINARY" != x; then 21706 # So there is a java(c) binary, it might be part of a JDK. 21707 # Lets find the JDK/JRE directory by following symbolic links. 21708 # Linux/GNU systems often have links from /usr/bin/java to 21709 # /etc/alternatives/java to the real JDK binary. 21710 21711 if test "x$OPENJDK_BUILD_OS" != xwindows; then 21712 # Follow a chain of symbolic links. Use readlink 21713 # where it exists, else fall back to horribly 21714 # complicated shell code. 21715 if test "x$READLINK_TESTED" != yes; then 21716 # On MacOSX there is a readlink tool with a different 21717 # purpose than the GNU readlink tool. Check the found readlink. 21718 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 21719 if test "x$ISGNU" = x; then 21720 # A readlink that we do not know how to use. 21721 # Are there other non-GNU readlinks out there? 21722 READLINK_TESTED=yes 21723 READLINK= 21724 fi 21725 fi 21726 21727 if test "x$READLINK" != x; then 21728 BINARY=`$READLINK -f $BINARY` 21729 else 21730 # Save the current directory for restoring afterwards 21731 STARTDIR=$PWD 21732 COUNTER=0 21733 sym_link_dir=`$DIRNAME $BINARY` 21734 sym_link_file=`$BASENAME $BINARY` 21735 cd $sym_link_dir 21736 # Use -P flag to resolve symlinks in directories. 21737 cd `$THEPWDCMD -P` 21738 sym_link_dir=`$THEPWDCMD -P` 21739 # Resolve file symlinks 21740 while test $COUNTER -lt 20; do 21741 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 21742 if test "x$ISLINK" == x; then 21743 # This is not a symbolic link! We are done! 21744 break 21745 fi 21746 # Again resolve directory symlinks since the target of the just found 21747 # link could be in a different directory 21748 cd `$DIRNAME $ISLINK` 21749 sym_link_dir=`$THEPWDCMD -P` 21750 sym_link_file=`$BASENAME $ISLINK` 21751 let COUNTER=COUNTER+1 21752 done 21753 cd $STARTDIR 21754 BINARY=$sym_link_dir/$sym_link_file 21755 fi 21756 fi 21757 21758 BOOT_JDK=`dirname "$BINARY"` 21759 BOOT_JDK=`cd "$BOOT_JDK/.."; pwd` 21760 if test -x "$BOOT_JDK/bin/javac" && test -x "$BOOT_JDK/bin/java"; then 21761 # Looks like we found ourselves an JDK 21762 BOOT_JDK_FOUND=maybe 21763 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using java(c) in PATH" >&5 21764 $as_echo "$as_me: Found potential Boot JDK using java(c) in PATH" >&6;} 21765 fi 21766 fi 21767 21768 21769 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21770 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21771 # Do we have a bin/java? 21772 if test ! -x "$BOOT_JDK/bin/java"; then 21773 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21774 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21775 BOOT_JDK_FOUND=no 21776 else 21777 # Do we have a bin/javac? 21778 if test ! -x "$BOOT_JDK/bin/javac"; then 21779 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21780 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21781 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21782 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21783 BOOT_JDK_FOUND=no 21784 else 21785 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 21786 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 21787 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 21788 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 21789 BOOT_JDK_FOUND=no 21790 else 21791 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21792 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21793 21794 # Extra M4 quote needed to protect [] in grep expression. 21795 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 21796 if test "x$FOUND_CORRECT_VERSION" = x; then 21797 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21798 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21799 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 21800 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 21801 BOOT_JDK_FOUND=no 21802 else 21803 # We're done! :-) 21804 BOOT_JDK_FOUND=yes 21805 21806 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21807 21808 # Input might be given as Windows format, start by converting to 21809 # unix format. 21810 path="$BOOT_JDK" 21811 new_path=`$CYGPATH -u "$path"` 21812 21813 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21814 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21815 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21816 # "foo.exe" is OK but "foo" is an error. 21817 # 21818 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21819 # It is also a way to make sure we got the proper file name for the real test later on. 21820 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21821 if test "x$test_shortpath" = x; then 21822 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21823 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21824 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21825 fi 21826 21827 # Call helper function which possibly converts this using DOS-style short mode. 21828 # If so, the updated path is stored in $new_path. 21829 21830 input_path="$new_path" 21831 # Check if we need to convert this using DOS-style short mode. If the path 21832 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21833 # take no chances and rewrite it. 21834 # Note: m4 eats our [], so we need to use [ and ] instead. 21835 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21836 if test "x$has_forbidden_chars" != x; then 21837 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21838 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21839 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21840 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21841 # Going to short mode and back again did indeed matter. Since short mode is 21842 # case insensitive, let's make it lowercase to improve readability. 21843 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21844 # Now convert it back to Unix-stile (cygpath) 21845 input_path=`$CYGPATH -u "$shortmode_path"` 21846 new_path="$input_path" 21847 fi 21848 fi 21849 21850 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21851 if test "x$test_cygdrive_prefix" = x; then 21852 # As a simple fix, exclude /usr/bin since it's not a real path. 21853 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21854 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21855 # a path prefixed by /cygdrive for fixpath to work. 21856 new_path="$CYGWIN_ROOT_PATH$input_path" 21857 fi 21858 fi 21859 21860 21861 if test "x$path" != "x$new_path"; then 21862 BOOT_JDK="$new_path" 21863 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21864 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21865 fi 21866 21867 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21868 21869 path="$BOOT_JDK" 21870 has_colon=`$ECHO $path | $GREP ^.:` 21871 new_path="$path" 21872 if test "x$has_colon" = x; then 21873 # Not in mixed or Windows style, start by that. 21874 new_path=`cmd //c echo $path` 21875 fi 21876 21877 21878 input_path="$new_path" 21879 # Check if we need to convert this using DOS-style short mode. If the path 21880 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21881 # take no chances and rewrite it. 21882 # Note: m4 eats our [], so we need to use [ and ] instead. 21883 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21884 if test "x$has_forbidden_chars" != x; then 21885 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21886 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21887 fi 21888 21889 21890 windows_path="$new_path" 21891 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21892 unix_path=`$CYGPATH -u "$windows_path"` 21893 new_path="$unix_path" 21894 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21895 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21896 new_path="$unix_path" 21897 fi 21898 21899 if test "x$path" != "x$new_path"; then 21900 BOOT_JDK="$new_path" 21901 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21902 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21903 fi 21904 21905 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21906 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21907 21908 else 21909 # We're on a posix platform. Hooray! :) 21910 path="$BOOT_JDK" 21911 has_space=`$ECHO "$path" | $GREP " "` 21912 if test "x$has_space" != x; then 21913 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21914 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21915 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21916 fi 21917 21918 # Use eval to expand a potential ~ 21919 eval path="$path" 21920 if test ! -f "$path" && test ! -d "$path"; then 21921 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21922 fi 21923 21924 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21925 fi 21926 21927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21928 $as_echo_n "checking for Boot JDK... " >&6; } 21929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21930 $as_echo "$BOOT_JDK" >&6; } 21931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21932 $as_echo_n "checking Boot JDK version... " >&6; } 21933 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21935 $as_echo "$BOOT_JDK_VERSION" >&6; } 21936 fi # end check jdk version 21937 fi # end check rt.jar 21938 fi # end check javac 21939 fi # end check java 21940 fi # end check boot jdk found 21941 fi 21942 21943 21944 # Test: Is there a JDK installed in default, well-known locations? 21945 21946 if test "x$BOOT_JDK_FOUND" = xno; then 21947 # Now execute the test 21948 21949 if test "x$OPENJDK_TARGET_OS" = xwindows; then 21950 21951 if test "x$BOOT_JDK_FOUND" = xno; then 21952 # Now execute the test 21953 21954 if test "x$ProgramW6432" != x; then 21955 VIRTUAL_DIR="$ProgramW6432/Java" 21956 21957 windows_path="$VIRTUAL_DIR" 21958 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21959 unix_path=`$CYGPATH -u "$windows_path"` 21960 VIRTUAL_DIR="$unix_path" 21961 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21962 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21963 VIRTUAL_DIR="$unix_path" 21964 fi 21965 21966 21967 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 21968 BOOT_JDK_SUFFIX="" 21969 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 21970 if test "x$ALL_JDKS_FOUND" != x; then 21971 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 21972 21973 if test "x$BOOT_JDK_FOUND" = xno; then 21974 # Now execute the test 21975 21976 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 21977 if test -d "$BOOT_JDK"; then 21978 BOOT_JDK_FOUND=maybe 21979 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 21980 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 21981 fi 21982 21983 21984 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21985 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21986 # Do we have a bin/java? 21987 if test ! -x "$BOOT_JDK/bin/java"; then 21988 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21989 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21990 BOOT_JDK_FOUND=no 21991 else 21992 # Do we have a bin/javac? 21993 if test ! -x "$BOOT_JDK/bin/javac"; then 21994 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21995 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21996 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21997 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21998 BOOT_JDK_FOUND=no 21999 else 22000 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 22001 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 22002 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 22003 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 22004 BOOT_JDK_FOUND=no 22005 else 22006 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22007 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22008 22009 # Extra M4 quote needed to protect [] in grep expression. 22010 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 22011 if test "x$FOUND_CORRECT_VERSION" = x; then 22012 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22013 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22014 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 22015 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 22016 BOOT_JDK_FOUND=no 22017 else 22018 # We're done! :-) 22019 BOOT_JDK_FOUND=yes 22020 22021 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22022 22023 # Input might be given as Windows format, start by converting to 22024 # unix format. 22025 path="$BOOT_JDK" 22026 new_path=`$CYGPATH -u "$path"` 22027 22028 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22029 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22030 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22031 # "foo.exe" is OK but "foo" is an error. 22032 # 22033 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22034 # It is also a way to make sure we got the proper file name for the real test later on. 22035 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22036 if test "x$test_shortpath" = x; then 22037 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22038 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22039 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22040 fi 22041 22042 # Call helper function which possibly converts this using DOS-style short mode. 22043 # If so, the updated path is stored in $new_path. 22044 22045 input_path="$new_path" 22046 # Check if we need to convert this using DOS-style short mode. If the path 22047 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22048 # take no chances and rewrite it. 22049 # Note: m4 eats our [], so we need to use [ and ] instead. 22050 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22051 if test "x$has_forbidden_chars" != x; then 22052 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22053 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22054 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22055 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22056 # Going to short mode and back again did indeed matter. Since short mode is 22057 # case insensitive, let's make it lowercase to improve readability. 22058 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22059 # Now convert it back to Unix-stile (cygpath) 22060 input_path=`$CYGPATH -u "$shortmode_path"` 22061 new_path="$input_path" 22062 fi 22063 fi 22064 22065 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22066 if test "x$test_cygdrive_prefix" = x; then 22067 # As a simple fix, exclude /usr/bin since it's not a real path. 22068 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22069 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22070 # a path prefixed by /cygdrive for fixpath to work. 22071 new_path="$CYGWIN_ROOT_PATH$input_path" 22072 fi 22073 fi 22074 22075 22076 if test "x$path" != "x$new_path"; then 22077 BOOT_JDK="$new_path" 22078 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22079 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22080 fi 22081 22082 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22083 22084 path="$BOOT_JDK" 22085 has_colon=`$ECHO $path | $GREP ^.:` 22086 new_path="$path" 22087 if test "x$has_colon" = x; then 22088 # Not in mixed or Windows style, start by that. 22089 new_path=`cmd //c echo $path` 22090 fi 22091 22092 22093 input_path="$new_path" 22094 # Check if we need to convert this using DOS-style short mode. If the path 22095 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22096 # take no chances and rewrite it. 22097 # Note: m4 eats our [], so we need to use [ and ] instead. 22098 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22099 if test "x$has_forbidden_chars" != x; then 22100 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22101 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22102 fi 22103 22104 22105 windows_path="$new_path" 22106 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22107 unix_path=`$CYGPATH -u "$windows_path"` 22108 new_path="$unix_path" 22109 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22110 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22111 new_path="$unix_path" 22112 fi 22113 22114 if test "x$path" != "x$new_path"; then 22115 BOOT_JDK="$new_path" 22116 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22117 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22118 fi 22119 22120 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22121 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22122 22123 else 22124 # We're on a posix platform. Hooray! :) 22125 path="$BOOT_JDK" 22126 has_space=`$ECHO "$path" | $GREP " "` 22127 if test "x$has_space" != x; then 22128 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22129 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22130 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22131 fi 22132 22133 # Use eval to expand a potential ~ 22134 eval path="$path" 22135 if test ! -f "$path" && test ! -d "$path"; then 22136 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22137 fi 22138 22139 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22140 fi 22141 22142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22143 $as_echo_n "checking for Boot JDK... " >&6; } 22144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22145 $as_echo "$BOOT_JDK" >&6; } 22146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22147 $as_echo_n "checking Boot JDK version... " >&6; } 22148 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22150 $as_echo "$BOOT_JDK_VERSION" >&6; } 22151 fi # end check jdk version 22152 fi # end check rt.jar 22153 fi # end check javac 22154 fi # end check java 22155 fi # end check boot jdk found 22156 fi 22157 22158 done 22159 fi 22160 22161 fi 22162 22163 22164 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22165 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22166 # Do we have a bin/java? 22167 if test ! -x "$BOOT_JDK/bin/java"; then 22168 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22169 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22170 BOOT_JDK_FOUND=no 22171 else 22172 # Do we have a bin/javac? 22173 if test ! -x "$BOOT_JDK/bin/javac"; then 22174 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22175 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22176 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22177 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22178 BOOT_JDK_FOUND=no 22179 else 22180 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 22181 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 22182 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 22183 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 22184 BOOT_JDK_FOUND=no 22185 else 22186 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22187 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22188 22189 # Extra M4 quote needed to protect [] in grep expression. 22190 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 22191 if test "x$FOUND_CORRECT_VERSION" = x; then 22192 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22193 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22194 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 22195 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 22196 BOOT_JDK_FOUND=no 22197 else 22198 # We're done! :-) 22199 BOOT_JDK_FOUND=yes 22200 22201 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22202 22203 # Input might be given as Windows format, start by converting to 22204 # unix format. 22205 path="$BOOT_JDK" 22206 new_path=`$CYGPATH -u "$path"` 22207 22208 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22209 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22210 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22211 # "foo.exe" is OK but "foo" is an error. 22212 # 22213 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22214 # It is also a way to make sure we got the proper file name for the real test later on. 22215 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22216 if test "x$test_shortpath" = x; then 22217 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22218 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22219 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22220 fi 22221 22222 # Call helper function which possibly converts this using DOS-style short mode. 22223 # If so, the updated path is stored in $new_path. 22224 22225 input_path="$new_path" 22226 # Check if we need to convert this using DOS-style short mode. If the path 22227 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22228 # take no chances and rewrite it. 22229 # Note: m4 eats our [], so we need to use [ and ] instead. 22230 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22231 if test "x$has_forbidden_chars" != x; then 22232 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22233 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22234 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22235 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22236 # Going to short mode and back again did indeed matter. Since short mode is 22237 # case insensitive, let's make it lowercase to improve readability. 22238 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22239 # Now convert it back to Unix-stile (cygpath) 22240 input_path=`$CYGPATH -u "$shortmode_path"` 22241 new_path="$input_path" 22242 fi 22243 fi 22244 22245 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22246 if test "x$test_cygdrive_prefix" = x; then 22247 # As a simple fix, exclude /usr/bin since it's not a real path. 22248 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22249 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22250 # a path prefixed by /cygdrive for fixpath to work. 22251 new_path="$CYGWIN_ROOT_PATH$input_path" 22252 fi 22253 fi 22254 22255 22256 if test "x$path" != "x$new_path"; then 22257 BOOT_JDK="$new_path" 22258 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22259 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22260 fi 22261 22262 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22263 22264 path="$BOOT_JDK" 22265 has_colon=`$ECHO $path | $GREP ^.:` 22266 new_path="$path" 22267 if test "x$has_colon" = x; then 22268 # Not in mixed or Windows style, start by that. 22269 new_path=`cmd //c echo $path` 22270 fi 22271 22272 22273 input_path="$new_path" 22274 # Check if we need to convert this using DOS-style short mode. If the path 22275 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22276 # take no chances and rewrite it. 22277 # Note: m4 eats our [], so we need to use [ and ] instead. 22278 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22279 if test "x$has_forbidden_chars" != x; then 22280 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22281 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22282 fi 22283 22284 22285 windows_path="$new_path" 22286 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22287 unix_path=`$CYGPATH -u "$windows_path"` 22288 new_path="$unix_path" 22289 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22290 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22291 new_path="$unix_path" 22292 fi 22293 22294 if test "x$path" != "x$new_path"; then 22295 BOOT_JDK="$new_path" 22296 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22297 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22298 fi 22299 22300 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22301 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22302 22303 else 22304 # We're on a posix platform. Hooray! :) 22305 path="$BOOT_JDK" 22306 has_space=`$ECHO "$path" | $GREP " "` 22307 if test "x$has_space" != x; then 22308 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22309 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22310 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22311 fi 22312 22313 # Use eval to expand a potential ~ 22314 eval path="$path" 22315 if test ! -f "$path" && test ! -d "$path"; then 22316 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22317 fi 22318 22319 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22320 fi 22321 22322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22323 $as_echo_n "checking for Boot JDK... " >&6; } 22324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22325 $as_echo "$BOOT_JDK" >&6; } 22326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22327 $as_echo_n "checking Boot JDK version... " >&6; } 22328 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22330 $as_echo "$BOOT_JDK_VERSION" >&6; } 22331 fi # end check jdk version 22332 fi # end check rt.jar 22333 fi # end check javac 22334 fi # end check java 22335 fi # end check boot jdk found 22336 fi 22337 22338 22339 if test "x$BOOT_JDK_FOUND" = xno; then 22340 # Now execute the test 22341 22342 if test "x$PROGRAMW6432" != x; then 22343 VIRTUAL_DIR="$PROGRAMW6432/Java" 22344 22345 windows_path="$VIRTUAL_DIR" 22346 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22347 unix_path=`$CYGPATH -u "$windows_path"` 22348 VIRTUAL_DIR="$unix_path" 22349 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22350 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22351 VIRTUAL_DIR="$unix_path" 22352 fi 22353 22354 22355 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 22356 BOOT_JDK_SUFFIX="" 22357 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 22358 if test "x$ALL_JDKS_FOUND" != x; then 22359 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 22360 22361 if test "x$BOOT_JDK_FOUND" = xno; then 22362 # Now execute the test 22363 22364 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 22365 if test -d "$BOOT_JDK"; then 22366 BOOT_JDK_FOUND=maybe 22367 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 22368 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 22369 fi 22370 22371 22372 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22373 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22374 # Do we have a bin/java? 22375 if test ! -x "$BOOT_JDK/bin/java"; then 22376 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22377 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22378 BOOT_JDK_FOUND=no 22379 else 22380 # Do we have a bin/javac? 22381 if test ! -x "$BOOT_JDK/bin/javac"; then 22382 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22383 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22384 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22385 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22386 BOOT_JDK_FOUND=no 22387 else 22388 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 22389 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 22390 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 22391 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 22392 BOOT_JDK_FOUND=no 22393 else 22394 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22395 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22396 22397 # Extra M4 quote needed to protect [] in grep expression. 22398 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 22399 if test "x$FOUND_CORRECT_VERSION" = x; then 22400 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22401 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22402 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 22403 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 22404 BOOT_JDK_FOUND=no 22405 else 22406 # We're done! :-) 22407 BOOT_JDK_FOUND=yes 22408 22409 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22410 22411 # Input might be given as Windows format, start by converting to 22412 # unix format. 22413 path="$BOOT_JDK" 22414 new_path=`$CYGPATH -u "$path"` 22415 22416 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22417 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22418 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22419 # "foo.exe" is OK but "foo" is an error. 22420 # 22421 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22422 # It is also a way to make sure we got the proper file name for the real test later on. 22423 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22424 if test "x$test_shortpath" = x; then 22425 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22426 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22427 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22428 fi 22429 22430 # Call helper function which possibly converts this using DOS-style short mode. 22431 # If so, the updated path is stored in $new_path. 22432 22433 input_path="$new_path" 22434 # Check if we need to convert this using DOS-style short mode. If the path 22435 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22436 # take no chances and rewrite it. 22437 # Note: m4 eats our [], so we need to use [ and ] instead. 22438 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22439 if test "x$has_forbidden_chars" != x; then 22440 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22441 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22442 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22443 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22444 # Going to short mode and back again did indeed matter. Since short mode is 22445 # case insensitive, let's make it lowercase to improve readability. 22446 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22447 # Now convert it back to Unix-stile (cygpath) 22448 input_path=`$CYGPATH -u "$shortmode_path"` 22449 new_path="$input_path" 22450 fi 22451 fi 22452 22453 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22454 if test "x$test_cygdrive_prefix" = x; then 22455 # As a simple fix, exclude /usr/bin since it's not a real path. 22456 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22457 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22458 # a path prefixed by /cygdrive for fixpath to work. 22459 new_path="$CYGWIN_ROOT_PATH$input_path" 22460 fi 22461 fi 22462 22463 22464 if test "x$path" != "x$new_path"; then 22465 BOOT_JDK="$new_path" 22466 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22467 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22468 fi 22469 22470 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22471 22472 path="$BOOT_JDK" 22473 has_colon=`$ECHO $path | $GREP ^.:` 22474 new_path="$path" 22475 if test "x$has_colon" = x; then 22476 # Not in mixed or Windows style, start by that. 22477 new_path=`cmd //c echo $path` 22478 fi 22479 22480 22481 input_path="$new_path" 22482 # Check if we need to convert this using DOS-style short mode. If the path 22483 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22484 # take no chances and rewrite it. 22485 # Note: m4 eats our [], so we need to use [ and ] instead. 22486 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22487 if test "x$has_forbidden_chars" != x; then 22488 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22489 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22490 fi 22491 22492 22493 windows_path="$new_path" 22494 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22495 unix_path=`$CYGPATH -u "$windows_path"` 22496 new_path="$unix_path" 22497 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22498 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22499 new_path="$unix_path" 22500 fi 22501 22502 if test "x$path" != "x$new_path"; then 22503 BOOT_JDK="$new_path" 22504 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22505 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22506 fi 22507 22508 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22509 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22510 22511 else 22512 # We're on a posix platform. Hooray! :) 22513 path="$BOOT_JDK" 22514 has_space=`$ECHO "$path" | $GREP " "` 22515 if test "x$has_space" != x; then 22516 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22517 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22518 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22519 fi 22520 22521 # Use eval to expand a potential ~ 22522 eval path="$path" 22523 if test ! -f "$path" && test ! -d "$path"; then 22524 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22525 fi 22526 22527 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22528 fi 22529 22530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22531 $as_echo_n "checking for Boot JDK... " >&6; } 22532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22533 $as_echo "$BOOT_JDK" >&6; } 22534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22535 $as_echo_n "checking Boot JDK version... " >&6; } 22536 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22538 $as_echo "$BOOT_JDK_VERSION" >&6; } 22539 fi # end check jdk version 22540 fi # end check rt.jar 22541 fi # end check javac 22542 fi # end check java 22543 fi # end check boot jdk found 22544 fi 22545 22546 done 22547 fi 22548 22549 fi 22550 22551 22552 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22553 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22554 # Do we have a bin/java? 22555 if test ! -x "$BOOT_JDK/bin/java"; then 22556 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22557 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22558 BOOT_JDK_FOUND=no 22559 else 22560 # Do we have a bin/javac? 22561 if test ! -x "$BOOT_JDK/bin/javac"; then 22562 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22563 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22564 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22565 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22566 BOOT_JDK_FOUND=no 22567 else 22568 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 22569 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 22570 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 22571 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 22572 BOOT_JDK_FOUND=no 22573 else 22574 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22575 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22576 22577 # Extra M4 quote needed to protect [] in grep expression. 22578 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 22579 if test "x$FOUND_CORRECT_VERSION" = x; then 22580 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22581 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22582 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 22583 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 22584 BOOT_JDK_FOUND=no 22585 else 22586 # We're done! :-) 22587 BOOT_JDK_FOUND=yes 22588 22589 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22590 22591 # Input might be given as Windows format, start by converting to 22592 # unix format. 22593 path="$BOOT_JDK" 22594 new_path=`$CYGPATH -u "$path"` 22595 22596 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22597 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22598 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22599 # "foo.exe" is OK but "foo" is an error. 22600 # 22601 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22602 # It is also a way to make sure we got the proper file name for the real test later on. 22603 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22604 if test "x$test_shortpath" = x; then 22605 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22606 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22607 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22608 fi 22609 22610 # Call helper function which possibly converts this using DOS-style short mode. 22611 # If so, the updated path is stored in $new_path. 22612 22613 input_path="$new_path" 22614 # Check if we need to convert this using DOS-style short mode. If the path 22615 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22616 # take no chances and rewrite it. 22617 # Note: m4 eats our [], so we need to use [ and ] instead. 22618 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22619 if test "x$has_forbidden_chars" != x; then 22620 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22621 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22622 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22623 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22624 # Going to short mode and back again did indeed matter. Since short mode is 22625 # case insensitive, let's make it lowercase to improve readability. 22626 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22627 # Now convert it back to Unix-stile (cygpath) 22628 input_path=`$CYGPATH -u "$shortmode_path"` 22629 new_path="$input_path" 22630 fi 22631 fi 22632 22633 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22634 if test "x$test_cygdrive_prefix" = x; then 22635 # As a simple fix, exclude /usr/bin since it's not a real path. 22636 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22637 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22638 # a path prefixed by /cygdrive for fixpath to work. 22639 new_path="$CYGWIN_ROOT_PATH$input_path" 22640 fi 22641 fi 22642 22643 22644 if test "x$path" != "x$new_path"; then 22645 BOOT_JDK="$new_path" 22646 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22647 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22648 fi 22649 22650 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22651 22652 path="$BOOT_JDK" 22653 has_colon=`$ECHO $path | $GREP ^.:` 22654 new_path="$path" 22655 if test "x$has_colon" = x; then 22656 # Not in mixed or Windows style, start by that. 22657 new_path=`cmd //c echo $path` 22658 fi 22659 22660 22661 input_path="$new_path" 22662 # Check if we need to convert this using DOS-style short mode. If the path 22663 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22664 # take no chances and rewrite it. 22665 # Note: m4 eats our [], so we need to use [ and ] instead. 22666 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22667 if test "x$has_forbidden_chars" != x; then 22668 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22669 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22670 fi 22671 22672 22673 windows_path="$new_path" 22674 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22675 unix_path=`$CYGPATH -u "$windows_path"` 22676 new_path="$unix_path" 22677 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22678 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22679 new_path="$unix_path" 22680 fi 22681 22682 if test "x$path" != "x$new_path"; then 22683 BOOT_JDK="$new_path" 22684 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22685 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22686 fi 22687 22688 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22689 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22690 22691 else 22692 # We're on a posix platform. Hooray! :) 22693 path="$BOOT_JDK" 22694 has_space=`$ECHO "$path" | $GREP " "` 22695 if test "x$has_space" != x; then 22696 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22697 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22698 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22699 fi 22700 22701 # Use eval to expand a potential ~ 22702 eval path="$path" 22703 if test ! -f "$path" && test ! -d "$path"; then 22704 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22705 fi 22706 22707 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22708 fi 22709 22710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22711 $as_echo_n "checking for Boot JDK... " >&6; } 22712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22713 $as_echo "$BOOT_JDK" >&6; } 22714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22715 $as_echo_n "checking Boot JDK version... " >&6; } 22716 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22718 $as_echo "$BOOT_JDK_VERSION" >&6; } 22719 fi # end check jdk version 22720 fi # end check rt.jar 22721 fi # end check javac 22722 fi # end check java 22723 fi # end check boot jdk found 22724 fi 22725 22726 22727 if test "x$BOOT_JDK_FOUND" = xno; then 22728 # Now execute the test 22729 22730 if test "x$PROGRAMFILES" != x; then 22731 VIRTUAL_DIR="$PROGRAMFILES/Java" 22732 22733 windows_path="$VIRTUAL_DIR" 22734 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22735 unix_path=`$CYGPATH -u "$windows_path"` 22736 VIRTUAL_DIR="$unix_path" 22737 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22738 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22739 VIRTUAL_DIR="$unix_path" 22740 fi 22741 22742 22743 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 22744 BOOT_JDK_SUFFIX="" 22745 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 22746 if test "x$ALL_JDKS_FOUND" != x; then 22747 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 22748 22749 if test "x$BOOT_JDK_FOUND" = xno; then 22750 # Now execute the test 22751 22752 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 22753 if test -d "$BOOT_JDK"; then 22754 BOOT_JDK_FOUND=maybe 22755 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 22756 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 22757 fi 22758 22759 22760 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22761 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22762 # Do we have a bin/java? 22763 if test ! -x "$BOOT_JDK/bin/java"; then 22764 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22765 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22766 BOOT_JDK_FOUND=no 22767 else 22768 # Do we have a bin/javac? 22769 if test ! -x "$BOOT_JDK/bin/javac"; then 22770 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22771 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22772 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22773 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22774 BOOT_JDK_FOUND=no 22775 else 22776 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 22777 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 22778 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 22779 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 22780 BOOT_JDK_FOUND=no 22781 else 22782 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22783 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22784 22785 # Extra M4 quote needed to protect [] in grep expression. 22786 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 22787 if test "x$FOUND_CORRECT_VERSION" = x; then 22788 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22789 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22790 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 22791 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 22792 BOOT_JDK_FOUND=no 22793 else 22794 # We're done! :-) 22795 BOOT_JDK_FOUND=yes 22796 22797 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22798 22799 # Input might be given as Windows format, start by converting to 22800 # unix format. 22801 path="$BOOT_JDK" 22802 new_path=`$CYGPATH -u "$path"` 22803 22804 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22805 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22806 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22807 # "foo.exe" is OK but "foo" is an error. 22808 # 22809 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22810 # It is also a way to make sure we got the proper file name for the real test later on. 22811 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22812 if test "x$test_shortpath" = x; then 22813 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22814 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22815 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22816 fi 22817 22818 # Call helper function which possibly converts this using DOS-style short mode. 22819 # If so, the updated path is stored in $new_path. 22820 22821 input_path="$new_path" 22822 # Check if we need to convert this using DOS-style short mode. If the path 22823 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22824 # take no chances and rewrite it. 22825 # Note: m4 eats our [], so we need to use [ and ] instead. 22826 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22827 if test "x$has_forbidden_chars" != x; then 22828 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22829 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22830 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22831 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22832 # Going to short mode and back again did indeed matter. Since short mode is 22833 # case insensitive, let's make it lowercase to improve readability. 22834 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22835 # Now convert it back to Unix-stile (cygpath) 22836 input_path=`$CYGPATH -u "$shortmode_path"` 22837 new_path="$input_path" 22838 fi 22839 fi 22840 22841 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22842 if test "x$test_cygdrive_prefix" = x; then 22843 # As a simple fix, exclude /usr/bin since it's not a real path. 22844 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22845 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22846 # a path prefixed by /cygdrive for fixpath to work. 22847 new_path="$CYGWIN_ROOT_PATH$input_path" 22848 fi 22849 fi 22850 22851 22852 if test "x$path" != "x$new_path"; then 22853 BOOT_JDK="$new_path" 22854 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22855 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22856 fi 22857 22858 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22859 22860 path="$BOOT_JDK" 22861 has_colon=`$ECHO $path | $GREP ^.:` 22862 new_path="$path" 22863 if test "x$has_colon" = x; then 22864 # Not in mixed or Windows style, start by that. 22865 new_path=`cmd //c echo $path` 22866 fi 22867 22868 22869 input_path="$new_path" 22870 # Check if we need to convert this using DOS-style short mode. If the path 22871 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22872 # take no chances and rewrite it. 22873 # Note: m4 eats our [], so we need to use [ and ] instead. 22874 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22875 if test "x$has_forbidden_chars" != x; then 22876 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22877 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22878 fi 22879 22880 22881 windows_path="$new_path" 22882 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22883 unix_path=`$CYGPATH -u "$windows_path"` 22884 new_path="$unix_path" 22885 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22886 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22887 new_path="$unix_path" 22888 fi 22889 22890 if test "x$path" != "x$new_path"; then 22891 BOOT_JDK="$new_path" 22892 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22893 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22894 fi 22895 22896 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22897 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22898 22899 else 22900 # We're on a posix platform. Hooray! :) 22901 path="$BOOT_JDK" 22902 has_space=`$ECHO "$path" | $GREP " "` 22903 if test "x$has_space" != x; then 22904 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22905 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22906 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22907 fi 22908 22909 # Use eval to expand a potential ~ 22910 eval path="$path" 22911 if test ! -f "$path" && test ! -d "$path"; then 22912 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22913 fi 22914 22915 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22916 fi 22917 22918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22919 $as_echo_n "checking for Boot JDK... " >&6; } 22920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22921 $as_echo "$BOOT_JDK" >&6; } 22922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22923 $as_echo_n "checking Boot JDK version... " >&6; } 22924 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22926 $as_echo "$BOOT_JDK_VERSION" >&6; } 22927 fi # end check jdk version 22928 fi # end check rt.jar 22929 fi # end check javac 22930 fi # end check java 22931 fi # end check boot jdk found 22932 fi 22933 22934 done 22935 fi 22936 22937 fi 22938 22939 22940 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22941 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22942 # Do we have a bin/java? 22943 if test ! -x "$BOOT_JDK/bin/java"; then 22944 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22945 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22946 BOOT_JDK_FOUND=no 22947 else 22948 # Do we have a bin/javac? 22949 if test ! -x "$BOOT_JDK/bin/javac"; then 22950 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22951 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22952 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22953 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22954 BOOT_JDK_FOUND=no 22955 else 22956 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 22957 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 22958 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 22959 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 22960 BOOT_JDK_FOUND=no 22961 else 22962 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22963 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22964 22965 # Extra M4 quote needed to protect [] in grep expression. 22966 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 22967 if test "x$FOUND_CORRECT_VERSION" = x; then 22968 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22969 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22970 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 22971 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 22972 BOOT_JDK_FOUND=no 22973 else 22974 # We're done! :-) 22975 BOOT_JDK_FOUND=yes 22976 22977 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22978 22979 # Input might be given as Windows format, start by converting to 22980 # unix format. 22981 path="$BOOT_JDK" 22982 new_path=`$CYGPATH -u "$path"` 22983 22984 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22985 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22986 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22987 # "foo.exe" is OK but "foo" is an error. 22988 # 22989 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22990 # It is also a way to make sure we got the proper file name for the real test later on. 22991 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22992 if test "x$test_shortpath" = x; then 22993 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22994 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22995 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22996 fi 22997 22998 # Call helper function which possibly converts this using DOS-style short mode. 22999 # If so, the updated path is stored in $new_path. 23000 23001 input_path="$new_path" 23002 # Check if we need to convert this using DOS-style short mode. If the path 23003 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23004 # take no chances and rewrite it. 23005 # Note: m4 eats our [], so we need to use [ and ] instead. 23006 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23007 if test "x$has_forbidden_chars" != x; then 23008 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23009 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23010 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23011 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23012 # Going to short mode and back again did indeed matter. Since short mode is 23013 # case insensitive, let's make it lowercase to improve readability. 23014 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23015 # Now convert it back to Unix-stile (cygpath) 23016 input_path=`$CYGPATH -u "$shortmode_path"` 23017 new_path="$input_path" 23018 fi 23019 fi 23020 23021 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23022 if test "x$test_cygdrive_prefix" = x; then 23023 # As a simple fix, exclude /usr/bin since it's not a real path. 23024 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23025 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23026 # a path prefixed by /cygdrive for fixpath to work. 23027 new_path="$CYGWIN_ROOT_PATH$input_path" 23028 fi 23029 fi 23030 23031 23032 if test "x$path" != "x$new_path"; then 23033 BOOT_JDK="$new_path" 23034 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23035 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23036 fi 23037 23038 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23039 23040 path="$BOOT_JDK" 23041 has_colon=`$ECHO $path | $GREP ^.:` 23042 new_path="$path" 23043 if test "x$has_colon" = x; then 23044 # Not in mixed or Windows style, start by that. 23045 new_path=`cmd //c echo $path` 23046 fi 23047 23048 23049 input_path="$new_path" 23050 # Check if we need to convert this using DOS-style short mode. If the path 23051 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23052 # take no chances and rewrite it. 23053 # Note: m4 eats our [], so we need to use [ and ] instead. 23054 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23055 if test "x$has_forbidden_chars" != x; then 23056 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23057 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23058 fi 23059 23060 23061 windows_path="$new_path" 23062 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23063 unix_path=`$CYGPATH -u "$windows_path"` 23064 new_path="$unix_path" 23065 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23066 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23067 new_path="$unix_path" 23068 fi 23069 23070 if test "x$path" != "x$new_path"; then 23071 BOOT_JDK="$new_path" 23072 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23073 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23074 fi 23075 23076 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23077 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23078 23079 else 23080 # We're on a posix platform. Hooray! :) 23081 path="$BOOT_JDK" 23082 has_space=`$ECHO "$path" | $GREP " "` 23083 if test "x$has_space" != x; then 23084 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23085 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23086 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23087 fi 23088 23089 # Use eval to expand a potential ~ 23090 eval path="$path" 23091 if test ! -f "$path" && test ! -d "$path"; then 23092 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23093 fi 23094 23095 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23096 fi 23097 23098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23099 $as_echo_n "checking for Boot JDK... " >&6; } 23100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23101 $as_echo "$BOOT_JDK" >&6; } 23102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23103 $as_echo_n "checking Boot JDK version... " >&6; } 23104 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23106 $as_echo "$BOOT_JDK_VERSION" >&6; } 23107 fi # end check jdk version 23108 fi # end check rt.jar 23109 fi # end check javac 23110 fi # end check java 23111 fi # end check boot jdk found 23112 fi 23113 23114 23115 if test "x$BOOT_JDK_FOUND" = xno; then 23116 # Now execute the test 23117 23118 if test "x$ProgramFiles" != x; then 23119 VIRTUAL_DIR="$ProgramFiles/Java" 23120 23121 windows_path="$VIRTUAL_DIR" 23122 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23123 unix_path=`$CYGPATH -u "$windows_path"` 23124 VIRTUAL_DIR="$unix_path" 23125 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23126 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23127 VIRTUAL_DIR="$unix_path" 23128 fi 23129 23130 23131 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 23132 BOOT_JDK_SUFFIX="" 23133 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 23134 if test "x$ALL_JDKS_FOUND" != x; then 23135 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 23136 23137 if test "x$BOOT_JDK_FOUND" = xno; then 23138 # Now execute the test 23139 23140 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 23141 if test -d "$BOOT_JDK"; then 23142 BOOT_JDK_FOUND=maybe 23143 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 23144 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 23145 fi 23146 23147 23148 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23149 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23150 # Do we have a bin/java? 23151 if test ! -x "$BOOT_JDK/bin/java"; then 23152 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23153 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23154 BOOT_JDK_FOUND=no 23155 else 23156 # Do we have a bin/javac? 23157 if test ! -x "$BOOT_JDK/bin/javac"; then 23158 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23159 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23160 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23161 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23162 BOOT_JDK_FOUND=no 23163 else 23164 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 23165 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 23166 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 23167 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 23168 BOOT_JDK_FOUND=no 23169 else 23170 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23171 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23172 23173 # Extra M4 quote needed to protect [] in grep expression. 23174 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 23175 if test "x$FOUND_CORRECT_VERSION" = x; then 23176 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23177 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23178 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 23179 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 23180 BOOT_JDK_FOUND=no 23181 else 23182 # We're done! :-) 23183 BOOT_JDK_FOUND=yes 23184 23185 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23186 23187 # Input might be given as Windows format, start by converting to 23188 # unix format. 23189 path="$BOOT_JDK" 23190 new_path=`$CYGPATH -u "$path"` 23191 23192 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23193 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23194 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23195 # "foo.exe" is OK but "foo" is an error. 23196 # 23197 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23198 # It is also a way to make sure we got the proper file name for the real test later on. 23199 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23200 if test "x$test_shortpath" = x; then 23201 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23202 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23203 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23204 fi 23205 23206 # Call helper function which possibly converts this using DOS-style short mode. 23207 # If so, the updated path is stored in $new_path. 23208 23209 input_path="$new_path" 23210 # Check if we need to convert this using DOS-style short mode. If the path 23211 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23212 # take no chances and rewrite it. 23213 # Note: m4 eats our [], so we need to use [ and ] instead. 23214 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23215 if test "x$has_forbidden_chars" != x; then 23216 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23217 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23218 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23219 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23220 # Going to short mode and back again did indeed matter. Since short mode is 23221 # case insensitive, let's make it lowercase to improve readability. 23222 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23223 # Now convert it back to Unix-stile (cygpath) 23224 input_path=`$CYGPATH -u "$shortmode_path"` 23225 new_path="$input_path" 23226 fi 23227 fi 23228 23229 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23230 if test "x$test_cygdrive_prefix" = x; then 23231 # As a simple fix, exclude /usr/bin since it's not a real path. 23232 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23233 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23234 # a path prefixed by /cygdrive for fixpath to work. 23235 new_path="$CYGWIN_ROOT_PATH$input_path" 23236 fi 23237 fi 23238 23239 23240 if test "x$path" != "x$new_path"; then 23241 BOOT_JDK="$new_path" 23242 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23243 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23244 fi 23245 23246 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23247 23248 path="$BOOT_JDK" 23249 has_colon=`$ECHO $path | $GREP ^.:` 23250 new_path="$path" 23251 if test "x$has_colon" = x; then 23252 # Not in mixed or Windows style, start by that. 23253 new_path=`cmd //c echo $path` 23254 fi 23255 23256 23257 input_path="$new_path" 23258 # Check if we need to convert this using DOS-style short mode. If the path 23259 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23260 # take no chances and rewrite it. 23261 # Note: m4 eats our [], so we need to use [ and ] instead. 23262 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23263 if test "x$has_forbidden_chars" != x; then 23264 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23265 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23266 fi 23267 23268 23269 windows_path="$new_path" 23270 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23271 unix_path=`$CYGPATH -u "$windows_path"` 23272 new_path="$unix_path" 23273 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23274 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23275 new_path="$unix_path" 23276 fi 23277 23278 if test "x$path" != "x$new_path"; then 23279 BOOT_JDK="$new_path" 23280 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23281 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23282 fi 23283 23284 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23285 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23286 23287 else 23288 # We're on a posix platform. Hooray! :) 23289 path="$BOOT_JDK" 23290 has_space=`$ECHO "$path" | $GREP " "` 23291 if test "x$has_space" != x; then 23292 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23293 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23294 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23295 fi 23296 23297 # Use eval to expand a potential ~ 23298 eval path="$path" 23299 if test ! -f "$path" && test ! -d "$path"; then 23300 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23301 fi 23302 23303 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23304 fi 23305 23306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23307 $as_echo_n "checking for Boot JDK... " >&6; } 23308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23309 $as_echo "$BOOT_JDK" >&6; } 23310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23311 $as_echo_n "checking Boot JDK version... " >&6; } 23312 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23314 $as_echo "$BOOT_JDK_VERSION" >&6; } 23315 fi # end check jdk version 23316 fi # end check rt.jar 23317 fi # end check javac 23318 fi # end check java 23319 fi # end check boot jdk found 23320 fi 23321 23322 done 23323 fi 23324 23325 fi 23326 23327 23328 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23329 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23330 # Do we have a bin/java? 23331 if test ! -x "$BOOT_JDK/bin/java"; then 23332 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23333 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23334 BOOT_JDK_FOUND=no 23335 else 23336 # Do we have a bin/javac? 23337 if test ! -x "$BOOT_JDK/bin/javac"; then 23338 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23339 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23340 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23341 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23342 BOOT_JDK_FOUND=no 23343 else 23344 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 23345 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 23346 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 23347 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 23348 BOOT_JDK_FOUND=no 23349 else 23350 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23351 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23352 23353 # Extra M4 quote needed to protect [] in grep expression. 23354 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 23355 if test "x$FOUND_CORRECT_VERSION" = x; then 23356 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23357 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23358 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 23359 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 23360 BOOT_JDK_FOUND=no 23361 else 23362 # We're done! :-) 23363 BOOT_JDK_FOUND=yes 23364 23365 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23366 23367 # Input might be given as Windows format, start by converting to 23368 # unix format. 23369 path="$BOOT_JDK" 23370 new_path=`$CYGPATH -u "$path"` 23371 23372 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23373 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23374 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23375 # "foo.exe" is OK but "foo" is an error. 23376 # 23377 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23378 # It is also a way to make sure we got the proper file name for the real test later on. 23379 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23380 if test "x$test_shortpath" = x; then 23381 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23382 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23383 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23384 fi 23385 23386 # Call helper function which possibly converts this using DOS-style short mode. 23387 # If so, the updated path is stored in $new_path. 23388 23389 input_path="$new_path" 23390 # Check if we need to convert this using DOS-style short mode. If the path 23391 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23392 # take no chances and rewrite it. 23393 # Note: m4 eats our [], so we need to use [ and ] instead. 23394 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23395 if test "x$has_forbidden_chars" != x; then 23396 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23397 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23398 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23399 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23400 # Going to short mode and back again did indeed matter. Since short mode is 23401 # case insensitive, let's make it lowercase to improve readability. 23402 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23403 # Now convert it back to Unix-stile (cygpath) 23404 input_path=`$CYGPATH -u "$shortmode_path"` 23405 new_path="$input_path" 23406 fi 23407 fi 23408 23409 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23410 if test "x$test_cygdrive_prefix" = x; then 23411 # As a simple fix, exclude /usr/bin since it's not a real path. 23412 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23413 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23414 # a path prefixed by /cygdrive for fixpath to work. 23415 new_path="$CYGWIN_ROOT_PATH$input_path" 23416 fi 23417 fi 23418 23419 23420 if test "x$path" != "x$new_path"; then 23421 BOOT_JDK="$new_path" 23422 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23423 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23424 fi 23425 23426 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23427 23428 path="$BOOT_JDK" 23429 has_colon=`$ECHO $path | $GREP ^.:` 23430 new_path="$path" 23431 if test "x$has_colon" = x; then 23432 # Not in mixed or Windows style, start by that. 23433 new_path=`cmd //c echo $path` 23434 fi 23435 23436 23437 input_path="$new_path" 23438 # Check if we need to convert this using DOS-style short mode. If the path 23439 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23440 # take no chances and rewrite it. 23441 # Note: m4 eats our [], so we need to use [ and ] instead. 23442 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23443 if test "x$has_forbidden_chars" != x; then 23444 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23445 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23446 fi 23447 23448 23449 windows_path="$new_path" 23450 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23451 unix_path=`$CYGPATH -u "$windows_path"` 23452 new_path="$unix_path" 23453 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23454 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23455 new_path="$unix_path" 23456 fi 23457 23458 if test "x$path" != "x$new_path"; then 23459 BOOT_JDK="$new_path" 23460 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23461 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23462 fi 23463 23464 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23465 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23466 23467 else 23468 # We're on a posix platform. Hooray! :) 23469 path="$BOOT_JDK" 23470 has_space=`$ECHO "$path" | $GREP " "` 23471 if test "x$has_space" != x; then 23472 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23473 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23474 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23475 fi 23476 23477 # Use eval to expand a potential ~ 23478 eval path="$path" 23479 if test ! -f "$path" && test ! -d "$path"; then 23480 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23481 fi 23482 23483 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23484 fi 23485 23486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23487 $as_echo_n "checking for Boot JDK... " >&6; } 23488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23489 $as_echo "$BOOT_JDK" >&6; } 23490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23491 $as_echo_n "checking Boot JDK version... " >&6; } 23492 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23494 $as_echo "$BOOT_JDK_VERSION" >&6; } 23495 fi # end check jdk version 23496 fi # end check rt.jar 23497 fi # end check javac 23498 fi # end check java 23499 fi # end check boot jdk found 23500 fi 23501 23502 23503 if test "x$BOOT_JDK_FOUND" = xno; then 23504 # Now execute the test 23505 23506 BOOT_JDK_PREFIX="/cygdrive/c/Program Files/Java" 23507 BOOT_JDK_SUFFIX="" 23508 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 23509 if test "x$ALL_JDKS_FOUND" != x; then 23510 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 23511 23512 if test "x$BOOT_JDK_FOUND" = xno; then 23513 # Now execute the test 23514 23515 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 23516 if test -d "$BOOT_JDK"; then 23517 BOOT_JDK_FOUND=maybe 23518 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 23519 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 23520 fi 23521 23522 23523 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23524 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23525 # Do we have a bin/java? 23526 if test ! -x "$BOOT_JDK/bin/java"; then 23527 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23528 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23529 BOOT_JDK_FOUND=no 23530 else 23531 # Do we have a bin/javac? 23532 if test ! -x "$BOOT_JDK/bin/javac"; then 23533 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23534 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23535 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23536 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23537 BOOT_JDK_FOUND=no 23538 else 23539 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 23540 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 23541 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 23542 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 23543 BOOT_JDK_FOUND=no 23544 else 23545 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23546 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23547 23548 # Extra M4 quote needed to protect [] in grep expression. 23549 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 23550 if test "x$FOUND_CORRECT_VERSION" = x; then 23551 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23552 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23553 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 23554 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 23555 BOOT_JDK_FOUND=no 23556 else 23557 # We're done! :-) 23558 BOOT_JDK_FOUND=yes 23559 23560 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23561 23562 # Input might be given as Windows format, start by converting to 23563 # unix format. 23564 path="$BOOT_JDK" 23565 new_path=`$CYGPATH -u "$path"` 23566 23567 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23568 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23569 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23570 # "foo.exe" is OK but "foo" is an error. 23571 # 23572 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23573 # It is also a way to make sure we got the proper file name for the real test later on. 23574 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23575 if test "x$test_shortpath" = x; then 23576 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23577 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23578 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23579 fi 23580 23581 # Call helper function which possibly converts this using DOS-style short mode. 23582 # If so, the updated path is stored in $new_path. 23583 23584 input_path="$new_path" 23585 # Check if we need to convert this using DOS-style short mode. If the path 23586 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23587 # take no chances and rewrite it. 23588 # Note: m4 eats our [], so we need to use [ and ] instead. 23589 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23590 if test "x$has_forbidden_chars" != x; then 23591 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23592 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23593 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23594 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23595 # Going to short mode and back again did indeed matter. Since short mode is 23596 # case insensitive, let's make it lowercase to improve readability. 23597 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23598 # Now convert it back to Unix-stile (cygpath) 23599 input_path=`$CYGPATH -u "$shortmode_path"` 23600 new_path="$input_path" 23601 fi 23602 fi 23603 23604 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23605 if test "x$test_cygdrive_prefix" = x; then 23606 # As a simple fix, exclude /usr/bin since it's not a real path. 23607 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23608 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23609 # a path prefixed by /cygdrive for fixpath to work. 23610 new_path="$CYGWIN_ROOT_PATH$input_path" 23611 fi 23612 fi 23613 23614 23615 if test "x$path" != "x$new_path"; then 23616 BOOT_JDK="$new_path" 23617 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23618 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23619 fi 23620 23621 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23622 23623 path="$BOOT_JDK" 23624 has_colon=`$ECHO $path | $GREP ^.:` 23625 new_path="$path" 23626 if test "x$has_colon" = x; then 23627 # Not in mixed or Windows style, start by that. 23628 new_path=`cmd //c echo $path` 23629 fi 23630 23631 23632 input_path="$new_path" 23633 # Check if we need to convert this using DOS-style short mode. If the path 23634 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23635 # take no chances and rewrite it. 23636 # Note: m4 eats our [], so we need to use [ and ] instead. 23637 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23638 if test "x$has_forbidden_chars" != x; then 23639 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23640 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23641 fi 23642 23643 23644 windows_path="$new_path" 23645 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23646 unix_path=`$CYGPATH -u "$windows_path"` 23647 new_path="$unix_path" 23648 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23649 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23650 new_path="$unix_path" 23651 fi 23652 23653 if test "x$path" != "x$new_path"; then 23654 BOOT_JDK="$new_path" 23655 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23656 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23657 fi 23658 23659 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23660 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23661 23662 else 23663 # We're on a posix platform. Hooray! :) 23664 path="$BOOT_JDK" 23665 has_space=`$ECHO "$path" | $GREP " "` 23666 if test "x$has_space" != x; then 23667 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23668 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23669 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23670 fi 23671 23672 # Use eval to expand a potential ~ 23673 eval path="$path" 23674 if test ! -f "$path" && test ! -d "$path"; then 23675 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23676 fi 23677 23678 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23679 fi 23680 23681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23682 $as_echo_n "checking for Boot JDK... " >&6; } 23683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23684 $as_echo "$BOOT_JDK" >&6; } 23685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23686 $as_echo_n "checking Boot JDK version... " >&6; } 23687 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23689 $as_echo "$BOOT_JDK_VERSION" >&6; } 23690 fi # end check jdk version 23691 fi # end check rt.jar 23692 fi # end check javac 23693 fi # end check java 23694 fi # end check boot jdk found 23695 fi 23696 23697 done 23698 fi 23699 23700 23701 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23702 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23703 # Do we have a bin/java? 23704 if test ! -x "$BOOT_JDK/bin/java"; then 23705 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23706 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23707 BOOT_JDK_FOUND=no 23708 else 23709 # Do we have a bin/javac? 23710 if test ! -x "$BOOT_JDK/bin/javac"; then 23711 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23712 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23713 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23714 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23715 BOOT_JDK_FOUND=no 23716 else 23717 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 23718 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 23719 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 23720 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 23721 BOOT_JDK_FOUND=no 23722 else 23723 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23724 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23725 23726 # Extra M4 quote needed to protect [] in grep expression. 23727 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 23728 if test "x$FOUND_CORRECT_VERSION" = x; then 23729 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23730 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23731 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 23732 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 23733 BOOT_JDK_FOUND=no 23734 else 23735 # We're done! :-) 23736 BOOT_JDK_FOUND=yes 23737 23738 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23739 23740 # Input might be given as Windows format, start by converting to 23741 # unix format. 23742 path="$BOOT_JDK" 23743 new_path=`$CYGPATH -u "$path"` 23744 23745 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23746 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23747 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23748 # "foo.exe" is OK but "foo" is an error. 23749 # 23750 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23751 # It is also a way to make sure we got the proper file name for the real test later on. 23752 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23753 if test "x$test_shortpath" = x; then 23754 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23755 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23756 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23757 fi 23758 23759 # Call helper function which possibly converts this using DOS-style short mode. 23760 # If so, the updated path is stored in $new_path. 23761 23762 input_path="$new_path" 23763 # Check if we need to convert this using DOS-style short mode. If the path 23764 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23765 # take no chances and rewrite it. 23766 # Note: m4 eats our [], so we need to use [ and ] instead. 23767 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23768 if test "x$has_forbidden_chars" != x; then 23769 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23770 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23771 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23772 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23773 # Going to short mode and back again did indeed matter. Since short mode is 23774 # case insensitive, let's make it lowercase to improve readability. 23775 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23776 # Now convert it back to Unix-stile (cygpath) 23777 input_path=`$CYGPATH -u "$shortmode_path"` 23778 new_path="$input_path" 23779 fi 23780 fi 23781 23782 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23783 if test "x$test_cygdrive_prefix" = x; then 23784 # As a simple fix, exclude /usr/bin since it's not a real path. 23785 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23786 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23787 # a path prefixed by /cygdrive for fixpath to work. 23788 new_path="$CYGWIN_ROOT_PATH$input_path" 23789 fi 23790 fi 23791 23792 23793 if test "x$path" != "x$new_path"; then 23794 BOOT_JDK="$new_path" 23795 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23796 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23797 fi 23798 23799 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23800 23801 path="$BOOT_JDK" 23802 has_colon=`$ECHO $path | $GREP ^.:` 23803 new_path="$path" 23804 if test "x$has_colon" = x; then 23805 # Not in mixed or Windows style, start by that. 23806 new_path=`cmd //c echo $path` 23807 fi 23808 23809 23810 input_path="$new_path" 23811 # Check if we need to convert this using DOS-style short mode. If the path 23812 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23813 # take no chances and rewrite it. 23814 # Note: m4 eats our [], so we need to use [ and ] instead. 23815 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23816 if test "x$has_forbidden_chars" != x; then 23817 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23818 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23819 fi 23820 23821 23822 windows_path="$new_path" 23823 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23824 unix_path=`$CYGPATH -u "$windows_path"` 23825 new_path="$unix_path" 23826 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23827 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23828 new_path="$unix_path" 23829 fi 23830 23831 if test "x$path" != "x$new_path"; then 23832 BOOT_JDK="$new_path" 23833 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23834 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23835 fi 23836 23837 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23838 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23839 23840 else 23841 # We're on a posix platform. Hooray! :) 23842 path="$BOOT_JDK" 23843 has_space=`$ECHO "$path" | $GREP " "` 23844 if test "x$has_space" != x; then 23845 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23846 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23847 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23848 fi 23849 23850 # Use eval to expand a potential ~ 23851 eval path="$path" 23852 if test ! -f "$path" && test ! -d "$path"; then 23853 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23854 fi 23855 23856 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23857 fi 23858 23859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23860 $as_echo_n "checking for Boot JDK... " >&6; } 23861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23862 $as_echo "$BOOT_JDK" >&6; } 23863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23864 $as_echo_n "checking Boot JDK version... " >&6; } 23865 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23867 $as_echo "$BOOT_JDK_VERSION" >&6; } 23868 fi # end check jdk version 23869 fi # end check rt.jar 23870 fi # end check javac 23871 fi # end check java 23872 fi # end check boot jdk found 23873 fi 23874 23875 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 23876 23877 if test "x$BOOT_JDK_FOUND" = xno; then 23878 # Now execute the test 23879 23880 BOOT_JDK_PREFIX="/Library/Java/JavaVirtualMachines" 23881 BOOT_JDK_SUFFIX="/Contents/Home" 23882 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 23883 if test "x$ALL_JDKS_FOUND" != x; then 23884 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 23885 23886 if test "x$BOOT_JDK_FOUND" = xno; then 23887 # Now execute the test 23888 23889 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 23890 if test -d "$BOOT_JDK"; then 23891 BOOT_JDK_FOUND=maybe 23892 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 23893 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 23894 fi 23895 23896 23897 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23898 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23899 # Do we have a bin/java? 23900 if test ! -x "$BOOT_JDK/bin/java"; then 23901 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23902 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23903 BOOT_JDK_FOUND=no 23904 else 23905 # Do we have a bin/javac? 23906 if test ! -x "$BOOT_JDK/bin/javac"; then 23907 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23908 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23909 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23910 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23911 BOOT_JDK_FOUND=no 23912 else 23913 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 23914 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 23915 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 23916 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 23917 BOOT_JDK_FOUND=no 23918 else 23919 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23920 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23921 23922 # Extra M4 quote needed to protect [] in grep expression. 23923 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 23924 if test "x$FOUND_CORRECT_VERSION" = x; then 23925 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23926 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23927 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 23928 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 23929 BOOT_JDK_FOUND=no 23930 else 23931 # We're done! :-) 23932 BOOT_JDK_FOUND=yes 23933 23934 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23935 23936 # Input might be given as Windows format, start by converting to 23937 # unix format. 23938 path="$BOOT_JDK" 23939 new_path=`$CYGPATH -u "$path"` 23940 23941 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23942 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23943 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23944 # "foo.exe" is OK but "foo" is an error. 23945 # 23946 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23947 # It is also a way to make sure we got the proper file name for the real test later on. 23948 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23949 if test "x$test_shortpath" = x; then 23950 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23951 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23952 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23953 fi 23954 23955 # Call helper function which possibly converts this using DOS-style short mode. 23956 # If so, the updated path is stored in $new_path. 23957 23958 input_path="$new_path" 23959 # Check if we need to convert this using DOS-style short mode. If the path 23960 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23961 # take no chances and rewrite it. 23962 # Note: m4 eats our [], so we need to use [ and ] instead. 23963 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23964 if test "x$has_forbidden_chars" != x; then 23965 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23966 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23967 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23968 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23969 # Going to short mode and back again did indeed matter. Since short mode is 23970 # case insensitive, let's make it lowercase to improve readability. 23971 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23972 # Now convert it back to Unix-stile (cygpath) 23973 input_path=`$CYGPATH -u "$shortmode_path"` 23974 new_path="$input_path" 23975 fi 23976 fi 23977 23978 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23979 if test "x$test_cygdrive_prefix" = x; then 23980 # As a simple fix, exclude /usr/bin since it's not a real path. 23981 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23982 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23983 # a path prefixed by /cygdrive for fixpath to work. 23984 new_path="$CYGWIN_ROOT_PATH$input_path" 23985 fi 23986 fi 23987 23988 23989 if test "x$path" != "x$new_path"; then 23990 BOOT_JDK="$new_path" 23991 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23992 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23993 fi 23994 23995 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23996 23997 path="$BOOT_JDK" 23998 has_colon=`$ECHO $path | $GREP ^.:` 23999 new_path="$path" 24000 if test "x$has_colon" = x; then 24001 # Not in mixed or Windows style, start by that. 24002 new_path=`cmd //c echo $path` 24003 fi 24004 24005 24006 input_path="$new_path" 24007 # Check if we need to convert this using DOS-style short mode. If the path 24008 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24009 # take no chances and rewrite it. 24010 # Note: m4 eats our [], so we need to use [ and ] instead. 24011 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24012 if test "x$has_forbidden_chars" != x; then 24013 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24014 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24015 fi 24016 24017 24018 windows_path="$new_path" 24019 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24020 unix_path=`$CYGPATH -u "$windows_path"` 24021 new_path="$unix_path" 24022 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24023 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24024 new_path="$unix_path" 24025 fi 24026 24027 if test "x$path" != "x$new_path"; then 24028 BOOT_JDK="$new_path" 24029 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24030 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24031 fi 24032 24033 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24034 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24035 24036 else 24037 # We're on a posix platform. Hooray! :) 24038 path="$BOOT_JDK" 24039 has_space=`$ECHO "$path" | $GREP " "` 24040 if test "x$has_space" != x; then 24041 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24042 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24043 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24044 fi 24045 24046 # Use eval to expand a potential ~ 24047 eval path="$path" 24048 if test ! -f "$path" && test ! -d "$path"; then 24049 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24050 fi 24051 24052 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24053 fi 24054 24055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24056 $as_echo_n "checking for Boot JDK... " >&6; } 24057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24058 $as_echo "$BOOT_JDK" >&6; } 24059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24060 $as_echo_n "checking Boot JDK version... " >&6; } 24061 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24063 $as_echo "$BOOT_JDK_VERSION" >&6; } 24064 fi # end check jdk version 24065 fi # end check rt.jar 24066 fi # end check javac 24067 fi # end check java 24068 fi # end check boot jdk found 24069 fi 24070 24071 done 24072 fi 24073 24074 24075 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24076 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24077 # Do we have a bin/java? 24078 if test ! -x "$BOOT_JDK/bin/java"; then 24079 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24080 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24081 BOOT_JDK_FOUND=no 24082 else 24083 # Do we have a bin/javac? 24084 if test ! -x "$BOOT_JDK/bin/javac"; then 24085 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24086 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24087 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24088 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24089 BOOT_JDK_FOUND=no 24090 else 24091 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 24092 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 24093 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 24094 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 24095 BOOT_JDK_FOUND=no 24096 else 24097 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24098 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24099 24100 # Extra M4 quote needed to protect [] in grep expression. 24101 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 24102 if test "x$FOUND_CORRECT_VERSION" = x; then 24103 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24104 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24105 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 24106 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 24107 BOOT_JDK_FOUND=no 24108 else 24109 # We're done! :-) 24110 BOOT_JDK_FOUND=yes 24111 24112 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24113 24114 # Input might be given as Windows format, start by converting to 24115 # unix format. 24116 path="$BOOT_JDK" 24117 new_path=`$CYGPATH -u "$path"` 24118 24119 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24120 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24121 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24122 # "foo.exe" is OK but "foo" is an error. 24123 # 24124 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24125 # It is also a way to make sure we got the proper file name for the real test later on. 24126 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24127 if test "x$test_shortpath" = x; then 24128 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24129 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24130 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24131 fi 24132 24133 # Call helper function which possibly converts this using DOS-style short mode. 24134 # If so, the updated path is stored in $new_path. 24135 24136 input_path="$new_path" 24137 # Check if we need to convert this using DOS-style short mode. If the path 24138 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24139 # take no chances and rewrite it. 24140 # Note: m4 eats our [], so we need to use [ and ] instead. 24141 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24142 if test "x$has_forbidden_chars" != x; then 24143 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24144 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24145 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24146 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24147 # Going to short mode and back again did indeed matter. Since short mode is 24148 # case insensitive, let's make it lowercase to improve readability. 24149 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24150 # Now convert it back to Unix-stile (cygpath) 24151 input_path=`$CYGPATH -u "$shortmode_path"` 24152 new_path="$input_path" 24153 fi 24154 fi 24155 24156 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24157 if test "x$test_cygdrive_prefix" = x; then 24158 # As a simple fix, exclude /usr/bin since it's not a real path. 24159 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24160 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24161 # a path prefixed by /cygdrive for fixpath to work. 24162 new_path="$CYGWIN_ROOT_PATH$input_path" 24163 fi 24164 fi 24165 24166 24167 if test "x$path" != "x$new_path"; then 24168 BOOT_JDK="$new_path" 24169 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24170 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24171 fi 24172 24173 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24174 24175 path="$BOOT_JDK" 24176 has_colon=`$ECHO $path | $GREP ^.:` 24177 new_path="$path" 24178 if test "x$has_colon" = x; then 24179 # Not in mixed or Windows style, start by that. 24180 new_path=`cmd //c echo $path` 24181 fi 24182 24183 24184 input_path="$new_path" 24185 # Check if we need to convert this using DOS-style short mode. If the path 24186 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24187 # take no chances and rewrite it. 24188 # Note: m4 eats our [], so we need to use [ and ] instead. 24189 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24190 if test "x$has_forbidden_chars" != x; then 24191 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24192 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24193 fi 24194 24195 24196 windows_path="$new_path" 24197 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24198 unix_path=`$CYGPATH -u "$windows_path"` 24199 new_path="$unix_path" 24200 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24201 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24202 new_path="$unix_path" 24203 fi 24204 24205 if test "x$path" != "x$new_path"; then 24206 BOOT_JDK="$new_path" 24207 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24208 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24209 fi 24210 24211 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24212 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24213 24214 else 24215 # We're on a posix platform. Hooray! :) 24216 path="$BOOT_JDK" 24217 has_space=`$ECHO "$path" | $GREP " "` 24218 if test "x$has_space" != x; then 24219 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24220 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24221 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24222 fi 24223 24224 # Use eval to expand a potential ~ 24225 eval path="$path" 24226 if test ! -f "$path" && test ! -d "$path"; then 24227 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24228 fi 24229 24230 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24231 fi 24232 24233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24234 $as_echo_n "checking for Boot JDK... " >&6; } 24235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24236 $as_echo "$BOOT_JDK" >&6; } 24237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24238 $as_echo_n "checking Boot JDK version... " >&6; } 24239 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24241 $as_echo "$BOOT_JDK_VERSION" >&6; } 24242 fi # end check jdk version 24243 fi # end check rt.jar 24244 fi # end check javac 24245 fi # end check java 24246 fi # end check boot jdk found 24247 fi 24248 24249 24250 if test "x$BOOT_JDK_FOUND" = xno; then 24251 # Now execute the test 24252 24253 BOOT_JDK_PREFIX="/System/Library/Java/JavaVirtualMachines" 24254 BOOT_JDK_SUFFIX="/Contents/Home" 24255 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 24256 if test "x$ALL_JDKS_FOUND" != x; then 24257 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 24258 24259 if test "x$BOOT_JDK_FOUND" = xno; then 24260 # Now execute the test 24261 24262 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 24263 if test -d "$BOOT_JDK"; then 24264 BOOT_JDK_FOUND=maybe 24265 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 24266 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 24267 fi 24268 24269 24270 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24271 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24272 # Do we have a bin/java? 24273 if test ! -x "$BOOT_JDK/bin/java"; then 24274 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24275 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24276 BOOT_JDK_FOUND=no 24277 else 24278 # Do we have a bin/javac? 24279 if test ! -x "$BOOT_JDK/bin/javac"; then 24280 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24281 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24282 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24283 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24284 BOOT_JDK_FOUND=no 24285 else 24286 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 24287 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 24288 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 24289 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 24290 BOOT_JDK_FOUND=no 24291 else 24292 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24293 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24294 24295 # Extra M4 quote needed to protect [] in grep expression. 24296 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 24297 if test "x$FOUND_CORRECT_VERSION" = x; then 24298 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24299 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24300 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 24301 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 24302 BOOT_JDK_FOUND=no 24303 else 24304 # We're done! :-) 24305 BOOT_JDK_FOUND=yes 24306 24307 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24308 24309 # Input might be given as Windows format, start by converting to 24310 # unix format. 24311 path="$BOOT_JDK" 24312 new_path=`$CYGPATH -u "$path"` 24313 24314 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24315 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24316 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24317 # "foo.exe" is OK but "foo" is an error. 24318 # 24319 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24320 # It is also a way to make sure we got the proper file name for the real test later on. 24321 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24322 if test "x$test_shortpath" = x; then 24323 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24324 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24325 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24326 fi 24327 24328 # Call helper function which possibly converts this using DOS-style short mode. 24329 # If so, the updated path is stored in $new_path. 24330 24331 input_path="$new_path" 24332 # Check if we need to convert this using DOS-style short mode. If the path 24333 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24334 # take no chances and rewrite it. 24335 # Note: m4 eats our [], so we need to use [ and ] instead. 24336 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24337 if test "x$has_forbidden_chars" != x; then 24338 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24339 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24340 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24341 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24342 # Going to short mode and back again did indeed matter. Since short mode is 24343 # case insensitive, let's make it lowercase to improve readability. 24344 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24345 # Now convert it back to Unix-stile (cygpath) 24346 input_path=`$CYGPATH -u "$shortmode_path"` 24347 new_path="$input_path" 24348 fi 24349 fi 24350 24351 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24352 if test "x$test_cygdrive_prefix" = x; then 24353 # As a simple fix, exclude /usr/bin since it's not a real path. 24354 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24355 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24356 # a path prefixed by /cygdrive for fixpath to work. 24357 new_path="$CYGWIN_ROOT_PATH$input_path" 24358 fi 24359 fi 24360 24361 24362 if test "x$path" != "x$new_path"; then 24363 BOOT_JDK="$new_path" 24364 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24365 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24366 fi 24367 24368 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24369 24370 path="$BOOT_JDK" 24371 has_colon=`$ECHO $path | $GREP ^.:` 24372 new_path="$path" 24373 if test "x$has_colon" = x; then 24374 # Not in mixed or Windows style, start by that. 24375 new_path=`cmd //c echo $path` 24376 fi 24377 24378 24379 input_path="$new_path" 24380 # Check if we need to convert this using DOS-style short mode. If the path 24381 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24382 # take no chances and rewrite it. 24383 # Note: m4 eats our [], so we need to use [ and ] instead. 24384 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24385 if test "x$has_forbidden_chars" != x; then 24386 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24387 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24388 fi 24389 24390 24391 windows_path="$new_path" 24392 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24393 unix_path=`$CYGPATH -u "$windows_path"` 24394 new_path="$unix_path" 24395 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24396 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24397 new_path="$unix_path" 24398 fi 24399 24400 if test "x$path" != "x$new_path"; then 24401 BOOT_JDK="$new_path" 24402 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24403 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24404 fi 24405 24406 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24407 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24408 24409 else 24410 # We're on a posix platform. Hooray! :) 24411 path="$BOOT_JDK" 24412 has_space=`$ECHO "$path" | $GREP " "` 24413 if test "x$has_space" != x; then 24414 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24415 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24416 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24417 fi 24418 24419 # Use eval to expand a potential ~ 24420 eval path="$path" 24421 if test ! -f "$path" && test ! -d "$path"; then 24422 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24423 fi 24424 24425 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24426 fi 24427 24428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24429 $as_echo_n "checking for Boot JDK... " >&6; } 24430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24431 $as_echo "$BOOT_JDK" >&6; } 24432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24433 $as_echo_n "checking Boot JDK version... " >&6; } 24434 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24436 $as_echo "$BOOT_JDK_VERSION" >&6; } 24437 fi # end check jdk version 24438 fi # end check rt.jar 24439 fi # end check javac 24440 fi # end check java 24441 fi # end check boot jdk found 24442 fi 24443 24444 done 24445 fi 24446 24447 24448 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24449 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24450 # Do we have a bin/java? 24451 if test ! -x "$BOOT_JDK/bin/java"; then 24452 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24453 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24454 BOOT_JDK_FOUND=no 24455 else 24456 # Do we have a bin/javac? 24457 if test ! -x "$BOOT_JDK/bin/javac"; then 24458 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24459 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24460 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24461 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24462 BOOT_JDK_FOUND=no 24463 else 24464 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 24465 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 24466 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 24467 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 24468 BOOT_JDK_FOUND=no 24469 else 24470 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24471 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24472 24473 # Extra M4 quote needed to protect [] in grep expression. 24474 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 24475 if test "x$FOUND_CORRECT_VERSION" = x; then 24476 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24477 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24478 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 24479 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 24480 BOOT_JDK_FOUND=no 24481 else 24482 # We're done! :-) 24483 BOOT_JDK_FOUND=yes 24484 24485 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24486 24487 # Input might be given as Windows format, start by converting to 24488 # unix format. 24489 path="$BOOT_JDK" 24490 new_path=`$CYGPATH -u "$path"` 24491 24492 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24493 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24494 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24495 # "foo.exe" is OK but "foo" is an error. 24496 # 24497 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24498 # It is also a way to make sure we got the proper file name for the real test later on. 24499 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24500 if test "x$test_shortpath" = x; then 24501 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24502 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24503 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24504 fi 24505 24506 # Call helper function which possibly converts this using DOS-style short mode. 24507 # If so, the updated path is stored in $new_path. 24508 24509 input_path="$new_path" 24510 # Check if we need to convert this using DOS-style short mode. If the path 24511 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24512 # take no chances and rewrite it. 24513 # Note: m4 eats our [], so we need to use [ and ] instead. 24514 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24515 if test "x$has_forbidden_chars" != x; then 24516 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24517 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24518 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24519 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24520 # Going to short mode and back again did indeed matter. Since short mode is 24521 # case insensitive, let's make it lowercase to improve readability. 24522 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24523 # Now convert it back to Unix-stile (cygpath) 24524 input_path=`$CYGPATH -u "$shortmode_path"` 24525 new_path="$input_path" 24526 fi 24527 fi 24528 24529 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24530 if test "x$test_cygdrive_prefix" = x; then 24531 # As a simple fix, exclude /usr/bin since it's not a real path. 24532 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24533 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24534 # a path prefixed by /cygdrive for fixpath to work. 24535 new_path="$CYGWIN_ROOT_PATH$input_path" 24536 fi 24537 fi 24538 24539 24540 if test "x$path" != "x$new_path"; then 24541 BOOT_JDK="$new_path" 24542 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24543 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24544 fi 24545 24546 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24547 24548 path="$BOOT_JDK" 24549 has_colon=`$ECHO $path | $GREP ^.:` 24550 new_path="$path" 24551 if test "x$has_colon" = x; then 24552 # Not in mixed or Windows style, start by that. 24553 new_path=`cmd //c echo $path` 24554 fi 24555 24556 24557 input_path="$new_path" 24558 # Check if we need to convert this using DOS-style short mode. If the path 24559 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24560 # take no chances and rewrite it. 24561 # Note: m4 eats our [], so we need to use [ and ] instead. 24562 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24563 if test "x$has_forbidden_chars" != x; then 24564 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24565 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24566 fi 24567 24568 24569 windows_path="$new_path" 24570 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24571 unix_path=`$CYGPATH -u "$windows_path"` 24572 new_path="$unix_path" 24573 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24574 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24575 new_path="$unix_path" 24576 fi 24577 24578 if test "x$path" != "x$new_path"; then 24579 BOOT_JDK="$new_path" 24580 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24581 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24582 fi 24583 24584 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24585 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24586 24587 else 24588 # We're on a posix platform. Hooray! :) 24589 path="$BOOT_JDK" 24590 has_space=`$ECHO "$path" | $GREP " "` 24591 if test "x$has_space" != x; then 24592 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24593 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24594 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24595 fi 24596 24597 # Use eval to expand a potential ~ 24598 eval path="$path" 24599 if test ! -f "$path" && test ! -d "$path"; then 24600 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24601 fi 24602 24603 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24604 fi 24605 24606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24607 $as_echo_n "checking for Boot JDK... " >&6; } 24608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24609 $as_echo "$BOOT_JDK" >&6; } 24610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24611 $as_echo_n "checking Boot JDK version... " >&6; } 24612 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24614 $as_echo "$BOOT_JDK_VERSION" >&6; } 24615 fi # end check jdk version 24616 fi # end check rt.jar 24617 fi # end check javac 24618 fi # end check java 24619 fi # end check boot jdk found 24620 fi 24621 24622 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 24623 24624 if test "x$BOOT_JDK_FOUND" = xno; then 24625 # Now execute the test 24626 24627 BOOT_JDK_PREFIX="/usr/lib/jvm" 24628 BOOT_JDK_SUFFIX="" 24629 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 24630 if test "x$ALL_JDKS_FOUND" != x; then 24631 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 24632 24633 if test "x$BOOT_JDK_FOUND" = xno; then 24634 # Now execute the test 24635 24636 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 24637 if test -d "$BOOT_JDK"; then 24638 BOOT_JDK_FOUND=maybe 24639 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 24640 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 24641 fi 24642 24643 24644 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24645 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24646 # Do we have a bin/java? 24647 if test ! -x "$BOOT_JDK/bin/java"; then 24648 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24649 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24650 BOOT_JDK_FOUND=no 24651 else 24652 # Do we have a bin/javac? 24653 if test ! -x "$BOOT_JDK/bin/javac"; then 24654 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24655 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24656 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24657 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24658 BOOT_JDK_FOUND=no 24659 else 24660 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 24661 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 24662 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 24663 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 24664 BOOT_JDK_FOUND=no 24665 else 24666 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24667 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24668 24669 # Extra M4 quote needed to protect [] in grep expression. 24670 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 24671 if test "x$FOUND_CORRECT_VERSION" = x; then 24672 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24673 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24674 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 24675 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 24676 BOOT_JDK_FOUND=no 24677 else 24678 # We're done! :-) 24679 BOOT_JDK_FOUND=yes 24680 24681 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24682 24683 # Input might be given as Windows format, start by converting to 24684 # unix format. 24685 path="$BOOT_JDK" 24686 new_path=`$CYGPATH -u "$path"` 24687 24688 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24689 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24690 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24691 # "foo.exe" is OK but "foo" is an error. 24692 # 24693 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24694 # It is also a way to make sure we got the proper file name for the real test later on. 24695 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24696 if test "x$test_shortpath" = x; then 24697 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24698 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24699 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24700 fi 24701 24702 # Call helper function which possibly converts this using DOS-style short mode. 24703 # If so, the updated path is stored in $new_path. 24704 24705 input_path="$new_path" 24706 # Check if we need to convert this using DOS-style short mode. If the path 24707 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24708 # take no chances and rewrite it. 24709 # Note: m4 eats our [], so we need to use [ and ] instead. 24710 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24711 if test "x$has_forbidden_chars" != x; then 24712 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24713 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24714 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24715 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24716 # Going to short mode and back again did indeed matter. Since short mode is 24717 # case insensitive, let's make it lowercase to improve readability. 24718 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24719 # Now convert it back to Unix-stile (cygpath) 24720 input_path=`$CYGPATH -u "$shortmode_path"` 24721 new_path="$input_path" 24722 fi 24723 fi 24724 24725 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24726 if test "x$test_cygdrive_prefix" = x; then 24727 # As a simple fix, exclude /usr/bin since it's not a real path. 24728 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24729 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24730 # a path prefixed by /cygdrive for fixpath to work. 24731 new_path="$CYGWIN_ROOT_PATH$input_path" 24732 fi 24733 fi 24734 24735 24736 if test "x$path" != "x$new_path"; then 24737 BOOT_JDK="$new_path" 24738